!function(){"use strict";const e={"version":2,"hostMap":{"ae":"www.bitrix24.ae","br":"www.bitrix24.com.br","by":"www.bitrix24.by","cn":"www.bitrix24.cn","de":"www.bitrix24.de","en":"www.bitrix24.com","eu":"www.bitrix24.eu","fr":"www.bitrix24.fr","hi":"www.bitrix24.in","id":"www.bitrix24.id","in":"www.bitrix24.in","it":"www.bitrix24.it","jp":"www.bitrix24.jp","kz":"www.bitrix24.kz","la":"www.bitrix24.es","ms":"www.bitrix24.com","pl":"www.bitrix24.pl","ru":"www.bitrix24.ru","th":"www.bitrix24.com","tr":"www.bitrix24.com.tr","ua":"www.bitrix24.ua","uz":"www.bitrix24.uz","vn":"www.bitrix24.vn","mx":"www.bitrix24.mx","co":"www.bitrix24.co","uk":"www.bitrix24.uk","md":"www.bitrix24.com"},"resources":{"application":{"namespace":"BX.SB.Landing.Prices.Intranet.Table.Application","scripts":["\/\/www.bitrix24.uz\/local\/components\/sb\/price.table.bitrix24\/js\/intranet.buy.table.application.min.js?v=1792584023"]},"manager":{"namespace":"BX.SB.Landing.Prices.Intranet.Table.Manager","scripts":["\/\/www.bitrix24.uz\/public\/js\/prices\/intranet\/v2\/js\/intranet.buy.table.manager.min.js?v=1791369420"]}}},t="data-sb-b24-table";class n{constructor(e){this.namespace=e,this.host=void 0}getVersion(){return e.version}getHostByZone(t){return Object.hasOwn(e.hostMap,t)?`//${e.hostMap[t]}`:null}getHost(){if(BX.Type.isUndefined(this.host)){const e=document.querySelector(`script[${t}]`),n=this.parseOptions(e).locationAreaId;this.host=BX.Type.isStringFilled(n)?this.getHostByZone(n):null}return this.host}parseOptions(e){try{return JSON.parse(e&&e.getAttribute(t)||"{}")||{}}catch{return{}}}loadScript(e){return new Promise(((t,n)=>{const r=BX.Dom.create("script",{attrs:{src:e,async:!0}});BX.Event.bind(r,"load",t),BX.Event.bind(r,"error",(()=>n(new Error(`Cannot load ${e}`)))),BX.Dom.append(r,document.head||document.documentElement)}))}loadResource(e){return BX.getClass(e.namespace)?Promise.resolve():e.scripts.reduce(((e,t)=>e.then((()=>this.loadScript(t)))),Promise.resolve())}run(){const{application:t,manager:n}=e.resources;this.loadResource(t).then((()=>this.loadResource(n))).then((()=>this.namespace.Manager.initFromScript())).catch((e=>console.error("BX.SB.Landing.Prices.Intranet.Table.Loader",e)))}}!function e(){window.BX&&window.BX.namespace?function(){const e=BX.namespace("BX.SB.Landing.Prices.Intranet.Table");e.Loader||(e.Loader=new n(e),e.Loader.run())}():"complete"===document.readyState?console.error("BX.SB.Landing.Prices.Intranet.Table.Loader: BX is not on the page"):setTimeout(e,100)}()}();