Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/short-view/dist/ |
Upload File : |
this.BX=this.BX||{};this.BX.UI=this.BX.UI||{};(function(t,e,i,o,r){"use strict";class h extends i.EventEmitter{constructor(t){super(t);this.setEventNamespace("BX.UI.ShortView");this.setShortView(t.isShortView);this.node=null}renderTo(t){if(!e.Type.isDomNode(t)){throw new Error("UI ShortView: HTMLElement not found")}e.Dom.append(this.render(),t)}render(){const t=this.getShortView()==="Y";this.node=new o.SplitButton({text:e.Loc.getMessage("UI_SHORT_VIEW_LABEL"),round:true,size:o.ButtonSize.SMALL,color:o.ButtonColor.LIGHT_BORDER,className:"ui-btn-themes",mainButton:{onclick:(t,e)=>{e.preventDefault();this.node.getSwitcher().toggle()}},switcher:{checked:t,color:r.SwitcherColor.primary,handlers:{toggled:()=>this.onChange()}}});return this.node.render()}setShortView(t){this.shortView=t==="Y"?"Y":"N"}getShortView(){return this.shortView}onChange(){this.setShortView(this.node.getSwitcher().isChecked()?"Y":"N");this.emit("change",this.getShortView())}}t.ShortView=h})(this.BX.UI.ShortView=this.BX.UI.ShortView||{},BX,BX.Event,BX.UI,BX.UI); //# sourceMappingURL=short.view.bundle.map.js