You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Toolbar.js 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. /* global APP, $, buttonClick, config, lockRoom, interfaceConfig, setSharedKey,
  2. Util */
  3. var messageHandler = require("../util/MessageHandler");
  4. var BottomToolbar = require("./BottomToolbar");
  5. var Prezi = require("../prezi/Prezi");
  6. var Etherpad = require("../etherpad/Etherpad");
  7. var PanelToggler = require("../side_pannels/SidePanelToggler");
  8. var Authentication = require("../authentication/Authentication");
  9. var UIUtil = require("../util/UIUtil");
  10. var AuthenticationEvents
  11. = require("../../../service/authentication/AuthenticationEvents");
  12. var roomUrl = null;
  13. var sharedKey = '';
  14. var UI = null;
  15. var recordingToaster = null;
  16. var buttonHandlers = {
  17. "toolbar_button_mute": function () {
  18. return APP.UI.toggleAudio();
  19. },
  20. "toolbar_button_camera": function () {
  21. return APP.UI.toggleVideo();
  22. },
  23. /*"toolbar_button_authentication": function () {
  24. return Toolbar.authenticateClicked();
  25. },*/
  26. "toolbar_button_record": function () {
  27. return toggleRecording();
  28. },
  29. "toolbar_button_security": function () {
  30. return Toolbar.openLockDialog();
  31. },
  32. "toolbar_button_link": function () {
  33. return Toolbar.openLinkDialog();
  34. },
  35. "toolbar_button_chat": function () {
  36. return BottomToolbar.toggleChat();
  37. },
  38. "toolbar_button_prezi": function () {
  39. return Prezi.openPreziDialog();
  40. },
  41. "toolbar_button_etherpad": function () {
  42. return Etherpad.toggleEtherpad(0);
  43. },
  44. "toolbar_button_desktopsharing": function () {
  45. return APP.desktopsharing.toggleScreenSharing();
  46. },
  47. "toolbar_button_fullScreen": function() {
  48. UIUtil.buttonClick("#toolbar_button_fullScreen", "icon-full-screen icon-exit-full-screen");
  49. return Toolbar.toggleFullScreen();
  50. },
  51. "toolbar_button_sip": function () {
  52. return callSipButtonClicked();
  53. },
  54. "toolbar_button_dialpad": function () {
  55. return dialpadButtonClicked();
  56. },
  57. "toolbar_button_settings": function () {
  58. PanelToggler.toggleSettingsMenu();
  59. },
  60. "toolbar_button_hangup": function () {
  61. return hangup();
  62. },
  63. "toolbar_button_login": function () {
  64. Toolbar.authenticateClicked();
  65. },
  66. "toolbar_button_logout": function () {
  67. // Ask for confirmation
  68. messageHandler.openTwoButtonDialog(
  69. "dialog.logoutTitle",
  70. null,
  71. "dialog.logoutQuestion",
  72. null,
  73. false,
  74. "dialog.Yes",
  75. function (evt, yes) {
  76. if (yes) {
  77. APP.xmpp.logout(function (url) {
  78. if (url) {
  79. window.location.href = url;
  80. } else {
  81. hangup();
  82. }
  83. });
  84. }
  85. });
  86. }
  87. };
  88. var defaultToolbarButtons = {
  89. 'microphone': '#toolbar_button_mute',
  90. 'camera': '#toolbar_button_camera',
  91. 'desktop': '#toolbar_button_desktopsharing',
  92. 'security': '#toolbar_button_security',
  93. 'invite': '#toolbar_button_link',
  94. 'chat': '#toolbar_button_chat',
  95. 'prezi': '#toolbar_button_prezi',
  96. 'ethherpad': '#toolbar_button_etherpad',
  97. 'fullscreen': '#toolbar_button_fullScreen',
  98. 'settings': '#toolbar_button_settings',
  99. 'hangup': '#toolbar_button_hangup'
  100. };
  101. function hangup() {
  102. APP.xmpp.disposeConference();
  103. if(config.enableWelcomePage) {
  104. setTimeout(function() {
  105. window.localStorage.welcomePageDisabled = false;
  106. window.location.pathname = "/";
  107. }, 10000);
  108. }
  109. var title = APP.translation.generateTranslationHTML(
  110. "dialog.sessTerminated");
  111. var msg = APP.translation.generateTranslationHTML(
  112. "dialog.hungUp");
  113. var button = APP.translation.generateTranslationHTML(
  114. "dialog.joinAgain");
  115. var buttons = [];
  116. buttons.push({title: button, value: true});
  117. UI.messageHandler.openDialog(
  118. title,
  119. msg,
  120. true,
  121. buttons,
  122. function(event, value, message, formVals) {
  123. window.location.reload();
  124. return false;
  125. }
  126. );
  127. }
  128. /**
  129. * Starts or stops the recording for the conference.
  130. */
  131. function toggleRecording(predefinedToken) {
  132. APP.xmpp.toggleRecording(function (callback) {
  133. if (predefinedToken) {
  134. callback(UIUtil.escapeHtml(predefinedToken));
  135. return;
  136. }
  137. var msg = APP.translation.generateTranslationHTML(
  138. "dialog.recordingToken");
  139. var token = APP.translation.translateString("dialog.token");
  140. APP.UI.messageHandler.openTwoButtonDialog(null, null, null,
  141. '<h2>' + msg + '</h2>' +
  142. '<input name="recordingToken" type="text" ' +
  143. ' data-i18n="[placeholder]dialog.token" ' +
  144. 'placeholder="' + token + '" autofocus>',
  145. false,
  146. "dialog.Save",
  147. function (e, v, m, f) {
  148. if (v) {
  149. var token = f.recordingToken;
  150. if (token) {
  151. callback(UIUtil.escapeHtml(token));
  152. }
  153. }
  154. },
  155. null,
  156. function () { },
  157. ':input:first'
  158. );
  159. }, Toolbar.setRecordingButtonState);
  160. }
  161. /**
  162. * Locks / unlocks the room.
  163. */
  164. function lockRoom(lock) {
  165. var currentSharedKey = '';
  166. if (lock)
  167. currentSharedKey = sharedKey;
  168. APP.xmpp.lockRoom(currentSharedKey, function (res) {
  169. // password is required
  170. if (sharedKey) {
  171. console.log('set room password');
  172. Toolbar.lockLockButton();
  173. }
  174. else {
  175. console.log('removed room password');
  176. Toolbar.unlockLockButton();
  177. }
  178. }, function (err) {
  179. console.warn('setting password failed', err);
  180. messageHandler.showError("dialog.lockTitle",
  181. "dialog.lockMessage");
  182. Toolbar.setSharedKey('');
  183. }, function () {
  184. console.warn('room passwords not supported');
  185. messageHandler.showError("dialog.warning",
  186. "dialog.passwordNotSupported");
  187. Toolbar.setSharedKey('');
  188. });
  189. }
  190. /**
  191. * Invite participants to conference.
  192. */
  193. function inviteParticipants() {
  194. if (roomUrl === null)
  195. return;
  196. var sharedKeyText = "";
  197. if (sharedKey && sharedKey.length > 0) {
  198. sharedKeyText =
  199. APP.translation.translateString("email.sharedKey",
  200. {sharedKey: sharedKey});
  201. sharedKeyText = sharedKeyText.replace(/\n/g, "%0D%0A");
  202. }
  203. var supportedBrowsers = "Chromium, Google Chrome " +
  204. APP.translation.translateString("email.and") + " Opera";
  205. var conferenceName = roomUrl.substring(roomUrl.lastIndexOf('/') + 1);
  206. var subject = APP.translation.translateString("email.subject",
  207. {appName:interfaceConfig.APP_NAME, conferenceName: conferenceName});
  208. var body = APP.translation.translateString("email.body",
  209. {appName:interfaceConfig.APP_NAME, sharedKeyText: sharedKeyText,
  210. roomUrl: roomUrl, supportedBrowsers: supportedBrowsers});
  211. body = body.replace(/\n/g, "%0D%0A");
  212. if (window.localStorage.displayname) {
  213. body += "%0D%0A%0D%0A" + window.localStorage.displayname;
  214. }
  215. if (interfaceConfig.INVITATION_POWERED_BY) {
  216. body += "%0D%0A%0D%0A--%0D%0Apowered by jitsi.org";
  217. }
  218. window.open("mailto:?subject=" + subject + "&body=" + body, '_blank');
  219. }
  220. function dialpadButtonClicked() {
  221. //TODO show the dialpad box
  222. }
  223. function callSipButtonClicked() {
  224. var defaultNumber
  225. = config.defaultSipNumber ? config.defaultSipNumber : '';
  226. var sipMsg = APP.translation.generateTranslationHTML(
  227. "dialog.sipMsg");
  228. messageHandler.openTwoButtonDialog(null, null, null,
  229. '<h2>' + sipMsg + '</h2>' +
  230. '<input name="sipNumber" type="text"' +
  231. ' value="' + defaultNumber + '" autofocus>',
  232. false,
  233. "dialog.Dial",
  234. function (e, v, m, f) {
  235. if (v) {
  236. var numberInput = f.sipNumber;
  237. if (numberInput) {
  238. APP.xmpp.dial(
  239. numberInput, 'fromnumber', UI.getRoomName(), sharedKey);
  240. }
  241. }
  242. },
  243. null, null, ':input:first'
  244. );
  245. }
  246. var Toolbar = (function (my) {
  247. my.init = function (ui) {
  248. UIUtil.hideDisabledButtons(defaultToolbarButtons);
  249. for(var k in buttonHandlers)
  250. $("#" + k).click(buttonHandlers[k]);
  251. UI = ui;
  252. // Update login info
  253. APP.xmpp.addListener(
  254. AuthenticationEvents.IDENTITY_UPDATED,
  255. function (authenticationEnabled, userIdentity) {
  256. var loggedIn = false;
  257. if (userIdentity) {
  258. loggedIn = true;
  259. }
  260. Toolbar.showAuthenticateButton(authenticationEnabled);
  261. if (authenticationEnabled) {
  262. Toolbar.setAuthenticatedIdentity(userIdentity);
  263. Toolbar.showLoginButton(!loggedIn);
  264. Toolbar.showLogoutButton(loggedIn);
  265. }
  266. }
  267. );
  268. };
  269. /**
  270. * Sets shared key
  271. * @param sKey the shared key
  272. */
  273. my.setSharedKey = function (sKey) {
  274. sharedKey = sKey;
  275. };
  276. my.authenticateClicked = function () {
  277. Authentication.focusAuthenticationWindow();
  278. if (!APP.xmpp.isExternalAuthEnabled()) {
  279. Authentication.xmppAuthenticate();
  280. return;
  281. }
  282. // Get authentication URL
  283. if (!APP.xmpp.isMUCJoined()) {
  284. APP.xmpp.getLoginUrl(UI.getRoomName(), function (url) {
  285. // If conference has not been started yet - redirect to login page
  286. window.location.href = url;
  287. });
  288. } else {
  289. APP.xmpp.getPopupLoginUrl(UI.getRoomName(), function (url) {
  290. // Otherwise - open popup with authentication URL
  291. var authenticationWindow = Authentication.createAuthenticationWindow(
  292. function () {
  293. // On popup closed - retry room allocation
  294. APP.xmpp.allocateConferenceFocus(
  295. APP.UI.getRoomName(),
  296. function () { console.info("AUTH DONE"); }
  297. );
  298. }, url);
  299. if (!authenticationWindow) {
  300. messageHandler.openMessageDialog(
  301. null, "dialog.popupError");
  302. }
  303. });
  304. }
  305. };
  306. /**
  307. * Updates the room invite url.
  308. */
  309. my.updateRoomUrl = function (newRoomUrl) {
  310. roomUrl = newRoomUrl;
  311. // If the invite dialog has been already opened we update the information.
  312. var inviteLink = document.getElementById('inviteLinkRef');
  313. if (inviteLink) {
  314. inviteLink.value = roomUrl;
  315. inviteLink.select();
  316. $('#inviteLinkRef').parent()
  317. .find('button[value=true]').prop('disabled', false);
  318. }
  319. };
  320. /**
  321. * Disables and enables some of the buttons.
  322. */
  323. my.setupButtonsFromConfig = function () {
  324. if (UIUtil.isButtonEnabled('prezi')) {
  325. $("#toolbar_button_prezi").css({display: "none"});
  326. }
  327. };
  328. /**
  329. * Opens the lock room dialog.
  330. */
  331. my.openLockDialog = function () {
  332. // Only the focus is able to set a shared key.
  333. if (!APP.xmpp.isModerator()) {
  334. if (sharedKey) {
  335. messageHandler.openMessageDialog(null,
  336. "dialog.passwordError");
  337. } else {
  338. messageHandler.openMessageDialog(null, "dialog.passwordError2");
  339. }
  340. } else {
  341. if (sharedKey) {
  342. messageHandler.openTwoButtonDialog(null, null,
  343. "dialog.passwordCheck",
  344. null,
  345. false,
  346. "dialog.Remove",
  347. function (e, v) {
  348. if (v) {
  349. Toolbar.setSharedKey('');
  350. lockRoom(false);
  351. }
  352. });
  353. } else {
  354. var msg = APP.translation.generateTranslationHTML(
  355. "dialog.passwordMsg");
  356. var yourPassword = APP.translation.translateString(
  357. "dialog.yourPassword");
  358. messageHandler.openTwoButtonDialog(null, null, null,
  359. '<h2>' + msg + '</h2>' +
  360. '<input name="lockKey" type="text"' +
  361. ' data-i18n="[placeholder]dialog.yourPassword" ' +
  362. 'placeholder="' + yourPassword + '" autofocus>',
  363. false,
  364. "dialog.Save",
  365. function (e, v, m, f) {
  366. if (v) {
  367. var lockKey = f.lockKey;
  368. if (lockKey) {
  369. Toolbar.setSharedKey(
  370. UIUtil.escapeHtml(lockKey));
  371. lockRoom(true);
  372. }
  373. }
  374. },
  375. null, null, 'input:first'
  376. );
  377. }
  378. }
  379. };
  380. /**
  381. * Opens the invite link dialog.
  382. */
  383. my.openLinkDialog = function () {
  384. var inviteAttreibutes;
  385. if (roomUrl === null) {
  386. inviteAttreibutes = 'data-i18n="[value]roomUrlDefaultMsg" value="' +
  387. APP.translation.translateString("roomUrlDefaultMsg") + '"';
  388. } else {
  389. inviteAttreibutes = "value=\"" + encodeURI(roomUrl) + "\"";
  390. }
  391. messageHandler.openTwoButtonDialog("dialog.shareLink",
  392. null, null,
  393. '<input id="inviteLinkRef" type="text" ' +
  394. inviteAttreibutes + ' onclick="this.select();" readonly>',
  395. false,
  396. "dialog.Invite",
  397. function (e, v) {
  398. if (v) {
  399. if (roomUrl) {
  400. inviteParticipants();
  401. }
  402. }
  403. },
  404. function (event) {
  405. if (roomUrl) {
  406. document.getElementById('inviteLinkRef').select();
  407. } else {
  408. if (event && event.target)
  409. $(event.target)
  410. .find('button[value=true]').prop('disabled', true);
  411. }
  412. }
  413. );
  414. };
  415. /**
  416. * Opens the settings dialog.
  417. * FIXME: not used ?
  418. */
  419. my.openSettingsDialog = function () {
  420. var settings1 = APP.translation.generateTranslationHTML(
  421. "dialog.settings1");
  422. var settings2 = APP.translation.generateTranslationHTML(
  423. "dialog.settings2");
  424. var settings3 = APP.translation.generateTranslationHTML(
  425. "dialog.settings3");
  426. var yourPassword = APP.translation.translateString(
  427. "dialog.yourPassword");
  428. messageHandler.openTwoButtonDialog(null,
  429. '<h2>' + settings1 + '</h2>' +
  430. '<input type="checkbox" id="initMuted">' +
  431. settings2 + '<br/>' +
  432. '<input type="checkbox" id="requireNicknames">' +
  433. settings3 +
  434. '<input id="lockKey" type="text" placeholder="' + yourPassword +
  435. '" data-i18n="[placeholder]dialog.yourPassword" autofocus>',
  436. null,
  437. null,
  438. false,
  439. "dialog.Save",
  440. function () {
  441. document.getElementById('lockKey').focus();
  442. },
  443. function (e, v) {
  444. if (v) {
  445. if ($('#initMuted').is(":checked")) {
  446. // it is checked
  447. }
  448. if ($('#requireNicknames').is(":checked")) {
  449. // it is checked
  450. }
  451. /*
  452. var lockKey = document.getElementById('lockKey');
  453. if (lockKey.value) {
  454. setSharedKey(lockKey.value);
  455. lockRoom(true);
  456. }
  457. */
  458. }
  459. }
  460. );
  461. };
  462. /**
  463. * Toggles the application in and out of full screen mode
  464. * (a.k.a. presentation mode in Chrome).
  465. */
  466. my.toggleFullScreen = function () {
  467. var fsElement = document.documentElement;
  468. if (!document.mozFullScreen && !document.webkitIsFullScreen) {
  469. //Enter Full Screen
  470. if (fsElement.mozRequestFullScreen) {
  471. fsElement.mozRequestFullScreen();
  472. }
  473. else {
  474. fsElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
  475. }
  476. } else {
  477. //Exit Full Screen
  478. if (document.mozCancelFullScreen) {
  479. document.mozCancelFullScreen();
  480. } else {
  481. document.webkitCancelFullScreen();
  482. }
  483. }
  484. };
  485. /**
  486. * Unlocks the lock button state.
  487. */
  488. my.unlockLockButton = function () {
  489. if ($("#toolbar_button_security").hasClass("icon-security-locked"))
  490. UIUtil.buttonClick("#toolbar_button_security", "icon-security icon-security-locked");
  491. };
  492. /**
  493. * Updates the lock button state to locked.
  494. */
  495. my.lockLockButton = function () {
  496. if ($("#toolbar_button_security").hasClass("icon-security"))
  497. UIUtil.buttonClick("#toolbar_button_security", "icon-security icon-security-locked");
  498. };
  499. /**
  500. * Shows or hides authentication button
  501. * @param show <tt>true</tt> to show or <tt>false</tt> to hide
  502. */
  503. my.showAuthenticateButton = function (show) {
  504. if (UIUtil.isButtonEnabled('authentication') && show) {
  505. $('#authentication').css({display: "inline"});
  506. }
  507. else {
  508. $('#authentication').css({display: "none"});
  509. }
  510. };
  511. // Shows or hides the 'recording' button.
  512. my.showRecordingButton = function (show) {
  513. if (UIUtil.isButtonEnabled('recording') && show) {
  514. $('#toolbar_button_record').css({display: "inline-block"});
  515. }
  516. else {
  517. $('#toolbar_button_record').css({display: "none"});
  518. }
  519. };
  520. // Sets the state of the recording button
  521. my.setRecordingButtonState = function (recordingState) {
  522. var selector = $('#toolbar_button_record');
  523. if (recordingState === 'on') {
  524. selector.removeClass("icon-recEnable");
  525. selector.addClass("icon-recEnable active");
  526. $("#largeVideo").toggleClass("videoMessageFilter", true);
  527. var recordOnKey = "recording.on";
  528. $('#videoConnectionMessage').attr("data-i18n", recordOnKey);
  529. $('#videoConnectionMessage').text(APP.translation.translateString(recordOnKey));
  530. setTimeout(function(){
  531. $("#largeVideo").toggleClass("videoMessageFilter", false);
  532. $('#videoConnectionMessage').css({display: "none"});
  533. }, 1500);
  534. recordingToaster = messageHandler.notify(null, "recording.toaster", null,
  535. null, null, {timeOut: 0, closeButton: null, tapToDismiss: false});
  536. } else if (recordingState === 'off') {
  537. selector.removeClass("icon-recEnable active");
  538. selector.addClass("icon-recEnable");
  539. $("#largeVideo").toggleClass("videoMessageFilter", false);
  540. $('#videoConnectionMessage').css({display: "none"});
  541. if (recordingToaster)
  542. messageHandler.remove(recordingToaster);
  543. } else if (recordingState === 'pending') {
  544. selector.removeClass("icon-recEnable active");
  545. selector.addClass("icon-recEnable");
  546. $("#largeVideo").toggleClass("videoMessageFilter", true);
  547. var recordPendingKey = "recording.pending";
  548. $('#videoConnectionMessage').attr("data-i18n", recordPendingKey);
  549. $('#videoConnectionMessage').text(APP.translation.translateString(recordPendingKey));
  550. $('#videoConnectionMessage').css({display: "block"});
  551. }
  552. };
  553. // checks whether recording is enabled and whether we have params to start automatically recording
  554. my.checkAutoRecord = function () {
  555. if (UIUtil.isButtonEnabled('recording') && config.autoRecord) {
  556. toggleRecording(config.autoRecordToken);
  557. }
  558. }
  559. // Shows or hides SIP calls button
  560. my.showSipCallButton = function (show) {
  561. if (APP.xmpp.isSipGatewayEnabled() && UIUtil.isButtonEnabled('sip') && show) {
  562. $('#toolbar_button_sip').css({display: "inline-block"});
  563. } else {
  564. $('#toolbar_button_sip').css({display: "none"});
  565. }
  566. };
  567. // Shows or hides the dialpad button
  568. my.showDialPadButton = function (show) {
  569. if (UIUtil.isButtonEnabled('dialpad') && show) {
  570. $('#toolbar_button_dialpad').css({display: "inline-block"});
  571. } else {
  572. $('#toolbar_button_dialpad').css({display: "none"});
  573. }
  574. };
  575. /**
  576. * Displays user authenticated identity name(login).
  577. * @param authIdentity identity name to be displayed.
  578. */
  579. my.setAuthenticatedIdentity = function (authIdentity) {
  580. if (authIdentity) {
  581. var selector = $('#toolbar_auth_identity');
  582. selector.css({display: "list-item"});
  583. selector.text(authIdentity);
  584. } else {
  585. $('#toolbar_auth_identity').css({display: "none"});
  586. }
  587. };
  588. /**
  589. * Shows/hides login button.
  590. * @param show <tt>true</tt> to show
  591. */
  592. my.showLoginButton = function (show) {
  593. if (UIUtil.isButtonEnabled('authentication') && show) {
  594. $('#toolbar_button_login').css({display: "list-item"});
  595. } else {
  596. $('#toolbar_button_login').css({display: "none"});
  597. }
  598. };
  599. /**
  600. * Shows/hides logout button.
  601. * @param show <tt>true</tt> to show
  602. */
  603. my.showLogoutButton = function (show) {
  604. if (UIUtil.isButtonEnabled('authentication') && show) {
  605. $('#toolbar_button_logout').css({display: "list-item"});
  606. } else {
  607. $('#toolbar_button_logout').css({display: "none"});
  608. }
  609. };
  610. /**
  611. * Sets the state of the button. The button has blue glow if desktop
  612. * streaming is active.
  613. * @param active the state of the desktop streaming.
  614. */
  615. my.changeDesktopSharingButtonState = function (active) {
  616. var button = $("#toolbar_button_desktopsharing");
  617. if (active) {
  618. button.addClass("glow");
  619. } else {
  620. button.removeClass("glow");
  621. }
  622. };
  623. return my;
  624. }(Toolbar || {}));
  625. module.exports = Toolbar;