| Current Path : /var/www/homesaver/www/bitrix/modules/security/install/js/security/admin/ |
| Current File : /var/www/homesaver/www/bitrix/modules/security/install/js/security/admin/popup_wwall.min.js |
BX.namespace("BX.SecurityWwallPopup");BX.SecurityWwallPopup=function(t){this.isSuccess=BX.type.isBoolean(t.isSuccess)?t.isSuccess:false;this.isPortal=BX.type.isBoolean(t.isPortal)?t.isPortal:false};BX.SecurityWwallPopup.prototype={setContent:function(){var t=BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_title-box"},children:[BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_title"},text:BX.message("SEC_WWALL_POPUP_TITLE")}),BX.Dom.create({tag:"a",attrs:{href:"https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=35&LESSON_ID=27172",target:"_blank"},props:{classList:"tooltip adm-security-popup_tooltip adm-security-info_link"},text:BX.message("SEC_WWALL_POPUP_TITLE_ABOUT")})]});var s=BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_wrap"},children:[t,BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_content"},children:[BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_icon"}}),BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_inner"},children:[BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_inner-title"},text:BX.message("SEC_WWALL_POPUP_ATTACK_TITLE")}),BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_info"},text:BX.message("SEC_WWALL_POPUP_ATTACK_CONTENT")})]})]})]});return s},setWarningContent:function(){var t=BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_title-box"},children:[BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_title"},text:BX.message("SEC_WWALL_POPUP_TITLE")}),BX.Dom.create({tag:"a",attrs:{href:"https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=35&LESSON_ID=27172",target:"_blank"},props:{classList:"tooltip adm-security-popup_tooltip adm-security-info_link"},text:BX.message("SEC_WWALL_POPUP_TITLE_ABOUT")})]});var s=BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_wrap --warning"},children:[t,BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_content"},children:[BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_icon"}}),BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_inner"},children:[BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_inner-title"},html:this.isPortal?BX.message("SEC_WWALL_POPUP_WARNING_TITLE_CP"):BX.message("SEC_WWALL_POPUP_WARNING_TITLE")}),BX.Dom.create({tag:"div",props:{classList:"adm-security-popup_info"},text:this.isPortal?BX.message("SEC_WWALL_POPUP_WARNING_CONTENT_CP"):BX.message("SEC_WWALL_POPUP_WARNING_CONTENT")})]})]})]});return s},show:function(){this.setContent();var t=new BX.PopupWindow({className:"adm-security-popup",closeIcon:true,contentBackground:"transparent",overlay:true,content:this.isSuccess?this.setContent():this.setWarningContent(),buttons:[new BX.PopupWindowButton({text:this.isSuccess?BX.message("SEC_WWALL_POPUP_ACTION_OPEN"):BX.message("SEC_WWALL_POPUP_ACTION_UPDATE"),className:this.isSuccess?"adm-security-popup-btn-accept":"adm-security-popup-btn-refresh",events:{click:function(){document.location.href="/"}}}),new BX.PopupWindowButton({text:this.isSuccess?BX.message("SEC_WWALL_POPUP_ACTION_CONTINUE"):BX.message("SEC_WWALL_POPUP_ACTION_IGNORE"),className:"adm-security-popup-btn-close",events:{click:function(){t.destroy()}}})],events:{onPopupClose:function(){this.destroy()},onPopupDestroy:function(){t=null}}});t.show()}};
//# sourceMappingURL=popup_wwall.map.js