File "settings.js"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/dist/global/settings.js
File size: 22.99 KB
MIME-type: text/plain
Charset: utf-8
/*! For license information please see settings.js.LICENSE.txt */
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[5675,5813],{98404:(e,t,n)=>{"use strict";n.r(t);var r=n(6293),i=n(95122),o=n(3571),s=n(64893),a=n(87514),l=n.n(a),c=n(48015),u=n(33590),d=n(65813),p=n(31600),m=n(7980),h=n(71930);function f(e,t){const{proxySetting:n,proxyHeaderSetting:o,schema:s}=(0,c.useSelect)((e=>({proxySetting:e(p.MODULES_STORE_NAME).getEditedSetting("global","proxy"),proxyHeaderSetting:e(p.MODULES_STORE_NAME).getEditedSetting("global","proxy_header"),schema:e(p.MODULES_STORE_NAME).getSettingSchema("global","proxy")})),[]),a=e||n,u=t||o,m=(0,r.useCallback)((()=>{const e={proxy:s.enum.includes(a)?a:s.default};return"manual"===e.proxy&&(e.args={header:u}),l()({method:"POST",path:"ithemes-security/rpc/global/detect-ip",data:e})}),[a,u,s]),{execute:h,status:f,value:b,error:E}=(0,d.r5)(m,!!a&&!!s);let g;switch(f){case"idle":break;case"pending":g=(0,i.__)("Detecting IP","better-wp-security");break;case"success":g=(0,i.sprintf)((0,i.__)("Detected IP: %s","better-wp-security"),b.ip);break;case"error":g=(0,i.sprintf)((0,i.__)("Error detecting IP: %s","better-wp-security"),E.message||(0,i.__)("Unknown error."))}return{label:g,detectIp:h,ip:b?.ip}}function b({label:e,detectIp:t}){return(0,r.createElement)("div",{className:"itsec-global-detected-ip"},(0,r.createElement)(s.Button,{variant:"secondary",onClick:t},(0,i.__)("Check IP","better-wp-security")),(0,r.createElement)("span",null,e))}function E({value:e,onChange:t,ip:n}){return(0,r.createElement)(s.Button,{variant:"secondary",onClick:()=>{t([...e,n])},disabled:!n,className:"itsec-global-add-authorized-ip"},(0,i.__)("Authorize my IP address","better-wp-security"))}function g({proxy:e,proxyHeader:t}){const{label:n}=f(e,t);return(0,r.createElement)(s.Flex,{direction:"column",align:"start"},(0,r.createElement)(h.xv,{as:"p",text:(0,r.createInterpolateElement)((0,i.__)("Select the configuration that causes the “Detected IP” shown below to match your current IP address. <a>Don’t know your IP?</a>","better-wp-security"),{a:(0,r.createElement)("a",{href:"https://go.solidwp.com/ip-checker",target:"_blank",rel:"noreferrer"})})}),(0,r.createElement)("div",{className:"itsec-global-detected-ip"},(0,r.createElement)("span",null,n)))}function v(){const{label:e,detectIp:t,ip:n}=f();return(0,r.createElement)(React.Fragment,null,(0,r.createElement)(u.bB,{name:"itsec_global_lockout_white_list"},(({formData:e,onChange:t})=>(0,r.createElement)(E,{value:e,onChange:t,ip:n}))),(0,r.createElement)(u.bB,{name:"itsec_global_proxy"},(()=>(0,r.createElement)(b,{label:e,detectIp:t}))),(0,r.createElement)(m.OnboardSiteTypeIpDetectionFill,null,(({proxy:e,proxyHeader:t})=>(0,r.createElement)(g,{proxy:e,proxyHeader:t}))))}n.p=window.itsecWebpackPublicPath,(0,i.setLocaleData)({"":{}},"ithemes-security-pro"),(0,o.registerPlugin)("itsec-global-settings",{render:()=>(0,r.createElement)(v,null)})},65813:(e,t,n)=>{"use strict";n.d(t,{r5:()=>f,OR:()=>b,Zk:()=>g,_:()=>v,qq:()=>y,eH:()=>h,gU:()=>l,nP:()=>c,Sj:()=>p,lo:()=>d,vl:()=>s});var r=n(87462),i=n(6293),o=n(9576);function s(e){return(0,o.createHigherOrderComponent)((t=>class extends i.Component{render(){return(0,i.createElement)(t,(0,r.Z)({},this.props,e))}}),"withProps")}var a=n(92819);function l(e,t,n={}){return(0,o.createHigherOrderComponent)((r=>class extends i.Component{constructor(){super(...arguments),this.debouncedPropInvoke=(0,a.debounce)(((...t)=>this.props[e](...t)),"function"==typeof t?t(this.props):t,n),this.handler=(e,...t)=>(e&&"function"==typeof e.persist&&e.persist(),this.debouncedPropInvoke(e,...t))}componentWillUnmount(){this.debouncedPropInvoke.cancel()}render(){const t={...this.props,[e]:this.handler};return(0,i.createElement)(r,t)}}),"withDebounceHandler")}function c(e,t){let n;return n=(0,a.isFunction)(t)?[{delay:e,cb:t}]:e,(0,o.createHigherOrderComponent)((e=>class extends i.Component{constructor(){super(...arguments),this.intervalIds=[]}componentDidMount(){for(const e of n)(t=>{this.intervalIds.push(setInterval((()=>t(this.props)),e.delay))})(e.cb)}componentWillUnmount(){this.intervalIds.forEach(clearInterval)}render(){return(0,i.createElement)(e,this.props)}}),"withInterval")}var u=n(4942);(0,o.createHigherOrderComponent)((e=>{var t;return t=class extends i.Component{constructor(...e){super(...e),(0,u.Z)(this,"state",{width:1280}),(0,u.Z)(this,"mounted",!1),(0,u.Z)(this,"ref",null),(0,u.Z)(this,"onWindowResize",(()=>{if(!this.mounted)return;const e=(0,i.findDOMNode)(this);if(e instanceof window.HTMLElement){const t=e.offsetWidth;this.setState({width:t})}}))}componentDidMount(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),document.getElementById("collapse-button").addEventListener("click",this.onWindowResize),this.onWindowResize()}componentWillUnmount(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize),document.getElementById("collapse-button").removeEventListener("click",this.onWindowResize)}render(){const{measureBeforeMount:t,...n}=this.props;return t&&!this.mounted?(0,i.createElement)("div",{className:this.props.className,style:this.props.style}):(0,i.createElement)(e,(0,r.Z)({},n,{width:this.state.width+20}))}},(0,u.Z)(t,"defaultProps",{measureBeforeMount:!1}),t}),"withWidth");const d=(0,o.createHigherOrderComponent)((e=>class extends i.Component{constructor(){super(...arguments),(0,u.Z)(this,"state",{pressed:{shift:!1,ctrl:!1,meta:!1,alt:!1}}),(0,u.Z)(this,"mounted",!1),this.listener=this.listener.bind(this),this.onBlur=this.onBlur.bind(this)}componentDidMount(){this.mounted=!0,window.addEventListener("keydown",this.listener),window.addEventListener("keyup",this.listener),window.addEventListener("click",this.listener),window.addEventListener("blur",this.onBlur)}componentWillUnmount(){this.mounted=!1,window.removeEventListener("keydown",this.listener),window.removeEventListener("keyup",this.listener),window.removeEventListener("click",this.listener),window.removeEventListener("blur",this.onBlur)}listener(e){this.mounted&&this.setState({pressed:{shift:e.shiftKey,ctrl:e.ctrlKey,meta:e.metaKey,alt:e.altKey}})}onBlur(){this.setState({pressed:{shift:!1,ctrl:!1,meta:!1,alt:!1}})}render(){return(0,i.createElement)(e,(0,r.Z)({pressedModifierKeys:this.state.pressed},this.props))}}),"withPressedModifierKeys"),p=(0,o.createHigherOrderComponent)((e=>function({navigate:t,...n}){return(0,i.createElement)(e,(0,r.Z)({},n,{onClick:e=>{try{n.onClick&&n.onClick(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||n.target&&"_self"!==n.target||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),t())}}))}),"withNavigate"),m=new WeakMap;function h(e,t){(0,i.useLayoutEffect)((()=>{m.has(e)||(t(),m.set(e,!0))}),[])}function f(e,t=!0){const[n,r]=(0,i.useState)("idle"),[o,s]=(0,i.useState)(null),[a,l]=(0,i.useState)(null),c=(0,i.useCallback)(((...t)=>(r("pending"),l(null),e(...t).then((e=>{s(e),r("success")})).catch((e=>{l(e),s(null),r("error")})))),[e]);return(0,i.useEffect)((()=>{t&&c()}),[c,t]),{execute:c,status:n,value:o,error:a}}function b(e,t,n=window){const r=(0,i.useRef)();(0,i.useEffect)((()=>{r.current=t}),[t]),(0,i.useEffect)((()=>{if(!n||!n.addEventListener)return;const t=e=>r.current(e);return n.addEventListener(e,t),()=>n.removeEventListener(e,t)}),[e,n])}const E=["button","submit"];function g(e){const t=(0,i.useRef)(e);(0,i.useEffect)((()=>{t.current=e}),[e]);const n=(0,i.useRef)(!1),r=(0,i.useRef)(),o=(0,i.useCallback)((()=>{clearTimeout(r.current)}),[]);(0,i.useEffect)((()=>()=>o()),[]),(0,i.useEffect)((()=>{e||o()}),[e,o]);const s=(0,i.useCallback)((e=>{const{type:t,target:r}=e;(0,a.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return(0,a.includes)(E,e.type)}return!1}(r)&&(n.current=!0)}),[]),l=(0,i.useCallback)((e=>{e.persist(),n.current||(r.current=setTimeout((()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:s,onMouseUp:s,onTouchStart:s,onTouchEnd:s,onBlur:l}}function v(e,t){const[n,r]=(0,i.useState)((()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}}));return[n,t=>{try{const i=t instanceof Function?t(n):t;r(i),window.localStorage.setItem(e,JSON.stringify(i))}catch(e){console.error(e)}}]}function y(e){const t=(0,i.useRef)(null),n=(0,i.useRef)(!1),r=(0,i.useRef)(e),o=(0,i.useRef)(e);return o.current=e,(0,i.useLayoutEffect)((()=>{e.forEach(((e,i)=>{const o=r.current[i];"function"==typeof e&&e!==o&&!1===n.current&&(o(null),e(t.current))})),r.current=e}),e),(0,i.useLayoutEffect)((()=>{n.current=!1})),(0,i.useCallback)((e=>{t.current=e,n.current=!0,(e?o.current:r.current).forEach((t=>{"function"==typeof t?t(e):t&&t.hasOwnProperty("current")&&(t.current=e)}))}),[])}n(48015),n(31600)},33590:(e,t,n)=>{"use strict";n.d(t,{bB:()=>$,ZP:()=>Y});var r={};n.r(r),n.d(r,{BaseInput:()=>u,CheckboxWidget:()=>m,CheckboxesWidget:()=>h,IncludeExcludeWidget:()=>T,RadioWidget:()=>O,SelectWidget:()=>y,TextareaWidget:()=>_,ToggleWidget:()=>p});var i={};n.r(i),n.d(i,{EntitySelectField:()=>R,FileTreeField:()=>U,TextareaListField:()=>M,TitleField:()=>D});var o=n(92819),s=n(87462),a=n(6293),l=n(64893),c=n(36179);const u=function(e){const{id:t,label:n,value:r,readonly:i,disabled:u,onBlur:d,onFocus:p,options:m,onChange:h,schema:f,uiSchema:b={},...E}=e;m.inputType?E.type=m.inputType:E.type||("number"===f.type?(E.type="number",E.step="any"):"integer"===f.type?(E.type="number",E.step="1"):E.type="text"),m.autocomplete&&(E.autoComplete=m.autocomplete),f.multipleOf&&(E.step=f.multipleOf),void 0!==f.minimum&&(E.min=f.minimum),void 0!==f.maximum&&(E.max=f.maximum);const g=b["ui:description"]||f.description;return(0,a.createElement)(l.TextControl,(0,s.Z)({label:n,help:(0,a.createElement)(c.Lu,{noWrap:!0,content:g}),readOnly:i,disabled:u,value:r||""},(0,o.omit)(E,["autofocus","formContext","registry","rawErrors"]),{onChange:e=>h(""===e?m.emptyValue:e),onBlur:d&&(e=>d(E.id,e.target.value)),onFocus:p&&(e=>p(E.id,e.target.value))}))};var d=n(54639);function p({schema:e,uiSchema:t={},id:n,value:r,disabled:i,readonly:o,label:s,onBlur:u,onFocus:p,onChange:m}){const h=d.P6.schemaRequiresTrueValue(e),f=t["ui:description"]||e.description;return(0,a.createElement)(l.ToggleControl,{checked:r||!1,onChange:m,required:h,disabled:i,readOnly:o,label:s,help:(0,a.createElement)(c.Lu,{noWrap:!0,content:f}),onBlur:u&&(e=>u(n,e.target.checked)),onFocus:p&&(e=>p(n,e.target.checked))})}function m({schema:e,uiSchema:t={},id:n,value:r,disabled:i,readonly:o,label:s,onBlur:u,onFocus:p,onChange:m}){const h=d.P6.schemaRequiresTrueValue(e),f=t["ui:description"]||e.description;return(0,a.createElement)(l.CheckboxControl,{checked:r||!1,onChange:m,required:h,disabled:i,readOnly:o,label:s,help:(0,a.createElement)(c.Lu,{noWrap:!0,content:f}),onBlur:u&&(e=>u(n,e.target.checked)),onFocus:p&&(e=>p(n,e.target.checked))})}function h(e){const{disabled:t,options:n,value:r,readonly:i,onChange:o,label:s,schema:l,uiSchema:u={}}=e,{enumOptions:d,enumDisabled:p=[],enumDescriptions:m=[],style:h}=n,f=u["ui:description"]||l.description,b=d.map(((e,t)=>({...e,disabled:p.includes(e.value),help:m[t]&&(0,a.createElement)(c.Lu,{noWrap:!0,content:m[t]})})));return(0,a.createElement)(c.w2,{value:r||[],onChange:o,options:b,label:s||u["ui:title"]||l.title,help:(0,a.createElement)(c.Lu,{noWrap:!0,content:f}),readOnly:i,disabled:t,style:h})}const{asNumber:f,guessType:b}=d.P6,E=new Set(["number","integer"]);function g(e,t){const{type:n,items:r}=e;if(""!==t){if("array"===n&&r&&E.has(r.type))return t.map(f);if("boolean"===n)return"true"===t;if("number"===n)return f(t);if(e.enum){if(e.enum.every((e=>"number"===b(e))))return f(t);if(e.enum.every((e=>"boolean"===b(e))))return"true"===t}return t}}function v(e,t){return t?[].slice.call(e.target.options).filter((e=>e.selected)).map((e=>e.value)):e.target.value}const y=function(e){const{schema:t,uiSchema:n={},id:r,options:i,value:o,label:s,required:u,disabled:d,readonly:p,multiple:m,onChange:h,onBlur:f,onFocus:b,placeholder:E}=e,{enumOptions:y,enumDisabled:w}=i,_=m?[]:"",x=[];m||void 0!==t.default||x.push({value:"",label:E});for(const e of y)x.push({...e,disabled:w&&w.includes(e.value)});const C=n["ui:description"]||t.description;return(0,a.createElement)(l.SelectControl,{multiple:m,options:x,value:void 0===o?_:o,label:s,help:(0,a.createElement)(c.Lu,{noWrap:!0,content:C}),required:u,disabled:d,readOnly:p,onChange:e=>h(g(t,e)),onBlur:f&&(e=>f(r,g(t,v(e,m)))),onFocus:b&&(e=>b(r,g(t,v(e,m))))})},{getUiOptions:w}=d.P6;function _({schema:e,uiSchema:t={},id:n,value:r,disabled:i,readonly:u,label:d,onBlur:p,onFocus:m,onChange:h,...f}){const b=w(t),{rows:E,placeholder:g,description:v=e.description}=b;return(0,a.createElement)(l.TextareaControl,(0,s.Z)({value:void 0===r?"":r,onChange:h,disabled:i,readOnly:u,label:d,help:(0,a.createElement)(c.Lu,{noWrap:!0,content:v}),onBlur:p&&(e=>p(n,e.target.value)),onFocus:m&&(e=>m(n,e.target.value)),rows:E,placeholder:g},(0,o.without)(f,["autofocus","formContext","registry","rawErrors"])))}const{asNumber:x,guessType:C}=d.P6,k=new Set(["number","integer"]);function N(e,t){const{type:n,items:r}=e;if(""!==t){if("array"===n&&r&&k.has(r.type))return t.map(x);if("boolean"===n)return"true"===t;if("number"===n)return x(t);if(e.enum){if(e.enum.every((e=>"number"===C(e))))return x(t);if(e.enum.every((e=>"boolean"===C(e))))return"true"===t}return t}}function O({schema:e,uiSchema:t={},id:n,options:r,value:i,label:o,required:s,disabled:u,readonly:d,onChange:p,onBlur:m,onFocus:h}){const{enumOptions:f}=r,b=t["ui:description"]||e.description;return(0,a.createElement)(l.RadioControl,{selected:i,options:f,label:o,help:(0,a.createElement)(c.Lu,{noWrap:!0,content:b}),required:s,disabled:u,readOnly:d,onChange:t=>p(N(e,t)),onBlur:m&&(t=>m(n,N(e,t.target.value))),onFocus:h&&(t=>h(n,N(e,t.target.value)))})}var L=n(95122),S=n(82839),I=n(81019);function T({id:e,disabled:t,options:n,value:r,onChange:i,schema:s,autofocus:c,readonly:u}){const{enumOptions:d,enumDisabled:p=[],excludeList:{title:m=(0,L.__)("Excluded","better-wp-security"),description:h=(0,L.__)("The list of items to exclude from the selection.","better-wp-security"),button:f=(0,L.__)("Include","better-wp-security")}={},includeList:{title:b=(0,L.__)("Included","better-wp-security"),description:E=(0,L.__)("The list of items to include in the selection.","better-wp-security"),button:g=(0,L.__)("Exclude","better-wp-security")}={},title:v=s.title,description:y=s.description}=n;(0,a.useEffect)((()=>{const e=d.map((e=>e.value)),t=r.filter((t=>e.includes(t)));t.length!==r.length&&i(t)}),[r,d,i]);const[w,_]=(0,o.partition)(d,(e=>!r.includes(e.value)));return(0,a.createElement)("div",{className:"itsec-rjsf-include-exclude-widget"},v&&(0,a.createElement)(l.BaseControl.VisualLabel,null,v),y&&(0,a.createElement)("p",null,y),(0,a.createElement)("div",{className:"itsec-rjsf-include-exclude-widget__sides",id:e},(0,a.createElement)(P,{id:e+"__exclude",options:w,label:m,description:h,button:f,disabled:t||u,disabledOptions:p,autofocus:c,onToggle:e=>{(0,S.speak)((0,L.sprintf)((0,L.__)("Moved %1$s to %2$s.","better-wp-security"),(0,o.find)(w,{value:e}).label,b)),i([...r,e])}}),(0,a.createElement)(P,{id:e+"__include",options:_,label:b,description:E,button:g,disabled:t||u,disabledOptions:p,onToggle:e=>{(0,S.speak)((0,L.sprintf)((0,L.__)("Moved %1$s to %2$s.","better-wp-security"),(0,o.find)(_,{value:e}).label,m)),i(r.filter((t=>t!==e)))}})))}function P({id:e,label:t,description:n,options:r,button:i,onToggle:s,disabled:u,disabledOptions:d=[],autofocus:p}){const m=e+"__option__",[h,f]=(0,a.useState)("");return h&&!(0,o.find)(r,{value:h})&&f(""),(0,a.createElement)("div",{className:"itsec-rjsf-include-exclude-widget__side"},(0,a.createElement)(l.BaseControl,{id:e,help:(0,a.createElement)(c.Lu,{noWrap:!0,content:n}),className:"itsec-rjsf-include-exclude-widget__listbox"},(0,a.createElement)("span",{className:"components-base-control__label",id:e+"__label"},t),(0,a.createElement)(c.T2,{role:"listbox",id:e,active:h&&m+h,"aria-labelledby":e+"__label","aria-describedby":n&&e+"__help",onNavigate:e=>f(e.substr(m.length)),onKeyDown:({keyCode:e})=>{if(!h||e!==I.DELETE&&e!==I.BACKSPACE)return;const t=(0,o.findIndex)(r,{value:h}),n=t+1<r.length?t+1:t-1;s(h),f(r[n]?.value||"")},autoFocus:p},r.map((e=>(0,a.createElement)("div",{id:m+e.value,key:e.value,role:u||d.includes(e.value)?"presentation":"option","aria-selected":e.value===h||void 0,onClick:u||d.includes(e.value)?void 0:()=>f(e.value)},e.label))))),(0,a.createElement)(l.Button,{variant:"secondary",disabled:!h,className:"itsec-rjsf-include-exclude-widget__move",onClick:()=>s(h),"aria-keyshortcuts":"Delete Backspace"},i))}const B="*";function D(e){const{id:t,title:n,required:r}=e;return(0,a.createElement)("span",{className:"itsec-rjsf-title-field",id:t},n,r&&(0,a.createElement)("span",{className:"required"},B))}var F=n(47959);const{getUiOptions:W}=d.P6;function R({uiSchema:e,schema:t,idSchema:n,name:r,formData:i,disabled:o,readonly:s,onChange:l}){const c=W(e);return(0,a.createElement)(F.fv,{id:n.$id,value:i,disabled:o,readonly:s,onChange:l,isMultiple:"array"===t.type,label:e["ui:title"]||t.title||r,description:e["ui:description"]||t.description,path:c.path,query:c.query,labelAttr:c.labelAttr,idAttr:c.idAttr,searchArg:c.searchArg})}const{getUiOptions:A}=d.P6;function M({uiSchema:e,schema:t,name:n,formData:r,disabled:i,readonly:o,onChange:s}){const l=e["ui:title"]||t.title||n,u=e["ui:description"]||t.description,d=A(e),{rows:p,placeholder:m}=d;return(0,a.createElement)(c.yA,{label:l,help:(0,a.createElement)(c.Lu,{noWrap:!0,content:u}),disabled:i,readonly:o,rows:p,value:r,onChange:s,placeholder:m})}var j=n(87514),q=n.n(j),Z=n(73470);function U({idSchema:e,formData:t,onChange:n,uiSchema:r,schema:i,name:s,disabled:u,readonly:d,autofocus:p}){const m=e.$id,h=r["ui:title"]||i.title||s,f=r["ui:description"]||i.description,[b,E]=(0,a.useState)([]),[g,v]=(0,a.useState)("");(0,a.useEffect)((()=>{q()({path:(0,Z.addQueryArgs)("/ithemes-security/rpc/file-change/file-tree",{directory:"/"})}).then(E)}),[]);const y=e=>{n(t.includes(e)?t.filter((t=>t!==e)):[...t,e])};return(0,a.createElement)("div",{className:"itsec-rjsf-file-tree"},f&&(0,a.createElement)(c.Lu,{content:f,tagName:"p"}),(0,a.createElement)("div",{className:"itsec-rjsf-file-tree__controls"},(0,a.createElement)("div",null,(0,a.createElement)(c.mp,{tree:b,id:m,label:(0,L.__)("File Selector","better-wp-security"),active:g,setActive:v,onActivate:y,onLoad:async e=>{const t=await q()({path:(0,Z.addQueryArgs)("/ithemes-security/rpc/file-change/file-tree",{directory:e})}),n=(0,o.cloneDeep)(b);(0,c.in)(n,(n=>{if(n.id===e)return n.children=t,c.in.halt})),E(n)}}),(0,a.createElement)(l.Button,{variant:"secondary",disabled:!g,className:"itsec-rjsf-file-tree__select",onClick:()=>y(g),"aria-keyshortcuts":"Enter Space"},(0,L.__)("Select","better-wp-security"))),(0,a.createElement)(c.yA,{value:t,onChange:n,className:"itsec-rjsf-file-tree__list",label:h,disabled:u,readonly:d,autoFocus:p})))}function $({name:e,...t}){return(0,a.createElement)(l.Fill,(0,s.Z)({name:`RjsfField${e}`},t))}function H({name:e,...t}){return(0,a.createElement)(l.Slot,(0,s.Z)({name:`RjsfField${e}`},t))}const{ADDITIONAL_PROPERTY_FLAG:K,getUiOptions:z}=d.P6;function J(e){const{id:t,classNames:n,disabled:r,label:i,onKeyChange:o,onDropPropertyClick:s,readonly:c,required:u,schema:d,uiSchema:p}=e,m=`${i} Key`,h=d.hasOwnProperty(K),{removable:f}=z(p);return h&&!1!==f?(0,a.createElement)("div",{className:n},(0,a.createElement)("div",{className:"row"},(0,a.createElement)("div",{className:"col-xs-5 form-additional"},(0,a.createElement)(l.TextControl,{label:m,required:u,id:`${t}-key`,onBlur:e=>o(e.target.value)})),(0,a.createElement)("div",{className:"form-additional form-group col-xs-5"},e.children),(0,a.createElement)("div",{className:"col-xs-2"},(0,a.createElement)(l.Button,{icon:"no-alt",isDestructive:!0,disabled:r||c,onClick:s(i)})))):(0,a.createElement)("div",{className:n},e.children)}const{canExpand:V}=d.P6;function Q({className:e,onClick:t,disabled:n}){return(0,a.createElement)("div",{className:"row"},(0,a.createElement)("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`},(0,a.createElement)(l.Button,{icon:"plus-alt2",className:"btn-add col-xs-12","aria-label":(0,L.__)("Add","better-wp-security"),tabIndex:"0",onClick:t,disabled:n})))}const G={FieldTemplate:function(e){const{children:t,errors:n,hidden:r,schema:i,uiSchema:o,formContext:s,onChange:c}=e;if(r)return null;const{resettable:u}=z(o);return(0,a.createElement)(J,e,t,(0,a.createElement)(H,{name:e.id,fillProps:e}),u&&(0,a.createElement)(l.Button,{className:"itsec-rjsf-reset-field",variant:"secondary",onClick:()=>c(i.default)},(0,L.__)("Restore Default","better-wp-security")),!0!==s?.disableInlineErrors&&n)},ObjectFieldTemplate:function(e){const{TitleField:t,DescriptionField:n,schema:r,uiSchema:i,properties:o}=e;if(!o.length)return null;const s=(i["ui:sections"]||[]).reduce(((e,t)=>({...e,[t.fields.find((e=>!!r.properties[e]))]:t})),{});return(0,a.createElement)("div",{className:"itsec-rjsf-object-fieldset",id:e.idSchema.$id},(i["ui:title"]||e.title)&&(0,a.createElement)(t,{id:`${e.idSchema.$id}__title`,title:e.title||i["ui:title"],required:e.required,formContext:e.formContext}),e.description&&(0,a.createElement)(n,{id:`${e.idSchema.$id}__description`,description:(0,a.createElement)(c.Lu,{noWrap:!0,content:e.description}),formContext:e.formContext}),o.map((({name:e,content:t})=>s[e]?(0,a.createElement)(a.Fragment,{key:e},(0,a.createElement)("h3",{className:"itsec-rjsf-section-title"},s[e].title),s[e].description&&(0,a.createElement)("p",{className:"itsec-rjsf-section-description"},(0,a.createElement)(c.Lu,{noWrap:!0,content:s[e].description})),t):t)),V(r,i,e.formData)&&(0,a.createElement)(Q,{className:"object-property-expand",onClick:e.onAddClick(r),disabled:e.disabled||e.readonly}))},ErrorList:function({errors:e}){return(0,a.createElement)(c.KM,{errors:e.map((({stack:e}={})=>e)).filter((e=>!!e))})},widgets:r,fields:i},Y=G},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},7980:e=>{e.exports=function(){return this.itsec.pages.settings}()},82839:e=>{e.exports=function(){return this.wp.a11y}()},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}()},81834:e=>{e.exports=function(){return this.wp.isShallowEqual}()},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,1930,5307,5257,6364,2704,1511,976,7959,6179],(()=>(98404,e(e.s=98404))));var t=e.O();((window.itsec=window.itsec||{}).global=window.itsec.global||{}).settings=t}]);