OwlCyberSecurity - MANAGER
Edit File: index.a4cc556db77e3384994b.js
(()=>{var e,t,s={7135:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var n=s(1621),r=s(1307);const o=(0,n.vt)(((e,t)=>({menu:[],subMenuLoaded:!1,previousMenuItem:!1,nextMenuItem:!1,selectedMainMenuItem:!1,selectedSubMenuItem:!1,selectedFilter:!1,activeGroupId:!1,hasPremiumItems:!1,subMenu:{title:" ",menu_items:[]},setSelectedSubMenuItem:async t=>{let s=u(t);e((e=>({selectedSubMenuItem:t,selectedMainMenuItem:s}))),window.location.hash=s+"/"+t},setSelectedMainMenuItem:t=>{e((e=>({selectedMainMenuItem:t}))),window.location.hash=t},fetchSelectedMainMenuItem:()=>{let t=(0,r.A)("main")||"dashboard";e((e=>({selectedMainMenuItem:t})))},fetchSelectedSubMenuItem:async()=>{let t=(0,r.A)("menu")||"general";e((e=>({selectedSubMenuItem:t})))},fetchMenuData:t=>{let s=rsssl_settings.menu;s=Object.values(s);const n=(0,r.A)("main")||"dashboard";if(s=s.filter((e=>!e.default_hidden||n===e.id)),void 0!==t){let r=c(s,n);const o=d(r,t);r.menu_items=l(r.menu_items,t,o);const{nextMenuItem:i,previousMenuItem:u}=a(s,o,t),f=r.menu_items.filter((e=>!0===e.premium)).length>0;e((e=>({subMenuLoaded:!0,menu:s,nextMenuItem:i,previousMenuItem:u,selectedMainMenuItem:n,selectedSubMenuItem:o,subMenu:r,hasPremiumItems:f})))}else e((e=>({menu:s,selectedMainMenuItem:n})))},getDefaultSubMenuItem:async e=>{let s=t().subMenuLoaded;s||await t().fetchMenuData(e);let n=t().subMenu,o=s&&n.hasOwnProperty(0)?n[0].id:"general",i=(0,r.A)("menu"),a=!1;for(const e in(void 0).menu.menu_items)n.hasOwnProperty(e)&&n[e].id===i&&(a=!0);return a||(i=!1),i||o}}))),i=(e,t,s)=>(t.forEach((t=>{t.visible&&(e.push(t.id),t.hasOwnProperty("menu_items")&&(t.menu_items=l(t.menu_items,s),i(e,t.menu_items,s)))})),e),a=(e,t,s)=>{let n,r;const o=[];i(o,e,s);const a=o.findIndex((e=>e===t));return-1!==a&&(n=o[0===a?"":a-1],f(n,e).hasOwnProperty("menu_items")&&(n=o[0===a?"":a-2]),r=o[a===o.length-1?"":a+1],n=n||o[0],r=r||o[o.length-1]),{nextMenuItem:r,previousMenuItem:n}},l=(e,t)=>{if(!Array.isArray(t))return e;const s=e;for(const[n,r]of e.entries()){let e=t.filter((e=>e.menu_id===r.id));e=e.filter((e=>e.visible)),0!==e.length||r.hasOwnProperty("menu_items")?("object"==typeof s[n]&&null!==s[n]&&(s[n].visible=!0),r.hasOwnProperty("menu_items")&&(s[n].menu_items=l(r.menu_items,t))):"object"==typeof s[n]&&null!==s[n]&&(s[n].visible=!1)}return s},c=(e,t)=>{let s=[];for(const n in e)e.hasOwnProperty(n)&&e[n].id===t&&(s=e[n]);return s=p(s),s},u=e=>{let t=rsssl_settings.menu;for(const s in t){let n=t[s];if(n.id===e)return n.id;if(n.menu_items)for(const t in n.menu_items){let s=n.menu_items[t];if(s.id===e)return n.id;if(s.menu_items)for(const t in s.menu_items)if(s.menu_items[t].id===e)return n.id}}return!1},d=(e,t)=>{let s,n=e&&e.menu_items.hasOwnProperty(0)?e.menu_items[0].id:"general",o=i([],e.menu_items),a=(0,r.A)("menu");s=o.filter((e=>e===a)),s||(a=!1);let l=a||n;if(0===t.filter((e=>e.menu_id===l)).length){let t=f(l,e.menu_items);t&&t.menu_items&&t.menu_items.hasOwnProperty(0)&&(l=t.menu_items[0].id)}return l},f=(e,t)=>{for(const s in t){let n=t[s];if(n.id===e)return n;if(n.menu_items){let t=f(e,n.menu_items);if(t)return t}}return!1},p=e=>{let t=Array.isArray(e.menu_items)?e.menu_items:Object.values(e.menu_items);for(let[e,s]of t.entries())"object"==typeof s&&null!==s&&(s.visible=!0,s.hasOwnProperty("menu_items")&&(s=p(s)),t[e]=s);return e.menu_items=t,e.visible=!0,e}},5131:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});const n=(0,s(1621).vt)(((e,t)=>({modalData:[],buttonsDisabled:!1,showModal:!1,ignoredItems:[],fixedItems:[],item:!1,setIgnoredItemId:s=>{let n=t().ignoredItems;n.push(s),e({ignoredItems:n})},setFixedItemId:s=>{let n=t().fixedItems;n.push(s),e({fixedItems:n})},handleModal:(t,s,n)=>{e({showModal:t,modalData:s,item:n})},setModalData:t=>{e({modalData:t})}})))},2039:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var n=s(1621),r=s(6535),o=s(1674),i=s(7723);const a=(0,n.vt)(((e,t)=>({steps:[],currentStepIndex:0,currentStep:{},error:!1,networkProgress:0,networkActivationStatus:"",certificateValid:"",networkwide:!1,sslEnabled:!1,overrideSSL:!1,showOnboardingModal:!1,modalStatusLoaded:!1,dataLoaded:!1,processing:!1,email:"",includeTips:!1,sendTestEmail:!0,overrideSSLDetection:!1,footerStatus:"",setFooterStatus:t=>{e({footerStatus:t})},setIncludeTips:t=>{e((e=>({includeTips:t})))},setSendTestEmail:t=>{e((e=>({sendTestEmail:t})))},setEmail:t=>{e((e=>({email:t})))},setShowOnboardingModal:t=>{e((e=>({showOnboardingModal:t})))},setProcessing:t=>{e((e=>({processing:t})))},setCurrentStepIndex:s=>{const n=t().steps[s];e((e=>({currentStepIndex:s,currentStep:n})))},dismissModal:async t=>{let s={};s.dismiss=t,e((()=>({showOnboardingModal:!t}))),await o.Eo("dismiss_modal",s)},setOverrideSSL:async t=>{e({overrideSSL:t});let s={overrideSSL:t};await o.Eo("override_ssl_detection",s)},activateSSL:()=>{e((e=>({processing:!0}))),o.YA("activate_ssl").then((async s=>{e((e=>({processing:!1}))),t().setCurrentStepIndex(t().currentStepIndex+1),s.success&&(s.site_url_changed?window.location.reload():t().networkwide&&e((e=>({networkActivationStatus:"main_site_activated"}))),e({sslEnabled:!0}))}))},saveEmail:()=>{t().setFooterStatus((0,i.__)("Updating email preferences..","really-simple-ssl"));let s={};s.email=t().email,s.includeTips=t().includeTips,s.sendTestEmail=t().sendTestEmail,e((e=>({processing:!0}))),o.Eo("update_email",s).then((s=>{e((e=>({processing:!1}))),t().setFooterStatus("")}))},updateItemStatus:(s,n,o,i,a)=>{const l=t().steps.findIndex((e=>e.id===s)),c=t().steps[l].items.findIndex((e=>e.id===n));e((0,r.jM)((e=>{void 0!==o&&(e.steps[l].items[c].action=o),void 0!==i&&(e.steps[l].items[c].status=i),void 0!==a&&(e.steps[l].items[c].activated=a)})));let u=t().steps[t().currentStepIndex];e((0,r.jM)((e=>{e.currentStep=u})))},fetchOnboardingModalStatus:async()=>{o.Eo("get_modal_status").then((t=>{e({showOnboardingModal:!t.dismissed,modalStatusLoaded:!0})}))},setShowOnBoardingModal:t=>e((e=>({showOnboardingModal:t}))),pluginInstaller:async(s,n,r)=>{if(!n)return;e((()=>({processing:!0}))),t().updateItemStatus("plugins",s,n,"processing"),t().setFooterStatus((0,i.__)("Installing %d...","really-simple-ssl").replace("%d",r));let o=await c(n,s);t().updateItemStatus("plugins",s,o),"none"!==o&&"completed"!==o?(t().setFooterStatus((0,i.__)("Activating %d...","really-simple-ssl").replace("%d",r)),o=await c(o,s),t().updateItemStatus("plugins",s,o)):t().setFooterStatus(""),e((e=>({processing:!1})))},getSteps:async t=>{const{steps:s,networkActivationStatus:n,certificateValid:r,networkProgress:o,networkwide:i,overrideSSL:a,error:c,sslEnabled:u,upgradedFromFree:d}=await l(t),f=new URLSearchParams(window.location.search),p="1"===f.get("verified_email");let m=0,h=p;if(p){const e=s.findIndex((e=>"features"===e.id));if(-1!==e){m=e,f.delete("verified_email");const t=window.location.pathname+(f.toString()?"?"+f.toString():"");window.history.replaceState({},"",t)}}else!d&&(u||i&&"completed"===n)&&(m=1);e({steps:s,currentStepIndex:m,currentStep:s[m],networkActivationStatus:n,certificateValid:r,networkProgress:o,networkwide:i,overrideSSL:a,sslEnabled:u,dataLoaded:!0,error:c,emailVerified:h}),"completed"===n&&e({networkProgress:100})},refreshSSLStatus:t=>{t.preventDefault(),e({processing:!0}),e((0,r.jM)((e=>{const t=e.steps.findIndex((e=>"activate_ssl"===e.id)),s=e.steps[t];s.items.forEach((function(e,t){"error"===e.status&&(s.items[t].status="processing",s.items[t].title=(0,i.__)("Re-checking SSL certificate, please wait...","really-simple-ssl"))})),e.steps[t]=s}))),setTimeout((async function(){const{steps:t,certificateValid:s,error:n}=await l(!0);e({steps:t,certificateValid:s,processing:!1,error:n})}),1e3)},activateSSLNetworkWide:()=>{let s=t().networkProgress;void 0!==s&&t().setFooterStatus((0,i.__)("%d% of subsites activated.").replace("%d",s)),t().networkProgress>=100?e({sslEnabled:!0,networkActivationStatus:"completed"}):(e((()=>({processing:!0}))),o.YA("activate_ssl_networkwide").then((s=>{s.success&&(e({networkProgress:s.progress,processing:!1}),t().setFooterStatus((0,i.__)("%d% of subsites activated.").replace("%d",s.progress)),s.progress>=100&&(t().setFooterStatus(""),e({sslEnabled:!0,networkActivationStatus:"completed"})))})))}}))),l=e=>{let t={};return t.forceRefresh=e,o.Eo("onboarding_data",t).then((e=>{let t=e.steps,s=e.ssl_enabled;return{steps:t,networkActivationStatus:e.network_activation_status,certificateValid:e.certificate_valid,networkProgress:e.network_progress,networkwide:e.networkwide,overrideSSL:e.ssl_detection_overridden,error:e.error,sslEnabled:s,upgradedFromFree:e.rsssl_upgraded_from_free}}))},c=async(e,t)=>{let s={};return s.id=t,await o.Eo(e,s).then((async e=>e.success?e.next_action:"failed")).catch((e=>"failed"))},u=a},1254:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var n=s(1621),r=s(6535),o=s(1674),i=s(7723),a=s(9571);class l{constructor(e,t){this.currentField=e,this.allFields=t,this.disabledReason=this._getDefaultDisabledReason(),this.fieldConditionKeyBlocklist=["disabledTooltipText"]}isEnabled(){return!this.currentField.react_conditions||this._evaluateGroup(this.currentField.react_conditions)}getDisabledTooltipText(){return this.disabledReason}_getDefaultDisabledReason(){return this.currentField.hasOwnProperty("disabled")&&this.currentField.hasOwnProperty("disabledTooltipText")&&this.currentField.disabled?this.currentField.disabledTooltipText:""}_evaluateGroup(e){const t=e.relation?e.relation.toUpperCase():"AND",s=Object.keys(e).filter((e=>"relation"!==e)).map((t=>{const s=e[t];return"object"==typeof s&&s.hasOwnProperty("relation")?this._evaluateGroup(s):"object"==typeof s&&this._evaluateFieldConditions(s)}));return"AND"===t?s.every((e=>e)):s.some((e=>e))}_evaluateFieldConditions(e){let t=Object.keys(e).filter((e=>!this.fieldConditionKeyBlocklist.includes(e))).every((t=>this._checkFieldCondition(t,e[t])));return!1===t&&(this.disabledReason=e.hasOwnProperty("disabledTooltipText")?e.disabledTooltipText:""),t}_checkFieldCondition(e,t){const s=e.startsWith("!"),n=s?e.substring(1):e,r=this.allFields.find((e=>e.id===n));if(!r)return!1;const o=this._evaluateField(r,t);return s?!o:o}_evaluateField(e,t){const s=e.value;switch(e.type){case"text_checkbox":return s&&s.show===t;case"checkbox":return s==t;case"multicheckbox":{const e=Array.isArray(t)?t:[t];return Array.isArray(s)&&s.some((t=>e.includes(t)))}case"radio":return Array.isArray(t)?t.includes(s):t===s;default:return!0===t?1===s||"1"===s||!0===s:!1===t?0===s||"0"===s||!1===s:"string"==typeof t&&t.includes("EMPTY")?Array.isArray(s)?0===s.length:!s:String(s).toLowerCase()===String(t).toLowerCase()}}}const c=(0,n.vt)(((e,t)=>({fieldsLoaded:!1,error:!1,fields:[],changedFields:[],progress:[],nextButtonDisabled:!1,overrideNextButtonDisabled:!1,refreshTests:!1,highLightField:"",setHighLightField:t=>{e({highLightField:t})},setRefreshTests:t=>e((e=>({refreshTests:t}))),handleNextButtonDisabled:t=>{e({overrideNextButtonDisabled:t})},setChangedField:(t,s)=>{e((0,r.jM)((e=>{const n=e.changedFields.findIndex((e=>e.id===t));-1!==n&&e.changedFields.splice(n,1);let r={};r.id=t,r.value=s,e.changedFields.push(r)})))},showSavedSettingsNotice:(e,t="success")=>{f(e,t)},updateField:(t,s)=>{e((0,r.jM)((e=>{let n=e.fields.findIndex((e=>e.id===t));-1!==n&&(e.fields[n].value=s)})))},updateFieldAttribute:(t,s,n)=>{e((0,r.jM)((e=>{let r=e.fields.findIndex((e=>e.id===t));-1!==r&&(e.fields[r][s]=n)})))},updateSubField:(t,s,n)=>{e((0,r.jM)((e=>{let r=e.fields.findIndex((e=>e.id===t)),o=e.fields[r].value;Array.isArray(o)||(o=[]);let i=o.findIndex((e=>e.id===s));-1!==i&&(e.fields[r].updateItemId=s,e.fields[r].value[i].value=n,e.fields[r].value=o.map((e=>{const{deleteControl:t,valueControl:s,statusControl:n,...r}=e;return r})))})))},removeHelpNotice:t=>{e((0,r.jM)((e=>{const s=e.fields.findIndex((e=>e.id===t));e.fields[s].help=!1})))},addHelpNotice:(s,n,o,i,a)=>{t().removeHelpNotice(s);let l={};l.label=n,l.text=o,a&&(l.url=a),i&&(l.title=i),e((0,r.jM)((e=>{const t=e.fields.findIndex((e=>e.id===s));-1!==t&&(e.fields[t].help=l)})))},fieldAlreadyEnabled:e=>{let s=t().changedFields.filter((t=>t.id===e)).length>0,n=t().getFieldValue(e);return!s&&n},getFieldValue:e=>{let s=t().fields.filter((t=>t.id===e))[0];return!!s&&s.value},getField:e=>t().fields.filter((t=>t.id===e))[0]||!1,saveFields:async(s,n,l=!1)=>{let c=void 0===s||s;n=void 0===n||n;let u=t().fields;u=u.filter((e=>"banner"!==e.data_target));let d=t().changedFields,f=[];for(const e of u){let t=d.filter((t=>t.id===e.id)).length>0,s="select"===e.type||"radio"===e.type;(t||e.never_saved&&!e.disabled&&s)&&f.push(e)}if(f.length>0||!0===l){let t=o.Ey(f).then((e=>e));n&&a.toast.promise(t,{pending:(0,i.__)("Saving settings...","really-simple-ssl"),success:(0,i.__)("Settings saved","really-simple-ssl"),error:(0,i.__)("Something went wrong","really-simple-ssl")}),await t.then((t=>{e((0,r.jM)((e=>{e.changedFields=[],e.fields=t.fields,e.progress=t.progress,e.refreshTests=c})))}))}n&&0===f.length&&a.toast.promise(Promise.resolve(),{success:(0,i.__)("Settings saved","really-simple-ssl")})},updateFieldsData:s=>{let n=t().fields;if(n=d(n),s){let o=u(n,s);t().overrideNextButtonDisabled&&(o=t().overrideNextButtonDisabled),e((0,r.jM)((e=>{e.nextButtonDisabled=o})))}e((0,r.jM)((e=>{e.fields=n})))},fetchFieldsData:async t=>{const{fields:s,progress:n,error:r}=await o.ww().then((e=>({fields:e.fields,progress:e.progress,error:e.error}))).catch((e=>{console.error(e)}));let i=d(s),a=i.filter((e=>e.menu_id===t));e({fieldsLoaded:!0,fields:i,selectedFields:a,progress:n,error:r})}}))),u=(e,t)=>{let s=[];for(const n of e)n.menu_id===t&&s.push(n);return s.filter((e=>e.required&&!e.conditionallyDisabled&&(0==e.value.length||!e.value))).length>0},d=e=>{let t=[];return e&&Array.isArray(e)?(e.forEach((function(s,n){let r=new l(s,e),o=r.isEnabled();const i={...s};i.conditionallyDisabled=!1===o,i.disabledTooltipHoverText=r.getDisabledTooltipText(),i.visible=!(!o&&("letsencrypt"===i.type||"hide"===i.condition_action)),t.push(i)})),t):[]},f=(e,t)=>{void 0===e&&(e=(0,i.__)("Settings saved","really-simple-ssl")),void 0===t&&(t="success"),"error"===t&&a.toast.error(e),"warning"===t&&a.toast.warning(e),"info"===t&&a.toast.info(e),"success"===t&&a.toast.success(e)}},340:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>a});var n=s(6427),r=s(7143);const o=window.wp.notices;var i=s(790);const a=()=>{const e=(0,r.useSelect)((e=>e(o.store).getNotices().filter((e=>"snackbar"===e.type))),[]);if(void 0===e)return(0,i.jsx)(i.Fragment,{});const{removeNotice:t}=(0,r.useDispatch)(o.store);return(0,i.jsx)(n.SnackbarList,{className:"edit-site-notices",notices:e,onRemove:t})}},8743:(e,t,s)=>{"use strict";s.d(t,{g:()=>n});const n=e=>{const t=rsssl_settings.ref;if(parseInt(t)>0){const[s,n]=e.split("#"),r=s.includes("?")?"&":"?";e=`${s}${r}ref=${t}${n?`#${n}`:""}`}return e}},6064:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var n=s(7723),r=s(4032),o=s(790);const i=e=>{e.error&&(console.log("errors detected during the loading of the settings page"),console.log(e.error));let t=!1,s=(0,n.__)("Please check if security settings on the server or a plugin is blocking the requests from Really Simple Security.","really-simple-ssl"),i=!1;return e.error&&(i=e.error.message,"string"!=typeof i&&(i=JSON.stringify(i)),"rest_no_route"===e.error.code?t=(0,n.__)("The Really Simple Security Rest API is disabled.","really-simple-ssl")+" "+s:"404"===e.error.data.status?t=(0,n.__)("The Really Simple Security Rest API returned a not found.","really-simple-ssl")+" "+s:"403"===e.error.data.status&&(t=(0,n.__)("The Really Simple Security Rest API returned a 403 forbidden error.","really-simple-ssl")+" "+s),i.length>100&&(i=i.substring(0,100)+"...")),(0,o.jsx)(o.Fragment,{children:e.error&&(0,o.jsxs)("div",{className:"rsssl-rest-error-message",children:[(0,o.jsx)("h3",{children:(0,n.__)("A problem was detected during the loading of the settings","really-simple-ssl")}),t&&(0,o.jsx)("p",{children:t}),(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:(0,n.__)("The request returned the following errors:","really-simple-ssl")}),(0,o.jsxs)("ul",{children:[e.error.code&&(0,o.jsxs)("li",{children:[(0,n.__)("Response code:","really-simple-ssl")," ",e.error.code]}),e.error.data.status&&(0,o.jsxs)("li",{children:[(0,n.__)("Status code:","really-simple-ssl")," ",e.error.data.status]}),i&&(0,o.jsxs)("li",{children:[(0,n.__)("Server response:","really-simple-ssl")," ",i]})]})]}),(0,o.jsx)(r.A,{className:"button button-default",target:"_blank",rel:"noopener noreferrer",text:(0,n.__)("More information","really-simple-ssl"),url:"https://really-simple-ssl.com/instructions/how-to-debug-a-blank-settings-page-in-really-simple-ssl/"})]})})}},9518:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n=s(6087),r=s(5556),o=s.n(r),i=s(790);class a extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null},this.resetError=this.resetError.bind(this)}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t}),console.log("ErrorBoundary",e,t)}resetError(){this.setState({hasError:!1,error:null,errorInfo:null})}render(){return this.state.hasError?(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{children:"Something went wrong."}),(0,i.jsx)("p",{children:this.props.fallback}),(0,i.jsx)("button",{onClick:this.resetError,children:"Try Again"})]}):this.props.children}}a.propTypes={children:o().node,fallback:o().node};const l=a},4032:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var n=s(790);const r=e=>{let t="",s="",r="";if(-1!==e.text.indexOf("%s")){let n=e.text.split(/%s/);t=n[0],r=n[1],s=n[2]}else r=e.text;let o=e.className?e.className:"rsssl-link";return(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsx)("a",{className:o,target:e.target,rel:e.rel,href:e.url,children:r}),s]})}},1674:(e,t,s)=>{"use strict";s.d(t,{Eo:()=>y,Ey:()=>h,YA:()=>g,bl:()=>v,ww:()=>m});var n=s(1307),r=s(1455),o=s.n(r);const i=()=>"&nonce="+rsssl_settings.rsssl_nonce+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),a=(e,t)=>e?e&&e.includes("Control")?void 0:"object"==typeof t?JSON.parse(JSON.stringify(t,a)):t:t,l=e=>new Promise((function(t,s){let n=c("ajax");n+="&rest_action="+e.replace("?","&");let r=new XMLHttpRequest;r.open("GET",n),r.onload=function(){let e;try{e=JSON.parse(r.response)}catch(e){t(u(r.response,500,"invalid_data"))}r.status>=200&&r.status<300?(e.hasOwnProperty("request_success")||t(u(r.response,500,"invalid_data")),t(e)):t(u(r.response,r.status,r.statusText))},r.onerror=function(){t(u(r.response,r.status,r.statusText))},r.send()})),c=e=>{let t;return t=void 0===e?rsssl_settings.site_url:rsssl_settings.admin_ajax_url,"https:"===window.location.protocol&&-1===t.indexOf("https://")?t.replace("http://","https://"):t},u=(e,t,s)=>{let n={},r={},o={};return o.status=t,r.code=s,r.data=o,r.message=e,n.error=r,n},d=e=>o()({path:e}).then((t=>t.request_success?t:l(e))).catch((t=>l(e))),f=(e,t)=>o()({path:e,method:"POST",data:t}).catch((s=>((e,t)=>new Promise((function(s,n){let r=c("ajax"),o=new XMLHttpRequest;o.open("POST",r),o.onload=function(){let e;try{e=JSON.parse(o.response)}catch(e){s(u(o.response,500,"invalid_data"))}o.status>=200&&o.status<300?s(e):s(u(o.response,o.status,o.statusText))},o.onerror=function(){s(u(o.response,o.status,o.statusText))};let i={};i.path=e,i.data=t,i=JSON.stringify(i,a),o.setRequestHeader("Content-Type","application/json; charset=UTF-8"),o.send(i)})))(e,t))),p=()=>-1!==rsssl_settings.site_url.indexOf("?")?"&":"?",m=()=>{let e=(0,n.A)("main");return d("reallysimplessl/v1/fields/get"+p()+e+i())},h=e=>{let t=(0,n.A)("main"),s={nonce:rsssl_settings.rsssl_nonce};return e.push(s),f("reallysimplessl/v1/fields/set"+p()+t,e)},g=(e,t,s)=>(t||(t=!1),s||(s=!1),s=encodeURIComponent(JSON.stringify(s)),d("reallysimplessl/v1/tests/"+e+p()+"state="+t+i()+"&data="+s)),v=(e,t)=>d("reallysimplessl/v1/tests/"+e+p()+"letsencrypt=1&id="+t+i()),y=(e,t)=>{const s={...t};return s.nonce=rsssl_settings.rsssl_nonce,f("reallysimplessl/v1/do_action/"+e,s)}},1307:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});const n=e=>{let t=window.location.href;if(-1===t.indexOf("#"))return!1;let s=t.split("#")[1];if(!s)return!1;let n=s.split("&");if("highlightfield"===e){for(let e of n)if(e.startsWith("highlightfield="))return e.split("=")[1];return!1}let r=n[0];if("anchor"===e){if(-1===r.indexOf("/"))return!1;{let e=r.split("/");return e.length>2&&e[2]}}if("menu"===e){if(-1===r.indexOf("/"))return!1;{let e=r.split("/");return e.length>1&&e[1]}}return-1===r.indexOf("/")?r:r.split("/")[0]}},53:(e,t,s)=>{"use strict";function n(e){var t,s,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(s=n(e[t]))&&(r&&(r+=" "),r+=s);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}s.d(t,{A:()=>r});const r=function(){for(var e,t,s=0,r="";s<arguments.length;)(e=arguments[s++])&&(t=n(e))&&(r&&(r+=" "),r+=t);return r}},2694:(e,t,s)=>{"use strict";var n=s(6925);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,s,r,o,i){if(i!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return s.PropTypes=s,s}},5556:(e,t,s)=>{e.exports=s(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1063:(e,t,s)=>{"use strict";var n=s(1609),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!r(e,s)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),n=o({inst:{value:s,getSnapshot:t}}),r=n[0].inst,u=n[1];return a((function(){r.value=s,r.getSnapshot=t,c(r)&&u({inst:r})}),[e,s,t]),i((function(){return c(r)&&u({inst:r}),e((function(){c(r)&&u({inst:r})}))}),[e]),l(s),s};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},8940:(e,t,s)=>{"use strict";var n=s(1609),r=s(9888),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=n.useRef,l=n.useEffect,c=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,s,n,r){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!l){if(l=!0,i=e,e=n(e),void 0!==r&&f.hasValue){var t=f.value;if(r(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var s=n(e);return void 0!==r&&r(t,s)?t:(i=e,a=s)}var i,a,l=!1,c=void 0===s?null:s;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,s,n,r]);var p=i(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},9888:(e,t,s)=>{"use strict";e.exports=s(1063)},9242:(e,t,s)=>{"use strict";e.exports=s(8940)},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},1455:e=>{"use strict";e.exports=window.wp.apiFetch},6427:e=>{"use strict";e.exports=window.wp.components},7143:e=>{"use strict";e.exports=window.wp.data},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},6535:(e,t,s)=>{"use strict";function n(e){for(var t=arguments.length,s=Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(s.length?" "+s.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(e){return!!e&&!!e[V]}function o(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var s=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return s===Object||"function"==typeof s&&Function.toString.call(s)===H}(e)||Array.isArray(e)||!!e[q]||!!(null===(t=e.constructor)||void 0===t?void 0:t[q])||u(e)||d(e))}function i(e,t,s){void 0===s&&(s=!1),0===a(e)?(s?Object.keys:W)(e).forEach((function(n){s&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(s,n){return t(n,s,e)}))}function a(e){var t=e[V];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:u(e)?2:d(e)?3:0}function l(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t,s){var n=a(e);2===n?e.set(t,s):3===n?e.add(s):e[t]=s}function u(e){return R&&e instanceof Map}function d(e){return B&&e instanceof Set}function f(e){return e.o||e.t}function p(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=U(e);delete t[V];for(var s=W(t),n=0;n<s.length;n++){var r=s[n],o=t[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[r]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),g(e)||r(e)||!o(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=h),Object.freeze(e),t&&i(e,(function(e,t){return m(t,!0)}),!0)),e}function h(){n(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=K[e];return t||n(18,e),t}function y(){return L}function b(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function _(e){w(e),e.p.forEach(E),e.p=null}function w(e){e===L&&(L=e.l)}function S(e){return L={p:[],l:L,h:e,m:!0,_:0}}function E(e){var t=e[V];0===t.i||1===t.i?t.j():t.g=!0}function x(e,t){t._=t.p.length;var s=t.p[0],r=void 0!==e&&e!==s;return t.h.O||v("ES5").S(t,e,r),r?(s[V].P&&(_(t),n(4)),o(e)&&(e=T(t,e),t.l||I(t,e)),t.u&&v("Patches").M(s[V].t,e,t.u,t.s)):e=T(t,s,[]),_(t),t.u&&t.v(t.u,t.s),e!==z?e:void 0}function T(e,t,s){if(g(t))return t;var n=t[V];if(!n)return i(t,(function(r,o){return O(e,n,t,r,o,s)}),!0),t;if(n.A!==e)return t;if(!n.P)return I(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var r=4===n.i||5===n.i?n.o=p(n.k):n.o,o=r,a=!1;3===n.i&&(o=new Set(r),r.clear(),a=!0),i(o,(function(t,o){return O(e,n,r,t,o,s,a)})),I(e,r,!1),s&&e.u&&v("Patches").N(n,s,e.u,e.s)}return n.o}function O(e,t,s,n,i,a,u){if(r(i)){var d=T(e,i,a&&t&&3!==t.i&&!l(t.R,n)?a.concat(n):void 0);if(c(s,n,d),!r(d))return;e.m=!1}else u&&s.add(i);if(o(i)&&!g(i)){if(!e.h.D&&e._<1)return;T(e,i),t&&t.A.l||I(e,i)}}function I(e,t,s){void 0===s&&(s=!1),!e.l&&e.h.D&&e.m&&m(t,s)}function j(e,t){var s=e[V];return(s?f(s):e)[t]}function P(e,t){if(t in e)for(var s=Object.getPrototypeOf(e);s;){var n=Object.getOwnPropertyDescriptor(s,t);if(n)return n;s=Object.getPrototypeOf(s)}}function A(e){e.P||(e.P=!0,e.l&&A(e.l))}function M(e){e.o||(e.o=p(e.t))}function C(e,t,s){var n=u(t)?v("MapSet").F(t,s):d(t)?v("MapSet").T(t,s):e.O?function(e,t){var s=Array.isArray(e),n={i:s?1:0,A:t?t.A:y(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},r=n,o=J;s&&(r=[n],o=G);var i=Proxy.revocable(r,o),a=i.revoke,l=i.proxy;return n.k=l,n.j=a,l}(t,s):v("ES5").J(t,s);return(s?s.A:y()).p.push(n),n}function k(e){return r(e)||n(22,e),function e(t){if(!o(t))return t;var s,n=t[V],r=a(t);if(n){if(!n.P&&(n.i<4||!v("ES5").K(n)))return n.t;n.I=!0,s=N(t,r),n.I=!1}else s=N(t,r);return i(s,(function(t,r){n&&function(e,t){return 2===a(e)?e.get(t):e[t]}(n.t,t)===r||c(s,t,e(r))})),3===r?new Set(s):s}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p(e)}s.d(t,{Ay:()=>Z,jM:()=>X});var F,L,D="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),R="undefined"!=typeof Map,B="undefined"!=typeof Set,$="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,z=D?Symbol.for("immer-nothing"):((F={})["immer-nothing"]=!0,F),q=D?Symbol.for("immer-draftable"):"__$immer_draftable",V=D?Symbol.for("immer-state"):"__$immer_state",H=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),W="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,U=Object.getOwnPropertyDescriptors||function(e){var t={};return W(e).forEach((function(s){t[s]=Object.getOwnPropertyDescriptor(e,s)})),t},K={},J={get:function(e,t){if(t===V)return e;var s=f(e);if(!l(s,t))return function(e,t,s){var n,r=P(t,s);return r?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0}(e,s,t);var n=s[t];return e.I||!o(n)?n:n===j(e.t,t)?(M(e),e.o[t]=C(e.A.h,n,e)):n},has:function(e,t){return t in f(e)},ownKeys:function(e){return Reflect.ownKeys(f(e))},set:function(e,t,s){var n=P(f(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,s),!0;if(!e.P){var r=j(f(e),t),o=null==r?void 0:r[V];if(o&&o.t===s)return e.o[t]=s,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(s,r)&&(void 0!==s||l(e.t,t)))return!0;M(e),A(e)}return e.o[t]===s&&(void 0!==s||t in e.o)||Number.isNaN(s)&&Number.isNaN(e.o[t])||(e.o[t]=s,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==j(e.t,t)||t in e.t?(e.R[t]=!1,M(e),A(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var s=f(e),n=Reflect.getOwnPropertyDescriptor(s,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:s[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},G={};i(J,(function(e,t){G[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),G.deleteProperty=function(e,t){return G.set.call(this,e,t,void 0)},G.set=function(e,t,s){return J.set.call(this,e[0],t,s,e[0])};var Y=function(){function e(e){var t=this;this.O=$,this.D=!0,this.produce=function(e,s,r){if("function"==typeof e&&"function"!=typeof s){var i=s;s=e;var a=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return a.produce(e,(function(e){var n;return(n=s).call.apply(n,[t,e].concat(r))}))}}var l;if("function"!=typeof s&&n(6),void 0!==r&&"function"!=typeof r&&n(7),o(e)){var c=S(t),u=C(t,e,void 0),d=!0;try{l=s(u),d=!1}finally{d?_(c):w(c)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return b(c,r),x(e,c)}),(function(e){throw _(c),e})):(b(c,r),x(l,c))}if(!e||"object"!=typeof e){if(void 0===(l=s(e))&&(l=e),l===z&&(l=void 0),t.D&&m(l,!0),r){var f=[],p=[];v("Patches").M(e,l,f,p),r(f,p)}return l}n(21,e)},this.produceWithPatches=function(e,s){if("function"==typeof e)return function(s){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.produceWithPatches(s,(function(t){return e.apply(void 0,[t].concat(r))}))};var n,r,o=t.produce(e,s,(function(e,t){n=e,r=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,n,r]})):[o,n,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){o(e)||n(8),r(e)&&(e=k(e));var t=S(this),s=C(this,e,void 0);return s[V].C=!0,w(t),s},t.finishDraft=function(e,t){var s=(e&&e[V]).A;return b(s,t),x(void 0,s)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!$&&n(20),this.O=e},t.applyPatches=function(e,t){var s;for(s=t.length-1;s>=0;s--){var n=t[s];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}s>-1&&(t=t.slice(s+1));var o=v("Patches").$;return r(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Q=new Y,X=Q.produce;Q.produceWithPatches.bind(Q),Q.setAutoFreeze.bind(Q),Q.setUseProxies.bind(Q),Q.applyPatches.bind(Q),Q.createDraft.bind(Q),Q.finishDraft.bind(Q);const Z=X},9571:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Bounce:()=>x,Flip:()=>I,Icons:()=>h,Slide:()=>T,ToastContainer:()=>j,Zoom:()=>O,collapseToast:()=>u,cssTransition:()=>d,toast:()=>R,useToast:()=>b,useToastContainer:()=>g});var n=s(1609),r=s(53);const o=e=>"number"==typeof e&&!isNaN(e),i=e=>"string"==typeof e,a=e=>"function"==typeof e,l=e=>i(e)||a(e)?e:null,c=e=>(0,n.isValidElement)(e)||i(e)||a(e)||o(e);function u(e,t,s){void 0===s&&(s=300);const{scrollHeight:n,style:r}=e;requestAnimationFrame((()=>{r.minHeight="initial",r.height=n+"px",r.transition=`all ${s}ms`,requestAnimationFrame((()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,s)}))}))}function d(e){let{enter:t,exit:s,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(e){let{children:a,position:l,preventExitTransition:c,done:d,nodeRef:f,isIn:p}=e;const m=r?`${t}--${l}`:t,h=r?`${s}--${l}`:s,g=(0,n.useRef)(0);return(0,n.useLayoutEffect)((()=>{const e=f.current,t=m.split(" "),s=n=>{n.target===f.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",s),e.removeEventListener("animationcancel",s),0===g.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",s),e.addEventListener("animationcancel",s)}),[]),(0,n.useEffect)((()=>{const e=f.current,t=()=>{e.removeEventListener("animationend",t),o?u(e,d,i):d()};p||(c?t():(g.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[p]),n.createElement(n.Fragment,null,a)}}function f(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const p={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const s=this.list.get(e).filter((e=>e!==t));return this.list.set(e,s),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const s=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(s)}))}},m=e=>{let{theme:t,type:s,...r}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${s})`,...r})},h={info:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}};function g(e){const[,t]=(0,n.useReducer)((e=>e+1),0),[s,r]=(0,n.useState)([]),u=(0,n.useRef)(null),d=(0,n.useRef)(new Map).current,m=e=>-1!==s.indexOf(e),g=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:m,getToast:e=>d.get(e)}).current;function v(e){let{containerId:t}=e;const{limit:s}=g.props;!s||t&&g.containerId!==t||(g.count-=g.queue.length,g.queue=[])}function y(e){r((t=>null==e?[]:t.filter((t=>t!==e))))}function b(){const{toastContent:e,toastProps:t,staleId:s}=g.queue.shift();w(e,t,s)}function _(e,s){let{delay:r,staleId:m,...v}=s;if(!c(e)||function(e){return!u.current||g.props.enableMultiContainer&&e.containerId!==g.props.containerId||d.has(e.toastId)&&null==e.updateId}(v))return;const{toastId:_,updateId:S,data:E}=v,{props:x}=g,T=()=>y(_),O=null==S;O&&g.count++;const I={...x,style:x.toastStyle,key:g.toastKey++,...Object.fromEntries(Object.entries(v).filter((e=>{let[t,s]=e;return null!=s}))),toastId:_,updateId:S,data:E,closeToast:T,isIn:!1,className:l(v.className||x.toastClassName),bodyClassName:l(v.bodyClassName||x.bodyClassName),progressClassName:l(v.progressClassName||x.progressClassName),autoClose:!v.isLoading&&(j=v.autoClose,P=x.autoClose,!1===j||o(j)&&j>0?j:P),deleteToast(){const e=f(d.get(_),"removed");d.delete(_),p.emit(4,e);const s=g.queue.length;if(g.count=null==_?g.count-g.displayedToast:g.count-1,g.count<0&&(g.count=0),s>0){const e=null==_?g.props.limit:1;if(1===s||1===e)g.displayedToast++,b();else{const t=e>s?s:e;g.displayedToast=t;for(let e=0;e<t;e++)b()}}else t()}};var j,P;I.iconOut=function(e){let{theme:t,type:s,isLoading:r,icon:l}=e,c=null;const u={theme:t,type:s};return!1===l||(a(l)?c=l(u):(0,n.isValidElement)(l)?c=(0,n.cloneElement)(l,u):i(l)||o(l)?c=l:r?c=h.spinner():(e=>e in h)(s)&&(c=h[s](u))),c}(I),a(v.onOpen)&&(I.onOpen=v.onOpen),a(v.onClose)&&(I.onClose=v.onClose),I.closeButton=x.closeButton,!1===v.closeButton||c(v.closeButton)?I.closeButton=v.closeButton:!0===v.closeButton&&(I.closeButton=!c(x.closeButton)||x.closeButton);let A=e;(0,n.isValidElement)(e)&&!i(e.type)?A=(0,n.cloneElement)(e,{closeToast:T,toastProps:I,data:E}):a(e)&&(A=e({closeToast:T,toastProps:I,data:E})),x.limit&&x.limit>0&&g.count>x.limit&&O?g.queue.push({toastContent:A,toastProps:I,staleId:m}):o(r)?setTimeout((()=>{w(A,I,m)}),r):w(A,I,m)}function w(e,t,s){const{toastId:n}=t;s&&d.delete(s);const o={content:e,props:t};d.set(n,o),r((e=>[...e,n].filter((e=>e!==s)))),p.emit(4,f(o,null==o.props.updateId?"added":"updated"))}return(0,n.useEffect)((()=>(g.containerId=e.containerId,p.cancelEmit(3).on(0,_).on(1,(e=>u.current&&y(e))).on(5,v).emit(2,g),()=>{d.clear(),p.emit(3,g)})),[]),(0,n.useEffect)((()=>{g.props=e,g.isToastActive=m,g.displayedToast=s.length})),{getToastToRender:function(t){const s=new Map,n=Array.from(d.values());return e.newestOnTop&&n.reverse(),n.forEach((e=>{const{position:t}=e.props;s.has(t)||s.set(t,[]),s.get(t).push(e)})),Array.from(s,(e=>t(e[0],e[1])))},containerRef:u,isToastActive:m}}function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function b(e){const[t,s]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),i=(0,n.useRef)(null),l=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,n.useRef)(e),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:m}=e;function h(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",S),document.addEventListener("touchmove",w),document.addEventListener("touchend",S);const s=i.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=s.getBoundingClientRect(),s.style.transition="",l.x=v(t.nativeEvent),l.y=y(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=s.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=s.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(l.boundingRect){const{top:s,bottom:n,left:r,right:o}=l.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&l.x>=r&&l.x<=o&&l.y>=s&&l.y<=n?_():b()}}function b(){s(!0)}function _(){s(!1)}function w(s){const n=i.current;l.canDrag&&n&&(l.didMove=!0,t&&_(),l.x=v(s),l.y=y(s),l.delta="x"===e.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,n.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function S(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",S);const t=i.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)((()=>{c.current=e})),(0,n.useEffect)((()=>(i.current&&i.current.addEventListener("d",b,{once:!0}),a(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;a(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)})),[]),(0,n.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||_(),window.addEventListener("focus",b),window.addEventListener("blur",_)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",_))})),[e.pauseOnFocusLoss]);const E={onMouseDown:h,onTouchStart:h,onMouseUp:g,onTouchEnd:g};return u&&d&&(E.onMouseEnter=_,E.onMouseLeave=b),m&&(E.onClick=e=>{p&&p(e),l.canCloseOnClick&&f()}),{playToast:b,pauseToast:_,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:E}}function _(e){let{closeToast:t,theme:s,ariaLabel:r="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${s}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function w(e){let{delay:t,isRunning:s,closeToast:o,type:i="default",hide:l,className:c,style:u,controlledProgress:d,progress:f,rtl:p,isIn:m,theme:h}=e;const g=l||d&&0===f,v={...u,animationDuration:`${t}ms`,animationPlayState:s?"running":"paused",opacity:g?0:1};d&&(v.transform=`scaleX(${f})`);const y=(0,r.A)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":p}),b=a(c)?c({rtl:p,type:i,defaultClassName:y}):(0,r.A)(y,c);return n.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:v,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{m&&o()}})}const S=e=>{const{isRunning:t,preventExitTransition:s,toastRef:o,eventHandlers:i}=b(e),{closeButton:l,children:c,autoClose:u,onClick:d,type:f,hideProgressBar:p,closeToast:m,transition:h,position:g,className:v,style:y,bodyClassName:S,bodyStyle:E,progressClassName:x,progressStyle:T,updateId:O,role:I,progress:j,rtl:P,toastId:A,deleteToast:M,isIn:C,isLoading:k,iconOut:N,closeOnClick:F,theme:L}=e,D=(0,r.A)("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":F}),R=a(v)?v({rtl:P,position:g,type:f,defaultClassName:D}):(0,r.A)(D,v),B=!!j||!u,$={closeToast:m,type:f,theme:L};let z=null;return!1===l||(z=a(l)?l($):(0,n.isValidElement)(l)?(0,n.cloneElement)(l,$):_($)),n.createElement(h,{isIn:C,done:M,position:g,preventExitTransition:s,nodeRef:o},n.createElement("div",{id:A,onClick:d,className:R,...i,style:y,ref:o},n.createElement("div",{...C&&{role:I},className:a(S)?S({type:f}):(0,r.A)("Toastify__toast-body",S),style:E},null!=N&&n.createElement("div",{className:(0,r.A)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!k})},N),n.createElement("div",null,c)),z,n.createElement(w,{...O&&!B?{key:`pb-${O}`}:{},rtl:P,theme:L,delay:u,isRunning:t,isIn:C,closeToast:m,hide:p,type:f,style:T,className:x,controlledProgress:B,progress:j||0})))},E=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},x=d(E("bounce",!0)),T=d(E("slide",!0)),O=d(E("zoom")),I=d(E("flip")),j=(0,n.forwardRef)(((e,t)=>{const{getToastToRender:s,containerRef:o,isToastActive:i}=g(e),{className:c,style:u,rtl:d,containerId:f}=e;function p(e){const t=(0,r.A)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return a(c)?c({position:e,rtl:d,defaultClassName:t}):(0,r.A)(t,l(c))}return(0,n.useEffect)((()=>{t&&(t.current=o.current)}),[]),n.createElement("div",{ref:o,className:"Toastify",id:f},s(((e,t)=>{const s=t.length?{...u}:{...u,pointerEvents:"none"};return n.createElement("div",{className:p(e),style:s,key:`container-${e}`},t.map(((e,s)=>{let{content:r,props:o}=e;return n.createElement(S,{...o,isIn:i(o.toastId),style:{...o.style,"--nth":s+1,"--len":t.length},key:`toast-${o.key}`},r)})))})))}));j.displayName="ToastContainer",j.defaultProps={position:"top-right",transition:x,autoClose:5e3,closeButton:_,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let P,A=new Map,M=[],C=1;function k(){return""+C++}function N(e){return e&&(i(e.toastId)||o(e.toastId))?e.toastId:k()}function F(e,t){return A.size>0?p.emit(0,e,t):M.push({content:e,options:t}),t.toastId}function L(e,t){return{...t,type:t&&t.type||e,toastId:N(t)}}function D(e){return(t,s)=>F(t,L(e,s))}function R(e,t){return F(e,L("default",t))}R.loading=(e,t)=>F(e,L("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),R.promise=function(e,t,s){let n,{pending:r,error:o,success:l}=t;r&&(n=i(r)?R.loading(r,s):R.loading(r.render,{...s,...r}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,r)=>{if(null==t)return void R.dismiss(n);const o={type:e,...c,...s,data:r},a=i(t)?{render:t}:t;return n?R.update(n,{...o,...a}):R(a.render,{...o,...a}),r},d=a(e)?e():e;return d.then((e=>u("success",l,e))).catch((e=>u("error",o,e))),d},R.success=D("success"),R.info=D("info"),R.error=D("error"),R.warning=D("warning"),R.warn=R.warning,R.dark=(e,t)=>F(e,L("default",{theme:"dark",...t})),R.dismiss=e=>{A.size>0?p.emit(1,e):M=M.filter((t=>null!=e&&t.options.toastId!==e))},R.clearWaitingQueue=function(e){return void 0===e&&(e={}),p.emit(5,e)},R.isActive=e=>{let t=!1;return A.forEach((s=>{s.isToastActive&&s.isToastActive(e)&&(t=!0)})),t},R.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const s=function(e,t){let{containerId:s}=t;const n=A.get(s||P);return n&&n.getToast(e)}(e,t);if(s){const{props:n,content:r}=s,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:k()};o.toastId!==e&&(o.staleId=e);const i=o.render||r;delete o.render,F(i,o)}}),0)},R.done=e=>{R.update(e,{progress:1})},R.onChange=e=>(p.on(4,e),()=>{p.off(4,e)}),R.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},R.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},p.on(2,(e=>{P=e.containerId||e,A.set(P,e),M.forEach((e=>{p.emit(0,e.content,e.options)})),M=[]})).on(3,(e=>{A.delete(e.containerId||e),0===A.size&&p.off(0).off(1).off(5)}))},1621:(e,t,s)=>{"use strict";s.d(t,{vt:()=>d});const n=e=>{let t;const s=new Set,n=(e,n)=>{const r="function"==typeof e?e(t):e;if(!Object.is(r,t)){const e=t;t=(null!=n?n:"object"!=typeof r||null===r)?r:Object.assign({},t,r),s.forEach((s=>s(t,e)))}},r=()=>t,o={setState:n,getState:r,getInitialState:()=>i,subscribe:e=>(s.add(e),()=>s.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),s.clear()}},i=t=e(n,r,o);return o};var r=s(1609),o=s(9242);const{useDebugValue:i}=r,{useSyncExternalStoreWithSelector:a}=o;let l=!1;const c=e=>e,u=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?n(e):n)(e):e,s=(e,s)=>function(e,t=c,s){s&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);const n=a(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,s);return i(n),n}(t,e,s);return Object.assign(s,t),s},d=e=>e?u(e):u}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return s[e].call(o.exports,o,o.exports,r),o.exports}r.m=s,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,s)=>(r.f[s](e,t),t)),[])),r.u=e=>e+"."+{8:"a58b0fbbca98fed315b4",91:"b0f863c7b47144cb4cdf",139:"12de12bd599af6bb648c",366:"79830113ad25eba9fb57",470:"5091a8eb35ca6d3dbc61",485:"47f7474dc2a61c04262b",573:"287bf1828cad7f912345",829:"0d69f68a1345874307b1",838:"c841004b517cdf3abd86",995:"7a0675fe0519b06656b3"}[e]+".js",r.miniCssF=e=>e+".css",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="really-simple-ssl:",r.l=(s,n,o,i)=>{if(e[s])e[s].push(n);else{var a,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==s||d.getAttribute("data-webpack")==t+o){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",t+o),a.src=s),e[s]=[n];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=e[s];if(delete e[s],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=s[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{if("undefined"!=typeof document){var e={57:0};r.f.miniCss=(t,s)=>{e[t]?s.push(e[t]):0!==e[t]&&{485:1,829:1}[t]&&s.push(e[t]=(e=>new Promise(((t,s)=>{var n=r.miniCssF(e),o=r.p+n;if(((e,t)=>{for(var s=document.getElementsByTagName("link"),n=0;n<s.length;n++){var r=(i=s[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(r===e||r===t))return i}var o=document.getElementsByTagName("style");for(n=0;n<o.length;n++){var i;if((r=(i=o[n]).getAttribute("data-href"))===e||r===t)return i}})(n,o))return t();((e,t,s,n,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",r.nc&&(i.nonce=r.nc),i.onerror=i.onload=s=>{if(i.onerror=i.onload=null,"load"===s.type)n();else{var r=s&&s.type,a=s&&s.target&&s.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=a,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,document.head.appendChild(i)})(e,o,0,t,s)})))(t).then((()=>{e[t]=0}),(s=>{throw delete e[t],s})))}}})(),(()=>{var e={57:0};r.f.j=(t,s)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)s.push(n[2]);else{var o=new Promise(((s,r)=>n=e[t]=[s,r]));s.push(n[2]=o);var i=r.p+r.u(t),a=new Error;r.l(i,(s=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=s&&("load"===s.type?"missing":s.type),i=s&&s.target&&s.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=(t,s)=>{var n,o,i=s[0],a=s[1],l=s[2],c=0;if(i.some((t=>0!==e[t]))){for(n in a)r.o(a,n)&&(r.m[n]=a[n]);l&&l(r)}for(t&&t(s);c<i.length;c++)o=i[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0},s=self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})(),r.nc=void 0,(()=>{"use strict";var e=r(6087),t=r(7723),s=r(340),n=r(7135),o=r(8743),i=r(790);const a=()=>{const{menu:r,selectedMainMenuItem:a,fetchMenuData:l}=(0,n.A)();let c=rsssl_settings.plugin_url;(0,e.useEffect)((()=>{l()}),[]);let u=r.filter((e=>null!==e));return(0,i.jsxs)("div",{className:"rsssl-header-container",children:[(0,i.jsxs)("div",{className:"rsssl-header",children:[(0,i.jsx)("img",{className:"rsssl-logo",src:c+"assets/img/really-simple-security-logo.svg",alt:"Really Simple Security logo"}),(0,i.jsx)("div",{className:"rsssl-header-left",children:(0,i.jsx)("nav",{className:"rsssl-header-menu",children:(0,i.jsx)("ul",{children:u.map(((e,t)=>(0,i.jsx)("li",{children:(0,i.jsx)("a",{className:a===e.id?"active":"",href:"#"+e.id.toString(),children:e.title})},"menu-"+t)))})})}),(0,i.jsxs)("div",{className:"rsssl-header-right",children:[!rsssl_settings.le_generated_by_rsssl&&(0,i.jsx)("a",{className:"rsssl-knowledge-base-link",href:(0,o.g)("https://really-simple-ssl.com/knowledge-base"),target:"_blank",rel:"noopener noreferrer",children:(0,t.__)("Documentation","really-simple-ssl")}),rsssl_settings.le_generated_by_rsssl&&(0,i.jsx)("a",{href:rsssl_settings.letsencrypt_url,children:(0,t.__)("Let's Encrypt","really-simple-ssl")}),rsssl_settings.pro_plugin_active&&(0,i.jsx)(i.Fragment,{children:(()=>{const e=rsssl_settings.dashboard_url+"#settings&highlightfield=premium_support";return(0,i.jsx)("a",{href:e,className:"button button-black",target:"_self",rel:"noopener noreferrer",children:(0,t.__)("Support","really-simple-ssl")})})()}),!rsssl_settings.pro_plugin_active&&(0,i.jsx)("a",{href:rsssl_settings.upgrade_link,className:"button button-black",target:"_blank",rel:"noopener noreferrer",children:(0,t.__)("Go Pro","really-simple-ssl")})]})]}),(0,i.jsx)(s.default,{className:"rsssl-wizard-notices"})]})};var l=r(6064);const c=e=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"rsssl-header-container",children:(0,i.jsx)("div",{className:"rsssl-header",children:(0,i.jsx)("img",{className:"rsssl-logo",src:rsssl_settings.plugin_url+"assets/img/really-simple-security-logo.svg",alt:"Really Simple Security logo"})})}),(0,i.jsxs)("div",{className:"rsssl-content-area rsssl-grid rsssl-dashboard rsssl-page-placeholder",children:[(0,i.jsx)("div",{className:"rsssl-grid-item rsssl-column-2 rsssl-row-2 ",children:e.error&&(0,i.jsx)(l.A,{error:e.error})}),(0,i.jsx)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,i.jsx)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,i.jsx)("div",{className:"rsssl-grid-item rsssl-column-2"})]})]});var u=r(1307),d=r(1254),f=r(2039),p=r(5131),m=r(9518);const h=()=>{const{error:s,fields:o,changedFields:l,fetchFieldsData:h,updateFieldsData:g,fieldsLoaded:v}=(0,d.A)(),{showOnboardingModal:y,fetchOnboardingModalStatus:b,modalStatusLoaded:_}=(0,f.A)(),{selectedMainMenuItem:w,fetchMenuData:S}=(0,n.A)(),{showModal:E}=(0,p.A)(),[x,T]=(0,e.useState)(null),[O,I]=(0,e.useState)(null),[j,P]=(0,e.useState)(null),[A,M]=(0,e.useState)(null),[C,k]=(0,e.useState)(null);(0,e.useEffect)((()=>{_||b()}),[]),(0,e.useEffect)((()=>{rsssl_settings.json_translations.forEach((e=>{let s=JSON.parse(e),n=s.locale_data["really-simple-ssl"]||s.locale_data.messages;n[""].domain="really-simple-ssl",(0,t.setLocaleData)(n,"really-simple-ssl")}))}),[]),(0,e.useEffect)((()=>{"dashboard"!==w&&(x||Promise.all([r.e(8),r.e(838),r.e(995)]).then(r.bind(r,5995)).then((({default:e})=>{T((()=>e))})),j||Promise.resolve().then(r.bind(r,340)).then((({default:e})=>{P((()=>e))})),A||r.e(470).then(r.bind(r,5470)).then((({default:e})=>{M((()=>e))}))),"dashboard"!==w||O||Promise.all([r.e(8),r.e(838),r.e(366)]).then(r.bind(r,8366)).then((async({default:e})=>{I((()=>e))}))}),[w]);const[N,F]=(0,e.useState)(null);(0,e.useEffect)((()=>{y&&!N&&Promise.all([r.e(8),r.e(838),r.e(573),r.e(829)]).then(r.bind(r,8829)).then((({default:e})=>{F((()=>e))}))}),[y]);const[L,D]=(0,e.useState)(null);return(0,e.useEffect)((()=>{E&&!L&&Promise.all([r.e(8),r.e(91)]).then(r.bind(r,9091)).then((({default:e})=>{D((()=>e))}))}),[E]),(0,e.useEffect)((()=>{Promise.resolve().then(r.bind(r,9571)).then((e=>{const t=e.ToastContainer;k((()=>t))}))}),[]),(0,e.useEffect)((()=>{v&&(S(o),window.addEventListener("hashchange",(e=>{S(o)})))}),[o]),(0,e.useEffect)((()=>{let e=(0,u.A)("menu");g(e)}),[l]),(0,e.useEffect)((()=>{let e=(0,u.A)("menu");h(e)}),[]),s?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(c,{error:s})}):(0,i.jsxs)("div",{className:"rsssl-wrapper",children:[N&&(0,i.jsx)(m.A,{fallback:"Could not load onboarding modal",children:(0,i.jsx)(N,{})}),L&&(0,i.jsx)(m.A,{fallback:"Could not load modal",children:(0,i.jsx)(L,{})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a,{}),(0,i.jsxs)("div",{className:"rsssl-content-area rsssl-grid rsssl-"+w,children:["dashboard"!==w&&x&&A&&j&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.A,{fallback:"Could not load menu",children:(0,i.jsx)(A,{})}),(0,i.jsx)(m.A,{fallback:"Could not load settings",children:(0,i.jsx)(x,{})}),(0,i.jsx)(m.A,{fallback:"Could not load notices",children:(0,i.jsx)(j,{className:"rsssl-wizard-notices"})})]}),"dashboard"===w&&O&&(0,i.jsx)(m.A,{fallback:"Could not load menu",children:(0,i.jsx)(O,{})})]})]}),C&&(0,i.jsx)(C,{position:"bottom-right",autoClose:2e3,limit:3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,theme:"light"})]})};document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById("really-simple-ssl");t&&(e.createRoot?(0,e.createRoot)(t).render((0,i.jsx)(h,{})):(0,e.render)((0,i.jsx)(h,{}),t))})),document.addEventListener("click",(e=>{e.target.closest("#ssl-labs-check-button")&&(document.querySelector(".rsssl-ssllabs").classList.add("rsssl-block-highlight"),setTimeout((function(){document.querySelector(".rsssl-ssllabs").classList.remove("rsssl-block-highlight")}),6e3))}))})()})();