File: /home/xluilhul/public_html/wp-content/plugins/better-wp-security/dist/pages/settings.js
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[199,2932],{2873:e=>{e.exports=function(){return this.wp.hooks}()},3075:e=>{e.exports=function(){return this.wp.i18n}()},8601:e=>{e.exports=function(){return this.wp.element}()},11431:e=>{e.exports=function(){return this.wp.a11y}()},17232:e=>{e.exports=function(){return this.wp.domReady}()},29672:e=>{e.exports=function(){return this.wp.notices}()},31987:e=>{e.exports=function(){return this.wp.data}()},32633:(e,t,r)=>{"use strict";r.d(t,{wn:()=>y,X$:()=>C});var n=r(58168),a=r(51609),i=r(54625),l=r(39959),s=r(3075),o=r(89897),c=r(8601),d=r(26843),u=r(64716),m=r(4319),p=r(81923),g=r(16718),h=r(61965);const f=(0,g.SL)(h.Ay),E=(0,p.A)(f,{target:"ejy4qm0"})(".itsec-rjsf-object-fieldset{display:grid;grid-template-columns:[label fields] minmax(0, 1fr);grid-template-rows:auto;grid-gap:.5rem 0;@media (min-width: ",(({theme:{breaks:e}})=>e.small),"px){grid-template-columns:[label] 10rem [fields] minmax(0, 1fr);}}.itsec-rjsf-section-description{margin-top:0;grid-column:fields;}>.field-object>.itsec-rjsf-object-fieldset{&>.itsec-rjsf-title-field,&>.itsec-rjsf-section-title{grid-column:label;font-size:1rem;padding-right:1rem;margin-top:0;&:not(:first-child){border-top:1px solid ",(({theme:e})=>e.colors.border.normal),";margin-top:.5rem;padding-top:1rem;@media (min-width: ",(({theme:{breaks:e}})=>e.small),"px){&+*{border-top:1px solid ",(({theme:e})=>e.colors.border.normal),";margin-top:.5rem;padding-top:1rem;}}}}&>.form-group:not(.field-object){grid-column:label/fields-end;}&>.itsec-rjsf-section-title~.form-group{grid-column:fields;}&>.itsec-rjsf-section-title:has(+ .itsec-highlighted-search-result){border-left:5px solid ",(({theme:e})=>e.colors.border.info),";background:#f9f7fd;margin-bottom:0;padding-top:1rem!important;}&>.field-object{grid-column:label/fields-end;}&>.field-description{margin-top:0;}}.itsec-rjsf-object-fieldset>*>.itsec-rjsf-object-fieldset{&>.itsec-rjsf-title-field{grid-column:label;font-size:1rem;padding-right:1rem;}&>.form-group{grid-column:fields;}&>.field-description{grid-column:fields;margin-top:0;}}.components-base-control__label,.components-input-control__label,label,caption,legend{color:",(({theme:e})=>e.colors.text.dark),";}.itsec-highlighted-search-result{background:#f9f7fd;padding-bottom:1rem;padding-top:1rem!important;.components-base-control__label,.components-input-control__label,label,caption{border-bottom:3px solid ",(({theme:e})=>e.colors.border.info),";padding-bottom:3px;margin-bottom:6px;}.components-base-control__field{margin-bottom:12px;}}.field-object:not(:first-child):not(:empty){border-top:1px solid ",(({theme:e})=>e.colors.border.normal),";margin-top:1rem;padding-top:1rem;}.field-object:empty{display:none;}.itsec-rjsf-title-field+.field-object:not(:first-child),.itsec-rjsf-section-description+.field-object:not(:first-child){border-top:none;margin-top:0;padding-top:0;}");function y({saveLabel:e,isSaving:t,saveDisabled:r,cancelLabel:i,onCancel:s,cancelRoute:c,undoLabel:d,undoDisabled:u,onUndo:p,children:g,errors:h,apiError:f,schemaError:E,withCard:b,alignActions:_,...x}){let w=(0,o.useInstanceId)(y,"itsec-schema-form");w=x.id||w;const L=(0,a.createElement)(a.Fragment,null,(0,a.createElement)(m.VS,{errors:h,apiError:f,schemaError:E}),(0,a.createElement)(C,(0,n.A)({},x,{id:w})));return(0,a.createElement)(l.Flex,{direction:"column",gap:7,justify:"start",expanded:!1},(0,a.createElement)(l.FlexItem,null,b&&(0,a.createElement)(l.Card,null,(0,a.createElement)(l.CardBody,null,L)),!b&&L),(0,a.createElement)(l.FlexItem,null,(0,a.createElement)(v,{id:w,saveLabel:e,cancelLabel:i,isSaving:t,saveDisabled:r,onCancel:s,cancelRoute:c,undoLabel:d,undoDisabled:u,onUndo:p,align:_},g)))}const C=(0,c.forwardRef)((({className:e,...t},r)=>(0,a.createElement)(E,(0,n.A)({},t,{ref:r,className:e}),(0,a.createElement)(a.Fragment,null))));function v({id:e,saveLabel:t=(0,s.__)("Save","better-wp-security"),isSaving:r,saveDisabled:n,cancelLabel:o=(0,s.__)("Cancel","better-wp-security"),onCancel:c,cancelRoute:p,undoLabel:g=(0,s.__)("Undo Changes","better-wp-security"),undoDisabled:h,onUndo:f,align:E,children:y}){return(0,a.createElement)(l.Flex,{align:E},c&&(0,a.createElement)(l.FlexItem,null,(0,a.createElement)(d.$n,{variant:"tertiary",type:"button",onClick:c},o)),p&&(0,a.createElement)(l.FlexItem,null,(0,a.createElement)(i.N_,{component:(0,u.kk)(d.$n),variant:"tertiary",type:"button",to:p},o)),!E&&(0,a.createElement)(m.g8,null),y,f&&(0,a.createElement)(l.FlexItem,null,(0,a.createElement)(d.$n,{variant:"secondary",disabled:h,onClick:f},g)),(0,a.createElement)(l.FlexItem,null,(0,a.createElement)(d.$n,{variant:"primary",isBusy:r,disabled:r||n,form:e,type:"submit"},t)))}},38125:e=>{e.exports=function(){return this.wp.plugins}()},39959:e=>{e.exports=function(){return this.wp.components}()},46627:e=>{e.exports=function(){return this.itsec.packages.data}()},51609:e=>{"use strict";e.exports=window.React},55933:e=>{e.exports=function(){return this.wp.primitives}()},61958:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ChildPages:()=>N,ErrorRenderer:()=>P,FeatureToggle:()=>$,Logo:()=>G,Main:()=>te,ModuleCard:()=>be,ModuleFormInputs:()=>ce,ModulePanelHeaderFill:()=>ve,Navigation:()=>Le,NavigationFill:()=>Ae,NoticeList:()=>Me,ONBOARD_STORE_NAME:()=>xr,OnboardBackActionFill:()=>Ve,OnboardEmptyMain:()=>qe,OnboardHeader:()=>De,OnboardMain:()=>je,OnboardProgress:()=>We,OnboardSiteTypeBeforeFill:()=>Fr,OnboardSiteTypeIpDetectionFill:()=>Kr,Page:()=>O,PrimaryForm:()=>Ye,PrimaryFormSection:()=>Ke,SelectableCard:()=>at,Sidebar:()=>lt,SimpleUserGroupControl:()=>ut,SingleModulePage:()=>xa,SiteScanIcon:()=>mt,SoftwareVulnerabilityCard:()=>yt,StatusToggleSettings:()=>ie,history:()=>ii,useAllowedSettingsFields:()=>Y,useConfigContext:()=>Z,useCurrentPage:()=>I,useModuleRequirementsValidator:()=>K,useNavigateTo:()=>U,useNavigation:()=>T,useSettingsForm:()=>W});var n={};r.r(n),r.d(n,{CLEAR_SITE_TYPE:()=>Jt,CLEAR_VISITED_LOCATIONS:()=>ar,EDIT_ANSWER:()=>Gt,RECEIVE_SITE_TYPE:()=>Yt,RECEIVE_SITE_TYPES:()=>Wt,RECORD_VISITED_LOCATION:()=>nr,REGISTER_COMPLETION_STEP:()=>tr,REGISTER_QUESTION_COMPONENT:()=>er,SELECT_SITE_TYPE:()=>Kt,SET_COMPLETION_STEP:()=>rr,SET_ERROR:()=>Xt,SET_IS_ANSWERING:()=>Qt,answerQuestion:()=>Dt,applyAnswerResponse:()=>zt,clearSiteType:()=>Tt,clearVisitedLocations:()=>Ut,completeOnboarding:()=>$t,editAnswer:()=>Ft,fetchSiteTypes:()=>kt,receiveSiteType:()=>Ht,receiveSiteTypes:()=>Vt,recordVisitedLocation:()=>Zt,registerCompletionStep:()=>Bt,registerQuestionComponent:()=>qt,repeatQuestion:()=>Rt,resetOnboarding:()=>Pt,selectSiteType:()=>It});var a={};r.r(a),r.d(a,{getAnswerRequest:()=>hr,getAnswers:()=>or,getCompletionStep:()=>yr,getCompletionSteps:()=>gr,getEditedAnswer:()=>dr,getLastError:()=>mr,getLastVisitedLocation:()=>Er,getNextQuestion:()=>cr,getQuestionComponent:()=>pr,getRestoreSiteTypeRequest:()=>fr,getSelectedSiteType:()=>sr,getSelectedSiteTypeId:()=>lr,getSiteTypes:()=>ir,isAnswering:()=>ur});var i={};r.r(i),r.d(i,{getNextQuestion:()=>_r,getSelectedSiteType:()=>br,getSiteTypes:()=>vr});var l=r(51609),s=r(3075),o=r(8601),c=r(17232),d=r.n(c),u=r(75413),m=r(81923),p=r(56347),g=r(7e3),h=r(2359),f=r(79487),E=r(39959),y=r(38125),C=r(26843),v=r(66087),b=r(17929),_=r(58729),x=r(89897),w=r(31987),L=r(46627);const S=(0,o.createContext)({pages:[],childPages:{},addPage:()=>{},removePage:()=>{},addChildPages:()=>{},removeChildPages:()=>{}});function A({children:e}){const[t,r]=(0,o.useState)([]),[n,a]=(0,o.useState)({}),i=(0,o.useCallback)((e=>{r((t=>{const r=t.findIndex((t=>t.id===e.id));let n;return-1===r?n=[...t,e]:(n=[...t],n[r]=e),(0,v.sortBy)(n,"priority")}))}),[]),s=(0,o.useCallback)((e=>{r((t=>t.filter((t=>t.id!==e))))}),[]),c=(0,o.useCallback)(((e,t)=>{a((r=>({...r,[e]:t})))}),[a]),d=(0,o.useCallback)((e=>{a((t=>(0,v.omit)(t,e)))}),[a]);return(0,l.createElement)(S.Provider,{value:{pages:t,childPages:n,addPage:i,removePage:s,addChildPages:c,removeChildPages:d}},e)}function O({id:e,title:t,icon:r,roots:n=["settings"],priority:a=90,location:i="primary",featureFlag:l,ignore:s,hideFromNav:c,children:d}){const u=(0,o.useContext)(S);return(0,o.useEffect)((()=>(u.addPage({id:e,title:t,icon:r,roots:n,priority:a,location:i,featureFlag:l,ignore:s,hideFromNav:c,render:d}),()=>{u.removePage(e)})),[e,t]),null}function N(e){const{pages:t}=e,r=(0,o.useContext)(S),n=(0,x.useInstanceId)(N,"");return(0,_.Ay)((()=>(r.addChildPages(n,t),()=>{r.removeChildPages(n)})),[t]),null}function M({root:e,location:t}={}){const{featureFlags:r}=(0,w.useSelect)((e=>({featureFlags:e(L.CORE_STORE_NAME).getFeatureFlags()})),[]),{root:n}=(0,p.g)(),{pages:a}=(0,o.useContext)(S);return a.filter((a=>a.roots.includes(e||n)&&(!t||a.location===t)&&(!a.featureFlag||r.includes(a.featureFlag))))}function I(){const e=M(),{page:t}=(0,p.g)();return e.find((e=>e.id===t))}function k(){const{childPages:e}=(0,o.useContext)(S);return(0,o.useMemo)((()=>(0,v.flatMap)(e)),[e])}function T(e){const{root:t,page:r,child:n,tab:a}=(0,p.g)(),i=function(e){const t=M();if(!t.length)return;if(!e)return t[0];const r=t.findIndex((t=>t.id===e));return t[r+1]?.id}(r),l=k().map((e=>e.id)),s=(0,p.W6)();let o,c;if(e){let i,l;for(let t=0;t<e.length;t++)if(e[t]===a){i=e[t-1],l=e[t+1];break}o=i&&`/${t}/${r}/${n}/${i}`,c=l&&`/${t}/${r}/${n}/${l}`}if((!o||!c)&&l){let e,a;for(let t=0;t<l.length;t++)if(l[t]===n){e=l[t-1],a=l[t+1];break}o=o||e&&`/${t}/${r}/${e}`,c=c||a&&`/${t}/${r}/${a}`}return!c&&i&&(c=`/${t}/${i}`),{previous:o,goPrevious(){o&&s.push((0,b.yJ)(o))},next:c,goNext(){c&&s.push((0,b.yJ)(c))},nextPage:i&&`/${t}/${i}`,goNextPage(){i&&s.push((0,b.yJ)(`/${t}/${i}`))}}}S.displayName="PageRegistration";var F=r(4319),D=r(54625),R=r(75596),z=r(33520);function P({error:e}){const{pathname:t}=(0,p.zy)();return(0,l.createElement)(E.Card,{className:"itsec-error-renderer"},(0,l.createElement)(E.CardBody,null,(0,l.createElement)(F.zf,{icon:(0,l.createElement)(z.sz,null)})),(0,l.createElement)(E.CardFooter,{isShady:!0},(0,s.__)("An unexpected error occurred.","better-wp-security"),(0,l.createElement)(R.g8,null),(0,l.createElement)(E.Button,{variant:"secondary",onClick:()=>window.location.reload()},(0,s.__)("Refresh","better-wp-security")),(0,l.createElement)(E.ClipboardButton,{variant:"primary",text:`Page: ${t}\nError: ${e.stack}`},(0,s.__)("Copy Error","better-wp-security"))))}function $({label:e,checked:t,onChange:r,recommended:n,children:a}){return(0,l.createElement)(V,null,(0,l.createElement)(E.Flex,{gap:1,align:"center",expanded:!1},(0,l.createElement)(E.ToggleControl,{label:e,checked:t,onChange:r,__nextHasNoMarginBottom:!0}),a),n&&(0,l.createElement)(C.Ex,{text:(0,s.__)("Recommended","better-wp-security"),variant:"infoAccent"}))}const V=(0,m.A)(C.ui,{target:"e1t93gdd0"})("display:flex;justify-content:space-between;align-items:center;border:1px solid ",(({theme:e})=>e.colors.border.normal),";padding:1rem;gap:0.5rem;");var H=r(46942),j=r.n(H),q=r(62932);const B=(0,o.createContext)({serverType:"",installType:"",onboardComplete:!1});function Z(){return(0,o.useContext)(B)}function U(){const e=(0,p.W6)();return(0,o.useCallback)(((t,r="push")=>e[r]((0,b.yJ)(t))),[e])}function W(e,t){const{formData:r,conditionalSchemaBase:n}=(0,w.useSelect)((t=>({formData:t(L.MODULES_STORE_NAME).getEditedSettings(e.id),conditionalSchemaBase:t(L.MODULES_STORE_NAME).getSettingsConditionalSchema(e.id)})),[e.id]),{editSettings:a}=(0,w.useDispatch)(L.MODULES_STORE_NAME),i=t?{...n,properties:(0,v.pickBy)(n.properties,t)}:n,l=!(0,v.every)(i?.properties,(e=>"object"===e.type&&(0,v.isEmpty)(e.properties)));return{schema:i,uiSchema:e.settings?.schema.uiSchema,hasSettings:l,formData:r,setFormData:t=>{a(e.id,t.formData)}}}function Y(e){const{root:t}=(0,p.g)(),r=(()=>{switch(t){case"import":return e?.settings?.import;case"onboard":return e?.settings?.onboard}})(),n=(0,o.useCallback)(((e,t)=>r.includes(t)),[r]);return{allowedFields:r,filterFields:r&&n}}function K(){const{featureFlags:e,siteInfo:t,requirementsInfo:r,proxy:n}=(0,w.useSelect)((e=>({featureFlags:e(L.CORE_STORE_NAME).getFeatureFlags(),siteInfo:e(L.CORE_STORE_NAME).getSiteInfo(),requirementsInfo:e(L.CORE_STORE_NAME).getRequirementsInfo(),proxy:e(L.MODULES_STORE_NAME).getEditedSetting("global","proxy")})),[]),{root:a}=(0,p.g)(),i=a&&`/${a}/global#proxy`,c=(0,q.aZ)("settings","/settings/global")+"#proxy";return(0,o.useCallback)(((a,d)=>{const u=new q.AR;if(!a.requirements)return u;const m=e=>e.validate===d||"activate"===d;if(a.requirements.ssl&&m(a.requirements.ssl)&&"https:"!==document.location.protocol&&u.add("ssl",(0,s.__)("Your site must support SSL.","better-wp-security"),a.requirements.ssl),a.requirements["feature-flags"]&&m(a.requirements["feature-flags"]))for(const t of a.requirements["feature-flags"].flags)e.includes(t)||u.add("feature-flags",(0,s.sprintf)((0,s.__)("The '%s' feature flag must be enabled.","better-wp-security"),t),a.requirements["feature-flags"]);if(a.requirements.multisite&&m(a.requirements.multisite)&&("enabled"===a.requirements.multisite.status&&!1===t?.multisite?u.add("multisite",(0,s.__)("Multisite must be enabled.","better-wp-security"),a.requirements.multisite):"disabled"===a.requirements.multisite.status&&!0===t?.multisite&&u.add("multisite",(0,s.__)("Multisite is not supported.","better-wp-security"),a.requirements.multisite)),a.requirements.server&&m(a.requirements.server)&&r){!a.requirements.server.php||(p=r.server.php,g=a.requirements.server.php,p.localeCompare(g,void 0,{numeric:!0,sensitivity:"base"})>=0)||u.add("server",(0,s.sprintf)((0,s.__)("You must be running PHP version %s or later.","better-wp-security"),a.requirements.server.php),a.requirements.server);const e=(a.requirements.server.extensions||[]).filter((e=>!r.server.extensions[e]));1===e.length?u.add("server",(0,s.sprintf)((0,s.__)("The %s PHP extension is required.","better-wp-security"),e[0]),a.requirements.server):e.length>0&&u.add("server",(0,s.sprintf)((0,s._n)("The following PHP extension is required: %l.","The following PHP extensions are required: %l.",e.length,"better-wp-security").replace("%l","%s"),e.join(", ")),a.requirements.server)}var p,g;return a.requirements.load&&m(a.requirements.load)&&r&&("normal"===a.requirements.load.type&&"early"===r.load?u.add("load",(0,s.__)("Loading Kadence Security via an MU-Plugin is not supported.","better-wp-security")):"early"===a.requirements.load.type&&"normal"===r.load&&u.add("load",(0,s.__)("Loading Kadence Security without an MU-Plugin is not supported.","better-wp-security"))),a.requirements.ip&&m(a.requirements.ip)&&"automatic"===n&&u.add("ip",(0,o.createInterpolateElement)((0,s.__)("You must select an IP Detection method in <a>Global Settings</a>. <help>Learn more</help>.","better-wp-security"),{a:i?(0,l.createElement)(D.N_,{to:i}):(0,l.createElement)("a",{href:c}),help:(0,l.createElement)("a",{href:"https://go.solidwp.com/firewall-features-not-available"})}),a.requirements.ip),u}),[e,t,r,n,i,c])}function J(e,t){return(0,o.useMemo)((()=>{const r={};for(const t of e){const e=`${t.software.type.slug}:${t.software.slug}`;r[e]||(r[e]={software:t.software,critical:0,high:0,medium:0,low:0,maxScore:0}),r[e][(n=t.details.score,n<3?"low":n<7?"medium":n<9?"high":"critical")]++,t.details.score>r[e].maxScore&&(r[e].maxScore=t.details.score)}var n;const a=Object.values(r);return a.sort(((e,t)=>t.maxScore-e.maxScore)),{show:a.slice(0,t),remaining:a.slice(t).reduce(((e,t)=>e+t.critical+t.high+t.medium+t.low),0)}}),[e,t])}function G({style:e,className:t}){const{installType:r}=Z();let n;return n="pro"===r?"white"===e?z.kA:z.yU:"white"===e?z.nV:z.$,(0,l.createElement)(n,{className:t})}const Q=(0,m.A)("div",{target:"e19csuxl2"})({name:"vgwucc",styles:"display:flex;align-self:center;flex-direction:column;gap:1.25rem;width:100%;max-width:1680px;padding:1.25rem 1.25rem 4rem 1.5rem"}),X=(0,m.A)("main",{target:"e19csuxl1"})({name:"bjn8wh",styles:"position:relative"}),ee=(0,m.A)(E.FlexItem,{target:"e19csuxl0"})("margin-top:",(({isMedium:e})=>e&&"1.25rem"),";width:",(({isMedium:e})=>e&&"10rem"),";");function te({children:e}){const t=(0,x.useViewportMatch)("medium"),r=(0,o.useRef)(),n=(0,p.zy)();return(0,o.useEffect)((()=>{r.current?.focus(),r.current?.ownerDocument.body.scrollTo(0,0)}),[n]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(F.Nr,null),(0,l.createElement)(Q,null,(0,l.createElement)(C.DZ,{level:1,text:(0,s.__)("Settings","better-wp-security"),weight:C.uL.NORMAL}),(0,l.createElement)(E.Flex,{gap:5,align:"start",direction:t?"row":"column"},(0,l.createElement)(ee,{isMedium:t},(0,l.createElement)(Le,{orientation:t?"vertical":"horizontal"})),(0,l.createElement)(E.FlexBlock,null,(0,l.createElement)(X,{ref:r,"aria-labelledby":"itsec-page-header"},(0,l.createElement)(h.ErrorBoundary,{FallbackComponent:P},e))))))}var re=r(68176),ne=r(53756),ae=r(52485);function ie({module:e,setSettingsOpen:t,persist:r}){const n="active"===e.status.selected,[a,i]=(0,o.useState)(!1),{activateModule:c,deactivateModule:d,editModule:u}=(0,w.useDispatch)(L.MODULES_STORE_NAME);return(0,l.createElement)(E.ToggleControl,{label:e.title,checked:n,onChange:async n=>{i(!0),n?(await(r?c(e.id):u(e.id,{status:{selected:"active"}})),t(!0)):await(r?d(e.id):u(e.id,{status:{selected:"inactive"}})),i(!1)},disabled:a,"aria-label":(0,s.sprintf)((0,s.__)("Enable the “%s” module.","better-wp-security"),e.title),"aria-describedby":`itsec-module-description--${e.id}`,__nextHasNoMarginBottom:!0})}var le=r(32633);const se=(0,m.A)("div",{target:"e1syr8nv1"})({name:"1102gqn",styles:"margin:0 1.5rem 1rem"}),oe=(0,m.A)(le.X$,{target:"e1syr8nv0"})({name:"1traxmt",styles:"& .itsec-rjsf-object-fieldset>.form-group,& .itsec-rjsf-object-fieldset>.itsec-rjsf-section-title{padding:0 1.5rem;}"});function ce({module:e,schema:t,uiSchema:r,formData:n,setFormData:a,highlightedSetting:i}){const s=(0,x.useInstanceId)(ce,`itsec-configure-${e.id}`),{apiError:c,result:d}=(0,w.useSelect)((t=>({apiError:t(L.MODULES_STORE_NAME).getError(e.id),result:t(L.MODULES_STORE_NAME).getResult(e.id)})),[e.id]),u=(0,o.useMemo)((()=>{return i?(e=r?(0,v.cloneDeep)(r):{},t=[i,"classNames"],(0,v.set)(e,t,j()((0,v.get)(e,t),"itsec-highlighted-search-result")),e):r;var e,t}),[r,i]),m=(0,o.useMemo)((()=>({module:e.id,disableInlineErrors:!0})),[e.id]),p=(0,x.useRefEffect)((e=>{i&&e?.formElement&&window.requestAnimationFrame((()=>{e.formElement.querySelector(".itsec-highlighted-search-result")?.scrollIntoView({behavior:"smooth"})}))}),[i]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(se,null,(0,l.createElement)(F.VS,{apiError:c}),(0,l.createElement)(F.e4,{result:d})),(0,l.createElement)(oe,{ref:p,tagName:"div",id:s,schema:t,uiSchema:u,formData:n,onChange:a,idPrefix:`itsec_${e.id}`,formContext:m,showErrorList:!1}))}const de=(0,m.A)("section",{target:"eq1nms18"})("border:1px solid ",(({theme:e})=>e.colors.border.normal),";box-shadow:",(({theme:e,isHighlighted:t})=>t&&`0 0 0 var(--wp-admin-border-width-focus) ${e.colors.primary.base}`),";"),ue=(0,m.A)("header",{target:"eq1nms17"})("padding:1.25rem 1rem;border-bottom:1px solid ",(({theme:e})=>e.colors.border.normal),";display:flex;align-items:center;justify-content:space-between;gap:1rem;"),me=(0,m.A)("div",{target:"eq1nms16"})({name:"1dvcxr3",styles:"padding:1rem"}),pe=(0,m.A)("button",{target:"eq1nms15"})({name:"1jnezc0",styles:'display:grid;grid-template-areas:"title graphic" "description graphic";grid-template-columns:auto min-content;align-items:center;gap:0.5rem;width:100%;padding:1rem;cursor:pointer;background-color:transparent;border-width:0;&[disabled]{cursor:default;}'}),ge=(0,m.A)(C.EY,{target:"eq1nms14"})({name:"1ce9wo2",styles:"grid-area:title"}),he=(0,m.A)(C.EY,{target:"eq1nms13"})({name:"1x9glg",styles:"grid-area:description"}),fe=(0,m.A)(E.Icon,{target:"eq1nms12"})({name:"rkr399",styles:"grid-area:graphic"}),Ee=(0,m.A)("div",{target:"eq1nms11"})("display:",(({isOpen:e})=>e?"block":"none"),";padding:1rem 0;background:#f6f7f7;"),ye=(0,m.A)("div",{target:"eq1nms10"})({name:"l7eclt",styles:"padding:0 1rem 1rem"}),{Slot:Ce,Fill:ve}=(0,E.createSlotFill)("ModulePanelHeader");function be({module:e,isHighlighted:t,highlightedSetting:r,persistStatus:n}){const[a,i]=(0,o.useState)(!1),c="active"===e.status.selected,d=K()(e,c?"run":"activate"),{allowedFields:u,filterFields:m}=Y(e),{schema:p,uiSchema:g,hasSettings:h,formData:f,setFormData:E}=W(e,m);if(!c&&d.hasErrors()&&!d.getErrorCodes().some((e=>d.getErrorData(e)[0].showMessageIfUnmet)))return null;if("always-active"===e.status.default&&!h)return null;const y="always-active"!==e.status.default&&!d.hasErrors(),v=!(!e.settings?.show_ui||d.hasErrors()||Array.isArray(u)&&!u.length),b=a||t;return(0,l.createElement)(de,{isHighlighted:t},(0,l.createElement)(ue,null,y&&(0,l.createElement)(ie,{module:e,setSettingsOpen:i,persist:n}),!y&&(0,l.createElement)(C.EY,{text:e.title}),(0,l.createElement)(Ce,{fillProps:{module:e}}),(0,l.createElement)(C.$n,{icon:re.A,label:(0,s.__)("View external documentation.","better-wp-security"),href:"https://go.solidwp.com/security-basic-help-docs",target:"_blank",variant:"tertiary",isSmall:!0})),!v&&(0,l.createElement)(me,null,(0,l.createElement)(C.EY,{size:C.$C.SMALL},(0,l.createElement)(F.VK,{noWrap:!0,content:e.description}))),v&&(0,l.createElement)(pe,{onClick:()=>i(!a),"aria-expanded":b,"aria-controls":`itsec-module-settings-${e.id}`,disabled:!c,type:"button"},(0,l.createElement)(ge,{text:(0,s.sprintf)((0,s.__)("%s Settings","better-wp-security"),e.title)}),(0,l.createElement)(he,{text:e.description,size:C.$C.SMALL}),c&&v&&(0,l.createElement)(fe,{icon:b?ne.A:ae.A})),c&&v&&(0,l.createElement)(Ee,{isOpen:b,variant:C.ls.PRIMARY_CONTRAST,id:`itsec-module-settings-${e.id}`},(0,l.createElement)(ce,{module:e,schema:p,uiSchema:g,formData:f,setFormData:E,highlightedSetting:r})),d.hasErrors()&&(0,l.createElement)(ye,null,(0,l.createElement)(F.VS,{title:(0,s.__)("Feature not available","better-wp-security"),errors:d.getAllErrorMessages()})))}var _e=r(64716);const xe=(0,m.A)(C.B8,{target:"e1imaywr1"})({name:"vtxs8z",styles:"margin:1rem"}),we=(0,m.A)(C.EY,{target:"e1imaywr0"})("text-decoration:none;&.active{color:",(({theme:e})=>e.colors.primary.darker20),";}");function Le({orientation:e,children:t}){const r=M({location:"primary"}),{root:n,page:a}=(0,p.g)();return(0,l.createElement)(C.Nz,{orientation:e},r.map((e=>(0,l.createElement)(o.Fragment,{key:e.id},(0,l.createElement)(D.k2,{key:e.id,to:`/${n}/${e.id}`,component:(0,_e.kk)(C.W0)},e.title),e.id===a&&(0,l.createElement)(Se,null)))),t)}function Se(){const e=k();return e.length?(0,l.createElement)(xe,{gap:3},e.map((({title:e,to:t,id:r})=>(0,l.createElement)(C.ck,{key:r},(0,l.createElement)(D.k2,{to:t,component:(0,_e.kk)(we),as:"a",text:e,variant:C.J3.MUTED}))))):null}const{Fill:Ae}=(0,E.createSlotFill)("Navigation");var Oe=r(29672);const Ne=(0,m.A)(E.SnackbarList,{target:"e1gr7tl10"})("top:",(({root:e})=>"settings"===e?"-70px":"-10px"),";.components-snackbar-list__notice-container{display:flex;flex-direction:column;align-items:flex-end;}");function Me({context:e="ithemes-security"}){const{notices:t}=(0,w.useSelect)((t=>({notices:t(Oe.store).getNotices(e)})),[e]),{removeNotice:r}=(0,w.useDispatch)(Oe.store),n=t=>r(t,e),{root:a}=(0,p.g)(),i=(0,v.filter)(t,(e=>e.isDismissible&&(!e.type||"default"===e.type))),s=(0,v.filter)(t,(e=>!(e.isDismissible||e.type&&"default"!==e.type))),o=(0,v.filter)(t,{type:"snackbar"});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(E.NoticeList,{notices:s}),(0,l.createElement)(E.NoticeList,{notices:i,onRemove:n}),(0,l.createElement)(Ne,{root:a,notices:o,onRemove:n}))}const Ie=(0,m.A)("header",{target:"e3arkfp3"})({name:"9hhwv0",styles:'display:grid;grid-template-areas:"title action" "description action";grid-gap:0.5rem 1rem;margin-bottom:1.5rem'}),ke=(0,m.A)(C.DZ,{target:"e3arkfp2"})({name:"5uk9le",styles:"grid-area:title;display:flex;gap:0.5rem"}),Te=(0,m.A)(C.EY,{target:"e3arkfp1"})({name:"1x9glg",styles:"grid-area:description"}),Fe=(0,m.A)(C.$n,{target:"e3arkfp0"})({name:"5xe988",styles:"grid-area:action;align-self:end;justify-self:end"});function De({title:e,description:t,showIndicator:r,showNext:n}){const{page:a}=(0,p.g)(),{goNext:i}=T(),o=M({location:"primary"}).filter((({hideFromNav:e})=>!e)).findIndex((({id:e})=>e===a))+1;return(0,l.createElement)(Ie,null,(0,l.createElement)(ke,{level:2,size:C.$C.EXTRA_LARGE,variant:C.J3.DARK,text:e},o&&r&&(0,l.createElement)(C.SK,{step:o,surfaceVariant:C.ls.PRIMARY_ACCENT,textSize:C.$C.NORMAL})),(0,l.createElement)(Te,{as:"p",variant:C.J3.MUTED,text:t}),n&&(0,l.createElement)(Fe,{onClick:i,variant:"secondary",text:(0,s.__)("Next","better-wp-security")}))}var Re=r(47406);const ze=(0,m.A)(C.ui,{target:"epcxj6o2"})({name:"1xqx6nt",styles:"position:relative;height:auto;flex-grow:1;display:flex;flex-direction:column;align-items:start;gap:2rem;padding:1.25rem"}),Pe=(0,m.A)("main",{target:"epcxj6o1"})({name:"66fm4m",styles:"position:relative;width:100%;align-self:center;display:flex;flex-direction:column;flex-grow:1;align-items:center;justify-content:center"}),$e=(0,m.A)(F.gu,{target:"epcxj6o0"})({name:"19c0s48",styles:"height:44px;width:auto"}),{Fill:Ve,Slot:He}=(0,E.createSlotFill)("OnboardBackAction");function je({url:e,render:t}){const{page:r}=(0,p.g)(),n=function(e){const t=M();if(!t.length)return;if(!e)return;const r=t.findIndex((t=>t.id===e));return t[r-1]?.id}(r),{pathname:a}=(0,p.zy)();return(0,l.createElement)(ze,null,"/onboard/site-type"!==a&&"/onboard/summary"!==a&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)($e,null),(0,l.createElement)(He,null,(t=>t.length>0?t:(0,l.createElement)(D.N_,{to:n?`${e}/${n}`:e,component:(0,_e.kk)(C.$n),text:(0,s.__)("Back","better-wp-security"),icon:Re.A,iconPosition:"left",variant:"tertiary"})))),(0,l.createElement)(Pe,null,(0,l.createElement)(Me,null),(0,l.createElement)(t,null)))}function qe(){return(0,l.createElement)(ze,null,(0,l.createElement)(Pe,null))}const Be=(0,m.A)("div",{target:"emks4kf2"})({name:"1jx74mh",styles:"display:flex;flex-direction:column;align-items:center;gap:0.5rem;margin-top:auto;align-self:center"}),Ze=(0,m.A)("ul",{target:"emks4kf1"})({name:"1ik4a25",styles:"display:flex;gap:1.5rem;justify-content:center;align-items:center;margin:0;padding:0"}),Ue=(0,m.A)(C.EY,{target:"emks4kf0"})({name:"b49vxh",styles:"display:inline-flex;align-items:center;gap:0.25rem"});function We({className:e}){const{page:t}=(0,p.g)(),r=(0,x.useViewportMatch)("medium"),n=M({location:"primary"}).filter((({hideFromNav:e})=>!e));return n.find((({id:e})=>e===t))?(0,l.createElement)(Be,{className:e},(0,l.createElement)(Ze,null,n.map(((e,a)=>(r||e.id===t||n[a-1]?.id===t)&&(0,l.createElement)(Ue,{key:e.id,as:"li",decoration:"none",weight:t===e.id?C.uL.HEAVY:C.uL.NORMAL,variant:t===e.id?C.J3.DARK:C.J3.MUTED},(0,l.createElement)(C.SK,{step:a+1,textSize:C.$C.NORMAL,surfaceVariant:t===e.id?C.ls.PRIMARY_ACCENT:C.ls.SECONDARY}),e.title)))),!r&&(0,l.createElement)(C.EY,{variant:C.J3.MUTED,text:(0,s.sprintf)((0,s.__)("out of %d","better-wp-security"),n.length)})):null}function Ye({onSubmit:e=()=>{},id:t,hasPadding:r,children:n,errors:a,apiError:i,className:s}){const o=(0,x.useInstanceId)(Ye,"itsec-primary-form");return t=t||o,(0,l.createElement)("div",{className:j()("itsec-primary-form",s,r&&"itsec-primary-form--has-padding")},(0,l.createElement)(F.VS,{errors:a,apiError:i}),(0,l.createElement)("form",{id:t,onSubmit:t=>{t.preventDefault(),e()}},n))}function Ke({heading:e,className:t,children:r}){return o.Children.toArray(r).some(o.isValidElement)?(0,l.createElement)("div",{className:j()("itsec-primary-form__section",t)},e&&(0,l.createElement)(C.DZ,{level:3,variant:C.J3.DARK,size:C.$C.NORMAL,weight:C.uL.HEAVY,className:"itsec-primary-form__section-title"},e),r):null}var Je=r(2809);const Ge=(0,m.A)("button",{target:"e1yisc1r6"})('text-decoration:none;margin:0;border:0;padding:0;cursor:pointer;-webkit-appearance:none;background:none;width:100%;&:focus,&[aria-pressed="true"]{box-shadow:0 0 0 var(--wp-admin-border-width-focus) ',(({theme:e})=>e.colors.primary.base),";outline:3px solid transparent;}"),Qe=(0,m.A)(C.DZ,{target:"e1yisc1r5"})({name:"1ce9wo2",styles:"grid-area:title"}),Xe=(0,m.A)(C.EY,{target:"e1yisc1r4"})({name:"1x9glg",styles:"grid-area:description"}),et=(0,m.A)(C.ui,{target:"e1yisc1r3"})({name:"r2t5a3",styles:"grid-area:icon;width:4rem;height:3.25rem;display:flex;align-items:center;justify-content:center;border-radius:2px;background:#F5F9FF"}),tt=(0,m.A)(E.Icon,{target:"e1yisc1r2"})({name:"1tdbc81",styles:"fill:#1145C9"}),rt=(0,m.A)(E.Icon,{target:"e1yisc1r1"})({name:"1e03zz3",styles:"grid-area:go;align-self:center"}),nt=(0,m.A)("div",{target:"e1yisc1r0"})("background:#fff;border:1px solid ",(({theme:e})=>e.colors.border.normal),";border-radius:2px;display:",(({direction:e})=>"horizontal"===e?"grid":"flex"),";flex-direction:column;align-items:",(({direction:e})=>"vertical"===e&&"center"),";justify-content:",(({direction:e})=>"vertical"===e&&"center"),';grid-template-areas:"icon title go" "icon description go";grid-template-columns:min-content auto min-content;gap:',(({direction:e})=>"horizontal"===e?"0.5rem 1.25rem":"0.75rem"),";padding:1rem;min-height:",(({direction:e})=>"vertical"===e&&"200px"),";&:hover ",rt,"{fill:",(({theme:e})=>e.colors.primary.darker20),";}&:hover ",Qe,"{color:",(({theme:e})=>e.colors.primary.darker20),";}");function at({onClick:e,title:t,description:r,icon:n,direction:a="horizontal",className:i,disabled:s,isSelected:o}){return(0,l.createElement)(Ge,{onClick:e,className:i,variant:"none",disabled:s,"aria-pressed":o},(0,l.createElement)(nt,{direction:a},(0,l.createElement)(et,{variant:C.ls.SECONDARY},(0,l.createElement)(tt,{icon:n,size:30})),(0,l.createElement)(Qe,{level:4,size:C.$C.LARGE,weight:C.uL.HEAVY,text:t}),r&&(0,l.createElement)(Xe,{variant:C.J3.MUTED,text:r,align:"vertical"===a?"center":"left"}),"horizontal"===a&&(0,l.createElement)(rt,{icon:Je.A})))}var it=r(58168);function lt({className:e,logo:t="color",children:r}){const{root:n}=(0,p.g)(),[a,i]=(0,o.useState)(!1);return(0,l.createElement)("div",(0,it.A)({},(0,_e.$I)((()=>a&&i(!1))),{tabIndex:-1,className:j()("itsec-settings-sidebar",e,`itsec-settings-sidebar--root-${n}`,{"itsec-settings-sidebar--expanded":a})}),(0,l.createElement)("div",{className:"itsec-settings-sidebar__inner"},(0,l.createElement)(D.N_,{to:"/",className:"itsec-settings-sidebar__logo"},(0,l.createElement)(G,{style:t})),(0,l.createElement)(E.Button,{icon:"menu-alt2",label:(0,s.__)("Toggle Sidebar","better-wp-security"),className:"itsec-settings-sidebar__toggle",showTooltip:!1,isPressed:a,onClick:e=>{e.currentTarget.focus(),i(!a)},"aria-expanded":a}),r))}var st=r(32196),ot=r(28351);const ct=[{value:"administrator",label:(0,s.__)("Administrator Capabilities","better-wp-security")},{value:"editor",label:(0,s.__)("Editor Capabilities & greater (recommended)","better-wp-security")},{value:"everyone",label:(0,s.__)("Everyone","better-wp-security")}],dt=(0,st.AH)({name:"1y66auy",styles:"width:100%;justify-content:center"});function ut({value:e="editor",onChange:t}){const r=ct.find((t=>t.value===e));return(0,l.createElement)(E.Dropdown,{contentClassName:"itsec-apply-css-vars",renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(E.Button,{variant:"tertiary","aria-expanded":e,onClick:t,text:r?.label,className:dt}),renderContent:({onClose:r})=>(0,l.createElement)(E.NavigableMenu,null,ct.map((n=>(0,l.createElement)(E.MenuItem,{key:n.value,isSelected:e===n.value,onClick:()=>{t(n.value),r()},icon:e===n.value&&ot.A,role:"menuitemradio"},n.label))))})}function mt({found:e}){return(0,l.createElement)("svg",{width:"44",height:"44",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M36.19 33.605A18.304 18.304 0 0 0 40.333 22C40.333 11.88 32.12 3.667 22 3.667S3.667 11.88 3.667 22 11.88 40.334 22 40.334a18.304 18.304 0 0 0 13.035-5.445c.055-.055.092-.11.128-.147.367-.367.715-.752 1.027-1.137zM22 36.667c-8.085 0-14.667-6.582-14.667-14.667S13.915 7.334 22 7.334 36.667 13.915 36.667 22c0 3.392-1.155 6.49-3.099 8.984l-2.621-2.622a10.974 10.974 0 0 0 2.016-6.343c0-6.069-4.931-11-11-11-6.068 0-11 4.931-11 11 0 6.068 4.932 11 11 11 2.384 0 4.602-.77 6.399-2.072l2.603 2.603A14.341 14.341 0 0 1 22 36.667zm3.52-13.732c.312-1.21.037-2.53-.898-3.483l-.037-.037a3.648 3.648 0 0 0-5.097-.073c-.018.018-.055.037-.091.073a3.674 3.674 0 0 0 0 5.189l.036.036a3.62 3.62 0 0 0 3.502.899l2.768 2.768c-1.1.66-2.365 1.063-3.74 1.063a7.331 7.331 0 0 1-7.333-7.333 7.331 7.331 0 0 1 7.333-7.333 7.331 7.331 0 0 1 7.334 7.333 7.162 7.162 0 0 1-1.027 3.667l-2.75-2.769z",fill:e?"#D12502":"#29B33B"}))}var pt=r(81903),gt=r(23175),ht=r(46644);const ft=(0,m.A)("div",{target:"ehca9sa1"})("background:",(({score:e})=>function(e){return e<7?"#fcf4e8":"#fae9e6"}(e)),";border:1px solid ",(({score:e})=>function(e){return e<7?"#ffd65d":"#b32d2e"}(e)),";border-radius:0.25rem;padding:1rem 1.5rem;align-items:stretch;display:flex;flex-wrap:wrap;&>*{flex-basis:0;flex-grow:1;}"),Et=(0,m.A)(C.EY,{target:"ehca9sa0"})("padding:0.125rem 0.75rem;background:",(({score:e})=>function(e){return e<7?"#f4c520":"#ff8085"}(e)),";");function yt({software:e,critical:t,high:r,medium:n,low:a,maxScore:i}){return(0,l.createElement)(ft,{score:i},(0,l.createElement)(E.Flex,{direction:"column",gap:4,justify:"space-between",expanded:!1},(0,l.createElement)(C.DZ,{level:4,text:e.label||e.slug,size:C.$C.EXTRA_LARGE,weight:C.uL.NORMAL}),(0,l.createElement)(C.EY,{icon:wt(e.type.slug),text:e.type.label,variant:C.J3.DARK})),(0,l.createElement)(E.Flex,{direction:"column",gap:3,justify:"space-between",expanded:!1},(0,l.createElement)(C.DZ,{level:5,text:(0,s.__)("Found vulnerabilities","better-wp-security"),variant:C.J3.DARK,weight:C.uL.HEAVY}),(0,l.createElement)(E.Flex,{gap:4,justify:"flex-start"},(0,l.createElement)(Ct,{score:i}),(0,l.createElement)(vt,{critical:t,high:r,medium:n,low:a,maxScore:i})),(0,l.createElement)(_t,{maxScore:i,critical:t,high:r,medium:n,low:a})))}function Ct({score:e}){return(0,l.createElement)(Et,{score:e,text:xt(e),variant:C.J3.DARK,weight:C.uL.HEAVY})}function vt({critical:e,high:t,medium:r,low:n,maxScore:a}){return(0,l.createElement)(C.EY,{text:bt({critical:e,high:t,medium:r,low:n,maxScore:a}),variant:C.J3.MUTED})}function bt({critical:e,high:t,medium:r,low:n,maxScore:a}){return a<3?(0,s.sprintf)((0,s._n)("%d low severity issue found","%d low severity issues found",n,"better-wp-security"),n):a<7?(0,s.sprintf)((0,s._n)("%d medium severity issue found","%d medium severity issues found",r,"better-wp-security"),r):a<9?(0,s.sprintf)((0,s._n)("%d high severity issue found","%d high severity issues found",t,"better-wp-security"),t):(0,s.sprintf)((0,s._n)("%d critical severity issue found","%d critical severity issues found",e,"better-wp-security"),e)}function _t({maxScore:e,...t}){const r=(a=e)<3?"low":a<7?"medium":a<9?"high":"critical",n=(0,v.reduce)(t,((e,t,n)=>n===r?e:e+t),0);var a;return n?(0,l.createElement)(C.EY,{text:(0,s.sprintf)((0,s._n)("%d additional lower severity issue found","%d additional lower severity issues found",n,"better-wp-security"),n),variant:C.J3.MUTED}):null}function xt(e){return e<3?(0,s.__)("Low","better-wp-security"):e<7?(0,s.__)("Medium","better-wp-security"):e<9?(0,s.__)("High","better-wp-security"):(0,s.__)("Critical","better-wp-security")}function wt(e){switch(e){case"plugin":return pt.A;case"theme":return gt.A;case"wordpress":return ht.A;default:return}}var Lt=r(85631),St=r.n(Lt),At=r(2873);function Ot(e){return{type:"API_FETCH",request:e}}function Nt(e,...t){return{type:"DO_ACTION",action:e,args:t}}const Mt={AWAIT_PROMISE:({promise:e,delay:t})=>{return t?Promise.all([e,(r=t,new Promise((e=>setTimeout(e,r))))]):e;var r},DO_ACTION:(0,w.createRegistryControl)((e=>({action:t,args:r})=>{(0,At.doAction)(`ithemes-security.${t}`,e,...r)})),API_FETCH:({request:e})=>St()(e).catch(q.dD),CREATE_NOTICE:(0,w.createRegistryControl)((e=>({status:t,content:r,options:n})=>{n.autoDismiss&&(n.id=n.id||(0,v.uniqueId)("itsec-auto-dismiss-"),setTimeout((()=>e.dispatch("core/notices").removeNotice(n.id,n.context)),n.autoDismiss)),e.dispatch("core/notices").createNotice(t,r,n)}))};function*It(e){const t=yield w.controls.resolveSelect(xr,"getSiteTypes"),r=(0,v.find)(t,(t=>t.id===e));if(!r)throw(0,s.__)("No site type found with that id.","better-wp-security");yield Ht(r),yield Pt()}function*kt(){const e=yield Ot({path:"/ithemes-security/v1/site-types"});yield Vt(e)}function Tt(){return{type:Jt}}function Ft(e){return{type:Gt,answer:e}}function*Dt(e){const t=yield w.controls.select(xr,"getAnswerRequest",e);let r;yield jt();try{r=yield Ot({method:"PUT",path:`/ithemes-security/v1/site-types/${t.id}`,data:t}),yield Ht(r)}catch(e){yield(n=e,{type:Xt,error:n})}var n;yield jt(!1)}function*Rt(){const e=yield w.controls.select(xr,"getRestoreSiteTypeRequest");e.answers.pop(),yield jt();const t=yield Ot({method:"PUT",path:`/ithemes-security/v1/site-types/${e.id}`,data:e});yield Ht(t),yield jt(!1)}function*zt(){const e=yield w.controls.select(xr,"getAnswers"),t=yield w.controls.resolveSelect(L.MODULES_STORE_NAME,"getModules");for(const r of e){for(const e of r.modules){const r=t.find((({id:t})=>t===e));r?.side_effects?(yield w.controls.dispatch(L.MODULES_STORE_NAME,"activateModule",e),yield w.controls.dispatch(xr,"fetchSiteTypes")):yield w.controls.dispatch(L.MODULES_STORE_NAME,"editModule",e,{status:{selected:"active"}})}for(const e of r.disabled){const r=t.find((({id:t})=>t===e));r?.side_effects?(yield w.controls.dispatch(L.MODULES_STORE_NAME,"deactivateModule",e),yield w.controls.dispatch(xr,"fetchSiteTypes")):yield w.controls.dispatch(L.MODULES_STORE_NAME,"editModule",e,{status:{selected:"inactive"}})}for(const e in r.settings)r.settings.hasOwnProperty(e)&&(yield w.controls.dispatch(L.MODULES_STORE_NAME,"editSettings",e,r.settings[e]));yield Nt("onboard.applyAnswerResponse",r)}}function*Pt(){yield Ft(null),yield w.controls.dispatch(L.MODULES_STORE_NAME,"resetModuleEdits"),yield w.controls.dispatch(L.MODULES_STORE_NAME,"resetSettingEdits"),yield Nt("onboard.reset")}function*$t({root:e}){const t=e=>{if(e instanceof Error)throw e},r=(0,v.sortBy)(yield w.controls.select(xr,"getCompletionSteps"),"priority");try{for(const i of r){if(i.activeCallback&&!i.activeCallback({root:e}))continue;yield{type:rr,step:i};const r=i.callback();r instanceof Promise&&t(yield(n=r,a=(0,v.random)(1500,2500),{type:"AWAIT_PROMISE",promise:n,delay:a}))}yield w.controls.dispatch(L.MODULES_STORE_NAME,"editSetting","global","onboard_complete",!0),yield w.controls.dispatch(L.MODULES_STORE_NAME,"saveSettings","global"),yield{type:rr,step:!0}}catch(e){yield{type:rr,step:!1},yield function(e="info",t,r={}){return{type:"CREATE_NOTICE",status:e,content:t,options:{context:"ithemes-security",...r}}}("error",(0,s.sprintf)((0,s.__)("Could not complete setup: %s","better-wp-security"),e.message))}var n,a}function Vt(e){return{type:Wt,siteTypes:e}}function Ht(e){return{type:Yt,siteType:e}}function jt(e=!0){return{type:Qt,isAnswering:e}}function qt(e,t){return{type:er,id:e,component:t}}function Bt({id:e,label:t,priority:r,callback:n,activeCallback:a}){return{type:tr,id:e,label:t,priority:r,callback:n,activeCallback:a}}function Zt(e){return{type:nr,location:(0,v.trimEnd)(e,"/")}}function Ut(){return{type:ar}}const Wt="RECEIVE_SITE_TYPES",Yt="RECEIVE_SITE_TYPE",Kt="SELECT_SITE_TYPE",Jt="CLEAR_SITE_TYPE",Gt="EDIT_ANSWER",Qt="SET_IS_ANSWERING",Xt="SET_ERROR",er="REGISTER_QUESTION_COMPONENT",tr="REGISTER_COMPLETION_STEP",rr="SET_COMPLETION_STEP",nr="RECORD_VISITED_LOCATION",ar="CLEAR_VISITED_LOCATIONS";function ir(e){return e.siteTypes}function lr(e){return e.selectedSiteType}function sr(e){return(0,v.find)(ir(e),{id:lr(e)})}function or(e){return e.answers}function cr(e){return e.nextQuestion}function dr(e){return e.editedAnswer}function ur(e){return e.isAnswering}function mr(e){return e.lastError}function pr(e,t){return e.questionComponents[t]}function gr(e){return e.completionSteps}function hr(e,t){return{id:e.selectedSiteType,answers:[...e.answers,{question:e.nextQuestion.id,answer:t}]}}function fr(e){return{id:e.selectedSiteType,answers:[...e.answers]}}function Er(e){const t=["/onboard","/onboard/site-type"];for(let r=e.visitedLocations.length-1;r>=0;r--){const n=e.visitedLocations[r];if(!t.includes(n))return n}}function yr(e){return e.completionStep}const Cr={siteTypes:[],selectedSiteType:"",answers:[],nextQuestion:void 0,editedAnswer:void 0,lastError:void 0,isAnswering:!1,questionComponents:{},completionStep:!1,completionSteps:{},visitedLocations:[]},vr={*fulfill(){const e=yield Ot({path:"/ithemes-security/v1/site-types"});yield Vt(e)},isFulfilled:e=>e.siteTypes.length>0},br={*fulfill(){yield w.controls.resolveSelect(xr,"getSiteTypes")},isFulfilled:e=>e.siteTypes.length>0},_r={*fulfill(){const e=yield w.controls.select(xr,"getRestoreSiteTypeRequest"),t=yield Ot({method:"PUT",path:`/ithemes-security/v1/site-types/${e.id}`,data:e});yield Ht(t)},isFulfilled:e=>void 0!==e.nextQuestion},xr="ithemes-security/onboard";(0,w.registerStore)(xr,{controls:Mt,actions:n,selectors:a,resolvers:i,reducer:function(e=Cr,t){switch(t.type){case Wt:return{...e,siteTypes:t.siteTypes};case Yt:return{...e,selectedSiteType:t.siteType.id,nextQuestion:t.siteType.next_question,answers:t.siteType.answers,editedAnswer:t.siteType.next_question?.answer_schema?.default,lastError:void 0};case Kt:return{...e,selectedSiteType:t.id,answers:[],nextQuestion:void 0,lastError:void 0};case Jt:return{...e,selectedSiteType:"",answers:[],nextQuestion:void 0,lastError:void 0};case Gt:return{...e,editedAnswer:t.answer};case Qt:return{...e,isAnswering:t.isAnswering};case Xt:return{...e,lastError:t.error};case rr:return{...e,completionStep:t.step};case er:return{...e,questionComponents:{...e.questionComponents,[t.id]:t.component}};case tr:return{...e,completionSteps:{...e.completionSteps,[t.id]:(0,v.omit)(t,["type"])}};case nr:return{...e,visitedLocations:(0,v.last)(e.visitedLocations)===t.location?e.visitedLocations:(0,v.without)(e.visitedLocations,t.location).concat(t.location)};case ar:return{...e,visitedLocations:[]};default:return e}},persist:["selectedSiteType","answers","visitedLocations"]});const wr=(0,m.A)("div",{target:"e1fxf7a22"})({name:"1nnaomw",styles:"display:flex;flex-direction:column;gap:1.25rem;max-width:670px"}),Lr=(0,m.A)(F.gu,{target:"e1fxf7a21"})({name:"aerlcf",styles:"height:44px;width:auto;align-self:start"}),Sr=(0,m.A)("header",{target:"e1fxf7a20"})({name:"p5tmle",styles:"display:flex;flex-direction:column;gap:0.5rem"}),Ar=(0,l.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M9 4C8.44531 4 8 4.44531 8 5V6H3C2.44531 6 2 6.44531 2 7V23C2 23.5547 2.44531 24 3 24H8V25C8 25.5547 8.44531 26 9 26H23C23.5547 26 24 25.5547 24 25V24H29C29.5547 24 30 23.5547 30 23V7C30 6.44531 29.5547 6 29 6H24V5C24 4.44531 23.5547 4 23 4H9ZM10 6H22V24H10V6ZM4 8H8V22H4V8ZM12 8V10H20V8H12ZM24 8H28V22H24V8ZM12 12V14H20V12H12ZM12 16V18H20V16H12ZM12 20V22H20V20H12Z",fill:"#1145C9"})),Or=(0,l.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("g",{clipPath:"url(#clip0_5527_131266)"},(0,l.createElement)("path",{d:"M8.94922 4C7.30416 4 5.94922 5.35494 5.94922 7V25C5.94922 26.6451 7.30416 28 8.94922 28H14V26H8.94922C8.38628 26 7.94922 25.5629 7.94922 25V7C7.94922 6.43706 8.38628 6 8.94922 6H17.9492V12H23.9492V14H25.9492V10.5859L19.3633 4H8.94922ZM19.9492 7.41406L22.5352 10H19.9492V7.41406ZM28.3633 16.0078C27.7056 16.012 27.0494 16.2678 26.5586 16.7695L17.3125 26.1758L15.9023 32.1016L21.8242 30.6914L22.0234 30.4961L31.2344 21.4492C32.2423 20.4642 32.2502 18.8167 31.2539 17.8203L30.1836 16.75C29.685 16.2514 29.0239 16.0036 28.3633 16.0078ZM28.375 17.9961C28.5143 17.9952 28.6561 18.0506 28.7695 18.1641L29.8398 19.2344C30.0634 19.458 30.0641 19.7966 29.8359 20.0195V20.0234L20.8242 28.8711L18.6016 29.4023L19.1289 27.1836L27.9844 18.1719L27.9883 18.168C28.0988 18.0542 28.2357 17.997 28.375 17.9961Z",fill:"#1145C9"})),(0,l.createElement)("defs",null,(0,l.createElement)("clipPath",{id:"clip0_5527_131266"},(0,l.createElement)("rect",{width:"32",height:"32",fill:"white"})))),Nr=(0,l.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M8 0C6.90625 0 6 0.90625 6 2V11C6 11.5547 6.44531 12 7 12H23C23.5547 12 24 11.5547 24 11V2C24 0.90625 23.0938 0 22 0H8ZM8 4H22V10H8V4ZM8.46875 14L4.86719 20H7.20313L10.7969 14H8.46875ZM14 14V20H16V14H14ZM19.2031 14L22.8047 20H25.1328L21.5312 14H19.2031ZM2 22C0.898438 22 0 22.8984 0 24V28C0 29.1016 0.898438 30 2 30H6C7.10156 30 8 29.1016 8 28V24C8 22.8984 7.10156 22 6 22H2ZM12 22C10.8984 22 10 22.8984 10 24V28C10 29.1016 10.8984 30 12 30H18C19.1016 30 20 29.1016 20 28V24C20 22.8984 19.1016 22 18 22H12ZM24 22C22.8984 22 22 22.8984 22 24V28C22 29.1016 22.8984 30 24 30H28C29.1016 30 30 29.1016 30 28V24C30 22.8984 29.1016 22 28 22H24ZM2 24H6V28H2V24ZM12 24H18V28H12V24ZM24 24H28V28H24V24Z",fill:"#1145C9"})),Mr=(0,l.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M13 2C11.3549 2 10 3.35494 10 5V6H5C3.35494 6 2 7.35494 2 9V25C2 26.6451 3.35494 28 5 28H27C28.6451 28 30 26.6451 30 25V9C30 7.35494 28.6451 6 27 6H22V5C22 3.35494 20.6451 2 19 2H13ZM13 4H19C19.5629 4 20 4.43706 20 5V6H12V5C12 4.43706 12.4371 4 13 4ZM5 8H27C27.5629 8 28 8.43706 28 9V25C28 25.5629 27.5629 26 27 26H5C4.43706 26 4 25.5629 4 25V9C4 8.43706 4.43706 8 5 8ZM16 10C14.75 10 13.6872 10.5048 13.0039 11.2734C12.3206 12.0421 12 13.0278 12 14C12 14.9722 12.3206 15.9579 13.0039 16.7266C13.1446 16.8849 13.4498 16.8545 13.6211 16.9883C11.6082 17.9589 10 19.6245 10 22H12C12 19.7782 13.7782 18 16 18C18.2218 18 20 19.7782 20 22H22C22 19.6245 20.3918 17.9589 18.3789 16.9883C18.5502 16.8545 18.8554 16.8849 18.9961 16.7266C19.6794 15.9579 20 14.9722 20 14C20 13.0278 19.6794 12.0421 18.9961 11.2734C18.3128 10.5048 17.25 10 16 10ZM16 12C16.75 12 17.1872 12.2452 17.5039 12.6016C17.8206 12.9579 18 13.4722 18 14C18 14.5278 17.8206 15.0421 17.5039 15.3984C17.1872 15.7548 16.75 16 16 16C15.25 16 14.8128 15.7548 14.4961 15.3984C14.1794 15.0421 14 14.5278 14 14C14 13.4722 14.1794 12.9579 14.4961 12.6016C14.8128 12.2452 15.25 12 16 12Z",fill:"#1145C9"})),Ir=(0,l.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M16.0016 2C12.7047 2 10.0016 4.70313 10.0016 8H6.00157C5.47032 8 5.03282 8.41406 5.00157 8.94531L4.00157 26.9453C3.98595 27.2188 4.08751 27.4922 4.27501 27.6875C4.46251 27.8906 4.72813 28 5.00157 28H27.0016C27.275 28 27.5406 27.8906 27.7281 27.6875C27.9156 27.4922 28.0172 27.2188 28.0016 26.9453L27.0016 8.94531C26.9703 8.41406 26.5328 8 26.0016 8H22.0016C22.0016 4.70313 19.2984 2 16.0016 2ZM16.0016 4C18.2047 4 20.0016 5.79688 20.0016 8H12.0016C12.0016 5.79688 13.7984 4 16.0016 4ZM6.94688 10H10.0016V14H12.0016V10H20.0016V14H22.0016V10H25.0563L25.9391 26H6.06407L6.94688 10Z",fill:"#1145C9"})),kr=(0,l.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M17 2C15.625 2 14.4688 2.95313 14.1172 4.21875C13.7734 4.07813 13.3906 4 13 4C11.3516 4 10 5.35156 10 7V17L7.89063 16.1406L7.84375 16.125C6.25781 15.6641 4.57813 16.5781 4.125 18.1562C4.03906 18.4375 4 18.7188 4 19C4 20.2578 4.80469 21.3047 5.89063 22.0078L5.8125 21.9531L10.125 25.3984C11.7656 26.8047 13.6641 28 16 28H20C24.375 28 28 24.4297 28 20.0391V9C28 7.35156 26.6484 6 25 6C24.6484 6 24.3125 6.07813 24 6.1875V6C24 4.35156 22.6484 3 21 3C20.4297 3 19.8984 3.17188 19.4453 3.45313C19.0234 2.89844 18.4062 2.47656 17.6875 2.28125C17.5 2.10938 17.2578 2.00781 17 2ZM17 4C17.5625 4 18 4.4375 18 5V14H20V6C20 5.4375 20.4375 5 21 5C21.5625 5 22 5.4375 22 6V14H24V9C24 8.4375 24.4375 8 25 8C25.5625 8 26 8.4375 26 9V20.0391C26 23.3281 23.2969 26 20 26H16C14.3438 26 12.9219 25.1562 11.4375 23.875L11.4219 23.8672L7.03125 20.3594L6.98438 20.3359C6.20313 19.8281 6 19.4766 6 19C6 18.9141 6.01563 18.8125 6.03906 18.7188C6.19531 18.1797 6.73438 17.8906 7.27344 18.0469L12 20V7C12 6.4375 12.4375 6 13 6C13.5625 6 14 6.4375 14 7V14H16V5C16 4.4375 16.4375 4 17 4ZM17.25 16C16.3516 16 16 16.7266 16 17.625C16 19.4531 19 22 19 22C19 22 22 19.5 22 17.625C22 16.7266 21.6484 16 20.75 16C19.5547 16 19 17.3672 19 18C19 17.3672 18.4219 16 17.25 16Z",fill:"#1145C9"})),{Slot:Tr,Fill:Fr}=(0,E.createSlotFill)("OnboardSiteTypeBefore");function Dr(){const{clearVisitedLocations:e}=(0,w.useDispatch)(xr),{siteTypes:t,lastVisitedLocation:r}=(0,w.useSelect)((e=>({siteTypes:e(xr).getSiteTypes(),lastVisitedLocation:e(xr).getLastVisitedLocation()})));return(0,l.createElement)(wr,null,(0,l.createElement)(Lr,null),(0,l.createElement)(C.EY,{as:"p",size:C.$C.EXTRA_LARGE,text:(0,s.__)("Welcome to Kadence Security! Answer a few questions to quickly enable the most important security features for this website. You can always change settings later.","better-wp-security")}),(0,l.createElement)(Tr,null),r&&(0,l.createElement)(C.$T,{onDismiss:e,text:(0,l.createElement)(C.EY,null,(0,o.createInterpolateElement)((0,s.__)("Already started setting up Kadence Security? <a>Resume</a> from where you left off.","better-wp-security"),{a:(0,l.createElement)(D.N_,{to:r})}))}),(0,l.createElement)(Sr,null,(0,l.createElement)(C.DZ,{level:2,size:C.$C.LARGE,weight:C.uL.HEAVY,text:(0,s.__)("What type of website is this?","better-wp-security")}),(0,l.createElement)(C.EY,{as:"p",variant:C.J3.DARK,text:(0,s.__)("Select the one that best represents your website. This will focus the rest of the setup wizard on the options most necessary to secure the site.","better-wp-security")})),(0,l.createElement)(C.B8,{gap:3},t.map((e=>(0,l.createElement)(C.ck,{key:e.id},(0,l.createElement)(zr,{id:e.id,title:e.title,description:e.description,recommended:e.recommended}))))))}const Rr={ecommerce:Ir,network:Nr,"non-profit":kr,blog:Or,brochure:Ar,portfolio:Mr};function zr({id:e,title:t,description:r,recommended:n}){const{clearSiteType:a}=(0,w.useDispatch)(xr),i=(0,p.W5)(),s=U();return(0,l.createElement)(at,{onClick:()=>{a(),s(`${i.url}/${e}`)},title:t,description:r,icon:Rr[e],recommended:n})}const Pr=(0,m.A)("div",{target:"e96joi82"})({name:"1ei6u6l",styles:"display:flex;flex-direction:column;gap:1.5rem;width:100%;max-width:530px;flex-grow:1;justify-content:flex-start;margin-top:10vh"}),$r=(0,m.A)("header",{target:"e96joi81"})({name:"p5tmle",styles:"display:flex;flex-direction:column;gap:0.5rem"}),Vr=(0,m.A)("div",{target:"e96joi80"})({name:"1bhviol",styles:"display:flex;gap:3.25rem"}),Hr=(0,st.AH)({name:"xyzkeb",styles:"align-self:flex-start"}),jr=(0,l.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M9 4C7.35156 4 6 5.35156 6 7V26H6.42188C6.85938 27.1094 7.74219 28 9 28H26V26H9C8.4375 26 8 25.5625 8 25C8 24.4375 8.4375 24 9 24H26V4H9ZM9 6H24V22H9C8.64844 22 8.3125 22.0781 8 22.1875V7C8 6.4375 8.4375 6 9 6ZM10 10V12H22V10H10Z",fill:"#1145C9"})),qr=(0,l.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M22 2C17.5938 2 14 5.59375 14 10C14 10.7109 14.1875 11.3516 14.3594 11.9844L13.875 12.4688L10 8.58594V5.44531L9.53125 5.15625L4.85938 2.23438L2.23438 4.8125L5.4375 10H8.58594L12.4687 13.875L5.17188 21.1719C3.61719 22.7266 3.61719 25.2734 5.17188 26.8281C6.72656 28.3828 9.27344 28.3828 10.8281 26.8281L16 21.6562L21.1719 26.8281C22.7266 28.3828 25.2734 28.3828 26.8281 26.8281C28.3828 25.2734 28.3828 22.7266 26.8281 21.1719L23.5 17.8438C27.1953 17.1406 30 13.8906 30 10C30 8.66406 29.6406 7.42188 29.0781 6.33594L28.4453 5.125L27.4844 6.09375L23.1875 10.3828L21.6172 8.8125L26.875 3.54688L25.6641 2.92188C24.5781 2.35938 23.3359 2 22 2ZM22 4C22.4531 4 22.8438 4.21875 23.2734 4.32813L18.7891 8.8125L23.1875 13.2109L27.6797 8.72656C27.7812 9.15625 28 9.54688 28 10C28 13.3281 25.3281 16 22 16C21.3125 16 20.6562 15.8594 20 15.625L19.4062 15.4219L9.41406 25.4141C8.625 26.2031 7.375 26.2031 6.58594 25.4141C5.79688 24.625 5.79688 23.375 6.58594 22.5859L16.5781 12.5938L16.375 12C16.1406 11.3438 16 10.6875 16 10C16 6.67188 18.6719 4 22 4ZM5.14062 4.76563L8 6.55469V7.83594L7.83594 8H6.5625L4.77344 5.11719L5.14062 4.76563ZM20.0156 17.6406C20.2187 17.6953 20.4219 17.7422 20.625 17.7969L25.4141 22.5859C26.2031 23.375 26.2031 24.625 25.4141 25.4141C24.625 26.2031 23.375 26.2031 22.5859 25.4141L17.4141 20.2422L20.0156 17.6406Z",fill:"#1145C9"})),Br={disableInlineErrors:!0};function Zr({prompt:e,description:t,showErrors:r=!0,goBack:n,children:a}){const{error:i}=(0,w.useSelect)((e=>({error:e(xr).getLastError()})),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Pr,null,(0,l.createElement)($r,null,(0,l.createElement)(C.DZ,{level:3,text:e,size:C.$C.EXTRA_LARGE,variant:C.J3.DARK}),(0,l.createElement)(C.EY,{as:"p",variant:C.J3.MUTED},(0,l.createElement)(F.VK,{content:t,noWrap:!0}))),r&&(0,l.createElement)(F.VS,{apiError:i}),a),n&&(0,l.createElement)(Ve,null,(0,l.createElement)(C.$n,{onClick:n,text:(0,s.__)("Back","better-wp-security"),icon:Re.A,iconPosition:"left",variant:"tertiary"})))}function Ur({question:e,onAnswer:t,isAnswering:r,goBack:n}){const{editAnswer:a}=(0,w.useDispatch)(xr),{answer:i,error:c}=(0,w.useSelect)((e=>({error:e(xr).getLastError(),answer:e(xr).getEditedAnswer()}))),[d,u]=(0,o.useState)([]);return(0,l.createElement)(Zr,{prompt:e.prompt,description:e.description,showErrors:!1,goBack:n},(0,l.createElement)(le.wn,{schema:e.answer_schema,uiSchema:e.answer_schema.uiSchema,formData:i,onChange:({formData:e})=>a(e),onSubmit:({formData:e},r)=>{r.preventDefault(),u([]),t(e)},saveLabel:(0,s.__)("Next","better-wp-security"),formContext:Br,apiError:c,schemaError:d,onError:u,showErrorList:!1,saveDisabled:r,undoDisabled:r,alignActions:"start"}))}function Wr({question:e,onAnswer:t,isAnswering:r}){return(0,l.createElement)(Zr,{prompt:e.prompt,description:e.description},(0,l.createElement)(Vr,null,(0,l.createElement)(at,{disabled:r,onClick:()=>t(!1),title:(0,s.__)("My Own Website","better-wp-security"),direction:"vertical",icon:jr}),(0,l.createElement)(at,{disabled:r,onClick:()=>t(!0),title:(0,s.__)("Client Website","better-wp-security"),direction:"vertical",icon:qr})))}const{Slot:Yr,Fill:Kr}=(0,E.createSlotFill)("OnboardSiteTypeIpDetection");function Jr({question:e,onAnswer:t,isAnswering:r}){const n=e.answer_schema,a=(0,o.useMemo)((()=>n.properties.proxy_header.oneOf.map((e=>({value:e.enum[0],label:e.title})))),[n.properties.proxy_header.oneOf]),[i,c]=(0,o.useState)(""),[d,u]=(0,o.useState)(""),m="disabled"===i||"manual"===i&&""!==d;return(0,l.createElement)(Zr,{prompt:e.prompt,description:e.description},(0,l.createElement)(Yr,{fillProps:{proxy:i,proxyHeader:d}}),(0,l.createElement)(Vr,null,(0,l.createElement)(at,{onClick:()=>c("disabled"),title:(0,s.__)("Direct Connection","better-wp-security"),description:(0,s.__)("If your web server is directly exposed to the internet.","better-wp-security"),icon:z.Zk,direction:"vertical",isSelected:"disabled"===i}),(0,l.createElement)(at,{onClick:()=>c("manual"),title:(0,s.__)("Proxy Server","better-wp-security"),description:(0,s.__)("If your web server is behind a proxy server like CloudFlare.","better-wp-security"),icon:z.w9,direction:"vertical",isSelected:"manual"===i})),"manual"===i&&(0,l.createElement)(E.SelectControl,{value:d,onChange:u,options:a,label:n.properties.proxy_header.title,help:n.properties.proxy_header.description}),(0,l.createElement)(C.$n,{className:Hr,variant:"primary",text:(0,s.__)("Next","better-wp-security"),disabled:!m||r,onClick:()=>t({proxy:i,proxy_header:d})}))}const Gr=(0,m.A)(C.ui,{target:"e7yw1b85"})("display:flex;flex-direction:column;align-items:stretch;gap:2.5rem;max-width:95ch;width:100%;border:1px solid ",(({theme:e})=>e.colors.border.normal),";padding:2.5rem 3rem;border-radius:0.25rem;"),Qr=(0,m.A)("figure",{target:"e7yw1b84"})("background-color:#F5F9FF;margin:0;padding:0;display:flex;justify-content:",(({position:e})=>"right"===e?"flex-end":"center"),";padding-right:",(({position:e})=>"right"===e&&"7.5rem"),";"),Xr=(0,m.A)("div",{target:"e7yw1b83"})({name:"1adq05d",styles:"display:flex;gap:0.25rem;flex-direction:column;align-items:center;align-self:center;margin-top:2rem"}),en=(0,m.A)(C.ui,{shouldForwardProp:e=>"isWide"!==e,target:"e7yw1b82"})("display:flex;flex-direction:column;gap:2.5rem;max-width:",(({isWide:e})=>e?"115ch":"95ch"),";width:100%;"),tn=(0,m.A)(C.ui,{target:"e7yw1b81"})("display:flex;flex-direction:column;gap:1.25rem;width:100%;border:1px solid ",(({theme:e})=>e.colors.border.normal),";padding:1.5rem;border-radius:0.25rem;"),rn=(0,m.A)(C.ui,{target:"e7yw1b80"})("display:flex;justify-content:space-between;align-items:center;border:1px solid ",(({theme:e})=>e.colors.border.normal),";padding:1rem;");function nn(){return(0,l.createElement)("svg",{width:"176",height:"120",viewBox:"0 0 176 120",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("g",{clipPath:"url(#clip0_40000788_6438)"},(0,l.createElement)("mask",{id:"mask0_40000788_6438",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"-15",width:"176",height:"151"},(0,l.createElement)("path",{d:"M0 -15H176V136H0V-15Z",fill:"white"})),(0,l.createElement)("g",{mask:"url(#mask0_40000788_6438)"},(0,l.createElement)("path",{d:"M4.44784 40.6331C1.47284 41.1511 -0.377163 44.0701 0.322837 47.1551L19.3718 131.093C20.0738 134.186 23.0578 136.264 26.0318 135.746L133.602 117.026C136.585 116.507 138.427 113.589 137.725 110.495L118.769 26.9651C118.404 25.3497 117.432 23.9364 116.054 23.0172C114.677 22.0981 112.999 21.7432 111.367 22.0261L4.44784 40.6331Z",fill:"#94C1F7"}),(0,l.createElement)("path",{d:"M25.1203 135.999C22.3913 135.999 19.8473 133.978 19.2003 131.131L0.1533 47.1944C-0.2067 45.6094 0.0682998 44.0264 0.9263 42.7364C1.32145 42.1379 1.83545 41.6272 2.43635 41.2358C3.03725 40.8444 3.71221 40.5808 4.4193 40.4614L111.338 21.8544C113.014 21.563 114.738 21.927 116.153 22.871C117.568 23.8151 118.566 25.267 118.94 26.9264L137.896 110.456C138.257 112.047 137.983 113.635 137.125 114.926C136.73 115.524 136.216 116.034 135.615 116.425C135.014 116.816 134.34 117.079 133.633 117.198L26.0633 135.918C25.7493 135.973 25.4333 135.999 25.1223 135.999H25.1203ZM112.48 22.1044C112.122 22.1044 111.761 22.1344 111.397 22.1984L4.4773 40.8064C3.81719 40.918 3.18708 41.1641 2.62611 41.5295C2.06513 41.8949 1.58526 42.3717 1.2163 42.9304C0.4103 44.1404 0.1543 45.6264 0.4923 47.1164L19.5423 131.054C20.2213 134.048 23.1193 136.075 26.0023 135.573L133.571 116.853C134.231 116.742 134.861 116.497 135.423 116.132C135.984 115.767 136.464 115.291 136.833 114.732C137.638 113.521 137.894 112.03 137.555 110.534L118.598 27.0044C118.285 25.6151 117.509 24.3736 116.397 23.4833C115.286 22.5931 113.904 22.1068 112.48 22.1044Z",fill:"#111111"}),(0,l.createElement)("path",{d:"M161.879 -14.7736L94.2567 -3.00563C92.3467 -2.67263 91.1607 -0.795628 91.6127 1.19437L101.062 42.8304C101.312 43.9381 101.978 44.9074 102.923 45.5378C103.867 46.1682 105.018 46.4115 106.137 46.2174L173.077 34.5674C174.994 34.2344 176.18 32.3554 175.73 30.3754L166.164 -11.7806C165.712 -13.7686 163.796 -15.1076 161.879 -14.7736Z",fill:"#94C1F7"}),(0,l.createElement)("path",{d:"M105.372 46.4582C104.329 46.4564 103.317 46.1003 102.503 45.4483C101.689 44.7962 101.12 43.8868 100.89 42.8692L91.441 1.23224C91.205 0.192241 91.385 -0.84676 91.947 -1.69276C92.2047 -2.08318 92.5399 -2.41647 92.9318 -2.67193C93.3236 -2.92739 93.7638 -3.09956 94.225 -3.17776L161.848 -14.9458C163.851 -15.2948 165.862 -13.8918 166.332 -11.8198L175.899 30.3362C176.134 31.3712 175.954 32.4062 175.393 33.2502C175.134 33.6423 174.798 33.9768 174.404 34.2332C174.01 34.4895 173.568 34.6621 173.105 34.7402L106.166 46.3902C105.904 46.4357 105.638 46.4584 105.372 46.4582ZM161.908 -14.6018L94.285 -2.83276C93.8707 -2.76271 93.4752 -2.60823 93.1231 -2.37892C92.7709 -2.14961 92.4697 -1.85037 92.238 -1.49976C91.729 -0.734759 91.567 0.20824 91.781 1.15424L101.231 42.7902C101.471 43.8546 102.111 44.786 103.018 45.3917C103.926 45.9974 105.031 46.2311 106.106 46.0442L173.045 34.3942C173.462 34.3239 173.859 34.1688 174.213 33.9384C174.567 33.7081 174.87 33.4075 175.103 33.0552C175.61 32.2922 175.772 31.3542 175.559 30.4132L165.992 -11.7428C165.562 -13.6368 163.73 -14.9178 161.908 -14.6018Z",fill:"#111111"}),(0,l.createElement)("path",{d:"M149.644 -1.42989L20.4238 21.0601C17.5558 21.5581 15.7818 24.3791 16.4568 27.3531L36.0738 113.798C36.7488 116.772 39.6178 118.776 42.4858 118.277L171.707 95.7881C174.575 95.2891 176.358 92.4751 175.683 89.5011L156.066 3.05711C155.391 0.0831137 152.512 -1.92889 149.644 -1.42989Z",fill:"white"}),(0,l.createElement)("path",{d:"M41.608 118.527C38.978 118.527 36.526 116.58 35.904 113.836L16.286 27.3921C15.938 25.8571 16.203 24.3251 17.033 23.0761C17.413 22.5002 17.9074 22.0087 18.4854 21.6319C19.0634 21.2552 19.7127 21.0013 20.393 20.8861L149.614 -1.60093C152.572 -2.11493 155.541 -0.0429327 156.235 3.01907L175.853 89.4631C176.2 90.9921 175.935 92.5201 175.107 93.7661C174.725 94.3434 174.229 94.8361 173.649 95.2137C173.07 95.5913 172.418 95.8457 171.736 95.9611L42.516 118.45C42.2162 118.502 41.9124 118.527 41.608 118.527ZM150.525 -1.33093C150.242 -1.33093 149.958 -1.30693 149.674 -1.25693L20.454 21.2301C19.8203 21.3373 19.2154 21.5738 18.677 21.9247C18.1385 22.2757 17.678 22.7336 17.324 23.2701C16.547 24.4371 16.3 25.8731 16.626 27.3131L36.244 113.758C36.83 116.341 39.136 118.176 41.606 118.177C41.888 118.177 42.172 118.153 42.456 118.103L171.677 95.6151C172.312 95.5076 172.919 95.2706 173.459 94.9188C173.999 94.567 174.461 94.1079 174.816 93.5701C175.591 92.4051 175.838 90.9731 175.513 89.5391L155.895 3.09507C155.308 0.507067 152.999 -1.33093 150.525 -1.33093Z",fill:"#111111"}),(0,l.createElement)("path",{d:"M70.768 99.9261C70.6916 99.9194 70.6193 99.8891 70.5609 99.8395C70.5025 99.7899 70.4609 99.7234 70.442 99.6491L67.423 88.0371C67.4038 87.944 67.4211 87.8472 67.4713 87.7665C67.5215 87.6858 67.6008 87.6274 67.6927 87.6034C67.7847 87.5794 67.8824 87.5917 67.9656 87.6376C68.0488 87.6835 68.1112 87.7596 68.14 87.8501L71.078 99.1511L81.635 97.9641C81.7308 97.9568 81.8258 97.9871 81.8998 98.0484C81.9739 98.1098 82.0212 98.1975 82.0318 98.293C82.0425 98.3886 82.0156 98.4846 81.9568 98.5607C81.8981 98.6368 81.8121 98.6872 81.717 98.7011L70.841 99.9251C70.8167 99.9275 70.7922 99.9285 70.768 99.9261ZM129.51 93.3091C129.415 93.3055 129.325 93.2656 129.259 93.1976C129.193 93.1296 129.155 93.0388 129.154 92.9439C129.153 92.849 129.188 92.7573 129.253 92.6878C129.317 92.6182 129.406 92.5761 129.501 92.5701L139.957 91.3941L137.047 80.1951C137.035 80.1481 137.032 80.099 137.039 80.0509C137.045 80.0027 137.062 79.9563 137.086 79.9144C137.111 79.8725 137.144 79.8358 137.182 79.8065C137.221 79.7772 137.265 79.7558 137.312 79.7436C137.36 79.7314 137.409 79.7286 137.457 79.7353C137.505 79.7421 137.551 79.7582 137.593 79.7829C137.635 79.8075 137.672 79.8402 137.701 79.879C137.73 79.9178 137.752 79.9621 137.764 80.0091L140.782 91.6221C140.795 91.6735 140.798 91.7272 140.788 91.7795C140.779 91.8319 140.759 91.8816 140.729 91.9254C140.699 91.9692 140.66 92.0061 140.614 92.0334C140.569 92.0608 140.518 92.0781 140.465 92.0841L129.584 93.3081C129.559 93.3106 129.535 93.3116 129.51 93.3091ZM124.104 29.3741C124.028 29.3675 123.955 29.3374 123.897 29.2879C123.839 29.2385 123.797 29.1722 123.778 29.0981L120.841 17.8021L110.279 18.9901C110.181 19.0011 110.083 18.9728 110.006 18.9114C109.929 18.85 109.879 18.7605 109.868 18.6626C109.857 18.5648 109.886 18.4665 109.947 18.3896C110.009 18.3126 110.098 18.2631 110.196 18.2521L121.078 17.0291C121.167 17.0193 121.256 17.0416 121.329 17.0921C121.403 17.1426 121.455 17.2179 121.478 17.3041L124.495 28.9111C124.51 28.9686 124.51 29.0287 124.497 29.0865C124.484 29.1443 124.457 29.1981 124.419 29.2434C124.381 29.2887 124.332 29.3242 124.277 29.347C124.222 29.3697 124.163 29.379 124.104 29.3741ZM54.48 37.2171C54.4036 37.2104 54.3313 37.1801 54.2729 37.1305C54.2145 37.0809 54.1729 37.0144 54.154 36.9401L51.136 25.3321C51.1226 25.2807 51.1204 25.227 51.1296 25.1747C51.1388 25.1224 51.1591 25.0726 51.1891 25.0288C51.2192 24.985 51.2583 24.9482 51.3038 24.9208C51.3493 24.8934 51.4002 24.8762 51.453 24.8701L62.33 23.6471C62.3784 23.6417 62.4275 23.6458 62.4743 23.6593C62.5212 23.6728 62.5649 23.6955 62.603 23.7259C62.6412 23.7563 62.6729 23.7939 62.6965 23.8366C62.7201 23.8793 62.735 23.9262 62.7405 23.9746C62.7459 24.0231 62.7418 24.0721 62.7283 24.119C62.7148 24.1659 62.6921 24.2096 62.6617 24.2477C62.6313 24.2858 62.5937 24.3176 62.551 24.3412C62.5083 24.3647 62.4614 24.3797 62.413 24.3851L51.96 25.5601L54.87 36.7531C54.8853 36.8106 54.8866 36.8709 54.8736 36.929C54.8607 36.987 54.834 37.0411 54.7957 37.0866C54.7575 37.1322 54.7088 37.1678 54.6538 37.1905C54.5988 37.2132 54.5392 37.2224 54.48 37.2171ZM98.75 87.0841C98.7328 87.0825 98.7161 87.0773 98.701 87.0688C98.6859 87.0603 98.6728 87.0488 98.6624 87.035C98.6521 87.0211 98.6447 87.0053 98.6409 86.9884C98.637 86.9716 98.6367 86.9541 98.64 86.9371C98.988 85.1771 100.548 75.7681 96.954 63.3731C96.9476 63.3571 96.9446 63.3398 96.9452 63.3226C96.9458 63.3053 96.9501 63.2883 96.9577 63.2728C96.9652 63.2572 96.976 63.2435 96.9892 63.2323C97.0024 63.2212 97.0179 63.2129 97.0345 63.2081C97.0511 63.2032 97.0685 63.2019 97.0856 63.2042C97.1028 63.2065 97.1192 63.2124 97.134 63.2215C97.1487 63.2305 97.1614 63.2425 97.1712 63.2568C97.181 63.271 97.1878 63.2871 97.191 63.3041C100.801 75.7541 99.232 85.2141 98.881 86.9841C98.8752 87.0141 98.8585 87.0409 98.8341 87.0594C98.8097 87.0779 98.7804 87.0867 98.75 87.0841Z",fill:"#111111"}),(0,l.createElement)("path",{d:"M106.392 86.6232H106.39C106.357 86.6194 106.327 86.6029 106.306 86.5772C106.286 86.5516 106.276 86.5189 106.28 86.4862C106.885 80.9992 106.572 71.8082 103.881 62.4642C102.69 58.3262 98.0825 55.5382 94.2145 56.6142C93.4918 56.8141 92.8163 57.1566 92.228 57.6215C91.6396 58.0864 91.1502 58.6643 90.7885 59.3212C89.9365 60.8512 89.7725 62.7442 90.3255 64.6542C92.9625 73.7502 92.3975 80.7012 91.8255 84.0342C91.8231 84.0502 91.8175 84.0656 91.809 84.0794C91.8004 84.0933 91.7892 84.1052 91.7759 84.1146C91.7626 84.1239 91.7476 84.1305 91.7317 84.1338C91.7158 84.1372 91.6994 84.1373 91.6835 84.1342C91.6514 84.1285 91.6228 84.1105 91.6039 84.0839C91.585 84.0573 91.5773 84.0244 91.5825 83.9922C92.1505 80.6802 92.7125 73.7722 90.0885 64.7222C89.5165 62.7492 89.6885 60.7882 90.5725 59.2002C90.9501 58.5146 91.461 57.9116 92.0751 57.4264C92.6892 56.9412 93.3942 56.5838 94.1485 56.3752C96.0525 55.8452 98.2415 56.1952 100.154 57.3372C102.079 58.4872 103.524 60.3302 104.118 62.3952C106.819 71.7742 107.133 81.0032 106.526 86.5132C106.522 86.5454 106.506 86.5749 106.481 86.5955C106.456 86.616 106.424 86.626 106.392 86.6232Z",fill:"#111111"}),(0,l.createElement)("path",{d:"M84.9803 77.9181C84.9498 77.9151 84.9216 77.901 84.9009 77.8785C84.8802 77.856 84.8686 77.8266 84.8682 77.7961C84.8352 75.1031 84.3413 70.4121 83.0523 65.3231C82.1353 61.6991 82.4123 58.2301 83.8553 55.2911C85.2953 52.3591 87.7532 50.2381 90.9632 49.1601C94.3242 48.0301 98.4793 48.5871 102.362 50.6881C106.277 52.8051 109.29 56.1741 110.63 59.9291C112.824 66.0811 113.687 74.0511 114.025 79.6541C114.025 79.6855 114.013 79.7158 113.991 79.7386C113.97 79.7615 113.94 79.7752 113.909 79.7772C113.877 79.7791 113.846 79.769 113.822 79.7489C113.798 79.7288 113.782 79.7003 113.778 79.6691C113.442 74.0821 112.582 66.1371 110.397 60.0131C109.078 56.3141 106.107 52.9951 102.245 50.9051C98.4223 48.8371 94.3383 48.2861 91.0423 49.3951C84.6573 51.5401 81.4703 58.0651 83.2923 65.2631C84.5863 70.3731 85.0822 75.0861 85.1152 77.7931C85.1156 77.8104 85.1123 77.8275 85.1056 77.8435C85.0988 77.8594 85.0888 77.8737 85.0762 77.8855C85.0635 77.8973 85.0485 77.9063 85.0322 77.9119C85.0158 77.9175 84.9975 77.9196 84.9803 77.9181Z",fill:"#111111"}),(0,l.createElement)("path",{d:"M75.4971 57.9103L75.4901 57.9083C75.474 57.9061 75.4585 57.9007 75.4444 57.8925C75.4304 57.8842 75.4182 57.8733 75.4084 57.8602C75.3986 57.8472 75.3915 57.8324 75.3875 57.8166C75.3836 57.8008 75.3827 57.7844 75.3851 57.7683C76.6381 48.9823 81.8181 43.0493 89.5951 41.4913C94.0501 40.5993 99.0061 41.2853 103.551 43.4223C108.376 45.6923 112.413 49.3913 115.226 54.1183C115.243 54.1466 115.247 54.1803 115.239 54.2121C115.231 54.2439 115.211 54.2713 115.183 54.2883C115.169 54.2966 115.154 54.302 115.137 54.3043C115.121 54.3066 115.105 54.3057 115.089 54.3016C115.073 54.2975 115.058 54.2903 115.045 54.2805C115.032 54.2707 115.021 54.2584 115.013 54.2443C109.507 44.9893 99.0751 39.8443 89.6431 41.7343C81.9751 43.2703 76.8671 49.1273 75.6291 57.8043C75.6247 57.8353 75.6085 57.8635 75.584 57.883C75.5594 57.9025 75.5284 57.9129 75.4971 57.9103ZM76.2231 39.7793C76.1992 39.7776 76.1762 39.769 76.1571 39.7544C76.138 39.7399 76.1236 39.7201 76.1156 39.6974C76.1077 39.6748 76.1065 39.6503 76.1123 39.627C76.118 39.6037 76.1305 39.5826 76.1481 39.5663C79.4661 36.4063 84.1341 34.3343 89.2931 33.7323C94.7191 33.0993 100.275 34.0813 105.36 36.5723C105.422 36.6023 105.447 36.6763 105.417 36.7383C105.41 36.7528 105.4 36.7658 105.388 36.7765C105.376 36.7872 105.362 36.7953 105.346 36.8006C105.331 36.8058 105.315 36.8079 105.299 36.8068C105.282 36.8057 105.267 36.8015 105.252 36.7943C95.2061 31.8733 83.3081 33.0863 76.3191 39.7453C76.3065 39.7575 76.2914 39.7669 76.2749 39.7728C76.2583 39.7787 76.2406 39.7809 76.2231 39.7793ZM102.511 87.4223H102.506C102.474 87.4178 102.445 87.4009 102.425 87.3751C102.405 87.3493 102.395 87.3167 102.399 87.2843C103.146 81.4073 103.506 73.9493 100.522 63.1943C100.239 62.1773 99.4121 61.1813 98.3621 60.5943C97.4751 60.0993 96.5501 59.9543 95.7541 60.1843C93.7051 60.7803 93.4741 62.9313 93.8971 64.5923C96.0251 72.9373 96.5071 80.2283 95.2931 85.6763L95.2631 85.8143C95.2606 85.831 95.2547 85.8471 95.2457 85.8615C95.2368 85.8758 95.2249 85.8882 95.211 85.8978C95.1971 85.9074 95.1813 85.9141 95.1647 85.9174C95.1481 85.9207 95.131 85.9206 95.1145 85.917C95.0979 85.9135 95.0823 85.9066 95.0685 85.8967C95.0547 85.8869 95.0431 85.8744 95.0343 85.8599C95.0256 85.8454 95.0199 85.8292 95.0176 85.8124C95.0154 85.7957 95.0166 85.7786 95.0211 85.7623L95.0511 85.6223C96.2581 80.2123 95.7761 72.9613 93.6571 64.6533C93.0641 62.3253 93.8601 60.4773 95.6861 59.9473C96.5441 59.6983 97.5371 59.8513 98.4821 60.3783C99.5881 60.9963 100.46 62.0503 100.76 63.1283C103.756 73.9253 103.394 81.4143 102.645 87.3153C102.641 87.347 102.625 87.3758 102.6 87.396C102.576 87.4161 102.544 87.4259 102.512 87.4233L102.511 87.4223Z",fill:"#111111"}),(0,l.createElement)("path",{d:"M110.258 84.3205C110.227 84.3177 110.198 84.3029 110.177 84.2793C110.156 84.2557 110.145 84.225 110.146 84.1935C110.338 77.1765 109.398 69.4405 107.497 62.4085C105.62 55.4655 98.7033 51.7425 93.6693 52.7435C91.0853 53.2575 89.0463 54.6405 87.7693 56.7435C86.3203 59.1315 86.0093 62.2935 86.9143 65.4175C89.1723 73.2075 88.6573 79.1735 88.4643 81.4195C88.4643 81.4367 88.4607 81.4537 88.4538 81.4695C88.4469 81.4853 88.4367 81.4995 88.424 81.5111C88.4113 81.5227 88.3963 81.5316 88.38 81.5371C88.3637 81.5426 88.3464 81.5447 88.3292 81.5432C88.312 81.5416 88.2954 81.5365 88.2803 81.5282C88.2652 81.5199 88.252 81.5085 88.2416 81.4948C88.2312 81.4811 88.2237 81.4653 88.2197 81.4486C88.2157 81.4318 88.2152 81.4144 88.2183 81.3975C88.4103 79.1645 88.9223 73.2325 86.6783 65.4865C85.7523 62.2965 86.0733 59.0625 87.5583 56.6145C88.8713 54.4515 90.9683 53.0285 93.6203 52.5015C96.1023 52.0075 99.1383 52.6755 101.741 54.2875C104.692 56.1118 106.836 58.9935 107.735 62.3445C109.642 69.3985 110.586 77.1605 110.393 84.2005C110.392 84.2332 110.378 84.2642 110.354 84.2866C110.331 84.3091 110.299 84.3213 110.266 84.3205H110.258Z",fill:"#111111"}),(0,l.createElement)("path",{d:"M80.969 72.1692C80.9412 72.1668 80.9151 72.1551 80.8948 72.1361C80.8745 72.117 80.8612 72.0917 80.857 72.0642C80.739 71.3032 80.454 70.0442 80.152 68.7102C79.775 67.0472 79.386 65.3282 79.212 64.1322C77.747 54.0962 82.843 46.4122 91.892 45.0082C95.414 44.4622 99.587 45.2782 103.34 47.2472C106.3 48.8002 110.395 51.7912 113.094 57.2212C114.974 61.0042 116.107 67.3002 116.651 70.3262L116.767 70.9682C116.773 71.0004 116.766 71.0336 116.747 71.0606C116.729 71.0875 116.7 71.1061 116.668 71.1122C116.636 71.118 116.602 71.1107 116.575 71.092C116.548 71.0732 116.53 71.0445 116.524 71.0122L116.408 70.3702C115.865 67.3552 114.737 61.0822 112.873 57.3322C108.279 48.0892 98.653 44.2102 91.929 45.2522C83.025 46.6332 78.013 54.2062 79.456 64.0972C79.629 65.2832 80.035 67.0752 80.393 68.6552C80.696 69.9932 80.982 71.2572 81.102 72.0272C81.1048 72.0457 81.1033 72.0646 81.0978 72.0825C81.0922 72.1003 81.0827 72.1167 81.0699 72.1304C81.0571 72.144 81.0413 72.1546 81.0239 72.1613C81.0064 72.1681 80.9876 72.1707 80.969 72.1692Z",fill:"#111111"}),(0,l.createElement)("path",{d:"M74.6637 48.0153C74.6429 48.0134 74.6229 48.0063 74.6056 47.9947C74.5883 47.983 74.5742 47.9672 74.5646 47.9486C74.555 47.9301 74.5503 47.9094 74.5508 47.8886C74.5514 47.8677 74.5572 47.8473 74.5677 47.8293C77.8597 42.2063 82.8977 38.6863 89.1377 37.6483C96.5247 36.4193 104.912 38.9323 111.027 44.2063C111.041 44.2162 111.053 44.229 111.062 44.2439C111.071 44.2587 111.076 44.2752 111.079 44.2924C111.081 44.3096 111.079 44.3271 111.074 44.3437C111.069 44.3603 111.061 44.3756 111.05 44.3888C111.038 44.4019 111.024 44.4125 111.009 44.4199C110.993 44.4273 110.976 44.4314 110.959 44.4318C110.941 44.4322 110.924 44.429 110.908 44.4224C110.892 44.4158 110.878 44.4058 110.866 44.3933C104.805 39.1663 96.4947 36.6753 89.1777 37.8923C83.0127 38.9173 78.0347 42.3973 74.7807 47.9543C74.7688 47.9742 74.7515 47.9904 74.7308 48.0011C74.7101 48.0117 74.6869 48.0172 74.6637 48.0153ZM81.5537 31.9133C81.5267 31.9103 81.5015 31.8986 81.4818 31.8799C81.4622 31.8612 81.4492 31.8365 81.4449 31.8097C81.4406 31.7829 81.4451 31.7555 81.4579 31.7316C81.4707 31.7076 81.491 31.6886 81.5157 31.6773C84.8687 30.2253 91.3187 29.2533 96.3087 30.1383C96.341 30.1441 96.3697 30.1626 96.3885 30.1896C96.4072 30.2166 96.4145 30.2499 96.4087 30.2823C96.406 30.2983 96.4002 30.3137 96.3915 30.3274C96.3829 30.3412 96.3715 30.3531 96.3582 30.3624C96.3449 30.3717 96.3299 30.3782 96.314 30.3817C96.2981 30.3851 96.2817 30.3853 96.2657 30.3823C91.3217 29.5043 84.9337 30.4673 81.6127 31.9043C81.5938 31.9126 81.5732 31.9161 81.5527 31.9143L81.5537 31.9133Z",fill:"#111111"}))),(0,l.createElement)("defs",null,(0,l.createElement)("clipPath",{id:"clip0_40000788_6438"},(0,l.createElement)("rect",{width:"176",height:"120",fill:"white"}))))}function an({question:e,onAnswer:t}){const{installType:r}=Z(),{isScanning:n,isQuerying:a}=(0,w.useSelect)((e=>({isScanning:e(L.siteScannerStore).isScanning(),isQuerying:e(L.vulnerabilitiesStore).isQuerying("onboarding")})),[]),{runScan:i}=(0,w.useDispatch)(L.siteScannerStore),{query:c}=(0,w.useDispatch)(L.vulnerabilitiesStore),[d,u]=(0,o.useState)();return(0,l.createElement)(E.Flex,{direction:"column",gap:6},(0,l.createElement)(Gr,null,(0,l.createElement)(Qr,null,(0,l.createElement)(nn,null)),(0,l.createElement)(E.Flex,{direction:"column",gap:6},(0,l.createElement)(C.DZ,{level:3,text:e.prompt,size:C.$C.EXTRA_LARGE,weight:C.uL.NORMAL}),(0,l.createElement)(E.Flex,{direction:"column",gap:3},(0,l.createElement)(C.DZ,{level:4,text:(0,s.__)("Why is this important?","better-wp-security"),size:C.$C.SUBTITLE_SMALL}),(0,l.createElement)(C.EY,{text:e.description,variant:C.J3.MUTED}))),d&&(0,l.createElement)(E.Flex,{direction:"column",gap:4},(0,l.createElement)(C.Mf,{heading:(0,s.__)("Oops! We hit a snag scanning your site.","better-wp-security"),messages:d.map((e=>e.message)),type:"warning"}),(0,l.createElement)(C.$n,{text:(0,s.__)("Skip for Now","better-wp-security"),align:"center",variant:"primary",onClick:()=>t(!1)})),!d&&(0,l.createElement)(E.Flex,{direction:"column",gap:3},(0,l.createElement)(C.$n,{text:(0,s.__)("Scan Site","better-wp-security"),variant:"primary",isBusy:n||a,onClick:async()=>{const e=await i();"error"!==e.status?await c("onboarding",{resolution:["","deactivated","patched"],per_page:10}):u(e.errors)}}),(0,l.createElement)(C.$n,{text:(0,s.__)("No, Skip Site Scan","better-wp-security"),variant:"tertiary",onClick:()=>t(!1)}))),"free"===r&&(0,l.createElement)(C.$n,{text:(0,s.__)("Privacy Policy","better-wp-security"),href:"https://go.solidwp.com/solid-privacy-policy",variant:"tertiary",target:"_blank"}),(0,l.createElement)(Xr,null,(0,l.createElement)(C.EY,{text:(0,s.__)("Powered by","better-wp-security"),variant:C.J3.MUTED,size:C.$C.SMALL}),(0,l.createElement)(z.Tk,{width:171,alt:(0,s.__)("Patchstack","better-wp-security")})))}function ln(){return(0,l.createElement)("svg",{width:"195",height:"120",viewBox:"0 0 195 120",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("g",{clipPath:"url(#cuabit6eza)"},(0,l.createElement)("path",{d:"m66.871 12.878-1.454 3.524c.715-1.734.657-3.37-.612-4.52C60.444 7.93 50.163-1.182 49.622-1.662l1.455-3.524c.54.48 10.822 9.591 15.183 13.544 1.269 1.15 1.327 2.787.611 4.52z",fill:"#111"}),(0,l.createElement)("path",{d:"M65.417 16.483a.082.082 0 0 1-.075-.112l.002-.006c.533-1.292.86-3.107-.593-4.423C60.526 8.114 50.683-.613 49.575-1.596l-.007-.005a.082.082 0 0 1-.02-.092l1.454-3.524a.081.081 0 0 1 .13-.03l.005.006c1.109.982 10.954 9.71 15.178 13.539 1.207 1.093 1.426 2.688.632 4.611l-1.454 3.524a.081.081 0 0 1-.076.05zM49.72-1.684c1.275 1.13 10.96 9.718 15.14 13.506.894.81 1.246 1.893 1.047 3.181l.89-2.155c.533-1.293.864-3.11-.592-4.429C62.07 4.67 52.541-3.779 51.11-5.049l-1.39 3.364z",fill:"#111"}),(0,l.createElement)("path",{d:"M129.825 142.74c-6.799-6.858.245-19.72-4.042-25.536L68.936 40.083c-3.66-4.966-17.373-5.094-23.055-9.405-6.504-4.939-12.048-18.473-10.097-23.2l-1.455 3.524c-1.95 4.727 3.593 18.261 10.097 23.2 5.682 4.311 19.395 4.44 23.055 9.405l56.848 77.121c4.286 5.815-2.758 18.678 4.041 25.536 6.461 6.515 22.334 11.73 26.84 9.703l1.455-3.524c-4.506 2.027-20.38-3.188-26.84-9.703z",fill:"url(#az5zg9gayb)"}),(0,l.createElement)("path",{d:"M152.492 156.492c-2.53.001-6.07-.725-9.995-2.096-5.918-2.067-11.22-5.085-14.184-8.075-1.699-1.713-2.687-3.954-3.022-6.852-.295-2.552-.061-5.282.164-7.921.361-4.218.702-8.203-1.191-10.771L67.416 43.656c-1.97-2.673-6.799-3.912-11.912-5.223-4.187-1.075-8.516-2.185-11.126-4.166-3.015-2.289-6.097-6.667-8.245-11.712-2.086-4.899-2.806-9.337-1.879-11.583l1.455-3.524a.082.082 0 0 1 .15.062c-.91 2.207-.191 6.597 1.878 11.457 2.137 5.02 5.2 9.374 8.194 11.646 2.584 1.961 6.897 3.068 11.069 4.138 5.141 1.319 9.998 2.565 12.002 5.284l56.847 77.121c1.93 2.618 1.587 6.632 1.224 10.882-.457 5.345-.93 10.872 2.81 14.645 2.948 2.972 8.227 5.976 14.122 8.035 5.659 1.976 10.498 2.609 12.627 1.651a.08.08 0 0 1 .048-.006.08.08 0 0 1 .066.064.088.088 0 0 1-.005.048l-1.455 3.524a.078.078 0 0 1-.041.043c-.674.303-1.611.45-2.753.45zM35.398 8.629l-.993 2.405c-.911 2.207-.192 6.597 1.878 11.457 2.137 5.02 5.2 9.374 8.193 11.646 2.584 1.961 6.898 3.068 11.069 4.138 5.142 1.319 9.998 2.565 12.002 5.284l56.848 77.121c1.929 2.618 1.586 6.632 1.223 10.882-.457 5.345-.93 10.872 2.811 14.645 2.947 2.972 8.226 5.976 14.122 8.035 5.632 1.967 10.452 2.603 12.597 1.664l1.367-3.312c-2.25.863-7.023.213-12.564-1.722-5.917-2.067-11.22-5.085-14.184-8.074-1.698-1.714-2.686-3.955-3.021-6.853-.295-2.552-.062-5.281.164-7.921.361-4.218.701-8.203-1.192-10.771L68.871 40.132c-1.97-2.673-6.8-3.912-11.912-5.223-4.187-1.075-8.517-2.185-11.127-4.166-3.014-2.289-6.097-6.667-8.245-11.712-1.766-4.147-2.552-7.965-2.19-10.402z",fill:"#111"}),(0,l.createElement)("path",{d:"M51.077-5.186c4.89-2.2 22.11 3.462 29.118 10.527 7.379 7.44-.782 21.627 3.87 27.938l56.847 77.121c3.373 4.576 15.305 5.013 20.544 8.987 6.238 4.736 11.514 18.048 9.056 21.871-.507-.455-10.133-9.108-13.997-12.481-1.724-1.504-4.316-1.271-6.855-.129-5.185 2.332-10.141 8.456-6.988 11.313 4.018 3.642 13.495 12.04 13.994 12.482-4.506 2.026-20.38-3.188-26.841-9.703-6.799-6.858.246-19.721-4.041-25.536L68.936 40.083c-3.66-4.966-17.372-5.094-23.055-9.405-6.767-5.139-12.494-19.581-9.823-23.728.55.494 10.993 9.883 15.184 13.54 1.869 1.632 4.681 1.379 7.436.14 5.625-2.53 11.004-9.174 7.582-12.272C61.899 4.405 51.618-4.706 51.077-5.186z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M153.947 152.969c-2.53 0-6.07-.726-9.995-2.097-5.918-2.067-11.22-5.085-14.184-8.074-1.699-1.713-2.687-3.955-3.022-6.853-.295-2.552-.062-5.281.164-7.921.361-4.218.702-8.202-1.192-10.771L68.871 40.132c-1.97-2.673-6.799-3.912-11.912-5.223-4.187-1.074-8.516-2.185-11.127-4.166-3.153-2.394-6.322-6.981-8.477-12.27-2.107-5.171-2.63-9.603-1.365-11.567a.081.081 0 0 1 .123-.016c.447.402 10.992 9.883 15.183 13.539 1.673 1.461 4.283 1.506 7.349.127 4.225-1.9 8.06-5.973 8.55-9.08.199-1.254-.134-2.283-.99-3.057C61.983 4.591 52.139-4.136 51.03-5.119l-.007-.005a.081.081 0 0 1 .021-.135c2.35-1.057 7.647-.372 13.825 1.786 6.418 2.242 12.17 5.516 15.385 8.757 1.84 1.856 2.88 4.297 3.179 7.464.264 2.79-.063 5.779-.378 8.67-.506 4.639-.984 9.02 1.075 11.813l56.848 77.122c1.829 2.481 6.13 3.715 10.683 5.022 3.668 1.052 7.46 2.14 9.844 3.948 2.908 2.208 5.83 6.436 7.816 11.312 1.942 4.768 2.425 8.856 1.259 10.668a.085.085 0 0 1-.025.025.096.096 0 0 1-.032.012.085.085 0 0 1-.066-.02c-1.035-.931-10.221-9.186-13.995-12.48-1.541-1.345-3.945-1.387-6.768-.117-3.892 1.75-7.426 5.503-7.878 8.365-.182 1.154.125 2.101.911 2.813 3.895 3.531 12.967 11.573 13.989 12.478.02.018.032.048.028.075-.004.028-.019.053-.045.064-.673.303-1.61.451-2.752.451zM36.077 7.076c-1.171 1.96-.629 6.284 1.43 11.336 2.111 5.184 5.34 9.86 8.424 12.201 2.584 1.961 6.897 3.068 11.069 4.138 5.141 1.319 9.998 2.565 12.002 5.284l56.848 77.121c1.929 2.618 1.586 6.632 1.223 10.882-.457 5.345-.93 10.872 2.81 14.645 2.948 2.972 8.227 5.976 14.122 8.035 5.558 1.941 10.324 2.586 12.51 1.701-1.399-1.24-10.104-8.958-13.897-12.397-.83-.752-1.154-1.748-.963-2.96.46-2.91 4.036-6.718 7.972-8.488 2.885-1.298 5.35-1.247 6.942.143 3.698 3.228 12.593 11.219 13.925 12.416 1.071-1.809.569-5.788-1.324-10.437-1.946-4.777-4.921-9.086-7.763-11.243-2.36-1.79-6.138-2.874-9.791-3.922-4.581-1.314-8.907-2.555-10.77-5.082L83.999 33.328c-2.097-2.845-1.615-7.257-1.106-11.927.314-2.884.64-5.865.377-8.638-.295-3.128-1.32-5.537-3.132-7.364-3.199-3.225-8.927-6.484-15.322-8.718-6.04-2.11-11.219-2.809-13.588-1.842C52.695-3.86 62.188 4.558 66.315 8.3c.898.813 1.249 1.89 1.042 3.203-.247 1.564-1.303 3.39-2.973 5.14-1.627 1.707-3.642 3.15-5.672 4.063-3.128 1.407-5.8 1.352-7.524-.154-4.058-3.54-14.075-12.543-15.112-13.475z",fill:"#111"}),(0,l.createElement)("path",{d:"M75.688 35.349c-2.317 1.042-2.898 3.646-1.299 5.816l52.934 71.812c1.602 2.172 4.776 3.088 7.094 2.045 2.314-1.04 2.894-3.645 1.293-5.817L82.776 37.393c-1.599-2.17-4.774-3.085-7.088-2.044z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M132.326 115.532c-1.903 0-3.902-.925-5.069-2.507L74.323 41.213c-.82-1.114-1.106-2.365-.802-3.523.279-1.065 1.037-1.923 2.133-2.416 2.344-1.055 5.569-.126 7.187 2.07l52.934 71.812c.823 1.116 1.109 2.369.805 3.527-.279 1.064-1.035 1.921-2.13 2.414a5.18 5.18 0 0 1-2.124.435zM77.78 35.001c-.718 0-1.422.135-2.06.422-1.05.472-1.775 1.292-2.042 2.309-.29 1.108-.015 2.31.777 3.384l52.934 71.812c1.576 2.139 4.714 3.045 6.994 2.02 1.049-.472 1.773-1.291 2.039-2.306.291-1.11.015-2.313-.778-3.389L82.71 37.441C81.575 35.9 79.63 35 77.78 35z",fill:"#111"})),(0,l.createElement)("g",{clipPath:"url(#yytr1qinwc)"},(0,l.createElement)("path",{d:"M80.273 90.34c.197-.266-.506-1.123-1.572-1.913s-2.09-1.216-2.287-.95c-.198.267.506 1.124 1.571 1.914 1.066.791 2.09 1.216 2.288.95z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M80.062 90.497c-.36 0-.914-.283-1.18-.43-1.045-.583-2.16-1.556-2.484-2.169-.12-.228-.128-.396-.023-.5.266-.26 1.092.156 1.435.347 1.046.583 2.16 1.556 2.484 2.17.12.227.128.395.023.498-.06.06-.15.084-.255.084zm-3.432-3.022c-.069 0-.116.014-.142.04-.046.044-.026.157.053.308.312.589 1.397 1.532 2.42 2.103.71.396 1.143.47 1.243.372.046-.045.027-.157-.053-.309-.311-.589-1.397-1.532-2.42-2.103-.528-.294-.903-.41-1.101-.41z",fill:"#111"}),(0,l.createElement)("path",{d:"M131.907 12.666 76.415 87.475c.13-.174.631-.062 1.355.34 1.036.578 2.134 1.535 2.452 2.137.096.181.11.31.054.385l55.492-74.808c.611-1.137.995-2.93 1.147-4.032.203-1.465-.259-1.478-.748-1.367-1.231.282-3.779 2.055-4.26 2.536z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M80.276 90.418a.08.08 0 0 1-.072-.044.081.081 0 0 1 .008-.085c.036-.049.014-.158-.061-.3-.311-.59-1.397-1.533-2.42-2.103-.789-.44-1.18-.458-1.25-.364a.081.081 0 0 1-.145-.036.081.081 0 0 1 .015-.06l55.492-74.808a.052.052 0 0 1 .008-.01c.5-.5 3.058-2.273 4.298-2.556.245-.056.496-.085.677.08.218.2.272.637.17 1.376-.163 1.184-.564 2.957-1.156 4.059a.215.215 0 0 1-.006.01L80.342 90.385a.08.08 0 0 1-.066.033zm-3.641-3.103c.358.002.906.28 1.175.43 1.046.583 2.16 1.556 2.484 2.169.032.06.055.116.071.168L135.7 15.485c.581-1.083.975-2.83 1.136-3.999.092-.663.052-1.078-.119-1.235-.126-.115-.33-.088-.532-.042-1.187.271-3.728 2.026-4.216 2.51L76.635 87.315z",fill:"#111"}),(0,l.createElement)("path",{d:"M134.152 16.64a.132.132 0 0 1-.06-.012c-.321-.162.001-2.174.135-2.564.118-.337.555-.855 1.061-1.454.578-.684 1.232-1.458 1.551-2.132-.036-.125-.094-.209-.176-.257-.105-.062-.259-.068-.459-.017-.762.629-3.007 2.53-3.474 2.94-.216.19-1.44 1.09-1.887 1.02a.08.08 0 0 1-.007-.158.081.081 0 0 1 .032-.001c.328.05 1.443-.708 1.755-.981.471-.413 2.743-2.339 3.492-2.956a.084.084 0 0 1 .031-.015c.254-.068.45-.06.599.028.125.074.212.203.258.384a.09.09 0 0 1-.005.054c-.324.7-.994 1.494-1.586 2.195-.476.562-.925 1.094-1.032 1.403-.214.619-.333 2.22-.214 2.366.153.02.919-.508 1.552-1.017a.08.08 0 0 1 .111.014.086.086 0 0 1 .018.058.081.081 0 0 1-.028.054c-1.087.874-1.506 1.048-1.667 1.048z",fill:"#111"}),(0,l.createElement)("path",{d:"M82.037 93.707c.476-.641-1.226-2.71-3.8-4.622-2.575-1.912-5.048-2.942-5.524-2.301-.476.64 1.226 2.71 3.8 4.622 2.575 1.911 5.048 2.942 5.524 2.3z",fill:"#fff"}),(0,l.createElement)("path",{d:"M81.523 93.98c-.615 0-1.609-.364-2.83-1.05-2.517-1.415-5.177-3.746-5.931-5.197-.256-.49-.278-.843-.067-1.048.412-.398 1.67-.068 3.364.884 2.516 1.415 5.177 3.745 5.931 5.196.255.491.278.844.067 1.048-.115.112-.296.166-.534.166zM73.23 86.68c-.207 0-.346.046-.424.12-.191.186-.052.569.098.858.742 1.427 3.374 3.728 5.867 5.13 1.92 1.079 2.908 1.163 3.172.908.192-.185.053-.569-.097-.857-.742-1.428-3.374-3.729-5.867-5.13-1.358-.763-2.25-1.029-2.75-1.029z",fill:"#111"}),(0,l.createElement)("path",{d:"m72.712 86.789 1.959-2.639c.313-.421 1.542-.14 3.307.852 2.509 1.41 5.15 3.722 5.9 5.163.221.428.252.73.12.908l-1.959 2.639c.132-.178.102-.481-.12-.909-.75-1.441-3.391-3.753-5.9-5.163-1.765-.992-2.994-1.273-3.307-.851z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M82.04 93.792a.08.08 0 0 1-.065-.129c.115-.156.07-.44-.128-.823-.742-1.427-3.374-3.728-5.867-5.13-1.353-.76-2.868-1.325-3.203-.874a.081.081 0 0 1-.114.018.08.08 0 0 1-.031-.054.081.081 0 0 1 .016-.06l1.958-2.638c.357-.48 1.632-.17 3.411.83 2.517 1.414 5.178 3.745 5.932 5.195.233.448.271.783.114.994l-1.959 2.638a.08.08 0 0 1-.064.033zm-8.808-7.274c.611 0 1.599.361 2.827 1.051 2.516 1.415 5.177 3.746 5.931 5.197.12.23.189.43.205.6l1.739-2.341c.115-.156.07-.44-.128-.823-.742-1.427-3.374-3.729-5.868-5.13-1.352-.76-2.867-1.325-3.202-.874l-1.739 2.341c.078-.014.156-.022.235-.021z",fill:"#111"}),(0,l.createElement)("path",{d:"M57.491 105.01c4.633-4.953 7.263-8.106 8.537-14.318.038-.182.213-.596.248-.783.55-.589 2.452-.13 5.15 1.387 3.94 2.213 8.086 5.842 9.262 8.105.328.63.39 1.088.225 1.373-.235.122-.456.333-.68.457-5.443 2.997-7.873 6.521-11.234 12.32.13-.223.08-.583-.177-1.079-.925-1.778-4.185-4.631-7.282-6.372-2.121-1.192-3.615-1.553-4.049-1.09z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M68.998 113.632a.073.073 0 0 1-.04-.011.08.08 0 0 1-.03-.11c.118-.204.056-.55-.178-1.001-.917-1.765-4.17-4.608-7.25-6.339-1.984-1.116-3.535-1.55-3.95-1.105a.081.081 0 0 1-.14-.053c0-.021.007-.042.022-.058l.001-.001c4.437-4.744 7.222-7.972 8.516-14.278.019-.093.069-.234.122-.384.053-.15.108-.307.125-.397a.08.08 0 0 1 .02-.04c.607-.649 2.569-.136 5.25 1.37 3.944 2.217 8.113 5.868 9.294 8.139.333.642.409 1.13.223 1.45a.075.075 0 0 1-.033.031 2.792 2.792 0 0 0-.35.234 2.84 2.84 0 0 1-.329.223c-2.614 1.439-4.58 3.009-6.375 5.091-1.664 1.93-3.08 4.185-4.828 7.199a.09.09 0 0 1-.03.03.081.081 0 0 1-.04.01zM58.1 104.735c.752 0 1.973.447 3.48 1.295 3.104 1.744 6.385 4.618 7.314 6.405.141.272.224.509.248.711 1.656-2.841 3.029-4.998 4.633-6.858 1.784-2.069 3.824-3.698 6.42-5.127.101-.057.202-.132.31-.211.112-.084.228-.17.35-.236.14-.268.057-.708-.238-1.275-1.168-2.248-5.308-5.869-9.23-8.073-2.509-1.41-4.479-1.964-5.036-1.417-.023.103-.076.253-.127.397-.049.138-.099.28-.116.363-1.274 6.21-3.979 9.449-8.268 14.047.086-.015.173-.022.26-.021z",fill:"#111"}),(0,l.createElement)("path",{d:"M80.658 101.009c1.341-.728 3.674-2.432 4.156-5.636.034-.277-.064-.65-.306-1.116-1.177-2.263-5.323-5.892-9.262-8.105-2.41-1.355-4.183-1.866-4.948-1.531-2.92 1.398-3.868 4.109-4.173 5.6l-.097.471a.592.592 0 0 1 .152-.291c.538-.576 2.394-.128 5.029 1.353 3.845 2.161 7.893 5.704 9.042 7.913.32.615.38 1.062.22 1.34a.584.584 0 0 1-.239.224l.426-.222z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M80.232 101.312a.081.081 0 0 1-.074-.114.08.08 0 0 1 .036-.038.507.507 0 0 0 .206-.193c.15-.259.074-.695-.221-1.262-1.14-2.194-5.183-5.73-9.01-7.88-2.473-1.39-4.408-1.928-4.93-1.37a.51.51 0 0 0-.13.246l-.002.007a.08.08 0 0 1-.158-.032l.002-.008.094-.463c.309-1.506 1.267-4.244 4.218-5.657.82-.36 2.65.2 5.022 1.533 3.944 2.217 8.113 5.868 9.294 8.139.245.471.351.863.316 1.163-.488 3.24-2.84 4.96-4.2 5.697v.001l-.425.222a.08.08 0 0 1-.038.009zM66.937 90.076c.927 0 2.44.556 4.311 1.608 3.85 2.164 7.921 5.729 9.074 7.946.296.569.384 1.015.262 1.326l.035-.018c1.333-.723 3.638-2.408 4.115-5.577.032-.265-.069-.624-.298-1.067-1.169-2.247-5.309-5.868-9.23-8.072-2.293-1.289-4.115-1.86-4.876-1.527-2.886 1.381-3.824 4.065-4.127 5.542l-.008.04c.171-.134.422-.2.742-.2z",fill:"#111"}),(0,l.createElement)("path",{d:"M53.27 145.49a51.677 51.677 0 0 0 1.75-2.512c6.5-9.903 9.084-20.974 13.974-29.419l.005-.007c.13-.224.08-.584-.177-1.079-.925-1.779-4.185-4.632-7.282-6.373-2.121-1.192-3.616-1.553-4.049-1.089-7.221 7.717-18.176 13.734-25.964 24.222a.896.896 0 0 0-.06.074c-10.181 13.831-1.858 20.771 2.203 23.118 6.796 3.575 13.293 1.353 19.6-6.935z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M39.842 154.146c-2.043 0-4.12-.551-6.21-1.65-2.147-1.241-5.892-4.018-6.87-8.695-.89-4.258.67-9.151 4.64-14.543.02-.026.04-.052.063-.077 4.667-6.284 10.388-10.899 15.92-15.363 3.678-2.967 7.152-5.77 10.047-8.863.482-.516 2.033-.114 4.148 1.075 3.103 1.744 6.384 4.617 7.313 6.405.266.51.325.899.176 1.157-2.127 3.671-3.803 7.804-5.578 12.18-2.322 5.724-4.723 11.643-8.403 17.25a52.018 52.018 0 0 1-1.753 2.517c-3.139 4.124-6.387 6.797-9.655 7.943a11.52 11.52 0 0 1-3.838.664zm18.252-49.253c-.25 0-.436.056-.544.172-2.902 3.102-6.38 5.908-10.063 8.879-5.526 4.458-11.24 9.067-15.895 15.337l-.005.007a.776.776 0 0 0-.056.066c-3.94 5.353-5.491 10.203-4.61 14.414.965 4.615 4.668 7.361 6.79 8.586 3.369 1.773 6.706 2.102 9.916.976 3.237-1.136 6.46-3.791 9.58-7.889a51.437 51.437 0 0 0 1.746-2.508c3.671-5.594 6.07-11.505 8.388-17.222 1.777-4.381 3.456-8.519 5.583-12.193a.046.046 0 0 1 .007-.011c.116-.2.054-.546-.18-.998-.918-1.764-4.17-4.608-7.25-6.339-1.468-.824-2.698-1.277-3.407-1.277z",fill:"#111"}),(0,l.createElement)("path",{d:"M60.781 107.174c-.402-.229-1.422-.604-2.93.382 0 0-11.052 8.292-14.675 11.136-6.521 5.121-8.451 8.467-9.293 10.328-.995 2.199.723 3.532 3.474 5.227 1 .616 4.458 2.456 7.862 1.81.86-.163 2.857-1.308 5.34-4.966 2.752-4.052 10.81-20.636 10.872-20.781.573-1.342.434-2.518-.65-3.136z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M43.73 136.274c-3.06 0-5.823-1.593-6.416-1.958-2.71-1.669-4.547-3.028-3.506-5.329.528-1.167 2.135-4.718 9.318-10.358 3.581-2.812 14.565-11.054 14.676-11.137 1.498-.981 2.534-.664 3.018-.388 1.057.602 1.306 1.782.684 3.238-.055.129-8.112 16.72-10.879 20.794-2.95 4.345-5.009 4.927-5.392 5a8.02 8.02 0 0 1-1.503.138zm16.004-29.286c-.486 0-1.102.153-1.84.636-.106.08-11.088 8.321-14.669 11.132-7.151 5.616-8.746 9.139-9.27 10.298-.986 2.18.805 3.499 3.444 5.124.585.361 3.315 1.934 6.329 1.935.487 0 .98-.042 1.475-.135 1.027-.196 3.029-1.604 5.289-4.932 2.782-4.098 10.805-20.633 10.864-20.768.595-1.391.376-2.469-.616-3.034a2.02 2.02 0 0 0-1.006-.256z",fill:"#111"})),(0,l.createElement)("g",{clipPath:"url(#v00067mlwd)"},(0,l.createElement)("path",{d:"M39.476 58.848 34.03 66.02c1.257-1.656 1.476-4.051.347-6.477-1.809-3.885-6.388-6.374-10.228-5.56-1.441.306-2.573 1.034-3.33 2.03l5.447-7.172c.756-.996 1.888-1.724 3.33-2.03 3.839-.814 8.419 1.676 10.227 5.56 1.129 2.426.91 4.822-.347 6.477z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M34.03 66.101a.08.08 0 0 1-.072-.045.081.081 0 0 1 .008-.085c1.286-1.694 1.413-4.084.338-6.393-1.79-3.847-6.338-6.321-10.138-5.516-1.375.292-2.51.983-3.282 2a.08.08 0 0 1-.136-.007.08.08 0 0 1 .007-.09l5.446-7.172c.796-1.048 1.964-1.76 3.378-2.06 3.869-.821 8.498 1.693 10.318 5.605 1.1 2.364.968 4.817-.356 6.56l-5.443 7.167-.003.004a.082.082 0 0 1-.065.032zm-8.385-12.352c3.494 0 7.218 2.348 8.806 5.76.88 1.891.971 3.838.296 5.433l4.665-6.142c1.286-1.694 1.413-4.084.338-6.394-1.79-3.847-6.339-6.32-10.137-5.515-1.376.292-2.51.983-3.282 2l-4.668 6.145c.688-.546 1.524-.932 2.47-1.132a7.3 7.3 0 0 1 1.512-.155z",fill:"#111"}),(0,l.createElement)("path",{d:"M14.313 50.061c-.157.208-.256.46-.282.745L12.88 63.06l5.446-7.172 1.15-12.254c.026-.284.125-.537.282-.744l-5.446 7.171z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M12.88 63.14a.082.082 0 0 1-.06-.026.08.08 0 0 1-.02-.062l1.149-12.254c.027-.292.13-.564.299-.786l5.446-7.172a.08.08 0 0 1 .115-.017.083.083 0 0 1 .031.055.079.079 0 0 1-.017.06v.001c-.15.198-.242.44-.266.702l-1.15 12.255a.083.083 0 0 1-.016.041l-5.446 7.172a.08.08 0 0 1-.065.032zm6.536-19.666-5.039 6.636c-.15.198-.242.44-.266.703l-1.123 11.971 5.26-6.926 1.147-12.232c.005-.051.012-.102.021-.152z",fill:"#111"}),(0,l.createElement)("path",{d:"m19.21 57.788-5.446 7.172c-.608-.518-.945-1.242-.884-1.9l5.446-7.171c-.061.657.276 1.381.884 1.899z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M13.764 65.04a.081.081 0 0 1-.052-.019c-.627-.533-.976-1.287-.912-1.968a.08.08 0 0 1 .016-.042l5.446-7.171a.081.081 0 0 1 .145.056c-.059.63.27 1.331.856 1.83a.08.08 0 0 1 .012.111l-5.446 7.171a.08.08 0 0 1-.065.033zm-.805-1.95c-.047.6.254 1.263.793 1.751L19.1 57.8c-.515-.462-.829-1.075-.86-1.663l-5.28 6.954z",fill:"#111"}),(0,l.createElement)("path",{d:"m45.08 65.354-12.476 2.647-5.446 7.171 12.476-2.646c.382-.081.693-.276.901-.55l5.446-7.172c-.208.274-.519.47-.9.55z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M27.158 75.254a.082.082 0 0 1-.072-.045.082.082 0 0 1 .008-.085l5.446-7.172a.08.08 0 0 1 .048-.03l12.475-2.647c.358-.076.653-.256.854-.52a.082.082 0 0 1 .112-.014.081.081 0 0 1 .017.112L40.6 72.025a1.577 1.577 0 0 1-.95.581l-12.475 2.647a.079.079 0 0 1-.017.002zm5.493-7.18-5.296 6.974 12.262-2.601c.358-.076.653-.256.854-.52l5.037-6.634c-.13.064-.268.111-.41.14l-12.447 2.64z",fill:"#111"}),(0,l.createElement)("path",{d:"m30.537 67.396-5.447 7.172-11.325-9.608 5.446-7.172 11.326 9.608z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M25.09 74.649a.081.081 0 0 1-.052-.02l-11.326-9.608a.08.08 0 0 1-.012-.11l5.446-7.172a.08.08 0 0 1 .056-.031.082.082 0 0 1 .061.018l11.326 9.608a.081.081 0 0 1 .012.111l-5.446 7.172a.081.081 0 0 1-.065.032zm-11.214-9.701 11.202 9.502 5.348-7.042-11.202-9.503-5.348 7.043z",fill:"#111"}),(0,l.createElement)("path",{d:"M46.53 49.906c.61.515.946 1.239.883 1.9l-1.147 12.253c-.064.658-.514 1.153-1.186 1.295l-12.476 2.647c-.67.142-1.46-.09-2.067-.605L19.21 57.788c-.61-.518-.946-1.242-.884-1.9l1.15-12.254c.06-.66.514-1.153 1.183-1.295l12.476-2.646c.671-.142 1.459.087 2.07.604l11.323 9.609zM36.142 60.88c3.84-.815 5.489-4.623 3.68-8.508-1.808-3.885-6.388-6.375-10.228-5.56-3.837.814-5.485 4.624-3.676 8.51 1.808 3.884 6.387 6.372 10.224 5.558z",fill:"#fff"}),(0,l.createElement)("path",{d:"M32.203 68.123c-.587 0-1.216-.238-1.72-.665L19.159 57.85c-.627-.533-.976-1.288-.912-1.969l1.15-12.254c.063-.693.541-1.217 1.247-1.367l12.476-2.646c.693-.147 1.513.091 2.14.622l11.323 9.608c.628.53.977 1.285.912 1.97l-1.148 12.253c-.067.694-.546 1.218-1.25 1.367L32.622 68.08a2.014 2.014 0 0 1-.418.043zm1.336-28.39c-.132 0-.261.013-.386.04l-12.476 2.646c-.634.134-1.063.603-1.12 1.223l-1.15 12.254c-.059.63.27 1.331.856 1.83l11.326 9.608c.588.5 1.354.724 1.998.588l12.476-2.647c.632-.134 1.061-.603 1.122-1.223l1.147-12.254c.06-.632-.267-1.334-.855-1.83l-11.324-9.609c-.475-.402-1.065-.626-1.614-.626zm1.109 21.382c-3.492 0-7.215-2.349-8.803-5.76-.927-1.992-.983-4.085-.153-5.743.741-1.482 2.122-2.505 3.886-2.88 3.87-.82 8.498 1.694 10.319 5.606.927 1.991.983 4.084.154 5.74-.743 1.483-2.124 2.506-3.89 2.881a7.288 7.288 0 0 1-1.513.155zm-3.552-14.376c-.502 0-.999.05-1.484.152-1.715.364-3.056 1.356-3.775 2.794-.808 1.613-.751 3.655.155 5.602 1.562 3.355 5.221 5.666 8.652 5.666.501 0 .998-.05 1.483-.152 1.717-.364 3.059-1.357 3.778-2.795.807-1.612.75-3.653-.156-5.6-1.562-3.356-5.222-5.667-8.653-5.667z",fill:"#111"}),(0,l.createElement)("path",{d:"m32.604 68-5.447 7.172c-.669.142-1.46-.09-2.067-.605l5.446-7.171c.608.515 1.398.746 2.068.604z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M26.757 75.294c-.587 0-1.216-.238-1.72-.665a.08.08 0 0 1-.012-.111l5.446-7.171a.08.08 0 0 1 .089-.029.08.08 0 0 1 .029.016c.588.499 1.354.724 1.998.587a.081.081 0 0 1 .081.128l-5.446 7.172a.081.081 0 0 1-.048.03 2.013 2.013 0 0 1-.417.043zm-1.555-.74c.57.458 1.293.664 1.91.545l5.306-6.987c-.621.064-1.313-.157-1.868-.6l-5.348 7.042z",fill:"#111"})),(0,l.createElement)("g",{clipPath:"url(#ugd2kyi3he)"},(0,l.createElement)("path",{d:"m173.928 92.554 1.468 4.81c-.379-1.242-1.22-2.353-2.48-3.106-2.914-1.742-6.967-.911-9.056 1.855-1.185 1.57-1.482 3.426-.985 5.056l-1.468-4.81c-.497-1.63-.199-3.486.986-5.056 2.089-2.767 6.142-3.598 9.055-1.856 1.261.754 2.101 1.865 2.48 3.107z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M162.875 101.254a.087.087 0 0 1-.051-.017.083.083 0 0 1-.03-.043l-1.468-4.81c-.525-1.724-.161-3.595.999-5.132 2.111-2.795 6.223-3.637 9.167-1.877 1.226.733 2.12 1.853 2.517 3.155l1.468 4.81c.003.011.004.022.003.033a.072.072 0 0 1-.01.032.076.076 0 0 1-.021.025.085.085 0 0 1-.119-.012.103.103 0 0 1-.016-.028c-.384-1.262-1.252-2.348-2.442-3.06-2.872-1.717-6.884-.894-8.944 1.834-1.128 1.494-1.482 3.31-.972 4.981a.085.085 0 0 1 .002.039.082.082 0 0 1-.045.061.085.085 0 0 1-.038.009zm5.192-12.631c-2.128 0-4.275.967-5.606 2.73-1.128 1.495-1.482 3.31-.973 4.981l1.076 3.525c-.06-1.318.363-2.65 1.229-3.796 2.11-2.796 6.222-3.638 9.166-1.878a5.745 5.745 0 0 1 1.967 1.932l-1.079-3.538c-.385-1.261-1.252-2.348-2.442-3.06a6.491 6.491 0 0 0-3.338-.896z",fill:"#111"}),(0,l.createElement)("path",{d:"m181.436 93.799-1.467-4.81c.055.181.075.375.054.573l-1.146 10.614 1.467 4.81 1.146-10.613a1.43 1.43 0 0 0-.054-.574z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M180.345 105.071a.082.082 0 0 1-.05-.017.079.079 0 0 1-.031-.043l-1.467-4.81c-.004-.011-.005-.023-.004-.034l1.146-10.613c.02-.185.003-.366-.05-.54a.081.081 0 0 1 .008-.063.084.084 0 0 1 .112-.034c.02.01.035.026.042.047l1.467 4.81c.06.197.08.404.057.608l-1.146 10.614a.088.088 0 0 1-.027.054.09.09 0 0 1-.057.021zm-1.381-4.903 1.341 4.398 1.102-10.202a1.371 1.371 0 0 0-.051-.54l-1.261-4.135-1.131 10.479z",fill:"#111"}),(0,l.createElement)("path",{d:"m178.878 100.176 1.467 4.81c-.06.571-.45 1.088-1.021 1.353l-1.468-4.811c.571-.264.962-.782 1.022-1.352z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M179.324 106.424a.085.085 0 0 1-.051-.017.09.09 0 0 1-.031-.043l-1.467-4.811a.086.086 0 0 1 .004-.059.088.088 0 0 1 .041-.042c.544-.252.917-.744.973-1.285a.085.085 0 0 1 .076-.075.087.087 0 0 1 .09.06l1.467 4.81c.003.011.004.022.003.034-.063.599-.473 1.143-1.07 1.42a.085.085 0 0 1-.035.008zm-1.366-4.851 1.417 4.646c.491-.259.825-.72.884-1.224l-1.368-4.482c-.144.443-.48.83-.933 1.06z",fill:"#111"}),(0,l.createElement)("path",{d:"m165.502 106.423-9.466-5.659a1.49 1.49 0 0 1-.67-.84l1.468 4.81c.104.343.338.642.67.84l9.466 5.659-1.468-4.81z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M166.969 111.318a.083.083 0 0 1-.043-.013l-9.466-5.658a1.578 1.578 0 0 1-.708-.888l-1.467-4.81v-.001a.085.085 0 0 1 .006-.064.087.087 0 0 1 .05-.041.086.086 0 0 1 .065.006c.02.01.035.028.041.05.1.326.324.608.632.792l9.467 5.659a.084.084 0 0 1 .037.048l1.467 4.81a.086.086 0 0 1 .003.039.089.089 0 0 1-.015.036.093.093 0 0 1-.03.026.101.101 0 0 1-.039.009zm-11.319-10.753 1.265 4.144c.099.327.324.608.632.792l9.277 5.547-1.394-4.57-9.438-5.642a1.686 1.686 0 0 1-.342-.271z",fill:"#111"}),(0,l.createElement)("path",{d:"m177.856 101.528 1.468 4.811-10.609 4.956-1.467-4.81 10.608-4.957z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M168.715 111.38a.082.082 0 0 1-.05-.017.079.079 0 0 1-.031-.043l-1.467-4.81a.085.085 0 0 1 .003-.059.088.088 0 0 1 .042-.043l10.608-4.956a.085.085 0 0 1 .035-.008c.013 0 .025.003.036.008a.086.086 0 0 1 .029.021c.008.009.014.02.017.031l1.468 4.811a.086.086 0 0 1-.004.059.088.088 0 0 1-.041.042l-10.609 4.956a.086.086 0 0 1-.036.008zm-1.365-4.85 1.418 4.648 10.453-4.884-1.417-4.647-10.454 4.883z",fill:"#111"}),(0,l.createElement)("path",{d:"M178.878 100.176c-.06.571-.45 1.088-1.021 1.353l-10.609 4.956c-.572.267-1.236.243-1.746-.062l-9.466-5.659c-.508-.304-.785-.843-.723-1.414l1.144-10.614c.062-.57.452-1.087 1.022-1.353l10.61-4.955c.57-.267 1.236-.243 1.744.061l9.466 5.66c.509.304.785.842.724 1.414l-1.145 10.613zm-14.992-.711c2.914 1.741 6.969.912 9.057-1.855 2.089-2.767 1.419-6.42-1.494-8.163-2.914-1.741-6.967-.91-9.056 1.856-2.088 2.767-1.42 6.42 1.493 8.162z",fill:"#fff"}),(0,l.createElement)("path",{d:"M166.42 106.753c-.341 0-.675-.087-.961-.258l-9.466-5.659c-.537-.321-.83-.894-.764-1.495l1.144-10.614c.064-.598.474-1.142 1.07-1.42l10.61-4.956c.592-.278 1.291-.253 1.823.066l9.466 5.659c.536.32.83.893.766 1.496l-1.146 10.613c-.063.599-.473 1.143-1.07 1.42l-10.608 4.957c-.271.125-.565.19-.864.191zm2.496-24.425c-.268 0-.54.058-.791.176l-10.611 4.956c-.542.253-.914.745-.972 1.285l-1.145 10.614a1.372 1.372 0 0 0 .683 1.332l9.466 5.659c.484.289 1.122.312 1.666.058l10.608-4.956c.544-.252.917-.744.973-1.285l1.146-10.613a1.377 1.377 0 0 0-.684-1.334l-9.466-5.659a1.701 1.701 0 0 0-.873-.233zm-1.648 18.129a6.656 6.656 0 0 1-3.425-.92c-1.408-.842-2.35-2.152-2.65-3.689-.31-1.585.092-3.218 1.132-4.596 2.111-2.795 6.223-3.637 9.167-1.877 1.409.842 2.35 2.153 2.651 3.69.31 1.586-.092 3.218-1.132 4.596-1.363 1.806-3.563 2.796-5.743 2.796zm-3.338-1.065c2.873 1.717 6.886.895 8.946-1.833 1.011-1.339 1.402-2.923 1.101-4.461-.292-1.49-1.205-2.76-2.572-3.578-2.872-1.717-6.884-.894-8.944 1.834-1.011 1.34-1.403 2.924-1.102 4.462.292 1.49 1.204 2.76 2.571 3.576z",fill:"#111"}),(0,l.createElement)("path",{d:"m167.248 106.485 1.467 4.811c-.572.266-1.236.242-1.746-.063l-1.467-4.81c.51.305 1.174.328 1.746.062z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M167.887 111.563c-.341 0-.675-.087-.961-.258a.077.077 0 0 1-.038-.047l-1.467-4.811a.085.085 0 0 1 0-.05.08.08 0 0 1 .029-.041.078.078 0 0 1 .047-.018.08.08 0 0 1 .048.012c.484.289 1.122.311 1.667.058a.085.085 0 0 1 .099.02c.008.009.014.02.018.032l1.467 4.81a.08.08 0 0 1-.004.059.086.086 0 0 1-.041.043c-.271.125-.565.19-.864.191zm-.846-.386c.46.262 1.053.288 1.571.071l-1.418-4.648a1.996 1.996 0 0 1-1.553-.01l1.4 4.587z",fill:"#111"})),(0,l.createElement)("g",{clipPath:"url(#zbk29rjytf)"},(0,l.createElement)("path",{d:"m137.328 72.07-1.54-3.876c-.047-.12-.051-.314-.015-.55l-5.877-2.364c-.036.236-.032.43.016.55l1.539 3.877c.024.062.06.102.103.12l5.877 2.363c-.044-.018-.079-.057-.103-.12z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M137.431 72.27a.082.082 0 0 1-.03-.006l-5.877-2.364a.275.275 0 0 1-.148-.164l-1.539-3.876c-.066-.167-.047-.414-.02-.592a.068.068 0 0 1 .013-.033.086.086 0 0 1 .026-.024.08.08 0 0 1 .07-.005l5.877 2.364c.034.014.054.05.049.086-.034.223-.03.404.011.509l1.539 3.876c.011.028.03.063.059.075a.077.077 0 0 1 .049.09.075.075 0 0 1-.028.046.078.078 0 0 1-.051.018zm-7.469-6.877c-.019.177-.01.32.024.408l1.539 3.876c.011.028.03.063.059.075l5.637 2.267-1.507-3.795c-.059-.149-.051-.36-.029-.53l-5.723-2.3z",fill:"#111"}),(0,l.createElement)("path",{d:"M138.639 48.942c-.102-.04-.25.038-.419.23l-4.536 5.21a2.92 2.92 0 0 0-.362.55l5.877 2.364c.114-.218.239-.408.362-.55l4.536-5.21c.169-.192.317-.271.419-.23l-5.877-2.364z",fill:"#fff"}),(0,l.createElement)("path",{d:"M139.199 57.376a.084.084 0 0 1-.03-.006l-5.877-2.364a.083.083 0 0 1-.045-.046.092.092 0 0 1-.005-.033.088.088 0 0 1 .009-.032c.119-.226.248-.422.373-.565l4.536-5.21c.245-.28.412-.291.509-.252l5.876 2.363h.001a.082.082 0 0 1 .046.043c.004.01.006.02.006.031a.075.075 0 0 1-.023.058.098.098 0 0 1-.026.018.085.085 0 0 1-.063-.001c-.05-.02-.165.023-.329.209l-4.535 5.21a2.827 2.827 0 0 0-.352.534.084.084 0 0 1-.029.031.082.082 0 0 1-.042.012zm-5.764-2.485 5.727 2.304c.109-.2.226-.372.339-.501l4.536-5.21a1.09 1.09 0 0 1 .217-.197l-5.645-2.27c-.049-.02-.165.022-.328.208l-4.536 5.21a2.684 2.684 0 0 0-.31.456z",fill:"#111"}),(0,l.createElement)("path",{d:"M133.322 54.933a4.603 4.603 0 0 0-.277.646l-3.007 9.126a3.56 3.56 0 0 0-.142.575l5.876 2.364c.027-.173.074-.37.142-.576l3.008-9.125c.077-.226.172-.447.277-.647l-5.877-2.363z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M135.772 67.724a.084.084 0 0 1-.03-.006l-5.876-2.364a.08.08 0 0 1-.05-.086 3.66 3.66 0 0 1 .146-.588l3.007-9.126c.077-.226.171-.446.282-.659a.08.08 0 0 1 .101-.037l5.877 2.364a.08.08 0 0 1 .05.08.088.088 0 0 1-.009.031 4.461 4.461 0 0 0-.272.636l-3.007 9.124a3.567 3.567 0 0 0-.139.563.084.084 0 0 1-.027.048.081.081 0 0 1-.053.02zm-5.787-2.494 5.725 2.302c.029-.153.072-.317.128-.489l3.008-9.125c.068-.199.148-.392.242-.58l-5.728-2.304a4.704 4.704 0 0 0-.239.57l-3.007 9.126a3.783 3.783 0 0 0-.129.5z",fill:"#111"}),(0,l.createElement)("path",{d:"M139.561 56.746c-.243.279-.493.752-.654 1.24l-2.992 9.082c-.161.487-.209.916-.126 1.125l1.539 3.877c.082.208.284.164.527-.116l4.532-5.204c.244-.28.493-.754.653-1.241l2.993-9.081c.161-.49.209-.919.126-1.126l-1.539-3.876c-.083-.21-.283-.165-.527.115l-4.532 5.205z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M137.489 72.28a.248.248 0 0 1-.041-.004c-.061-.01-.144-.05-.195-.177l-1.539-3.876c-.09-.229-.043-.67.125-1.18l2.992-9.081c.163-.496.419-.982.669-1.269l4.532-5.204c.176-.203.334-.294.468-.27.061.01.144.05.195.177l1.538 3.877c.092.226.045.667-.124 1.18l-2.993 9.08c-.163.497-.42.983-.669 1.27l-4.531 5.204c-.158.181-.301.273-.427.273zm2.133-15.482c-.237.272-.482.737-.638 1.214l-2.993 9.08c-.152.462-.202.883-.128 1.072l1.539 3.876c.019.047.043.073.073.078.055.01.168-.042.319-.216l4.532-5.205c.236-.271.481-.736.638-1.213l2.992-9.081c.153-.464.204-.884.128-1.071l-1.539-3.877c-.018-.047-.043-.074-.072-.079-.055-.009-.168.043-.32.218l-4.531 5.204z",fill:"#111"}),(0,l.createElement)("path",{d:"M161.914 75.742c1.099-.539 2.66-3.2 3.488-5.943.828-2.744.608-4.53-.491-3.991-1.098.538-2.659 3.198-3.486 5.941-.828 2.744-.609 4.532.489 3.993z",fill:"#0E38A3"}),(0,l.createElement)("path",{d:"M161.558 75.918a.536.536 0 0 1-.354-.128c-.532-.45-.476-2.007.144-4.064.832-2.756 2.415-5.444 3.529-5.99.375-.184.613-.088.747.025.531.45.476 2.005-.145 4.061-.831 2.758-2.415 5.446-3.529 5.992a.888.888 0 0 1-.392.104zm3.71-10.125a.743.743 0 0 0-.321.087c-1.079.53-2.624 3.172-3.445 5.892-.486 1.61-.734 3.44-.195 3.896.141.119.334.12.573.003 1.079-.53 2.625-3.174 3.446-5.895.485-1.609.734-3.437.194-3.893a.378.378 0 0 0-.252-.09z",fill:"#111"}),(0,l.createElement)("path",{d:"M142.983 56.71c-.144-.057-.323-.04-.534.063-.283.14-.597.42-.921.805-.42.5-.856 1.177-1.266 1.955a18.527 18.527 0 0 0-1.299 3.182 13.24 13.24 0 0 0-.398 1.669c-.218 1.32-.089 2.208.354 2.386l22.462 9.035c-.443-.178-.572-1.066-.354-2.387.082-.5.214-1.06.398-1.669a18.527 18.527 0 0 1 1.299-3.181c.41-.779.846-1.456 1.266-1.955.324-.386.638-.666.921-.805.211-.103.39-.121.535-.063l-22.463-9.034z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M161.381 75.885a.075.075 0 0 1-.03-.006l-22.463-9.034c-.483-.195-.63-1.097-.402-2.474.085-.516.219-1.08.4-1.68a18.428 18.428 0 0 1 1.306-3.195c.414-.789.855-1.47 1.274-1.969.342-.407.661-.685.948-.825.228-.112.429-.134.6-.066l22.462 9.035c.02.008.035.023.044.043a.081.081 0 0 1-.043.105.08.08 0 0 1-.061 0c-.126-.05-.284-.03-.469.06-.267.132-.568.396-.896.785-.412.49-.846 1.162-1.255 1.941a18.23 18.23 0 0 0-1.294 3.167c-.179.592-.312 1.15-.396 1.66-.208 1.257-.091 2.137.303 2.298h.002a.08.08 0 0 1 .021.137.083.083 0 0 1-.051.018zm-18.574-19.127a.743.743 0 0 0-.322.087c-.267.131-.569.395-.896.785-.412.49-.846 1.161-1.255 1.94a18.358 18.358 0 0 0-1.294 3.168c-.179.592-.312 1.15-.396 1.659-.208 1.259-.091 2.14.304 2.3l22.091 8.884c-.223-.406-.259-1.162-.091-2.176.085-.515.219-1.08.4-1.679a18.535 18.535 0 0 1 1.306-3.195c.414-.79.855-1.47 1.274-1.97.342-.407.661-.684.948-.825.057-.028.112-.05.166-.067l-22.088-8.884a.391.391 0 0 0-.147-.027z",fill:"#111"}),(0,l.createElement)("path",{d:"M141.629 67.861c-2.05-1.124 1.521-10.028 3.148-10.354a.38.38 0 0 1 .22.014l-1.408-.566c-1.76-.393-4.906 8.151-3.699 10.046a.79.79 0 0 0 .331.294l1.408.566z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M141.63 67.94a.075.075 0 0 1-.03-.005l-1.409-.567a.867.867 0 0 1-.369-.325c-.971-1.525.766-6.947 2.288-9.11.562-.798 1.065-1.153 1.496-1.057a.071.071 0 0 1 .013.004l1.408.566a.08.08 0 0 1 .042.043.079.079 0 0 1-.041.104.082.082 0 0 1-.061.001.297.297 0 0 0-.174-.009c-1.085.217-3.142 4.532-3.609 7.568-.153.998-.194 2.266.484 2.637a.078.078 0 0 1 .035.039.077.077 0 0 1 .004.051.077.077 0 0 1-.028.044.081.081 0 0 1-.049.016zm1.838-10.92c-.341 0-.762.345-1.227 1.005-.763 1.085-1.578 2.967-2.075 4.795-.532 1.96-.61 3.506-.208 4.137a.71.71 0 0 0 .293.263l1.004.403c-.33-.472-.41-1.32-.229-2.495.221-1.437.816-3.264 1.592-4.888.36-.753 1.253-2.471 2.024-2.776l-1.077-.434a.484.484 0 0 0-.097-.01z",fill:"#111"}),(0,l.createElement)("path",{d:"M144.445 68.993c-2.051-1.124 1.521-10.027 3.148-10.353a.379.379 0 0 1 .22.014l-1.408-.567c-1.76-.393-4.906 8.152-3.698 10.047a.787.787 0 0 0 .33.293l1.408.566z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M144.445 69.073a.078.078 0 0 1-.03-.006l-1.408-.566a.866.866 0 0 1-.368-.325c-.972-1.526.765-6.947 2.287-9.11.562-.798 1.066-1.154 1.497-1.058a.07.07 0 0 1 .012.004l1.408.566a.08.08 0 0 1 .043.104.08.08 0 0 1-.042.044.08.08 0 0 1-.061 0 .298.298 0 0 0-.174-.008c-1.085.217-3.143 4.53-3.61 7.567-.153.998-.194 2.266.484 2.638a.078.078 0 0 1 .035.038.076.076 0 0 1 .004.052.077.077 0 0 1-.028.043.082.082 0 0 1-.049.017zm1.839-10.92c-.34 0-.761.345-1.226 1.005-.764 1.085-1.578 2.967-2.075 4.795-.533 1.96-.611 3.506-.209 4.137a.717.717 0 0 0 .293.262l1.003.404c-.33-.472-.41-1.32-.229-2.495.221-1.438.816-3.265 1.593-4.888.36-.753 1.252-2.472 2.024-2.777l-1.076-.433a.48.48 0 0 0-.098-.01z",fill:"#111"}),(0,l.createElement)("path",{d:"M147.261 70.126c-2.051-1.125 1.522-10.028 3.149-10.354a.376.376 0 0 1 .219.014l-1.408-.567c-1.76-.393-4.905 8.152-3.698 10.047a.79.79 0 0 0 .331.293l1.407.567z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M147.261 70.206a.082.082 0 0 1-.03-.006l-1.407-.566a.868.868 0 0 1-.369-.325c-.972-1.525.765-6.947 2.287-9.11.562-.798 1.066-1.154 1.497-1.058a.08.08 0 0 1 .012.004l1.408.566h.001a.08.08 0 0 1 .043.043.08.08 0 0 1-.042.105.08.08 0 0 1-.061.001.3.3 0 0 0-.174-.01c-1.085.218-3.143 4.532-3.61 7.568-.153.998-.194 2.266.484 2.638a.082.082 0 0 1 .035.038.083.083 0 0 1 .004.052.074.074 0 0 1-.029.043.08.08 0 0 1-.049.017zm1.839-10.92c-.34 0-.761.344-1.226 1.005-.764 1.085-1.578 2.967-2.075 4.795-.533 1.96-.61 3.506-.208 4.137a.71.71 0 0 0 .293.263l1.002.403c-.329-.472-.409-1.32-.228-2.495.22-1.438.816-3.265 1.592-4.888.361-.753 1.253-2.472 2.025-2.777l-1.078-.433a.477.477 0 0 0-.097-.01z",fill:"#111"}),(0,l.createElement)("path",{d:"M150.078 71.259c-2.051-1.124 1.521-10.028 3.148-10.354a.376.376 0 0 1 .219.013l-1.408-.566c-1.76-.393-4.906 8.152-3.699 10.047a.79.79 0 0 0 .331.293l1.409.567z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M150.078 71.339a.082.082 0 0 1-.03-.006l-1.409-.567a.86.86 0 0 1-.368-.324c-.972-1.526.765-6.947 2.287-9.11.562-.798 1.066-1.154 1.497-1.058a.07.07 0 0 1 .012.004l1.408.566c.02.009.035.024.043.043.008.02.008.042.001.061a.081.081 0 0 1-.104.045.298.298 0 0 0-.174-.01c-1.085.218-3.142 4.532-3.608 7.568-.154.998-.194 2.266.483 2.638a.078.078 0 0 1 .035.038.076.076 0 0 1 .004.052.08.08 0 0 1-.077.06zm1.838-10.92c-.34 0-.761.344-1.227 1.005-.763 1.085-1.578 2.967-2.074 4.794-.533 1.96-.611 3.507-.209 4.138a.717.717 0 0 0 .293.262l1.004.404c-.33-.472-.409-1.32-.229-2.495.221-1.437.816-3.265 1.592-4.888.361-.753 1.253-2.472 2.025-2.777l-1.078-.433a.463.463 0 0 0-.097-.01z",fill:"#111"}),(0,l.createElement)("path",{d:"M152.894 72.39c-2.051-1.123 1.521-10.027 3.148-10.353a.38.38 0 0 1 .22.014l-1.408-.566c-1.76-.393-4.905 8.151-3.698 10.046a.793.793 0 0 0 .33.294l1.408.566z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M152.893 72.471a.082.082 0 0 1-.03-.006l-1.408-.566a.865.865 0 0 1-.368-.324c-.972-1.526.765-6.948 2.288-9.11.562-.799 1.066-1.154 1.496-1.058a.08.08 0 0 1 .013.004l1.407.566a.08.08 0 0 1 .043.104.08.08 0 0 1-.042.043.08.08 0 0 1-.061.001.298.298 0 0 0-.174-.01c-1.085.218-3.143 4.532-3.609 7.568-.154.999-.194 2.266.483 2.638a.078.078 0 0 1 .035.038.076.076 0 0 1 .004.052.08.08 0 0 1-.077.06zm1.839-10.92c-.34 0-.761.345-1.226 1.006-.764 1.084-1.578 2.966-2.075 4.794-.533 1.96-.61 3.507-.209 4.138a.723.723 0 0 0 .293.262l1.003.403c-.33-.472-.409-1.32-.229-2.495.221-1.437.817-3.264 1.593-4.888.36-.753 1.253-2.471 2.024-2.776l-1.076-.433a.48.48 0 0 0-.098-.01z",fill:"#111"}),(0,l.createElement)("path",{d:"M155.709 73.524c-2.05-1.124 1.522-10.028 3.149-10.354a.379.379 0 0 1 .22.014l-1.409-.566c-1.76-.393-4.905 8.151-3.698 10.047a.79.79 0 0 0 .331.293l1.407.566z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M155.709 73.603a.082.082 0 0 1-.03-.005l-1.407-.567a.86.86 0 0 1-.368-.324c-.972-1.526.764-6.947 2.287-9.11.561-.799 1.065-1.154 1.496-1.058a.08.08 0 0 1 .012.004l1.409.566c.01.004.019.01.026.017a.073.073 0 0 1 .018.026.08.08 0 0 1 0 .061.072.072 0 0 1-.017.026.074.074 0 0 1-.026.018.08.08 0 0 1-.061 0 .3.3 0 0 0-.174-.009c-1.085.217-3.143 4.531-3.61 7.567-.153.999-.194 2.267.484 2.638a.078.078 0 0 1 .035.039.083.083 0 0 1 .004.051.077.077 0 0 1-.028.044.083.083 0 0 1-.05.016zm1.839-10.92c-.34 0-.761.345-1.226 1.006-.764 1.085-1.578 2.967-2.075 4.794-.532 1.96-.61 3.507-.208 4.138a.718.718 0 0 0 .293.262l1.003.403c-.33-.472-.41-1.32-.229-2.495.221-1.437.816-3.264 1.593-4.887.36-.754 1.252-2.472 2.024-2.777l-1.077-.433a.48.48 0 0 0-.098-.01z",fill:"#111"}),(0,l.createElement)("path",{d:"M158.526 74.657c-2.051-1.124 1.521-10.028 3.148-10.354a.379.379 0 0 1 .22.014l-1.408-.567c-1.761-.392-4.906 8.152-3.698 10.047a.794.794 0 0 0 .33.294l1.408.566z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M158.526 74.736a.078.078 0 0 1-.03-.006l-1.408-.566a.864.864 0 0 1-.368-.324c-.972-1.526.765-6.948 2.287-9.11.562-.799 1.065-1.154 1.496-1.059a.071.071 0 0 1 .013.004l1.408.567a.08.08 0 0 1 .043.104.08.08 0 0 1-.103.045.298.298 0 0 0-.174-.01c-1.085.217-3.143 4.531-3.609 7.567-.154.999-.194 2.266.483 2.638a.085.085 0 0 1 .036.038.084.084 0 0 1 .004.052.085.085 0 0 1-.029.043.079.079 0 0 1-.049.017zm1.839-10.92c-.341 0-.762.345-1.227 1.005-.763 1.085-1.578 2.967-2.074 4.795-.533 1.96-.611 3.507-.209 4.138a.722.722 0 0 0 .293.262l1.003.403c-.33-.472-.409-1.32-.229-2.495.221-1.437.817-3.264 1.593-4.888.36-.753 1.253-2.471 2.024-2.776l-1.077-.434a.477.477 0 0 0-.097-.01z",fill:"#111"}),(0,l.createElement)("path",{d:"M161.342 75.789c-2.05-1.124 1.521-10.028 3.148-10.354a.38.38 0 0 1 .22.014l-1.408-.567c-1.761-.392-4.906 8.152-3.699 10.047a.793.793 0 0 0 .33.293l1.409.567z",fill:"#BDDFFF"}),(0,l.createElement)("path",{d:"M161.342 75.87a.082.082 0 0 1-.03-.007l-1.408-.566a.868.868 0 0 1-.369-.325c-.972-1.526.766-6.947 2.288-9.11.562-.798 1.065-1.154 1.496-1.058l.013.004 1.408.566a.08.08 0 0 1 .043.104.08.08 0 0 1-.042.044.08.08 0 0 1-.061.001.297.297 0 0 0-.174-.01c-1.085.218-3.142 4.532-3.609 7.568-.153.999-.194 2.266.484 2.638a.078.078 0 0 1 .035.038.077.077 0 0 1 .004.052.077.077 0 0 1-.028.043.082.082 0 0 1-.05.017zm1.839-10.92c-.341 0-.762.343-1.227 1.004-.763 1.085-1.578 2.967-2.075 4.795-.532 1.96-.61 3.506-.208 4.137a.711.711 0 0 0 .293.262l1.004.404c-.33-.472-.41-1.32-.229-2.495.221-1.437.816-3.264 1.592-4.888.36-.753 1.252-2.471 2.024-2.776l-1.077-.434a.47.47 0 0 0-.097-.01z",fill:"#111"})),(0,l.createElement)("defs",null,(0,l.createElement)("clipPath",{id:"cuabit6eza"},(0,l.createElement)("path",{fill:"#fff",transform:"translate(33.852 -5.748)",d:"M0 0h137.358v162.24H0z"})),(0,l.createElement)("clipPath",{id:"yytr1qinwc"},(0,l.createElement)("path",{fill:"#fff",transform:"translate(26.52 10.008)",d:"M0 0h110.526v144.144H0z"})),(0,l.createElement)("clipPath",{id:"v00067mlwd"},(0,l.createElement)("path",{fill:"#fff",transform:"translate(12.792 39.57)",d:"M0 0h34.71v35.724H0z"})),(0,l.createElement)("clipPath",{id:"ugd2kyi3he"},(0,l.createElement)("path",{fill:"#fff",transform:"translate(155.22 82.158)",d:"M0 0h26.364v29.406H0z"})),(0,l.createElement)("clipPath",{id:"zbk29rjytf"},(0,l.createElement)("path",{fill:"#fff",transform:"translate(129.792 48.852)",d:"M0 0h36.192v27.066H0z"})),(0,l.createElement)("linearGradient",{id:"az5zg9gayb",x1:"42.427",y1:"55.022",x2:"149.376",y2:"115.258",gradientUnits:"userSpaceOnUse"},(0,l.createElement)("stop",{stopColor:"#1145C9"}),(0,l.createElement)("stop",{offset:"1",stopColor:"#111"}))))}function sn(){const{module:e}=(0,w.useSelect)((e=>({module:e(L.MODULES_STORE_NAME).getEditedModule("malware-scheduling")})),[]),{editModule:t}=(0,w.useDispatch)(L.MODULES_STORE_NAME);return(0,l.createElement)(rn,null,(0,l.createElement)(E.ToggleControl,{label:(0,s.__)("Scheduled Site Scan","better-wp-security"),checked:"active"===e.status.selected,onChange:e=>t("malware-scheduling",{status:{selected:e?"active":"inactive"}}),__nextHasNoMarginBottom:!0}),(0,l.createElement)(C.Ex,{text:(0,s.__)("Recommended Feature","better-wp-security"),variant:"infoAccent"}))}function on({onAnswer:e}){const{installType:t}=Z();return(0,l.createElement)(en,{isWide:!0},(0,l.createElement)(tn,null,(0,l.createElement)(E.Flex,{gap:4,justify:"flex-start"},(0,l.createElement)(mt,{found:!1}),(0,l.createElement)(E.Flex,{direction:"column",gap:3},(0,l.createElement)(C.DZ,{level:3,text:(0,s.__)("Congrats, we didn’t find any vulnerabilities!","better-wp-security"),size:C.$C.HUGE,weight:C.uL.NORMAL}),(0,l.createElement)(C.EY,{text:"free"===t?(0,s.__)("Pro Tip: Kadence Security can scan your site twice a day to ensure it stays free of any vulnerabilities, just enable the feature below.","better-wp-security"):(0,s.__)("Pro Tip: Kadence Security will scan your site twice a day to ensure it stays free of any vulnerabilities.","better-wp-security"),variant:C.J3.MUTED,weight:C.uL.HEAVY}))),"free"===t&&(0,l.createElement)(sn,null)),(0,l.createElement)(E.Flex,{direction:"column",gap:3},(0,l.createElement)(C.DZ,{level:4,text:(0,s.__)("Build on your success by setting up Kadence Security now","better-wp-security"),size:C.$C.EXTRA_LARGE,weight:C.uL.NORMAL}),(0,l.createElement)(C.EY,{text:(0,s.__)("Great job on keeping all your plugins & themes up to date. Let’s help you take the next step.","better-wp-security"),variant:C.J3.MUTED,weight:C.uL.HEAVY})),(0,l.createElement)(Qr,{position:"right"},(0,l.createElement)(ln,null)),(0,l.createElement)(E.Flex,{direction:"column",gap:2},(0,l.createElement)(C.DZ,{level:5,text:(0,s.__)("What’s Next?","better-wp-security"),size:C.$C.SUBTITLE_SMALL}),(0,l.createElement)(C.EY,{as:"p",text:(0,s.__)("We guide you through our main security features to get you started on the right foot. We cover features related to security topics like Two-Factor Authentication, Password Policy, Firewall features, and more.","better-wp-security")})),(0,l.createElement)(C.$n,{text:(0,s.__)("Continue Setup","better-wp-security"),variant:"primary",onClick:()=>e(0)}))}const cn=r.p+"f7a22e8c00a673363899.png";function dn({issues:e,onAnswer:t}){const{show:r,remaining:n}=J(e,2),{installType:a}=Z();return(0,l.createElement)(en,null,(0,l.createElement)(tn,null,(0,l.createElement)(E.Flex,{gap:4,justify:"flex-start"},(0,l.createElement)(mt,{found:!0}),(0,l.createElement)(E.Flex,{direction:"column",gap:3},(0,l.createElement)(C.DZ,{level:3,text:(0,s.__)("We found some issues","better-wp-security"),size:C.$C.HUGE,weight:C.uL.NORMAL}),(0,l.createElement)(C.EY,{text:(0,s.__)("Exploiting vulnerable software is one of the main tactics used by bad actors to hack your site.","better-wp-security"),variant:C.J3.MUTED,weight:C.uL.HEAVY}))),r.map((e=>(0,l.createElement)(yt,(0,it.A)({key:e.software.slug+e.software.type.slug},e)))),n>0&&(0,l.createElement)(C.EY,{text:(0,s.sprintf)((0,s._n)("We also found %d additional vulnerability on your site.","We also found %d additional vulnerabilities on your site.",n,"better-wp-security"),n),variant:C.J3.MUTED}),(0,l.createElement)(E.Flex,{direction:"column",gap:3},(0,l.createElement)(C.EY,{text:"free"===a?(0,s.__)("Pro Tip: Kadence Security can scan your site twice a day to ensure it stays free of any vulnerabilities, just enable the feature below.","better-wp-security"):(0,s.__)("Pro Tip: Kadence Security will scan your site twice a day to ensure it stays free of any vulnerabilities.","better-wp-security"),variant:C.J3.MUTED,weight:C.uL.HEAVY}),"free"===a&&(0,l.createElement)(sn,null))),(0,l.createElement)(E.Flex,{direction:"column",gap:3},(0,l.createElement)(C.DZ,{level:4,text:(0,s.__)("Here’s what’s next","better-wp-security"),size:C.$C.EXTRA_LARGE,weight:C.uL.NORMAL}),(0,l.createElement)(C.EY,{text:(0,s.__)("We will revisit and resolve your existing vulnerabilities once you’ve set up Kadence Security.","better-wp-security"),variant:C.J3.MUTED,weight:C.uL.HEAVY})),(0,l.createElement)(Qr,{position:"right"},(0,l.createElement)("img",{src:cn,alt:(0,s.__)("Preview of the Vulnerabilities page in Kadence Security.","better-wp-security"),width:345,height:120})),(0,l.createElement)(E.Flex,{direction:"column",gap:2},(0,l.createElement)(C.DZ,{level:5,text:(0,s.__)("Why not resolve the vulnerabilities now?","better-wp-security"),size:C.$C.SUBTITLE_SMALL}),(0,l.createElement)(C.EY,{as:"p",text:(0,s.__)("Manually resolving vulnerabilities requires some poking around. It’s best to have a configured security environment before jumping into manually resolving vulnerabilities.","better-wp-security")})),(0,l.createElement)(C.$n,{text:(0,s.__)("Continue Setup","better-wp-security"),variant:"primary",onClick:()=>t(e.length)}),(0,l.createElement)(Xr,null,(0,l.createElement)(C.EY,{text:(0,s.__)("Powered by","better-wp-security"),variant:C.J3.MUTED,size:C.$C.SMALL}),(0,l.createElement)(z.Tk,{width:171,alt:(0,s.__)("Patchstack","better-wp-security")})))}function un({question:e,onAnswer:t}){const{queried:r,vulnerabilities:n}=(0,w.useSelect)((e=>({queried:e(L.vulnerabilitiesStore).hasQueried("onboarding"),vulnerabilities:e(L.vulnerabilitiesStore).getQueryResults("onboarding")})),[]);return r?n.length?(0,l.createElement)(dn,{issues:n,onAnswer:t}):(0,l.createElement)(on,{onAnswer:t}):(0,l.createElement)(an,{question:e,onAnswer:t})}var mn=r(54636),pn=r(48731),gn=r(25084),hn=r(4818),fn=r(48851),En=r(42700);const yn=(0,m.A)(C.ui,{target:"e1l4k62w7"})({name:"1b2sipx",styles:"display:flex;flex-direction:column;gap:4rem;max-width:95ch;width:100%"}),Cn=(0,m.A)(C.$n,{target:"e1l4k62w6"})({name:"1k0ls32",styles:"justify-content:center!important"}),vn=(0,m.A)("div",{target:"e1l4k62w5"})({name:"680leu",styles:"display:flex;gap:2rem;width:100%;flex-wrap:wrap"}),bn=(0,m.A)("figure",{target:"e1l4k62w4"})({name:"1wwjcs6",styles:"background:black;background-image:radial-gradient(circle at 56% -151%, #3672ff, #5f95ed 43%, #081e52 66%, #071943 75%, rgba(35, 35, 35, 0) 95%);flex:2;padding:20px 0 90px 0;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;&>svg{fill:white;opacity:0.75;margin-bottom:20px;}"}),_n=(0,m.A)("div",{target:"e1l4k62w3"})({name:"1tg5c6i",styles:"flex:3;display:flex;flex-direction:column;gap:2rem"}),xn=(0,m.A)(C.ui,{shouldForwardProp:e=>"compact"!==e,target:"e1l4k62w2"})("border:1px solid ",(({theme:e})=>e.colors.border.muted),";border-radius:0.25rem;padding:",(({compact:e})=>e?"1rem 1.5rem":"1.5rem"),";"),wn=(0,m.A)("figure",{target:"e1l4k62w1"})("display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;margin:0;flex-shrink:0;border-radius:50%;background:",(({theme:e})=>e.colors.text.dark),";svg{fill:",(({theme:e})=>e.colors.text.white),";}"),Ln=(0,m.A)(E.Flex,{target:"e1l4k62w0"})({name:"1gok8e8",styles:"margin-bottom:0.5rem"}),Sn=(0,st.AH)({name:"yhb5pn",styles:"text-wrap:balance;text-wrap:pretty"}),An=(0,st.AH)({name:"xduje5",styles:"text-wrap:pretty"});function On({headline:e,reason:t,icon:r,feature:n,onContinue:a,upsell:i,isAnswering:o,renderGraphic:c,children:d}){const{installType:u}=Z();return(0,l.createElement)(yn,null,(0,l.createElement)(vn,null,c&&(0,l.createElement)(bn,{inert:"true"},(0,l.createElement)(E.Icon,{icon:ht.A,size:84}),c()),(0,l.createElement)(_n,null,(0,l.createElement)(xn,{as:E.Flex,direction:"column",gap:3,expanded:!1},(0,l.createElement)(C.DZ,{level:3,text:e,size:C.$C.EXTRA_LARGE,variant:C.J3.DARK,weight:C.uL.NORMAL,className:Sn}),(0,l.createElement)(E.Flex,{direction:"column",gap:1,expanded:!1},(0,l.createElement)(C.DZ,{level:4,text:(0,s.__)("Why is this important?","better-wp-security"),size:C.$C.SUBTITLE_SMALL,variant:C.J3.DARK,weight:C.uL.HEAVY}),(0,l.createElement)(C.EY,{as:"p",text:t,variant:C.J3.MUTED,className:An}))),(0,l.createElement)(xn,{as:E.Flex,direction:"column",gap:4,justify:"flex-start"},(0,l.createElement)(Ln,{gap:4,align:"flex-start"},(0,l.createElement)(wn,null,(0,l.createElement)(E.Icon,{icon:r})),(0,l.createElement)(C.DZ,{level:3,text:n,size:C.$C.HUGE,variant:C.J3.DARK,weight:C.uL.NORMAL,className:Sn})),d),i&&"free"===u&&(0,l.createElement)(xn,{as:E.Flex,gap:4,justify:"flex-start",align:"center",expanded:!1,compact:!0},(0,l.createElement)(F.mk,null),(0,l.createElement)(C.EY,{text:i})))),(0,l.createElement)(Cn,{variant:"primary",text:(0,s.__)("Continue","better-wp-security"),icon:Je.A,iconPosition:"right",onClick:a,isBusy:o,disabled:o}))}var Nn=r(91699),Mn=r(37901);const In=Nn.i7`
from, to { opacity: 0; }
50% { opacity: 1; }
`,kn=Mn.P.create((0,m.A)("div",{target:"e1o6dznc17"})({name:"174hs4x",styles:"position:relative;width:248px;display:flex;flex-direction:column;justify-content:flex-start;gap:16px;padding:24px 16px;border-radius:4px;border:solid 1px #8a9ea8;background-color:#fff"})),Tn=(0,m.A)("span",{target:"e1o6dznc16"})({name:"14jxvoc",styles:"font-size:20px;line-height:1.4;text-align:center;color:#6c6c6c"}),Fn=(0,m.A)("div",{target:"e1o6dznc15"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),Dn=(0,m.A)("span",{target:"e1o6dznc14"})({name:"1df4ypq",styles:"flex-grow:0;font-size:13px;line-height:1.23;text-align:left;color:#6c6c6c"}),Rn=(0,m.A)("div",{target:"e1o6dznc13"})({name:"1xpex1r",styles:"margin:4px 0;height:40px;padding:12px;border:solid 1px #e7e7e7;position:relative"}),zn=Mn.P.create((0,m.A)("span",{target:"e1o6dznc12"})("display:inline-flex;align-items:center;gap:1px;overflow:hidden;font-size:13px;line-height:1.23;letter-spacing:normal;text-align:left;color:#6c6c6c;&:after{content:'';height:16px;background-color:#6c6c6c;display:inline-block;width:1px;vertical-align:middle;animation:.75s ",In," infinite;}")),Pn=Mn.P.create((0,m.A)("span",{target:"e1o6dznc11"})({name:"15alue3",styles:"display:inline-block;overflow:hidden;flex-grow:0;font-size:11px;line-height:1.45;text-align:left;color:#b32d2e"})),$n=(0,m.A)("div",{target:"e1o6dznc10"})({name:"1w1mzuo",styles:"align-self:stretch;flex-grow:0;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:4px;padding:12px 24px;border-radius:4px;background-color:#232323;svg{fill:#fff;}"}),Vn=(0,m.A)("span",{target:"e1o6dznc9"})({name:"1qd7rh9",styles:"flex-grow:0;font-size:16px;font-weight:500;line-height:1.5;text-align:center;color:#fff"}),Hn=(0,m.A)("div",{target:"e1o6dznc8"})({name:"1ixsn0j",styles:"display:flex;flex-direction:column;gap:8px;align-items:center;position:absolute;bottom:30px"}),jn=(0,m.A)("span",{target:"e1o6dznc7"})({name:"ik284f",styles:"font-size:13px;line-height:1.23;text-align:center;color:#b6b6b6"}),qn=Mn.P.create((0,m.A)("div",{target:"e1o6dznc6"})({name:"1hjujk5",styles:"position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;background-color:rgba(3, 3, 3, 0.3)"})),Bn=Mn.P.create((0,m.A)("div",{target:"e1o6dznc5"})({name:"1qc9ech",styles:"width:120px;height:120px;padding:20px;background-color:#1145c9;display:flex;justify-content:center;align-items:center;border-radius:50%;z-index:2;svg{fill:#e9effc;}"})),Zn=Mn.P.create((0,m.A)("div",{target:"e1o6dznc4"})({name:"3w0yoi",styles:"display:flex;flex-direction:column;gap:8px"})),Un=(0,m.A)("span",{target:"e1o6dznc3"})({name:"kr696o",styles:"flex-grow:0;font-size:11px;line-height:1.45;text-align:left;color:#6c6c6c"}),Wn=(0,m.A)("div",{target:"e1o6dznc2"})({name:"13rwgvj",styles:"display:grid;grid-template-columns:repeat(4, 1fr);gap:4px"}),Yn=(0,m.A)("span",{target:"e1o6dznc1"})({name:"layjka",styles:"height:4px;border-radius:10px;background:#858585;&:nth-child(2){background:#6c6c6c;}&:nth-child(3){background:#545454;}&:nth-child(4){background:#333333;}"}),Kn=(0,m.A)("div",{target:"e1o6dznc0"})({name:"zkdgfw",styles:'position:absolute;top:-10px;left:20px;right:-10px;transform:translateY(-100%);font-size:11px;line-height:14px;text-align:left;color:#6c6c6c;--a:90deg;--h:1em;--p:30%;--r:8px;--b:1px;--c1:#232323;--c2:#fff;padding:1em;border-radius:var(--r) var(--r) min(var(--r),100% - var(--p) - var(--h)*tan(var(--a)/2)) min(var(--r),var(--p) - var(--h)*tan(var(--a)/2))/var(--r);clip-path:polygon(0 100%,0 0,100% 0,100% 100%,\n\tmin(100%,var(--p) + var(--h)*tan(var(--a)/2)) 100%,\n\tvar(--p) calc(100% + var(--h)),\n\tmax(0% ,var(--p) - var(--h)*tan(var(--a)/2)) 100%);background:var(--c1);border-image:conic-gradient(var(--c1) 0 0) fill 0/var(--r) max(0%,100% - var(--p) - var(--h)*tan(var(--a)/2)) 0 max(0%,var(--p) - var(--h)*tan(var(--a)/2))/0 0 var(--h) 0;&:before{content:"";position:absolute;z-index:-1;inset:0;padding:var(--b);border-radius:inherit;clip-path:polygon(0 100%,0 0,100% 0,100% 100%,\n\t\tmin(100% - var(--b),var(--p) + var(--h)*tan(var(--a)/2) - var(--b)*tan(45deg - var(--a)/4)) calc(100% - var(--b)),\n\t\tvar(--p) calc(100% + var(--h) - var(--b)/sin(var(--a)/2)),\n\t\tmax( var(--b),var(--p) - var(--h)*tan(var(--a)/2) + var(--b)*tan(45deg - var(--a)/4)) calc(100% - var(--b)));background:var(--c2) content-box;border-image:conic-gradient(var(--c2) 0 0) fill 0/var(--r) max(var(--b),100% - var(--p) - var(--h)*tan(var(--a)/2)) 0 max(var(--b),var(--p) - var(--h)*tan(var(--a)/2))/0 0 var(--h) 0;}'});function Jn({question:e,onAnswer:t,isAnswering:r}){const[n,a]=(0,o.useState)(e.answer_schema.default);return(0,l.createElement)(On,{headline:(0,s.__)("Attackers can make thousands of login attempts before you even notice.","better-wp-security"),reason:(0,s.__)("Brute Force protection slows down attackers who try to guess login credentials for your site.","better-wp-security"),feature:e.prompt,icon:hn.A,isAnswering:r,onContinue:()=>t(n),renderGraphic:()=>(0,l.createElement)(Xn,null)},(0,l.createElement)(E.Flex,{direction:"column",gap:3,expanded:!1},(0,l.createElement)($,{label:(0,s.__)("Local Brute Force","better-wp-security"),checked:n["brute-force"],onChange:e=>a({...n,"brute-force":e}),recommended:!0}),(0,l.createElement)($,{label:(0,s.__)("Network Brute Force","better-wp-security"),checked:n["network-brute-force"],onChange:e=>a({...n,"network-brute-force":e}),recommended:!0},(0,l.createElement)(E.Tooltip,{text:(0,s.__)("Enabling this will send data about login attempts to Kadence servers.","better-wp-security")},(0,l.createElement)("span",{style:{lineHeight:0}},(0,l.createElement)(E.Icon,{icon:fn.A})))),(0,l.createElement)(C.EY,{text:e.description,variant:C.J3.MUTED})))}const Gn=[...[].concat(...Array(2).fill([{state:"empty",duration:1e3},{state:"filled",duration:1e3},{state:"invalid",duration:2e3}])),{state:"empty",duration:1e3},{state:"filled",duration:1e3},{state:"invalid",duration:1e3},{state:"overlay",duration:1e3},{state:"locked",duration:6e3}],Qn=Gn.reduce(((e,{duration:t})=>e+t),0);function Xn(){const e=(0,x.useReducedMotion)(),t=(0,mn.z)(),[r,n]=(0,o.useState)(e?"locked":"empty");return(0,pn.L)(t,"change",(t=>!e&&n(function(e){const t=e%Qn;let r=0;for(const e of Gn)if(r+=e.duration,t<r)return e.state;return Gn[Gn.length-1].state}(t)))),(0,l.createElement)(kn,{layout:!0},(0,l.createElement)(gn.N,null,("locked"===r||"overlay"===r)&&(0,l.createElement)(ea,{state:r})),(0,l.createElement)(Fn,null,(0,l.createElement)(Dn,null,(0,s.__)("Username or Email Address","better-wp-security")),(0,l.createElement)(Rn,null,(0,l.createElement)(zn,{initial:{width:0},animate:{width:"empty"===r?1:"auto"},transition:{duration:.5}},"empty"!==r&&(0,s.__)("example@gmail.com","better-wp-security"))),(0,l.createElement)(gn.N,null,("invalid"===r||"overlay"===r||"locked"===r)&&(0,l.createElement)(Pn,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0}},(0,s.__)("We do not recognize your email","better-wp-security")))),(0,l.createElement)(Fn,null,(0,l.createElement)(Dn,null,(0,s.__)("Password","better-wp-security")),(0,l.createElement)(Rn,null,(0,l.createElement)(zn,{initial:{width:0},animate:{width:"empty"===r?1:"auto"},transition:{duration:.5}},"empty"!==r&&"●●●●●●●●")),(0,l.createElement)(gn.N,null,("invalid"===r||"overlay"===r||"locked"===r)&&(0,l.createElement)(Pn,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0}},(0,s.__)("We do not recognize your password","better-wp-security")))))}function ea({state:e}){return(0,l.createElement)(qn,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},(0,l.createElement)(gn.N,null,"locked"===e&&(0,l.createElement)(Bn,{initial:{width:0,height:0,padding:0},animate:{width:120,height:120,padding:20},exit:{width:0,height:0,padding:0}},(0,l.createElement)(E.Icon,{icon:En.A,size:80}))))}var ta=r(15013),ra=r(16957),na=r(72222);function aa({question:e,onAnswer:t,isAnswering:r}){const[n,a]=(0,o.useState)(e.answer_schema.default),{installType:i}=Z();return(0,l.createElement)(On,{headline:(0,s.__)("90% of targeted account takeover attacks can be prevented by using Two-Factor.","better-wp-security"),reason:(0,s.__)("Two-Factor combines something you know (your password), with something you have. If an attacker is able to compromise your password, Two-Factor can stop them in their tracks because they won’t have access to your phone or email.","better-wp-security"),feature:e.prompt,icon:na.A,upsell:(0,o.createInterpolateElement)((0,s.__)("<b>Require Two-Factor</b> is a Pro feature.","better-wp-security"),{b:(0,l.createElement)("strong",null)}),isAnswering:r,onContinue:()=>t(n),renderGraphic:()=>(0,l.createElement)(ia,null)},(0,l.createElement)($,{label:"pro"===i?(0,s.__)("Require Two-Factor","better-wp-security"):(0,s.__)("Allow Two-Factor","better-wp-security"),checked:n.enabled,onChange:e=>a({...n,enabled:e}),recommended:!0}),(0,l.createElement)(ut,{value:n.users,onChange:e=>a({...n,users:e})}),(0,l.createElement)(C.EY,{variant:C.J3.MUTED},(0,l.createElement)(ta.VK,{content:e.description,noWrap:!0})))}function ia(){const e=(0,x.useReducedMotion)(),[t,r]=(0,o.useState)(e),{RiveComponent:n,rive:a}=(0,F.UZ)(e?"onboard-two-factor-reduced":"onboard-two-factor",{autoplay:!0,stateMachines:"State Machine | Loop"});return(0,o.useEffect)((()=>{a?.on(ra.EventType.RiveEvent,(e=>{"toggle_on"===e.data.name?r(!0):"toggle_off"===e.data.name&&r(!1)}))}),[a]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{width:297,height:372,marginTop:-40}},(0,l.createElement)(n,null)),(0,l.createElement)(Hn,null,(0,l.createElement)(E.FormToggle,{checked:t,onChange:v.noop}),(0,l.createElement)(jn,null,t?(0,s.__)("Two-Factor Enabled","better-wp-security"):(0,s.__)("Standard Login","better-wp-security"))))}var la=r(66655);function sa({question:e,onAnswer:t,isAnswering:r}){const[n,a]=(0,o.useState)(e.answer_schema.default);return(0,l.createElement)(On,{headline:(0,s.__)("80% of hacks can be attributed to password compromises.","better-wp-security"),reason:(0,s.__)("A strong password improves security by making it significantly harder for hackers to guess their way into your website. Refusing compromised passwords prevents bad actors from using passwords found in breaches, an attack known as “Credential Stuffing.”","better-wp-security"),feature:e.prompt,icon:En.A,isAnswering:r,onContinue:()=>t(n),renderGraphic:()=>(0,l.createElement)(oa,null)},(0,l.createElement)(E.Flex,{direction:"column",gap:3,expanded:!1},["strength","hibp"].map((t=>(0,l.createElement)($,{key:t,label:e.answer_schema.properties[t].label,checked:n[t],onChange:e=>a({...n,[t]:e}),recommended:!0})))),(0,l.createElement)(ut,{value:n.users,onChange:e=>a({...n,users:e})}),(0,l.createElement)(C.EY,{text:e.description,variant:C.J3.MUTED}))}function oa(){const e=(0,x.useReducedMotion)(),[t,r]=(0,o.useState)(e?"protected":"unprotected");return(0,o.useEffect)((()=>{if(e)return;const t=setInterval((()=>{r((e=>"unprotected"===e?"protected":"unprotected"))}),3e3);return()=>clearTimeout(t)}),[e]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(kn,{layout:!0},(0,l.createElement)(Tn,null,(0,s.__)("Register","better-wp-security")),(0,l.createElement)(Fn,null,(0,l.createElement)(Dn,null,(0,s.__)("Email Address","better-wp-security")),(0,l.createElement)(Rn,null,(0,l.createElement)(zn,null,(0,s.__)("example@gmail.com","better-wp-security")))),(0,l.createElement)(Fn,null,(0,l.createElement)(Dn,null,(0,s.__)("Password","better-wp-security")),(0,l.createElement)(Rn,null,(0,l.createElement)(gn.N,{initial:{opacity:0,width:0,height:0},animate:{opacity:1,width:"auto",height:"auto"},exit:{opacity:0,width:0,height:0}},"protected"===t&&(0,l.createElement)(Kn,null,(0,o.createInterpolateElement)((0,s.__)('<b>Hint:</b> The password should be at least twelve characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ & ).',"better-wp-security"),{b:(0,l.createElement)("strong",null)}))),(0,l.createElement)(zn,null,"●●●●●●●●"))),(0,l.createElement)(Zn,{initial:{opacity:0,height:0},animate:"protected"===t?{opacity:1,height:"auto"}:{opacity:0,height:0}},(0,l.createElement)(Un,null,(0,s.__)("Password Strength:","better-wp-security")),(0,l.createElement)(Wn,null,(0,l.createElement)(Yn,null),(0,l.createElement)(Yn,null),(0,l.createElement)(Yn,null),(0,l.createElement)(Yn,null))),(0,l.createElement)($n,null,(0,l.createElement)(Vn,null,(0,s.__)("Register","better-wp-security")),(0,l.createElement)(E.Icon,{icon:la.A}))),(0,l.createElement)(Hn,null,(0,l.createElement)(E.FormToggle,{checked:"protected"===t,onChange:v.noop}),(0,l.createElement)(jn,null,"unprotected"===t?(0,s.__)("No Password Requirements","better-wp-security"):(0,s.__)("Password Requirements Enabled","better-wp-security"))))}function ca(){const{registerQuestionComponent:e}=(0,w.useDispatch)(xr);(0,_e.ee)(ca,(()=>{e("scan-site",un),e("firewall",Jn),e("two-factor",aa),e("password-requirements",sa),e("is-client",Wr),e("ip-detection",Jr)}))}function da(){ca();const{goNext:e}=T(),{siteType:t}=(0,p.g)(),{selectedSiteTypeId:r}=(0,w.useSelect)((e=>({selectedSiteTypeId:e(xr).getSelectedSiteTypeId()})),[]),{selectSiteType:n,applyAnswerResponse:a}=(0,w.useDispatch)(xr),i=function(){const{question:e,component:t,isAnswering:r}=(0,w.useSelect)((e=>{const t=e(xr).getNextQuestion();return{question:t,component:e(xr).getQuestionComponent(t?.id),isAnswering:e(xr).isAnswering()}}),[]),{answerQuestion:n,repeatQuestion:a}=(0,w.useDispatch)(xr);if(!e)return e;const i=t||Ur;return(0,l.createElement)(i,{question:e,onAnswer:n,goBack:a,isAnswering:r})}();return(0,o.useLayoutEffect)((()=>{r!==t&&n(t)}),[n,r,t]),(0,o.useEffect)((()=>{null===i&&(a(),e())}),[a,e,i]),i}const ua=["onboard-two-factor","onboard-two-factor-reduced"];function ma(){const{path:e}=(0,p.W5)();return(0,l.createElement)(F.oA,{preload:ua},(0,l.createElement)(p.dO,null,(0,l.createElement)(p.qh,{path:`${e}/:siteType`},(0,l.createElement)(da,null)),(0,l.createElement)(p.qh,{path:`${e}`},(0,l.createElement)(Dr,null))))}const pa=(0,m.A)(C.zY,{target:"e1lqsen66"})({name:"8dk3vg",styles:"margin-bottom:1rem"}),ga=(0,m.A)(C.ui,{target:"e1lqsen65"})("border:1px solid ",(({theme:e})=>e.colors.border.normal),";"),ha=(0,m.A)("form",{target:"e1lqsen64"})({name:"1smerdt",styles:"padding:1rem 0"}),fa=(0,m.A)("div",{target:"e1lqsen63"})({name:"e59tbw",styles:"display:flex;align-items:center;justify-content:end;gap:1.5rem;margin-top:2rem"}),Ea=(0,m.A)("form",{target:"e1lqsen62"})({name:"jg4g8",styles:"padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:1.25rem"}),ya=(0,m.A)(F.pe,{target:"e1lqsen61"})({name:"17zhf76",styles:"padding:0 1.5rem"}),Ca=(0,m.A)("div",{target:"e1lqsen60"})({name:"7tt4sl",styles:"flex-grow:1;max-width:830px;width:100%"});function va(){const{root:e}=(0,p.g)(),{editedModules:t}=(0,w.useSelect)((e=>({editedModules:e(L.MODULES_STORE_NAME).getEditedModules()})),[]),r=t.filter((t=>{if("onboard"===e&&!t.onboard)return!1;if("import"===e&&!t.settings?.import?.length>0)return!1;const r=t.settings?.show_ui;return r||"always-active"!==t.status.default})),n=(0,v.sortBy)(r,"order");return{types:[{slug:"login",label:(0,s.__)("Login Security","better-wp-security")},{slug:"lockout",label:(0,s.__)("Firewall","better-wp-security")},{slug:"site-check",label:(0,s.__)("Site Check","better-wp-security")},{slug:"utility",label:(0,s.__)("Utilities","better-wp-security")},{slug:"advanced",label:(0,s.__)("Advanced","better-wp-security")}].filter((e=>r.find((t=>t.type===e.slug)))),modules:n}}const{Slot:ba,Fill:_a}=(0,E.createSlotFill)("ConfigurePageHeader");function xa({module:e}){const{hash:t}=(0,p.zy)(),r=(0,x.useInstanceId)(xa,"itsec-configure-single-modules-page"),{config:n}=(0,w.useSelect)((t=>({config:t(L.MODULES_STORE_NAME).getEditedModule(e)})),[e]),{saveSettings:a}=(0,w.useDispatch)(L.MODULES_STORE_NAME),{filterFields:i}=Y(n),{schema:s,uiSchema:o,formData:c,setFormData:d}=W(n,i);if(!n)return null;const u=t.startsWith(`#${e.id},`)?t.split(",")[1]:t.replace("#","");return(0,l.createElement)(Oa,{title:n.title,description:n.description,headerHasBorder:!0},(0,l.createElement)(ga,null,(0,l.createElement)(ba,null),(0,l.createElement)(ha,{onSubmit:e=>{e.preventDefault(),a(n.id,!0)},id:r},(0,l.createElement)(ce,{module:n,schema:s,uiSchema:o,formData:c,setFormData:d,highlightedSetting:u}))),(0,l.createElement)(Aa,{form:r,modules:[e]}))}function wa({type:e,title:t,description:r}){const{root:n}=(0,p.g)(),{hash:a}=(0,p.zy)(),i=(0,x.useInstanceId)(wa,"itsec-configure-modules-of-type-page"),{modules:s}=va(),c=(0,o.useMemo)((()=>s.filter((t=>t.type===e))),[s,e]),d=(0,o.useMemo)((()=>c.map((e=>e.id))),[c]),{saveSettings:u}=(0,w.useDispatch)(L.MODULES_STORE_NAME);return c?(0,l.createElement)(Oa,{title:t,description:r,headerHasBorder:!0},(0,l.createElement)(ga,null,(0,l.createElement)(ba,null),(0,l.createElement)(Ea,{id:i,onSubmit:e=>{e.preventDefault(),u(d,!0)}},c.map((e=>{const t=a===`#${e.id}`||a.startsWith(`#${e.id},`),r=a.startsWith(`#${e.id},`)?a.split(",")[1]:a.replace("#","");return(0,l.createElement)(be,{key:e.id,module:e,isHighlighted:t,highlightedSetting:r,persistStatus:"settings"===n})})))),(0,l.createElement)(Aa,{form:i,modules:d})):null}function La({exclude:e}){const{types:t,modules:r}=va(),n=(0,o.useMemo)((()=>t.filter((t=>!e.includes(t.slug)))),[t,e]),{path:a,url:i}=(0,p.W5)();return(0,l.createElement)(p.dO,null,(0,l.createElement)(p.qh,{path:`${a}/:type`},(0,l.createElement)(Sa,{allModules:r},(0,l.createElement)(ba,null),(0,l.createElement)(ya,{size:C.$C.NORMAL},n.map((e=>(0,l.createElement)(F.G9,{key:e.slug,title:e.label,to:`${i}/${e.slug}`})))))),(0,l.createElement)(p.qh,{path:a,exact:!0},n.length>0&&(0,l.createElement)(p.rd,{to:`${i}/${n[0].slug}`})))}function Sa({allModules:e,children:t}){const{root:r}=(0,p.g)(),{hash:n}=(0,p.zy)(),a=(0,x.useInstanceId)(La,"itsec-configure-tabbed-modules-route"),{params:i}=(0,p.W5)(),c=(0,o.useMemo)((()=>e.filter((e=>e.type===i.type))),[e,i]),d=(0,o.useMemo)((()=>c.map((e=>e.id))),[c]),{saveSettings:u}=(0,w.useDispatch)(L.MODULES_STORE_NAME);return(0,l.createElement)(Oa,{title:(0,s.__)("Features","better-wp-security"),description:(0,s.__)("Choose and configure security features for your site.","better-wp-security")},(0,l.createElement)(ga,null,t,(0,l.createElement)(Ea,{id:a,onSubmit:e=>{e.preventDefault(),u(d,!0)}},c.map((e=>{const t=n===`#${e.id}`||n.startsWith(`#${e.id},`),a=n.startsWith(`#${e.id},`)?n.split(",")[1]:n.replace("#","");return(0,l.createElement)(be,{key:e.id,module:e,isHighlighted:t,highlightedSetting:a,persistStatus:"settings"===r})})))),(0,l.createElement)(Aa,{form:a,modules:d}))}function Aa({modules:e,form:t}){const{isSaving:r,isDirty:n,errors:a}=(0,w.useSelect)((t=>{const r=t(L.MODULES_STORE_NAME),n=e.map((e=>r.getError(e))).filter(Boolean);return{isDirty:r.getDirtySettings().some((t=>e.includes(t))),isSaving:r.isSavingSettings(e),errors:n.length>0?n:null}}),[e]),{resetSettingEdits:i}=(0,w.useDispatch)(L.MODULES_STORE_NAME),{root:c}=(0,p.g)(),{goNext:d}=T(),u=1===e.length&&"global"===e[0],m=(0,o.useMemo)((()=>{if(!u||!a||0===a.length)return null;const e=[];return a.forEach((t=>{e.push(...(0,q.Mr)(t))})),e.length>0?e:null}),[a,u]);return(0,l.createElement)(l.Fragment,null,m&&(0,l.createElement)(fa,null,(0,l.createElement)(F.VS,{errors:m,hasBorder:!0})),(0,l.createElement)(fa,null,(0,l.createElement)(C.$n,{text:(0,s.__)("Undo Changes","better-wp-security"),variant:"secondary",onClick:()=>i(e),disabled:r||!n}),"settings"===c&&(0,l.createElement)(C.$n,{type:"submit",form:t,text:(0,s.__)("Save","better-wp-security"),variant:"primary",isBusy:r,disabled:r||!n}),"settings"!==c&&(0,l.createElement)(C.$n,{text:(0,s.__)("Next","better-wp-security"),variant:"primary",onClick:d})))}function Oa({title:e,description:t,headerHasBorder:r,children:n}){const{root:a}=(0,p.g)();return"settings"===a?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_a,null,(0,l.createElement)(pa,{title:e,description:t,hasBorder:r})),n):(0,l.createElement)(Ca,null,(0,l.createElement)(De,{title:e,description:t,showIndicator:!0,showNext:!0}),n)}const Na=(0,m.A)(E.Spinner,{target:"eeeuek50"})({name:"1goa6k7",styles:"width:80px!important;height:80px!important"});function Ma(){const{root:e}=(0,p.g)(),{goNext:t}=T(),{completeOnboarding:r}=(0,w.useDispatch)(xr);return Ia(),(0,_e.ee)(Ma,(()=>{r({root:e}).then(t)})),(0,l.createElement)(E.Flex,{expanded:!1,direction:"column",gap:4,align:"center"},(0,l.createElement)(Na,null),(0,l.createElement)(C.EY,{size:C.$C.LARGE,variant:C.J3.DARK,weight:C.uL.HEAVY,align:"center",text:(0,s.__)("Hang on while your website is secured!","better-wp-security")}))}function Ia(){const{registerCompletionStep:e}=(0,w.useDispatch)(xr),{saveModules:t,saveSettings:r}=(0,w.useDispatch)(L.MODULES_STORE_NAME);(0,_e.ee)(Ia,(()=>{e({id:"savingModules",label:(0,s.__)("Enable Features","better-wp-security"),priority:5,callback:()=>t()}),e({id:"savingSettings",label:(0,s.__)("Configure Settings","better-wp-security"),priority:10,callback:()=>r()})}))}const ka=(0,m.A)("div",{target:"eju2x077"})("max-width:900px;width:100%;flex-grow:1;margin-top:",(({isSmall:e})=>e&&"100px"),";"),Ta=(0,m.A)("ul",{target:"eju2x076"})({name:"a5ny1u",styles:"list-style:disc inside;display:flex;flex-direction:column;gap:0.75rem;margin:0"}),Fa=(0,m.A)("li",{target:"eju2x075"})({name:"11utca0",styles:"margin:0 0.5rem"}),Da=(0,m.A)("div",{target:"eju2x074"})("margin-top:3.5rem;padding:1.5rem;border:1px solid ",(({theme:e})=>e.colors.border.normal),";border-radius:2px;box-shadow:0 4px 8px 0 #00000033;"),Ra=(0,m.A)(E.Flex,{target:"eju2x073"})({name:"15xgxri",styles:"max-width:700px"}),za=(0,m.A)(C.B8,{target:"eju2x072"})({name:"1f342kp",styles:"display:grid;grid-template-columns:repeat(auto-fit, minmax(225px, 1fr));gap:1.25rem"}),Pa=(0,m.A)(C.$n,{target:"eju2x071"})({name:"135vrw8",styles:"align-self:start"}),$a=(0,m.A)(C.ui,{target:"eju2x070"})("padding:1.5rem 2rem;border:1px solid ",(({theme:e})=>e.colors.border.normal),";display:flex;flex-direction:column;gap:1rem;width:100%;"),Va=[{text:(0,s.__)("User security strengthened","better-wp-security"),activeModules:["two-factor","passwordless-login","fingerprinting"]},{text:(0,s.__)("Brute force attacks blocked","better-wp-security"),activeModules:["brute-force","network-brute-force","recaptcha"]},{text:(0,s.__)("Scanning for vulnerable themes, plugins, and known malware","better-wp-security"),activeModules:["malware-scheduling"]},{text:(0,s.__)("Monitoring for suspicious file changes","better-wp-security"),activeModules:["file-change"]},{text:(0,s.__)("Banning bad bots and user agents","better-wp-security"),activeModules:["ban-users"]}];function Ha(){const{allActiveModules:e}=(0,w.useSelect)((e=>({allActiveModules:e(L.MODULES_STORE_NAME).getActiveModules()})),[]),t=Va.filter((({activeModules:t})=>t.find((t=>e.includes(t)))));return t.length?(0,l.createElement)(E.Flex,{direction:"column",gap:3,justify:"start",expanded:!1},(0,l.createElement)(C.DZ,{level:3,size:C.$C.LARGE,variant:C.J3.DARK,weight:C.uL.HEAVY,text:(0,s.__)("Here are some notable improvements…","better-wp-security")}),(0,l.createElement)(Ta,null,t.map((({text:e},t)=>(0,l.createElement)(Fa,{key:t},(0,l.createElement)(C.EY,{text:e})))))):null}function ja({installType:e}){const t=(0,q.aZ)("dashboard"),r=(0,q.aZ)("settings"),n=(0,q.aZ)("vulnerabilities"),{vulnerabilities:a}=(0,w.useSelect)((e=>({vulnerabilities:e(L.vulnerabilitiesStore).getQueryResults("onboarding")})),[]);return(0,l.createElement)(E.Flex,{direction:"column",gap:8,expanded:!1,align:"start"},(0,l.createElement)(F.gu,{size:44}),(0,l.createElement)(E.Flex,{as:"header",direction:"column",gap:2,expanded:!1},(0,l.createElement)(C.DZ,{level:1,text:"free"===e?(0,s.__)("Great Work! Thanks to Kadence Security Basic, your site is secure and ready for your users.","better-wp-security"):(0,s.__)("Great Work! Your site is ready and is more secure than ever!","better-wp-security"),size:C.$C.GIGANTIC,weight:C.uL.NORMAL}),(0,l.createElement)(C.EY,{text:"free"===e?(0,s.__)("Use your security dashboard for insights into your users’ activity and potential threats to your site. From there you’ll be guided to actions you can take.","better-wp-security"):(0,s.__)("If you want to dig into your site’s security, check out your security dashboard, and make changes via settings.","better-wp-security"),size:C.$C.EXTRA_LARGE,variant:C.J3.DARK})),(0,l.createElement)(Ha,{installType:e}),a.length>0&&(0,l.createElement)(qa,{vulnerabilities:a,link:n,installType:e}),0===a.length&&(0,l.createElement)(E.Flex,{gap:4,justify:"start"},(0,l.createElement)(C.$n,{variant:"free"===e?"secondary":"primary",href:t,text:(0,s.__)("Dashboard","better-wp-security")}),(0,l.createElement)(C.$n,{variant:"free"===e?"secondary":"primary",href:r,text:(0,s.__)("Settings","better-wp-security")})))}function qa({vulnerabilities:e,link:t,installType:r}){const{show:n}=J(e,1);return(0,l.createElement)($a,null,(0,l.createElement)(E.Flex,{gap:4,align:"flex-start"},(0,l.createElement)(E.Flex,{direction:"column",gap:5},(0,l.createElement)(E.Flex,{direction:"column",gap:3},(0,l.createElement)(C.DZ,{level:3,size:C.$C.HUGE,text:(0,s.__)("Resolve the vulnerabilities we found","better-wp-security"),weight:C.uL.NORMAL}),(0,l.createElement)(C.EY,{text:(0,s.__)("Now that your initial setup for Kadence Security is complete, it’s time to take care of those vulnerabilities we detected earlier.","better-wp-security"),variant:C.J3.MUTED}))),(0,l.createElement)(mt,{found:!0})),(0,l.createElement)(yt,n[0]),"free"===r&&(0,l.createElement)(E.Flex,{direction:"column",gap:2},(0,l.createElement)(C.DZ,{level:5,text:(0,s.__)("Stay safe from critical vulnerabilities, even while you sleep","better-wp-security"),size:C.$C.SUBTITLE_SMALL}),(0,l.createElement)(C.EY,{as:"p",text:(0,o.createInterpolateElement)((0,s.__)("Patchstack’s Virtual Patching, available in <a>Kadence Security Pro</a>, protects you against the most important vulnerabilities, 24/7.","better-wp-security"),{a:(0,l.createElement)("a",{href:"https://go.solidwp.com/go-pro-onboarding"})})})),(0,l.createElement)(E.FlexItem,null,(0,l.createElement)(C.$n,{href:t,text:(0,s.__)("Manage Vulnerabilities","better-wp-security"),variant:"primary"})))}var Ba=r(17348);const Za=[(0,o.createInterpolateElement)((0,s.__)("A <b>Firewall</b> that automatically blocks brute force logins, password-stuffing, DDoS attacks, bad bots, and any attempts to exploit vulnerable software on your site.","better-wp-security"),{b:(0,l.createElement)(C.EY,{weight:700})}),(0,o.createInterpolateElement)((0,s.__)("<b>Virtual Patches</b> from <b>Patchstack</b> that protect insecure themes and plugins even before vulnerabilities are publicly disclosed and an official patch is released. You may not be able to apply security updates immediately, but with Kadence Security Pro you’re still protected until you’re ready to update.","better-wp-security"),{b:(0,l.createElement)(C.EY,{weight:700})}),(0,o.createInterpolateElement)((0,s.__)("<b>Version Management</b> gives you precise control over when to apply or delay an automatic update to any plugin, theme, extension, or WordPress core.","better-wp-security"),{b:(0,l.createElement)(C.EY,{weight:700})}),(0,o.createInterpolateElement)((0,s.__)("<b>Passkeys</b> and other <b>Passwordless</b> Login options mitigate the risks associated with users who often share, reuse, and choose weak passwords. Increase your users’ security and simplify their login experience.","better-wp-security"),{b:(0,l.createElement)(C.EY,{weight:700})}),(0,o.createInterpolateElement)((0,s.__)("Multiple <b>CAPTCHA</b> options, including <b>Cloudflare Turnstile</b>, eliminate bot traffic from your login screens and other forms. You won’t be asked to solve a puzzle or identify objects to prove you’re a human — unless you’re a bot.","better-wp-security"),{b:(0,l.createElement)(C.EY,{weight:700})})],Ua=[(0,s.__)("Passwordless Login and Passkeys","better-wp-security"),(0,s.__)("Two-Factor","better-wp-security"),(0,s.__)("Captcha","better-wp-security"),(0,s.__)("Version Management","better-wp-security"),(0,s.__)("Trusted Devices","better-wp-security"),(0,s.__)("Import & Export","better-wp-security"),(0,s.__)("WP-CLI","better-wp-security")];function Wa({installType:e}){return(0,l.createElement)(Da,null,(0,l.createElement)(Ra,{direction:"column",justify:"start",expanded:!1,gap:4},(0,l.createElement)(C.DZ,{level:2,weight:C.uL.NORMAL,size:C.$C.EXTRA_LARGE,variant:C.J3.ACCENT,text:"free"===e?(0,s.__)("Reduce your site’s security risk to nearly zero with Kadence Security Pro.","better-wp-security"):(0,s.__)("Greatly enhance your website’s security with Kadence Security Pro.","better-wp-security")}),(0,l.createElement)(C.EY,{variant:C.J3.MUTED,text:"free"===e?(0,s.__)("Extended features for professionals include:","better-wp-security"):(0,s.__)("You are a WordPress security superstar! Be sure to take advantage of the features that comes with your paid plan. Paid features include…","better-wp-security")}),(0,l.createElement)(za,{textVariant:C.J3.DARK,gap:0},"free"===e?(0,l.createElement)(l.Fragment,null,Za.map(((e,t)=>(0,l.createElement)(C.ck,{icon:Ba.A,text:e,key:t})))):(0,l.createElement)(l.Fragment,null,Ua.map(((e,t)=>(0,l.createElement)(C.ck,{icon:Ba.A,text:e,key:t}))))),"free"===e?(0,l.createElement)(Pa,{href:"https://go.solidwp.com/go-pro-onboarding",variant:"primary",text:(0,s.__)("Upgrade to Kadence Security Pro","better-wp-security")}):(0,l.createElement)(C.EY,{variant:C.J3.MUTED,text:(0,s.__)("and more!","better-wp-security")})))}function Ya(){const{installType:e}=(0,w.useSelect)((e=>({installType:e(L.coreStore).getInstallType()})),[]),t=(0,x.useViewportMatch)("small");return(0,l.createElement)(ka,{isSmall:t},(0,l.createElement)(ja,{installType:e}),(0,l.createElement)(Wa,{installType:e}))}function Ka(){const e=M(),{url:t,path:r}=(0,p.W5)(),{pathname:n}=(0,p.zy)(),{recordVisitedLocation:a}=(0,w.useDispatch)(xr);return(0,o.useEffect)((()=>{a(n)}),[a,n]),(0,l.createElement)(p.dO,null,e.map((({id:e,render:n})=>(0,l.createElement)(p.qh,{path:`${r}/:page(${e})`,key:e},(0,l.createElement)(je,{url:t,render:n})))),(0,l.createElement)(p.qh,{path:t},e.length>0&&(0,l.createElement)(p.rd,{to:`${t}/${e[0].id}`}),(0,l.createElement)(qe,null)))}var Ja=r(99103);function Ga(){const e=M(),{url:t,path:r}=(0,p.W5)();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(F.PB,{area:"main"},(0,l.createElement)(Ja.v,null)),(0,l.createElement)(p.dO,null,e.map((({id:e,render:t})=>(0,l.createElement)(p.qh,{path:`${r}/:page(${e})`,key:e},(0,l.createElement)(te,null,(0,l.createElement)(Me,null),(0,l.createElement)(t,null))))),(0,l.createElement)(p.qh,{path:t},e.length>0&&(0,l.createElement)(p.rd,{to:`${t}/${e[0].id}`}),(0,l.createElement)(te,null))))}function Qa(){const e=M(),{url:t,path:r}=(0,p.W5)();return e.length>0&&!e.find((e=>"select-export"===e.id))?(0,l.createElement)(p.rd,{to:"/"}):(0,l.createElement)(p.dO,null,e.map((({id:e,render:n})=>(0,l.createElement)(p.qh,{path:`${r}/:page(${e})`,key:e},(0,l.createElement)(je,{url:t,render:n})))),(0,l.createElement)(p.qh,{path:t},e.length>0&&(0,l.createElement)(p.rd,{to:`${t}/${e[0].id}`}),(0,l.createElement)(qe,null)))}function Xa(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(O,{id:"site-type",title:(0,s.__)("Website","better-wp-security"),priority:0,roots:["onboard"]},(()=>(0,l.createElement)(ma,null))),(0,l.createElement)(O,{id:"global",title:(0,s.__)("Global Settings","better-wp-security"),priority:4,roots:["onboard","settings","import"]},(()=>(0,l.createElement)(xa,{module:"global"}))),(0,l.createElement)(O,{id:"configure",title:(0,s.__)("Features","better-wp-security"),priority:6,roots:["settings","import"]},(()=>(0,l.createElement)(La,{exclude:["advanced"]}))),(0,l.createElement)(O,{id:"advanced",title:(0,s.__)("Advanced","better-wp-security"),priority:25,roots:["settings"]},(()=>(0,l.createElement)(wa,{type:"advanced",title:(0,s.__)("Advanced","better-wp-security"),description:(0,s.__)("Configure advanced Kadence Security settings.","better-wp-security")}))),(0,l.createElement)(O,{id:"secure-site",title:(0,s.__)("Secure Site","better-wp-security"),priority:95,roots:["onboard","import"],hideFromNav:!0},(()=>(0,l.createElement)(Ma,null))),(0,l.createElement)(O,{id:"summary",title:(0,s.__)("Summary","better-wp-security"),priority:100,roots:["onboard","import"],hideFromNav:!0},(()=>(0,l.createElement)(Ya,null))))}function ei(){const{registerProvider:e}=(0,w.useDispatch)(Ja.E);(0,_e.ee)(ei,(()=>{e("modules",(0,s.__)("Features","better-wp-security"),5,(({registry:e,evaluate:t,results:r})=>e.select(L.MODULES_STORE_NAME).getEditedModules().reduce(((e,n)=>{const a=ti(n);return a&&(t.stringMatch(n.title)||t.stringMatch(n.description)||t.keywordMatch(n.keywords))?(r.items.push({title:n.title,description:n.description,route:a}),e+1):e}),0))),e("settings",(0,s.__)("Settings","better-wp-security"),20,(({registry:e,evaluate:t,results:r})=>e.select(L.MODULES_STORE_NAME).getEditedModules().reduce(((e,n)=>{if("active"!==n.status.selected||!n.settings?.interactive?.length)return e;const a=ti(n);return a?e+n.settings.interactive.reduce(((e,i)=>{var l,s,o;const c=n.settings.schema.properties[i],d=n.settings.schema.uiSchema?.[i];if(!c)return e;const u=d?.ui?.title||d?.["ui:title"]||c.title,m=d?.ui?.description||d?.["ui:description"]||c.description;if(!t.stringMatch(u)&&!t.stringMatch(m)&&!t.keywordMatch(c.keywords))return e;null!==(o=(l=r.groups)[s=n.id])&&void 0!==o||(l[s]={title:n.title,items:[]});const p=a.includes("#")?`${a},${i}`:`${a}#${i}`;return r.groups[n.id].items.push({title:u,description:m,route:p}),e++}),0):e}),0)))}))}function ti(e){if("global"===e.id)return"/settings/global";if("custom"!==e.type&&"tool"!==e.type&&"recommended"!==e.type){if("advanced"===e.type)return`/settings/advanced#${e.id}`;if("always-active"!==e.status.default||e.settings?.show_ui)return`/settings/configure/${e.type}#${e.id}`}}const ri=(0,m.A)(C.ui,{target:"exkjcfx0"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"});function ni({history:e,serverType:t,installType:r,onboardComplete:n}){ei();const a=n?"/settings":"/onboard";return(0,l.createElement)(f.b,{theme:C.$f},(0,l.createElement)(ri,{className:"itsec-settings",variant:C.ls.UNDER_PAGE},(0,l.createElement)(B.Provider,{value:{serverType:t,installType:r,onboardComplete:n}},(0,l.createElement)(p.Ix,{history:e},(0,l.createElement)(g.HX,{ReactRouterRoute:p.qh},(0,l.createElement)(E.SlotFillProvider,null,(0,l.createElement)(h.ErrorBoundary,{FallbackComponent:ai},(0,l.createElement)(A,null,(0,l.createElement)(Xa,null),(0,l.createElement)(y.PluginArea,null),(0,l.createElement)(E.Popover.Slot,null),(0,l.createElement)(p.dO,null,(0,l.createElement)(p.qh,{path:"/:root(settings)",component:Ga}),(0,l.createElement)(p.qh,{path:"/:root(onboard)",component:Ka}),(0,l.createElement)(p.qh,{path:"/:root(import)",component:Qa}),(0,l.createElement)(p.qh,{path:"/"},(0,l.createElement)(p.rd,{to:a}),(0,l.createElement)(lt,null),(0,l.createElement)(te,null)))))))))))}function ai(e){return(0,l.createElement)(E.Flex,null,(0,l.createElement)(E.FlexBlock,null,(0,l.createElement)(P,e)))}r.p=window.itsecWebpackPublicPath,(0,s.setLocaleData)({"":{}},"better-wp-security");const ii=(0,u.n)(document.location,{page:"itsec"});d()((()=>{const e=document.getElementById("itsec-settings-root");if(!e)return;const t=e.dataset.serverType,r=e.dataset.installType,n="1"===e.dataset.onboard;(0,o.createRoot)(e).render((0,l.createElement)(ni,{history:ii,serverType:t,installType:r,onboardComplete:n}))}))},61965:(e,t,r)=>{"use strict";r.d(t,{bV:()=>E,Ay:()=>W});var n={};r.r(n),r.d(n,{BaseInputTemplate:()=>u,ErrorListTemplate:()=>p,FieldTemplate:()=>C,ObjectFieldTemplate:()=>_,TitleFieldTemplate:()=>L});var a={};r.r(a),r.d(a,{CheckboxWidget:()=>A,CheckboxesWidget:()=>O,IncludeExcludeWidget:()=>z,RadioWidget:()=>F,SelectWidget:()=>k,TextareaWidget:()=>T,ToggleWidget:()=>S});var i={};r.r(i),r.d(i,{ApiSelectField:()=>U,EntitySelectField:()=>$,FileTreeField:()=>B,TextareaListField:()=>V});var l=r(66087),s=r(58168),o=r(51609),c=r(39959),d=r(75596);const u=function(e){const{id:t,label:r,value:n,readonly:a,disabled:i,onBlur:u,onFocus:m,options:p,onChange:g,schema:h,uiSchema:f={},...E}=e;p.inputType?E.type=p.inputType:E.type||("number"===h.type?(E.type="number",E.step="any"):"integer"===h.type?(E.type="number",E.step="1"):E.type="text"),p.autocomplete&&(E.autoComplete=p.autocomplete),h.multipleOf&&(E.step=h.multipleOf),void 0!==h.minimum&&(E.min=h.minimum),void 0!==h.maximum&&(E.max=h.maximum);const y=f["ui:description"]||h.description,C=p.emptyValue||"";return(0,o.createElement)(c.TextControl,(0,s.A)({label:r,help:(0,o.createElement)(d.VK,{noWrap:!0,content:y}),readOnly:a,disabled:i,value:n||""},(0,l.omit)(E,["autofocus","formContext","registry","rawErrors","hideLabel","hideError"]),{onChange:e=>g(""===e?C:e),onBlur:u&&(e=>u(E.id,e.target.value)),onFocus:m&&(e=>m(E.id,e.target.value))}))};var m=r(4319);function p({errors:e}){return(0,o.createElement)(m.VS,{errors:e.map((({stack:e}={})=>e)).filter((e=>!!e))})}var g=r(57936),h=r(3075),f=r(26843);function E({name:e,...t}){return(0,o.createElement)(c.Fill,(0,s.A)({name:`RjsfField${e}`},t))}function y({name:e,...t}){return(0,o.createElement)(c.Slot,(0,s.A)({name:`RjsfField${e}`},t))}function C(e){const{children:t,errors:r,hidden:n,schema:a,uiSchema:i={},formContext:l,onChange:s}=e;if(n)return null;const{resettable:d}=(0,g.$R)(i),u=i["ui:warning"];return(0,o.createElement)(v,e,t,(0,o.createElement)(y,{name:e.id,fillProps:e}),u&&(0,o.createElement)(f.Mf,{messages:[u],type:"warning"}),d&&(0,o.createElement)(c.Button,{className:"itsec-rjsf-reset-field",variant:"secondary",onClick:()=>s(a.default)},(0,h.__)("Restore Default","better-wp-security")),!0!==l?.disableInlineErrors&&r)}function v(e){const{id:t,classNames:r,disabled:n,label:a,onKeyChange:i,onDropPropertyClick:l,readonly:s,required:d,schema:u,uiSchema:m}=e,p=`${a} Key`,h=u.hasOwnProperty(g.Rr),{removable:f}=(0,g.$R)(m);return h&&!1!==f?(0,o.createElement)("div",{className:r},(0,o.createElement)("div",{className:"row"},(0,o.createElement)("div",{className:"col-xs-5 form-additional"},(0,o.createElement)(c.TextControl,{label:p,required:d,id:`${t}-key`,onBlur:e=>i(e.target.value)})),(0,o.createElement)("div",{className:"form-additional form-group col-xs-5"},e.children),(0,o.createElement)("div",{className:"col-xs-2"},(0,o.createElement)(c.Button,{icon:"no-alt",isDestructive:!0,disabled:n||s,onClick:l(a)})))):(0,o.createElement)("div",{className:r},e.children)}var b=r(8601);function _(e){const{schema:t,uiSchema:r,properties:n,registry:a,title:i,description:l,idSchema:s,required:c}=e;if(!n.length)return null;const u=(0,g.$R)(r),m=(0,g.$F)("TitleFieldTemplate",a,u),p=(0,g.$F)("DescriptionFieldTemplate",a,u),h=(r["ui:sections"]||[]).reduce(((e,r)=>({...e,[r.fields.find((e=>!!t.properties[e]))]:r})),{});return(0,o.createElement)("div",{className:"itsec-rjsf-object-fieldset",id:s.$id},i&&(0,o.createElement)(m,{id:(0,g.EH)(s),title:i,required:c,schema:t,uiSchema:r,registry:a}),l&&(0,o.createElement)(p,{id:(0,g.IR)(s),description:(0,o.createElement)(d.VK,{noWrap:!0,content:e.description}),schema:t,uiSchema:r,registry:a}),n.map((({name:e,content:t})=>h[e]?(0,o.createElement)(b.Fragment,{key:e},(0,o.createElement)("h3",{className:"itsec-rjsf-section-title"},h[e].title),h[e].description&&(0,o.createElement)("p",{className:"itsec-rjsf-section-description"},(0,o.createElement)(d.VK,{noWrap:!0,content:h[e].description})),t):t)),(0,g.Xl)(t,r,e.formData)&&(0,o.createElement)(x,{className:"object-property-expand",onClick:e.onAddClick(t),disabled:e.disabled||e.readonly}))}function x({className:e,onClick:t,disabled:r}){return(0,o.createElement)("div",{className:"row"},(0,o.createElement)("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`},(0,o.createElement)(c.Button,{icon:"plus-alt2",className:"btn-add col-xs-12","aria-label":(0,h.__)("Add","better-wp-security"),tabIndex:"0",onClick:t,disabled:r})))}const w="*";function L(e){const{id:t,title:r,required:n}=e;return(0,o.createElement)("span",{className:"itsec-rjsf-title-field",id:t},r,n&&(0,o.createElement)("span",{className:"required"},w))}function S({schema:e,uiSchema:t={},id:r,value:n,disabled:a,readonly:i,label:l,onBlur:s,onFocus:u,onChange:m}){const p=(0,g.l1)(e),h=t["ui:description"]||e.description;return(0,o.createElement)(c.ToggleControl,{checked:n||!1,onChange:m,required:p,disabled:a,readOnly:i,label:l,help:(0,o.createElement)(d.VK,{noWrap:!0,content:h}),onBlur:s&&(e=>s(r,e.target.checked)),onFocus:u&&(e=>u(r,e.target.checked))})}function A({schema:e,uiSchema:t={},id:r,value:n,disabled:a,readonly:i,label:l,onBlur:s,onFocus:u,onChange:m}){const p=(0,g.l1)(e),h=t["ui:description"]||e.description;return(0,o.createElement)(c.CheckboxControl,{checked:n||!1,onChange:m,required:p,disabled:a,readOnly:i,label:l,help:(0,o.createElement)(d.VK,{noWrap:!0,content:h}),onBlur:s&&(e=>s(r,e.target.checked)),onFocus:u&&(e=>u(r,e.target.checked))})}function O(e){const{disabled:t,options:r,value:n,readonly:a,onChange:i,label:l,schema:s,uiSchema:c={}}=e,{enumOptions:u,enumDisabled:m=[],style:p}=r,g=c["ui:description"]||s.description,h=u.map((e=>({...e,disabled:m.includes(e.value),help:e.schema.description&&(0,o.createElement)(d.VK,{noWrap:!0,content:e.schema.description})})));return(0,o.createElement)(d.iI,{value:n||[],onChange:i,options:h,label:l||c["ui:title"]||s.title,help:(0,o.createElement)(d.VK,{noWrap:!0,content:g}),readOnly:a,disabled:t,style:p})}const N=new Set(["number","integer"]);function M(e,t){const{type:r,items:n}=e,a=function(e){return e.enum?e.enum:e.oneOf&&e.oneOf.every((e=>e.enum&&1===e.enum.length))?e.oneOf.map((e=>e.enum[0])):[]}(e);if(a.includes(t))return t;if(""!==t){if("array"===r&&n&&N.has(n.type))return t.map(g.i);if("boolean"===r)return"true"===t;if("number"===r||"integer"===r)return(0,g.i)(t);if(a.length>0){if(a.every((e=>"number"===(0,g.A6)(e))))return(0,g.i)(t);if(a.every((e=>"boolean"===(0,g.A6)(e))))return"true"===t}return t}}function I(e,t){return t?[].slice.call(e.target.options).filter((e=>e.selected)).map((e=>e.value)):e.target.value}const k=function(e){const{schema:t,uiSchema:r={},id:n,options:a,value:i,label:l,required:s,disabled:u,readonly:m,multiple:p,onChange:g,onBlur:h,onFocus:f,placeholder:E}=e,{enumOptions:y,enumDisabled:C}=a,v=p?[]:"",b=[];p||void 0!==t.default||b.push({value:"",label:E});for(const e of y)b.push({...e,disabled:C&&C.includes(e.value)});const _=r["ui:description"]||t.description;return(0,o.createElement)(c.SelectControl,{multiple:p,options:b,value:void 0===i?v:i,label:l,help:(0,o.createElement)(d.VK,{noWrap:!0,content:_}),required:s,disabled:u,readOnly:m,onChange:e=>g(M(t,e)),onBlur:h&&(e=>h(n,M(t,I(e,p)))),onFocus:f&&(e=>f(n,M(t,I(e,p))))})};function T({schema:e,uiSchema:t={},id:r,value:n,disabled:a,readonly:i,label:u,onBlur:m,onFocus:p,onChange:h,...f}){const E=(0,g.$R)(t),{rows:y,placeholder:C,description:v=e.description}=E;return(0,o.createElement)(c.TextareaControl,(0,s.A)({value:void 0===n?"":n,onChange:h,disabled:a,readOnly:i,label:u,help:(0,o.createElement)(d.VK,{noWrap:!0,content:v}),onBlur:m&&(e=>m(r,e.target.value)),onFocus:p&&(e=>p(r,e.target.value)),rows:y,placeholder:C},(0,l.without)(f,["autofocus","formContext","registry","rawErrors"])))}function F({schema:e,uiSchema:t={},id:r,options:n,value:a,label:i,required:l,disabled:s,readonly:u,onChange:m,onBlur:p,onFocus:g}){const{enumOptions:h}=n,f=t["ui:description"]||e.description;return(0,o.createElement)(c.RadioControl,{selected:a,options:h,label:i,help:(0,o.createElement)(d.VK,{noWrap:!0,content:f}),required:l,disabled:s,readOnly:u,onChange:t=>m(M(e,t)),onBlur:p&&(t=>p(r,M(e,t.target.value))),onFocus:g&&(t=>g(r,M(e,t.target.value)))})}var D=r(11431),R=r(79860);function z({id:e,disabled:t,options:r,value:n,onChange:a,schema:i,autofocus:s,readonly:d}){const{enumOptions:u,enumDisabled:m=[],excludeList:{title:p=(0,h.__)("Excluded","better-wp-security"),description:g=(0,h.__)("The list of items to exclude from the selection.","better-wp-security"),button:f=(0,h.__)("Include","better-wp-security")}={},includeList:{title:E=(0,h.__)("Included","better-wp-security"),description:y=(0,h.__)("The list of items to include in the selection.","better-wp-security"),button:C=(0,h.__)("Exclude","better-wp-security")}={},title:v=i.title,description:_=i.description}=r;(0,b.useEffect)((()=>{const e=u.map((e=>e.value)),t=n.filter((t=>e.includes(t)));t.length!==n.length&&a(t)}),[n,u,a]);const[x,w]=(0,l.partition)(u,(e=>!n.includes(e.value)));return(0,o.createElement)("div",{className:"itsec-rjsf-include-exclude-widget"},v&&(0,o.createElement)(c.BaseControl.VisualLabel,null,v),_&&(0,o.createElement)("p",null,_),(0,o.createElement)("div",{className:"itsec-rjsf-include-exclude-widget__sides",id:e},(0,o.createElement)(P,{id:e+"__exclude",options:x,label:p,description:g,button:f,disabled:t||d,disabledOptions:m,autofocus:s,onToggle:e=>{(0,D.speak)((0,h.sprintf)((0,h.__)("Moved %1$s to %2$s.","better-wp-security"),(0,l.find)(x,{value:e}).label,E)),a([...n,e])}}),(0,o.createElement)(P,{id:e+"__include",options:w,label:E,description:y,button:C,disabled:t||d,disabledOptions:m,onToggle:e=>{(0,D.speak)((0,h.sprintf)((0,h.__)("Moved %1$s to %2$s.","better-wp-security"),(0,l.find)(w,{value:e}).label,p)),a(n.filter((t=>t!==e)))}})))}function P({id:e,label:t,description:r,options:n,button:a,onToggle:i,disabled:s,disabledOptions:u=[],autofocus:m}){const p=e+"__option__",[g,h]=(0,b.useState)("");return g&&!(0,l.find)(n,{value:g})&&h(""),(0,o.createElement)("div",{className:"itsec-rjsf-include-exclude-widget__side"},(0,o.createElement)(c.BaseControl,{id:e,help:(0,o.createElement)(d.VK,{noWrap:!0,content:r}),className:"itsec-rjsf-include-exclude-widget__listbox"},(0,o.createElement)("span",{className:"components-base-control__label",id:e+"__label"},t),(0,o.createElement)(d.NL,{role:"listbox",id:e,active:g&&p+g,"aria-labelledby":e+"__label","aria-describedby":r&&e+"__help",onNavigate:e=>h(e.substr(p.length)),onKeyDown:({keyCode:e})=>{if(!g||e!==R.DELETE&&e!==R.BACKSPACE)return;const t=(0,l.findIndex)(n,{value:g}),r=t+1<n.length?t+1:t-1;i(g),h(n[r]?.value||"")},autoFocus:m},n.map((e=>(0,o.createElement)("div",{id:p+e.value,key:e.value,role:s||u.includes(e.value)?"presentation":"option","aria-selected":e.value===g||void 0,onClick:s||u.includes(e.value)?void 0:()=>h(e.value)},e.label))))),(0,o.createElement)(c.Button,{variant:"secondary",disabled:!g,className:"itsec-rjsf-include-exclude-widget__move",onClick:()=>i(g),"aria-keyshortcuts":"Delete Backspace"},a))}function $({uiSchema:e,schema:t,idSchema:r,name:n,formData:a,disabled:i,readonly:l,onChange:s}){const c=(0,g.$R)(e);return(0,o.createElement)(m.F5,{id:r.$id,value:a,disabled:i,readonly:l,onChange:s,isMultiple:"array"===t.type,label:e["ui:title"]||t.title||n,description:e["ui:description"]||t.description,path:c.path,query:c.query,labelAttr:c.labelAttr,idAttr:c.idAttr,searchArg:c.searchArg})}function V({uiSchema:e,schema:t,name:r,formData:n,disabled:a,readonly:i,onChange:l}){const s=e["ui:title"]||t.title||r,c=e["ui:description"]||t.description,u=(0,g.$R)(e),{rows:m,placeholder:p}=u;return(0,o.createElement)(d.KK,{label:s,help:(0,o.createElement)(d.VK,{noWrap:!0,content:c}),disabled:a,readonly:i,rows:m,value:n,onChange:l,placeholder:p})}var H=r(85631),j=r.n(H),q=r(77172);function B({idSchema:e,formData:t,onChange:r,uiSchema:n,schema:a,name:i,disabled:s,readonly:u,autofocus:m}){const p=e.$id,g=n["ui:title"]||a.title||i,f=n["ui:description"]||a.description,[E,y]=(0,b.useState)([]),[C,v]=(0,b.useState)("");(0,b.useEffect)((()=>{j()({path:(0,q.addQueryArgs)("/ithemes-security/rpc/file-change/file-tree",{directory:"/"})}).then(y)}),[]);const _=e=>{r(t.includes(e)?t.filter((t=>t!==e)):[...t,e])};return(0,o.createElement)("div",{className:"itsec-rjsf-file-tree"},f&&(0,o.createElement)(d.VK,{content:f,tagName:"p"}),(0,o.createElement)("div",{className:"itsec-rjsf-file-tree__controls"},(0,o.createElement)("div",null,(0,o.createElement)(d.PH,{tree:E,id:p,label:(0,h.__)("File Selector","better-wp-security"),active:C,setActive:v,onActivate:_,onLoad:async e=>{const t=await j()({path:(0,q.addQueryArgs)("/ithemes-security/rpc/file-change/file-tree",{directory:e})}),r=(0,l.cloneDeep)(E);(0,d.Ir)(r,(r=>{if(r.id===e)return r.children=t,d.Ir.halt})),y(r)}}),(0,o.createElement)(c.Button,{variant:"secondary",disabled:!C,className:"itsec-rjsf-file-tree__select",onClick:()=>_(C),"aria-keyshortcuts":"Enter Space"},(0,h.__)("Select","better-wp-security"))),(0,o.createElement)(d.KK,{value:t,onChange:r,className:"itsec-rjsf-file-tree__list",label:g,disabled:s,readonly:u,autoFocus:m})))}function Z(e,t){return{value:e,label:t}}function U({uiSchema:e,schema:t,idSchema:r,name:n,formData:a,disabled:i,readonly:s,onChange:u}){const p=(0,g.$R)(e),{path:f,placeholder:E}=p,[y,C]=(0,b.useState)(null),[v,_]=(0,b.useState)(!0),x="array"===t.type;(0,b.useEffect)((()=>{f?j()({path:f}).then((e=>{C(e)})).finally((()=>_(!1))):_(!1)}),[f]);const w=(0,b.useCallback)((e=>new Promise((t=>{if(!y)return void t([]);const r=Object.entries(y).filter((([,t])=>t.toLowerCase().includes(e.toLowerCase()))).map((([e,t])=>Z(e,t)));t(r)}))),[y]),L=(0,b.useMemo)((()=>y?x?a?a.filter((e=>y[e])).map((e=>Z(e,y[e]))):[]:a&&y[a]?Z(a,y[a]):null:x?[]:null),[a,y,x]),S=(0,b.useMemo)((()=>!y||Object.entries(y).map((([e,t])=>Z(e,t)))),[y]),A=e?.["ui:description"]||t.description,O=e?.["ui:title"]||t.title||n;return(0,o.createElement)(c.BaseControl,{className:"itsec-api-select-field",label:O,help:A&&(0,o.createElement)(d.VK,{noWrap:!0,content:A}),id:r.$id},(0,o.createElement)(m.DW,{inputId:r.$id,classNamePrefix:"components-itsec-async-select-control",isDisabled:i||s,isLoading:v,isMulti:x,isClearable:!0,cacheOptions:!0,defaultOptions:S,loadOptions:w,value:L,onChange:e=>{u(x?(0,l.map)(e||[],"value"):e?.value||"")},placeholder:E||(0,h.__)("Select…","better-wp-security")}))}const W={templates:n,widgets:a,fields:i,validator:(0,r(62932).iY)()}},62247:e=>{e.exports=function(){return this.wp.isShallowEqual}()},62932:(e,t,r)=>{"use strict";r.d(t,{PY:()=>v,Z$:()=>N,Q7:()=>C,AR:()=>E,cM:()=>A,n7:()=>L,pC:()=>S,qD:()=>$,tO:()=>H,TE:()=>T,iY:()=>V,Cc:()=>F,Ng:()=>I,ZB:()=>M,d7:()=>w,KK:()=>x,Wy:()=>D,dD:()=>O,_t:()=>k,z6:()=>_,_D:()=>z,Mr:()=>R,aZ:()=>b});var n=r(66087),a=r(63282),i=r.n(a),l=r(74810),s=r(8601),o=r(77172),c=r(3075),d=r(64467);function u(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function m(e,t,r){return e.set(g(e,t),r),r}function p(e,t){return e.get(g(e,t))}function g(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,f=new WeakMap;class E{constructor(e=void 0,t=void 0,r=void 0){u(this,h,{}),u(this,f,{}),(0,d.A)(this,"add",((e,t,r)=>(p(h,this)[e]||(p(h,this)[e]=[]),p(h,this)[e].push(t),r&&(p(f,this)[e]||(p(f,this)[e]=[]),p(f,this)[e].push(r)),this))),(0,d.A)(this,"hasErrors",(()=>this.getErrorCodes().length>0)),(0,d.A)(this,"getErrorCodes",(()=>Object.keys(p(h,this)))),(0,d.A)(this,"getErrorCode",(()=>this.getErrorCodes()[0])),(0,d.A)(this,"getErrorMessages",((e=void 0)=>{if(e)return p(h,this)[e];const t=[];for(const e in p(h,this))p(h,this).hasOwnProperty(e)&&t.concat(p(h,this)[e]);return t})),(0,d.A)(this,"getErrorMessage",((e=void 0)=>(e=e||this.getErrorCode(),this.getErrorMessages(e)[0]))),(0,d.A)(this,"getErrorData",((e=void 0)=>(e=e||this.getErrorCode(),p(f,this)[e]))),(0,d.A)(this,"getAllErrorMessages",(()=>{const e=[];for(const t in p(h,this))p(h,this).hasOwnProperty(t)&&e.push(...p(h,this)[t]);return e})),e&&(t&&(p(h,this)[e]=[t]),r&&(p(f,this)[e]=r))}static fromPHPObject(e){const t=new E;return m(h,t,e.errors),m(f,t,e.error_data),t}static fromApiError(e){const t=new E;if(p(h,t)[e.code]=[e.message],p(f,t)[e.code]=[e.data],e.additional_errors)for(const r of e.additional_errors)p(h,t)[r.code]=[r.message],r.data&&(p(f,t)||m(f,t,[]),p(f,t)[r.code].push(r.data));return t}}class y extends Error{constructor(e,...t){super(e.message||(0,c.__)("An unknown error occurred.","better-wp-security"),...t),Error.captureStackTrace&&Error.captureStackTrace(this,y),this.__response=e;for(const t in e)e.hasOwnProperty(t)&&Object.defineProperty(this,t,{value:e[t],configurable:!0,enumerable:!0,writable:!0})}toString(){return this.__response.toString()}getResponse(){return this.__response}}class C{constructor(e,t,r=null,n=[],a=[],i=[]){(0,d.A)(this,"type",void 0),(0,d.A)(this,"error",void 0),(0,d.A)(this,"data",void 0),(0,d.A)(this,"success",void 0),(0,d.A)(this,"info",void 0),(0,d.A)(this,"warning",void 0),this.type=e,this.error=t,this.data=r,this.success=n,this.info=a,this.warning=i,Object.seal(this)}isSuccess(){return this.type===C.SUCCESS}static async fromResponse(e){const t=t=>{const r=e.headers?.get(`X-Messages-${t}`);return r?JSON.parse(r):[]},r=204!==e.status&&e.json?await e.json():null,n=L(r),a=n.hasErrors()?C.ERROR:C.SUCCESS,i=t("Success"),l=t("Info"),s=t("Warning");return new C(a,n,r,i,l,s)}static fromResponseObject({body:e,headers:t}){const r=e=>{const r=t?.[`X-Messages-${e}`];return r?JSON.parse(r):[]},n=L(e),a=n.hasErrors()?C.ERROR:C.SUCCESS,i=r("Success"),l=r("Info"),s=r("Warning");return new C(a,n,e,i,l,s)}static fromError(e){return new C(C.ERROR,L(e))}}Object.defineProperty(C,"SUCCESS",{value:"success",writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(C,"ERROR",{value:"error",writable:!1,enumerable:!1,configurable:!1});const v=(0,s.createContext)({getUrl(e,t){e="settings"===e?"itsec":"itsec-"+e;const r=(0,o.removeQueryArgs)(document.location.href,...Object.keys((0,o.getQueryArgs)(document.location.href)));return(0,o.addQueryArgs)(r,t?{page:e,path:t}:{page:e})}});function b(e,t){const{getUrl:r}=(0,s.useContext)(v);return r(e,t)}function _(e){if(e<=999)return e.toString();if(e<=9999){const t=(e/1e3).toFixed(1);return"0"===t.charAt(t.length-1)?t.replace(".0","k"):`${t}k`}if(e<=99999)return e.toString().substring(0,2)+"k";if(e<=999999)return e.toString().substring(0,3)+"k";if(e<=9999999){const t=(e/1e6).toFixed(1);return"0"===t.charAt(t.length-1)?t.replace(".0","m"):`${t}m`}if(e<=99999999)return e.toString().substring(0,2)+"m";if(e<=999999999)return e.toString().substring(0,3)+"m";if(e<=9999999999){const t=(e/1e9).toFixed(1);return"0"===t.charAt(t.length-1)?t.replace(".0","b"):`${t}b`}return e}function x(e){if(!(0,n.isPlainObject)(e))return!1;const t=Object.keys(e);return 2===t.length&&t.includes("errors")&&t.includes("error_data")}function w(e){if(!(0,n.isPlainObject)(e))return!1;const t=Object.keys(e);return(3===t.length||4===t.length)&&!(4===t.length&&!t.includes("additional_errors"))&&t.includes("code")&&t.includes("message")&&t.includes("data")}function L(e){return e instanceof E?e:x(e)?E.fromPHPObject(e):w(e)?E.fromApiError(e):new E}function S(e){const t={};for(const[r,n]of e)t[r]=n;return t}function A(e,t){const r=[[],[]];for(const n of e)r[t(n)?0:1].push(n);return r}function O(e){if(e instanceof Error)throw e;throw new y(e)}const N="https://secure.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=96&d=mm&f=y&r=g";function M(e,t,r=!0){return(0,n.get)(e,["_links","self",0,"targetHints",t],r?void 0:[])}function I(e){return T(e,"self")}function k(e){const t=e.indexOf("/ithemes-security/");if(-1!==t)return e.substring(t)}function T(e,t){return(0,n.get)(e,["_links",t,0,"href"])}function F(e,t){if(e&&e.links)for(const r of e.links)if(r.rel===t)return r}function D(e,t){if("object"!==e.type)return e;let r;for(const a in t)t.hasOwnProperty(a)&&"hidden"===t[a]["ui:widget"]&&(r||(r=(0,n.cloneDeep)(e)),delete r.properties[a]);return r||e}function R(e){let t=[];if(!e)return t;const r=e instanceof E?e:L((0,n.pick)(e,["code","message","data"]));return"rest_invalid_param"===r.getErrorCode()&&(t=Object.values(r.getErrorData().params)),[...r.getAllErrorMessages(),...t]}function z(e){const t=new Date;if(e>t)return(0,c.__)("Online Recently","better-wp-security");const r=Math.floor((t-e)/1e3);let n=r/31536e3;return n>1?(0,c.sprintf)((0,c.__)("%s years","better-wp-security"),Math.floor(n)):(n=r/2592e3,n>1?(0,c.sprintf)((0,c.__)("%s months","better-wp-security"),Math.floor(n)):(n=r/86400,n>1?(0,c.sprintf)((0,c.__)("%s days","better-wp-security"),Math.floor(n)):(n=r/3600,n>1?(0,c.sprintf)((0,c.__)("%s hours","better-wp-security"),Math.floor(n)):(n=r/60,n>1?(0,c.sprintf)((0,c.__)("%s minutes","better-wp-security"),Math.floor(n)):(0,c.sprintf)((0,c.__)("%s seconds","better-wp-security"),Math.floor(n))))))}const P={html:{type:"string",validate:()=>!0},"relative-file-path":{type:"string",validate:e=>!e.includes("../")},"file-path":{type:"string",validate:e=>!!e.startsWith("/")&&!e.includes("../")},directory:{type:"string",validate:e=>!!e.startsWith("/")&&!e.includes("../")},email:{type:"string",validate:e=>function(e){if(!e||"string"!=typeof e)return!1;if(e.length<6)return!1;if(-1===e.indexOf("@",1))return!1;const[t,r]=e.split("@");if(!/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/.test(t))return!1;if(/\.{2,}/.test(r))return!1;if(r.trim().replace(/^\.|\.$/g,"")!==r)return!1;const n=r.split(".");if(n.length<2)return!1;for(const e of n){if(e.trim().replace(/^-|-$/g,"")!==e)return!1;if(!/^[a-z0-9-]+$/i.test(e))return!1}return e}(e)}};function $(){return $.instance||($.instance=new(i())({strict:!1,formats:P})),$.instance}function V(){return V.instance||(V.instance=(0,l.Eg)({customFormats:P,ajvOptionsOverrides:{strict:!1}})),V.instance}function H(e){if(!e)return"";const t=e.toUpperCase().split("").map((e=>127397+e.charCodeAt()));return String.fromCodePoint(...t)}},66087:e=>{"use strict";e.exports=window.lodash},75413:(e,t,r)=>{"use strict";r.d(t,{n:()=>l});var n=r(17929),a=r(86663),i=r(66087);function l(e,t){const r=(0,n.zR)(),l=r=>{const i="string"==typeof r?(0,n.Rr)(r):r,l=(0,a.parse)(i.search?.substring(1))||{};return{...i,pathname:e.pathname,search:"?"+(0,a.stringify)({...l,path:i.pathname,...t})}};return{get length(){return r.length},get action(){return r.action},get location(){const e=(0,a.parse)(r.location.search.substring(1)),n=e.path||"/";return{...r.location,pathname:n,search:"?"+(0,a.stringify)((0,i.omit)(e,["path",Object.keys(t)]))}},createHref:e=>r.createHref(l(e)),push:(e,t)=>{r.push(l(e),t)},replace:(e,t)=>{r.replace(l(e),t)},go:(...e)=>r.go.apply(r,e),goBack:(...e)=>r.goBack.apply(r,e),goForward:(...e)=>r.goForward.apply(r,e),block:(...e)=>r.block.apply(r,e),listen(e){return r.listen((()=>{e(this.location,this.action)}))}}}},75795:e=>{"use strict";e.exports=window.ReactDOM},76154:e=>{"use strict";e.exports=window.moment},77172:e=>{e.exports=function(){return this.wp.url}()},79860:e=>{e.exports=function(){return this.wp.keycodes}()},85631:e=>{e.exports=function(){return this.wp.apiFetch}()},89897:e=>{e.exports=function(){return this.wp.compose}()},89959:e=>{e.exports=function(){return this.wp.date}()},96126:e=>{e.exports=function(){return this.wp.deprecated}()},99103:(e,t,r)=>{"use strict";r.d(t,{E:()=>V,v:()=>I});var n={};r.r(n),r.d(n,{REGISTER_PROVIDER:()=>z,registerProvider:()=>R});var a={};r.r(a),r.d(a,{getProviders:()=>P});var i=r(58168),l=r(51609),s=r(54625),o=r(56347),c=r(17929),d=r(66087),u=r(39959),m=r(3075),p=r(8601),g=r(31987),h=r(89897),f=r(79860),E=r(11431),y=r(26843),C=r(64716),v=r(75596);function b(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function _(e,t){return e.get(w(e,t))}function x(e,t,r){return e.set(w(e,t),r),r}function w(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var L=new WeakMap,S=new WeakMap,A=new WeakMap,O=new WeakMap,N=new WeakMap;class M{constructor(e,t){b(this,L,void 0),b(this,S,void 0),b(this,A,void 0),b(this,O,void 0),b(this,N,void 0),x(L,this,e),x(S,this,t),x(A,this,t.select(V).getProviders()),this._prepare()}_prepare(){x(N,this,_(L,this).split(/\s+/g).map((e=>e.trim().toLowerCase())).filter((e=>!!e)));const e=_(L,this).endsWith(" ");x(O,this,new RegExp(_(N,this).map(((t,r)=>r+1!==_(N,this).length||e?`(?=.*\\b${(0,d.escapeRegExp)(t)}\\b)`:`(?=.*\\b${(0,d.escapeRegExp)(t)})`)).join("")+".+","gi"))}_stringMatch(e){return e&&_(O,this).test(e)}_keywordMatch(e){return!(!e||!e.length)&&e.some((e=>_(N,this).some(((t,r)=>e.includes(" ")?this._stringMatch(e):r===_(N,this).length-1?e.startsWith(t):t===e))))}getResults(){if(_(L,this).length<3)return[{},0];let e=0;const t=[],r={stringMatch:e=>this._stringMatch(e),keywordMatch:e=>this._keywordMatch(e)};for(const n of _(A,this)){const a={title:n.title,items:[],groups:{}};e+=n.callback({evaluate:r,results:a,registry:_(S,this)}),!a.items.length&&(0,d.isEmpty)(a.groups)||t.push(a)}return[t,e]}}const I=(0,p.forwardRef)((function({onPick:e=d.noop,showResults:t},r){const[n,a]=(0,p.useState)(""),[s,o]=(0,p.useState)(!1),c=(0,p.useRef)(),u=(0,p.useRef)(),[v,b]=(0,p.useState)([]),_=(0,g.useRegistry)(),x=(0,p.useCallback)((e=>{const t=new M(e,_).getResults();b(t[0]),(0,E.speak)((0,m.sprintf)((0,m._n)("%d result found.","%d results found.",t[1],"better-wp-security"),t[1]))}),[_]),w=(0,h.useDebounce)(x,50),L=(0,p.useCallback)((e=>{c.current&&(e.preventDefault(),c.current.focus())}),[c]);return(0,h.useKeyboardShortcut)("/",L),(0,l.createElement)("div",(0,i.A)({className:"itsec-search"},(0,C.$I)((()=>o(!1)))),(0,l.createElement)("div",null,(0,l.createElement)(y.qz,{value:n,onChange:e=>{a(e),w(e)},onFocus:()=>o(!0),onKeyDown:e=>{e.keyCode===f.DOWN&&(e.preventDefault(),u.current.focus())},ref:(0,C.SV)([r,c]),placeholder:(0,m.__)("Search for features, settings, and more","better-wp-security"),omitSeparators:!0,size:"large"}),(s||t)&&n.length>=3&&(0,l.createElement)(k,{results:v,exitSearch:t=>{e(t),o(!1)},ref:u,onPick:e})))})),k=(0,p.forwardRef)((function({results:e,exitSearch:t,onPick:r},n){const a=(0,p.useRef)();(0,p.useImperativeHandle)(n,(()=>({focus(){a.current.focus()}})));const s=(0,h.useInstanceId)(k,"itsec-search"),g=s+"__result__",E=function(){const e=(0,o.W6)();return(t,r="push")=>e[r]((0,c.yJ)(t))}(),[y,C]=(0,p.useState)("");return(0,d.isEmpty)(e)?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(u.VisuallyHidden,{id:s+"__label"},(0,m.__)("Search Results","better-wp-security")),(0,l.createElement)(v.NL,{className:"itsec-search__results",id:s,active:y&&g+y,onNavigate:e=>C(e.substring(g.length)),onKeyDown:({keyCode:e})=>{!y||e!==f.ENTER&&e!==f.SPACE||(r(y),E(y),t())},onFocus:()=>{if(!y&&!(0,d.isEmpty)(e)){const[,t]=Object.entries(e)[0];if(t.items?.length)C(t.items[0].route);else if(!(0,d.isEmpty)(t.groups)){const[,e]=Object.entries(t.groups)[0];C(e.items[0].route)}}},role:"listbox",descendantRoles:"option",ref:a,"aria-labelledby":s+"__label"},(0,d.map)(e,((e,r)=>(0,l.createElement)(T,(0,i.A)({key:r},e,{active:y,idPrefix:g,exitSearch:t}))))))}));function T({title:e,items:t,groups:r,...n}){const a=(0,h.useInstanceId)(k,"itsec-search__kind");return(0,l.createElement)("ul",{className:"itsec-search__kind",role:"group","aria-labelledby":a},(0,l.createElement)("li",{role:"presentation",id:a},e),(t||[]).map((e=>(0,l.createElement)(D,(0,i.A)({key:e.route},e,n)))),(0,d.map)(r,((e,t)=>(0,l.createElement)(F,(0,i.A)({key:t},e,n)))))}function F({title:e,items:t,...r}){const n=(0,h.useInstanceId)(k,"itsec-search__group");return(0,l.createElement)("ul",{className:"itsec-search__group",role:"group","aria-labelledby":n},(0,l.createElement)("li",{role:"presentation",id:n},(0,l.createElement)("span",null,e)),(t||[]).map((e=>(0,l.createElement)(D,(0,i.A)({key:e.route},e,r)))))}function D({title:e,description:t,route:r,active:n,idPrefix:a,exitSearch:i}){return(0,l.createElement)("li",{className:"itsec-search__result",role:"option","aria-selected":n===r||void 0,id:a+r,"aria-label":e},(0,l.createElement)(s.N_,{to:r,tabIndex:-1,onClick:()=>i(r)},(0,l.createElement)("span",null,e),(0,l.createElement)(v.VK,{content:t,noHtml:!0,tagName:"p"})))}function R(e,t,r,n){return{type:z,slug:e,title:t,priority:r,callback:n}}const z="REGISTER_PROVIDER",P=(0,r(84156).A)((e=>(0,d.sortBy)(e.providers,"priority")),(e=>e.providers)),$={providers:{}},V="ithemes-security/search";(0,g.registerStore)(V,{actions:n,selectors:a,reducer:function(e=$,t){return t.type===z?{...e,providers:{...e.providers,[t.slug]:(0,d.omit)(t,["type"])}}:e}})}},e=>{e.O(0,[9427,6843,2038,9819,8363,5152,4887,5655,3520,4319,5596],(()=>e(e.s=61958)));var t=e.O();((window.itsec=window.itsec||{}).pages=window.itsec.pages||{}).settings=t}]);