芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/ithemes-security-pro/dist/pro-dashboard/dashboard.min.js
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[3227],{23283:(e,t,r)=>{"use strict";r.r(t);var a=r(6293),s=r(3571),n=r(95122),i=r(48015),o=r(5638),l=r(64893),d=r(96015),c=r(83904),u=r(13173),h=r(10906),m=r(92819),p=r(1528),g=r(60976),b=r(52117),y=r(28952),f=r.n(y);const x=(0,b.Z)(u.zx,{target:"etlee6110"})("&.components-button{background:",(({theme:e})=>e.colors.surface.primary),";border:1px solid ",(({theme:e})=>e.colors.border.input),";box-shadow:none;}&:active{background-color:",(({theme:e})=>e.colors.surface.tertiary),";}"),E=(0,b.Z)("div",{target:"etlee619"})({name:"6p7o8o",styles:"display:flex;flex-grow:1;align-items:center;gap:0.5rem"}),v=(0,b.Z)("div",{target:"etlee618"})({name:"1v38uti",styles:"display:flex;align-items:center;&>*{display:flex;margin-left:-1.5em;transition:all 300ms ease;&:first-child{margin-left:0;}&:hover{margin-right:.5em;}&:last-child:hover{margin-right:0;}&:hover+*{margin-left:0;}}"}),w=(0,b.Z)("span",{target:"etlee617"})({name:"jtvuzj",styles:"display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem"}),_=(0,b.Z)(w,{target:"etlee616"})("color:",(({theme:e,backgroundColor:t})=>"light"===f()(t)?e.colors.text.dark:e.colors.text.white),";background-color:",(({backgroundColor:e})=>e),";border-radius:50%;"),k=(0,b.Z)("span",{target:"etlee615"})({name:"rkiwex",styles:"font-size:1rem"}),D=(0,b.Z)("img",{target:"etlee614"})({name:"8477rn",styles:"height:2.25rem;width:2.25rem;border-radius:50%"}),I=(0,b.Z)(u.zx,{target:"etlee613"})({name:"18c1yyk",styles:"padding:0;&:hover{box-shadow:none!important;}"}),C=(0,b.Z)("div",{target:"etlee612"})("width:",(({isExpanded:e})=>e?"100%":"200px"),";display:flex;flex-direction:column;gap:0.5rem;"),O=(0,b.Z)("header",{target:"etlee611"})({name:"a0377c",styles:"display:flex;align-items:center;gap:0.75rem"}),L=(0,b.Z)("footer",{target:"etlee610"})({name:"2qga7i",styles:"text-align:right"}),N=(0,a.forwardRef)((function({avatar:e,label:t,slug:r},s){if(e)return(0,a.createElement)(w,{ref:s},(0,a.createElement)(D,{src:e,alt:""}));if(t){const e=g.l6[(e=>{let t=0;for(let r=0;r
({dashboard:t("ithemes-security/dashboard").getDashboardForEdit(e)})),[e]),r=(0,m.get)(t,["_embedded","author",0]);return r?(0,a.createElement)(l.Tooltip,{text:r.name},(0,a.createElement)(N,{avatar:(0,p.getAvatarUrl)(r)})):null}var S=r(14776),z=r(9576),Z=r(59588),A=r.n(Z),H=r(87514),U=r.n(H),V=r(73470),T=r(20567);const j=(0,b.Z)("form",{target:"e1m8toyd8"})("width:",(({isExpanded:e})=>e?"100%":"300px"),";padding:0.25rem 0.75rem;display:flex;flex-direction:column;gap:0.5rem;"),R=(0,b.Z)("header",{target:"e1m8toyd7"})({name:"p5tmle",styles:"display:flex;flex-direction:column;gap:0.5rem"}),P=(0,b.Z)("section",{target:"e1m8toyd6"})({name:"vhphzh",styles:"display:flex;flex-direction:column;gap:0.5rem;margin-top:0.75rem"}),K=(0,b.Z)("footer",{target:"e1m8toyd5"})("display:flex;justify-content:space-between;align-items:center;border-top:1px solid ",(({theme:e})=>e.colors.border.normal),";margin-top:1.5rem;padding-top:1.5rem;"),q=(0,b.Z)(u.zx,{target:"e1m8toyd4"})({name:"1o3nkn",styles:"margin-left:auto"}),F=(0,b.Z)("div",{target:"e1m8toyd3"})({name:"26en7y",styles:"display:flex;gap:0.5rem;align-items:center"}),Y=(0,b.Z)(T.qb,{target:"e1m8toyd2"})({name:"xer59f",styles:"flex-grow:1;input:focus{box-shadow:none;}"}),B=(0,b.Z)("section",{target:"e1m8toyd1"})({name:"p2oy12",styles:"display:flex;flex-direction:column;gap:0.25rem"}),G=(0,b.Z)(u.xv,{target:"e1m8toyd0"})({name:"49aokf",styles:"display:contents"}),X=A()(((e=[])=>t=>new Promise(((r,a)=>{U()({path:(0,V.addQueryArgs)("/wp/v2/users",{search:t,per_page:100,exclude:e})}).then((e=>r(e.map((e=>({value:e.id,label:e.name,user:e})))))).catch(a)})))),W=A()(((e=[])=>[].concat(...e.map((e=>e.users||[])))));function J({dashboardId:e,share:t={type:"user",users:[]},onChange:r}){const{suggested:s,dashboard:o}=(0,i.useSelect)((t=>({suggested:t("ithemes-security/dashboard").getSuggestedShareUsers(),dashboard:t("ithemes-security/dashboard").getDashboardForEdit(e)})),[e]),d=W(o.sharing).concat(o.created_by),c=s.filter((e=>!d.includes(e.id)));return(0,a.createElement)(P,null,c.length>0&&(0,a.createElement)(B,{as:"fieldset"},(0,a.createElement)(G,{as:"legend",text:(0,n.__)("Suggested Users","it-l10n-ithemes-security-pro")}),(0,a.createElement)(u.aV,null,c.map((e=>(0,a.createElement)(u.HC,{key:e.id},(0,a.createElement)(l.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.name,checked:t.users.includes(e.id),onChange:a=>r(a?{...t,users:[...t.users,e.id]}:{...t,users:t.users.filter((t=>t!==e.id))})})))))),(0,a.createElement)(Q,{share:t,onChange:r,suggested:s,exclude:d}))}function Q({share:e,onChange:t,suggested:r,exclude:s}){const{receiveUser:o}=(0,i.useDispatch)("ithemes-security/dashboard"),[l,d]=(0,a.useState)(void 0),[c,h]=(0,a.useState)(""),m=e.users.filter((e=>!r.some((t=>t.id===e))));return(0,a.createElement)(B,null,(0,a.createElement)(u.X6,{level:4,size:u.yH.NORMAL,text:(0,n.__)("All Users","it-l10n-ithemes-security-pro")}),m.length>0&&(0,a.createElement)(u.aV,null,m.map((e=>(0,a.createElement)($,{key:e,userId:e})))),(0,a.createElement)(u.xv,{as:"label",htmlFor:"itsec-share-dashboard__add-users-select",text:(0,n.__)("Select a User","it-l10n-ithemes-security-pro")}),(0,a.createElement)(F,null,(0,a.createElement)(Y,{className:"itsec-share-dashboard__add-users-select-dropdown",inputId:"itsec-share-dashboard__add-users-select",cacheOptions:!0,defaultOptions:!0,loadOptions:X(s),value:l,onChange:e=>d(e),inputValue:c,onInputChange:e=>h(e),maxMenuHeight:150,menuPlacement:"top"}),(0,a.createElement)(u.zx,{onClick:r=>{r.preventDefault(),l&&(o(l.user),t({...e,users:[...e.users,l.value]}),d(!1),h(""))},disabled:!l,text:(0,n.__)("Select","it-l10n-ithemes-security-pro"),variant:"tertiary"})))}function $({userId:e}){const{user:t}=(0,i.useSelect)((t=>({user:t("ithemes-security/dashboard").getUser(e)})),[e]);return(0,a.createElement)(u.HC,{text:t.name})}const ee=A()(((e,t)=>e.some((e=>"role"===e.type&&e.roles.includes(t)))));function te({dashboardId:e,share:t={type:"role",roles:[]},onChange:r}){const{dashboard:s,roles:o}=(0,i.useSelect)((t=>({dashboard:t("ithemes-security/dashboard").getDashboardForEdit(e),roles:t("ithemes-security/core").getRoles()})),[e]),d=(0,m.pickBy)(o,((e,t)=>!ee(s.sharing,t))),c=!(0,m.isEmpty)(d);return(0,a.createElement)(P,null,!c&&(0,a.createElement)(u.xv,{text:(0,n.__)("All roles already selected.","it-l10n-ithemes-security-pro"),variant:u.rK.MUTED}),c&&(0,a.createElement)(u.aV,null,(0,m.map)(d,((e,s)=>(0,a.createElement)(u.HC,{key:s},(0,a.createElement)(l.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.label,checked:t.roles.includes(s),onChange:e=>r(e?{...t,roles:[...t.roles,s]}:{...t,roles:t.roles.filter((e=>s!==e))})}))))))}const re=(0,m.once)((()=>[{name:"user",title:(0,n.__)("Users","it-l10n-ithemes-security-pro"),Component:J,type:"button",count:e=>(0,n.sprintf)((0,n._n)("%d user","%d users",e.users.length,"it-l10n-ithemes-security-pro"),e.users.length)},{name:"role",title:(0,n.__)("Roles","it-l10n-ithemes-security-pro"),type:"button",Component:te,count:e=>(0,n.sprintf)((0,n._n)("%d role","%d roles",e.roles.length,"it-l10n-ithemes-security-pro"),e.roles.length)}]));function ae({dashboardId:e,close:t}){const r=(0,z.useViewportMatch)("medium","<"),[s,o]=(0,a.useState)({}),{isSaving:l,dashboard:d}=(0,i.useSelect)((t=>({isSaving:t("ithemes-security/dashboard").isSavingDashboard(e),dashboard:t("ithemes-security/dashboard").getDashboardForEdit(e)})),[e]),{saveDashboard:c}=(0,i.useDispatch)("ithemes-security/dashboard"),h=async e=>{e.preventDefault(),l||(await c({...d,sharing:[...d.sharing,...Object.values(s).filter((e=>e))]}),o({}),t())},p=re(),g=p.reduce(((e,t)=>(s[t.name]&&e.push(t.count(s[t.name])),e)),[]);return(0,a.createElement)(j,{onSubmit:h,isExpanded:r},(0,a.createElement)(R,null,!r&&(0,a.createElement)(u.X6,{level:3,size:u.yH.NORMAL,variant:u.rK.DARK,weight:u.fs.HEAVY,text:(0,n.__)("Share Dashboard","it-l10n-ithemes-security-pro")}),(0,a.createElement)(u.xv,{as:"p",text:(0,n.__)("Give select users read-only access to this dashboard. Great for building client portals.","it-l10n-ithemes-security-pro"),size:u.yH.SMALL,variant:u.rK.MUTED})),(0,a.createElement)(u.x4,{tabs:p},(({name:t,Component:r=m.noop})=>(0,a.createElement)(r,{dashboardId:e,share:s[t],onChange:e=>o({...s,[t]:e})}))),(0,a.createElement)(K,null,g.length>0&&(0,a.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,n.sprintf)((0,n.__)("%s selected","it-l10n-ithemes-security-pro"),g.join(", "))}),(0,a.createElement)(q,{variant:"primary",type:"submit",onClick:h,isBusy:l,disabled:l||(0,m.isEmpty)(s),text:(0,n.__)("Share","it-l10n-ithemes-security-pro")})))}function se({dashboardId:e,userId:t,user:r}){const s=(0,z.useViewportMatch)("medium","<"),{dashboard:o}=(0,i.useSelect)((t=>({dashboard:t("ithemes-security/dashboard").getDashboardForEdit(e)})),[e]),{saveDashboard:d}=(0,i.useDispatch)("ithemes-security/dashboard"),c=()=>{const e=[];for(const r of o.sharing)if("user"!==r.type)e.push(r);else if(r.users.includes(t)){const a={...r,users:r.users.filter((e=>e!==t))};e.push(a)}else e.push(r);d({...o,sharing:e})},h=r?r.name:(0,n.sprintf)((0,n.__)("User #%d","it-l10n-ithemes-security-pro"),t),m=(0,p.getAvatarUrl)(r);return(0,a.createElement)(l.Dropdown,{headerTitle:(0,n.sprintf)((0,n.__)("Share Settings for %s","it-l10n-ithemes-security-pro"),h),focusOnMount:"container",expandOnMobile:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(l.Tooltip,{text:h},(0,a.createElement)(I,{"aria-pressed":e,"aria-label":h,onClick:t,variant:""},(0,a.createElement)(N,{avatar:m}))),renderContent:()=>(0,a.createElement)(C,{isExpanded:s},(0,a.createElement)(O,null,(0,a.createElement)(D,{src:m,alt:""}),(0,a.createElement)(u.X6,{level:3,size:u.yH.LARGE,variant:u.rK.DARK,weight:u.fs.HEAVY,text:h})),(0,a.createElement)(L,null,(0,a.createElement)(u.zx,{variant:"tertiary",onClick:c,text:(0,n.__)("Remove","it-l10n-ithemes-security-pro")})))})}function ne({dashboardId:e,role:t}){const r=(0,z.useViewportMatch)("medium","<"),{dashboard:s,roles:o}=(0,i.useSelect)((t=>({dashboard:t("ithemes-security/dashboard").getDashboardForEdit(e),roles:t("ithemes-security/core").getRoles()})),[e]),{saveDashboard:d}=(0,i.useDispatch)("ithemes-security/dashboard"),c=()=>{const e=[];for(const r of s.sharing)if("role"!==r.type)e.push(r);else if(r.roles.includes(t)){const a={...r,roles:r.roles.filter((e=>e!==t))};e.push(a)}else e.push(r);return d({...s,sharing:e})},h=(0,m.get)(o,[t,"label"],t);return(0,a.createElement)(l.Dropdown,{headerTitle:(0,n.sprintf)((0,n.__)("Share Settings for %s","it-l10n-ithemes-security-pro"),h),focusOnMount:"container",expandOnMobile:!0,renderToggle:({isOpen:e,onToggle:r})=>(0,a.createElement)(l.Tooltip,{text:h},(0,a.createElement)(I,{"aria-pressed":e,onClick:r,"aria-label":h,variant:""},(0,a.createElement)(N,{label:h,slug:t}))),renderContent:()=>(0,a.createElement)(C,{isExpanded:r},(0,a.createElement)(O,null,(0,a.createElement)(u.X6,{level:3,variant:u.rK.DARK,size:u.yH.LARGE,weight:u.fs.HEAVY,text:h})),(0,a.createElement)(L,null,(0,a.createElement)(u.zx,{variant:"tertiary",onClick:c,text:(0,n.__)("Remove","it-l10n-ithemes-security-pro")})))})}function ie({dashboardId:e}){const{dashboard:t}=(0,i.useSelect)((t=>({dashboard:t("ithemes-security/dashboard").getDashboardForEdit(e)})),[e]);return(0,a.createElement)(E,null,(0,a.createElement)(l.Dropdown,{popoverProps:{position:"bottom right"},expandOnMobile:!0,focusOnMount:"container",headerTitle:(0,n.__)("Share with User","it-l10n-ithemes-security-pro"),renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(u.zx,{label:(0,n.__)("Share Dashboard","it-l10n-ithemes-security-pro"),"aria-pressed":e,onClick:t,icon:oe,variant:"tertiary"}),renderContent:({onClose:t})=>(0,a.createElement)(ae,{dashboardId:e,close:t})}),(0,a.createElement)(v,null,(0,m.get)(t,"sharing",[]).filter((e=>"user"===e.type)).map((r=>r.users.map((s=>{return(0,a.createElement)(se,{share:r,userId:s,user:(n=s,(0,m.find)((0,m.get)(t,["_embedded","ithemes-security:shared-with"],[]),{id:n})),dashboardId:e,key:s});var n})))),(0,m.get)(t,"sharing",[]).filter((e=>"role"===e.type)).map((t=>t.roles.map((r=>(0,a.createElement)(ne,{share:t,role:r,dashboardId:e,key:r})))))))}const oe=(0,a.createElement)(S.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(S.Path,{d:"M12 2.5L12 15.5M12 2.5L9 5.5M12 2.5L15 5.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.createElement)(S.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 9H7C5.89543 9 5 9.89543 5 11V18C5 19.1046 5.89543 20 7 20H17C18.1046 20 19 19.1046 19 18V11C19 9.89543 18.1046 9 17 9H15.5V10.5H17C17.2761 10.5 17.5 10.7239 17.5 11V18C17.5 18.2761 17.2761 18.5 17 18.5H7C6.72386 18.5 6.5 18.2761 6.5 18V11C6.5 10.7239 6.72386 10.5 7 10.5H8.5V9Z"}));var le=r(82521),de=r(29508);const ce=(0,b.Z)("div",{target:"eijzkqk10"})("padding:0.25rem 0.75rem;width:",(({isExpanded:e})=>e?"100%":"300px"),";display:flex;flex-direction:column;gap:0.5rem;"),ue=(0,b.Z)("header",{target:"eijzkqk9"})({name:"p5tmle",styles:"display:flex;flex-direction:column;gap:0.5rem"}),he=(0,b.Z)("ul",{target:"eijzkqk8"})({name:"1chjzrs",styles:"display:flex;flex-direction:column;gap:0.5rem;margin:0"}),me=(0,b.Z)("footer",{target:"eijzkqk7"})({name:"zjik7",styles:"display:flex"}),pe=(0,b.Z)(u.zx,{target:"eijzkqk6"})("flex:1;background-color:",(({theme:e})=>e.colors.surface.secondary),"!important;"),ge=(0,de.F4)({name:"1x91ro9",styles:"0%{opacity:.5;}25%{opacity:1;}60%{opacity:.5;}100%{opacity:.5;}"}),be=(0,b.Z)(u.Tg,{shouldForwardProp:e=>"isDeleting"!==e,target:"eijzkqk5"})("display:flex;flex-direction:column;gap:0.5rem;padding:0.75rem 0.5rem;margin:0;",(({isDeleting:e})=>e&&`animation: ${ge} 3s ease-out infinite normal;`),";"),ye=(0,b.Z)("header",{target:"eijzkqk4"})({name:"uq5ekw",styles:"display:flex;align-items:center;justify-content:flex-start;gap:0.75rem"}),fe=(0,b.Z)(u.zx,{target:"eijzkqk3"})("font-weight:",u.fs.HEAVY,";"),xe=(0,b.Z)("section",{target:"eijzkqk2"})({name:"p2oy12",styles:"display:flex;flex-direction:column;gap:0.25rem"}),Ee=(0,b.Z)("footer",{target:"eijzkqk1"})({name:"emb48o",styles:"display:flex;gap:0.5rem;justify-content:space-between"}),ve=(0,b.Z)(u.zx,{target:"eijzkqk0"})({name:"82a6rk",styles:"flex:1"});function we({dashboard:e,currentUserId:t,close:r}){const{currentDashboard:s,isPrimary:l,isDeleting:d}=(0,i.useSelect)((t=>({currentDashboard:t("ithemes-security/dashboard").getViewingDashboardId(),isPrimary:t("ithemes-security/dashboard").getPrimaryDashboard()===e.id,isDeleting:t("ithemes-security/dashboard").isDeletingDashboard(e.id)})),[e.id]),{viewDashboard:c,setPrimaryDashboard:h,deleteDashboard:p}=(0,i.useDispatch)("ithemes-security/dashboard"),g=(0,o.decodeEntities)(e.label.rendered),b=e.id!==s&&!l&&t===e.created_by;return(0,a.createElement)(be,{as:"li",isDeleting:d,variant:u.h1.SECONDARY},(0,a.createElement)(ye,null,(0,a.createElement)(u.X6,{level:4,size:u.yH.NORMAL,weight:u.fs.HEAVY},s===e.id?g:(0,a.createElement)(fe,{variant:"link",onClick:()=>{c(e.id),r()},text:g})),l&&(0,a.createElement)(u.xv,{variant:u.rK.MUTED,weight:u.fs.HEAVY,text:(0,n.__)("• Primary","it-l10n-ithemes-security-pro")})),(0,a.createElement)(xe,null,t!==e.created_by&&(0,a.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,n.sprintf)((0,n.__)("Shared by %s","it-l10n-ithemes-security-pro"),(0,m.get)(e,["_embedded","author",0,"name"],(0,n.sprintf)((0,n.__)("User #%d","it-l10n-ithemes-security-pro"),e.created_by)))}),(0,a.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,n.sprintf)((0,n.__)("Created on %s","it-l10n-ithemes-security-pro"),(0,le.dateI18n)("M j, Y",e.created_at))})),(!l||b)&&(0,a.createElement)(Ee,null,!l&&(0,a.createElement)(ve,{align:"center",variant:"tertiary",onClick:()=>h(e.id),text:(0,n.__)("Make Primary","it-l10n-ithemes-security-pro")}),b&&(0,a.createElement)(ve,{align:"center",variant:"tertiary",isDestructive:!0,onClick:()=>p(e.id),text:(0,n.__)("Delete","it-l10n-ithemes-security-pro")})))}function _e({close:e}){const t=(0,z.useViewportMatch)("medium","<"),{currentUserId:r,canCreate:s,dashboards:o}=(0,i.useSelect)((e=>({canCreate:e("ithemes-security/dashboard").canCreateDashboards(),dashboards:e("ithemes-security/dashboard").getAvailableDashboards(),currentUserId:e("ithemes-security/core").getCurrentUser()?.id||0})),[]),{viewCreateDashboard:l}=(0,i.useDispatch)("ithemes-security/dashboard");return(0,a.createElement)(ce,{isExpanded:t},(0,a.createElement)(ue,null,!t&&(0,a.createElement)(u.X6,{level:3,size:u.yH.NORMAL,variant:u.rK.DARK,weight:u.fs.HEAVY,text:(0,n.__)("Manage Dashboards","it-l10n-ithemes-security-pro")}),(0,a.createElement)(u.xv,{as:"p",size:u.yH.SMALL,variant:u.rK.MUTED,text:(0,n.__)("Switch, manage, or create new dashboards.","it-l10n-ithemes-security-pro")})),(0,a.createElement)(he,null,o.map((t=>(0,a.createElement)(we,{key:t.id,dashboard:t,currentUserId:r,close:e})))),s&&(0,a.createElement)(me,null,(0,a.createElement)(pe,{variant:"tertiary",align:"center",onClick:()=>{l(),e()},text:(0,n.__)("Create New Dashboard","it-l10n-ithemes-security-pro")})))}function ke(){const{canEdit:e,canCreate:t,dashboards:r,dashboard:s,dashboardId:m}=(0,i.useSelect)((e=>{const t=e("ithemes-security/dashboard").getViewingDashboardId();return{dashboardId:t,canEdit:t&&e("ithemes-security/dashboard").canEditDashboard(t),dashboard:t&&e("ithemes-security/dashboard").getDashboard(t),canCreate:e("ithemes-security/dashboard").canCreateDashboards(),dashboards:e("ithemes-security/dashboard").getAvailableDashboards()}}),[]),p=(0,a.createElement)(u.X6,{level:1,size:u.yH.NORMAL,weight:u.fs.NORMAL},s?(0,o.decodeEntities)(s.label.rendered):(0,n.__)("No Dashboard Selected","it-l10n-ithemes-security-pro"));return(0,a.createElement)(h.AdminBarFill,{type:"primary"},m&&(0,a.createElement)(M,{dashboardId:m}),(0,a.createElement)("div",null,!t&&r.length<=1&&m?p:(0,a.createElement)(l.Dropdown,{popoverProps:{position:"bottom right"},headerTitle:(0,n.__)("Manage Dashboards","it-l10n-ithemes-security-pro"),expandOnMobile:!0,focusOnMount:"container",renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(x,{"aria-expanded":e,onClick:t,text:p,icon:e?d.Z:c.Z,iconPosition:"right"}),renderContent:({onClose:e})=>(0,a.createElement)(_e,{dashboardId:m,close:e})})),s&&e&&(0,a.createElement)(ie,{dashboardId:m}))}function De(){return(0,a.createElement)(React.Fragment,null,(0,a.createElement)(ke,null))}r.p=window.itsecWebpackPublicPath,(0,n.setLocaleData)({"":{}},"it-l10n-ithemes-security-pro"),(0,s.registerPlugin)("itsec-pro-dashboard",{render:()=>(0,a.createElement)(De,null)})},83904:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var a=r(6293),s=r(14776);const n=(0,a.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(s.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}))},96015:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var a=r(6293),s=r(14776);const n=(0,a.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(s.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}))},28952:(e,t,r)=>{var a=r(86189);e.exports=function(e){var t=a(e);return Math.round((299*parseInt(t[0])+587*parseInt(t[1])+114*parseInt(t[2]))/1e3)<=180?"dark":"light"}},86189:e=>{e.exports=function(e){e.charAt&&"#"===e.charAt(0)&&(e=function(e){var t=e.split("");return t.shift(),t.join("")}(e)),3===e.length&&(e=function(e){return e.split("").reduce((function(e,t){return e.concat([t,t])}),[]).join("")}(e));var t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]}},10906:e=>{e.exports=function(){return this.itsec.dashboard.api}()},1528:e=>{e.exports=function(){return this.itsec.dashboard.dashboard}()},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},87514:e=>{e.exports=function(){return this.wp.apiFetch}()},64893:e=>{e.exports=function(){return this.wp.components}()},9576:e=>{e.exports=function(){return this.wp.compose}()},48015:e=>{e.exports=function(){return this.wp.data}()},82521:e=>{e.exports=function(){return this.wp.date}()},6293:e=>{e.exports=function(){return this.wp.element}()},5638:e=>{e.exports=function(){return this.wp.htmlEntities}()},95122:e=>{e.exports=function(){return this.wp.i18n}()},81019:e=>{e.exports=function(){return this.wp.keycodes}()},3571:e=>{e.exports=function(){return this.wp.plugins}()},14776:e=>{e.exports=function(){return this.wp.primitives}()},73470:e=>{e.exports=function(){return this.wp.url}()},99196:e=>{"use strict";e.exports=window.React},91850:e=>{"use strict";e.exports=window.ReactDOM},92819:e=>{"use strict";e.exports=window.lodash},76292:e=>{"use strict";e.exports=window.moment}},e=>{e.O(0,[7271,3173,5307,5257,3627,976,1511,567],(()=>(23283,e(e.s=23283))));var t=e.O();((window.itsec=window.itsec||{})["pro-dashboard"]=window.itsec["pro-dashboard"]||{}).dashboard=t}]);