Your IP : 3.16.203.9


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/rest/app-form/dist/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/rest/app-form/dist/app-form.bundle.js.map

{"version":3,"file":"app-form.bundle.js","sources":["../src/providers/provider.js","../src/providers/config-provider.js","../src/providers/event-type.js","../src/app-form.js"],"sourcesContent":["export class Provider\n{\n\tfetch(): Promise\n\t{\n\t\treturn new Promise();\n\t}\n}\n","import { ajax } from 'main.core';\nimport type { EventType } from './event-type';\nimport { Provider } from './provider';\n\nexport class ConfigProvider extends Provider\n{\n\t#clientId: string;\n\t#type: EventType;\n\n\tconstructor(clientId: string, eventType: EventType)\n\t{\n\t\tsuper();\n\t\tthis.#clientId = clientId;\n\t\tthis.#type = eventType;\n\t}\n\n\tfetch(): Promise\n\t{\n\t\treturn ajax.runAction('rest.controller.appform.getConfig', {\n\t\t\tdata: {\n\t\t\t\tclientId: this.#clientId,\n\t\t\t\ttype: this.#type,\n\t\t\t},\n\t\t});\n\t}\n}\n","export const EventType = {\n\tINSTALL: 'OnAppSettingsInstall',\n\tCHANGE: 'OnAppSettingsChange',\n\tDISPLAY: 'OnAppSettingsDisplay',\n};\n","import { ConfigProvider } from './providers/config-provider';\nimport { EventType } from './providers/event-type';\nimport { Loader } from 'main.loader';\n\nexport type FormConfig = {\n\tconfig: string\n}\n\nexport class AppForm\n{\n\t#url = '/marketplace/app/settings/';\n\t#width = 575;\n\t#options: FormConfig;\n\n\tconstructor(options: FormConfig)\n\t{\n\t\tthis.#options = options;\n\t}\n\n\tshow(): void\n\t{\n\t\ttop.BX.SidePanel.Instance.open(this.#url, {\n\t\t\twidth: this.#width,\n\t\t\trequestMethod: 'post',\n\t\t\trequestParams: this.#options,\n\t\t\tallowChangeHistory: false,\n\t\t});\n\t}\n\n\tstatic sliderLoader()\n\t{\n\t\ttop.BX.SidePanel.Instance.open('rest:app-form.loader', {\n\t\t\twidth: 575,\n\t\t\tcontentCallback: (slider) => {\n\t\t\t\tconst loader = new Loader({\n\t\t\t\t\ttarget: slider.getFrameWindow(),\n\t\t\t\t});\n\n\t\t\t\treturn loader.show();\n\t\t\t},\n\t\t\trequestMethod: 'post',\n\t\t\tallowChangeHistory: false,\n\t\t});\n\t}\n\n\tstatic buildByApp(clientId: string, eventType: EventType): Promise\n\t{\n\t\tconst provider = new ConfigProvider(clientId, eventType);\n\n\t\treturn provider.fetch().then((response) => {\n\t\t\treturn (new AppForm(response.data));\n\t\t});\n\t}\n\n\tstatic buildByAppWithLoader(clientId: string, eventType: EventType): Promise\n\t{\n\t\tconst provider = new ConfigProvider(clientId, eventType);\n\t\tAppForm.sliderLoader();\n\n\t\treturn provider.fetch().then((response) => {\n\t\t\ttop.BX.SidePanel.Instance.close(true);\n\t\t\ttop.BX.SidePanel.Instance.destroy('loader');\n\n\t\t\treturn (new AppForm(response.data));\n\t\t});\n\t}\n}\n\nexport {\n\tEventType,\n};\n"],"names":["Provider","Promise","ConfigProvider","clientId","eventType","ajax","runAction","data","type","EventType","INSTALL","CHANGE","DISPLAY","AppForm","options","_classPrivateFieldInitSpec","top","BX","SidePanel","Instance","open","width","requestMethod","requestParams","allowChangeHistory","contentCallback","slider","loader","Loader","target","getFrameWindow","show","provider","fetch","then","response","sliderLoader","close","destroy"],"mappings":";;;;;KAAaA,QAAQ;GAAA;KAAA;;GAAA;KAAA;KAAA,wBAGpB;OACC,OAAO,IAAIC,OAAO,EAAE;;;GACpB;CAAA;;;;ACLF,CAEsC;CAAA;AAEtC,KAAaC,cAAc;GAAA;GAK1B,wBAAYC,QAAgB,EAAEC,SAAoB,EAClD;KAAA;KAAA;KACC;KAAQ;OAAA;OAAA;;KAAA;OAAA;OAAA;;KACR,wFAAiBD,QAAQ;KACzB,oFAAaC,SAAS;KAAC;;GACvB;KAAA;KAAA,wBAGD;OACC,OAAOC,cAAI,CAACC,SAAS,CAAC,mCAAmC,EAAE;SAC1DC,IAAI,EAAE;WACLJ,QAAQ,oCAA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