/
home
/
assocoweys
/
couleur
/
wordpress
/
wp-content
/
plugins
/
better-wp-security
/
dist
/
dashboard
/
Upload File
HOME
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[2932,4896],{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}()},17232:e=>{e.exports=function(){return this.wp.domReady}()},24740:e=>{e.exports=function(){return this.itsec.dashboard.api}()},29672:e=>{e.exports=function(){return this.wp.notices}()},31169:(e,t,a)=>{"use strict";a.d(t,{CM:()=>k,In:()=>S,Jc:()=>C,LO:()=>E,QO:()=>h,TW:()=>D,ZG:()=>p,cJ:()=>b,ig:()=>y,ih:()=>_,lc:()=>O,m8:()=>g,mg:()=>I,nz:()=>u,q3:()=>w,rP:()=>m,tl:()=>x,uj:()=>f,wT:()=>M,yq:()=>v});var r=a(66087),n=a(98616),i=a.n(n),s=a(31987),l=a(3075),o=a(2873),c=a(8601),d=a(62932);const h=(0,c.createContext)({canManage:!1,installType:""});function m(){return(0,c.useContext)(h)}function u(){const{canCreate:e,canEdit:t}=(0,s.useSelect)((e=>({canCreate:e("ithemes-security/dashboard").canCreateDashboards(),canEdit:e("ithemes-security/dashboard").canEditDashboard(e("ithemes-security/dashboard").getViewingDashboardId())})),[]);return e||t}const C=Object.freeze(["wide","large","medium","mobile"]),p=Object.freeze({wide:4,large:3,medium:2,mobile:1}),g=400,f=20,E=Object.freeze(C.reduce(((e,t)=>({...e,[t]:g*p[t]+f*(p[t]-1)})),{}));function y(e){const t=C.find((t=>E[t]+f<=e));return p[t]*(g+f)}const L=["minW","minH","maxW","maxH"];function b(e,t){const a=(0,s.select)("ithemes-security/dashboard"),r={};for(const e in t){if(!t.hasOwnProperty(e))continue;const n=t[e];for(const t of n){const n=a.getDashboardCard(parseInt(t.i));n&&(r[n.id]?(r[n.id].size[e]={w:t.w,h:t.h},r[n.id].position[e]={x:t.x&&t.x!==1/0?t.x:0,y:t.y&&t.y!==1/0?t.y:0}):r[n.id]={id:n.id,card:n.card,size:{[e]:{w:t.w,h:t.h}},position:{[e]:{x:t.x&&t.x!==1/0?t.x:0,y:t.y&&t.y!==1/0?t.y:0}}})}}return{cards:Object.values(r)}}function _(e,t,{cards:a={}}){const n=(0,r.zipObject)(Object.keys(E),(0,r.times)(Object.keys(E).length,(()=>[]))),i={};for(const t of a){i[t.id]=!0;const a=(0,s.select)("ithemes-security/dashboard").getAvailableCard(t.card);if(a||"unknown"===t.card)for(const r of C)n[r].push(x(e,t,a,r,n[r]))}if(Object.keys(i).length<t.length)for(const a of t)if(!i[a.id]){const t=(0,s.select)("ithemes-security/dashboard").getAvailableCard(a.card);if(t)for(const r of C)n[r].push(x(e,a,t,r,n[r]))}return n}function x(e,t,a,n,i){if(!E[n])return;const l={i:t.id.toString(),x:(0,r.get)(t,["position",n,"x"]),y:(0,r.get)(t,["position",n,"y"]),w:(0,r.get)(t,["size",n,"w"],(0,r.get)(a,["size","defaultW"],1)),h:(0,r.get)(t,["size",n,"h"],(0,r.get)(a,["size","defaultH"],2))};if(a&&a.size)for(const e of L)a.size.hasOwnProperty(e)&&(l[e]=a.size[e]);if(l.minW&&l.minW>l.w&&(l.w=l.minW),l.minH&&l.minH>l.h&&(l.h=l.minH),l.maxW&&l.w>l.maxW&&(l.w=l.maxW),l.maxH&&l.h>l.maxH&&(l.h=l.maxH),i&&void 0===l.x&&void 0===l.x){const e=w(p[n],i,{w:l.w,h:l.h});e&&(l.x=e.x,l.y=e.y)}return l.x=void 0===l.x||null===l.x?0:l.x,l.y=void 0===l.y||null===l.y?1/0:l.y,(0,s.select)("ithemes-security/dashboard").canEditDashboard(e)||(l.static=!0),"unknown"===t.card&&(l.isResizable=!1),l.minW===l.maxW&&l.minH===l.maxH&&(l.isResizable=!1),l}function w(e,t,a){const r=[];for(const a of t){const{x:t,y:n,w:i,h:s}=a;for(let a=0;a<s;a++){r[a]||(r[a]=new Array(e).fill(0));for(let s=0;s<i;s++)r[a+n]||(r[a+n]=new Array(e).fill(0)),r[a+n][s+t]=1}}const{w:n,h:i}=a;for(let t=0;t<r.length;t++)e:for(let a=0;a<e;a++)if(!r[t]||1!==r[t][a]){for(let s=0;s<i;s++)for(let i=0;i<n;i++)if(t+s>r.length||a+i>=e||r[t+s]&&1===r[t+s][a+i])continue e;return{x:a,y:t}}return{x:0,y:r.length}}function A(e,t){return e.x===t.x&&e.y===t.y&&e.w===t.w&&e.h===t.h}const v=i()((function(e,t){if(e===t)return!0;if(Object.keys(e).length!==Object.keys(t).length)return!1;const a=new Map;for(let r=0;r<C.length;r++){const n=C[r];if(e[n]||t[n]){if(!e[n]&&t[n]||e[n]&&!t[n])return!1;if(e[n].length!==t[n].length)return!1;for(let t=0;t<e[n].length;t++)a.set(e[n][t].i,e[n][t]);for(let e=0;e<t[n].length;e++){const r=a.get(t[n][e].i);if(!r)return!1;if(!A(r,t[n][e]))return!1;a.delete(r.i)}if(a.size>0)return!1}}return!0})),M=i()((function(e,t,a){const n=(0,r.keyBy)(t[a],"i"),i=[...e];return i.sort((function(e,t){const a=e.id.toString(),r=t.id.toString();if(!n[a]&&!n[r])return 0;if(n[a]&&!n[r])return 1;if(!n[a]&&n[r])return-1;const i=n[a].y,s=n[r].y,l=n[a].x,o=n[r].x;return i>s?1:i<s?-1:l>o?1:l<o?-1:0})),i})),k=i()((function(e,t){const a=(0,r.keyBy)(t.cards,"id"),n=[...e];return n.sort((function(e,t){const r=e.id,n=t.id;if(!a[r]&&!a[n])return 0;if(a[r]&&!a[n])return 1;if(!a[r]&&a[n])return-1;if(!a[r].position.mobile&&!a[n].position.mobile)return 0;const i=a[r].position.mobile.y,s=a[n].position.mobile.y,l=a[r].position.mobile.x,o=a[n].position.mobile.x;return i>s?1:i<s?-1:l>o?1:l<o?-1:0})),n}));function O(e,t){if(!t)return(0,l.__)("Unknown Card","better-wp-security");let a=t.label;return a=(0,o.applyFilters)(`ithemes-security.dashboard.getCardTitle.${t.slug}`,a,e),(0,o.applyFilters)("ithemes-security.dashboard.getCardTitle",a,e,t)}function I(e){if(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}`}}}function S(e,t,a,r){Object.entries(a).forEach((([t,a])=>e[t]!==a&&console.log(`Prop '${t}' changed`))),Object.entries(r).forEach((([e,a])=>t[e]!==a&&console.log(`State '${e}' changed`)))}function D(e){return(0,r.get)(e,["avatar_urls",96],d.Z$)}},31987:e=>{e.exports=function(){return this.wp.data}()},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}()},62247:e=>{e.exports=function(){return this.wp.isShallowEqual}()},62932:(e,t,a)=>{"use strict";a.d(t,{PY:()=>L,Z$:()=>O,Q7:()=>y,AR:()=>f,cM:()=>M,n7:()=>A,pC:()=>v,qD:()=>$,tO:()=>F,TE:()=>Z,iY:()=>P,Cc:()=>N,Ng:()=>S,ZB:()=>I,d7:()=>w,KK:()=>x,Wy:()=>z,dD:()=>k,_t:()=>D,z6:()=>_,_D:()=>T,Mr:()=>R,aZ:()=>b});var r=a(66087),n=a(63282),i=a.n(n),s=a(74810),l=a(8601),o=a(77172),c=a(3075),d=a(64467);function h(e,t,a){(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,a)}function m(e,t,a){return e.set(C(e,t),a),a}function u(e,t){return e.get(C(e,t))}function C(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,g=new WeakMap;class f{constructor(e=void 0,t=void 0,a=void 0){h(this,p,{}),h(this,g,{}),(0,d.A)(this,"add",((e,t,a)=>(u(p,this)[e]||(u(p,this)[e]=[]),u(p,this)[e].push(t),a&&(u(g,this)[e]||(u(g,this)[e]=[]),u(g,this)[e].push(a)),this))),(0,d.A)(this,"hasErrors",(()=>this.getErrorCodes().length>0)),(0,d.A)(this,"getErrorCodes",(()=>Object.keys(u(p,this)))),(0,d.A)(this,"getErrorCode",(()=>this.getErrorCodes()[0])),(0,d.A)(this,"getErrorMessages",((e=void 0)=>{if(e)return u(p,this)[e];const t=[];for(const e in u(p,this))u(p,this).hasOwnProperty(e)&&t.concat(u(p,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(),u(g,this)[e]))),(0,d.A)(this,"getAllErrorMessages",(()=>{const e=[];for(const t in u(p,this))u(p,this).hasOwnProperty(t)&&e.push(...u(p,this)[t]);return e})),e&&(t&&(u(p,this)[e]=[t]),a&&(u(g,this)[e]=a))}static fromPHPObject(e){const t=new f;return m(p,t,e.errors),m(g,t,e.error_data),t}static fromApiError(e){const t=new f;if(u(p,t)[e.code]=[e.message],u(g,t)[e.code]=[e.data],e.additional_errors)for(const a of e.additional_errors)u(p,t)[a.code]=[a.message],a.data&&(u(g,t)||m(g,t,[]),u(g,t)[a.code].push(a.data));return t}}class E extends Error{constructor(e,...t){super(e.message||(0,c.__)("An unknown error occurred.","better-wp-security"),...t),Error.captureStackTrace&&Error.captureStackTrace(this,E),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 y{constructor(e,t,a=null,r=[],n=[],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=a,this.success=r,this.info=n,this.warning=i,Object.seal(this)}isSuccess(){return this.type===y.SUCCESS}static async fromResponse(e){const t=t=>{const a=e.headers?.get(`X-Messages-${t}`);return a?JSON.parse(a):[]},a=204!==e.status&&e.json?await e.json():null,r=A(a),n=r.hasErrors()?y.ERROR:y.SUCCESS,i=t("Success"),s=t("Info"),l=t("Warning");return new y(n,r,a,i,s,l)}static fromResponseObject({body:e,headers:t}){const a=e=>{const a=t?.[`X-Messages-${e}`];return a?JSON.parse(a):[]},r=A(e),n=r.hasErrors()?y.ERROR:y.SUCCESS,i=a("Success"),s=a("Info"),l=a("Warning");return new y(n,r,e,i,s,l)}static fromError(e){return new y(y.ERROR,A(e))}}Object.defineProperty(y,"SUCCESS",{value:"success",writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(y,"ERROR",{value:"error",writable:!1,enumerable:!1,configurable:!1});const L=(0,l.createContext)({getUrl(e,t){e="settings"===e?"itsec":"itsec-"+e;const a=(0,o.removeQueryArgs)(document.location.href,...Object.keys((0,o.getQueryArgs)(document.location.href)));return(0,o.addQueryArgs)(a,t?{page:e,path:t}:{page:e})}});function b(e,t){const{getUrl:a}=(0,l.useContext)(L);return a(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,r.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,r.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 A(e){return e instanceof f?e:x(e)?f.fromPHPObject(e):w(e)?f.fromApiError(e):new f}function v(e){const t={};for(const[a,r]of e)t[a]=r;return t}function M(e,t){const a=[[],[]];for(const r of e)a[t(r)?0:1].push(r);return a}function k(e){if(e instanceof Error)throw e;throw new E(e)}const O="https://secure.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=96&d=mm&f=y&r=g";function I(e,t,a=!0){return(0,r.get)(e,["_links","self",0,"targetHints",t],a?void 0:[])}function S(e){return Z(e,"self")}function D(e){const t=e.indexOf("/ithemes-security/");if(-1!==t)return e.substring(t)}function Z(e,t){return(0,r.get)(e,["_links",t,0,"href"])}function N(e,t){if(e&&e.links)for(const a of e.links)if(a.rel===t)return a}function z(e,t){if("object"!==e.type)return e;let a;for(const n in t)t.hasOwnProperty(n)&&"hidden"===t[n]["ui:widget"]&&(a||(a=(0,r.cloneDeep)(e)),delete a.properties[n]);return a||e}function R(e){let t=[];if(!e)return t;const a=e instanceof f?e:A((0,r.pick)(e,["code","message","data"]));return"rest_invalid_param"===a.getErrorCode()&&(t=Object.values(a.getErrorData().params)),[...a.getAllErrorMessages(),...t]}function T(e){const t=new Date;if(e>t)return(0,c.__)("Online Recently","better-wp-security");const a=Math.floor((t-e)/1e3);let r=a/31536e3;return r>1?(0,c.sprintf)((0,c.__)("%s years","better-wp-security"),Math.floor(r)):(r=a/2592e3,r>1?(0,c.sprintf)((0,c.__)("%s months","better-wp-security"),Math.floor(r)):(r=a/86400,r>1?(0,c.sprintf)((0,c.__)("%s days","better-wp-security"),Math.floor(r)):(r=a/3600,r>1?(0,c.sprintf)((0,c.__)("%s hours","better-wp-security"),Math.floor(r)):(r=a/60,r>1?(0,c.sprintf)((0,c.__)("%s minutes","better-wp-security"),Math.floor(r)):(0,c.sprintf)((0,c.__)("%s seconds","better-wp-security"),Math.floor(r))))))}const j={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,a]=e.split("@");if(!/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/.test(t))return!1;if(/\.{2,}/.test(a))return!1;if(a.trim().replace(/^\.|\.$/g,"")!==a)return!1;const r=a.split(".");if(r.length<2)return!1;for(const e of r){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:j})),$.instance}function P(){return P.instance||(P.instance=(0,s.Eg)({customFormats:j,ajvOptionsOverrides:{strict:!1}})),P.instance}function F(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},67243:(e,t,a)=>{"use strict";a.r(t),a.d(t,{BREAKPOINTS:()=>O.LO,BREAKPOINT_ORDER:()=>O.Jc,CARD_MARGIN:()=>O.uj,CARD_WIDTH:()=>O.m8,Card:()=>Qe,CardFooter:()=>Ut,CardFooterSchemaActions:()=>Ft,CardHappy:()=>Kt,CardHeader:()=>D,CardHeaderTitle:()=>I,ConfigContext:()=>O.QO,GRID_COLUMNS:()=>O.ZG,PromoCard:()=>Ht,areGridLayoutsEqual:()=>O.yq,debugChange:()=>O.In,findSlot:()=>O.q3,getAvatarUrl:()=>O.TW,getCardTitle:()=>O.lc,getMaxWidthForGrid:()=>O.ig,getModuleRoute:()=>O.mg,sortCardsToMatchApiLayout:()=>O.CM,sortCardsToMatchLayout:()=>O.wT,transformApiLayoutToGrid:()=>O.ih,transformApiLayoutToGridForCard:()=>O.tl,transformGridLayoutToApi:()=>O.cJ,useCanWrite:()=>O.nz,useConfigContext:()=>O.rP,useRegisterCards:()=>ge});var r={};a.r(r),a.d(r,{default:()=>ue,settings:()=>pe,slug:()=>Ce});var n=a(51609),i=a(3075),s=a(8601),l=a(17232),o=a.n(l),c=a(79487),d=a(66816),h=a(39959),m=a(89897),u=a(31987),C=a(38125),p=(a(29672),a(26843)),g=a(24740),f=a(46627),E=a(64716),y=a(66087),L=a(44653),b=a(50300),_=a(77984),x=a(23495),w=a(78687),A=a(84124),v=a(89959),M=a(4319),k=a(81923),O=a(31169);function I({card:e,config:t}){return(0,n.createElement)(p.DZ,{level:2,className:"itsec-card-header-title",variant:p.J3.DARK,size:p.$C.LARGE,weight:p.uL.HEAVY,text:(0,O.lc)(e,t)})}const S=(0,k.A)("header",{target:"e16wimew0"})("display:flex;justify-content:",(({align:e})=>"left"===e?"start":"space-between"),";align-items:center;gap:0.5rem;cursor:move;min-height:calc(36px + 1.5rem);border-bottom:1px solid ",(({theme:e})=>e.colors.border.normal),";");function D({align:e="center",children:t}){return(0,n.createElement)(S,{align:e,className:"itsec-card-header itsec-card__util-padding"},t)}var Z=a(33520),N=a(62932);const z=(0,k.A)(p.ui,{target:"eoy6y2w1"})({name:"mizjgb",styles:"display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px 8px;border-radius:2px"}),R=(0,k.A)("div",{target:"eoy6y2w0"})({name:"1m84zdt",styles:"display:flex;flex-direction:column;justify-content:center;align-items:center;height:275px;gap:1rem;padding:2rem"});function T({active:e,payload:t}){if(!e||!t?.length)return null;const a=(0,i.sprintf)((0,i._n)("%d attempt","%d attempts",t[0].value,"better-wp-security"),t[0].value);return(0,n.createElement)(z,{variant:p.ls.DARK},(0,n.createElement)(p.EY,{as:"p",text:a}),(0,n.createElement)(p.EY,{as:"p",text:t[0].payload.name}))}function j({card:e}){const t=(0,N.aZ)("settings","/settings/configure/lockout");return e?"brute-force"===e.card?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(p.EY,{align:"center",variant:p.J3.DARK,text:(0,i.__)("There are no recently blocked threats. This could mean there haven’t been any attacks recently.","better-wp-security")}),(0,n.createElement)(p.EY,{align:"center",variant:p.J3.DARK,text:(0,i.__)("Make sure to configure the firewall settings if you haven’t yet!","better-wp-security")}),(0,n.createElement)(p.$n,{href:t,text:(0,i.__)("Configure Firewall","better-wp-security")})):void 0:null}function $({card:e,config:t}){const[a,r]=(0,m.useResizeObserver)(),{period:i}=(0,u.useSelect)((a=>{var r;return{period:null!==(r=a("ithemes-security/dashboard").getDashboardCardQueryArgs(e.id)?.period)&&void 0!==r?r:t.query_args.period?.default}}),[e.id,t]),{queryDashboardCard:s}=(0,u.useDispatch)("ithemes-security/dashboard"),l=(0,c.u)(),o=[],d=[];let h=0;if(!(0,y.isEmpty)(e.data))for(const t in e.data)if(e.data.hasOwnProperty(t)){for(let a=0;a<e.data[t].data.length;a++){const r=e.data[t].data[a];if(h+=r.y,o[a])o[a][t]=r.y;else{const e="24-hours"===i?"g A":"M j";o.push({name:r.t?(0,v.dateI18n)(e,r.t):r.x,[t]:r.y})}}d.push({name:e.data[t].label,dataKey:t})}return(0,n.createElement)("div",{className:"itsec-card--type-line-graph"},a,(0,n.createElement)(D,null,(0,n.createElement)(I,{card:e,config:t}),(0,n.createElement)(M.n_,{value:i,onChange:t=>s(e.id,{period:t})})),h>0||"brute-force"!==e.card?(0,n.createElement)(L.u,{width:"100%",height:"100%"},(0,n.createElement)(b.Q,{data:o,margin:{top:40,left:-15,right:50,bottom:10}},r.width>=800?(0,n.createElement)(_.W,{interval:1,dataKey:"name",tickLine:!1,stroke:l.colors.text.muted}):(0,n.createElement)(_.W,{ticks:[o[0]?.name,o[o.length/2]?.name,o[o.length-1].name],dataKey:"name",tickLine:!1,stroke:l.colors.text.muted}),(0,n.createElement)(x.h,{allowDecimals:!1,tickLine:!1,stroke:l.colors.text.muted}),(0,n.createElement)(w.m,{content:(0,n.createElement)(T,null)}),d.map((e=>(0,n.createElement)(A.G,{type:"linear",key:e.dataKey,dataKey:e.dataKey,stroke:l.colors.primary.darker20,fill:l.colors.tertiary.base,isAnimationActive:!1,dot:!0}))))):(0,n.createElement)(R,null,(0,n.createElement)(M.zf,{icon:(0,n.createElement)(Z.r,null)}),(0,n.createElement)(j,{card:e})))}var P=a(17228),F=a(98416),Y=a(56122),U=a(46942),W=a.n(U);const H=(0,k.A)("div",{target:"e1nkckza2"})({name:"1ijyxvm",styles:"display:flex;align-items:center;justify-content:center;column-gap:1.5rem"}),B=(0,k.A)("div",{target:"e1nkckza1"})({name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"}),J=(0,k.A)(p.EY,{target:"e1nkckza0"})("display:grid;grid-template-columns:1rem 2.25rem;justify-content:end;align-items:center;grid-gap:0.25rem;color:",(({color:e})=>e),";");function q({card:e,config:t}){const{period:a}=(0,u.useSelect)((a=>{var r;return{period:null!==(r=a("ithemes-security/dashboard").getDashboardCardQueryArgs(e.id)?.period)&&void 0!==r?r:t.query_args.period?.default}}),[e.id,t]),{queryDashboardCard:r}=(0,u.useDispatch)("ithemes-security/dashboard"),s=[];let l=0;if(e.data&&e.data.data){let t=0;for(const a in e.data.data)e.data.data.hasOwnProperty(a)&&(l+=e.data.data[a].sum,s.push({name:e.data.data[a].label,value:e.data.data[a].sum,fill:Z.ap[t%Z.ap.length]}),t++)}const o=l>0;return o||s.forEach((e=>e.value=1)),(0,n.createElement)("div",{className:W()("itsec-card--type-pie-chart",{"itsec-card--type-pie-chart--no-data":!o})},(0,n.createElement)(D,null,(0,n.createElement)(I,{card:e,config:t}),t.query_args.period&&(0,n.createElement)(M.n_,{value:a,onChange:t=>r(e.id,{period:t})})),(0,n.createElement)(H,null,(0,n.createElement)((function(){return(0,n.createElement)(B,null,(0,n.createElement)(p.EY,{as:"p",variant:p.J3.DARK,size:p.$C.GIGANTIC,text:o?(0,N.z6)(e.data.circle_sum):"—"}),(0,n.createElement)(p.EY,{as:"p",variant:p.J3.MUTED,size:p.$C.EXTRA_LARGE,text:o?e.data.circle_label:(0,i.__)("No Data","better-wp-security")}))}),null),(0,n.createElement)(L.u,{width:"50%",height:200},(0,n.createElement)(P.D,{innerRadius:30,outerRadius:70,barSize:6,data:s,startAngle:90,endAngle:450,barGap:6},(0,n.createElement)(F.r,{type:"number",domain:[0,l],dataKey:"uv",angleAxisId:0,tick:!1}),(0,n.createElement)(Y.Z,{background:!0,dataKey:"value",angleAxisId:0,data:s,cornerRadius:8})))),(0,n.createElement)("table",{className:"itsec-card-pie-chart__values"},(0,n.createElement)("tbody",null,s.map(((e,t)=>(0,n.createElement)("tr",{key:e.name},(0,n.createElement)("th",{scope:"row"},e.name),(0,n.createElement)("td",null,(0,n.createElement)(J,{as:"span",size:p.$C.NORMAL,weight:p.uL.HEAVY,variant:p.J3.DARK,align:"right",indicator:Z.ap[t%Z.ap.length]},o?(e.value/l*100).toFixed(0)+"%":"—"))))))))}var K=a(81903),G=a(23175),V=a(46644),Q=a(88148),X=a(4818),ee=a(2809),te=a(42578);const ae=(0,k.A)(h.Icon,{target:"e19shvhi8"})("fill:",(({theme:e})=>e.colors.primary.darker20),";"),re=(0,k.A)("section",{target:"e19shvhi7"})("padding:0.75rem 1.25rem;display:flex;flex-direction:column;gap:",(({isSmall:e})=>e?"0.75rem":"1rem"),";&:first-of-type{padding-top:",(({isSmall:e})=>!e&&"1.25rem"),";}"),ne=(0,k.A)(p.ui,{target:"e19shvhi6"})({name:"r2g86h",styles:"display:flex;align-items:center;gap:1rem"}),ie=(0,k.A)("a",{target:"e19shvhi5"})({name:"g65o95",styles:"text-decoration:none"}),se=(0,k.A)("div",{target:"e19shvhi4"})("border:1px solid ",(({theme:e})=>e.colors.border.normal),";display:flex;justify-content:space-between;align-items:center;gap:0.25rem;padding:0.5rem 0.75rem;"),le=(0,k.A)("div",{target:"e19shvhi3"})({name:"p5tmle",styles:"display:flex;flex-direction:column;gap:0.5rem"}),oe=(0,k.A)(h.Icon,{target:"e19shvhi2"})({name:"ozd7xs",styles:"flex-shrink:0"}),ce=(0,k.A)(p.ui,{target:"e19shvhi1"})({name:"4ved3l",styles:"display:flex;align-items:center;gap:0.5rem"}),de=(0,k.A)(p.EY,{target:"e19shvhi0"})({name:"122le62",styles:"grid-area:details"});function he(e){switch(e){case"plugin":return K.A;case"theme":return G.A;case"core":return V.A;default:return}}function me({vulnerability:e,isSmall:t}){return(0,n.createElement)(ce,{key:e.id},t?(0,n.createElement)(h.Icon,{icon:he(e.software.type.slug)}):(0,n.createElement)(p.EY,{icon:he(e.software.type.slug),text:e.software.type.label,textTransform:"capitalize"}),"wordpress"!==e.software.type.slug&&(0,n.createElement)(p.EY,{weight:500,text:e.software.label||e.software.slug}),(0,n.createElement)(M.j9,{priority:e.details.patch_priority,score:e.details.score}),(0,n.createElement)(de,{text:e.details.type.label}))}function ue({card:e,config:t,eqProps:a}){const r=a["max-width"]&&a["max-width"].includes("400px"),s=(0,N.aZ)("vulnerabilities");return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(D,null,(0,n.createElement)(I,{card:e,config:t}),(0,n.createElement)(ae,{icon:Q.A})),e.data.news&&(0,n.createElement)(re,{isSmall:r},(0,n.createElement)(ne,null,(0,n.createElement)(p.EY,{icon:X.A,size:p.$C.LARGE,variant:p.J3.DARK,weight:600,text:(0,i.__)("Latest in Kadence Security News","better-wp-security")})),(0,n.createElement)(ie,{href:e.data.news.link,target:"_blank",rel:"noreferrer"},(0,n.createElement)(se,null,(0,n.createElement)(le,null,(0,n.createElement)(p.EY,{as:"p",weight:600,text:e.data.news.title,truncateLines:1}),(0,n.createElement)(p.EY,{as:"p",size:p.$C.SMALL,variant:p.J3.MUTED,text:(0,i.sprintf)((0,i.__)("Published - %s","better-wp-security"),(0,v.dateI18n)("M d, Y",e.data.news.date))}),(0,n.createElement)(p.EY,{as:"p",size:p.$C.SMALL,text:e.data.news.excerpt,truncateLines:1})),(0,n.createElement)(oe,{icon:ee.A})))),(0,n.createElement)(re,{isSmall:r},(0,n.createElement)(ne,null,(0,n.createElement)(p.EY,{icon:te.A,size:p.$C.LARGE,variant:p.J3.DARK,weight:600,text:(0,i.__)("Vulnerabilities","better-wp-security")}),e.data.vulnerability&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(p.EY,{variant:p.J3.MUTED},"|"),(0,n.createElement)(p.$n,{href:s,variant:"link",text:(0,i.__)("Fix Vulnerabilities","better-wp-security")}))),e.data.vulnerability?(0,n.createElement)(me,{vulnerability:e.data.vulnerability,isSmall:r}):(0,n.createElement)(p.$T,{text:(0,i.__)("Great news! There seem to be no vulnerable software installed!","better-wp-security")})))}const Ce="security-summary",pe={render:ue,elementQueries:[{type:"width",dir:"max",px:400}]};function ge(){const{registerCard:e}=(0,u.useDispatch)("ithemes-security/dashboard");(0,E.ee)(ge,(()=>[r].forEach((({slug:t,settings:a})=>e(t,a)))))}var fe=a(77172),Ee=a(55095);const ye=(0,k.A)(p.ui,{target:"e5j6ik85"})("width:",(({isExpanded:e})=>e?"100%":"300px"),";padding:0.25rem 0.75rem;display:flex;flex-direction:column;gap:0.5rem;"),Le=(0,k.A)("header",{target:"e5j6ik84"})({name:"p5tmle",styles:"display:flex;flex-direction:column;gap:0.5rem"}),be=(0,k.A)("ul",{target:"e5j6ik83"})({name:"78qqlo",styles:"margin:0;display:flex;flex-direction:column;gap:0.75rem"}),_e=(0,k.A)("li",{target:"e5j6ik82"})({name:"ti75j2",styles:"margin:0"}),xe=(0,k.A)(p.$n,{target:"e5j6ik81"})({name:"1e4pqt5",styles:"width:100%;justify-content:left!important"}),we=(0,k.A)(xe,{target:"e5j6ik80"})("&.components-button{background-color:",(({theme:e})=>e.colors.surface.secondary),";}display:grid;grid-template-columns:1fr 0.1fr;text-align:left;padding-left:0.75rem!important;");function Ae({dashboardId:e,ldo:t}){const a=`edit-cards-add-${t.aboutLink}-to-${e}`,{cardAtLimit:r,isAdding:s}=(0,u.useSelect)((r=>({cardAtLimit:r("ithemes-security/dashboard").isCardAtDashboardLimit(e,t.aboutLink),isAdding:r("ithemes-security/dashboard").isAddingCard(a)})),[e,t,a]),{addDashboardCard:l}=(0,u.useDispatch)("ithemes-security/dashboard");return r?null:(0,n.createElement)(_e,null,(0,n.createElement)(xe,{text:t.title,label:(0,i.sprintf)((0,i.__)("Add %s","better-wp-security"),t.title),icon:Ee.A,iconPosition:"left",disabled:s,onClick:()=>l(t.href,{},a),showTooltip:!1,variant:"tertiaryAccent"}))}var ve=a(88053);function Me({dashboardId:e,card:t}){const{config:a}=(0,u.useSelect)((e=>({config:e("ithemes-security/dashboard").getAvailableCard(t.card)})),[t.card]),{removeDashboardCard:r}=(0,u.useDispatch)("ithemes-security/dashboard"),s=(0,O.lc)(t,a);return(0,n.createElement)(_e,null,(0,n.createElement)(we,{text:s,label:(0,i.sprintf)((0,i.__)("Remove %s","better-wp-security"),s),icon:ve.A,iconPosition:"right",onClick:()=>r(e,t),showTooltip:!1,variant:"tertiary"}))}function ke({dashboardId:e}){const t=(0,m.useViewportMatch)("medium","<"),{cards:a,cardConfigs:r,addableCards:l}=(0,u.useSelect)((t=>({cards:t("ithemes-security/dashboard").getDashboardCards(e),cardConfigs:t("ithemes-security/dashboard").getAvailableCards(),addableCards:t("ithemes-security/dashboard").getDashboardAddableCardLDOs(e)})),[e]),o=(0,s.useMemo)((()=>(0,y.sortBy)(a,(e=>(0,O.lc)(e,r.find((t=>e.card===t.slug)))))),[a,r]);return(0,n.createElement)(ye,{isExpanded:t},(0,n.createElement)(Le,null,!t&&(0,n.createElement)(p.DZ,{level:3,variant:p.J3.DARK,weight:p.uL.HEAVY,size:p.$C.NORMAL,text:(0,i.__)("Edit Cards","better-wp-security")}),(0,n.createElement)(p.EY,{variant:p.J3.MUTED,size:p.$C.SMALL,text:(0,i.__)("Add or remove cards on your dashboard.","better-wp-security")})),(0,n.createElement)(be,null,l.map((t=>(0,n.createElement)(Ae,{ldo:t,key:t.href,dashboardId:e}))),o.map((t=>(0,n.createElement)(Me,{key:t.id,card:t,dashboardId:e}))),(0,n.createElement)(g.EditCardsSlot,null)))}const Oe=(0,k.A)("div",{target:"e1enscrp3"})("display:flex;flex-wrap:wrap;flex-direction:column;align-items:center;justify-items:center;gap:1rem;padding:1.25rem 1.25rem 0;margin:0 auto;height:auto;max-width:",(({maxWidth:e})=>Math.max(e,768)),"px;@media (min-width: ",(({theme:e})=>e.breaks.medium),"px){flex-direction:row;justify-content:space-between;}"),Ie=(0,k.A)("div",{target:"e1enscrp2"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),Se=(0,k.A)(Ie,{target:"e1enscrp1"})({name:"ea66ng",styles:"gap:1.25rem"}),De=(0,k.A)(Ie,{target:"e1enscrp0"})({name:"z1y14f",styles:"gap:3rem"});function Ze({dashboardId:e,width:t}){const{requesting:a,siteInfo:r,canEdit:l,editingCards:o}=(0,u.useSelect)((t=>({siteInfo:t("ithemes-security/core").getSiteInfo(),dashboards:t("ithemes-security/dashboard").getAvailableDashboards(),requesting:t("ithemes-security/dashboard").isRequestingDashboards(),canEdit:e&&t("ithemes-security/dashboard").canEditDashboard(e),editingCards:t("ithemes-security/dashboard").isEditingCards()})),[e]),{openEditCards:c,closeEditCards:d}=(0,u.useDispatch)("ithemes-security/dashboard");let m;if(r){const e=(0,fe.getPath)(r.url);m=(0,fe.getAuthority)(r.url),e&&(m+="/"+e)}if(a)return null;const C=(0,O.ig)(t);return(0,n.createElement)(Oe,{className:"itsec-admin-bar",maxWidth:C},(0,n.createElement)(Se,null,(0,n.createElement)(g.AdminBarSlot,{type:"primary"})),(0,n.createElement)(De,null,(0,n.createElement)(p.EY,{variant:p.J3.DARK,text:m}),l&&(0,n.createElement)(h.Dropdown,{headerTitle:(0,i.__)("Edit Dashboard Cards","better-wp-security"),expandOnMobile:!0,popoverProps:{position:"bottom left"},onClose:d,renderToggle:function({onToggle:e,onClose:t}){return(0,s.useEffect)((()=>{o?e():t()}),[o]),(0,n.createElement)(p.$n,{text:(0,i.__)("Edit Dashboard Cards","better-wp-security"),icon:G.A,"aria-expanded":o,onClick:o?d:c,variant:"tertiary"})},renderContent:()=>(0,n.createElement)(ke,{dashboardId:e,close:d})})))}var Ne=a(64467),ze=a(58168),Re=a(2359);const Te=(0,k.A)(p.ui,{target:"e17ppxp3"})({name:"13ku56z",styles:"display:flex;flex-direction:column;height:100%"}),je=(0,k.A)("div",{target:"e17ppxp2"})("text-align:center;display:flex;gap:",(({theme:{getSize:e}})=>e(1.25)),";flex-direction:column;align-items:center;flex-grow:1;height:100%;justify-content:center;"),$e=(0,k.A)("section",{target:"e17ppxp1"})("max-width:70ch;display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.5)),";"),Pe=(0,k.A)("span",{target:"e17ppxp0"})({name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"}),Fe=(0,m.compose)([(0,u.withSelect)(((e,t)=>({removing:e("ithemes-security/dashboard").isRemovingCard(t.card.id),canRemove:e("ithemes-security/dashboard").canEditCard(t.dashboardId,t.card.id)}))),(0,u.withDispatch)(((e,t)=>({remove:()=>e("ithemes-security/dashboard").removeDashboardCard(t.dashboardId,t.card)})))])((function({card:e,removing:t,canRemove:a,remove:r}){return(0,n.createElement)(Te,null,(0,n.createElement)(D,null,(0,n.createElement)(I,{card:e})),(0,n.createElement)(je,{className:"itsec-card__util-padding"},(0,n.createElement)($e,null,(0,n.createElement)(p.DZ,{level:4,size:p.$C.NORMAL,weight:p.uL.HEAVY,text:(0,i.__)("Unexpected Error","better-wp-security"),align:"center"}),(0,n.createElement)(p.EY,{as:"p",text:(0,i.__)("Something went wrong with this card. This is most likely due to disabling a Kadence Security Module.","better-wp-security"),align:"center",variant:"muted"})),(0,n.createElement)(M.zf,{icon:(0,n.createElement)(Z.sA,null),isSmall:!0}),a&&(0,n.createElement)(p.$n,{variant:"secondary",isBusy:t,onClick:r},(0,i.__)("Remove Card","better-wp-security")),e.original&&(0,n.createElement)(Pe,null,(0,n.createElement)(p.EY,{size:p.$C.SMALL},(0,s.createInterpolateElement)((0,i.__)("Card Type: <card />","better-wp-security"),{card:(0,n.createElement)("code",null,e.original)})))))})),Ye=(0,k.A)(p.ui,{target:"eikra9f2"})({name:"13ku56z",styles:"display:flex;flex-direction:column;height:100%"}),Ue=(0,k.A)("div",{target:"eikra9f1"})("text-align:center;display:flex;gap:",(({theme:{getSize:e}})=>e(1.25)),";flex-direction:column;align-items:center;flex-grow:1;height:100%;justify-content:center;"),We=(0,k.A)("section",{target:"eikra9f0"})("max-width:70ch;display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.5)),";"),He=function({card:e,config:t}){return(0,n.createElement)(Ye,null,t&&(0,n.createElement)(D,null,(0,n.createElement)(I,{card:e,config:t})),(0,n.createElement)(Ue,{className:"itsec-card__util-padding"},(0,n.createElement)(We,null,(0,n.createElement)(p.DZ,{level:4,size:p.$C.NORMAL,weight:p.uL.HEAVY,text:(0,i.__)("Unexpected Error","better-wp-security"),align:"center"}),(0,n.createElement)(p.EY,{as:"p",text:(0,i.__)("An error occurred while rendering this card.","better-wp-security"),align:"center"}),(0,n.createElement)(p.EY,{as:"p",text:(0,i.__)("Try refreshing you browser. If the error persists, please contact support.","better-wp-security"),align:"center"})),(0,n.createElement)(M.zf,{icon:(0,n.createElement)(Z.sA,null),isSmall:!0})))},Be=(0,k.A)(p.ui,{target:"ek93wjj2"})({name:"13ku56z",styles:"display:flex;flex-direction:column;height:100%"}),Je=(0,k.A)("div",{target:"ek93wjj1"})("text-align:center;display:flex;gap:",(({theme:{getSize:e}})=>e(1.25)),";flex-direction:column;align-items:center;flex-grow:1;height:100%;justify-content:center;"),qe=(0,k.A)("section",{target:"ek93wjj0"})("max-width:70ch;display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.5)),";");function Ke({card:e,config:t,dashboardId:a}){const{getUrl:r}=(0,s.useContext)(N.PY),[l,o]=(0,s.useState)(!1),c=t?.module_id,{module:d,moduleRoute:h,removing:m,canRemove:C,activating:g}=(0,u.useSelect)((t=>{const r=c?t(f.MODULES_STORE_NAME).getModule(c):void 0;return{module:r,moduleRoute:r?(0,O.mg)(r):void 0,removing:t("ithemes-security/dashboard").isRemovingCard(e.id),canRemove:t("ithemes-security/dashboard").canEditCard(a,e.id),activating:!!c&&t(f.MODULES_STORE_NAME).isSavingModule(c)}}),[c,e.id,a]),{removeDashboardCard:E}=(0,u.useDispatch)("ithemes-security/dashboard"),{activateModule:y}=(0,u.useDispatch)(f.MODULES_STORE_NAME),L=(0,s.useMemo)((()=>h?r("settings",h):null),[h,r]);return(0,n.createElement)(Be,null,t&&(0,n.createElement)(D,null,(0,n.createElement)(I,{card:e,config:t})),(0,n.createElement)(Je,{className:"itsec-card__util-padding"},l?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(qe,null,(0,n.createElement)(p.DZ,{level:4,size:p.$C.NORMAL,weight:p.uL.HEAVY,text:(0,i.__)("Module Activated","better-wp-security"),align:"center"}),(0,n.createElement)(p.EY,{as:"p",text:(0,i.sprintf)((0,i.__)("The %s module has been successfully activated. Please reload the page to see the card content.","better-wp-security"),d?.title||(0,i.__)("Module","better-wp-security")),align:"center",variant:"muted"})),(0,n.createElement)(Z.Ot,{height:56,width:56}),(0,n.createElement)(p.$n,{variant:"primary",onClick:()=>{window.location.reload()}},(0,i.__)("Reload Page","better-wp-security"))):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(qe,null,(0,n.createElement)(p.DZ,{level:4,size:p.$C.NORMAL,weight:p.uL.HEAVY,text:(0,i.__)("Module Not Activated","better-wp-security"),align:"center"}),(0,n.createElement)(p.EY,{as:"p",text:(0,i.sprintf)((0,i.__)('The "%s" card requires a module that is not currently activated. Please activate it or remove this card from the dashboard.',"better-wp-security"),t?.label||t?.slug||e?.card||(0,i.__)("unknown","better-wp-security")),align:"center",variant:"muted"})),(0,n.createElement)(Z.Ot,{height:56,width:56}),d?.id&&(0,n.createElement)(p.$n,{variant:"primary",isBusy:g,onClick:async()=>{if(d?.id)try{await y(d.id),o(!0)}catch(e){}}},(0,i.sprintf)((0,i.__)("Activate %s","better-wp-security"),d?.title||(0,i.__)("Module","better-wp-security"))),!d?.id&&L&&(0,n.createElement)(p.$n,{variant:"primary",href:L},(0,i.sprintf)((0,i.__)("Activate %s","better-wp-security"),d?.title||(0,i.__)("Module","better-wp-security"))),C&&(0,n.createElement)(p.$n,{variant:"secondary",isBusy:m,onClick:()=>{E(a,e)}},(0,i.__)("Remove Card","better-wp-security")))))}const Ge=(0,k.A)(p.ui,{target:"e18670qo0"})({name:"nn4lkc",styles:"width:100%;height:100%;border-radius:2px;box-shadow:0 0 5px rgba(211, 211, 211, 0.35)"}),Ve=(0,s.forwardRef)((function({id:e,dashboardId:t,className:a,gridWidth:r,children:i,...l},o){const{card:c,config:d}=(0,u.useSelect)((t=>{const a=t("ithemes-security/dashboard");return{card:a.getDashboardCard(e),config:a.getDashboardCardConfig(e)}}),[e]),h=d||{slug:"",type:""},m=function(e){const t=(0,u.useSelect)((t=>t("ithemes-security/dashboard").getRegisteredCard(e.slug)),[e.slug]);if(t?.render)return t.render;switch(e.type){case"line":return $;case"pie":return q}return null}(h),C=function(e,t,a){const r=(0,u.useSelect)((t=>t("ithemes-security/dashboard").getRegisteredCard(e.slug)),[e.slug]),n=r?.elementQueries;return(0,s.useMemo)((()=>{if(!n)return{};const e={height:t.height?(0,y.toInteger)(t.height.replace("px","")):0};t.width&&t.width.endsWith("%")?e.width=(0,y.toInteger)(t.width.replace("%",""))*a/100:e.width=t.width?(0,y.toInteger)(t.width.replace("px","")):0;const r={};for(const t of n){if(!e[t.type])continue;let a=!1;switch(t.dir){case"max":a=e[t.type]<=t.px;break;case"min":a=e[t.type]>=t.px}a&&(r[`${t.dir}-${t.type}`]=(r[`${t.dir}-${t.type}`]||"")+t.px+"px ")}return(0,y.mapValues)(r,(e=>e.trim()))}),[n,t,a])}(h,l.style,r);if(!c)return null;if("unknown"===c.card)return(0,n.createElement)(Ge,(0,ze.A)({as:"article",className:W()(a,"itsec-card","itsec-card--unknown"),ref:o},l),(0,n.createElement)(Fe,{card:c,dashboardId:t}));const p=c&&"unknown"!==c.card&&(!d||!m);if(p)return(0,n.createElement)(Ge,(0,ze.A)({as:"article",className:W()(a,"itsec-card","itsec-card--no-rendered","itsec-card--module-inactive"),ref:o},l),(0,n.createElement)(Ke,{card:c,config:d,dashboardId:t}));const g=p?Ke:He;return(0,n.createElement)(Ge,(0,ze.A)({as:"article",className:W()(a,"itsec-card"),id:`itsec-card-${c.id}`,ref:o},l,C),(0,n.createElement)(Re.ErrorBoundary,{fallback:(0,n.createElement)(g,{card:c,config:d,dashboardId:t,isModuleInactive:p})},(0,n.createElement)(m,{card:c,config:d,dashboardId:t,eqProps:C})),i)})),Qe=(0,s.memo)(Ve);var Xe=a(75851);const et=(0,k.A)("div",{target:"e8gu1go1"})("display:flex;width:",(({maxWidth:e})=>e-2*O.uj),"px;height:80vh;margin:20px auto;border:2px dashed ",(({theme:e})=>e.colors.primary.base),";"),tt=(0,k.A)(h.Button,{target:"e8gu1go0"})("gap:0.5rem;width:100%;height:auto;flex-direction:column;font-size:1.25rem;color:",(({theme:e})=>e.colors.text.muted),";& svg{color:white;background:",(({theme:e})=>e.colors.primary.base),";border-radius:2px;width:20px;height:20px;}");function at({maxWidth:e}){const{openEditCards:t}=(0,u.useDispatch)("ithemes-security/dashboard");return(0,n.createElement)(et,{maxWidth:e},(0,n.createElement)(tt,{onClick:t,icon:Xe.A,text:(0,i.__)("Add Security Cards","better-wp-security")}))}class rt extends s.Component{constructor(e){super(e),(0,Ne.A)(this,"_onLayoutChange",((e,t)=>{if(!(0,O.yq)(t,this.state.layout)){this.setState({layout:t});const e=(0,O.cJ)(this.props.dashboardId,t);this.props.saveLayout(this.props.dashboardId,e)}})),(0,Ne.A)(this,"onBreakpointChange",(e=>{this.setState({breakpoint:e})})),(0,Ne.A)(this,"onStartMove",(()=>{this.setState({isMoving:!0})})),(0,Ne.A)(this,"onStopMove",(()=>{this.setState({isMoving:!1})})),this.state={layout:(0,O.ih)(e.dashboardId,e.cards,e.layout),isMoving:!1,breakpoint:e.breakpoint||"wide",breakpointInitialized:!!e.breakpoint},this.onLayoutChange=(0,y.debounce)(this._onLayoutChange,1e3)}componentDidUpdate(e){if(this.state.breakpointInitialized||!this.props.breakpoint||e.breakpoint||this.setState({breakpoint:this.props.breakpoint,breakpointInitialized:!0}),this.props.layout!==e.layout&&(this.props.dashboardId!==e.dashboardId||this.props.cards.length!==e.cards.length)){const e=(0,O.ih)(this.props.dashboardId,this.props.cards,this.props.layout);this.setState({layout:e})}if(this.props.dashboardId===e.dashboardId&&this.props.cards.length>e.cards.length){const e=(0,O.ih)(this.props.dashboardId,this.props.cards,(0,O.cJ)(this.props.dashboardId,this.state.layout));this.setState({layout:e}),this.props.saveLayout(this.props.dashboardId,(0,O.cJ)(this.props.dashboardId,e))}}componentWillUnmount(){this.onLayoutChange.cancel()}render(){const{cards:e,dashboardId:t,usingTouch:a}=this.props,r=(0,O.ig)(this.props.width);return e.length?(0,n.createElement)(d.Responsive,{style:{maxWidth:r},breakpoints:O.LO,onBreakpointChange:this.onBreakpointChange,cols:O.ZG,rowHeight:380,width:Math.min(this.props.width,r),layouts:this.state.layout,onLayoutChange:this.onLayoutChange,margin:[O.uj,O.uj],isDraggable:!a,isResizable:!a,className:this.state.isMoving?"itsec-card-grid--moving":"",draggableHandle:".itsec-card-header, .itsec-card--unknown, .itsec-card__drag-handle",onDragStart:this.onStartMove,onDragStop:this.onStopMove,onResizeStart:this.onStartMove,onResizeStop:this.onStopMove},(0,O.wT)(e,this.state.layout,this.state.breakpoint).map((e=>(0,n.createElement)(Qe,{id:e.id,dashboardId:t,key:e.id.toString(),gridWidth:this.props.width})))):(0,n.createElement)(at,{maxWidth:r})}}const nt=(0,m.compose)([(0,u.withSelect)(((e,t)=>({cards:e("ithemes-security/dashboard").getDashboardCards(t.dashboardId),layout:e("ithemes-security/dashboard").getDashboardLayout(t.dashboardId),usingTouch:e("ithemes-security/dashboard").isUsingTouch(),cardsLoaded:e("ithemes-security/dashboard").areCardsLoaded(t.dashboardId),layoutLoaded:e("ithemes-security/dashboard").isLayoutLoaded(t.dashboardId)}))),(0,m.ifCondition)((({cardsLoaded:e,layoutLoaded:t})=>e&&t)),m.pure,(0,u.withDispatch)(((e,t)=>({openEditCards:e("ithemes-security/dashboard").openEditCards,saveLayout:e("ithemes-security/dashboard").saveDashboardLayout,refresh(){e("ithemes-security/dashboard").refreshDashboardCards(t.dashboardId)}}))),(0,E.qY)(12e4,(({refresh:e})=>e()))])(rt);var it,st,lt;function ot(){return ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},ot.apply(null,arguments)}const ct=e=>n.createElement("svg",ot({width:130,height:96,viewBox:"0 0 130 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n.createElement("g",{clipPath:"url(#itsec-icon-[name]-[hash:5]____clip0_40000788_5144)"},n.createElement("mask",{id:"itsec-icon-[name]-[hash:5]____mask0_40000788_5144",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:130,height:96},it||(it=n.createElement("path",{d:"M129.589 0H0.911133V96H129.589V0Z",fill:"white"}))),st||(st=n.createElement("g",{mask:"url(#itsec-icon-[name]-[hash:5]____mask0_40000788_5144)"},n.createElement("path",{d:"M66.7374 4.3054L1.77477 31.8684C1.0759 32.165 0.830607 33.0756 1.22925 33.9006L27.866 89.0211C28.2648 89.8463 29.1569 90.2741 29.8557 89.9775L35.3075 87.6644L72.1597 12.3648L68.7272 5.2619C68.3285 4.43676 67.4387 4.00784 66.7374 4.3054Z",fill:"#0E38A3"}),n.createElement("path",{d:"M29.3875 90.1983C28.7501 90.1983 28.086 89.7683 27.7518 89.0767L1.11501 33.9561C0.884593 33.4791 0.84759 32.9524 1.01366 32.5108C1.14565 32.1598 1.39832 31.8902 1.72538 31.7515L66.6881 4.18848C67.4485 3.86587 68.4148 4.32263 68.842 5.20678L72.2745 12.3097C72.2915 12.3448 72.2914 12.3859 72.2742 12.421L35.422 87.7205C35.4085 87.748 35.3856 87.7697 35.3574 87.7817L29.9056 90.0948C29.7401 90.165 29.5647 90.1983 29.3875 90.1983ZM67.2104 4.33827C67.0652 4.33827 66.9223 4.36536 66.7874 4.42271L1.82469 31.9856C1.55867 32.0985 1.36055 32.311 1.25171 32.6003C1.11005 32.9771 1.14362 33.4309 1.34402 33.8455L27.9808 88.966C28.3498 89.7298 29.1689 90.1312 29.8063 89.8607L35.2145 87.5661L72.0185 12.3646L68.613 5.31741C68.3219 4.71517 67.7512 4.33827 67.2104 4.33827Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M129.272 56.3562L105.054 6.24212L102.634 1.23264C102.235 0.407748 101.344 -0.0176038 100.645 0.278934L72.1596 12.365L12.651 37.614C11.9498 37.9114 11.7033 38.8193 12.1019 39.6442L14.5227 44.6537L26.9241 70.3166L35.3074 87.6646L38.74 94.7676C39.1373 95.5901 40.0294 96.018 40.7307 95.7205L47.8841 92.6855L128.725 58.3854C129.424 58.089 129.669 57.1785 129.272 56.3562Z",fill:"white"}),n.createElement("path",{d:"M40.2601 95.942C39.6224 95.942 38.9591 95.5134 38.6257 94.8234L11.9876 39.7C11.7577 39.2244 11.7208 38.6991 11.8864 38.259C12.0186 37.9073 12.2726 37.6368 12.6015 37.4973L100.596 0.162281C101.356 -0.160325 102.322 0.295163 102.748 1.17766L129.386 56.3012C129.616 56.7765 129.653 57.302 129.487 57.7432C129.355 58.0943 129.102 58.3641 128.775 58.503L40.7805 95.838C40.6142 95.9086 40.4381 95.942 40.2601 95.942ZM101.119 0.311821C100.973 0.311821 100.83 0.339034 100.695 0.396383L12.7008 37.7314C12.4328 37.8451 12.2335 38.0585 12.1244 38.3485C11.9833 38.7239 12.0169 39.1761 12.2166 39.5894L38.8547 94.7128C39.2231 95.4751 40.0425 95.8749 40.6812 95.6039L128.675 58.2687C128.938 58.1573 129.141 57.9389 129.249 57.6536C129.39 57.2774 129.357 56.8248 129.157 56.4118L102.519 1.28829C102.229 0.68758 101.659 0.311821 101.119 0.311821Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M58.2504 10.0997C57.6999 10.3333 57.5056 11.0472 57.8185 11.6948C58.1315 12.3425 58.8324 12.6768 59.3828 12.4433C59.9334 12.2097 60.1255 11.4966 59.8124 10.849C59.4994 10.2012 58.8008 9.86617 58.2504 10.0997Z",fill:"white"}),n.createElement("path",{d:"M59.0132 12.6434C58.5019 12.6434 57.9708 12.301 57.7042 11.7495C57.5206 11.3695 57.4914 10.9491 57.6241 10.5963C57.7308 10.3127 57.9355 10.0945 58.2008 9.98196C58.8113 9.72294 59.5858 10.0866 59.927 10.7929C60.111 11.1737 60.1405 11.5944 60.0079 11.9471C59.9016 12.2298 59.6972 12.4473 59.4326 12.5596C59.2986 12.6165 59.1567 12.6434 59.0132 12.6434ZM58.3002 10.2162C58.0968 10.3025 57.9453 10.4649 57.8622 10.6859C57.7538 10.9741 57.7798 11.3213 57.9332 11.639C58.2164 12.2251 58.8446 12.5331 59.3333 12.3257C59.5361 12.2396 59.6872 12.0778 59.7698 11.8578C59.878 11.5699 59.852 11.2222 59.698 10.9037C59.4148 10.3178 58.7877 10.0093 58.3002 10.2162Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M61.944 8.53235C61.3935 8.76594 61.2015 9.47893 61.5144 10.1266C61.8274 10.7742 62.5261 11.1095 63.0764 10.8759C63.6269 10.6423 63.8189 9.9292 63.5059 9.28158C63.1928 8.63395 62.4944 8.29875 61.944 8.53235Z",fill:"white"}),n.createElement("path",{d:"M62.7084 11.0766C62.1978 11.0766 61.6667 10.7338 61.4001 10.1821C61.2161 9.80121 61.1866 9.38056 61.3192 9.02795C61.4255 8.74527 61.6297 8.52783 61.8945 8.41554C62.5049 8.15652 63.2794 8.52032 63.6207 9.22644C63.8047 9.60729 63.8342 10.0281 63.7016 10.3808C63.5953 10.6635 63.391 10.8809 63.1264 10.9932C62.9928 11.0497 62.8514 11.0766 62.7084 11.0766ZM62.3165 8.58517C62.2058 8.58517 62.0967 8.6059 61.9938 8.64952C61.791 8.73561 61.64 8.89735 61.5573 9.11734C61.449 9.40523 61.4751 9.75289 61.6291 10.0713C61.9124 10.6574 62.5395 10.9657 63.027 10.759C63.2298 10.6729 63.3806 10.5111 63.4634 10.2912C63.5717 10.0033 63.5455 9.65548 63.3917 9.33695C63.1683 8.87472 62.7307 8.58517 62.3165 8.58517Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M65.6364 6.96509C65.0858 7.19868 64.8938 7.91167 65.2068 8.5593C65.5197 9.20692 66.2185 9.54224 66.7689 9.30865C67.3194 9.07506 67.5136 8.36105 67.2006 7.71342C66.8877 7.06567 66.1869 6.73149 65.6364 6.96509Z",fill:"white"}),n.createElement("path",{d:"M66.4009 9.5097C65.8901 9.5097 65.3592 9.167 65.0925 8.61513C64.9085 8.23441 64.879 7.81363 65.0116 7.46102C65.1179 7.17834 65.3222 6.96077 65.587 6.84849C66.1988 6.58895 66.9741 6.95225 67.3154 7.6585C67.499 8.03845 67.5282 8.45897 67.3955 8.81184C67.2888 9.09541 67.084 9.31362 66.8188 9.42616C66.6854 9.48274 66.544 9.5097 66.4009 9.5097ZM65.6864 7.08259C65.4835 7.16868 65.3325 7.33043 65.2498 7.55054C65.1415 7.83843 65.1676 8.18609 65.3215 8.5045C65.6047 9.09058 66.2318 9.39894 66.7195 9.19205C66.9229 9.10571 67.0744 8.94333 67.1574 8.72245C67.2658 8.4343 67.2398 8.0869 67.0863 7.76926C66.8033 7.18317 66.1754 6.87519 65.6864 7.08259Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M92.779 6.12029C92.2285 6.35389 92.0364 7.067 92.3494 7.71463C92.6624 8.36226 93.3624 8.7 93.9127 8.4664C94.4631 8.23281 94.6564 7.51626 94.3434 6.86863C94.0304 6.22101 93.3293 5.88683 92.779 6.12029Z",fill:"#0E38A3"}),n.createElement("path",{d:"M93.5443 8.66739C93.0331 8.66739 92.5013 8.32367 92.234 7.77053C92.05 7.38968 92.0205 6.96903 92.1533 6.61629C92.2596 6.33361 92.4638 6.11604 92.7286 6.00376C93.3404 5.74423 94.1159 6.10752 94.4572 6.8139C94.6413 7.19474 94.6704 7.61628 94.5373 7.97042C94.4307 8.25386 94.2262 8.47182 93.9618 8.5841C93.8282 8.64056 93.6871 8.66739 93.5443 8.66739ZM93.1521 6.17314C93.0409 6.17314 92.9311 6.19399 92.8277 6.23786C92.6249 6.32395 92.474 6.4857 92.3912 6.70581C92.283 6.9937 92.3091 7.34149 92.4629 7.6599C92.7467 8.24725 93.3744 8.55689 93.8621 8.35C94.0648 8.26391 94.2158 8.10178 94.299 7.8809C94.4077 7.59161 94.3818 7.24306 94.2279 6.92453C94.0047 6.46243 93.5669 6.17314 93.1521 6.17314Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M96.4712 4.55338C95.9208 4.78698 95.7287 5.50009 96.0418 6.14772C96.3548 6.79535 97.0547 7.13308 97.6051 6.89949C98.1579 6.66501 98.3488 5.94935 98.0358 5.30172C97.7228 4.65397 97.024 4.31877 96.4712 4.55338Z",fill:"#0E38A3"}),n.createElement("path",{d:"M97.2377 7.1C96.7265 7.1 96.1947 6.75629 95.9274 6.20314C95.7434 5.8223 95.7139 5.40152 95.8465 5.04878C95.9529 4.7661 96.1571 4.54866 96.4217 4.43638C97.0335 4.17684 97.809 4.54014 98.1503 5.24652C98.3347 5.628 98.3642 6.04966 98.2312 6.40317C98.1248 6.68622 97.92 6.90418 97.6549 7.01671C97.5215 7.07317 97.3804 7.1 97.2377 7.1ZM96.521 4.67048C96.3182 4.75657 96.1672 4.91831 96.0846 5.13817C95.9763 5.42607 96.0025 5.77385 96.1563 6.09239C96.4401 6.67974 97.0678 6.98937 97.5555 6.78248C97.7588 6.69614 97.9102 6.53401 97.993 6.31352C98.1016 6.02474 98.0754 5.67619 97.9212 5.35702C97.638 4.77106 97.0098 4.46308 96.521 4.67048Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M100.167 2.98547C99.6168 3.21907 99.4226 3.93307 99.7355 4.5807C100.048 5.22833 100.751 5.56518 101.301 5.33158C101.851 5.09799 102.042 4.38233 101.729 3.7347C101.416 3.08707 100.718 2.75188 100.167 2.98547Z",fill:"#0E38A3"}),n.createElement("path",{d:"M100.932 5.53268C100.42 5.53268 99.8884 5.18922 99.6212 4.63632C99.4376 4.25637 99.4084 3.83585 99.5411 3.48298C99.6478 3.19941 99.8525 2.9812 100.117 2.86867C100.728 2.60964 101.502 2.97345 101.844 3.6797C102.028 4.06143 102.058 4.48335 101.924 4.83711C101.818 5.11966 101.614 5.33698 101.35 5.44888C101.217 5.50585 101.075 5.53268 100.932 5.53268ZM100.539 3.03843C100.429 3.03843 100.32 3.05915 100.217 3.10277C100.013 3.18911 99.8622 3.35149 99.7792 3.57237C99.6708 3.86052 99.6968 4.20792 99.8503 4.52557C100.134 5.11305 100.762 5.42217 101.251 5.21478C101.453 5.12894 101.604 4.96745 101.686 4.74759C101.795 4.45855 101.769 4.10962 101.615 3.79032C101.391 3.3281 100.954 3.03843 100.539 3.03843Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M105.055 6.24219L22.9463 41.0799L47.8843 92.6854L128.725 58.3854C129.424 58.0889 129.669 57.1784 129.272 56.3561L105.055 6.24219Z",fill:"#BDDFFF"}),n.createElement("path",{d:"M47.8836 92.8129C47.8362 92.8129 47.791 92.7863 47.7691 92.741L22.831 41.1355C22.8159 41.1042 22.8142 41.068 22.8264 41.0354C22.8387 41.0029 22.8637 40.9767 22.8957 40.9631L105.005 6.12535C105.067 6.0989 105.139 6.12599 105.169 6.18715L129.386 56.3011C129.616 56.7764 129.652 57.3021 129.487 57.7432C129.355 58.0943 129.102 58.3641 128.775 58.5028L47.9332 92.8028C47.9171 92.8096 47.9003 92.8129 47.8836 92.8129ZM23.1182 41.1451L47.9454 92.5214L128.675 58.2687C128.938 58.1573 129.141 57.939 129.249 57.6537C129.39 57.2774 129.357 56.8247 129.157 56.4118L104.993 6.40676L23.1182 41.1451Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M22.9458 41.0801L14.5225 44.6539L38.7399 94.7678C39.1372 95.5902 40.0293 96.0182 40.7306 95.7206L47.884 92.6856L22.9458 41.0801Z",fill:"white"}),n.createElement("path",{d:"M40.2597 95.942C39.6222 95.942 38.9589 95.5134 38.6255 94.8234L14.4082 44.7095C14.393 44.6782 14.3914 44.642 14.4036 44.6094C14.4158 44.5769 14.4409 44.5507 14.4729 44.5371L22.8961 40.9632C22.9586 40.9368 23.0308 40.9639 23.0603 41.0249L47.9985 92.6305C48.0136 92.6618 48.0153 92.6981 48.003 92.7306C47.9908 92.7632 47.9658 92.7894 47.9337 92.803L40.7803 95.838C40.614 95.9086 40.4379 95.942 40.2597 95.942ZM14.6953 44.7191L38.8545 94.7128C39.2229 95.4751 40.0423 95.8749 40.681 95.6039L47.7115 92.621L22.8842 41.2447L14.6953 44.7191Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M27.5209 61.0482C27.1418 61.209 27.0087 61.7026 27.2244 62.1487C27.44 62.5947 27.9237 62.8267 28.3026 62.6659C28.6818 62.5051 28.8149 62.0115 28.5993 61.5653C28.3836 61.1191 27.9001 60.8872 27.5209 61.0482Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M28.0482 62.8433C27.6807 62.8433 27.2997 62.5984 27.109 62.2037C26.9775 61.9316 26.9569 61.6298 27.0524 61.3759C27.1297 61.1704 27.2781 61.0124 27.4704 60.9308C27.9111 60.7438 28.4684 61.0036 28.7129 61.5097C28.8444 61.7818 28.865 62.0834 28.7695 62.3374C28.6922 62.5429 28.5437 62.7011 28.3514 62.7827C28.2545 62.8238 28.1519 62.8433 28.0482 62.8433ZM27.778 61.1234C27.7064 61.1234 27.6361 61.1367 27.5697 61.1648C27.4402 61.2198 27.3437 61.3237 27.2905 61.4654C27.2193 61.6546 27.2367 61.8834 27.338 62.0931C27.5245 62.479 27.9346 62.6833 28.2521 62.5485C28.3816 62.4936 28.4782 62.3896 28.5315 62.2478C28.6027 62.0587 28.5853 61.83 28.4839 61.6202C28.3365 61.315 28.0489 61.1234 27.778 61.1234Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M33.8177 74.0804C33.4387 74.2412 33.3056 74.7348 33.5212 75.1809C33.7381 75.6296 34.2206 75.8588 34.5995 75.6981C34.9786 75.5373 35.113 75.0463 34.8961 74.5975C34.6806 74.1514 34.1969 73.9195 33.8177 74.0804Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M34.346 75.8755C33.9786 75.8755 33.5976 75.6306 33.4069 75.2359C33.2754 74.9638 33.2548 74.6621 33.3503 74.4082C33.4276 74.2027 33.576 74.0446 33.7682 73.963C34.209 73.7761 34.7663 74.0357 35.0108 74.5419C35.1425 74.8145 35.1634 75.1161 35.0681 75.3694C34.9908 75.5749 34.842 75.7331 34.6493 75.8148C34.5524 75.8559 34.4498 75.8755 34.346 75.8755ZM34.0758 74.1555C34.0042 74.1555 33.9339 74.1689 33.8675 74.197C33.7381 74.2519 33.6416 74.3558 33.5883 74.4975C33.5171 74.6867 33.5345 74.9155 33.6359 75.1252C33.8224 75.5111 34.2323 75.7154 34.55 75.5806C34.6801 75.5254 34.7769 75.4214 34.8302 75.2798C34.901 75.0913 34.8835 74.8627 34.7819 74.6524C34.6344 74.3473 34.3468 74.1555 34.0758 74.1555Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M53.0823 35.6002C53.0329 35.6002 52.9857 35.5711 52.9652 35.5227C52.9378 35.4581 52.968 35.3834 53.0326 35.356L67.2776 29.3119C67.3424 29.2844 67.417 29.3147 67.4443 29.3793C67.4718 29.4439 67.4415 29.5185 67.3769 29.546L53.1321 35.5901C53.1158 35.5969 53.099 35.6002 53.0823 35.6002Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M30.3519 45.2446C30.3024 45.2446 30.2552 45.2155 30.2347 45.167C30.2073 45.1024 30.2375 45.0278 30.3021 45.0003L49.0374 37.0512C49.1022 37.0237 49.1768 37.054 49.2041 37.1186C49.2316 37.1831 49.2013 37.2578 49.1367 37.2853L30.4014 45.2344C30.3853 45.2414 30.3684 45.2446 30.3519 45.2446Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M47.4544 45.8416C47.4049 45.8416 47.3578 45.8125 47.3373 45.764C47.3098 45.6994 47.3401 45.6248 47.4047 45.5973L82.7331 30.6078C82.7977 30.5803 82.8724 30.6106 82.8998 30.6752C82.9273 30.7398 82.897 30.8144 82.8324 30.8419L47.504 45.8316C47.4877 45.8384 47.4709 45.8416 47.4544 45.8416Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M33.5023 51.7618C33.4528 51.7618 33.4056 51.7327 33.3852 51.6842C33.3577 51.6196 33.388 51.545 33.4525 51.5175L45.1921 46.5365C45.2568 46.509 45.3314 46.5393 45.3588 46.6039C45.3863 46.6685 45.356 46.7431 45.2914 46.7706L33.5519 51.7516C33.5356 51.7585 33.5188 51.7618 33.5023 51.7618Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M56.1937 49.9847C56.1442 49.9847 56.097 49.9556 56.0765 49.9072C56.0491 49.8426 56.0793 49.7679 56.1439 49.7405L77.3231 40.7543C77.3879 40.7268 77.4625 40.7571 77.4898 40.8217C77.5173 40.8863 77.4871 40.9609 77.4225 40.9884L56.2433 49.9746C56.2271 49.9814 56.2102 49.9847 56.1937 49.9847Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M43.264 55.4703C43.2145 55.4703 43.1673 55.4412 43.1469 55.3927C43.1194 55.3281 43.1497 55.2535 43.2143 55.226L53.8987 50.6928C53.9634 50.6653 54.038 50.6956 54.0654 50.7602C54.0928 50.8248 54.0626 50.8994 53.998 50.9269L43.3136 55.4601C43.2974 55.4671 43.2805 55.4703 43.264 55.4703Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M46.4134 61.9878C46.3639 61.9878 46.3167 61.9587 46.2963 61.9102C46.2688 61.8456 46.2991 61.771 46.3637 61.7435L62.42 54.931C62.4847 54.9036 62.5593 54.9338 62.5867 54.9984C62.6141 55.063 62.5839 55.1377 62.5193 55.1651L46.463 61.9776C46.4468 61.9845 46.4299 61.9878 46.4134 61.9878Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M42.9476 71.3083C42.8981 71.3083 42.8509 71.2791 42.8305 71.2307C42.803 71.1661 42.8333 71.0914 42.8979 71.064L74.6883 57.5756C74.7531 57.5481 74.8276 57.5784 74.855 57.643C74.8825 57.7076 74.8522 57.7823 74.7876 57.8097L42.9972 71.2981C42.981 71.3049 42.9641 71.3083 42.9476 71.3083Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M52.7112 75.0187C52.6618 75.0187 52.6146 74.9896 52.5941 74.9412C52.5667 74.8766 52.5969 74.8019 52.6615 74.7744L65.8446 69.181C65.9093 69.1536 65.984 69.1838 66.0113 69.2484C66.0388 69.313 66.0085 69.3877 65.9439 69.4151L52.7608 75.0085C52.7447 75.0155 52.7278 75.0187 52.7112 75.0187Z",fill:"#0A0A0A"}),n.createElement("path",{d:"M55.8597 81.5336C55.8102 81.5336 55.763 81.5045 55.7426 81.456C55.7151 81.3914 55.7454 81.3168 55.81 81.2893L78.7386 71.5609C78.8034 71.5335 78.878 71.5637 78.9053 71.6283C78.9328 71.6929 78.9025 71.7676 78.8379 71.795L55.9093 81.5234C55.8931 81.5303 55.8762 81.5336 55.8597 81.5336Z",fill:"#0A0A0A"})))),lt||(lt=n.createElement("defs",null,n.createElement("clipPath",{id:"itsec-icon-[name]-[hash:5]____clip0_40000788_5144"},n.createElement("rect",{width:130,height:96,fill:"white"})))));var dt,ht,mt,ut,Ct,pt,gt,ft;function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Et.apply(null,arguments)}const yt=e=>n.createElement("svg",Et({width:134,height:96,viewBox:"0 0 134 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n.createElement("g",{clipPath:"url(#itsec-icon-[name]-[hash:5]____clip0_40000788_6200)"},n.createElement("mask",{id:"itsec-icon-[name]-[hash:5]____mask0_40000788_6200",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:134,height:96},dt||(dt=n.createElement("path",{d:"M133.211 0H0.288086V96H133.211V0Z",fill:"white"}))),n.createElement("g",{mask:"url(#itsec-icon-[name]-[hash:5]____mask0_40000788_6200)"},n.createElement("mask",{id:"itsec-icon-[name]-[hash:5]____mask1_40000788_6200",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:52,width:34,height:34},ht||(ht=n.createElement("path",{d:"M24.2802 52.7172L0.0634766 62.8789L9.35347 85.0183L33.5702 74.8566L24.2802 52.7172Z",fill:"white"}))),mt||(mt=n.createElement("g",{mask:"url(#itsec-icon-[name]-[hash:5]____mask1_40000788_6200)"},n.createElement("path",{d:"M19.3156 54.8633L31.576 71.9327L14.4684 81.7535L2.20801 64.684L19.3156 54.8633Z",fill:"#111111"}),n.createElement("path",{d:"M14.4919 81.8074C14.4798 81.8125 14.4664 81.8133 14.4538 81.8098C14.4412 81.8062 14.4302 81.7985 14.4225 81.7879L2.16219 64.7184C2.15748 64.7118 2.1542 64.7043 2.15257 64.6964C2.15093 64.6885 2.15097 64.6803 2.15268 64.6724C2.1544 64.6645 2.15775 64.6571 2.16252 64.6505C2.16729 64.644 2.17338 64.6385 2.1804 64.6345L19.288 54.8138C19.3004 54.8067 19.3151 54.8044 19.3291 54.8074C19.3431 54.8104 19.3555 54.8185 19.3639 54.8302L31.6242 71.8996C31.6289 71.9062 31.6322 71.9137 31.6338 71.9216C31.6355 71.9295 31.6354 71.9376 31.6337 71.9455C31.632 71.9534 31.6286 71.9609 31.6239 71.9674C31.6191 71.974 31.613 71.9794 31.606 71.9835L14.4984 81.8042C14.4963 81.8054 14.4941 81.8065 14.4919 81.8074ZM2.29362 64.7028L14.4862 81.6779L31.4928 71.9151L19.3002 54.9401L2.29362 64.7028Z",fill:"#111111"}),n.createElement("path",{d:"M31.5769 71.9316L30.8273 73.3022L13.7197 83.1229L14.4693 81.7524L31.5769 71.9316Z",fill:"#0E38A3"}),n.createElement("path",{d:"M13.7413 83.1759C13.7303 83.1805 13.718 83.1816 13.7064 83.179C13.6947 83.1764 13.6841 83.1702 13.6761 83.1613C13.668 83.1524 13.663 83.1413 13.6616 83.1294C13.6601 83.1175 13.6624 83.1055 13.6682 83.095L14.4178 81.7244C14.4229 81.715 14.4305 81.7073 14.4397 81.7019L31.5473 71.8812C31.5583 71.8749 31.571 71.8724 31.5835 71.874C31.596 71.8755 31.6077 71.8811 31.6167 71.89C31.6257 71.8988 31.6316 71.9103 31.6334 71.9227C31.6353 71.9352 31.633 71.9479 31.627 71.959L30.8774 73.3296C30.8722 73.339 30.8646 73.3467 30.8554 73.3521L13.7478 83.1728C13.7457 83.1739 13.7435 83.175 13.7413 83.1759ZM14.5115 81.7941L13.8682 82.9704L30.7836 73.26L31.4269 72.0837L14.5115 81.7941Z",fill:"#111111"}),n.createElement("path",{d:"M14.469 81.7521L13.7194 83.1227L1.45898 66.0532L2.20857 64.6826L14.469 81.7521Z",fill:"#BDDFFF"}),n.createElement("path",{d:"M13.743 83.1767C13.7309 83.1817 13.7174 83.1826 13.7048 83.179C13.6922 83.1755 13.6812 83.1677 13.6735 83.1571L1.41318 66.0877C1.40683 66.0789 1.40311 66.0684 1.40245 66.0575C1.40179 66.0467 1.40422 66.0358 1.40945 66.0263L2.1591 64.6557C2.1638 64.6471 2.1706 64.6398 2.17887 64.6345C2.18714 64.6293 2.19661 64.6262 2.20639 64.6256C2.21617 64.625 2.22595 64.6269 2.23479 64.6311C2.24364 64.6353 2.25128 64.6416 2.25698 64.6496L14.5173 81.719C14.5237 81.7279 14.5274 81.7383 14.528 81.7492C14.5287 81.7601 14.5263 81.7709 14.521 81.7805L13.7714 83.1511C13.765 83.1627 13.755 83.1716 13.743 83.1767ZM1.52853 66.0497L13.714 83.0149L14.4019 81.757L2.21648 64.7918L1.52853 66.0497Z",fill:"#111111"}),n.createElement("path",{d:"M2.20801 64.684L19.3156 54.8633C25.5698 63.3912 28.4228 67.2813 31.8609 70.9339L14.7533 80.7546C11.3152 77.102 8.46218 73.2119 2.20801 64.684Z",fill:"white"}),n.createElement("path",{d:"M14.7768 80.8084C14.7659 80.8129 14.7539 80.8141 14.7424 80.8116C14.7308 80.8092 14.7203 80.8033 14.7123 80.7947C11.2714 77.1392 8.41692 73.2469 2.16254 64.7186C2.15773 64.7121 2.15436 64.7046 2.15266 64.6966C2.15095 64.6887 2.15094 64.6805 2.15263 64.6725C2.15432 64.6646 2.15767 64.6571 2.16246 64.6505C2.16725 64.6439 2.17337 64.6384 2.18043 64.6343L19.288 54.8137C19.3004 54.8067 19.3149 54.8044 19.3288 54.8074C19.3427 54.8103 19.3551 54.8182 19.3635 54.8296C25.6152 63.354 28.4685 67.2446 31.9043 70.8948C31.9102 70.9011 31.9147 70.9087 31.9173 70.9171C31.9199 70.9254 31.9205 70.9342 31.9193 70.9428C31.918 70.9514 31.9148 70.9597 31.9098 70.9669C31.9049 70.9741 31.8985 70.9801 31.8909 70.9845L14.7833 80.8052C14.7812 80.8064 14.779 80.8074 14.7768 80.8084ZM2.29422 64.7024C8.50049 73.1649 11.3503 77.0488 14.7654 80.6822L31.7697 70.9207C28.3571 67.2869 25.5032 63.3971 19.3006 54.9397L2.29422 64.7024Z",fill:"#111111"}))),n.createElement("mask",{id:"itsec-icon-[name]-[hash:5]____mask2_40000788_6200",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:15,y:-5,width:118,height:96},ut||(ut=n.createElement("path",{d:"M15.1219 11.9391L120.357 -4.24023L132.393 74.0418L27.1573 90.2212L15.1219 11.9391Z",fill:"white"}))),Ct||(Ct=n.createElement("g",{mask:"url(#itsec-icon-[name]-[hash:5]____mask2_40000788_6200)"},n.createElement("path",{d:"M101.019 51.0134L100.396 51.4027C100.631 51.3141 100.856 51.2027 101.068 51.0699L101.691 50.6807C101.478 50.8134 101.253 50.9249 101.019 51.0134Z",fill:"white"}),n.createElement("path",{d:"M100.407 51.4621C100.411 51.4615 100.415 51.4605 100.419 51.459C100.657 51.3689 100.886 51.2557 101.101 51.121L101.723 50.7321L101.724 50.7316C101.737 50.7232 101.747 50.7098 101.75 50.6943C101.754 50.6789 101.751 50.6626 101.743 50.6492C101.734 50.6357 101.721 50.6262 101.706 50.6226C101.69 50.6191 101.674 50.6218 101.66 50.6302C101.451 50.7608 101.23 50.8705 100.999 50.9577C100.995 50.9592 100.992 50.9609 100.988 50.963L100.366 51.3523C100.354 51.3597 100.346 51.3708 100.341 51.3838C100.337 51.3968 100.337 51.4109 100.342 51.4237C100.347 51.4366 100.356 51.4474 100.367 51.4544C100.379 51.4614 100.393 51.4641 100.407 51.4621Z",fill:"#111111"}),n.createElement("path",{d:"M41.7035 73.4724L41.0811 73.8616L100.398 51.4029L101.02 51.0137L41.7035 73.4724Z",fill:"#111111"}),n.createElement("path",{d:"M41.0894 73.9197C41.0934 73.919 41.0975 73.918 41.1015 73.9165L100.418 51.4578C100.422 51.4564 100.425 51.4547 100.429 51.4526L101.051 51.0633C101.064 51.0554 101.073 51.0431 101.077 51.0288C101.081 51.0145 101.079 50.9992 101.073 50.9859C101.066 50.9726 101.055 50.9622 101.041 50.9568C101.027 50.9513 101.012 50.9512 100.998 50.9565L41.6816 73.4153C41.678 73.4167 41.6745 73.4184 41.6712 73.4205L41.0486 73.8098C41.0369 73.8171 41.0282 73.8282 41.0238 73.8412C41.0193 73.8542 41.0195 73.8684 41.0243 73.8813C41.0291 73.8942 41.0381 73.9051 41.0499 73.9121C41.0618 73.9191 41.0757 73.9218 41.0894 73.9197ZM100.37 51.348L41.6256 73.5901L41.7295 73.5251L100.474 51.2829L100.37 51.348Z",fill:"#111111"}),n.createElement("path",{d:"M19.6896 25.2453L20.312 24.856C18.6122 25.9191 17.9551 28.22 18.855 30.3463L35.9118 70.6468C36.9223 73.0343 39.5142 74.2999 41.7017 73.4716L41.0792 73.8609C38.8917 74.6891 36.2998 73.4235 35.2893 71.0361L18.2326 30.7355C17.3326 28.6093 17.9897 26.3084 19.6896 25.2453Z",fill:"url(#itsec-icon-[name]-[hash:5]____paint0_linear_40000788_6200)"}),n.createElement("path",{d:"M40.3024 74.1272C40.5722 74.0858 40.8392 74.0164 41.1006 73.9175C41.1043 73.9161 41.1079 73.9143 41.1112 73.9122L41.7337 73.5229C41.7461 73.5149 41.7551 73.5027 41.759 73.4884C41.7629 73.4742 41.7615 73.4591 41.7549 73.4459C41.7484 73.4327 41.7372 73.4223 41.7235 73.4169C41.7098 73.4114 41.6946 73.4111 41.6808 73.4162C39.5269 74.2319 36.9639 72.9791 35.9672 70.624L18.9105 30.3235C18.0347 28.2543 18.6362 25.9782 20.3404 24.9095L20.344 24.9073C20.3507 24.9032 20.3564 24.8977 20.361 24.8913C20.3656 24.8849 20.3688 24.8777 20.3706 24.87C20.3723 24.8624 20.3726 24.8544 20.3713 24.8467C20.37 24.839 20.3672 24.8315 20.363 24.8249C20.3545 24.8115 20.3411 24.8019 20.3257 24.7984C20.3102 24.7948 20.294 24.7975 20.2805 24.8059L19.6581 25.1952C17.9009 26.2942 17.2783 28.6343 18.1778 30.7595L35.2345 71.0601C36.1353 73.1885 38.2884 74.4368 40.3024 74.1272ZM41.0528 73.8076C40.801 73.9025 40.5433 73.9692 40.2834 74.0092C38.3224 74.3108 36.224 73.0912 35.3446 71.0133L18.2879 30.7128C17.4485 28.7296 17.9659 26.5564 19.511 25.4383C18.3604 26.6646 18.0478 28.5926 18.8001 30.3702L35.8568 70.6707C36.8104 72.9238 39.1676 74.1901 41.2769 73.6673L41.0528 73.8076Z",fill:"#111111"}),n.createElement("path",{d:"M20.9853 24.5248C18.7978 25.353 17.8452 27.9607 18.8557 30.3481L35.9124 70.6486C36.9228 73.036 39.5147 74.3017 41.7023 73.4734L101.019 51.0149C103.205 50.187 104.158 47.5793 103.147 45.1919L86.0906 4.89138C85.0802 2.50396 82.4883 1.23831 80.302 2.06605L20.9853 24.5248Z",fill:"#BDDFFF"}),n.createElement("path",{d:"M40.9266 73.7385C41.1963 73.6972 41.4633 73.6277 41.7247 73.5288L101.042 51.07C102.037 50.693 102.823 49.9306 103.254 48.9235C103.746 47.7742 103.728 46.4054 103.204 45.1678L86.147 4.86741C85.1255 2.45385 82.4946 1.17161 80.2821 2.0095L20.9654 24.4681C19.9688 24.8454 19.1826 25.6082 18.7515 26.6156C18.2598 27.7646 18.2782 29.1334 18.8018 30.3707L35.8586 70.6712C36.7593 72.7998 38.9126 74.0482 40.9266 73.7385ZM81.0987 1.91784C83.0593 1.61641 85.1573 2.8361 86.0367 4.91402L103.094 45.2145C103.605 46.4222 103.623 47.757 103.144 48.8764C102.726 49.8534 101.964 50.5927 100.999 50.9581L41.6823 73.4168C39.5284 74.2325 36.9653 72.9797 35.9687 70.6246L18.912 30.3241C18.4009 29.1165 18.3825 27.782 18.8614 26.6627C19.2797 25.6853 20.0419 24.9457 21.0077 24.58L80.3245 2.12131C80.5747 2.02662 80.8342 1.95843 81.0987 1.91784Z",fill:"#111111"}),n.createElement("path",{d:"M22.0888 26.0135L80.5873 3.86444C82.1039 3.29027 83.9019 4.16749 84.6023 5.82225L101.39 45.4868C102.091 47.1429 101.429 48.95 99.9122 49.5242L41.4137 71.673C39.8984 72.2468 38.1009 71.3709 37.4 69.7149L20.6125 30.0504C19.9121 28.3956 20.5734 26.5872 22.0888 26.0135Z",fill:"white"}),n.createElement("path",{d:"M40.878 71.8751C41.0682 71.8459 41.2549 71.7968 41.4349 71.7287L99.9333 49.5797C100.629 49.3161 101.178 48.7836 101.48 48.08C101.822 47.2791 101.81 46.3252 101.445 45.463L84.6573 5.79864C83.9454 4.11648 82.1099 3.22341 80.5661 3.80819L22.0675 25.9571C21.3724 26.2203 20.8238 26.7525 20.5229 27.4558C20.1799 28.2573 20.1925 29.2112 20.5573 30.0733L37.3448 69.7377C37.9726 71.221 39.4737 72.091 40.878 71.8751ZM81.1424 3.77975C82.4942 3.57192 83.9408 4.41279 84.5471 5.84525L101.334 45.5097C101.687 46.3421 101.699 47.2618 101.369 48.033C101.081 48.7063 100.556 49.2159 99.8909 49.4678L41.3925 71.6167C39.9086 72.1789 38.1422 71.3147 37.455 69.6911L20.6676 30.0267C20.3153 29.1944 20.3027 28.2746 20.6329 27.5029C20.921 26.8298 21.4455 26.3205 22.1099 26.0691L80.6085 3.92007C80.781 3.85474 80.96 3.80771 81.1424 3.77975Z",fill:"#111111"}),n.createElement("path",{d:"M51.6672 15.7152C52.0239 15.5801 52.4457 15.787 52.6106 16.1766C52.7754 16.566 52.6205 16.9898 52.2638 17.1248C51.9071 17.2598 51.4846 17.0548 51.3197 16.6653C51.1549 16.2757 51.3105 15.8502 51.6672 15.7152Z",fill:"#111111"}),n.createElement("path",{d:"M52.1466 17.2184C52.194 17.2111 52.2409 17.1989 52.2869 17.1815C52.4622 17.1151 52.6005 16.9813 52.676 16.8048C52.7613 16.6055 52.7582 16.3683 52.6676 16.1541C52.4906 15.7359 52.0333 15.5141 51.6479 15.6601C51.4725 15.7266 51.3342 15.8606 51.2584 16.0377C51.1729 16.2377 51.1758 16.4753 51.2666 16.6895C51.4221 17.0572 51.796 17.2723 52.1466 17.2184ZM51.8064 15.7414C52.1036 15.6957 52.4228 15.8829 52.5573 16.2007C52.6354 16.3852 52.6385 16.5882 52.566 16.7577C52.5034 16.9042 52.3893 17.0149 52.2445 17.0697C51.9175 17.1935 51.5286 17.0018 51.3768 16.6428C51.2987 16.4583 51.2956 16.2549 51.3685 16.0847C51.4312 15.9379 51.5455 15.8268 51.6902 15.772C51.7277 15.7577 51.7667 15.7475 51.8064 15.7414Z",fill:"#111111"}),n.createElement("path",{d:"M39.7706 75.7849L61.8506 82.7056C63.1594 83.1158 65.992 82.7772 68.1782 81.9494L127.494 59.4907C129.028 58.9099 129.837 58.243 129.732 57.7549L130.064 59.2956C130.169 59.7838 129.36 60.4506 127.826 61.0314L68.5102 83.4901C66.3239 84.3179 63.4913 84.6566 62.1825 84.2463L40.1025 77.3256C39.7114 77.203 39.5007 77.0275 39.4559 76.8194L39.124 75.2787C39.1688 75.4867 39.3795 75.6623 39.7706 75.7849Z",fill:"url(#itsec-icon-[name]-[hash:5]____paint1_linear_40000788_6200)"}),n.createElement("path",{d:"M65.5247 84.3221C66.5338 84.1671 67.5938 83.9016 68.5327 83.546L127.85 61.0874C129.392 60.5036 130.241 59.8291 130.123 59.2831L129.792 57.7423C129.785 57.71 129.753 57.6886 129.72 57.6965C129.713 57.6981 129.705 57.7013 129.7 57.7057C129.692 57.7102 129.688 57.7159 129.684 57.7225C129.679 57.7291 129.676 57.7365 129.675 57.7442C129.674 57.752 129.674 57.7599 129.675 57.7676C129.776 58.2362 128.911 58.8907 127.476 59.4348L68.1584 81.8935C65.9865 82.7159 63.1653 83.0546 61.8697 82.6486L39.7897 75.7278C39.4344 75.6165 39.2248 75.4568 39.1838 75.2662C39.1803 75.2508 39.1709 75.2373 39.1576 75.2287C39.1443 75.2202 39.1281 75.2172 39.1126 75.2203C39.105 75.222 39.0977 75.2251 39.0912 75.2296C39.0847 75.2341 39.0792 75.2398 39.075 75.2464C39.0707 75.253 39.0678 75.2603 39.0664 75.2681C39.065 75.2758 39.0651 75.2837 39.0668 75.2914L39.3987 76.8322C39.4501 77.0707 39.6812 77.256 40.0858 77.3828L62.1659 84.3035C62.9193 84.5396 64.1764 84.5294 65.5247 84.3221ZM129.744 58.092L130.007 59.3082C130.108 59.7768 129.245 60.4313 127.807 60.9755L68.4903 83.4342C66.3182 84.2566 63.4971 84.5953 62.2017 84.1893L40.1216 77.2685C39.7662 77.1571 39.5567 76.9975 39.5156 76.8069L39.2531 75.5878C39.3693 75.6888 39.5366 75.7738 39.7539 75.8419L61.8339 82.7627C63.1513 83.1755 66.0074 82.8357 68.2007 82.0054L127.518 59.5467C128.743 59.0824 129.533 58.5607 129.744 58.092Z",fill:"#111111"}),n.createElement("path",{d:"M41.3622 73.542C39.1759 74.3698 38.464 75.3731 39.7729 75.7834L61.8529 82.7041C63.1617 83.1143 65.9943 82.7757 68.1806 81.9479L127.497 59.4892C129.685 58.661 130.397 57.6576 129.088 57.2474L107.008 50.3266C105.699 49.9164 102.866 50.2551 100.679 51.0833L41.3622 73.542Z",fill:"#BDDFFF"}),n.createElement("path",{d:"M65.1922 82.7804C66.2013 82.6253 67.2612 82.3598 68.2001 82.0043L127.517 59.5456C128.962 58.9981 129.817 58.3554 129.801 57.8263C129.796 57.6342 129.67 57.3682 129.104 57.1907L107.024 50.2699C105.706 49.857 102.85 50.197 100.656 51.0278L41.3394 73.4865C39.8941 74.0337 39.0405 74.6762 39.0559 75.2053C39.0614 75.3973 39.187 75.6634 39.7533 75.8409L61.8333 82.7616C62.5867 82.9978 63.8439 82.9877 65.1922 82.7804ZM103.69 50.3672C105.017 50.1633 106.25 50.1528 106.988 50.3841L129.068 57.3048C129.343 57.3912 129.673 57.5523 129.682 57.8298C129.695 58.2984 128.849 58.913 127.474 59.4337L68.1577 81.8924C65.9858 82.7148 63.1646 83.0535 61.869 82.6475L39.789 75.7268C39.5136 75.6404 39.1835 75.4792 39.1754 75.2018C39.1618 74.7332 40.0072 74.1188 41.3817 73.5984L100.698 51.1397C101.633 50.7857 102.688 50.5213 103.69 50.3672Z",fill:"#111111"}),n.createElement("path",{d:"M47.8598 72.6098L98.5984 53.399C99.2718 53.144 100.145 53.0396 100.548 53.1659L112.138 56.7989C112.541 56.9252 112.321 57.2342 111.648 57.4892L60.9093 76.7001C60.2358 76.955 59.3647 77.0592 58.9617 76.9329L47.371 73.2999C46.9681 73.1736 47.1863 72.8648 47.8598 72.6098Z",fill:"white"}),n.createElement("path",{d:"M59.9967 76.9968C60.3099 76.9486 60.6382 76.8664 60.9288 76.7564L111.667 57.5456C112.137 57.3676 112.403 57.1601 112.398 56.9759C112.396 56.9034 112.352 56.804 112.154 56.7422L100.564 53.1092C100.15 52.9797 99.2586 53.0847 98.5755 53.3434L47.8369 72.5542C47.368 72.7318 47.1022 72.9391 47.1075 73.1232C47.1096 73.1958 47.1537 73.2954 47.3515 73.3574L58.9423 76.9903C59.1793 77.0647 59.5742 77.0617 59.9967 76.9968ZM99.5335 53.2189C99.9345 53.1572 100.306 53.1539 100.528 53.2235L112.119 56.8564C112.177 56.8749 112.276 56.9154 112.278 56.9795C112.281 57.0813 112.08 57.2612 111.625 57.4337L60.8864 76.6446C60.2252 76.895 59.3691 76.9989 58.978 76.8763L47.3873 73.2433C47.3282 73.2248 47.2289 73.1842 47.2271 73.1198C47.2242 73.0181 47.4247 72.8384 47.8793 72.6663L98.6179 53.4554C98.9043 53.3469 99.2275 53.2659 99.5335 53.2189Z",fill:"#111111"}),n.createElement("path",{d:"M78.2034 70.8157L96.2699 63.9753C97.0481 63.6807 98.0568 63.56 98.5232 63.7062L105.229 65.8079C105.694 65.9539 105.441 66.3112 104.663 66.6058L86.5959 73.4462C85.8176 73.7409 84.8089 73.8615 84.3433 73.7156L77.638 71.6139C77.1716 71.4677 77.4252 71.1104 78.2034 70.8157Z",fill:"white"}),n.createElement("path",{d:"M85.5415 73.7816C85.9032 73.726 86.2826 73.6311 86.6184 73.5039L104.684 66.6636C105.223 66.4597 105.528 66.223 105.522 66.0144C105.52 65.9335 105.47 65.8225 105.247 65.7527L98.5423 63.6509C98.0662 63.5015 97.0377 63.6229 96.25 63.9211L78.1834 70.7615C77.645 70.9654 77.3397 71.202 77.3458 71.4106C77.3481 71.4915 77.3979 71.6027 77.6214 71.6727L84.3268 73.7744C84.5998 73.86 85.0546 73.8565 85.5415 73.7816ZM97.351 63.7595C97.8165 63.688 98.2484 63.6842 98.5065 63.7651L105.211 65.8668C105.282 65.8889 105.4 65.9378 105.403 66.0179C105.406 66.1389 105.172 66.3509 104.642 66.5516L86.5759 73.392C85.8095 73.6822 84.8165 73.8025 84.3625 73.6603L77.6571 71.5585C77.5866 71.5364 77.4677 71.4873 77.4654 71.4071C77.4619 71.2861 77.6956 71.0742 78.2258 70.8734L96.2923 64.033C96.6235 63.9076 96.997 63.814 97.351 63.7595Z",fill:"#111111"}))),n.createElement("mask",{id:"itsec-icon-[name]-[hash:5]____mask3_40000788_6200",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:15,y:70,width:34,height:26},pt||(pt=n.createElement("path",{d:"M48.1479 70.9717H15.4238V95.6926H48.1479V70.9717Z",fill:"white"}))),gt||(gt=n.createElement("g",{mask:"url(#itsec-icon-[name]-[hash:5]____mask3_40000788_6200)"},n.createElement("path",{d:"M15.5124 71.0624C15.4932 71.0821 15.4882 71.1044 15.4865 71.1117C15.4854 71.1177 15.4851 71.1238 15.4857 71.1299C15.4858 71.1594 15.4989 71.1783 15.5056 71.1869C15.5036 71.1845 15.5031 71.18 15.5044 71.1733C15.5095 71.1479 15.5389 71.1011 15.5702 71.0686C15.5908 71.0471 15.607 71.0373 15.6142 71.0404C15.5608 71.0188 15.5228 71.0518 15.5124 71.0624Z",fill:"white"}),n.createElement("path",{d:"M15.506 71.2493C15.497 71.2493 15.4881 71.2473 15.48 71.2435C15.4718 71.2398 15.4646 71.2343 15.4588 71.2274L15.4557 71.2237C15.4355 71.1975 15.4244 71.1655 15.4241 71.1325C15.4234 71.1215 15.4241 71.1104 15.4262 71.0996C15.4334 71.0676 15.4475 71.0411 15.4685 71.0196C15.5037 70.9835 15.5664 70.9549 15.6368 70.983L15.6387 70.9838C15.651 70.989 15.6612 70.998 15.668 71.0095C15.6747 71.021 15.6776 71.0343 15.6761 71.0475C15.6747 71.0608 15.6691 71.0732 15.66 71.0829C15.651 71.0927 15.639 71.0993 15.6259 71.1017C15.6222 71.1049 15.6186 71.1083 15.6152 71.112C15.5916 71.1364 15.5737 71.166 15.5675 71.1803C15.5697 71.2006 15.5619 71.2216 15.5449 71.2354C15.5339 71.2444 15.5202 71.2493 15.506 71.2493Z",fill:"#111111"}),n.createElement("path",{d:"M15.6142 71.0395C15.6068 71.0369 15.5908 71.0468 15.5705 71.0678C15.5603 71.0785 15.5508 71.0899 15.5421 71.1018C15.5231 71.1278 15.5082 71.1552 15.5047 71.1725C15.5034 71.1789 15.5038 71.1834 15.5057 71.1858L16.1306 72.0425C16.1225 72.0313 16.1207 72.0116 16.1264 71.9829C16.1419 71.9055 16.2083 71.783 16.2934 71.6669C16.3226 71.6271 16.354 71.5879 16.3863 71.5517C16.3975 71.539 16.4089 71.5267 16.4203 71.5149C16.5108 71.4207 16.5825 71.3767 16.6156 71.3882L15.6142 71.0395Z",fill:"#111111"}),n.createElement("path",{d:"M16.1309 72.1049C16.1212 72.1049 16.1115 72.1026 16.1028 72.0982C16.0941 72.0938 16.0866 72.0873 16.0808 72.0794L15.4559 71.2228C15.4474 71.2111 15.4383 71.1908 15.4443 71.1609C15.4515 71.1253 15.4775 71.086 15.4924 71.0656C15.5029 71.0513 15.5142 71.0378 15.5265 71.025C15.5423 71.0086 15.5849 70.9642 15.6348 70.9815L16.6359 71.3301C16.6507 71.3354 16.6633 71.3461 16.6706 71.3601C16.6778 71.374 16.6795 71.3901 16.6753 71.4052C16.6711 71.4204 16.6613 71.4333 16.6479 71.4415C16.6345 71.4497 16.6185 71.4524 16.6031 71.4493C16.5885 71.4532 16.5425 71.4779 16.4652 71.5582C16.4216 71.6042 16.3811 71.6529 16.3437 71.704C16.2619 71.8156 16.2005 71.9301 16.1875 71.9955C16.1856 72.0047 16.1853 72.0104 16.1854 72.0133C16.1905 72.0228 16.193 72.0334 16.1928 72.0441C16.1926 72.0548 16.1896 72.0653 16.1841 72.0745C16.1786 72.0838 16.1708 72.0914 16.1615 72.0967C16.1522 72.102 16.1417 72.1048 16.1309 72.1049ZM15.5718 71.1714L16.0933 71.8864C16.1246 71.8117 16.1772 71.7217 16.2438 71.6308C16.2842 71.5751 16.3284 71.5222 16.3759 71.4725C16.4052 71.4421 16.4314 71.4177 16.455 71.3982L15.6193 71.1072C15.6182 71.1084 15.6168 71.1097 15.6154 71.1112L15.6096 71.1175C15.595 71.134 15.5823 71.152 15.5718 71.1714Z",fill:"#111111"}),n.createElement("path",{d:"M16.6154 71.3896C16.4303 71.4211 16.105 71.8578 16.1303 72.044L18.1857 74.8615C18.0755 74.2796 19.3746 72.5063 19.9091 72.5368L16.6154 71.3896Z",fill:"white"}),n.createElement("path",{d:"M18.1851 74.9238C18.1753 74.9238 18.1657 74.9215 18.157 74.9171C18.1483 74.9127 18.1408 74.9062 18.135 74.8984L16.0796 72.0809C16.0735 72.0726 16.0696 72.0629 16.0682 72.0528C16.0383 71.8332 16.3841 71.3665 16.6043 71.329C16.6146 71.3272 16.6252 71.3281 16.6351 71.3316L19.9288 72.4787C19.958 72.4889 19.9752 72.519 19.9691 72.5493C19.9659 72.5638 19.9577 72.5767 19.946 72.5858C19.9343 72.5949 19.9197 72.5996 19.9049 72.5991C19.7395 72.5896 19.447 72.8033 19.1244 73.171C18.6491 73.7126 18.1827 74.5167 18.2459 74.8504C18.2476 74.8593 18.2473 74.8685 18.2451 74.8774C18.2428 74.8862 18.2386 74.8944 18.2328 74.9014C18.227 74.9084 18.2197 74.9141 18.2114 74.9179C18.2032 74.9218 18.1942 74.9238 18.1851 74.9238ZM16.1899 72.022L18.1261 74.6759C18.1924 74.2492 18.6022 73.5782 19.0313 73.0892C19.1885 72.9101 19.4508 72.6403 19.6921 72.5274L16.6111 71.4544C16.4577 71.4996 16.1873 71.8638 16.1899 72.022Z",fill:"#111111"}),n.createElement("path",{d:"M19.9099 72.5354C19.4695 72.4644 18.1262 74.1059 18.1865 74.8601L43.8772 93.9062C44.0574 93.0318 45.2487 91.6879 45.6057 91.5747L19.9099 72.5354Z",fill:"#BDDFFF"}),n.createElement("path",{d:"M43.8776 93.9686C43.8643 93.9686 43.8514 93.9643 43.8407 93.9564L18.15 74.9102C18.1429 74.905 18.1371 74.8982 18.1328 74.8905C18.1285 74.8828 18.1259 74.8742 18.1252 74.8654C18.0786 74.283 18.7916 73.279 19.3023 72.8076C19.4843 72.6396 19.7401 72.4452 19.9202 72.4747C19.93 72.4762 19.9393 72.4801 19.9473 72.486L45.643 91.5254C45.6521 91.5322 45.6592 91.5414 45.6635 91.552C45.6677 91.5626 45.669 91.5741 45.6671 91.5854C45.6652 91.5966 45.6603 91.6071 45.6528 91.6157C45.6453 91.6243 45.6357 91.6307 45.6248 91.6342C45.3082 91.7346 44.1191 93.0418 43.9383 93.9191C43.9354 93.9331 43.9278 93.9456 43.9167 93.9546C43.9057 93.9637 43.8919 93.9686 43.8776 93.9686ZM18.2472 74.8281L43.8393 93.8012C44.0622 92.9851 45.043 91.8316 45.4872 91.5641L19.887 72.5957C19.7868 72.5898 19.5988 72.7025 19.3862 72.8987C18.828 73.414 18.2326 74.337 18.2472 74.8281Z",fill:"#111111"}),n.createElement("path",{d:"M44.5597 94.6244C44.5934 94.6411 44.6309 94.6493 44.6708 94.6424L44.8939 94.6037C44.7759 94.6242 44.7226 94.5441 44.7602 94.3563C44.8408 93.9539 45.3083 93.2093 45.8046 92.6932C46.2304 92.2504 46.539 92.1197 46.567 92.3458L46.5391 92.121C46.5335 92.0763 46.5172 92.042 46.4899 92.0208L45.8372 91.5371C45.7258 91.4545 45.4425 91.6114 45.0756 91.9836C45.0621 91.9972 45.0486 92.0111 45.035 92.0253C44.7912 92.2789 44.5536 92.5818 44.3562 92.8799C44.105 93.2593 43.9192 93.6307 43.8688 93.8824C43.8416 94.0182 43.857 94.1036 43.9071 94.1407L44.5597 94.6244Z",fill:"#0E38A3"}),n.createElement("path",{d:"M44.6422 94.7075C44.604 94.7072 44.5663 94.6979 44.5323 94.6804C44.5291 94.6788 44.526 94.6769 44.5231 94.6747L43.8704 94.191C43.7975 94.1369 43.7765 94.0292 43.8083 93.8708C43.8584 93.6208 44.0393 93.2474 44.3047 92.8464C44.5106 92.5355 44.7542 92.2289 44.9906 91.983C45.0044 91.9686 45.0181 91.9546 45.0317 91.9408C45.2608 91.7083 45.675 91.3405 45.8743 91.488L46.527 91.9717C46.5559 91.994 46.591 92.0361 46.6007 92.1139L46.6287 92.3387C46.6299 92.3469 46.6295 92.3552 46.6275 92.3633C46.6254 92.3713 46.6218 92.3788 46.6168 92.3854C46.6118 92.392 46.6056 92.3975 46.5984 92.4016C46.5912 92.4058 46.5833 92.4084 46.5751 92.4094C46.5669 92.4105 46.5586 92.4098 46.5506 92.4076C46.5427 92.4053 46.5352 92.4015 46.5288 92.3963C46.5223 92.3912 46.517 92.3848 46.513 92.3775C46.5091 92.3702 46.5066 92.3623 46.5058 92.354C46.5003 92.3096 46.4839 92.3042 46.4778 92.3022C46.4235 92.2839 46.2204 92.351 45.8495 92.7368C45.3609 93.2448 44.8996 93.9771 44.8212 94.3691C44.7967 94.4917 44.8205 94.5276 44.8284 94.5356C44.8402 94.5478 44.8646 94.5466 44.8833 94.5434C44.8994 94.5406 44.9165 94.5443 44.9299 94.5537C44.9433 94.5632 44.9525 94.5776 44.9553 94.5938C44.9581 94.6099 44.9543 94.6266 44.9449 94.64C44.9354 94.6534 44.921 94.6626 44.9048 94.6654L44.6817 94.704C44.6686 94.7063 44.6554 94.7075 44.6422 94.7075ZM44.5921 94.5718C44.6156 94.5826 44.6381 94.5859 44.6604 94.5821L44.707 94.574C44.6823 94.5193 44.6799 94.4437 44.6997 94.3449C44.782 93.9333 45.2578 93.1735 45.7602 92.651C45.9454 92.4584 46.2786 92.1513 46.4839 92.1773L46.4779 92.1293C46.4754 92.1097 46.4689 92.0835 46.4522 92.0705L45.8005 91.5876C45.7433 91.5452 45.5146 91.6274 45.1199 92.0278C45.1066 92.0412 45.0933 92.0549 45.0799 92.0688C44.8485 92.3096 44.6098 92.61 44.408 92.9148C44.1511 93.303 43.9768 93.6604 43.9297 93.8952C43.8997 94.0452 43.9332 94.0835 43.9442 94.0916L44.5921 94.5718Z",fill:"#111111"}),n.createElement("path",{d:"M47.6368 93.083L46.5217 92.2566C46.4219 92.1826 46.1683 92.3231 45.8397 92.6564C45.8276 92.6686 45.8155 92.681 45.8033 92.6937C45.585 92.9208 45.3721 93.1922 45.1954 93.4591C44.9705 93.7988 44.8041 94.1314 44.7589 94.3568C44.7346 94.4784 44.7484 94.5548 44.7932 94.5881L45.9132 95.4182C46.4346 95.7687 47.0139 95.6827 47.5027 95.1822C48.1032 94.5672 48.3776 93.6796 47.6368 93.083Z",fill:"white"}),n.createElement("path",{d:"M46.5677 95.6944C46.3353 95.6944 46.1022 95.6201 45.879 95.47L44.7566 94.6382C44.6891 94.5881 44.6696 94.4895 44.6985 94.345C44.7435 94.1203 44.9059 93.7851 45.144 93.4253C45.3286 93.1465 45.5471 92.8716 45.759 92.6512C45.7713 92.6384 45.7835 92.6257 45.7958 92.6133C46.0025 92.4037 46.3763 92.072 46.5589 92.2072L47.6739 93.0336L47.6758 93.0351C47.9667 93.2694 48.1242 93.5575 48.1442 93.8915C48.17 94.3246 47.9524 94.811 47.5472 95.2259C47.2438 95.5367 46.9065 95.6944 46.5677 95.6944ZM46.4549 92.2989C46.3756 92.2989 46.1822 92.3978 45.8839 92.7002C45.8721 92.7122 45.8601 92.7245 45.8483 92.737C45.6413 92.9522 45.4279 93.2209 45.2473 93.4936C45.0176 93.8406 44.8618 94.1597 44.8199 94.3693C44.7992 94.4731 44.8117 94.5248 44.8304 94.5387L45.9504 95.3687C46.4421 95.6994 46.9929 95.6164 47.4587 95.1392C47.8395 94.7492 48.0443 94.2971 48.0205 93.8988C48.0028 93.6015 47.861 93.3436 47.5991 93.1323L46.4851 92.3066C46.4783 92.3017 46.4682 92.2989 46.4549 92.2989Z",fill:"#111111"}))))),ft||(ft=n.createElement("defs",null,n.createElement("linearGradient",{id:"itsec-icon-[name]-[hash:5]____paint0_linear_40000788_6200",x1:19.6464,y1:27.029,x2:38.5576,y2:72.9889,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#94C1F7"}),n.createElement("stop",{offset:.168,stopColor:"#5F95ED"}),n.createElement("stop",{offset:.398,stopColor:"#071F57"}),n.createElement("stop",{offset:1,stopColor:"#111111"})),n.createElement("linearGradient",{id:"itsec-icon-[name]-[hash:5]____paint1_linear_40000788_6200",x1:126.031,y1:51.9042,x2:39.7961,y2:84.8442,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#94C1F7"}),n.createElement("stop",{offset:.049,stopColor:"#94C1F7"}),n.createElement("stop",{offset:.5,stopColor:"#2B69E3"}),n.createElement("stop",{offset:.707,stopColor:"#071F57"}),n.createElement("stop",{offset:.768,stopColor:"#071F57"}),n.createElement("stop",{offset:.88,stopColor:"#1E2A4F"}),n.createElement("stop",{offset:.96,stopColor:"#151822"}),n.createElement("stop",{offset:1,stopColor:"#111111"})),n.createElement("clipPath",{id:"itsec-icon-[name]-[hash:5]____clip0_40000788_6200"},n.createElement("rect",{width:134,height:96,fill:"white"})))));function Lt({type:e}){const t=(0,m.useMediaQuery)("(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return"default"===e?t?(0,n.createElement)(ct,null):(0,n.createElement)(bt,null):t?(0,n.createElement)(yt,null):(0,n.createElement)(_t,null)}const bt=(0,k.A)(Z.Ot,{target:"ekmeazt10"})({name:"rpjsjp",styles:"height:80px;width:80px"}),_t=(0,k.A)(Z.u1,{target:"ekmeazt9"})({name:"14mfhm0",styles:"margin:0.5rem 0"}),xt=(0,k.A)(h.Modal,{target:"ekmeazt8"})("width:90%;max-width:760px;& .components-modal__header .components-modal__header-heading{font-size:",(({theme:e})=>e.getSize(e.sizes.text.large)),";}& .components-modal__content{padding:0 0 3.25rem;}"),wt=(0,k.A)(p.DZ,{target:"ekmeazt7"})({name:"r3d19r",styles:"margin:2rem 0 1rem 0"}),At=(0,k.A)(p.ui,{target:"ekmeazt6"})({name:"47medg",styles:"display:grid;grid-template:auto/1fr 1fr;margin-top:2rem"}),vt=(0,k.A)("section",{target:"ekmeazt5"})({name:"135d3fm",styles:"display:flex;flex-direction:column;align-items:stretch"}),Mt=(0,k.A)(vt,{target:"ekmeazt4"})("border-right:1px solid ",(({theme:e})=>e.colors.border.normal),";"),kt=(0,k.A)("header",{target:"ekmeazt3"})({name:"vki80y",styles:"display:flex;flex-direction:column;align-items:center;margin-bottom:1.5rem"}),Ot=(0,k.A)("form",{target:"ekmeazt2"})({name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"}),It=(0,k.A)(h.TextControl,{target:"ekmeazt1"})({name:"p3n7py",styles:"width:290px"}),St=(0,k.A)(p.EY,{target:"ekmeazt0"})("padding:0.25rem 0 0.75rem;visibility:",(({hasError:e})=>e?"visible":"hidden"),";");function Dt(){const[e,t]=(0,s.useState)(""),[a,r]=(0,s.useState)(""),[l,o]=(0,s.useState)({}),{canCreate:c,canCreateLoaded:d,addingScratch:h,addingDefault:m}=(0,u.useSelect)((e=>({canCreate:e("ithemes-security/dashboard").canCreateDashboards(),canCreateLoaded:e("ithemes-security/dashboard").isCanCreateDashboardsLoaded(),addingScratch:e("ithemes-security/dashboard").isAddingDashboard("create-dashboard-scratch"),addingDefault:e("ithemes-security/dashboard").isAddingDashboard("create-dashboard-default")}))),{addDashboard:C,viewPrevious:g}=(0,u.useDispatch)("ithemes-security/dashboard");if(!c&&d)return(0,n.createElement)("div",{className:"itsec-create-dashboard"},(0,n.createElement)(p.EY,{as:"p",text:(0,i.__)("You don’t have permission to create new dashboards. Try switching to a dashboard or ask an administrator to invite you to one.","better-wp-security")}));const f=t=>r=>{r.preventDefault();const n={};switch(t){case"scratch":n.label=a;break;case"default":n.label=e,n.preset="default";break;default:return}n.label.trim().length<=0?o({[t]:!0}):C(n,`create-dashboard-${t}`)};return(0,n.createElement)(xt,{className:"itsec-apply-css-vars",onRequestClose:g,title:(0,i.__)("Create a New Dashboard","better-wp-security")},(0,n.createElement)(At,null,(0,n.createElement)(Mt,null,(0,n.createElement)(kt,null,(0,n.createElement)(Lt,{type:"default"}),(0,n.createElement)(wt,{align:"center",level:2,size:p.$C.LARGE,variant:p.J3.DARK,weight:600,text:(0,i.__)("Start with the default layout","better-wp-security")}),(0,n.createElement)(p.EY,{align:"center",as:"p",size:p.$C.SMALL,variant:p.J3.MUTED,text:(0,i.__)("You can continue to customize this later.","better-wp-security")})),(0,n.createElement)(Zt,{label:e,onLabelChange:t,onSubmit:f("default"),isBusy:m,isDisabled:h,hasError:l.default,buttonText:(0,i.__)("Create board with the default layout","better-wp-security")})),(0,n.createElement)(vt,{className:"itsec-create-dashboard__start itsec-create-dashboard__start--scratch"},(0,n.createElement)(kt,null,(0,n.createElement)(Lt,{type:"scratch"}),(0,n.createElement)(wt,{align:"center",level:2,size:p.$C.LARGE,variant:p.J3.DARK,weight:600,text:(0,i.__)("Start from scratch","better-wp-security")}),(0,n.createElement)(p.EY,{align:"center",as:"p",size:p.$C.SMALL,variant:p.J3.MUTED,text:(0,i.__)("Start building a dashboard with security cards.","better-wp-security")})),(0,n.createElement)(Zt,{label:a,onLabelChange:r,onSubmit:f("scratch"),isBusy:h,isDisabled:m,hasError:l.scratch,buttonText:(0,i.__)("Create board from scratch","better-wp-security")}))))}function Zt({label:e,onLabelChange:t,buttonText:a,onSubmit:r,isDisabled:s,isBusy:l,hasError:o}){const c=(0,m.useInstanceId)(Dt);return(0,n.createElement)(Ot,{onSubmit:r},(0,n.createElement)("div",null,(0,n.createElement)(It,{hideLabelFromVision:!0,label:(0,i.__)("Dashboard Name","better-wp-security"),placeholder:(0,i.__)("Dashboard Name","better-wp-security"),id:`itsec-create-dashboard__name--${c}`,value:e,onChange:t,disabled:l||s,required:!0}),(0,n.createElement)(St,{as:"p",hasError:o,variant:p.J3.MUTED,text:(0,i.__)("Entering a dashboard name is required.","better-wp-security")})),(0,n.createElement)(p.$n,{type:"submit",isBusy:l,disabled:s,text:a}))}var Nt=a(39214),zt=a(68176);function Rt({dashboardId:e}){const t=(0,O.nz)(),a=(0,N.aZ)("settings"),{canManage:r}=(0,O.rP)(),{canCreate:s,canEdit:l}=(0,u.useSelect)((t=>({canCreate:t("ithemes-security/dashboard").canCreateDashboards(),canEdit:t("ithemes-security/dashboard").canEditDashboard(e)})),[e]);return t||r?(0,n.createElement)("div",{className:"itsec-dashboard-toolbar"},(0,n.createElement)(M.gu,null),(0,n.createElement)(h.Toolbar,{label:(0,i.__)("Dashboard Toolbar","better-wp-security")},r&&(0,n.createElement)(h.ToolbarButton,{text:(0,i.__)("Settings","better-wp-security"),icon:Nt.A,href:a}),(0,n.createElement)(g.AdminBarSlot,null),(l||s)&&(0,n.createElement)(h.ToolbarButton,{icon:zt.A,className:"itsec-admin-bar__help",href:"https://go.solidwp.com/security-help-center",text:(0,i.__)("Help","better-wp-security"),target:"_blank"}))):null}var Tt=a(75596);function jt(){const{page:e}=(0,u.useSelect)((e=>({page:e("ithemes-security/dashboard").getCurrentPage()}))),{viewHelp:t,viewPrevious:a}=(0,u.useDispatch)("ithemes-security/dashboard");return(0,n.createElement)("div",{className:"itsec-dashboard-help"},(0,n.createElement)("div",{className:"itsec-help-header"},(0,n.createElement)("h1",{className:"itsec-help-header__title"},(0,i.__)("Help","better-wp-security")),(0,n.createElement)(h.Button,{onClick:()=>{"help"===e?a():t()},icon:"arrow-left-alt",text:(0,i.__)("Back","better-wp-security"),className:"itsec-help-header__back-link"})),(0,n.createElement)(Tt.uD,{topic:"dashboard"}))}const $t=(0,m.pure)((({page:e,dashboardId:t,width:a,breakpoint:r})=>{switch(ge(),e){case"view-dashboard":case"create-dashboard":return t>0&&(0,n.createElement)(nt,{dashboardId:t,width:a,breakpoint:r});case"help":return(0,n.createElement)(jt,null);default:return null}}));function Pt({context:e}){const[t,a]=(0,m.useResizeObserver)(),{page:r,primaryDashboard:i,dashboardId:l,isUsingTouch:o,notices:f}=(0,u.useSelect)((e=>({page:e("ithemes-security/dashboard").getCurrentPage(),primaryDashboard:e("ithemes-security/dashboard").getPrimaryDashboard(),dashboardId:e("ithemes-security/dashboard").getViewingDashboardId(),isUsingTouch:e("ithemes-security/dashboard").isUsingTouch(),notices:e("core/notices").getNotices("ithemes-security")})),[]),{usingTouch:y,viewDashboard:L,viewCreateDashboard:b}=(0,u.useDispatch)("ithemes-security/dashboard"),{removeNotice:_}=(0,u.useDispatch)("core/notices");(0,E.ML)("touchstart",(()=>o||y()));const x=(0,m.usePrevious)(i);return(0,s.useEffect)((()=>{void 0===x&&(i?L(i):b())}),[i,x,L,b]),void 0===i?null:(0,n.createElement)(c.b,{theme:p.$f},(0,n.createElement)(h.SlotFillProvider,null,(0,n.createElement)(O.QO.Provider,{value:e},(0,n.createElement)("div",{className:`itsec-dashboard itsec-app-page--${r}`},t,(0,n.createElement)(h.Popover.Slot,null),(0,n.createElement)(h.NoticeList,{notices:f,onRemove:e=>_(e,"ithemes-security")}),(0,n.createElement)(Rt,{dashboardId:l}),(0,n.createElement)(g.BelowToolbarSlot,{fillProps:{page:r,dashboardId:l}}),(0,n.createElement)(Ze,{dashboardId:l,width:a.width}),"create-dashboard"===r&&(0,n.createElement)(Dt,null),(0,n.createElement)($t,{page:r,dashboardId:l,width:a.width,breakpoint:d.Responsive.utils.getBreakpointFromWidth(O.LO,a.width)})),(0,n.createElement)(C.PluginArea,null))))}const Ft=(0,m.compose)([(0,u.withSelect)(((e,t)=>({callingRpcs:e("ithemes-security/dashboard").getCallingDashboardCardRpcs(t.card.id)})))])((function({card:e,callingRpcs:t,onComplete:a,children:r}){const i=(0,y.get)(e,["_links","ithemes-security:rpc"],[]),s=(0,y.flatten)(Object.values((0,y.get)(e,"_links",{}))).filter((e=>"text/html"===e.media));return i.length||s.length||r?(0,n.createElement)(Ut,null,s.map((e=>(0,n.createElement)("span",{key:e.href},(0,n.createElement)(p.$n,{variant:"link",href:e.href},e.title)))),(0,n.createElement)(Tt.g8,null),i.map(((r,i)=>(0,n.createElement)("span",{key:r.href},(0,n.createElement)(p.$n,{variant:0===i?"primary":"secondary",onClick:()=>!t.includes(r.href)&&(async t=>{const r=await(0,u.dispatch)("ithemes-security/dashboard").callDashboardCardRpc(e.id,t);a&&a(t,r)})(r.href),isBusy:t.includes(r.href),"aria-disabled":t.includes(r.href)},r.title)))),r):null})),Yt=(0,k.A)("footer",{target:"e8ci2uc0"})("display:flex;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:0.5rem;padding:0.5rem 1.25rem;margin-top:auto;border-top:1px solid ",(({theme:e})=>e.colors.border.normal),";&:empty{display:none;}"),Ut=function({children:e}){return(0,n.createElement)(Yt,null,e)};var Wt=a(67108);function Ht({title:e}){return(0,n.createElement)(_e,null,(0,n.createElement)(xe,{text:(0,i.sprintf)((0,i.__)("Pro: %s","better-wp-security"),e),href:"https://go.solidwp.com/buy-solid-security",target:"_blank",align:"left",icon:Wt.A,iconPosition:"right",variant:"tertiary"}))}const Bt=(0,k.A)(p.ui,{target:"e1s27le62"})({name:"13ku56z",styles:"display:flex;flex-direction:column;height:100%"}),Jt=(0,k.A)("div",{target:"e1s27le61"})("text-align:center;display:flex;gap:",(({theme:{getSize:e}})=>e(1.25)),";flex-direction:column;align-items:center;flex-grow:1;height:100%;justify-content:center;"),qt=(0,k.A)("section",{target:"e1s27le60"})("max-width:70ch;display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.5)),";");function Kt({title:e,text:t}){return(0,n.createElement)(Bt,null,(0,n.createElement)(Jt,{className:"itsec-card__util-padding"},(0,n.createElement)(qt,null,(0,n.createElement)(p.DZ,{level:4,size:p.$C.NORMAL,weight:p.uL.HEAVY,text:e,align:"center"}),(0,n.createElement)(p.EY,{as:"p",text:t,align:"center"})),(0,n.createElement)(M.zf,{icon:(0,n.createElement)(Z.r,null),isSmall:!0})))}a.p=window.itsecWebpackPublicPath,(0,i.setLocaleData)({"":{}},"better-wp-security"),o()((()=>{const e=document.getElementById("itsec-dashboard-root");if(e){const t="1"===e.dataset.canManage,a=e.dataset.installType;(0,s.createRoot)(e).render((0,n.createElement)(Pt,{context:{canManage:t,installType:a}}))}}))},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}()}},e=>{e.O(0,[9427,9787,6843,2038,9819,8363,468,5205,3520,4319,5596],(()=>e(e.s=67243)));var t=e.O();((window.itsec=window.itsec||{}).dashboard=window.itsec.dashboard||{}).dashboard=t}]);