Your IP : 3.144.104.118


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

this.BX=this.BX||{};this.BX.UI=this.BX.UI||{};(function(a,e){"use strict";let t=a=>a,i;class n{constructor(a){this.manualCode=e.Type.isString(a.manualCode)?a.manualCode:"";this.width=e.Type.isNumber(a.width)?a.width:1e3;this.urlParams=e.Type.isPlainObject(a.urlParams)?a.urlParams:{};this.analyticsLabel=e.Type.isPlainObject(a.analyticsLabel)?a.analyticsLabel:null;this.analytics=e.Type.isPlainObject(a.analytics)?a.analytics:null;this.sidePanelId=`manual-side-panel-${this.manualCode}`}static show(...a){let t;let i;let s;let l;if(e.Type.isPlainObject(a[0])&&a.length===1){({manualCode:t,urlParams:i={},analyticsLabel:s=null,analytics:l=null}=a[0])}else{[t,i,s,l]=a}const r=new n({manualCode:t,urlParams:i,analyticsLabel:s,analytics:l});r.open()}open(){if(this.isOpen()){return}BX.SidePanel.Instance.open(this.sidePanelId,{contentCallback:()=>this.createFrame(),width:this.width})}createFrame(){const a={data:{manualCode:this.manualCode,urlParams:this.urlParams}};if(this.analyticsLabel){a.analyticsLabel=this.analyticsLabel}else if(this.analytics){a.analytics=this.analytics}return new Promise(((t,i)=>{e.ajax.runAction("ui.manual.getInitParams",a).then((a=>{t(this.renderFrame(a.data.url))}))}))}renderFrame(a){const n="position: absolute; left: 0; top: 0; padding: 0;"+" border: none; margin: 0; width: 100%; height: 100%;";return e.Tag.render(i||(i=t`<iframe style="${0}" src="${0}"></iframe>`),n,a)}getSidePanel(){return BX.SidePanel.Instance.getSlider(this.sidePanelId)}isOpen(){return this.getSidePanel()&&this.getSidePanel().isOpen()}}a.Manual=n})(this.BX.UI.Manual=this.BX.UI.Manual||{},BX);
//# sourceMappingURL=manual.bundle.map.js