(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[427],{66368:(e,t,r)=>{"use strict";r.r(t);var n=r(6293),i=r(95122),o=r(3571),s=r(64893),l=r(87514),c=r.n(l),u=r(7980),a=r(91991);function p(){return c()({path:"/ithemes-security/rpc/file-writing/get-config-rules"})}function f(e){let{rules:t}=e;return t.length?(0,n.createElement)("pre",{className:"itsec-file-writing-config-rules"},t):(0,n.createElement)("p",null,(0,i.__)("There are no rules that need to be written.","better-wp-security"))}function m(e){let{rules:t}=e;const[r,o]=(0,n.useState)(!1);return t.length?(0,n.createElement)(s.ClipboardButton,{variant:"secondary",text:t,onCopy:()=>o(!0),onFinishCopy:()=>o(!1)},r?(0,i.__)("Copied!","better-wp-security"):(0,i.__)("Copy Rules","better-wp-security")):null}function g(){const{status:e,value:t}=(0,a.r5)(p);return"success"!==e?null:(0,n.createElement)(React.Fragment,null,(0,n.createElement)(u.ToolFill,{tool:"server-config-rules"},(0,n.createElement)(f,{rules:t.server})),(0,n.createElement)(u.ToolFill,{tool:"wp-config-rules"},(0,n.createElement)(f,{rules:t.wp})),(0,n.createElement)(u.ToolFill,{tool:"server-config-rules",area:"actions"},(0,n.createElement)(m,{rules:t.server})),(0,n.createElement)(u.ToolFill,{tool:"wp-config-rules",area:"actions"},(0,n.createElement)(m,{rules:t.wp})))}r.p=window.itsecWebpackPublicPath,(0,i.setLocaleData)({"":{}},"ithemes-security-pro"),(0,o.registerPlugin)("itsec-file-writing-settings",{render:()=>(0,n.createElement)(g,null)})},7980:e=>{e.exports=function(){return this.itsec.pages.settings}()},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}()},6293:e=>{e.exports=function(){return this.wp.element}()},95122:e=>{e.exports=function(){return this.wp.i18n}()},3571:e=>{e.exports=function(){return this.wp.plugins}()},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}},87462:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},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,t);if("object"!==(0,n.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},71002:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})}},e=>{e.O(0,[991],(()=>(66368,e(e.s=66368))));var t=e.O();((window.itsec=window.itsec||{})["file-writing"]=window.itsec["file-writing"]||{}).settings=t}]);