File "profile.js"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/dist/pages/profile.js
File size: 3.64 KB
MIME-type: text/plain
Charset: utf-8
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[277],{77486:(e,t,r)=>{"use strict";r.r(t),r.d(t,{App:()=>x,UserProfileFill:()=>v});var n=r(6293),i=r(25993),s=r.n(i),o=r(95122),a=r(3571),l=r(64893),u=r(48015),c=r(71930),p=r(31600),m=r(65813),d=r(60976),f=r(52117);const g=(0,f.Z)("div",{target:"e1pzw2gr1"})("display:flex;flex-direction:column;gap:1rem;background:#E9E7EE;margin:1rem 0 1rem -0.625rem;padding:0.625rem;@media screen and (min-width: ",(({theme:e})=>e.breaks.medium),"px){margin:1rem -1.25rem 1rem -1.25rem;padding:1.25rem;}"),w=(0,f.Z)(c.x4,{target:"e1pzw2gr0"})({name:"1jv7dc9",styles:".is-active:after{height:0;}"}),{Slot:h,Fill:v}=(0,l.createSlotFill)("UserProfile"),b=["wp-components-css"];function x({plugins:e,canManage:t,userId:r,useShadow:i}){const{user:s,currentUserId:f}=(0,u.useSelect)((e=>({user:e(p.coreStore).getUser(r),currentUserId:e(p.coreStore).getCurrentUserId()})),[r]),{value:v}=(0,m.r5)((0,n.useCallback)((()=>async function(e,t,r,n){return t?await Promise.allSettled(e.map((e=>Promise.resolve(e.isAvailable(t,r,n)).then((t=>t?e:null))))).then((e=>e.filter((e=>"fulfilled"===e.status&&null!==e.value)).map((e=>e.value)))):Promise.resolve([])}(e,s,f,t)),[e,s,f,t]));if(!v?.length)return null;const x=v.map((e=>({title:e.label,name:e.name,order:e.order}))).sort(((e,t)=>e.order-t.order)),y=(0,n.createElement)(g,null,(0,n.createElement)(c.X6,{level:2,icon:t&&d.Ae,iconSize:"32",text:(0,o.__)("Security","better-wp-security")}),(0,n.createElement)(l.SlotFillProvider,null,(0,n.createElement)(w,{tabs:x},(e=>(0,n.createElement)(h,{fillProps:{name:e.name,canManage:t,userId:r,user:s,useShadow:i}}))),(0,n.createElement)(a.PluginArea,{scope:"solid-security-user-profile"})));return(0,n.createElement)(c.fC,{theme:c.U1},i?(0,n.createElement)(c.os,{children:y,styleSheetIds:b,inherit:!0}):y)}r.p=window.itsecWebpackPublicPath,(0,o.setLocaleData)({"":{}},"ithemes-security-pro"),s()((()=>{const e=document.getElementById("itsec-profile-root"),t=(0,a.getPlugins)("solid-security-user-profile");e&&(0,n.render)((0,n.createElement)(x,{plugins:t,canManage:"1"===e.dataset.canManage,userId:Number.parseInt(e.dataset.user,10)}),document.getElementById("itsec-profile-root"))}))},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},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}()},25993:e=>{e.exports=function(){return this.wp.domReady}()},6293:e=>{e.exports=function(){return this.wp.element}()},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},92819:e=>{"use strict";e.exports=window.lodash},4942:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(49142);function i(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},49142:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(71002);function i(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==(0,n.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,n.Z)(t)?t:String(t)}}},e=>{e.O(0,[1930,976,5813],(()=>(77486,e(e.s=77486))));var t=e.O();((window.itsec=window.itsec||{}).pages=window.itsec.pages||{}).profile=t}]);