OwlCyberSecurity - MANAGER
Edit File: index.5c0c53e2db8c73c5db9d.js
!function(){"use strict";var e,t,r,n,o,i,l={196:function(e){e.exports=window.React},609:function(e){e.exports=window.wp.components},307:function(e){e.exports=window.wp.element},736:function(e){e.exports=window.wp.i18n}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return l[e](r,r.exports,s),r.exports}s.m=l,s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,r){return s.f[r](e,t),t}),[]))},s.u=function(e){return e+"."+{204:"ded1ffcbe4657d8be922",658:"c1ae2f75f09af402e920",851:"99d390afbb9ca3c28c19"}[e]+".js"},s.miniCssF=function(e){return e+".css"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="really-simple-ssl-modal:",s.l=function(r,n,o,i){if(e[r])e[r].push(n);else{var l,c;if(void 0!==o)for(var a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var d=a[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){l=d;break}}l||(c=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,s.nc&&l.setAttribute("nonce",s.nc),l.setAttribute("data-webpack",t+o),l.src=r),e[r]=[n];var f=function(t,n){l.onerror=l.onload=null,clearTimeout(m);var o=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((function(e){return e(n)})),t)return t(n)},m=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),c&&document.head.appendChild(l)}},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&!e;)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e}(),function(){if("undefined"!=typeof document){var e={826:0};s.f.miniCss=function(t,r){e[t]?r.push(e[t]):0!==e[t]&&{204:1}[t]&&r.push(e[t]=function(e){return new Promise((function(t,r){var n=s.miniCssF(e),o=s.p+n;if(function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(l=r[n]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(o===e||o===t))return l}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var l;if((o=(l=i[n]).getAttribute("data-href"))===e||o===t)return l}}(n,o))return t();!function(e,t,r,n,o){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var l=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=l,s.request=c,i.parentNode&&i.parentNode.removeChild(i),o(s)}},i.href=t,document.head.appendChild(i)}(e,o,0,t,r)}))}(t).then((function(){e[t]=0}),(function(r){throw delete e[t],r})))}}}(),function(){var e={826:0};s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var i=s.p+s.u(t),l=new Error;s.l(i,(function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,n[1](l)}}),"chunk-"+t,t)}};var t=function(t,r){var n,o,i=r[0],l=r[1],c=r[2],a=0;if(i.some((function(t){return 0!==e[t]}))){for(n in l)s.o(l,n)&&(s.m[n]=l[n]);c&&c(s)}for(t&&t(r);a<i.length;a++)o=i[a],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkreally_simple_ssl_modal=self.webpackChunkreally_simple_ssl_modal||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),r=s(196),n=s(307),o=s(736),i=()=>{const[e,t]=(0,n.useState)(!1),[i,l]=(0,n.useState)(!1),c=document.getElementById("deactivate-really-simple-ssl"),a=rsssl_modal.pro_plugin_active,u=e=>{e.preventDefault(),t(!0)};(0,n.useEffect)((()=>{if(c)return c.addEventListener("click",u),()=>{c.removeEventListener("click",u)}}),[]),(0,n.useEffect)((()=>{c&&(e?c.removeEventListener("click",u):c.addEventListener("click",u))}),[e]),(0,n.useEffect)((()=>{i||s.e(204).then(s.bind(s,204)).then((({default:e})=>{l((()=>e))}))}),[e]);const d=a?[{icon:"circle-times",color:"red",text:(0,o.__)("Performant HTTPS redirection","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("Vulnerability detection","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("Security Headers","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("Advanced hardening","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("Mixed content scan","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("Two-step verification","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("Password security","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("Limit login attempts","really-simple-ssl")}]:[{icon:"circle-times",color:"red",text:(0,o.__)("Performant HTTPS redirection","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("Vulnerability detection","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("WordPress hardening","really-simple-ssl")},{icon:"circle-times",color:"red",text:(0,o.__)("Mixed content fixer","really-simple-ssl")}];return(0,r.createElement)(r.Fragment,null,i&&(0,r.createElement)(i,{title:(0,o.__)("Are you sure?","really-simple-ssl"),confirmText:(0,o.__)("Deactivate","really-simple-ssl"),confirmAction:()=>{c&&(c.removeEventListener("click",u),t(!1),window.location.href=rsssl_modal.deactivate_keep_https)},alternativeText:(0,o.__)("Deactivate and use HTTP","really-simple-ssl"),alternativeAction:()=>{c&&(t(!1),window.location.href=c.getAttribute("href"))},alternativeClassName:"rsssl-modal-warning",content:(0,r.createElement)(r.Fragment,null,(0,o.__)("Please choose the correct deactivation method, and before you go; you will miss out on below and future features in Really Simple Security","really-simple-ssl"),a&&(0,r.createElement)(r.Fragment,null," ",(0,r.createElement)("b",null,"Pro")),"!"),list:d,isOpen:e,setOpen:t}))},document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("rsssl-modal-root");e&&(n.createRoot?(0,n.createRoot)(e).render((0,r.createElement)(i,null)):(0,n.render)((0,r.createElement)(i,null),e))}))}();