Your IP : 3.145.199.101


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/ui/buttons/dist/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/ui/buttons/dist/ui.buttons.bundle.min.js

this.BX=this.BX||{};(function(exports,main_core_events,main_popup,main_core){"use strict";let ButtonTag=function t(){babelHelpers.classCallCheck(this,t)};babelHelpers.defineProperty(ButtonTag,"BUTTON",0);babelHelpers.defineProperty(ButtonTag,"LINK",1);babelHelpers.defineProperty(ButtonTag,"SUBMIT",2);babelHelpers.defineProperty(ButtonTag,"INPUT",3);babelHelpers.defineProperty(ButtonTag,"DIV",4);babelHelpers.defineProperty(ButtonTag,"SPAN",5);let _=t=>t,_t,_t2,_t3,_t4,_t5,_t6,_t7,_t8;let BaseButton=function(){function t(e){babelHelpers.classCallCheck(this,t);e=main_core.Type.isPlainObject(e)?e:{};this.options=Object.assign(this.getDefaultOptions(),e);this.button=main_core.Type.isDomNode(this.options.buttonNode)?this.options.buttonNode:null;this.textNode=main_core.Type.isDomNode(this.options.textNode)?this.options.textNode:null;this.counterNode=main_core.Type.isDomNode(this.options.counterNode)?this.options.counterNode:null;this.text="";this.counter=null;this.events={};this.link="";this.maxWidth=null;this.tag=this.isEnumValue(this.options.tag,ButtonTag)?this.options.tag:ButtonTag.BUTTON;if(main_core.Type.isStringFilled(this.options.link)){this.tag=ButtonTag.LINK}this.baseClass=main_core.Type.isStringFilled(this.options.baseClass)?this.options.baseClass:"";this.disabled=false;this.handleEvent=this.handleEvent.bind(this);this.init();if(this.options.disabled===true){this.setDisabled()}this.setText(this.options.text);this.setCounter(this.options.counter);this.setProps(this.options.props);this.setDataSet(this.options.dataset);this.addClass(this.options.className);this.setLink(this.options.link);this.setMaxWidth(this.options.maxWidth);this.bindEvent("click",this.options.onclick);this.bindEvents(this.options.events)}babelHelpers.createClass(t,[{key:"init",value:function t(){}},{key:"getDefaultOptions",value:function t(){return{}}},{key:"render",value:function t(){return this.getContainer()}},{key:"renderTo",value:function t(e){if(main_core.Type.isDomNode(e)){return e.appendChild(this.getContainer())}return null}},{key:"getContainer",value:function t(){if(this.button!==null){return this.button}switch(this.getTag()){case ButtonTag.BUTTON:default:this.button=main_core.Tag.render(_t||(_t=_`<button class="${0}"></button>`),this.getBaseClass());break;case ButtonTag.INPUT:this.button=main_core.Tag.render(_t2||(_t2=_`<input class="${0}" type="button">`),this.getBaseClass());break;case ButtonTag.LINK:this.button=main_core.Tag.render(_t3||(_t3=_`<a class="${0}" href=""></a>`),this.getBaseClass());break;case ButtonTag.SUBMIT:this.button=main_core.Tag.render(_t4||(_t4=_`<input class="${0}" type="submit">`),this.getBaseClass());break;case ButtonTag.DIV:this.button=main_core.Tag.render(_t5||(_t5=_`<div class="${0}"></div>`),this.getBaseClass());break;case ButtonTag.SPAN:this.button=main_core.Tag.render(_t6||(_t6=_`<span class="${0}"></span>`),this.getBaseClass());break}return this.button}},{key:"getBaseClass",value:function t(){return this.baseClass}},{key:"setText",value:function t(e){if(main_core.Type.isString(e)){this.text=e;if(this.isInputType()){this.getContainer().value=e}else if(e.length>0){if(this.textNode===null){this.textNode=main_core.Tag.render(_t7||(_t7=_`<span class="ui-btn-text"></span>`))}if(!this.textNode.parentNode){main_core.Dom.prepend(this.textNode,this.getContainer())}this.textNode.textContent=e}else{if(this.textNode!==null){main_core.Dom.remove(this.textNode)}}}return this}},{key:"getText",value:function t(){return this.text}},{key:"setCounter",value:function t(e){if([0,"0","",null,false].includes(e)){if(this.counterNode!==null){main_core.Dom.remove(this.counterNode);this.counterNode=null}this.counter=null}else if(main_core.Type.isNumber(e)&&e>0||main_core.Type.isStringFilled(e)){if(this.isInputType()){throw new Error("BX.UI.Button: an input button cannot have a counter.")}if(this.counterNode===null){this.counterNode=main_core.Tag.render(_t8||(_t8=_`<span class="ui-btn-counter"></span>`));main_core.Dom.append(this.counterNode,this.getContainer())}this.counter=e;this.counterNode.textContent=e}return this}},{key:"getCounter",value:function t(){return this.counter}},{key:"setLink",value:function t(e){if(main_core.Type.isString(e)){if(this.getTag()!==ButtonTag.LINK){throw new Error("BX.UI.Button: only an anchor button tag supports a link.")}this.getContainer().href=e}return this}},{key:"getLink",value:function t(){return this.getContainer().href}},{key:"setMaxWidth",value:function t(e){if(main_core.Type.isNumber(e)&&e>0){this.maxWidth=e;this.getContainer().style.maxWidth=`${e}px`}else if(e===null){this.getContainer().style.removeProperty("max-width");this.maxWidth=null}return this}},{key:"getMaxWidth",value:function t(){return this.maxWidth}},{key:"getTag",value:function t(){return this.tag}},{key:"setProps",value:function t(e){if(!main_core.Type.isPlainObject(e)){return this}for(let t in e){const n=e[t];main_core.Dom.attr(this.getContainer(),t,n)}return this}},{key:"getProps",value:function t(){const e=this.getContainer().attributes;const n={};const o=this.isInputType()?["class","type"]:["class"];for(let t=0;t<e.length;t++){const{name:i,value:s}=e[t];if(o.includes(i)||i.startsWith("data-")){continue}n[i]=s}return n}},{key:"setDataSet",value:function t(e){if(!main_core.Type.isPlainObject(e)){return this}for(let t in e){const n=e[t];if(n===null){delete this.getDataSet()[t]}else{this.getDataSet()[t]=n}}return this}},{key:"getDataSet",value:function t(){return this.getContainer().dataset}},{key:"addClass",value:function t(e){if(main_core.Type.isStringFilled(e)){main_core.Dom.addClass(this.getContainer(),e)}return this}},{key:"removeClass",value:function t(e){if(main_core.Type.isStringFilled(e)){main_core.Dom.removeClass(this.getContainer(),e)}return this}},{key:"setDisabled",value:function t(e){if(e===false){this.disabled=false;this.setProps({disabled:null})}else{this.disabled=true;this.setProps({disabled:true})}return this}},{key:"isDisabled",value:function t(){return this.disabled}},{key:"isInputType",value:function t(){return this.getTag()===ButtonTag.SUBMIT||this.getTag()===ButtonTag.INPUT}},{key:"bindEvents",value:function t(e){if(main_core.Type.isPlainObject(e)){for(let t in e){const n=e[t];this.bindEvent(t,n)}}return this}},{key:"unbindEvents",value:function t(e){if(main_core.Type.isArray(e)){e.forEach((t=>{this.unbindEvent(t)}))}return this}},{key:"bindEvent",value:function t(e,n){if(main_core.Type.isStringFilled(e)&&main_core.Type.isFunction(n)){this.unbindEvent(e);this.events[e]=n;main_core.Event.bind(this.getContainer(),e,this.handleEvent)}return this}},{key:"unbindEvent",value:function t(e){if(this.events[e]){delete this.events[e];main_core.Event.unbind(this.getContainer(),e,this.handleEvent)}return this}},{key:"handleEvent",value:function t(e){const n=e.type;if(this.events[n]){const t=this.events[n];t.call(this,this,e)}}},{key:"isEnumValue",value:function t(e,n){for(let t in n){if(n[t]===e){return true}}return false}}]);return t}();let ButtonColor=function t(){babelHelpers.classCallCheck(this,t)};babelHelpers.defineProperty(ButtonColor,"DANGER","ui-btn-danger");babelHelpers.defineProperty(ButtonColor,"DANGER_DARK","ui-btn-danger-dark");babelHelpers.defineProperty(ButtonColor,"DANGER_LIGHT","ui-btn-danger-light");babelHelpers.defineProperty(ButtonColor,"SUCCESS","ui-btn-success");babelHelpers.defineProperty(ButtonColor,"SUCCESS_DARK","ui-btn-success-dark");babelHelpers.defineProperty(ButtonColor,"SUCCESS_LIGHT","ui-btn-success-light");babelHelpers.defineProperty(ButtonColor,"PRIMARY_DARK","ui-btn-primary-dark");babelHelpers.defineProperty(ButtonColor,"PRIMARY","ui-btn-primary");babelHelpers.defineProperty(ButtonColor,"SECONDARY","ui-btn-secondary");babelHelpers.defineProperty(ButtonColor,"SECONDARY_LIGHT","ui-btn-secondary-light");babelHelpers.defineProperty(ButtonColor,"WARNING_LIGHT","ui-btn-warning-light");babelHelpers.defineProperty(ButtonColor,"LINK","ui-btn-link");babelHelpers.defineProperty(ButtonColor,"LIGHT","ui-btn-light");babelHelpers.defineProperty(ButtonColor,"LIGHT_BORDER","ui-btn-light-border");babelHelpers.defineProperty(ButtonColor,"AI","ui-btn-color-ai");babelHelpers.defineProperty(ButtonColor,"BASE_LIGHT","ui-btn-base-light");let ButtonSize=function t(){babelHelpers.classCallCheck(this,t)};babelHelpers.defineProperty(ButtonSize,"LARGE","ui-btn-lg");babelHelpers.defineProperty(ButtonSize,"MEDIUM","ui-btn-md");babelHelpers.defineProperty(ButtonSize,"SMALL","ui-btn-sm");babelHelpers.defineProperty(ButtonSize,"EXTRA_SMALL","ui-btn-xs");let ButtonIcon=function t(){babelHelpers.classCallCheck(this,t)};babelHelpers.defineProperty(ButtonIcon,"UNFOLLOW","ui-btn-icon-unfollow");babelHelpers.defineProperty(ButtonIcon,"FOLLOW","ui-btn-icon-follow");babelHelpers.defineProperty(ButtonIcon,"ADD","ui-btn-icon-add");babelHelpers.defineProperty(ButtonIcon,"STOP","ui-btn-icon-stop");babelHelpers.defineProperty(ButtonIcon,"START","ui-btn-icon-start");babelHelpers.defineProperty(ButtonIcon,"PAUSE","ui-btn-icon-pause");babelHelpers.defineProperty(ButtonIcon,"ADD_FOLDER","ui-btn-icon-add-folder");babelHelpers.defineProperty(ButtonIcon,"SETTING","ui-btn-icon-setting");babelHelpers.defineProperty(ButtonIcon,"TASK","ui-btn-icon-task");babelHelpers.defineProperty(ButtonIcon,"INFO","ui-btn-icon-info");babelHelpers.defineProperty(ButtonIcon,"SEARCH","ui-btn-icon-search");babelHelpers.defineProperty(ButtonIcon,"PRINT","ui-btn-icon-print");babelHelpers.defineProperty(ButtonIcon,"LIST","ui-btn-icon-list");babelHelpers.defineProperty(ButtonIcon,"BUSINESS","ui-btn-icon-business");babelHelpers.defineProperty(ButtonIcon,"BUSINESS_CONFIRM","ui-btn-icon-business-confirm");babelHelpers.defineProperty(ButtonIcon,"BUSINESS_WARNING","ui-btn-icon-business-warning");babelHelpers.defineProperty(ButtonIcon,"CAMERA","ui-btn-icon-camera");babelHelpers.defineProperty(ButtonIcon,"PHONE_UP","ui-btn-icon-phone-up");babelHelpers.defineProperty(ButtonIcon,"PHONE_DOWN","ui-btn-icon-phone-down");babelHelpers.defineProperty(ButtonIcon,"PHONE_CALL","ui-btn-icon-phone-call");babelHelpers.defineProperty(ButtonIcon,"BACK","ui-btn-icon-back");babelHelpers.defineProperty(ButtonIcon,"REMOVE","ui-btn-icon-remove");babelHelpers.defineProperty(ButtonIcon,"DOWNLOAD","ui-btn-icon-download");babelHelpers.defineProperty(ButtonIcon,"DOTS","ui-btn-icon-ui-btn-icon-dots");babelHelpers.defineProperty(ButtonIcon,"DONE","ui-btn-icon-done");babelHelpers.defineProperty(ButtonIcon,"CANCEL","ui-btn-icon-cancel");babelHelpers.defineProperty(ButtonIcon,"DISK","ui-btn-icon-disk");babelHelpers.defineProperty(ButtonIcon,"LOCK","ui-btn-icon-lock");babelHelpers.defineProperty(ButtonIcon,"MAIL","ui-btn-icon-mail");babelHelpers.defineProperty(ButtonIcon,"CHAT","ui-btn-icon-chat");babelHelpers.defineProperty(ButtonIcon,"PAGE","ui-btn-icon-page");babelHelpers.defineProperty(ButtonIcon,"CLOUD","ui-btn-icon-cloud");babelHelpers.defineProperty(ButtonIcon,"EDIT","ui-btn-icon-edit");babelHelpers.defineProperty(ButtonIcon,"SHARE","ui-btn-icon-share");babelHelpers.defineProperty(ButtonIcon,"ANGLE_UP","ui-btn-icon-angle-up");babelHelpers.defineProperty(ButtonIcon,"ANGLE_DOWN","ui-btn-icon-angle-down");babelHelpers.defineProperty(ButtonIcon,"EYE_OPENED","ui-btn-icon-eye-opened");babelHelpers.defineProperty(ButtonIcon,"EYE_CLOSED","ui-btn-icon-eye-closed");babelHelpers.defineProperty(ButtonIcon,"ALERT","ui-btn-icon-alert");babelHelpers.defineProperty(ButtonIcon,"FAIL","ui-btn-icon-fail");babelHelpers.defineProperty(ButtonIcon,"SUCCESS","ui-btn-icon-success");babelHelpers.defineProperty(ButtonIcon,"PLAN","ui-btn-icon-plan");babelHelpers.defineProperty(ButtonIcon,"TARIFF","ui-btn-icon-tariff");babelHelpers.defineProperty(ButtonIcon,"BATTERY","ui-btn-icon-battery");babelHelpers.defineProperty(ButtonIcon,"NO_BATTERY","ui-btn-icon-no-battery");babelHelpers.defineProperty(ButtonIcon,"HALF_BATTERY","ui-btn-icon-half-battery");babelHelpers.defineProperty(ButtonIcon,"LOW_BATTERY","ui-btn-icon-low-battery");babelHelpers.defineProperty(ButtonIcon,"CRIT_BATTERY","ui-btn-icon-crit-battery");babelHelpers.defineProperty(ButtonIcon,"DEMO","ui-btn-icon-demo");babelHelpers.defineProperty(ButtonIcon,"ROBOTS","ui-btn-icon-robots");babelHelpers.defineProperty(ButtonIcon,"NOTE","ui-btn-icon-note");babelHelpers.defineProperty(ButtonIcon,"SCRIPT","ui-btn-icon-script");babelHelpers.defineProperty(ButtonIcon,"PRINT2","ui-btn-icon-print-2");babelHelpers.defineProperty(ButtonIcon,"FUNNEL","ui-btn-icon-funnel");babelHelpers.defineProperty(ButtonIcon,"FORWARD","ui-btn-icon-forward");babelHelpers.defineProperty(ButtonIcon,"COPY","ui-btn-icon-copy");babelHelpers.defineProperty(ButtonIcon,"AI","ui-btn-icon-ai ui-icon-set__scope");let ButtonState=function t(){babelHelpers.classCallCheck(this,t)};babelHelpers.defineProperty(ButtonState,"HOVER","ui-btn-hover");babelHelpers.defineProperty(ButtonState,"ACTIVE","ui-btn-active");babelHelpers.defineProperty(ButtonState,"DISABLED","ui-btn-disabled");babelHelpers.defineProperty(ButtonState,"CLOCKING","ui-btn-clock");babelHelpers.defineProperty(ButtonState,"WAITING","ui-btn-wait");babelHelpers.defineProperty(ButtonState,"AI_WAITING","ui-btn-ai-waiting");let ButtonStyle=function t(){babelHelpers.classCallCheck(this,t)};babelHelpers.defineProperty(ButtonStyle,"NO_CAPS","ui-btn-no-caps");babelHelpers.defineProperty(ButtonStyle,"ROUND","ui-btn-round");babelHelpers.defineProperty(ButtonStyle,"DROPDOWN","ui-btn-dropdown");babelHelpers.defineProperty(ButtonStyle,"COLLAPSED","ui-btn-collapsed");babelHelpers.defineProperty(ButtonStyle,"DEPEND_ON_THEME","ui-btn-themes");let Button=function(t){babelHelpers.inherits(e,t);function e(t){var n;babelHelpers.classCallCheck(this,e);t=main_core.Type.isPlainObject(t)?t:{};t.baseClass=main_core.Type.isStringFilled(t.baseClass)?t.baseClass:e.BASE_CLASS;n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).call(this,t));n.isDependOnTheme=null;n.size=null;n.color=null;n.icon=null;n.state=null;n.id=null;n.context=null;n.menuWindow=null;n.handleMenuClick=n.handleMenuClick.bind(babelHelpers.assertThisInitialized(n));n.handleMenuClose=n.handleMenuClose.bind(babelHelpers.assertThisInitialized(n));n.setDependOnTheme(n.options.dependOnTheme);n.setSize(n.options.size);n.setColor(n.options.color);n.setIcon(n.options.icon);n.setState(n.options.state);n.setId(n.options.id);n.setMenu(n.options.menu);n.setContext(n.options.context);n.options.noCaps&&n.setNoCaps();n.options.round&&n.setRound();if(n.options.dropdown||n.getMenuWindow()&&n.options.dropdown!==false){n.setDropdown()}return n}babelHelpers.createClass(e,[{key:"setSize",value:function t(e){return this.setProperty("size",e,ButtonSize)}},{key:"getSize",value:function t(){return this.size}},{key:"setColor",value:function t(e){return this.setProperty("color",e,ButtonColor)}},{key:"getColor",value:function t(){return this.color}},{key:"setIcon",value:function t(e){this.setProperty("icon",e,ButtonIcon);if(this.isInputType()&&this.getIcon()!==null){throw new Error("BX.UI.Button: Input type button cannot have an icon.")}return this}},{key:"getIcon",value:function t(){return this.icon}},{key:"setState",value:function t(e){return this.setProperty("state",e,ButtonState)}},{key:"getState",value:function t(){return this.state}},{key:"setNoCaps",value:function t(e){if(e===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.NO_CAPS)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.NO_CAPS)}return this}},{key:"isNoCaps",value:function t(){return main_core.Dom.hasClass(this.getContainer(),ButtonStyle.NO_CAPS)}},{key:"setRound",value:function t(e){if(e===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.ROUND)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.ROUND)}return this}},{key:"isRound",value:function t(){return main_core.Dom.hasClass(this.getContainer(),ButtonStyle.ROUND)}},{key:"setDependOnTheme",value:function t(e){if(e===true){main_core.Dom.addClass(this.getContainer(),ButtonStyle.DEPEND_ON_THEME)}else if(e===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.DEPEND_ON_THEME)}return this}},{key:"isDependOnTheme",value:function t(){if(flag===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.DEPEND_ON_THEME)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.DEPEND_ON_THEME)}return this}},{key:"setDropdown",value:function t(e){if(e===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.DROPDOWN)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.DROPDOWN)}return this}},{key:"isDropdown",value:function t(){return main_core.Dom.hasClass(this.getContainer(),ButtonStyle.DROPDOWN)}},{key:"setCollapsed",value:function t(e){if(e===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.COLLAPSED)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.COLLAPSED)}return this}},{key:"isCollapsed",value:function t(){return main_core.Dom.hasClass(this.getContainer(),ButtonStyle.COLLAPSED)}},{key:"setMenu",value:function t(e){if(main_core.Type.isPlainObject(e)&&main_core.Type.isArray(e.items)&&e.items.length>0){this.setMenu(false);this.menuWindow=new main_popup.Menu({id:`ui-btn-menu-${main_core.Text.getRandom().toLowerCase()}`,bindElement:this.getMenuBindElement(),...e});this.menuWindow.getPopupWindow().subscribe("onClose",this.handleMenuClose);main_core.Event.bind(this.getMenuClickElement(),"click",this.handleMenuClick)}else if(e===false&&this.menuWindow!==null){this.menuWindow.close();this.menuWindow.getPopupWindow().unsubscribe("onClose",this.handleMenuClose);main_core.Event.unbind(this.getMenuClickElement(),"click",this.handleMenuClick);this.menuWindow.destroy();this.menuWindow=null}return this}},{key:"getMenuBindElement",value:function t(){return this.getContainer()}},{key:"getMenuClickElement",value:function t(){return this.getContainer()}},{key:"handleMenuClick",value:function t(e){this.getMenuWindow().show();this.setActive(this.getMenuWindow().getPopupWindow().isShown())}},{key:"handleMenuClose",value:function t(){this.setActive(false)}},{key:"getMenuWindow",value:function t(){return this.menuWindow}},{key:"setId",value:function t(e){if(main_core.Type.isStringFilled(e)||main_core.Type.isNull(e)){this.id=e}return this}},{key:"getId",value:function t(){return this.id}},{key:"setActive",value:function t(e){return this.setState(e===false?null:ButtonState.ACTIVE)}},{key:"isActive",value:function t(){return this.getState()===ButtonState.ACTIVE}},{key:"setHovered",value:function t(e){return this.setState(e===false?null:ButtonState.HOVER)}},{key:"isHover",value:function t(){return this.getState()===ButtonState.HOVER}},{key:"setDisabled",value:function t(n){this.setState(n===false?null:ButtonState.DISABLED);babelHelpers.get(babelHelpers.getPrototypeOf(e.prototype),"setDisabled",this).call(this,n);return this}},{key:"isDisabled",value:function t(){return this.getState()===ButtonState.DISABLED}},{key:"setWaiting",value:function t(e){if(e===false){this.setState(null);this.setProps({disabled:null})}else{this.setState(ButtonState.WAITING);this.setProps({disabled:true})}return this}},{key:"isWaiting",value:function t(){return this.getState()===ButtonState.WAITING}},{key:"setClocking",value:function t(e){if(e===false){this.setState(null);this.setProps({disabled:null})}else{this.setState(ButtonState.CLOCKING);this.setProps({disabled:true})}return this}},{key:"isClocking",value:function t(){return this.getState()===ButtonState.CLOCKING}},{key:"setProperty",value:function t(e,n,o){if(this.isEnumValue(n,o)){main_core.Dom.removeClass(this.getContainer(),this[e]);main_core.Dom.addClass(this.getContainer(),n);this[e]=n}else if(n===null){main_core.Dom.removeClass(this.getContainer(),this[e]);this[e]=null}return this}},{key:"setContext",value:function t(e){if(!main_core.Type.isUndefined(e)){this.context=e}return this}},{key:"getContext",value:function t(){return this.context}}]);return e}(BaseButton);babelHelpers.defineProperty(Button,"BASE_CLASS","ui-btn");babelHelpers.defineProperty(Button,"Size",ButtonSize);babelHelpers.defineProperty(Button,"Color",ButtonColor);babelHelpers.defineProperty(Button,"State",ButtonState);babelHelpers.defineProperty(Button,"Icon",ButtonIcon);babelHelpers.defineProperty(Button,"Tag",ButtonTag);babelHelpers.defineProperty(Button,"Style",ButtonStyle);let SplitButtonState=function t(){babelHelpers.classCallCheck(this,t)};babelHelpers.defineProperty(SplitButtonState,"HOVER","ui-btn-hover");babelHelpers.defineProperty(SplitButtonState,"MAIN_HOVER","ui-btn-main-hover");babelHelpers.defineProperty(SplitButtonState,"MENU_HOVER","ui-btn-menu-hover");babelHelpers.defineProperty(SplitButtonState,"ACTIVE","ui-btn-active");babelHelpers.defineProperty(SplitButtonState,"MAIN_ACTIVE","ui-btn-main-active");babelHelpers.defineProperty(SplitButtonState,"MENU_ACTIVE","ui-btn-menu-active");babelHelpers.defineProperty(SplitButtonState,"DISABLED","ui-btn-disabled");babelHelpers.defineProperty(SplitButtonState,"MAIN_DISABLED","ui-btn-main-disabled");babelHelpers.defineProperty(SplitButtonState,"MENU_DISABLED","ui-btn-menu-disabled");babelHelpers.defineProperty(SplitButtonState,"CLOCKING","ui-btn-clock");babelHelpers.defineProperty(SplitButtonState,"WAITING","ui-btn-wait");let SplitSubButtonType=function t(){babelHelpers.classCallCheck(this,t)};babelHelpers.defineProperty(SplitSubButtonType,"MAIN","ui-btn-main");babelHelpers.defineProperty(SplitSubButtonType,"MENU","ui-btn-menu");let SplitSubButton=function(t){babelHelpers.inherits(e,t);function e(t){var n;babelHelpers.classCallCheck(this,e);t=main_core.Type.isPlainObject(t)?t:{};t.baseClass=t.buttonType===SplitSubButtonType.MAIN?SplitSubButtonType.MAIN:SplitSubButtonType.MENU;n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).call(this,t));if(n.isInputType()){throw new Error("BX.UI.SplitSubButton: Split button cannot be an input tag.")}return n}babelHelpers.createClass(e,[{key:"init",value:function t(){this.buttonType=this.options.buttonType;this.splitButton=this.options.splitButton;babelHelpers.get(babelHelpers.getPrototypeOf(e.prototype),"init",this).call(this)}},{key:"getSplitButton",value:function t(){return this.splitButton}},{key:"isMainButton",value:function t(){return this.buttonType===SplitSubButtonType.MAIN}},{key:"isMenuButton",value:function t(){return this.buttonType===SplitSubButtonType.MENU}},{key:"setText",value:function t(n){if(main_core.Type.isString(n)&&this.isMenuButton()){throw new Error("BX.UI.SplitButton: a menu button doesn't support a text caption.")}return babelHelpers.get(babelHelpers.getPrototypeOf(e.prototype),"setText",this).call(this,n)}},{key:"setActive",value:function t(e){this.toggleState(e,SplitButtonState.ACTIVE,SplitButtonState.MAIN_ACTIVE,SplitButtonState.MENU_ACTIVE);return this}},{key:"isActive",value:function t(){const e=this.getSplitButton().getState();if(e===SplitButtonState.ACTIVE){return true}if(this.isMainButton()){return e===SplitButtonState.MAIN_ACTIVE}return e===SplitButtonState.MENU_ACTIVE}},{key:"setDisabled",value:function t(n){this.toggleState(n,SplitButtonState.DISABLED,SplitButtonState.MAIN_DISABLED,SplitButtonState.MENU_DISABLED);babelHelpers.get(babelHelpers.getPrototypeOf(e.prototype),"setDisabled",this).call(this,n);return this}},{key:"setHovered",value:function t(e){this.toggleState(e,SplitButtonState.HOVER,SplitButtonState.MAIN_HOVER,SplitButtonState.MENU_HOVER);return this}},{key:"isHovered",value:function t(){const e=this.getSplitButton().getState();if(e===SplitButtonState.HOVER){return true}if(this.isMainButton()){return e===SplitButtonState.MAIN_HOVER}return e===SplitButtonState.MENU_HOVER}},{key:"toggleState",value:function t(e,n,o,i){const s=this.getSplitButton().getState();if(e===false){if(s===n){this.getSplitButton().setState(this.isMainButton()?i:o)}else{this.getSplitButton().setState(null)}}else{if(s===o&&this.isMenuButton()){this.getSplitButton().setState(n)}else if(s===i&&this.isMainButton()){this.getSplitButton().setState(n)}else if(s!==n){this.getSplitButton().setState(this.isMainButton()?o:i)}}}}]);return e}(BaseButton);babelHelpers.defineProperty(SplitSubButton,"Type",SplitSubButtonType);let _$1=t=>t,_t$1;let SplitButton=function(t){babelHelpers.inherits(e,t);function e(t){babelHelpers.classCallCheck(this,e);t=main_core.Type.isPlainObject(t)?t:{};if(main_core.Type.isStringFilled(t.link)){t.mainButton=main_core.Type.isPlainObject(t.mainButton)?t.mainButton:{};t.mainButton.link=t.link;delete t.link}t.tag=ButtonTag.DIV;t.baseClass=e.BASE_CLASS;return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).call(this,t))}babelHelpers.createClass(e,[{key:"init",value:function t(){const n=main_core.Type.isPlainObject(this.options.mainButton)?this.options.mainButton:{};const o=main_core.Type.isPlainObject(this.options.menuButton)?this.options.menuButton:{};n.buttonType=SplitSubButtonType.MAIN;n.splitButton=this;o.buttonType=SplitSubButtonType.MENU;o.splitButton=this;this.mainButton=new SplitSubButton(n);this.menuButton=new SplitSubButton(o);this.menuTarget=SplitSubButtonType.MAIN;if(this.options.menuTarget===SplitSubButtonType.MENU){this.menuTarget=SplitSubButtonType.MENU}babelHelpers.get(babelHelpers.getPrototypeOf(e.prototype),"init",this).call(this)}},{key:"getContainer",value:function t(){if(this.button===null){this.button=main_core.Tag.render(_t$1||(_t$1=_$1`
				<div class="${0}">${0}</div>
			`),this.getBaseClass(),[this.getMainButton().getContainer(),this.getMenuButton().getContainer()])}return this.button}},{key:"getMainButton",value:function t(){return this.mainButton}},{key:"getMenuButton",value:function t(){return this.menuButton}},{key:"setText",value:function t(e){if(main_core.Type.isString(e)){this.getMainButton().setText(e)}return this}},{key:"getText",value:function t(){return this.getMainButton().getText()}},{key:"setCounter",value:function t(e){return this.getMainButton().setCounter(e)}},{key:"getCounter",value:function t(){return this.getMainButton().getCounter()}},{key:"setLink",value:function t(e){return this.getMainButton().setLink(e)}},{key:"getLink",value:function t(){return this.getMainButton().getLink()}},{key:"setState",value:function t(e){return this.setProperty("state",e,SplitButtonState)}},{key:"setDisabled",value:function t(e){this.setState(e===false?null:ButtonState.DISABLED);this.getMainButton().setDisabled(e);this.getMenuButton().setDisabled(e);return this}},{key:"getMenuBindElement",value:function t(){if(this.getMenuTarget()===SplitSubButtonType.MENU){return this.getMenuButton().getContainer()}else{return this.getContainer()}}},{key:"handleMenuClick",value:function t(e){this.getMenuWindow().show();const n=this.getMenuWindow().getPopupWindow().isShown();this.getMenuButton().setActive(n)}},{key:"handleMenuClose",value:function t(){this.getMenuButton().setActive(false)}},{key:"getMenuClickElement",value:function t(){return this.getMenuButton().getContainer()}},{key:"getMenuTarget",value:function t(){return this.menuTarget}},{key:"setDropdown",value:function t(e){return this}},{key:"isDropdown",value:function t(){return true}}]);return e}(Button);babelHelpers.defineProperty(SplitButton,"BASE_CLASS","ui-btn-split");babelHelpers.defineProperty(SplitButton,"State",SplitButtonState);let _$2=t=>t,_t$2;function _classStaticPrivateMethodGet(t,e,n){_classCheckPrivateStaticAccess(t,e);return n}function _classCheckPrivateStaticAccess(t,e){if(t!==e){throw new TypeError("Private static access of wrong provenance")}}let ButtonManager=function(){function t(){babelHelpers.classCallCheck(this,t)}babelHelpers.createClass(t,null,[{key:"createFromNode",value:function e(n){if(!main_core.Type.isDomNode(n)){throw new Error('BX.UI.ButtonManager.createFromNode: "node" must be a DOM node.')}if(!main_core.Dom.hasClass(n,Button.BASE_CLASS)&&!main_core.Dom.hasClass(n,SplitButton.BASE_CLASS)){throw new Error('BX.UI.ButtonManager.createFromNode: "node" is not a button.')}const o=main_core.Dom.hasClass(n,SplitButton.BASE_CLASS);let i=null;let s=null;let r=null;let l=null;let a=false;let u={};let c={};if(o){const e=n.querySelector(`.${SplitSubButtonType.MAIN}`);const o=n.querySelector(`.${SplitSubButtonType.MENU}`);if(!e){throw new Error("BX.UI.ButtonManager.createFromNode: a split button doesn't have a main button.")}if(!o){throw new Error("BX.UI.ButtonManager.createFromNode: a split button doesn't have a menu button.")}const i=_classStaticPrivateMethodGet(this,t,_getTag).call(this,e);if(i===ButtonTag.INPUT||i===ButtonTag.SUBMIT){s=e.value}else{[r,l]=_classStaticPrivateMethodGet(this,t,_getTextNode).call(this,e);s=r.textContent}a=main_core.Dom.hasClass(n,SplitButtonState.DISABLED);u={tag:i,textNode:r,counterNode:l,buttonNode:e,disabled:main_core.Dom.hasClass(n,SplitButtonState.MAIN_DISABLED)};c={tag:_classStaticPrivateMethodGet(this,t,_getTag).call(this,o),buttonNode:o,textNode:null,counterNode:null,disabled:main_core.Dom.hasClass(n,SplitButtonState.MENU_DISABLED)}}else{i=_classStaticPrivateMethodGet(this,t,_getTag).call(this,n);if(i===null){throw new Error('BX.UI.ButtonManager.createFromNode: "node" must be a button, link or input.')}a=main_core.Dom.hasClass(n,ButtonState.DISABLED);if(i===ButtonTag.INPUT||i===ButtonTag.SUBMIT){s=n.value}else{[r,l]=_classStaticPrivateMethodGet(this,t,_getTextNode).call(this,n);s=r.textContent}}const p={id:n.dataset.btnUniqid,buttonNode:n,textNode:o?null:r,counterNode:o?null:l,counter:_classStaticPrivateMethodGet(this,t,_getCounter).call(this,l),tag:i,text:s,disabled:a,mainButton:u,menuButton:c,size:_classStaticPrivateMethodGet(this,t,_getEnumProp).call(this,n,ButtonSize),color:_classStaticPrivateMethodGet(this,t,_getEnumProp).call(this,n,ButtonColor),icon:_classStaticPrivateMethodGet(this,t,_getEnumProp).call(this,n,ButtonIcon),state:_classStaticPrivateMethodGet(this,t,_getEnumProp).call(this,n,o?SplitButtonState:ButtonState),noCaps:main_core.Dom.hasClass(n,ButtonStyle.NO_CAPS),round:main_core.Dom.hasClass(n,ButtonStyle.ROUND)};const b=main_core.Dom.attr(n,"data-json-options")||{};if(main_core.Dom.hasClass(n,ButtonStyle.DROPDOWN)){p.dropdown=true}else if(b.dropdown===false){p.dropdown=false}if(b.onclick){p.onclick=_classStaticPrivateMethodGet(this,t,_convertEventHandler).call(this,b.onclick)}if(main_core.Type.isPlainObject(b.events)){p.events=b.events;_classStaticPrivateMethodGet(this,t,_convertEvents).call(this,p.events)}if(main_core.Type.isPlainObject(b.menu)){p.menu=b.menu;_classStaticPrivateMethodGet(this,t,_convertMenuEvents).call(this,p.menu.items)}["mainButton","menuButton"].forEach((e=>{if(!main_core.Type.isPlainObject(b[e])){return}p[e]=main_core.Runtime.merge(p[e],b[e]);if(p[e].onclick){p[e].onclick=_classStaticPrivateMethodGet(this,t,_convertEventHandler).call(this,p[e].onclick)}_classStaticPrivateMethodGet(this,t,_convertEvents).call(this,p[e].events)}));if(main_core.Type.isStringFilled(b.menuTarget)){p.menuTarget=b.menuTarget}return o?new SplitButton(p):new Button(p)}},{key:"createByUniqId",value:function t(e){if(!main_core.Type.isStringFilled(e)){return null}const n=document.querySelector(`[data-btn-uniqid="${e}"]`);return n?this.createFromNode(n):null}},{key:"getByUniqid",value:function t(e){const n=BX.UI.ToolbarManager.getDefaultToolbar();return n?n.getButton(e):null}}]);return t}();function _getTag(t){if(t.nodeName==="A"){return ButtonTag.LINK}else if(t.nodeName==="BUTTON"){return ButtonTag.BUTTON}else if(t.nodeName==="INPUT"&&t.type==="button"){return ButtonTag.INPUT}else if(t.nodeName==="INPUT"&&t.type==="submit"){return ButtonTag.SUBMIT}return null}function _getTextNode(t){let e=t.querySelector(".ui-btn-text");const n=t.querySelector(".ui-btn-counter");if(!e){if(n){main_core.Dom.remove(n)}e=main_core.Tag.render(_t$2||(_t$2=_$2`<span class="ui-btn-text">${0}</span>`),t.innerHTML.trim());main_core.Dom.clean(t);main_core.Dom.append(e,t);if(n){main_core.Dom.append(n,t)}}return[e,n]}function _getCounter(t){if(main_core.Type.isDomNode(t)){const e=t.textContent;const n=Number(e);return main_core.Type.isNumber(n)?n:e}return null}function _getEnumProp(t,e){for(let n in e){if(!e.hasOwnProperty(n)){continue}if(main_core.Dom.hasClass(t,e[n])){return e[n]}}return null}function _convertEventHandler(handler){if(main_core.Type.isFunction(handler)){return handler}if(!main_core.Type.isObject(handler)){throw new Error("BX.UI.ButtonManager.createFromNode: Event handler must be described as object or function.")}if(main_core.Type.isStringFilled(handler.code)){return function(){eval(handler.code)}}else if(main_core.Type.isStringFilled(handler.event)){return function(...t){let e;if(t[0]instanceof main_core_events.BaseEvent){e=t[0]}else{if(t[0]instanceof BaseButton){e=new main_core_events.BaseEvent({data:{button:t[0],event:t[1]}})}else if(t[1]instanceof main_popup.MenuItem){e=new main_core_events.BaseEvent({data:{item:t[1],event:t[0]}})}else{e=new main_core_events.BaseEvent({data:t})}}main_core_events.EventEmitter.emit(handler.event,e)}}else if(main_core.Type.isStringFilled(handler.handler)){return function(...t){const e=main_core.Reflection.getClass(handler.handler);if(main_core.Type.isFunction(e)){let n=this;if(main_core.Type.isStringFilled(handler.context)){n=main_core.Reflection.getClass(handler.context)}return e.apply(n,t)}else{console.warn(`BX.UI.ButtonManager.createFromNode: be aware, the handler ${handler.handler} is not a function.`)}return null}}return null}function _convertEvents(t){if(main_core.Type.isPlainObject(t)){for(let[e,n]of Object.entries(t)){t[e]=_classStaticPrivateMethodGet(this,ButtonManager,_convertEventHandler).call(this,n)}}}function _convertMenuEvents(t){if(!main_core.Type.isArray(t)){return}t.forEach((t=>{if(t.onclick){t.onclick=_classStaticPrivateMethodGet(this,ButtonManager,_convertEventHandler).call(this,t.onclick)}if(t.events){_classStaticPrivateMethodGet(this,ButtonManager,_convertEvents).call(this,t.events)}if(main_core.Type.isArray(t.items)){_classStaticPrivateMethodGet(this,ButtonManager,_convertMenuEvents).call(this,t.items)}}))}let IButton=function(){function t(){babelHelpers.classCallCheck(this,t)}babelHelpers.createClass(t,[{key:"render",value:function t(){throw new Error("BX.UI.IButton: Must be implemented by a subclass")}}]);return t}();let AddButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_ADD_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return e}(Button);let ApplyButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_APPLY_BTN_TEXT"),color:ButtonColor.LIGHT_BORDER}}}]);return e}(Button);let CancelButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CANCEL_BTN_TEXT"),color:ButtonColor.LINK}}}]);return e}(Button);let CloseButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CLOSE_BTN_TEXT"),color:ButtonColor.LINK}}}]);return e}(Button);let CreateButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CREATE_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return e}(Button);let SaveButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_SAVE_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return e}(Button);let SendButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_SEND_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return e}(Button);let SettingsButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{icon:ButtonIcon.SETTING,color:ButtonColor.LIGHT_BORDER,dropdown:false}}}]);return e}(Button);let AddSplitButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_ADD_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return e}(SplitButton);let ApplySplitButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_APPLY_BTN_TEXT"),color:ButtonColor.LIGHT_BORDER}}}]);return e}(SplitButton);let CancelSplitButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CANCEL_BTN_TEXT"),color:ButtonColor.LINK}}}]);return e}(SplitButton);let CloseSplitButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CLOSE_BTN_TEXT"),color:ButtonColor.LINK}}}]);return e}(SplitButton);let CreateSplitButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CREATE_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return e}(SplitButton);let SaveSplitButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_SAVE_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return e}(SplitButton);let SendSplitButton=function(t){babelHelpers.inherits(e,t);function e(){babelHelpers.classCallCheck(this,e);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).apply(this,arguments))}babelHelpers.createClass(e,[{key:"getDefaultOptions",value:function t(){return{text:main_core.Loc.getMessage("UI_BUTTONS_SEND_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return e}(SplitButton);exports.IButton=IButton;exports.BaseButton=BaseButton;exports.Button=Button;exports.SplitButton=SplitButton;exports.SplitSubButton=SplitSubButton;exports.ButtonManager=ButtonManager;exports.ButtonIcon=ButtonIcon;exports.ButtonSize=ButtonSize;exports.ButtonState=ButtonState;exports.ButtonColor=ButtonColor;exports.ButtonStyle=ButtonStyle;exports.ButtonTag=ButtonTag;exports.SplitButtonState=SplitButtonState;exports.SplitSubButtonType=SplitSubButtonType;exports.AddButton=AddButton;exports.ApplyButton=ApplyButton;exports.CancelButton=CancelButton;exports.CloseButton=CloseButton;exports.CreateButton=CreateButton;exports.SaveButton=SaveButton;exports.SendButton=SendButton;exports.SettingsButton=SettingsButton;exports.AddSplitButton=AddSplitButton;exports.ApplySplitButton=ApplySplitButton;exports.CancelSplitButton=CancelSplitButton;exports.CloseSplitButton=CloseSplitButton;exports.CreateSplitButton=CreateSplitButton;exports.SaveSplitButton=SaveSplitButton;exports.SendSplitButton=SendSplitButton})(this.BX.UI=this.BX.UI||{},BX.Event,BX.Main,BX);
//# sourceMappingURL=ui.buttons.bundle.map.js