File "tools.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/dist/file-writing/tools.js
File size: 3.23 KB
MIME-type: text/plain
Charset: utf-8

(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[281],{58362:(e,t,r)=>{"use strict";r.r(t);var n=r(6293),i=r(95122),s=r(3571),o=r(52117),l=r(64893),c=r(87514),u=r.n(c),a=r(71930),p=r(46725),f=r(65813);function w(){return u()({path:"/ithemes-security/rpc/file-writing/get-config-rules"})}const m=(0,o.Z)("pre",{target:"ecdr4zx0"})({name:"1xpytes",styles:"background:#f1f1f1;overflow:scroll;padding:1em;max-height:300px"});function h({rules:e}){return e.length?(0,n.createElement)(m,null,e):(0,n.createElement)(a.xv,{text:(0,i.__)("There are no rules that need to be written.","better-wp-security")})}function g({rules:e}){const[t,r]=(0,n.useState)(!1);return e.length?(0,n.createElement)(l.ClipboardButton,{variant:"secondary",text:e,onCopy:()=>r(!0),onFinishCopy:()=>r(!1)},t?(0,i.__)("Copied!","better-wp-security"):(0,i.__)("Copy Rules","better-wp-security")):null}function d(){const{status:e,value:t}=(0,f.r5)(w);return"success"!==e?null:(0,n.createElement)(React.Fragment,null,t.server&&(0,n.createElement)(p.ToolFill,{tool:"server-config-rules"},(0,n.createElement)(h,{rules:t.server})),t.wp&&(0,n.createElement)(p.ToolFill,{tool:"wp-config-rules"},(0,n.createElement)(h,{rules:t.wp})),t.server&&(0,n.createElement)(p.ToolFill,{tool:"server-config-rules",area:"actions"},(0,n.createElement)(g,{rules:t.server})),t.wp&&(0,n.createElement)(p.ToolFill,{tool:"wp-config-rules",area:"actions"},(0,n.createElement)(g,{rules:t.wp})))}(0,i.setLocaleData)({"":{}},"ithemes-security-pro");const v=()=>(0,n.createElement)(d,null);r.p=window.itsecWebpackPublicPath,(0,i.setLocaleData)({"":{}},"ithemes-security-pro"),(0,s.registerPlugin)("itsec-file-writing-settings",{render:()=>(0,n.createElement)(v,null)})},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},46725:e=>{e.exports=function(){return this.itsec.pages.tools}()},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}()},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,5813],(()=>(58362,e(e.s=58362))));var t=e.O();((window.itsec=window.itsec||{})["file-writing"]=window.itsec["file-writing"]||{}).tools=t}]);