403Webshell
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/cvetdv.ru/bitrix/js/landing/ui/panel/alert/dist/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/landing/ui/panel/alert/dist/alert.bundle.js.map
{"version":3,"file":"alert.bundle.js","sources":["../src/alert.js"],"sourcesContent":["import {Dom, Tag, Cache} from 'main.core';\nimport {Loc} from 'landing.loc';\nimport {BasePanel} from 'landing.ui.panel.base';\n\nimport './css/style.css';\n\n/**\n * Implements interface for works with alert panel\n * use this panel for show error and info messages\n *\n * Implements singleton design pattern. Don't use it as constructor\n * use BX.Landing.UI.Panel.Alert.getInstance() for get instance of module\n * @memberOf BX.Landing.UI.Panel\n */\nexport class Alert extends BasePanel\n{\n\tstatic staticCache = new Cache.MemoryCache();\n\n\tstatic getInstance(): Alert\n\t{\n\t\treturn this.staticCache.remember('instance', () => {\n\t\t\treturn new Alert();\n\t\t});\n\t}\n\n\tconstructor(options = {})\n\t{\n\t\tsuper(options);\n\t\tthis.cache = new Cache.MemoryCache();\n\t\tthis.onCloseClick = this.onCloseClick.bind(this);\n\t\tthis.text = this.getText();\n\t\tthis.closeButton = this.getCloseButton();\n\t\tthis.action = this.getAction();\n\n\t\tDom.addClass(this.layout, 'landing-ui-panel-alert');\n\n\t\tDom.append(this.text, this.layout);\n\t\tDom.append(this.action, this.layout);\n\t\tDom.append(this.layout, document.body);\n\t}\n\n\tgetText(): HTMLDivElement\n\t{\n\t\treturn this.cache.remember('text', () => {\n\t\t\treturn Tag.render`<div class=\"landing-ui-panel-alert-text\"></div>`;\n\t\t});\n\t}\n\n\tgetCloseButton(): HTMLButtonElement\n\t{\n\t\treturn this.cache.remember('closeButton', () => {\n\t\t\tconst text = Loc.getMessage('LANDING_ALERT_ACTION_CLOSE');\n\t\t\treturn Tag.render`\n\t\t\t\t<button class=\"ui-btn ui-btn-link\" onclick=\"${this.onCloseClick}\">${text}</button>\n\t\t\t`;\n\t\t});\n\t}\n\n\tgetAction(): HTMLDivElement\n\t{\n\t\treturn this.cache.remember('action', () => {\n\t\t\treturn Tag.render`<div class=\"landing-ui-panel-alert-action\">${this.getCloseButton()}</div>`;\n\t\t});\n\t}\n\n\tshow(type, text, hideSupportLink = false): Promise<Alert>\n\t{\n\t\tlet promise = Promise.resolve(this);\n\n\t\tif (this.isShown())\n\t\t{\n\t\t\tpromise = this.hide();\n\t\t}\n\n\t\treturn promise.then(() => {\n\t\t\tvoid super.show(this);\n\n\t\t\tif (type === 'error')\n\t\t\t{\n\t\t\t\tDom.removeClass(this.layout, 'landing-ui-alert');\n\t\t\t\tDom.addClass(this.layout, 'landing-ui-error');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tDom.removeClass(this.layout, 'landing-ui-error');\n\t\t\t\tDom.addClass(this.layout, 'landing-ui-alert');\n\t\t\t}\n\n\t\t\tthis.text.innerHTML = `${text || type} `;\n\n\t\t\tif (!hideSupportLink)\n\t\t\t{\n\t\t\t\tDom.append(this.getSupportLink(), this.text);\n\t\t\t}\n\n\t\t\treturn this;\n\t\t});\n\t}\n\n\tgetSupportLink(): HTMLAnchorElement\n\t{\n\t\treturn this.cache.remember('supportLink', () => {\n\t\t\tlet url = 'https://helpdesk.bitrix24.com/ticket.php';\n\n\t\t\tswitch (Loc.getMessage('LANGUAGE_ID'))\n\t\t\t{\n\t\t\t\tcase 'ru':\n\t\t\t\tcase 'by':\n\t\t\t\tcase 'kz':\n\t\t\t\t\turl = 'https://helpdesk.bitrix24.ru/ticket.php';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'de':\n\t\t\t\t\turl = 'https://helpdesk.bitrix24.de/ticket.php';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'br':\n\t\t\t\t\turl = 'https://helpdesk.bitrix24.com.br/ticket.php';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'es':\n\t\t\t\t\turl = 'https://helpdesk.bitrix24.es/ticket.php';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t}\n\n\t\t\tthis.supportLink = BX.create('a', {\n\t\t\t\tprops: {className: 'landing-ui-panel-alert-support-link'},\n\t\t\t\thtml: BX.Landing.Loc.getMessage('LANDING_ALERT_ACTION_SUPPORT_LINK'),\n\t\t\t\tattrs: {href: url, target: '_blank'},\n\t\t\t});\n\n\t\t\tconst text = Loc.getMessage('LANDING_ALERT_ACTION_SUPPORT_LINK');\n\t\t\treturn Tag.render`\n\t\t\t\t<a href=\"${url}\" target=\"_blank\" class=\"landing-ui-panel-alert-support-link\">${text}</a>\n\t\t\t`;\n\t\t});\n\t}\n\n\tonCloseClick()\n\t{\n\t\tvoid this.hide();\n\t}\n}"],"names":["Alert","staticCache","remember","options","cache","Cache","MemoryCache","onCloseClick","bind","text","getText","closeButton","getCloseButton","action","getAction","Dom","addClass","layout","append","document","body","Tag","render","Loc","getMessage","type","hideSupportLink","promise","Promise","resolve","isShown","hide","then","removeClass","innerHTML","getSupportLink","url","supportLink","BX","create","props","className","html","Landing","attrs","href","target","BasePanel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMA;;;;;;;;;AAQA,KAAaA,KAAb;CAAA;CAAA;CAAA;CAAA,kCAKC;CACC,aAAO,KAAKC,WAAL,CAAiBC,QAAjB,CAA0B,UAA1B,EAAsC,YAAM;CAClD,eAAO,IAAIF,KAAJ,EAAP;CACA,OAFM,CAAP;CAGA;CATF;;CAWC,mBACA;CAAA;;CAAA,QADYG,OACZ,uEADsB,EACtB;CAAA;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