mzg8p8.classicar.biz
Open in
urlscan Pro
172.67.154.251
Public Scan
Submitted URL: http://mzg8p8.classicar.biz/modules/notifier/global.js?1719901700
Effective URL: https://mzg8p8.classicar.biz/modules/notifier/global.js?1719901700
Submission: On November 04 via api from US — Scanned from US
Effective URL: https://mzg8p8.classicar.biz/modules/notifier/global.js?1719901700
Submission: On November 04 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===e(i)?i:String(i)),o)}var i}var n=new Map,r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventList=[]}var n,r;return n=e,(r=[{key:"on",value:function(e,t){return this.eventList[e]||(this.eventList[e]=[]),this.eventList[e].push(t),this}},{key:"once",value:function(e,t){return this.eventList[e]||(this.eventList[e]=[],this.eventList[e].push(t)),this}},{key:"emit",value:function(e){this.eventList[e]&&this.eventList[e].forEach((function(e){return e.call(null)}))}}])&&t(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();const o=function(e){if(n.has(e))return n.get(e);var t=new r,o=!1,i=new MutationObserver((function(){var n=document.querySelector(e);!o&&n?(o=!0,t.emit("added")):o&&!n&&(o=!1,t.emit("removed"))})),a=document.documentElement||document.body;return i.observe(a,{childList:!0,subtree:!0}),n.set(e,t),t};var i=function(e,t){Jsw.UAT&&Jsw.UAT.dispatchAction(e,t)},a=Jsw.createElement;const l=function(){if(!document.querySelector(".pul-layout__header-addon")){var e=document.querySelector(".page-header-wrapper"),t=document.querySelector(".page-sidebar-wrapper"),n=e.querySelector(".page-header").offsetHeight;e.style.height="".concat(n,"px"),t&&(t.style.top="".concat(n,"px"))}};var s=Jsw.createElement;var c=Jsw.createElement;const u=function(e){var t=e.id,n=e.locale,r=e.data,o=r.ports,i=r.iconUrl,a=r.closeUrl,l=r.blockedUrl,s=r.firewallUrl,u=r.checkPortsUrl;if(n=new Jsw.Locale(n),!Array.isArray(o)||!o.length)return null;var p=function(e){var t=document.getElementById("plesk-ext-notifier-MailPorts-alert");if(t){var r=document.getElementById("plesk-ext-notifier-MailPorts-check"),o=document.getElementById("plesk-ext-notifier-MailPorts-icon"),i=document.getElementById("plesk-ext-notifier-MailPorts-close");e?(t.classList.add("plesk-ext-notifier-alert--loading"),r.innerHTML=n.lmsg("loading"),o.style.display="none",i.style.visibility="hidden"):(t.classList.remove("plesk-ext-notifier-alert--loading"),r.innerHTML=n.lmsg("recheckPorts"),o.style.display="",i.style.visibility="visible")}};return c(".plesk-ext-notifier-container#plesk-ext-notifier-MailPorts",c(".plesk-ext-notifier__status-message#plesk-ext-notifier-MailPorts-alert",[c("a.plesk-ext-notifier__status-message__close",{id:"plesk-ext-notifier-MailPorts-close",onclick:function(){var e=document.getElementById("plesk-ext-notifier-MailPorts");e.parentElement.removeChild(e),new Ajax.Request(a,{method:"post",parameters:{id:t}})}}),c("img.plesk-ext-notifier__status-message__icon",{id:"plesk-ext-notifier-MailPorts-icon",src:i}),n.lmsg("text",{port:o.length>1?n.lmsg("ports",{port1:o[0],port2:o[1]}):n.lmsg("port",{port:o[0]}),blocked:'<a href="'.concat(l,'" target="_blank">').concat(n.lmsg("blocked"),"</a>"),firewall:'<a href="'.concat(s,'" target="_blank">').concat(n.lmsg("firewall"),"</a>")}),c(".plesk-ext-notifier-alert__actions",c("a.plesk-ext-notifier-link",{id:"plesk-ext-notifier-MailPorts-check",onclick:function(){p(!0),new Ajax.Request(u,{method:"get",onSuccess:function(e){if(!e.responseJSON.unavailablePorts){var t=document.getElementById("plesk-ext-notifier-MailPorts");t.parentElement.removeChild(t)}},onComplete:function(){p(!1)}})}},c("span",n.lmsg("recheckPorts"))))]))};var p=Jsw.createElement;const f=function(e){e.id;var t=e.locale,n=e.data,r=n.checkCompatibleTLSUrl,o=n.successIconUrl,i=n.warnIconUrl;t=new Jsw.Locale(t);var a=function(e){var n=document.getElementById("plesk-ext-notifier-warn-tls-button-check");e?(n.classList.add("plesk-ext-notifier-button--loading"),n.innerHTML=t.lmsg("loading")):(n.classList.remove("plesk-ext-notifier-button--loading"),n.innerHTML=t.lmsg("checkProtocols"))},l=function(e,n){var r=document.getElementById("plesk-ext-notifier-warn-tls-popover");r&&r.parentElement.removeChild(r),Jsw.render(document.getElementById("plesk-ext-notifier-warn-tls"),p(".plesk-ext-notifier-popover",{id:"plesk-ext-notifier-warn-tls-popover"},p("span.plesk-ext-notifier-popover__arrow"),p(".plesk-ext-notifier-popover__inner",p("img.plesk-ext-notifier-popover__icon",{src:n?i:o}),p(".plesk-ext-notifier-popover__content",p("p",e),p("a.plesk-ext-notifier-button",{role:"button",tabIndex:"0",onclick:function(){!function(e){var t=document.getElementById("plesk-ext-notifier-warn-tls-popover"),n=document.getElementById("plesk-ext-notifier-warn-tls-notification");t&&n&&(0===e&&n.parentElement.removeChild(n),t.parentElement.removeChild(t))}(n)}},t.lmsg("ok"))))))};return p(".plesk-ext-notifier-container#plesk-ext-notifier-warn-tls",p(".plesk-ext-notifier-notification",{id:"plesk-ext-notifier-warn-tls-notification"},p(".plesk-ext-notifier-alert",[p(".plesk-ext-notifier-alert__message",[p("img.plesk-ext-notifier-alert__icon",{src:i}),p("span.plesk-ext-notifier__text",t.lmsg("warningText"))]),p(".plesk-ext-notifier-alert__actions",p("a.plesk-ext-notifier-button",{id:"plesk-ext-notifier-warn-tls-button-check",role:"button",tabIndex:"0",onclick:function(){a(!0),new Ajax.Request(r,{method:"get",onSuccess:function(e){var t=e.responseJSON,n=t.message,r=t.curlErrorCode;a(!1),l(n,r)}})}},p("span",t.lmsg("checkProtocols"))))])))};var d=Jsw.createElement;function m(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const k=function(e,t){var n=document.querySelector(".pul-layout__header-addon, .page-header-wrapper .page-header"),r=document.querySelector("#main"),o=document.querySelector("#main .tabs");return e.forEach((function(c){switch(c.id){case"autoUpdate":case"autoUpdate178":n&&(Jsw.render(n,function(e){var t=e.id,n=e.locale,r=e.data,o=r.version,l=r.isClosed,s=r.learnMoreUrl,c=r.updateNowUrl,u=r.closeUrl,p=r.iconUrl,f=r.popoverIconUrl,d=r.linkBlog,m=r.updateSettingsLink,v=r.daysBeforeUpgrade,k=r.updateDate;n=new Jsw.Locale(n);var g,x,y=function(){var e=document.getElementById("plesk-ext-notifier-auto-update-popover");e&&(e.style.display="none"),new Ajax.Request(u,{method:"post",parameters:{id:t}})},h=function(e){return'<a href="'.concat(s,'" target="_blank">').concat(e,"</a>")},_=function(e){return'<a href="'.concat(d,'" target="_blank" onclick="Jsw.UAT && Jsw.UAT.dispatchAction(\'AUTO_UPDATE_LINK_BLOG_CLICK\')">').concat(e,"</a>")};return a(".plesk-ext-notifier-container#plesk-ext-notifier-auto-update","17.8.11"===o?a(".plesk-ext-notifier-alert",a(".plesk-ext-notifier-alert__message",a("img.plesk-ext-notifier-alert__icon",{src:p}),a(".plesk-ext-notifier-alert__text",n.lmsg("warningTextFor_17_8"))),a(".plesk-ext-notifier-alert__actions"," ",a("a.plesk-ext-notifier-button",{role:"button",tabIndex:"0",target:"_blank",href:c,onclick:function(){i("UPDATE_NOW_CLICK")}},a("span.plesk-ext-notifier-button__icon",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#fff" d="M1.5 1a.5.5 0 0 0-.5.5v8a.5.5 0 0 0 .5.5h2a.5.5 0 0 1 0 1h-2A1.5 1.5 0 0 1 0 9.5v-8A1.5 1.5 0 0 1 1.5 0h13A1.5 1.5 0 0 1 16 1.5v8a1.5 1.5 0 0 1-1.5 1.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5h-13z"/><path fill="#fff" d="M7 15a1 1 0 0 0 2 0V6.4l1.293 1.293a1 1 0 1 0 1.414-1.414L8.879 3.45a.993.993 0 0 0-.122-.104.998.998 0 0 0-1.514 0 .993.993 0 0 0-.122.104L4.293 6.28a1 1 0 1 0 1.414 1.414L7 6.4V15z"/></svg>'),a("span",n.lmsg("updateNow")))," ",a("span.plesk-ext-notifier__actions-link",n.lmsg("moreDetails",{linkBlog:_(n.lmsg("here"))})))):a(".plesk-ext-notifier-notification",a(".plesk-ext-notifier-alert",a(".plesk-ext-notifier-alert__message",[a("img.plesk-ext-notifier-alert__icon",{src:p}),a("span.plesk-ext-notifier-alert__text",v<1?n.lmsg("warningText",{date:k,learnMore:h(n.lmsg("learnMore"))}):n.lmsg("warningTextDays",{days:v,learnMore:h(n.lmsg("learnMore"))}))]))),l?null:(x=n.lmsg("popoverText",{updateSettings:(g=n.lmsg("popoverUpdateSettings"),'<a href="'.concat(m,'">').concat(g,"</a>")),learnMore:h(n.lmsg("popoverLearnMore"))}),"17.8.11"===o&&(x=n.lmsg("popoverTextFor_17_8",{linkBlog:_(n.lmsg("popoverLearnMore"))})),a(".plesk-ext-notifier-popover#plesk-ext-notifier-auto-update-popover",a("span.plesk-ext-notifier-popover__arrow"),a("span.plesk-ext-notifier-popover__close",{onclick:function(){i("AUTO_UPDATE_CLOSE_CLICK"),y()}}),a(".plesk-ext-notifier-popover__inner",a("img.plesk-ext-notifier-popover__icon",{src:f}),a(".plesk-ext-notifier-popover__content",a("p",x),a("a.plesk-ext-notifier-button",{role:"button",tabIndex:"0",onclick:function(){i("AUTO_UPDATE_GOT_IT_CLICK"),y()}},n.lmsg("popoverCloseButton")))))))}(c),"top"),l());break;case"warnTrialAbusers":n&&(Jsw.render(n,(g=(k=c).id,y=k.locale,h=k.data,_=h.isClosed,w=h.closeUrl,b=h.iconUrl,E=h.popoverIconUrl,L=h.buyLicenseUrl,A=h.daysLeft,y=new Jsw.Locale(y),_||i("TRIAL_ABUSERS_POP_OVER_SHOW"),d(".plesk-ext-notifier-container#plesk-ext-notifier-warn-trial-abusers",d(".plesk-ext-notifier-notification",d(".plesk-ext-notifier-alert",d(".plesk-ext-notifier-alert__message",[d("img.plesk-ext-notifier-alert__icon",{src:b}),d("span.plesk-ext-notifier-alert__text",y.lmsg("warningText",{daysLeft:A}))]))),_?null:d(".plesk-ext-notifier-popover",{id:"plesk-ext-notifier-warn-trial-abusers-popover"},d("span.plesk-ext-notifier-popover__arrow"),d(".plesk-ext-notifier-popover__inner",[d("img.plesk-ext-notifier-popover__icon",{src:E}),d(".plesk-ext-notifier-popover__content",[d("p",y.lmsg("warningText",{daysLeft:A})),d("a.plesk-ext-notifier-button",{role:"button",tabIndex:"0",onclick:function(){var e=document.getElementById("plesk-ext-notifier-warn-trial-abusers-popover");e&&(e.style.display="none"),i("TRIAL_ABUSERS_GOT_IT_CLICK"),new Ajax.Request(w,{method:"post",parameters:{id:g}})}},y.lmsg("gotItButton"))," ",d("a.plesk-ext-notifier-button",{role:"button",tabIndex:"0",href:L,target:"_blank",onclick:function(){i("TRIAL_ABUSERS_BUY_LICENSE_CLICK")}},y.lmsg("buyLicenseButton"))])])))),"top"),l());break;case"juicyPotato":n&&(Jsw.render(n,function(e){var t,n=e.id,r=e.locale,o=e.data,i=o.iconUrl,a=o.learnMoreUrl,c=o.closeUrl;return r=new Jsw.Locale(r),s(".plesk-ext-notifier-container#plesk-ext-notifier-juicyPotato",s(".plesk-ext-notifier-notification.plesk-ext-notifier-notification--juicyPotato",s(".plesk-ext-notifier-alert",[s(".plesk-ext-notifier-alert__message",[s("img.plesk-ext-notifier-alert__icon",{src:i}),s("span.plesk-ext-notifier-alert__text",r.lmsg("warningText",{learnMore:(t=r.lmsg("learnMore"),'<a href="'.concat(a,'" target="_blank">').concat(t,"</a>"))}))]),s(".plesk-ext-notifier-alert__actions",s("a.plesk-ext-notifier-button",{role:"button",tabIndex:"0",onclick:function(e){var t=document.getElementById("plesk-ext-notifier-juicyPotato");t.parentElement.removeChild(t),l(),new Ajax.Request(c,{method:"post",parameters:{id:n}})}},r.lmsg("warningCloseButton")))])))}(c),"top"),l());break;case"unavailableMailPorts":var p=window.location.pathname,m=new RegExp("/server/mail(.php|/settings)?/?$").test(p),v=new RegExp("/mail-settings/edit/id/\\d+").test(p);(m||v)&&(o?Jsw.render(o,u(c),"after"):r&&Jsw.render(r,u(c),"top"));break;case"warnTLS":n&&(Jsw.render(n,new f(c),"top"),l());break;case"sitejetPromo":if(e.find((function(e){return"welcomePanel"===e.id})))break;x({notification:c,name:"sitejet-promo",cleanupCache:t});break;case"welcomePanel":x({notification:c,name:"welcome-panel",cleanupCache:t})}var k,g,y,h,_,w,b,E,L,A})),function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t);try{var o=function(){var r,o,i=(r=e.value,o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(r,o)||m(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0];(0,i[1])(null==n?void 0:n.find((function(e){var t=e.id;return a===t})))&&t.delete(a)};for(r.s();!(e=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}};var g,x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.notification,n=e.name,r=e.cleanupCache,o=e.hasStyle,i=void 0===o||o,a=t.id,l=t,s=t.data.version;if(!document.getElementById(a)&&"true"!==l.data.isClosed){var c=function(e){return"".concat(e,"?").concat(s).concat("")};requirejs([c("/modules/notifier/js/".concat(n,".js"))],(function(e){var o=document.createElement("div");o.setAttribute("id",a);var s=document.querySelector("#main");s.insertBefore(o,s.firstChild);var u=document.createElement("link");i&&(u.setAttribute("rel","stylesheet"),u.setAttribute("type","text/css"),u.setAttribute("href",c("/modules/notifier/styles/".concat(n,".css"))),document.getElementsByTagName("head")[0].append(u));var p=e.default(l,o);r.set(a,(function(e){return!(e&&e.data&&JSON.stringify(e.data)===JSON.stringify(t.data)||(null==p||p.unmount(),o.remove(),null==u||u.remove(),0))}))}))}},y=function(e,t){document.location.pathname.includes(e)&&t()},h=function(e,t){var n=window.history.pushState;window.history.pushState=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n.apply(history,o),y(e,t)},Jsw.onReady((function(){return y(e,t)}))},_=new Map,w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.exclude,n=e.include;fetch("/modules/notifier/index.php/notifications").then((function(e){return e.json()})).then((function(e){var r=e.notifications,o=r;Array.isArray(t)&&t.length&&(o=r.filter((function(e){var n=e.id;return!t.includes(n)}))),Array.isArray(n)&&n.length&&(o=r.filter((function(e){var t=e.id;return n.includes(t)}))),"function"==typeof g&&g(o),g=k(o,_)}))};o("#main-settings-content").on("added",(function(){return w({exclude:["welcomePanel","sitejetPromo"]})})),o("#smb-form-final-mailsettings").on("added",(function(){return w({exclude:["welcomePanel","sitejetPromo"]})})),h("/smb/web/view",(function(){return w({include:["welcomePanel","sitejetPromo"]})})),h("/smb/web/overview/id/",(function(){return w({include:["welcomePanel","sitejetPromo"]})}))})();