File "ui.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/dist/user-groups/ui.js
File size: 19.72 KB
MIME-type: text/plain
Charset: utf-8

/*! For license information please see ui.js.LICENSE.txt */
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[4459],{39788:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BulkSettingField:()=>rt,SettingsForm:()=>y,SingleSettingField:()=>tt,store:()=>et,useSettingsDefinitions:()=>c});var i={};r.r(i),r.d(i,{BULK_EDIT_GROUP_SETTING:()=>fe,CREATED_DEFAULT_GROUPS:()=>Ge,CREATE_LOCAL_GROUP:()=>ie,DELETE_LOCAL_GROUP:()=>se,DELETE_LOCAL_GROUPS:()=>ne,EDIT_GROUP:()=>ee,EDIT_GROUP_SETTING:()=>ae,FAILED_SAVE_GROUP:()=>de,FAILED_SAVE_GROUP_SETTINGS:()=>Ee,FINISH_SAVE_GROUP:()=>le,FINISH_SAVE_GROUP_SETTINGS:()=>ge,MARK_GROUP_FOR_DELETION:()=>oe,RESET_ALL_EDITS:()=>re,RESET_BULK_GROUP_SETTING_EDIT:()=>ye,RESET_BULK_GROUP_SETTING_EDITS:()=>Se,RESET_EDITS:()=>te,RESET_GROUP_SETTING:()=>ce,SET_BULK_ERRORS:()=>Q,SET_GROUP_ERROR:()=>Y,START_SAVE_GROUP:()=>ue,START_SAVE_GROUP_SETTINGS:()=>pe,bulkEditGroupSetting:()=>z,createLocalGroup:()=>H,createdDefaultGroups:()=>X,deleteGroup:()=>M,deleteLocalGroups:()=>V,editGroup:()=>w,editGroupSetting:()=>j,markGroupForDeletion:()=>F,resetAllEdits:()=>C,resetBulkGroupSettingEdit:()=>q,resetBulkGroupSettingEdits:()=>W,resetEdits:()=>B,saveBulkEdits:()=>J,saveGroup:()=>P,saveGroupAndSettings:()=>$,saveGroupSettings:()=>Z,saveGroupSettingsAsBatch:()=>K,saveGroups:()=>N});var s={};r.r(s),r.d(s,{getAvailableGroups:()=>Ze,getBulkErrorsList:()=>Je,getBulkSettingEdit:()=>Ve,getBulkSettingEdits:()=>Me,getBulkSettingValue:()=>He,getDirtyGroupSettings:()=>Be,getDirtyGroups:()=>Le,getEditedGroup:()=>Ie,getEditedGroupAttribute:()=>Oe,getEditedGroupSetting:()=>Pe,getEditedGroupSettings:()=>we,getEditedGroupsBySetting:()=>Ne,getEditedMatchableLabel:()=>ke,getError:()=>We,getGroupSettingsEdits:()=>Ue,getGroupsMarkedForDeletion:()=>qe,getLocalGroupIds:()=>ve,getMatchableNavIds:()=>ze,getMatchableType:()=>Te,hasBulkSettingEdits:()=>Fe,hasCreatedDefaultGroups:()=>$e,hasEdits:()=>De,isDirty:()=>Ce,isLocalGroup:()=>Re,isSavingBulkEdits:()=>je,isSavingGroupOrSettings:()=>be,settingHasEdits:()=>Ae});var n={};r.r(n),r.d(n,{getAvailableGroups:()=>Xe});var o=r(65096),u=r.n(o),l=r(48015),d=r(87375);function a(){return a.instance||(a.instance=new(u())({schemaId:"id"}),a.instance.addMetaSchema(r(27171))),a.instance}function c(e={}){const t=a();return(0,l.useSelect)((r=>r(d.store).getSettingDefinitions(t,e)),[t,e])}var p=r(87462),g=r(6293),E=r(92819),f=r(71930);function y({highlight:e,definitions:t,settingComponent:r,...i}){const[s,n]=(e||"").split("/");return(0,g.createElement)("ul",{className:"itsec-user-groups-setting-form"},(0,E.map)(t,(e=>!(0,E.isEmpty)(e.settings)&&(0,g.createElement)("li",{key:e.id,className:"itsec-user-groups-setting-form__module"},(0,g.createElement)(f.X6,{level:3,size:f.yH.NORMAL,variant:f.rK.DARK,weight:f.fs.HEAVY,text:e.title}),(0,E.map)(e.settings,((t,o)=>(0,g.createElement)(r,(0,p.Z)({key:o,definition:t,module:e.id,setting:o,isHighlighted:e.id===s&&o===n},i))))))))}var S=r(94184),G=r.n(S),_=r(64893),m=r(52117),h=r(36058),v=r(95122);const R=(0,m.Z)("div",{target:"e4n8ns02"})("border:1px solid ",(({theme:e})=>e.colors.border.normal),";"),T=(0,m.Z)("div",{target:"e4n8ns01"})("display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1rem;border-bottom:1px solid ",(({theme:e})=>e.colors.border.normal),";"),b=(0,m.Z)("div",{target:"e4n8ns00"})({name:"1dvcxr3",styles:"padding:1rem"});function I({definition:e,children:t}){return(0,g.createElement)(R,null,(0,g.createElement)(T,null,t,(0,g.createElement)(f.zx,{href:"https://go.solidwp.com/security-basic-help-docs",target:"_blank",label:(0,v.__)("View external documentation","better-wp-security"),variant:"tertiary",icon:h.Z,isSmall:!0})),(0,g.createElement)(b,null,(0,g.createElement)(f.xv,{text:e.description,size:f.yH.SMALL})))}var O=r(87514),k=r.n(O),D=r(31511);function L(e="info",t,r={}){return{type:"CREATE_NOTICE",status:e,content:t,options:{context:"ithemes-security",...r}}}const A={API_FETCH:({request:e})=>k()(e).catch(D.xJ),CREATE_NOTICE({status:e,content:t,options:r}){r.autoDismiss&&(r.id=r.id||(0,E.uniqueId)("itsec-auto-dismiss-"),setTimeout((()=>(0,l.dispatch)("core/notices").removeNotice(r.id,r.context)),r.autoDismiss)),(0,l.dispatch)("core/notices").createNotice(e,t,r)}};var U=r(91247);const x="ithemes-security/user-groups-editor";function*w(e,t){const r=!(yield l.controls.select(x,"isLocalGroup",e))&&(yield l.controls.select(d.store,"getGroup",e)),i={...(yield l.controls.select(x,"getEditedGroup",e))||{},...t},s=(0,E.pickBy)(i,((e,t)=>!(0,E.isEqual)(r?.[t],e)));yield{type:ee,id:e,edit:s}}function*P(e){const t=yield l.controls.select(x,"getEditedGroup",e);if(!t)return;let r;return yield{type:ue,id:e},r=(yield l.controls.select(x,"isLocalGroup",e))?yield l.controls.dispatch(d.store,"createGroup",{...t,id:e}):yield l.controls.dispatch(d.store,"updateGroup",e,t),r instanceof Error?yield{type:de,id:e,error:r}:(yield{type:le,id:e,updated:r},yield L("success",(0,v.__)("Saved group.","better-wp-security"),{type:"snackbar"})),r}function*N(e=!0){const t=yield l.controls.select(x,"getLocalGroupIds"),r=yield l.controls.select(x,"getGroupsMarkedForDeletion");if(!0===e?e=[...new Set([...yield l.controls.select(x,"getDirtyGroups"),...t,...r])]:(0,E.isString)(e)&&(e=[e]),!e.length)return[];const i=[],s=[],n=[];for(const o of e){const e=yield l.controls.select(x,"getEditedGroup",o);r.includes(o)?n.push(o):t.includes(o)?s.push({...e,id:o}):i.push({...e,id:o})}const o=yield l.controls.dispatch(d.store,"saveGroups",{create:s,update:i,delete:n});if(o instanceof Error)return yield L("error",(0,v.sprintf)((0,v.__)("Could not save user groups: %s","better-wp-security"),o.message)),o;for(const[e,t]of Object.entries(o.byId))t.status>=400?yield{type:de,id:e,error:t.body}:yield{type:le,id:e,updated:t.body};return yield L("success",(0,v.__)("Saved user groups.","better-wp-security"),{type:"snackbar"}),o}function B(e){return{type:te,id:e}}function C(){return{type:re}}function F(e){return{type:oe,id:e}}function*M(e){if(yield l.controls.select(x,"isLocalGroup",e))yield{type:se,id:e};else{const t=yield l.controls.dispatch(d.store,"deleteGroup",e);if(t instanceof Error)return yield{type:Y,id:e,error:t},t}yield B(e),yield{type:Y,id:e,error:null}}function V(){return{type:ne}}function H(e){return{type:ie,id:e||(0,U.Z)()}}function*j(e,t,r,i){const s=!(yield l.controls.select(x,"isLocalGroup",e))&&(yield l.controls.select(d.store,"getGroupSetting",e,t,r));(0,E.isEqual)(s,i)?yield{type:ce,id:e,module:t,setting:r}:yield{type:ae,id:e,module:t,setting:r,value:i}}function*Z(e){const t=yield l.controls.select(x,"getGroupSettingsEdits",e);if(!t)return;yield{type:pe,id:e};const r=yield l.controls.dispatch(d.store,"updateGroupSettings",e,t);return r instanceof Error?yield{type:Ee,id:e,error:r}:(yield{type:ge,id:e,updated:r},yield L("success",(0,v.__)("Updated group settings.","better-wp-security"),{type:"snackbar"})),r}function*K(e=!0){if(!0===e?e=yield l.controls.select(x,"getDirtyGroupSettings"):(0,E.isString)(e)&&(e=[e]),!e.length)return{responses:[],byId:{}};const t={};for(const r of e)t[r]=yield l.controls.select(x,"getGroupSettingsEdits",r);const r=yield l.controls.dispatch(d.store,"saveGroupSettingsAsBatch",t);if(r instanceof Error)return yield L("error",(0,v.sprintf)((0,v.__)("Could not save user groups: %s","better-wp-security"),r.message)),r;for(const[e,t]of Object.entries(r.byId))t.status>=400?yield{type:Ee,id:e,error:t.body}:yield{type:ge,id:e,updated:t.body};return yield L("success",(0,v.__)("Saved user groups.","better-wp-security"),{type:"snackbar"}),r}function z(e,t,r){return{type:fe,module:e,setting:t,value:r}}function q(e,t){return{type:ye,module:e,setting:t}}function W(){return{type:Se}}function*J(e){const t=yield l.controls.select(x,"getBulkSettingEdits"),r=yield l.controls.dispatch(d.store,"patchBulkGroupSettings",e,t);if(r instanceof Error)return yield L("error",r.message),r;if((0,E.map)(r,"status").every((e=>200===e)))return yield L("success",(0,v.__)("Updated group settings.","better-wp-security"),{type:"snackbar"}),yield W(),r;const i=r.filter((({status:e})=>200!==e)).flatMap((({error:e})=>(0,D.NC)(e).getAllErrorMessages()));return yield{type:Q,errors:i},r}function*$(e){if(yield l.controls.select(x,"hasEdits",e)){const t=yield*P(e);if(t instanceof Error)return t}if(yield l.controls.select(x,"settingHasEdits",e)){const t=yield*Z(e);if(t instanceof Error)return t}return null}function X(){return{type:Ge}}const Y="SET_GROUP_ERROR",Q="SET_BULK_ERRORS",ee="EDIT_GROUP",te="RESET_EDITS",re="RESET_ALL_EDITS",ie="CREATE_LOCAL_GROUP",se="DELETE_LOCAL_GROUP",ne="DELETE_LOCAL_GROUPS",oe="MARK_GROUP_FOR_DELETION",ue="START_SAVE_GROUP",le="FINISH_SAVE_GROUP",de="FAILED_SAVE_GROUP",ae="EDIT_GROUP_SETTING",ce="RESET_GROUP_SETTING",pe="START_SAVE_GROUP_SETTINGS",ge="FINISH_SAVE_GROUP_SETTINGS",Ee="FAILED_SAVE_GROUP_SETTINGS",fe="BULK_EDIT_GROUP_SETTING",ye="RESET_BULK_GROUP_SETTING_EDIT",Se="RESET_BULK_GROUP_SETTING_EDITS",Ge="CREATED_DEFAULT_GROUPS";var _e=r(59588),me=r.n(_e),he=r(28306);function ve(e){return e.localGroupIds}function Re(e,t){return e.localGroupIds.includes(t)}const Te=(0,l.createRegistrySelector)((e=>(t,r)=>Re(t,r)?"user-group":e(d.store).getMatchableType(r))),be=(0,l.createRegistrySelector)((e=>(t,r)=>t.saving.includes(r)||e(d.store).isUpdating(r)||e(d.store).isUpdatingSettings(r)));function Ie(e,t){return e.edits[t]}const Oe=(0,l.createRegistrySelector)((e=>(t,r,i)=>{const s=(0,E.get)(t,["edits",r,i]);return void 0!==s?s:"new"===r||Re(t,r)?void 0:e(d.store).getGroupAttribute(r,i)})),ke=(0,l.createRegistrySelector)((e=>(t,r)=>"user-group"!==e(x).getMatchableType(r)?e(d.store).getMatchableLabel(r):e(x).getEditedGroupAttribute(r,"label")));function De(e,t){return e.edits[t]&&!(0,E.isEmpty)(e.edits[t])}const Le=(0,he.Z)((e=>Object.keys(e.edits).filter((t=>!(0,E.isEmpty)(e.edits[t])))),(e=>e.edits));function Ae(e,t){return!!e.settingEdits[t]}function Ue(e,t){return e.settingEdits[t]}const xe=me()(((e,t)=>(0,E.merge)({},e,t)),{maxSize:1}),we=(0,l.createRegistrySelector)((e=>(t,r)=>{const i=Re(t,r)?{}:e(d.store).getGroupSettings(r),s=Ue(t,r);return xe(i,s)})),Pe=(0,l.createRegistrySelector)((e=>(t,r,i,s)=>{const n=(0,E.get)(t,["settingEdits",r,i,s]);return void 0!==n?n:!Re(t,r)&&e(d.store).getGroupSetting(r,i,s)})),Ne=(0,l.createRegistrySelector)((e=>t=>{const r=e(d.store).getGroupsBySetting();if((0,E.isEmpty)(t.settingEdits)||(0,E.isEmpty)(r))return r;const i=(0,E.cloneDeep)(r);for(const[e,r]of Object.entries(t.settingEdits))for(const[t,s]of Object.entries(r))for(const[r,n]of Object.entries(s))i[t]?.[r]&&(n?i[t][r].push(e):(0,E.pull)(i[t][r],e));return i})),Be=(0,he.Z)((e=>Object.keys(e.settingEdits).filter((t=>!(0,E.isEmpty)(e.settingEdits[t])))),(e=>e.settingEdits));function Ce(e,t){return De(e,t)||Ae(e,t)}function Fe(e){return!(0,E.isEmpty)(e.bulkSettingEdits)}function Me(e){return e.bulkSettingEdits}function Ve(e,t,r){return(0,E.get)(e,["bulkSettingEdits",t,r])}const He=(0,l.createRegistrySelector)((e=>(t,r,i,s)=>{const n=Ve(t,i,s);if(void 0!==n)return n;if(!r.length)return null;const o=t=>e(d.store).getGroupSetting(t,i,s),u=o(r[0]);return r.every((e=>o(e)===u))?u:null})),je=(0,l.createRegistrySelector)((e=>(t,r)=>{const i=Me(t);return e(d.store).isBulkPatchingSettings(r,i)})),Ze=(0,l.createRegistrySelector)((e=>()=>e(d.store).getGroups("available"))),Ke=me()(((e,t,r,i)=>{if(t&&!e.length)return null;const[s,n]=(0,E.partition)(e,(e=>"user-group"===e.type));return s.map((e=>e.id)).concat(r).concat(n.map((e=>e.id))).filter((e=>!i.includes(e)))}),{maxSize:1}),ze=(0,l.createRegistrySelector)((e=>()=>{const t=e(d.store).getMatchables(),r=e("core/data").isResolving(d.store,"getMatchables"),i=e(x).getLocalGroupIds(),s=e(x).getGroupsMarkedForDeletion();return Ke(t,r,i,s)}));function qe(e){return e.markedForDelete}function We(e,t){return e.errors[t]}function Je(e){return e.bulkErrors}function $e(e){return e.createdDefaultGroups}function*Xe(){yield l.controls.dispatch(d.store,"query","available",{_embed:1})}const Ye={edits:{},settingEdits:{},bulkSettingEdits:{},localGroupIds:[],saving:[],errors:{},bulkErrors:[],markedForDelete:[],createdDefaultGroups:!1},Qe=(0,l.createReduxStore)(x,{controls:A,actions:i,selectors:s,resolvers:n,reducer:function(e=Ye,t){switch(t.type){case ee:return{...e,edits:{...e.edits,[t.id]:t.edit}};case ie:return{...e,localGroupIds:[...e.localGroupIds,t.id]};case se:return{...e,localGroupIds:e.localGroupIds.filter((e=>e!==t.id))};case ne:return{...e,localGroupIds:[]};case ue:return{...e,saving:[...e.saving,t.id]};case de:return{...e,saving:e.saving.filter((e=>e!==t.id)),errors:{...e.errors,[t.id]:t.error}};case le:return{...e,edits:(0,E.omit)(e.edits,[t.id]),localGroupIds:e.localGroupIds.filter((e=>e!==t.id)),saving:e.saving.filter((e=>e!==t.id)),errors:(0,E.omit)(e.errors,[t.id])};case ae:return{...e,settingEdits:{...e.settingEdits,[t.id]:{...(0,E.get)(e,["settingEdits",t.id],{}),[t.module]:{...(0,E.get)(e,["settingEdits",t.id,t.module],{}),[t.setting]:t.value}}}};case ce:const r={...e,settingEdits:{...e.settingEdits,[t.id]:{...(0,E.get)(e,["settingEdits",t.id],{}),[t.module]:(0,E.omit)((0,E.get)(e,["settingEdits",t.id,t.module],{}),[t.setting])}}};return(0,E.isEmpty)(r.settingEdits[t.id][t.module])&&delete r.settingEdits[t.id][t.module],(0,E.isEmpty)(r.settingEdits[t.id])&&delete r.settingEdits[t.id],r;case ge:return{...e,settingEdits:(0,E.omit)(e.settingEdits,[t.id]),errors:(0,E.omit)(e.errors,[t.id])};case Ee:return{...e,errors:{...e.errors,[t.id]:t.error}};case te:return{...e,edits:(0,E.omit)(e.edits,[t.id]),settingEdits:(0,E.omit)(e.settingEdits,[t.id]),markedForDelete:e.markedForDelete.filter((e=>e!==t.id)),localGroupIds:e.localGroupIds.filter((e=>e!==t.id))};case re:return{...e,edits:{},settingEdits:{},bulkSettingEdits:{},markedForDelete:[],localGroupIds:[]};case fe:return{...e,bulkSettingEdits:{...e.bulkSettingEdits,[t.module]:{...e.bulkSettingEdits[t.module]||{},[t.setting]:t.value}}};case ye:return{...e,bulkSettingEdits:(0,E.omit)(e.bulkSettingEdits,`${t.module}.${t.setting}`)};case Se:return{...e,bulkSettingEdits:{},bulkErrors:[]};case oe:return{...e,markedForDelete:[...e.markedForDelete,t.id]};case Y:return{...e,errors:t.error?{...e.errors,[t.id]:t.error}:(0,E.omit)(e.errors,[t.id])};case Q:return{...e,bulkErrors:t.errors};case Ge:return{...e,createdDefaultGroups:!0};default:return e}},persist:["edits","settingEdits","bulkSettingEdits","localGroupIds","markedForDelete"]});(0,l.register)(Qe);const et=Qe;function tt({groupId:e,module:t,setting:r,definition:i,className:s,isHighlighted:n,disabled:o=!1}){const{value:u}=(0,l.useSelect)((i=>({value:i(et).getEditedGroupSetting(e,t,r)})),[e,t,r]),{editGroupSetting:d}=(0,l.useDispatch)(et);return(0,g.createElement)(I,{definition:i},(0,g.createElement)(_.ToggleControl,{className:G()(s,{"itsec-highlighted-search-result":n}),checked:!0===u,label:i.title,disabled:o,onChange:i=>d(e,t,r,i),__nextHasNoMarginBottom:!0}))}function rt({groupIds:e,module:t,setting:r,definition:i,disabled:s=!1}){const{value:n}=(0,l.useSelect)((i=>({value:i(et).getBulkSettingValue(e,t,r)})),[e,t,r]),{bulkEditGroupSetting:o}=(0,l.useDispatch)(et);return(0,g.createElement)(I,{definition:i},(0,g.createElement)(_.CheckboxControl,{checked:!0===n,indeterminate:null==n,label:i.title,disabled:s,onChange:e=>o(t,r,e),__nextHasNoMarginBottom:!0}))}r.p=window.itsecWebpackPublicPath},36058:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(6293),s=r(14776);const n=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}))},94184:(e,t)=>{var r;!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n=typeof r;if("string"===n||"number"===n)e.push(r);else if(Array.isArray(r)){if(r.length){var o=s.apply(null,r);o&&e.push(o)}}else if("object"===n)if(r.toString===Object.prototype.toString)for(var u in r)i.call(r,u)&&r[u]&&e.push(u);else e.push(r.toString())}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r)}()},59588:e=>{e.exports=function(e,t){var r,i,s=0;function n(){var n,o,u=r,l=arguments.length;e:for(;u;){if(u.args.length===arguments.length){for(o=0;o<l;o++)if(u.args[o]!==arguments[o]){u=u.next;continue e}return u!==r&&(u===i&&(i=u.prev),u.prev.next=u.next,u.next&&(u.next.prev=u.prev),u.next=r,u.prev=null,r.prev=u,r=u),u.val}u=u.next}for(n=new Array(l),o=0;o<l;o++)n[o]=arguments[o];return u={args:n,val:e.apply(null,n)},r?(r.prev=u,u.next=r):i=u,s===t.maxSize?(i=i.prev).next=null:s++,r=u,u.val}return t=t||{},n.clear=function(){r=null,i=null,s=0},n}},28306:(e,t,r)=>{"use strict";var i,s;function n(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function u(e,t,r){var i;if(e.length!==t.length)return!1;for(i=r;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}function l(e,t){var r,l;function d(){r=s?new WeakMap:o()}function a(){var r,i,s,n,o,d=arguments.length;for(n=new Array(d),s=0;s<d;s++)n[s]=arguments[s];for(o=t.apply(null,n),(r=l(o)).isUniqueByDependants||(r.lastDependants&&!u(o,r.lastDependants,0)&&r.clear(),r.lastDependants=o),i=r.head;i;){if(u(i.args,n,1))return i!==r.head&&(i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=r.head,i.prev=null,r.head.prev=i,r.head=i),i.val;i=i.next}return i={val:e.apply(null,n)},n[0]=null,i.args=n,r.head&&(r.head.prev=i,i.next=r.head),r.head=i,i.val}return t||(t=n),l=s?function(e){var t,s,n,u,l,d=r,a=!0;for(t=0;t<e.length;t++){if(!(l=s=e[t])||"object"!=typeof l){a=!1;break}d.has(s)?d=d.get(s):(n=new WeakMap,d.set(s,n),d=n)}return d.has(i)||((u=o()).isUniqueByDependants=a,d.set(i,u)),d.get(i)}:function(){return r},a.getDependants=t,a.clear=d,d(),a}r.d(t,{Z:()=>l}),i={},s="undefined"!=typeof WeakMap},91247:(e,t,r)=>{"use strict";var i;r.d(t,{Z:()=>d});var s=new Uint8Array(16);function n(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}for(var o=r(27738),u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));const d=function(e,t,r){var i=(e=e||{}).random||(e.rng||n)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=i[s];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!(0,o.Z)(r))throw TypeError("Stringified UUID is invalid");return r}(i)}},27738:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&i.test(e)}},87375:e=>{e.exports=function(){return this.itsec["user-groups"].api}()},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}()},95122:e=>{e.exports=function(){return this.wp.i18n}()},81019:e=>{e.exports=function(){return this.wp.keycodes}()},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}},e=>{e.O(0,[1930,5307,1511],(()=>(39788,e(e.s=39788))));var t=e.O();((window.itsec=window.itsec||{})["user-groups"]=window.itsec["user-groups"]||{}).ui=t}]);