File manager - Edit - /home/xfekoga/grenier/wp-content/plugins/defender-security/assets/app/settings.js
Back
/*! For license information please see settings.js.LICENSE.txt */ (()=>{var t={821:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6798),s=n.n(i)()((function(t){return t[1]}));s.push([t.id,"#configs .sui-accordion-item-header .sui-button.quick-apply[data-v-086a78d4]{display:none}@media (min-width:1870px){#configs .sui-box-settings-row.xl-padding-bottom[data-v-086a78d4]{padding-bottom:50px}}@media (min-width:769px){#configs .sui-accordion-item-header .config-description[data-v-086a78d4]{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#configs .sui-accordion-item-header:hover .sui-button.quick-apply[data-v-086a78d4]{display:block}#configs .sui-accordion-item-header:hover .sui-accordion-open-indicator[data-v-086a78d4]{align-self:center}}@media (max-width:768px){#configs .sui-accordion-item-header:hover .sui-button.quick-apply[data-v-086a78d4]{display:none}.config-description[data-v-086a78d4]{display:none!important}#configs #open-uploader[data-v-086a78d4],#configs [data-modal-open=new-config][data-v-086a78d4]{font-size:0;min-width:auto;padding:5px}#configs #open-uploader[data-v-086a78d4]{padding:6px}.sui-color-accessible #configs #open-uploader[data-v-086a78d4]{padding:7px}#configs #open-uploader i[data-v-086a78d4],#configs [data-modal-open=new-config] i[data-v-086a78d4]{margin-left:0}}",""]);const o=s},1100:t=>{t.exports={indexOf:function(t,e){var n,i;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var i,s;if(Array.prototype.forEach)return t.forEach(e,n);for(i=0,s=t.length;i<s;i++)e.call(n,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}}},1928:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},2048:(t,e,n)=>{var i=n(6018).FilterCSS,s=n(6018).getDefaultWhiteList,o=n(9349);function r(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var a=new i;function c(t){return t.replace(u,"<").replace(l,">")}var u=/</g,l=/>/g,d=/"/g,f=/"/g,p=/&#([a-zA-Z0-9]*);?/gim,m=/:?/gim,g=/&newline;?/gim,h=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,_=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,v=/u\s*r\s*l\s*\(.*/gi;function b(t){return t.replace(d,""")}function y(t){return t.replace(f,'"')}function w(t){return t.replace(p,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function C(t){return t.replace(m,":").replace(g," ")}function x(t){for(var e="",n=0,i=t.length;n<i;n++)e+=t.charCodeAt(n)<32?" ":t.charAt(n);return o.trim(e)}function k(t){return t=x(t=C(t=w(t=y(t))))}function j(t){return t=c(t=b(t))}e.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},e.getDefaultWhiteList=r,e.onTag=function(t,e,n){},e.onIgnoreTag=function(t,e,n){},e.onTagAttr=function(t,e,n){},e.onIgnoreTagAttr=function(t,e,n){},e.safeAttrValue=function(t,e,n,i){if(n=k(n),"href"===e||"src"===e){if("#"===(n=o.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===e){if(h.lastIndex=0,h.test(n))return""}else if("style"===e){if(_.lastIndex=0,_.test(n))return"";if(v.lastIndex=0,v.test(n)&&(h.lastIndex=0,h.test(n)))return"";!1!==i&&(n=(i=i||a).process(n))}return n=j(n)},e.escapeHtml=c,e.escapeQuote=b,e.unescapeQuote=y,e.escapeHtmlEntities=w,e.escapeDangerHtml5Entities=C,e.clearNonPrintableCharacter=x,e.friendlyAttrValue=k,e.escapeAttrValue=j,e.onIgnoreTagStripAll=function(){return""},e.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var n=!Array.isArray(t),i=[],s=!1;return{onIgnoreTag:function(r,a,c){if(function(e){return!!n||-1!==o.indexOf(t,e)}(r)){if(c.isClosing){var u="[/removed]",l=c.position+10;return i.push([!1!==s?s:c.position,l]),s=!1,u}return s||(s=c.position),"[removed]"}return e(r,a,c)},remove:function(t){var e="",n=0;return o.forEach(i,(function(i){e+=t.slice(n,i[0]),n=i[1]})),e+=t.slice(n)}}},e.stripCommentTag=function(t){for(var e="",n=0;n<t.length;){var i=t.indexOf("\x3c!--",n);if(-1===i){e+=t.slice(n);break}e+=t.slice(n,i);var s=t.indexOf("--\x3e",i);if(-1===s)break;n=s+3}return e},e.stripBlankChar=function(t){var e=t.split("");return(e=e.filter((function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))}))).join("")},e.attributeWrapSign='"',e.cssFilter=a,e.getDefaultCSSWhiteList=s},2505:(t,e,n)=>{t.exports=n(8015)},2881:(t,e,n)=>{"use strict";var i=n(9516),s=n(6987);t.exports=function(t,e,n){var o=this||s;return i.forEach(n,(function(n){t=n.call(o,t,e)})),t}},3191:(t,e,n)=>{"use strict";var i=n(1928);function s(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.source=function(){var t;return{token:new s((function(e){t=e})),cancel:t}},t.exports=s},3471:(t,e,n)=>{"use strict";var i=n(9516);function s(){this.handlers=[]}s.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},s.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},s.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=s},3473:(t,e,n)=>{var i=n(7043),s=n(5323);n(1100);function o(t){return null==t}function r(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).whiteList=t.whiteList||i.whiteList,t.onAttr=t.onAttr||i.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||i.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||i.safeAttrValue,this.options=t}r.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,i=e.onAttr,r=e.onIgnoreAttr,a=e.safeAttrValue;return s(t,(function(t,e,s,c,u){var l=n[s],d=!1;if(!0===l?d=l:"function"==typeof l?d=l(c):l instanceof RegExp&&(d=l.test(c)),!0!==d&&(d=!1),c=a(s,c)){var f,p={position:e,sourcePosition:t,source:u,isWhite:d};return d?o(f=i(s,c,p))?s+":"+c:f:o(f=r(s,c,p))?void 0:f}}))},t.exports=r},3693:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6798),s=n.n(i)()((function(t){return t[1]}));s.push([t.id,".sui-notice-purple .sui-notice-message .defender-pro-upsell-text a{--text-opacity:1;color:#8d00b1;color:rgba(141,0,177,var(--text-opacity))}",""]);const o=s},3864:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},3948:(t,e,n)=>{"use strict";var i=n(9516);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,n,s,o,r){var a=[];a.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(s)&&a.push("path="+s),i.isString(o)&&a.push("domain="+o),!0===r&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4005:(t,e,n)=>{var i=n(2048),s=n(5930),o=n(8327);function r(t,e){return new o(e).process(t)}(e=t.exports=r).filterXSS=r,e.FilterXSS=o,function(){for(var t in i)e[t]=i[t];for(var n in s)e[n]=s[n]}(),"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)},4198:t=>{"use strict";t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},4202:(t,e,n)=>{"use strict";var i=n(9516);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function s(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=s(window.location.href),function(e){var n=i.isString(e)?s(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},4490:(t,e,n)=>{"use strict";var i=n(9516),s=n(2881),o=n(3864),r=n(6987);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=s.call(t,t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||r.adapter)(t).then((function(e){return a(t),e.data=s.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=s.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},4680:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4841:(t,e,n)=>{"use strict";var i=n(4198),s={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){s[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={},r=i.version.split(".");function a(t,e){for(var n=e?e.split("."):r,i=t.split("."),s=0;s<3;s++){if(n[s]>i[s])return!0;if(n[s]<i[s])return!1}return!1}s.transitional=function(t,e,n){var s=e&&a(e);function r(t,e){return"[Axios v"+i.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,i,a){if(!1===t)throw new Error(r(i," has been removed in "+e));return s&&!o[i]&&(o[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,a)}},t.exports={isOlderVersion:a,assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var i=Object.keys(t),s=i.length;s-- >0;){var o=i[s],r=e[o];if(r){var a=t[o],c=void 0===a||r(a,o,t);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:s}},5019:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},5072:(t,e,n)=>{"use strict";var i,s=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),r=[];function a(t){for(var e=-1,n=0;n<r.length;n++)if(r[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},i=[],s=0;s<t.length;s++){var o=t[s],c=e.base?o[0]+e.base:o[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var d=a(l),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(r[d].references++,r[d].updater(f)):r.push({identifier:l,updater:h(f,e),references:1}),i.push(l)}return i}function u(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var s=n.nc;s&&(i.nonce=s)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var r=o(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}return e}var l,d=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,i){var s=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=d(e,s);else{var o=document.createTextNode(s),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}function p(t,e,n){var i=n.css,s=n.media,o=n.sourceMap;if(s?t.setAttribute("media",s):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var m=null,g=0;function h(t,e){var n,i,s;if(e.singleton){var o=g++;n=m||(m=u(e)),i=f.bind(null,n,o,!1),s=f.bind(null,n,o,!0)}else n=u(e),i=p.bind(null,n,e),s=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else s()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=s());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var s=a(n[i]);r[s].references--}for(var o=c(t,e),u=0;u<n.length;u++){var l=a(n[u]);0===r[l].references&&(r[l].updater(),r.splice(l,1))}n=o}}}},5155:(t,e,n)=>{"use strict";var i=n(9516),s=n(9106),o=n(3471),r=n(4490),a=n(5343),c=n(4841),u=c.validators;function l(t){this.defaults=t,this.interceptors={request:new o,response:new o}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var s,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!i){var l=[r,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(o),s=Promise.resolve(t);l.length;)s=s.then(l.shift(),l.shift());return s}for(var d=t;n.length;){var f=n.shift(),p=n.shift();try{d=f(d)}catch(t){p(t);break}}try{s=r(d)}catch(t){return Promise.reject(t)}for(;o.length;)s=s.then(o.shift(),o.shift());return s},l.prototype.getUri=function(t){return t=a(this.defaults,t),s(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(a(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,i){return this.request(a(i||{},{method:t,url:e,data:n}))}})),t.exports=l},5323:(t,e,n)=>{var i=n(1100);t.exports=function(t,e){";"!==(t=i.trimRight(t))[t.length-1]&&(t+=";");var n=t.length,s=!1,o=0,r=0,a="";function c(){if(!s){var n=i.trim(t.slice(o,r)),c=n.indexOf(":");if(-1!==c){var u=i.trim(n.slice(0,c)),l=i.trim(n.slice(c+1));if(u){var d=e(o,a.length,u,l,n);d&&(a+=d+"; ")}}}o=r+1}for(;r<n;r++){var u=t[r];if("/"===u&&"*"===t[r+1]){var l=t.indexOf("*/",r+2);if(-1===l)break;o=(r=l+1)+1,s=!1}else"("===u?s=!0:")"===u?s=!1:";"===u?s||c():"\n"===u&&c()}return i.trim(a)}},5343:(t,e,n)=>{"use strict";var i=n(9516);t.exports=function(t,e){e=e||{};var n={},s=["url","method","data"],o=["headers","auth","proxy","params"],r=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function u(s){i.isUndefined(e[s])?i.isUndefined(t[s])||(n[s]=c(void 0,t[s])):n[s]=c(t[s],e[s])}i.forEach(s,(function(t){i.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),i.forEach(o,u),i.forEach(r,(function(s){i.isUndefined(e[s])?i.isUndefined(t[s])||(n[s]=c(void 0,t[s])):n[s]=c(void 0,e[s])})),i.forEach(a,(function(i){i in e?n[i]=c(t[i],e[i]):i in t&&(n[i]=c(void 0,t[i]))}));var l=s.concat(o).concat(r).concat(a),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return i.forEach(d,u),n}},5449:t=>{"use strict";t.exports=function(t,e,n,i,s){return t.config=e,n&&(t.code=n),t.request=i,t.response=s,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},5592:(t,e,n)=>{"use strict";var i=n(9516),s=n(7522),o=n(3948),r=n(9106),a=n(9615),c=n(9631),u=n(4202),l=n(7763);t.exports=function(t){return new Promise((function(e,n){var d=t.data,f=t.headers,p=t.responseType;i.isFormData(d)&&delete f["Content-Type"];var m=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";f.Authorization="Basic "+btoa(g+":"+h)}var _=a(t.baseURL,t.url);function v(){if(m){var i="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:t,request:m};s(e,n,o),m=null}}if(m.open(t.method.toUpperCase(),r(_,t.params,t.paramsSerializer),!0),m.timeout=t.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(l("Request aborted",t,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(l("Network Error",t,null,m)),m=null},m.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},i.isStandardBrowserEnv()){var b=(t.withCredentials||u(_))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;b&&(f[t.xsrfHeaderName]=b)}"setRequestHeader"in m&&i.forEach(f,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete f[e]:m.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(m.withCredentials=!!t.withCredentials),p&&"json"!==p&&(m.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&m.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){m&&(m.abort(),n(t),m=null)})),d||(d=null),m.send(d)}))}},5606:t=>{var e,n,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var a,c=[],u=!1,l=-1;function d(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&f())}function f(){if(!u){var t=r(d);u=!0;for(var e=c.length;e;){for(a=c,c=[];++l<e;)a&&a[l].run();l=-1,e=c.length}a=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||u||r(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},5930:(t,e,n)=>{var i=n(9349);function s(t){var e,n=i.spaceIndex(t);return e=-1===n?t.slice(1,-1):t.slice(1,n+1),"/"===(e=i.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}function o(t){return"</"===t.slice(0,2)}var r=/[^a-zA-Z0-9\\_:.-]/gim;function a(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n)return"="===n?e:-1}}function c(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n)return"'"===n||'"'===n?e:-1}}function u(t,e){for(;e>0;e--){var n=t[e];if(" "!==n)return"="===n?e:-1}}function l(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}e.parseTag=function(t,e,n){"use strict";var i="",r=0,a=!1,c=!1,u=0,l=t.length,d="",f="";t:for(u=0;u<l;u++){var p=t.charAt(u);if(!1===a){if("<"===p){a=u;continue}}else if(!1===c){if("<"===p){i+=n(t.slice(r,u)),a=u,r=u;continue}if(">"===p||u===l-1){i+=n(t.slice(r,a)),d=s(f=t.slice(a,u+1)),i+=e(a,i.length,d,f,o(f)),r=u+1,a=!1;continue}if('"'===p||"'"===p)for(var m=1,g=t.charAt(u-m);""===g.trim()||"="===g;){if("="===g){c=p;continue t}g=t.charAt(u-++m)}}else if(p===c){c=!1;continue}}return r<l&&(i+=n(t.substr(r))),i},e.parseAttr=function(t,e){"use strict";var n=0,s=0,o=[],d=!1,f=t.length;function p(t,n){if(!((t=(t=i.trim(t)).replace(r,"").toLowerCase()).length<1)){var s=e(t,n||"");s&&o.push(s)}}for(var m=0;m<f;m++){var g,h=t.charAt(m);if(!1!==d||"="!==h)if(!1===d||m!==s)if(/\s|\n|\t/.test(h)){if(t=t.replace(/\s|\n|\t/g," "),!1===d){if(-1===(g=a(t,m))){p(i.trim(t.slice(n,m))),d=!1,n=m+1;continue}m=g-1;continue}if(-1===(g=u(t,m-1))){p(d,l(i.trim(t.slice(n,m)))),d=!1,n=m+1;continue}}else;else{if(-1===(g=t.indexOf(h,m+1)))break;p(d,i.trim(t.slice(s+1,g))),d=!1,n=(m=g)+1}else d=t.slice(n,m),n=m+1,s='"'===t.charAt(n)||"'"===t.charAt(n)?n:c(t,m+1)}return n<t.length&&(!1===d?p(t.slice(n)):p(d,l(i.trim(t.slice(n))))),i.trim(o.join(" "))}},6018:(t,e,n)=>{var i=n(7043),s=n(3473);for(var o in(e=t.exports=function(t,e){return new s(e).process(t)}).FilterCSS=s,i)e[o]=i[o];"undefined"!=typeof window&&(window.filterCSS=t.exports)},6798:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(i)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(s[r]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);i&&s[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},6987:(t,e,n)=>{"use strict";var i=n(5606),s=n(9516),o=n(7018),r=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!s.isUndefined(t)&&s.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==i&&"[object process]"===Object.prototype.toString.call(i))&&(u=n(5592)),u),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),s.isFormData(t)||s.isArrayBuffer(t)||s.isBuffer(t)||s.isStream(t)||s.isFile(t)||s.isBlob(t)?t:s.isArrayBufferView(t)?t.buffer:s.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):s.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,n){if(s.isString(t))try{return(e||JSON.parse)(t),s.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&s.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw r(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},s.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),s.forEach(["post","put","patch"],(function(t){l.headers[t]=s.merge(a)})),t.exports=l},7018:(t,e,n)=>{"use strict";var i=n(9516);t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},7043:(t,e)=>{function n(){var t={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return t}var i=/javascript\s*\:/gim;e.whiteList=n(),e.getDefaultWhiteList=n,e.onAttr=function(t,e,n){},e.onIgnoreAttr=function(t,e,n){},e.safeAttrValue=function(t,e){return i.test(e)?"":e}},7522:(t,e,n)=>{"use strict";var i=n(7763);t.exports=function(t,e,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},7763:(t,e,n)=>{"use strict";var i=n(5449);t.exports=function(t,e,n,s,o){var r=new Error(t);return i(r,e,n,s,o)}},7980:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},8015:(t,e,n)=>{"use strict";var i=n(9516),s=n(9012),o=n(5155),r=n(5343);function a(t){var e=new o(t),n=s(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var c=a(n(6987));c.Axios=o,c.create=function(t){return a(r(c.defaults,t))},c.Cancel=n(1928),c.CancelToken=n(3191),c.isCancel=n(3864),c.all=function(t){return Promise.all(t)},c.spread=n(7980),c.isAxiosError=n(5019),t.exports=c,t.exports.default=c},8327:(t,e,n)=>{var i=n(6018).FilterCSS,s=n(2048),o=n(5930),r=o.parseTag,a=o.parseAttr,c=n(9349);function u(t){return null==t}function l(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=s.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e={};for(var n in t)Array.isArray(t[n])?e[n.toLowerCase()]=t[n].map((function(t){return t.toLowerCase()})):e[n.toLowerCase()]=t[n];return e}(t.whiteList||t.allowList):t.whiteList=s.whiteList,this.attributeWrapSign=!0===t.singleQuotedAttributeValue?"'":s.attributeWrapSign,t.onTag=t.onTag||s.onTag,t.onTagAttr=t.onTagAttr||s.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||s.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||s.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||s.safeAttrValue,t.escapeHtml=t.escapeHtml||s.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new i(t.css))}l.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this,n=e.options,i=n.whiteList,o=n.onTag,l=n.onIgnoreTag,d=n.onTagAttr,f=n.onIgnoreTagAttr,p=n.safeAttrValue,m=n.escapeHtml,g=e.attributeWrapSign,h=e.cssFilter;n.stripBlankChar&&(t=s.stripBlankChar(t)),n.allowCommentTag||(t=s.stripCommentTag(t));var _=!1;n.stripIgnoreTagBody&&(_=s.StripTagBody(n.stripIgnoreTagBody,l),l=_.onIgnoreTag);var v=r(t,(function(t,e,n,s,r){var _={sourcePosition:t,position:e,isClosing:r,isWhite:Object.prototype.hasOwnProperty.call(i,n)},v=o(n,s,_);if(!u(v))return v;if(_.isWhite){if(_.isClosing)return"</"+n+">";var b=function(t){var e=c.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=c.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=c.trim(t.slice(0,-1))),{html:t,closing:n}}(s),y=i[n],w=a(b.html,(function(t,e){var i=-1!==c.indexOf(y,t),s=d(n,t,e,i);return u(s)?i?(e=p(n,t,e,h))?t+"="+g+e+g:t:u(s=f(n,t,e,i))?void 0:s:s}));return s="<"+n,w&&(s+=" "+w),b.closing&&(s+=" /"),s+=">"}return u(v=l(n,s,_))?m(s):v}),m);return _&&(v=_.remove(v)),v},t.exports=l},9012:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},9106:(t,e,n)=>{"use strict";var i=n(9516);function s(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var r=[];i.forEach(e,(function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),r.push(s(e)+"="+s(t))})))})),o=r.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},9137:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},9349:t=>{t.exports={indexOf:function(t,e){var n,i;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var i,s;if(Array.prototype.forEach)return t.forEach(e,n);for(i=0,s=t.length;i<s;i++)e.call(n,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}}},9516:(t,e,n)=>{"use strict";var i=n(9012),s=Object.prototype.toString;function o(t){return"[object Array]"===s.call(t)}function r(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==s.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===s.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.call(null,t[s],s,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===s.call(t)},isBuffer:function(t){return null!==t&&!r(t)&&null!==t.constructor&&!r(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:c,isUndefined:r,isDate:function(t){return"[object Date]"===s.call(t)},isFile:function(t){return"[object File]"===s.call(t)},isBlob:function(t){return"[object Blob]"===s.call(t)},isFunction:u,isStream:function(t){return a(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function t(){var e={};function n(n,i){c(e[i])&&c(n)?e[i]=t(e[i],n):c(n)?e[i]=t({},n):o(n)?e[i]=n.slice():e[i]=n}for(var i=0,s=arguments.length;i<s;i++)l(arguments[i],n);return e},extend:function(t,e,n){return l(e,(function(e,s){t[s]=n&&"function"==typeof e?i(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},9615:(t,e,n)=>{"use strict";var i=n(9137),s=n(4680);t.exports=function(t,e){return t&&!i(e)?s(t,e):e}},9631:(t,e,n)=>{"use strict";var i=n(9516),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,r={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(r[e]&&s.indexOf(e)>=0)return;r[e]="set-cookie"===e?(r[e]?r[e]:[]).concat([n]):r[e]?r[e]+", "+n:n}})),r):r}}},e={};function n(i){var s=e[i];if(void 0!==s)return s.exports;var o=e[i]={id:i,exports:{}};return t[i](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0,(()=>{"use strict";const t=Vue;var e=n.n(t);function i(t,e,n,i,s,o,r,a){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),r?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=c):s&&(c=a?function(){s.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:s),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:u}}const s=i({name:"submit-button",props:["id","state","text","css-class","type"],computed:{getClass:function(){return"sui-button "+this.cssClass},disabled:function(){return!0===this.state.disabled||this.state.on_saving}}},(function(){var t=this,e=t._self._c;return e("button",{staticClass:"sui-button",class:[t.getClass,{"sui-button-onload":t.state.on_saving}],attrs:{id:t.id,type:t.type,disabled:t.disabled},on:{click:function(e){return t.$emit("click")}}},[e("span",{staticClass:"sui-loading-text"},[t._t("default")],2),t._v(" "),e("i",{staticClass:"sui-icon-loader sui-loading",attrs:{"aria-hidden":"true"}})])}),[],!1,null,null,null).exports;var o=n(4005),r=wp.i18n,a={whiteList:{a:["href","title","target"],span:["class"],strong:["*"]},safeAttrValue:function(t,e,n,i){return"a"===t&&"href"===e&&"%s"===n?"%s":(0,o.safeAttrValue)(t,e,n,i)}},c=new o.FilterXSS(a),u=[];const l={data:function(){return{width:{document:0},mobileWidth:768,tabletWidth:1024,isMobile:!1,isTablet:!1}},methods:{__:function(t){var e=r.__(t,"defender-security");return c.process(e)},multipleTranslation:function(t,e,n){var i=r._n(t,e,n,"defender-security");return c.process(i)},xss:function(t){return c.process(t)},vsprintf:function(t){return r.sprintf.apply(null,arguments)},homeUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.home_url+t},siteUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.site_url+t},adminUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.admin_url+t},assetUrl:function(t){return defender.defender_url+t},wpmuDevApiBaseUrl:function(t){return defender.wpmudev_api_base_url+t},maybeHighContrast:function(){return{"sui-color-accessible":!0===defender.misc.high_contrast}},isHighContrast:function(){return!0===defender.misc.high_contrast},maybeHideBranding:function(){return defender.whitelabel.hide_branding},showSupportLinks:function(){return"disabled"===defender.is_whitelabel&&0===parseInt(defender.is_free)},isWhitelabelDisabled:function(){return"disabled"===defender.is_whitelabel},whitelabelHeroImage:function(){var t=defender.whitelabel.hero_image;return t||!1},campaign_url:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"project/wp-defender",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n=n&&"&"!==n.slice(-1)?n+"&":n,defender.wpmudev_api_base_url+e+"/?"+n+"utm_source=defender&utm_medium=plugin&utm_campaign="+t},httpRequest:function(t,e,n,i,s){var o=this;void 0===s&&(this.state.on_saving=!0);var r=ajaxurl+"?action="+this.endpoints[e]+"&_def_nonce="+this.nonces[e],a=jQuery.ajax({url:r,method:t,data:n,success:function(t){var e=t.data;o.state.on_saving=!1,void 0!==e&&void 0!==e.message&&(t.success?Defender.showNotification("success",e.message):Defender.showNotification("error",e.message)),void 0!==i&&i(t)}});u.push(a)},httpGetRequest:function(t,e,n,i){this.httpRequest("get",t,e,n,i)},httpPostRequest:function(t,e,n,i){this.httpRequest("post",t,e,n,i)},rebindSUI:function(){jQuery(".sui-accordion").each((function(){SUI.suiAccordion(this)})),SUI.tabs(),SUI.modalDialog(),jQuery(".sui-select").SUIselect2({placeholder:function(){$(this).data("placeholder")},dropdownCssClass:"sui-select-dropdown"})},associateSUIselect2WithModal:function(t,e){""===e&&(e=jQuery(t).closest('.sui-modal-content[aria-modal="true"]').attr("id")),jQuery(t).SUIselect2({dropdownParent:jQuery("#"+e)})},ucFirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},windowWidth:function(t){this.width.document=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.isMobile=this.mobileWidth>=this.width.document,this.isTablet=this.tabletWidth>=this.width.document},getFlagEmoji:function(t){if(2===t.length)return t.toUpperCase().replace(/./g,(function(t){return String.fromCodePoint(127397+t.charCodeAt())}))},getCountryName:function(t){return 2===t.length?new Intl.DisplayNames(["en"],{type:"region"}).of(t):this.__("Unknown")},suiRemoveModalClass:function(){var t,e;null===(t=document.querySelector(".sui-has-modal"))||void 0===t||null===(e=t.classList)||void 0===e||e.remove("sui-has-modal")}},created:function(){this.$nextTick().then(this.windowWidth),window.addEventListener("resize",this.windowWidth)},beforeDestroy:function(){window.removeEventListener("resize",this.windowWidth)}};const d=i({mixins:[l],data:function(){return{whitelabel:defender.whitelabel,is_free:parseInt(defender.is_free)}}},(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"sui-footer",domProps:{innerHTML:t._s(t.whitelabel.footer_text)}}),t._v(" "),!1===t.whitelabel.change_footer?e("div",[1===t.is_free?e("ul",{staticClass:"sui-footer-nav"},[e("li",[e("a",{attrs:{href:"https://profiles.wordpress.org/wpmudev#content-plugins",target:"_blank"}},[t._v(t._s(t.__("Free Plugins")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/features/",target:"_blank"}},[t._v(t._s(t.__("Membership")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/roadmap/",target:"_blank"}},[t._v(t._s(t.__("Roadmap")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wordpress.org/support/plugin/defender-security/",target:"_blank"}},[t._v(t._s(t.__("Support")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/docs/",target:"_blank"}},[t._v(t._s(t.__("Docs")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/hub-welcome/",target:"_blank"}},[t._v(t._s(t.__("The Hub")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/terms-of-service/",target:"_blank"}},[t._v(t._s(t.__("Terms of Service")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://incsub.com/privacy-policy/",target:"_blank"}},[t._v(t._s(t.__("Privacy Policy")))])])]):e("ul",{staticClass:"sui-footer-nav"},[e("li",[e("a",{attrs:{href:"https://wpmudev.com/hub2/",target:"_blank"}},[t._v(t._s(t.__("The Hub")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/projects/category/plugins/",target:"_blank"}},[t._v(t._s(t.__("Plugins")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/roadmap/",target:"_blank"}},[t._v(t._s(t.__("Roadmap")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/hub2/support/",target:"_blank"}},[t._v(t._s(t.__("Support")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/docs/",target:"_blank"}},[t._v(t._s(t.__("Docs")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/hub2/community/",target:"_blank"}},[t._v(t._s(t.__("Community")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://wpmudev.com/terms-of-service/",target:"_blank"}},[t._v(t._s(t.__("Terms of Service")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://incsub.com/privacy-policy/",target:"_blank"}},[t._v(t._s(t.__("Privacy Policy")))])])]),t._v(" "),e("ul",{staticClass:"sui-footer-social"},[e("li",[e("a",{attrs:{href:"https://www.facebook.com/wpmudev",target:"_blank"}},[e("i",{staticClass:"sui-icon-social-facebook",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Facebook")))])])]),t._v(" "),e("li",[t._m(0),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Twitter")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"https://www.instagram.com/wpmu_dev/",target:"_blank"}},[e("i",{staticClass:"sui-icon-instagram",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Instagram")))])])])])]):t._e()])}),[function(){var t=this._self._c;return t("a",{attrs:{href:"https://twitter.com/wpmudev",target:"_blank"}},[t("i",{staticClass:"sui-icon-social-twitter",attrs:{"aria-hidden":"true"}})])}],!1,null,null,null).exports;function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,s=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(i=(r=a.next()).done)&&(n.push(r.value),!e||n.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(s)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var n=e.split(".").slice(-1)[0];if(t[n])throw new Error("The key `".concat(n,"` is already in use."));return t[n]=e,t}),{})}function g(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var s=f("string"==typeof n[0]?[].concat(n):[""].concat(n),4),o=s[0],r=s[1],a=s[2],c=s[3];return o.length&&"/"!==o.charAt(o.length-1)&&(o+="/"),a="".concat(o).concat(a||"getField"),c="".concat(o).concat(c||"updateField"),t(o,r,a,c)}}function h(t){return function(e){return e.split(/[.[\]]+/).reduce((function(t,e){return t[e]}),t)}}function _(t,e){var n=e.path,i=e.value;n.split(/[.[\]]+/).reduce((function(t,e,n,s){return s.length===n+1&&(t[e]=i),t[e]}),t)}var v=g((function(t,e,n,i){var s=Array.isArray(e)?m(e):e;return Object.keys(s).reduce((function(t,e){var o=s[e],r={get:function(){return this.$store.getters[n](o)},set:function(t){this.$store.commit(i,{path:o,value:t})}};return t[e]=r,t}),{})}));g((function(t,e,n,i){var s=Array.isArray(e)?m(e):e;return Object.keys(s).reduce((function(t,e){var o=s[e];return t[e]={get:function(){var t,e=this.$store,s=(t=e.getters[n](o),Object.keys(t).map((function(e){return[e,t[e]]})));return s.map((function(t){return Object.keys(t[1]).reduce((function(s,r){var a="".concat(o,"[").concat(t[0],"].").concat(r);return Object.defineProperty(s,r,{get:function(){return e.getters[n](a)},set:function(t){e.commit(i,{path:a,value:t})}})}),{})}))}},t}),{})}));function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}const y=i({name:"submit-button2",props:["css-class","disabled","type","is_icon","doing_ajax","action"],computed:{getClass:function(){var t,e=["sui-button"];return!0===this.is_icon&&(e=[]),e.push(this.cssClass),void 0===this.doing_ajax?("object"===b(this.$store.state.doing_ajax)&&-1!==this.$store.state.doing_ajax.indexOf(this.action)||!0===this.$store.state.doing_ajax)&&(t=!0):t=this.doing_ajax,!0===t&&e.push("sui-button-onload"),e},isDisable:function(){return!0===this.disabled},buttonType:function(){return""===this.type?"submit":this.type}}},(function(){var t=this,e=t._self._c;return e("button",{class:t.getClass,attrs:{type:t.buttonType,disabled:t.isDisable},on:{click:function(e){return t.$emit("click")}}},[e("span",{staticClass:"sui-loading-text"},[t._t("default")],2),t._v(" "),e("i",{staticClass:"sui-icon-loader sui-loading",attrs:{"aria-hidden":"true"}})])}),[],!1,null,null,null).exports;function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function x(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=w(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=w(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==w(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const k=i({components:{SubmitButton2:y},mixins:[l],name:"general",data:function(){return{state:{on_saving:!1},docsLink:this.$store.state.misc.privacy_link,whitelabel:defender.whitelabel}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({desc_translations:function(){return vsprintf(this.__("By default, Defender will use the language set in the site's <a target='_blank' href='%s'>Admin Settings</a> if a matching translation is available."),this.$store.state.misc.setting_url)},desc_active_translation:function(){return vsprintf(this.__('Not using your language, or have improvements? Help us improve translations by providing your own improvements <a target="_blank" href="%s">here</a>.'),this.$store.state.general.translation_link)},desc_usage_tracking:function(){return vsprintf(this.__('Help us improve Defender, by sharing anonymous, and non-sensitive usage data. See <a target="_blank" href="%s">more info</a> about the data we collect.'),this.docsLink)},modal_desc:function(){var t=this.__("Defender is already gathering useful anonymous, and non-sensitive data that would help us improve your experience.");return t+="<br/><br/>",t+=vsprintf(this.__('Are you sure you want to disable usage tracking? You can read more about usage data tracking <a target="_blank" href="%s">here</a>.'),this.docsLink)}},v(["general.usage_tracking"])),methods:{openDisableUsageConfirmModal:function(t){!0===this.usage_tracking&&SUI.openModal("disable-usage-confirm",t.target,void 0,!1,!1)},cancelUsageConfirmModal:function(){this.$store.commit("enableUsageTracking"),SUI.closeModal()},closeModal:function(){SUI.closeModal()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.__("General"))+"\n ")])]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("saveSettings")}}},[e("div",{staticClass:"sui-box-body"},[e("p",[t._v("\n "+t._s(t.__("Configure general settings for this plugin."))+"\n ")]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"sui-box-settings-row"},[e("div",{staticClass:"sui-box-settings-col-1"},[e("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("Translations")))]),t._v(" "),e("span",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.desc_translations)}})]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Active translation"))+"\n ")]),t._v(" "),e("input",{staticClass:"sui-form-control sui-input-md",attrs:{type:"text",disabled:""},domProps:{value:t.$store.state.general.translate}}),t._v(" "),!1===t.whitelabel.hide_doc_link?e("p",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.desc_active_translation)}}):t._e()])])]),t._v(" "),t.$store.state.general.show_usage_tracking?e("div",{staticClass:"sui-box-settings-row"},[e("div",{staticClass:"sui-box-settings-col-1"},[e("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("Usage Tracking")))]),t._v(" "),e("span",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.desc_usage_tracking)}})]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-toggle"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.usage_tracking,expression:"usage_tracking"}],staticClass:"toggle-checkbox",attrs:{type:"checkbox",role:"presentation",name:"usage_tracking",id:"usage_tracking"},domProps:{checked:Array.isArray(t.usage_tracking)?t._i(t.usage_tracking,null)>-1:t.usage_tracking},on:{click:t.openDisableUsageConfirmModal,change:function(e){var n=t.usage_tracking,i=e.target,s=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.usage_tracking=n.concat([null])):o>-1&&(t.usage_tracking=n.slice(0,o).concat(n.slice(o+1)))}else t.usage_tracking=s}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"usage_tracking_label"}},[t._v("\n "+t._s(t.__("Allow usage tracking"))+"\n ")])]),t._v(" "),e("p",{staticClass:"sui-description sui-toggle-content"},[t._v("\n "+t._s(t.__("Note: Usage tracking is completely anonymous and non-sensitive, and we only track features you are/aren't using to make more informed feature decisions."))+"\n ")])])])]):t._e()]),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{"css-class":"sui-button-blue"}},[e("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Save Changes"))+"\n ")])],1)])]),t._v(" "),e("div",{staticClass:"sui-modal sui-modal-sm"},[e("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"disable-usage-confirm","aria-modal":"true","aria-labelledby":"modal-disable-usage-confirm","aria-describedby":"modal-disable-usage-confirm"}},[e("div",{staticClass:"sui-box",attrs:{role:"document"}},[e("div",{staticClass:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},[e("h3",{staticClass:"sui-box-title sui-lg"},[t._v("\n "+t._s(t.__("Disable Usage Tracking?"))+"\n ")]),t._v(" "),e("button",{staticClass:"sui-button-icon sui-button-float--right",attrs:{type:"button"},on:{click:t.cancelUsageConfirmModal}},[e("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Close this dialog.")))])]),t._v(" "),e("p",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.modal_desc)}})]),t._v(" "),e("div",{staticClass:"sui-box-footer sui-flatten sui-content-center"},[e("button",{staticClass:"sui-button sui-button-ghost",attrs:{type:"button"},on:{click:t.cancelUsageConfirmModal}},[t._v("\n "+t._s(t.__("Cancel"))+"\n ")]),t._v(" "),e("button",{staticClass:"sui-button",attrs:{type:"button"},on:{click:t.closeModal}},[t._v("\n "+t._s(t.__("Disable"))+"\n ")])])])])])])}),[],!1,null,null,null).exports;function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=j(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=j(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==j(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const T={components:{SubmitButton2:y,Sidetab:i({name:"sidetab",props:["labels","slug","active","contentClass"],methods:{getBoxId:function(t){return this.slug+t+"_box"},getId:function(t){return this.slug+t},getClass:function(t){if(this.active===t)return"active"}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-side-tabs"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.labels.length>1,expression:"labels.length > 1"}],staticClass:"sui-tabs-menu"},t._l(t.labels,(function(n){return e("label",{staticClass:"sui-tab-item",class:t.getClass(n.value),attrs:{for:t.getId(n.value)},on:{click:function(e){return t.$emit("selected",n.value)}}},[e("input",{attrs:{type:"radio",name:t.slug,id:t.getId(n.value),"data-tab-menu":t.getBoxId(n.value)},domProps:{value:n.value}}),t._v("\n "+t._s(n.text)+"\n ")])})),0),t._v(" "),e("div",{staticClass:"sui-tabs-content"},[t._l(t.labels,(function(n){return!0!==n.mute?e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:[t.getClass(n.value),t.contentClass],attrs:{id:t.getBoxId(n.value)}},[t._t(n.value)],2):t._e()})),t._v(" "),t._t("shared")],2)])}),[],!1,null,null,null).exports,Notice:i({name:"sui-notice",props:["noticeType","iconType"]},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-notice",class:t.noticeType},[e("div",{staticClass:"sui-notice-content"},[e("div",{staticClass:"sui-notice-message"},[e("i",{staticClass:"sui-notice-icon sui-md",class:t.iconType,attrs:{"aria-hidden":"true"}}),t._v(" "),t._t("default")],2)])])}),[],!1,null,null,null).exports},mixins:[l],name:"data-settings",data:function(){return{state:{on_saving:!1},is_free:parseInt(defender.is_free)}},computed:O(O({},v(["data_settings.uninstall_settings","data_settings.uninstall_data","data_settings.uninstall_quarantine","doing_ajax"])),{},{quarantineSettingNotice:function(){return{noticeType:"sui-notice-purple",iconType:"sui-icon-info",message:this.vsprintf(wp.i18n.__('Use the Safe Quarantine feature to quarantine suspicious files on your site for a number of days before they are permanently deleted. <a href="%1$s" class="activate-quarantine">Activate Quarantine.</a>'),this.adminUrl("admin.php?page=wdf-scan&view=quarantine"))}}}),methods:{getClass:function(t,e){return this[t]===e?"active":null},openResetConfirmModal:function(t){SUI.openModal("reset-data-confirm",t.target,void 0,!0,!0)},closeResetConfirmModal:function(){SUI.closeModal()},handleUpsellModal:function(t){t.addEventListener("click",(function(t){t.preventDefault(),localStorage.setItem("openDefQuarantineModalId","quarantine-upsell-modal"),localStorage.setItem("setDefQuarantineModalUTM","defender_settngs_safe_repair"),window.location.href=t.target.href}))}},mounted:function(){var t=this;if(void 0!==this.$refs.quarantineSettingFreeNotice){var e=this;this.$nextTick((function(){var n=t.$refs.quarantineSettingFreeNotice.querySelector("a.activate-quarantine");e.handleUpsellModal(n)}))}}};var P=n(5072),E=n.n(P),M=n(3693),D={insert:"head",singleton:!1};E()(M.A,D);M.A.locals;const N=i(T,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.__("Data & Settings"))+"\n ")])]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("saveSettings")}}},[e("div",{staticClass:"sui-box-body"},[e("p",[t._v("\n "+t._s(t.__("Control what happens to your settings and data if Defender is reset or removed from the site. Settings are each module's configuration options. Data includes stored information, such as logs, statistics and other bits of information stored over time."))+"\n ")]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"sui-box-settings-row"},[e("div",{staticClass:"sui-box-settings-col-1"},[e("span",{staticClass:"sui-settings-label"},[t._v("\n "+t._s(t.__("Uninstallation"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("When you uninstall this plugin, what do you want to do with your settings and stored data?"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field"},[e("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("Settings")))]),t._v(" "),e("span",{staticClass:"sui-description inline-block margin-bottom-10"},[t._v(t._s(t.__("Choose whether to save your settings for next time, or reset them.")))]),t._v(" "),e("sidetab",{attrs:{active:t.uninstall_settings,slug:"uninstall_settings",labels:[{value:"preserve",mute:!0,text:t.__("Preserve")},{value:"reset",mute:!0,text:t.__("Reset")}]},on:{selected:function(e){t.uninstall_settings=e}}}),t._v(" "),e("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("Data")))]),t._v(" "),e("span",{staticClass:"sui-description inline-block margin-bottom-10"},[t._v(t._s(t.__("Choose whether to keep or remove plugin's data.")))]),t._v(" "),e("sidetab",{attrs:{active:t.uninstall_data,slug:"uninstall_data",labels:[{value:"keep",text:t.__("Keep"),mute:!0},{value:"remove",text:t.__("Remove"),mute:!0}]},on:{selected:function(e){t.uninstall_data=e}}}),t._v(" "),e("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("Quarantine Data"))+"\n "),1===t.is_free?e("span",{staticClass:"sui-tag sui-tag-pro"},[t._v(t._s(t.__("Pro")))]):t._e()]),t._v(" "),0===t.is_free?[e("span",{staticClass:"sui-description inline-block margin-bottom-10"},[t._v(t._s(t.__("Choose whether to keep or remove quarantine data.")))]),t._v(" "),e("sidetab",{attrs:{active:t.uninstall_quarantine,slug:"uninstall_quarantine",labels:[{value:"keep",text:t.__("Keep"),mute:!0},{value:"remove",text:t.__("Remove"),mute:!0}]},on:{selected:function(e){t.uninstall_quarantine=e}}})]:1===t.is_free?[e("notice",{attrs:{iconType:t.quarantineSettingNotice.iconType,noticeType:t.quarantineSettingNotice.noticeType}},[e("p",{ref:"quarantineSettingFreeNotice",staticClass:"defender-pro-upsell-text",domProps:{innerHTML:t._s(t.quarantineSettingNotice.message)}})])]:t._e()],2)])]),t._v(" "),e("div",{staticClass:"sui-box-settings-row"},[e("div",{staticClass:"sui-box-settings-col-1"},[e("span",{staticClass:"sui-settings-label"},[t._v("\n "+t._s(t.__("Reset Settings"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Needing to start fresh? Use this button to roll back to the default settings."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("button",{staticClass:"sui-button-ghost sui-button",attrs:{type:"button"},on:{click:t.openResetConfirmModal}},[e("i",{staticClass:"sui-icon-undo",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Reset Settings"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Note: This will instantly revert all settings to their default states but will leave your data intact."))+"\n ")])])])]),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{"css-class":"sui-button-blue"}},[e("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Save Changes"))+"\n ")])],1)])]),t._v(" "),e("div",{staticClass:"sui-modal sui-modal-sm"},[e("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"reset-data-confirm","aria-modal":"true","aria-labelledby":"modal-reset-data-confirm","aria-describedby":"modal-reset-data-confirm"}},[e("div",{staticClass:"sui-box",attrs:{role:"document"}},[e("div",{staticClass:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},[e("h3",{staticClass:"sui-box-title sui-lg"},[t._v("\n "+t._s(t.__("Reset Settings"))+"\n ")]),t._v(" "),e("button",{staticClass:"sui-button-icon sui-button-float--right",attrs:{type:"button"},on:{click:t.closeResetConfirmModal}},[e("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Close this dialog.")))])]),t._v(" "),e("p",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Are you sure you want to reset Defender's settings back to the factory defaults?"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-footer sui-flatten sui-content-center"},[e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("reset_settings")}}},[e("button",{staticClass:"sui-button sui-button-ghost",attrs:{type:"button"},on:{click:t.closeResetConfirmModal}},[t._v("\n "+t._s(t.__("Cancel"))+"\n ")]),t._v(" "),e("submit-button2",{attrs:{type:"submit","css-class":"sui-button-ghost",doing_ajax:t.doing_ajax}},[e("i",{staticClass:"sui-icon-undo",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Reset Settings"))+"\n ")])],1)])])])])])}),[],!1,null,null,null).exports;function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function I(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=U(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=U(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==U(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const R=i({components:{SubmitButton2:y},mixins:[l],name:"accessibility",data:function(){return{state:{on_saving:!1}}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){I(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},v(["accessibility.high_contrast_mode"]))},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.__("Accessibility"))+"\n ")])]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("saveSettings")}}},[e("div",{staticClass:"sui-box-body"},[e("p",[t._v("\n "+t._s(t.__("Enable support for any accessibility enhancements available in the plugin interface."))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-box-settings-row"},[e("div",{staticClass:"sui-box-settings-col-1"},[e("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("High Contrast Mode")))]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Increase the visibility and accessibility of elements and components of this plugin's interface to meet WCAG AAA requirements."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-toggle"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.high_contrast_mode,expression:"high_contrast_mode"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"high_contrast_mode",id:"high_contrast_mode"},domProps:{checked:Array.isArray(t.high_contrast_mode)?t._i(t.high_contrast_mode,null)>-1:t.high_contrast_mode},on:{change:function(e){var n=t.high_contrast_mode,i=e.target,s=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.high_contrast_mode=n.concat([null])):o>-1&&(t.high_contrast_mode=n.slice(0,o).concat(n.slice(o+1)))}else t.high_contrast_mode=s}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"high_contrast_mode_label"}},[t._v("\n "+t._s(t.__("Enable high contrast mode"))+"\n ")])])])])])]),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{"css-class":"sui-button-blue"}},[e("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Save Changes"))+"\n ")])],1)])])])}),[],!1,null,null,null).exports;var q=("undefined"!=typeof window?window:void 0!==n.g?n.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function H(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,i=(n=function(e){return e.original===t},e.filter(n)[0]);if(i)return i.copy;var s=Array.isArray(t)?[]:{};return e.push({original:t,copy:s}),Object.keys(t).forEach((function(n){s[n]=H(t[n],e)})),s}function B(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function F(t){return null!==t&&"object"==typeof t}var W=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},V={namespaced:{configurable:!0}};V.namespaced.get=function(){return!!this._rawModule.namespaced},W.prototype.addChild=function(t,e){this._children[t]=e},W.prototype.removeChild=function(t){delete this._children[t]},W.prototype.getChild=function(t){return this._children[t]},W.prototype.hasChild=function(t){return t in this._children},W.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},W.prototype.forEachChild=function(t){B(this._children,t)},W.prototype.forEachGetter=function(t){this._rawModule.getters&&B(this._rawModule.getters,t)},W.prototype.forEachAction=function(t){this._rawModule.actions&&B(this._rawModule.actions,t)},W.prototype.forEachMutation=function(t){this._rawModule.mutations&&B(this._rawModule.mutations,t)},Object.defineProperties(W.prototype,V);var Q=function(t){this.register([],t,!1)};function z(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return void 0;z(t.concat(i),e.getChild(i),n.modules[i])}}Q.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},Q.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},Q.prototype.update=function(t){z([],this.root,t)},Q.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var s=new W(e,n);0===t.length?this.root=s:this.get(t.slice(0,-1)).addChild(t[t.length-1],s);e.modules&&B(e.modules,(function(e,s){i.register(t.concat(s),e,n)}))},Q.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],i=e.getChild(n);i&&i.runtime&&e.removeChild(n)},Q.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var G;var J=function(t){var e=this;void 0===t&&(t={}),!G&&"undefined"!=typeof window&&window.Vue&&it(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Q(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new G,this._makeLocalGettersCache=Object.create(null);var s=this,o=this.dispatch,r=this.commit;this.dispatch=function(t,e){return o.call(s,t,e)},this.commit=function(t,e,n){return r.call(s,t,e,n)},this.strict=i;var a=this._modules.root.state;tt(this,a,[],this._modules.root),Z(this,a),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:G.config.devtools)&&function(t){q&&(t._devtoolHook=q,q.emit("vuex:init",t),q.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){q.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){q.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},X={state:{configurable:!0}};function K(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function Y(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;tt(t,n,[],t._modules.root,!0),Z(t,n,e)}function Z(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var s=t._wrappedGetters,o={};B(s,(function(e,n){o[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var r=G.config.silent;G.config.silent=!0,t._vm=new G({data:{$$state:e},computed:o}),G.config.silent=r,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),G.nextTick((function(){return i.$destroy()})))}function tt(t,e,n,i,s){var o=!n.length,r=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[r],t._modulesNamespaceMap[r]=i),!o&&!s){var a=et(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){G.set(a,c,i.state)}))}var u=i.context=function(t,e,n){var i=""===e,s={dispatch:i?t.dispatch:function(n,i,s){var o=nt(n,i,s),r=o.payload,a=o.options,c=o.type;return a&&a.root||(c=e+c),t.dispatch(c,r)},commit:i?t.commit:function(n,i,s){var o=nt(n,i,s),r=o.payload,a=o.options,c=o.type;a&&a.root||(c=e+c),t.commit(c,r,a)}};return Object.defineProperties(s,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(s){if(s.slice(0,i)===e){var o=s.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[s]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return et(t.state,n)}}}),s}(t,r,n);i.forEachMutation((function(e,n){!function(t,e,n,i){var s=t._mutations[e]||(t._mutations[e]=[]);s.push((function(e){n.call(t,i.state,e)}))}(t,r+n,e,u)})),i.forEachAction((function(e,n){var i=e.root?n:r+n,s=e.handler||e;!function(t,e,n,i){var s=t._actions[e]||(t._actions[e]=[]);s.push((function(e){var s,o=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(s=o)&&"function"==typeof s.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,i,s,u)})),i.forEachGetter((function(e,n){!function(t,e,n,i){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)}}(t,r+n,e,u)})),i.forEachChild((function(i,o){tt(t,e,n.concat(o),i,s)}))}function et(t,e){return e.reduce((function(t,e){return t[e]}),t)}function nt(t,e,n){return F(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function it(t){G&&t===G||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(G=t)}X.state.get=function(){return this._vm._data.$$state},X.state.set=function(t){0},J.prototype.commit=function(t,e,n){var i=this,s=nt(t,e,n),o=s.type,r=s.payload,a=(s.options,{type:o,payload:r}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(r)}))})),this._subscribers.slice().forEach((function(t){return t(a,i.state)})))},J.prototype.dispatch=function(t,e){var n=this,i=nt(t,e),s=i.type,o=i.payload,r={type:s,payload:o},a=this._actions[s];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(r,n.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(o)}))):a[0](o);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(r,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(r,n.state,t)}))}catch(t){0}e(t)}))}))}},J.prototype.subscribe=function(t,e){return K(t,this._subscribers,e)},J.prototype.subscribeAction=function(t,e){return K("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},J.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},J.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},J.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),tt(this,this.state,t,this._modules.get(t),n.preserveState),Z(this,this.state)},J.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=et(e.state,t.slice(0,-1));G.delete(n,t[t.length-1])})),Y(this)},J.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},J.prototype.hotUpdate=function(t){this._modules.update(t),Y(this,!0)},J.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(J.prototype,X);var st=ut((function(t,e){var n={};return ct(e).forEach((function(e){var i=e.key,s=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=lt(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"==typeof s?s.call(this,e,n):e[s]},n[i].vuex=!0})),n})),ot=ut((function(t,e){var n={};return ct(e).forEach((function(e){var i=e.key,s=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=lt(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"==typeof s?s.apply(this,[i].concat(e)):i.apply(this.$store,[s].concat(e))}})),n})),rt=ut((function(t,e){var n={};return ct(e).forEach((function(e){var i=e.key,s=e.val;s=t+s,n[i]=function(){if(!t||lt(this.$store,"mapGetters",t))return this.$store.getters[s]},n[i].vuex=!0})),n})),at=ut((function(t,e){var n={};return ct(e).forEach((function(e){var i=e.key,s=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=lt(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"==typeof s?s.apply(this,[i].concat(e)):i.apply(this.$store,[s].concat(e))}})),n}));function ct(t){return function(t){return Array.isArray(t)||F(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function ut(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function lt(t,e,n){return t._modulesNamespaceMap[n]}function dt(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.call(t,e)}catch(n){t.log(e)}}function ft(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function pt(){var t=new Date;return" @ "+mt(t.getHours(),2)+":"+mt(t.getMinutes(),2)+":"+mt(t.getSeconds(),2)+"."+mt(t.getMilliseconds(),3)}function mt(t,e){return n="0",i=e-t.toString().length,new Array(i+1).join(n)+t;var n,i}var gt={Store:J,install:it,version:"3.6.2",mapState:st,mapMutations:ot,mapGetters:rt,mapActions:at,createNamespacedHelpers:function(t){return{mapState:st.bind(null,t),mapGetters:rt.bind(null,t),mapMutations:ot.bind(null,t),mapActions:at.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var s=t.mutationTransformer;void 0===s&&(s=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var r=t.actionTransformer;void 0===r&&(r=function(t){return t});var a=t.logMutations;void 0===a&&(a=!0);var c=t.logActions;void 0===c&&(c=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var l=H(t.state);void 0!==u&&(a&&t.subscribe((function(t,o){var r=H(o);if(n(t,l,r)){var a=pt(),c=s(t),d="mutation "+t.type+a;dt(u,d,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(l)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",i(r)),ft(u)}l=r})),c&&t.subscribeAction((function(t,n){if(o(t,n)){var i=pt(),s=r(t),a="action "+t.type+i;dt(u,a,e),u.log("%c action","color: #03A9F4; font-weight: bold",s),ft(u)}})))}}};const ht=gt;function _t(t){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_t(t)}function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(n),!0).forEach((function(e){yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=_t(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=_t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_t(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const wt={mixins:[l],name:"configs",components:{SubmitButton2:y},data:function(){return{width:{document:0},is_free:defender.is_free,routes:settings.routes,nonces:settings.nonces,uploading:!1,file_upload:"",state:{on_saving:!1},is_shown:"no",textCancel:"",textClose:"",ajaxAction:ajaxurl+"?action=wp_defender/v1/hub/"}},created:function(){this.textCancel=this.__("Cancel"),this.textClose=this.__("Close this dialog.")},methods:bt(bt({},ot(["updateConfigs"])),{},{apply_config:function(){var t=this,e=this.ajaxAction+"&route="+t.routes.apply_config+"&_def_nonce="+t.nonces.apply_config,n=JSON.stringify({key:t.current_config}),i=new FormData;i.append("data",n),t.$store.commit("doingAjax"),t.state.on_saving=!0,fetch(e,{method:"POST",body:i}).then((function(t){return t.json()})).then((function(e){if(!0===e.success||e.data.configs){var n=!0===e.success;Defender.showNotification(e.success?"success":"error",e.data.message,n),void 0!==e.data.redirect?setTimeout((function(){location.href=e.data.redirect}),1e3*e.data.interval):(t.$nextTick((function(){t.rebindSUI(),t.config_name="",t.config_description="",t.updateConfigs(e.data.configs),SUI.closeModal()})),t.force_remove_modal_class())}else Defender.showNotification("error",e.data.message),t.$nextTick((function(){t.rebindSUI(),SUI.closeModal()}));t.$store.commit("ajaxDone")})).catch((function(t){console.error("Error:",t)}))},new_config:function(){var t=this,e=JSON.stringify({name:t.config_name,desc:t.config_description}),n=new FormData;n.append("data",e),t.$store.commit("doingAjax"),jQuery.ajax({url:this.ajaxAction+"&route="+this.$store.state.routes.new_config+"&_def_nonce="+this.$store.state.nonces.new_config,type:"POST",data:n,contentType:!1,processData:!1,beforeSend:function(e,n){t.state.on_saving=!0},success:function(e){!0===e.success?(Defender.showNotification("success",e.data.message,!0),t.config_name="",t.config_description="",t.updateConfigs(e.data.configs)):Defender.showNotification("error",e.data.message),t.$nextTick((function(){t.rebindSUI(),SUI.closeModal()})),t.force_remove_modal_class(),t.$store.commit("ajaxDone")}})},import_config:function(){var t=this.$refs.file.files[0],e=this;if("application/json"===t.type){var n=this.ajaxAction+"&route="+e.routes.import_config+"&_def_nonce="+e.nonces.import_config,i=new FormData;i.append("file",t),e.state.on_saving=!0,fetch(n,{method:"POST",body:i}).then((function(t){return t.json()})).then((function(t){!0===t.success?(Defender.showNotification("success",t.data.message,!0),e.$nextTick((function(){e.updateConfigs(t.data.configs),e.uploading=!1,e.state.on_saving=!1,jQuery("#json_file").val(""),e.rebindSUI()}))):(e.uploading=!1,e.state.on_saving=!1,jQuery("#json_file").val(""),Defender.showNotification("error",t.data.message))})).catch((function(t){console.error("An error occurred:",t)}))}},file_changed:function(t){var e=this.$refs.file.files[0];"application/json"===e.type?(this.uploading=!0,this.file_upload=e.name,this.import_config()):Defender.showNotification("error",this.__("You uploaded an invalid file. Only JSON file types are allowed. Please try uploading again."))},clear_file:function(){this.can_upload=!1,this.file_upload="",jQuery("#json_file").val("")},force_remove_modal_class:function(){var t=document.querySelector("html");t.classList.contains("sui-has-modal")&&t.classList.remove("sui-has-modal")},openApplyConfigModal:function(){SUI.openModal("apply-config",jQuery("#configs"),void 0,!1,!0)},closeModal:function(){SUI.closeModal()},checkConfigs:function(){var t=this,e=this.ajaxAction+"&route="+t.routes.check_configs+"&_def_nonce="+t.nonces.check_configs,n=new FormData;n.append("data",{}),t.$store.commit("doingAjax"),t.state.on_saving=!0,fetch(e,{method:"POST",body:n}).then((function(t){return t.json()})).then((function(e){location.reload(),t.$store.commit("ajaxDone")}))}}),computed:bt(bt({},v(["configs","current_config","config_name","config_description","new_config_name","new_config_description","doing_ajax"])),{},{download_config_url:function(){return this.ajaxAction+"&route="+this.routes.download_config+"&_def_nonce="+this.nonces.download_config+"&key="+this.$store.state.current_config},config:function(){return this.configs[this.current_config]},apply_text:function(){if(void 0!==this.config)return this.vsprintf(this.__("Are you sure you want to apply the %1$s settings config to %2$s? We recommend you have a backup available as your existing settings configuration will be overridden."),'<span class="text-gray-500 font-semibold">'+this.config.name+"</span>",'<span class="text-gray-500 font-semibold">'+this.siteUrl()+"</span>")},delete_text:function(){if(void 0!==this.config)return this.vsprintf(this.__("Are you sure you want to delete the %s config file? You will no longer be able to apply it to this or other connected sites."),'<span class="text-gray-500 font-semibold">'+this.config.name+"</span>")}}),mounted:function(){jQuery("body").on("click","#open-uploader",(function(){jQuery("#json_file").trigger("click")})),localStorage.is_shown&&(this.is_shown=localStorage.is_shown)},watch:{is_shown:function(t){localStorage.is_shown=t}},updated:function(){var t=this;jQuery((function(){t.$nextTick((function(){t.rebindSUI()}))}))}};var Ct=n(821),xt={insert:"head",singleton:!1};E()(Ct.A,xt);Ct.A.locals;var kt=i(wt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-box",attrs:{id:"configs"}},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.__("Preset Configs"))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-actions-right"},[e("input",{ref:"file",staticClass:"hidden",attrs:{type:"file",id:"json_file"},on:{change:t.file_changed}}),t._v(" "),e("button",{staticClass:"sui-button sui-button-ghost sui-button-compound",class:{"sui-button-onload-text":t.uploading},attrs:{type:"button",id:"open-uploader"}},[e("span",{staticClass:"sui-compound-desktop",attrs:{"aria-hidden":"true"}},[e("span",{staticClass:"sui-button-text-default"},[e("i",{staticClass:"sui-icon-upload-cloud",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Upload"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-button-text-onload"},[e("i",{staticClass:"sui-icon-loader sui-loading",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Importing..."))+"\n ")])]),t._v(" "),t._m(0)]),t._v(" "),e("button",{staticClass:"sui-button sui-button-blue sui-button-compound",attrs:{"data-modal-open":"new-config","data-modal-open-focus":"configs","data-modal-close-focus":"configs","data-modal-mask":"false","data-esc-close":"true"}},[e("span",{staticClass:"sui-compound-desktop",attrs:{"aria-hidden":"true"}},[e("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Save new"))+"\n ")]),t._v(" "),t._m(1)])])]),t._v(" "),e("div",{staticClass:"sui-box-body sui-upsell-items"},[e("div",{staticClass:"sui-box-settings-row flex-col"},[e("p",[t._v("\n "+t._s(t.__("Configs bundle your Defender settings and make them available to download and apply on your other sites."))+"\n ")])]),t._v(" "),"no"===t.is_shown?e("div",{staticClass:"sui-box-settings-row sui-upsell-row no-padding-top"},[e("div",{staticClass:"sui-notice sui-notice-info"},[e("div",{staticClass:"sui-notice-content"},[e("div",{staticClass:"sui-notice-message"},[e("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("p",[t._v("\n "+t._s(t.__("Use configs to save preset configurations of Defender's settings, then upload and apply them to your other sites in just a few clicks! P.S. Save as many of them as you like - you can have unlimited preset configs."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-notice-actions"},[e("button",{staticClass:"sui-button-icon",on:{click:function(e){t.is_shown="yes"}}},[e("i",{staticClass:"sui-icon-check",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Close this notice")))])])])])])]):t._e()]),t._v(" "),e("div",{staticClass:"sui-accordion sui-accordion-flushed"},t._l(t.$store.state.configs,(function(n,i){return e("div",{staticClass:"sui-accordion-item",on:{mouseenter:function(e){t.current_config=i,t.new_config_name=n.name,t.new_config_description=n.description}}},[e("div",{staticClass:"sui-accordion-item-header"},[e("div",{staticClass:"sui-accordion-item-title sui-accordion-col-3"},[t.isWhitelabelDisabled()?e("span",{staticClass:"defender-config-icon"}):t._e(),t._v(" "),e("span",{staticClass:"defender-config-title truncate inline-block",domProps:{textContent:t._s(n.name)}}),t._v(" "),n.immortal?e("span",{staticClass:"ml-0 sui-tooltip",attrs:{"data-tooltip":t.__("Recommended config"),"aria-hidden":"true"}},[e("i",{staticClass:"sui-icon-check-tick ml-10px"})]):t._e()]),t._v(" "),e("div",{staticClass:"sui-accordion-col-6 config-description flex justify-between relative"},[t._v("\n "+t._s(t.__(n.description))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-accordion-col-3 flex justify-end"},[!0===n.is_active?e("span",{staticClass:"sui-tag sui-tag-blue sui-tag-sm"},[t._v(t._s(t.__("Active")))]):e("button",{staticClass:"sui-button quick-apply sui-button-ghost sui-accordion-item-action",attrs:{type:"button"},on:{click:t.openApplyConfigModal}},[e("i",{staticClass:"sui-icon-check",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Apply"))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-dropdown sui-accordion-item-action"},[t._m(2,!0),t._v(" "),e("ul",[!0!==n.is_active?e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openApplyConfigModal.apply(null,arguments)}}},[e("i",{staticClass:"sui-icon-check",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Apply")))])]):t._e(),t._v(" "),e("li",[e("a",{attrs:{href:t.download_config_url}},[e("i",{staticClass:"sui-icon-download",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Download")))])]),t._v(" "),!1===n.immortal?e("li",[e("a",{attrs:{href:"","data-modal-open":"rename-config","data-modal-open-focus":"configs","data-modal-close-focus":"configs","data-modal-mask":"false","data-esc-close":"true"}},[e("i",{staticClass:"sui-icon-pencil",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Name & Description")))])]):t._e(),t._v(" "),n.is_removable?e("li",[e("a",{staticClass:"sui-option-red",attrs:{href:"","data-modal-open":"delete-config","data-modal-open-focus":"configs","data-modal-close-focus":"configs","data-modal-mask":"false","data-esc-close":"true"}},[e("i",{staticClass:"sui-icon-trash",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Delete")))])]):t._e()])]),t._v(" "),t._m(3,!0)])]),t._v(" "),e("div",{staticClass:"sui-accordion-item-body"},[e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-body config-detail"},[!1===n.immortal?e("div",{staticClass:"flex justify-between align-middle"},[e("div",[e("strong",{domProps:{textContent:t._s(n.name)}}),t._v(" "),e("p",{staticClass:"sui-description",domProps:{textContent:t._s(n.description)}})]),t._v(" "),e("button",{staticClass:"sui-button-icon sui-button-outlined sui-tooltip",attrs:{type:"button","data-modal-open":"rename-config","data-modal-open-focus":"configs","data-modal-close-focus":"configs","data-modal-mask":"false","data-esc-close":"true","data-tooltip":t.__("Edit Name and Description")}},[e("i",{staticClass:"sui-icon-pencil",attrs:{"aria-hidden":"true"}})])]):t._e(),t._v(" "),!1===n.immortal?e("hr",{staticClass:"my-20px"}):t._e(),t._v(" "),e("table",{staticClass:"table-fixed w-full"},[e("tbody",[e("tr",[e("td",{staticClass:"px-4 py-2 font-medium"},[t._v(t._s(t.__("Security Recommendations")))]),t._v(" "),e("td",{staticClass:"px-4 py-2 font-medium"},t._l(n.strings.security_tweaks,(function(n){return e("div",[e("span",{domProps:{textContent:t._s(n)}})])})),0)]),t._v(" "),e("tr",{staticClass:"odd"},[e("td",{staticClass:"px-4 py-2 font-medium"},[t._v(t._s(t.__("Malware Scanning")))]),t._v(" "),e("td",{staticClass:"px-4 py-2 font-medium"},t._l(n.strings.scan,(function(n){return e("div",[e("span",{domProps:{innerHTML:t._s(n)}})])})),0)]),t._v(" "),e("tr",[e("td",{staticClass:"px-4 py-2 font-medium"},[t._v(t._s(t.__("Audit Logs")))]),t._v(" "),e("td",{staticClass:"px-4 py-2 font-medium"},t._l(n.strings.audit,(function(n){return e("div",[e("span",{domProps:{innerHTML:t._s(n)}})])})),0)]),t._v(" "),e("tr",{staticClass:"odd"},[e("td",{staticClass:"px-4 py-2 font-medium"},[t._v(t._s(t.__("Firewall")))]),t._v(" "),e("td",{staticClass:"px-4 py-2 font-medium"},t._l(n.strings.iplockout,(function(n){return e("div",[e("span",{domProps:{innerHTML:t._s(n)}})])})),0)]),t._v(" "),e("tr",[e("td",{staticClass:"px-4 py-2 font-medium"},[t._v(t._s(t.__("Two-Factor Authentication")))]),t._v(" "),e("td",{staticClass:"px-4 py-2 font-medium"},t._l(n.strings.two_factor,(function(n){return e("div",[e("span",{domProps:{textContent:t._s(n)}})])})),0)]),t._v(" "),e("tr",{staticClass:"odd"},[e("td",{staticClass:"px-4 py-2 font-medium"},[t._v(t._s(t.__("Mask Login Area")))]),t._v(" "),e("td",{staticClass:"px-4 py-2 font-medium"},t._l(n.strings.mask_login,(function(n){return e("div",[e("span",{domProps:{textContent:t._s(n)}})])})),0)]),t._v(" "),e("tr",[e("td",{staticClass:"px-4 py-2 font-medium"},[t._v(t._s(t.__("Security Headers")))]),t._v(" "),e("td",{staticClass:"px-4 py-2 font-medium"},t._l(n.strings.security_headers,(function(n){return e("div",[e("span",{domProps:{textContent:t._s(n)}})])})),0)]),t._v(" "),n.strings.blocklist_monitor?e("tr",{staticClass:"odd"},[e("td",{staticClass:"px-4 py-2 font-medium"},[t._v(t._s(t.__("Blocklist Monitor")))]),t._v(" "),e("td",{staticClass:"px-4 py-2 font-medium"},t._l(n.strings.blocklist_monitor,(function(n){return e("div",[e("span",{domProps:{innerHTML:t._s(n)}})])})),0)]):t._e(),t._v(" "),n.strings.pwned_passwords?e("tr",[e("td",{staticClass:"px-4 py-2 font-medium"},[t._v(t._s(t.__("Pwned Passwords")))]),t._v(" "),e("td",{staticClass:"px-4 py-2 font-medium"},t._l(n.strings.pwned_passwords,(function(n){return e("div",[e("span",{domProps:{innerHTML:t._s(n)}})])})),0)]):t._e()])])])])])])})),0),t._v(" "),e("div",{staticClass:"sui-box-body"},[e("p",{staticClass:"text-center"},[e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Created or updated configs via the Hub?"))+" "),e("a",{attrs:{href:"#"},on:{click:t.checkConfigs}},[t._v(t._s(t.__("Check again")))])])])]),t._v(" "),e("div",{staticClass:"sui-modal sui-modal-sm"},[e("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"new-config","aria-modal":"true","aria-labelledby":"save-new-config-title","aria-describedby":"save-new-config-desc"}},[e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},[e("button",{staticClass:"sui-button-icon sui-button-float--right",attrs:{"data-modal-close":""}},[e("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.textClose))])]),t._v(" "),e("h3",{staticClass:"sui-box-title sui-lg",attrs:{id:"save-new-config-title"}},[t._v(t._s(t.__("Save Current Config")))]),t._v(" "),e("p",{staticClass:"sui-description",attrs:{id:"save-new-config-desc"}},[t._v("\n "+t._s(t.__("Save your current Defender settings configuration. You’ll be able to then download and apply it to your other sites with Defender installed."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-body no-padding-bottom"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label"},[t._v(t._s(t.__("Config name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.config_name,expression:"config_name"}],staticClass:"sui-form-control",attrs:{type:"text"},domProps:{value:t.config_name},on:{input:function(e){e.target.composing||(t.config_name=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label",attrs:{for:"save_config_description",id:"label_save_config_description"}},[t._v(t._s(t.__("Config description")))]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.config_description,expression:"config_description"}],staticClass:"sui-form-control",attrs:{id:"save_config_description","aria-labelledby":"label_save_config_description","aria-describedby":"text_save_config_description"},domProps:{value:t.config_description},on:{input:function(e){e.target.composing||(t.config_description=e.target.value)}}}),t._v(" "),e("span",{staticClass:"sui-description",attrs:{id:"text_save_config_description"}},[t._v("\n "+t._s(t.__("You can edit the description to distinguish from other configs. Changing the description won’t exclude the feature from the preset."))+"\n ")])])]),t._v(" "),e("div",{staticClass:"sui-box-footer no-border"},[e("div",{staticClass:"sui-flex-child-right"},[e("button",{staticClass:"sui-button sui-button-ghost",attrs:{"data-modal-close":""}},[t._v("\n "+t._s(t.textCancel)+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{doing_ajax:t.doing_ajax,disabled:!t.config_name,type:"button","css-class":"sui-button-blue"},on:{click:t.new_config}},[e("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Save"))+"\n ")])],1)])])])]),t._v(" "),e("div",{staticClass:"sui-modal sui-modal-sm"},[e("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"rename-config","aria-modal":"true","aria-labelledby":"rename-config","aria-describedby":"rename-config"}},[e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},[e("button",{staticClass:"sui-button-icon sui-button-float--right",attrs:{"data-modal-close":""}},[e("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.textClose))])]),t._v(" "),e("h3",{staticClass:"sui-box-title sui-lg"},[t._v(t._s(t.__("Edit Name & Description")))]),t._v(" "),e("p",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Change your config name and your description to something recognizable."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-body no-padding-bottom"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label"},[t._v(t._s(t.__("Config name")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.new_config_name,expression:"new_config_name"}],staticClass:"sui-form-control",attrs:{type:"text"},domProps:{value:t.new_config_name},on:{input:function(e){e.target.composing||(t.new_config_name=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label"},[t._v(t._s(t.__("Config description")))]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.new_config_description,expression:"new_config_description"}],staticClass:"sui-form-control",domProps:{value:t.new_config_description},on:{input:function(e){e.target.composing||(t.new_config_description=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"sui-box-footer no-border"},[e("div",{staticClass:"sui-flex-child-right"},[e("button",{staticClass:"sui-button sui-button-ghost",attrs:{"data-modal-close":""}},[t._v("\n "+t._s(t.textCancel)+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{doing_ajax:t.doing_ajax,disabled:!t.new_config_name,type:"button","css-class":"sui-button-blue"},on:{click:function(e){return t.$store.dispatch("rename_config")}}},[e("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Save"))+"\n ")])],1)])])])]),t._v(" "),e("div",{staticClass:"sui-modal sui-modal-sm"},[e("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"apply-config","aria-modal":"true","aria-labelledby":"apply-config","aria-describedby":"apply-config"}},[e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},[e("button",{staticClass:"sui-button-icon sui-button-float--right",on:{click:t.closeModal}},[e("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.textClose))])]),t._v(" "),e("h3",{staticClass:"sui-box-title sui-lg"},[t._v(t._s(t.__("Apply config")))]),t._v(" "),e("p",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.apply_text)}})]),t._v(" "),e("div",{staticClass:"sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--60"},[e("button",{staticClass:"sui-button sui-button-ghost",on:{click:t.closeModal}},[t._v("\n "+t._s(t.textCancel)+"\n ")]),t._v(" "),e("submit-button2",{attrs:{doing_ajax:t.doing_ajax,disabled:!t.new_config_name,type:"button","css-class":"sui-button-blue"},on:{click:t.apply_config}},[e("i",{staticClass:"sui-icon-check",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Apply"))+"\n ")])],1)])])]),t._v(" "),e("div",{staticClass:"sui-modal sui-modal-sm"},[e("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"delete-config","aria-modal":"true","aria-labelledby":"delete-config","aria-describedby":"delete-config"}},[e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},[e("button",{staticClass:"sui-button-icon sui-button-float--right",attrs:{"data-modal-close":""}},[e("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.textClose))])]),t._v(" "),e("h3",{staticClass:"sui-box-title sui-lg"},[t._v(t._s(t.__("Delete Configuration File")))]),t._v(" "),e("p",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.delete_text)}})]),t._v(" "),e("div",{staticClass:"sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--60"},[e("button",{staticClass:"sui-button sui-button-ghost",attrs:{"data-modal-close":""}},[t._v("\n "+t._s(t.textCancel)+"\n ")]),t._v(" "),e("submit-button2",{attrs:{doing_ajax:t.doing_ajax,type:"button","css-class":"sui-button-red"},on:{click:function(e){return t.$store.dispatch("delete_config")}}},[t._v("\n "+t._s(t.__("Delete"))+"\n ")])],1)])])])])}),[function(){var t=this._self._c;return t("span",{staticClass:"sui-compound-mobile",attrs:{"aria-hidden":"true"}},[t("span",{staticClass:"sui-button-text-default"},[t("i",{staticClass:"sui-icon-upload-cloud",attrs:{"aria-hidden":"true"}})]),this._v(" "),t("span",{staticClass:"sui-button-text-onload"},[t("i",{staticClass:"sui-icon-loader sui-loading",attrs:{"aria-hidden":"true"}})])])},function(){var t=this._self._c;return t("span",{staticClass:"sui-compound-mobile",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}})])},function(){var t=this._self._c;return t("button",{staticClass:"sui-button-icon sui-dropdown-anchor"},[t("i",{staticClass:"sui-icon-widget-settings-config m-0",attrs:{"aria-hidden":"true"}})])},function(){var t=this._self._c;return t("button",{staticClass:"sui-button-icon sui-accordion-open-indicator sui-no-margin-left",attrs:{"aria-label":"Open item"}},[t("i",{staticClass:"sui-icon-chevron-down m-0",attrs:{"aria-hidden":"true"}})])}],!1,null,"086a78d4",null);const jt=i({mixins:[l],name:"settings",data:function(){return{view:"",tracking_modal:defender.tracking_modal}},components:{configs:kt.exports,general:k,"data-settings":N,accessibility:R},created:function(){var t=new URLSearchParams(window.location.search).get("view");null===t&&(t="general"),this.view=t},watch:{view:function(t,e){history.replaceState({},null,this.adminUrl()+"admin.php?page=wdf-setting&view="+this.view)}},computed:{high_contrast:function(){return{"sui-color-accessible":this.$store.state.accessibility.high_contrast_mode}}},beforeMount:function(){this.$store.commit("init",settings)},mounted:function(){var t=this;jQuery("#wdf-setting-mobile-nav").on("change",(function(e){t.view=e.target.value}))}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-wrap",class:[t.high_contrast]},["show"===t.tracking_modal?e("tracking-modal"):t._e(),t._v(" "),e("div",{staticClass:"settings"},[e("div",{staticClass:"sui-header"},[e("h1",{staticClass:"sui-header-title"},[t._v("\n "+t._s(t.__("Settings"))+"\n ")]),t._v(" "),e("doc-link",{attrs:{link:"?utm_source=defender&utm_medium=plugin&utm_campaign=defender_settings_docs#settings"}})],1),t._v(" "),e("opcache-notice"),t._v(" "),e("div",{staticClass:"sui-row-with-sidenav"},[e("div",{staticClass:"sui-sidenav"},[e("ul",{staticClass:"sui-vertical-tabs sui-sidenav-hide-md"},[e("li",{staticClass:"sui-vertical-tab",class:{current:"general"===t.view}},[e("a",{attrs:{href:t.adminUrl("admin.php?page=wdf-setting")},on:{click:function(e){e.preventDefault(),t.view="general"}}},[t._v("\n "+t._s(t.__("General"))+"\n ")])]),t._v(" "),e("li",{staticClass:"sui-vertical-tab",class:{current:"configs"===t.view}},[e("a",{attrs:{href:t.adminUrl("admin.php?page=wdf-setting&view=configs")},on:{click:function(e){e.preventDefault(),t.view="configs"}}},[t._v("\n "+t._s(t.__("Configs"))+"\n ")])]),t._v(" "),e("li",{staticClass:"sui-vertical-tab",class:{current:"data"===t.view}},[e("a",{attrs:{href:t.adminUrl("admin.php?page=wdf-setting&view=data")},on:{click:function(e){e.preventDefault(),t.view="data"}}},[t._v("\n "+t._s(t.__("Data & Settings"))+"\n ")])]),t._v(" "),e("li",{staticClass:"sui-vertical-tab",class:{current:"accessibility"===t.view}},[e("a",{attrs:{href:t.adminUrl("admin.php?page=wdf-setting&view=accessibility")},on:{click:function(e){e.preventDefault(),t.view="accessibility"}}},[t._v("\n "+t._s(t.__("Accessibility"))+"\n ")])])]),t._v(" "),e("div",{staticClass:"sui-sidenav-hide-lg margin-bottom-30"},[e("select",{staticClass:"sui-select sui-mobile-nav",attrs:{id:"wdf-setting-mobile-nav","data-minimum-results-for-search":"Infinity"}},[e("option",{attrs:{value:"general"},domProps:{selected:"general"===t.view}},[t._v(t._s(t.__("General")))]),t._v(" "),e("option",{attrs:{value:"configs"},domProps:{selected:"configs"===t.view}},[t._v(t._s(t.__("Configs")))]),t._v(" "),e("option",{attrs:{value:"data"},domProps:{selected:"data"===t.view}},[t._v(t._s(t.__("Data & Settings")))]),t._v(" "),e("option",{attrs:{value:"accessibility"},domProps:{selected:"accessibility"===t.view}},[t._v(t._s(t.__("Accessibility")))])])])]),t._v(" "),e("general",{directives:[{name:"show",rawName:"v-show",value:"general"===t.view,expression:"view==='general'"}]}),t._v(" "),e("configs",{directives:[{name:"show",rawName:"v-show",value:"configs"===t.view,expression:"view==='configs'"}]}),t._v(" "),e("data-settings",{directives:[{name:"show",rawName:"v-show",value:"data"===t.view,expression:"view==='data'"}]}),t._v(" "),e("accessibility",{directives:[{name:"show",rawName:"v-show",value:"accessibility"===t.view,expression:"view==='accessibility'"}]})],1)],1),t._v(" "),e("app-footer")],1)}),[],!1,null,null,null).exports;const St=i({mixins:[l],name:"doc-link",props:["link"],data:function(){return{whitelabel:defender.whitelabel}},methods:{build_url:function(t){return defender.wpmudev_url+t}}},(function(){var t=this,e=t._self._c;return!1===t.whitelabel.hide_doc_link?e("div",{staticClass:"sui-actions-right"},[e("a",{staticClass:"sui-button sui-button-ghost",attrs:{href:t.build_url(t.link),target:"_blank"}},[e("i",{staticClass:"sui-icon-academy"}),t._v(" "+t._s(t.__("Documentation"))+"\n ")])]):t._e()}),[],!1,null,null,null).exports;const Ot=i({name:"OPcacheNotice",mixins:[l],data:function(){return{opcacheSaveComments:defender.opcache_save_comments,opcacheMessage:defender.opcache_message}}},(function(){var t=this,e=t._self._c;return"disabled"==t.opcacheSaveComments?e("div",{staticClass:"sui-notice sui-notice-info"},[e("div",{staticClass:"sui-notice-content"},[e("div",{staticClass:"sui-notice-message"},[e("h3",{staticClass:"m-0"},[t._v(t._s(t.__("Enable OPcache Save Comments")))]),t._v(" "),e("p",{domProps:{innerHTML:t._s(t.opcacheMessage)}})])])]):t._e()}),[],!1,null,null,null).exports;var At=n(2505);function Tt(t){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt(t)}function Pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(n),!0).forEach((function(e){Mt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Tt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Tt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Tt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dt=n.n(At)().create({baseURL:ajaxurl+"?action=wp_defender/v1/hub/",timeout:15e3});function Nt(t,e,n){return Ut("post",t,e,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).then((function(t){return t}))}function Ut(t,e,n,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=JSON.stringify(i),r=new FormData;return r.append("data",o),Dt.request(Et(Et({},s),{},{url:Lt(e,n),method:t,data:r})).then((function(t){var e=t.data,n=e.success,i=void 0!==e.data.message?e.data.message:null,s=void 0!==e.data.redirect?e.data.redirect:null,o=void 0!==e.data.interval?e.data.interval:null,r=void 0!==e.data.type_notice&&e.data.type_notice;if((void 0===e.data.show_notice||e.data.show_notice)&&null!==i){var a=void 0!==e.data.auto_close&&!0===e.data.auto_close;Defender.showNotification(n?r||"success":"error",i,a)}return"session_out"===r&&null===s&&setTimeout((function(){jQuery(document).trigger("heartbeat-tick.wp-auth-check",[{"wp-auth-check":!1}]),jQuery((function(){jQuery("#wp-auth-check-frame").load((function(){jQuery(this).contents().find("#loginform").submit((function(){return setTimeout((function(){location.reload()}),1e3),!0}))}))}))}),2e3),null!==o?setTimeout((function(){null!==s?location.href=s:location.reload()}),1e3*o):null!==s&&(location.href=s),e.data}))}function Lt(t,e){return"&route="+t+"&_def_nonce="+e}var It={general:{translate:"",usage_tracking:"",translation_link:""},configs:[],current_config:"",config_name:"",config_description:"",new_config_name:"",new_config_description:"",data_settings:{uninstall_settings:"",uninstall_data:"",uninstall_quarantine:""},nope:"",accessibility:{high_contrast_mode:!1},nonces:{},routes:{},misc:{},doing_ajax:!1},$t={saveSettings:function(t){t.commit("doingAjax"),Nt(It.routes.save_settings,It.nonces.save_settings,{translate:It.general.translate,usage_tracking:It.general.usage_tracking,translation_link:It.general.translation_link,uninstall_data:It.data_settings.uninstall_data,uninstall_settings:It.data_settings.uninstall_settings,uninstall_quarantine:It.data_settings.uninstall_quarantine,high_contrast_mode:It.accessibility.high_contrast_mode}).then((function(e){t.commit("ajaxDone")}))},rename_config:function(t){t.commit("doingAjax"),Nt(t.state.routes.update_config,t.state.nonces.update_config,{name:t.state.new_config_name,description:t.state.new_config_description,key:t.state.current_config}).then((function(e){t.commit("ajaxDone"),t.commit("updateConfigs",e.configs),SUI.closeModal(),t.commit("forceRemoveModalClass")}))},delete_config:function(t){t.commit("doingAjax"),Nt(t.state.routes.delete_config,t.state.nonces.delete_config,{key:t.state.current_config}).then((function(e){t.commit("ajaxDone"),void 0!==e.configs&&t.commit("updateConfigs",e.configs),SUI.closeModal(),t.commit("forceRemoveModalClass")}))},reset_settings:function(t){t.commit("doingAjax"),Nt(t.state.routes.reset_settings,t.state.nonces.reset_settings,{}).then((function(e){t.commit("ajaxDone")}))}},Rt={init:function(t,e){t.general=e.general,t.configs=e.configs,t.data_settings=e.data_settings,t.accessibility=e.accessibility,t.nonces=e.nonces,t.routes=e.routes,t.misc=e.misc,t.current_config=e.current_config,t.config_name=e.config_name,t.config_description=e.config_description,t.new_config_name=e.new_config_name,t.new_config_description=e.new_config_description},updateField:_,doingAjax:function(t){t.doing_ajax=!0},ajaxDone:function(t){t.doing_ajax=!1},updateConfigs:function(t,e){t.configs=e},forceRemoveModalClass:function(t){var e=document.querySelector("html");e.classList.contains("sui-has-modal")&&e.classList.remove("sui-has-modal")},enableUsageTracking:function(t){t.general.usage_tracking=!0}},qt={getField:h};const Ht=new ht.Store({strict:!0,state:It,mutations:Rt,actions:$t,getters:qt});const Bt=i({name:"tracking-modal",mixins:[l],components:{SubmitButton2:y},data:function(){return{banner_1x:defender.misc.banner_1x,banner_2x:defender.misc.banner_2x,banner_alt:defender.misc.title,title:defender.misc.title,desc:defender.misc.desc,optin_button_title:defender.misc.optin_button_title,skip_button_title:defender.misc.skip_button_title,nonces:defender.misc.nonces,routes:defender.misc.routes,doing_ajax:!1}},mounted:function(){document.onreadystatechange=function(){SUI.openModal("defender-tracking-modal",jQuery("body"),void 0,!1,!0)}},methods:{handleResult:function(){var t=this,e=this;return e.doing_ajax=!0,new Promise((function(n,i){Nt(e.routes.save_track_modal,e.nonces.save_track_modal,{}).then((function(i){e.doing_ajax=!1,SUI.closeModal(),t.suiRemoveModalClass(),n(i)})).catch((function(t){i(t)}))}))},hideModal:function(){var t=this,e=this;return e.doing_ajax=!0,new Promise((function(n,i){Nt(e.routes.close_track_modal,e.nonces.close_track_modal,{}).then((function(i){e.doing_ajax=!1,SUI.closeModal(),t.suiRemoveModalClass(),n(i)})).catch((function(t){i(t)}))}))}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-modal sui-modal-md"},[e("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"defender-tracking-modal","aria-modal":"true","aria-label":"defender-tracking-modal-label"}},[e("div",{staticClass:"sui-box margin-bottom-5"},[e("div",{staticClass:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},[e("figure",{staticClass:"sui-box-banner margin-bottom-30",attrs:{"aria-hidden":"true"}},[e("img",{attrs:{src:t.banner_1x,srcset:t.banner_1x+" 1x, "+t.banner_2x+" 2x",alt:t.banner_alt}})]),t._v(" "),e("button",{staticClass:"modal-close-button sui-button-white sui-button-icon sui-button-float--right",on:{click:t.hideModal}},[e("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Close this dialog.")))])]),t._v(" "),e("h3",{staticClass:"sui-box-title sui-lg",attrs:{id:"defender-tracking-modal-label"},domProps:{innerHTML:t._s(t.title)}}),t._v(" "),e("p",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.desc)}})]),t._v(" "),e("div",{staticClass:"sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--50"},[e("submit-button2",{attrs:{doing_ajax:t.doing_ajax,"css-class":"sui-button-blue"},on:{click:function(e){return t.handleResult()}}},[t._v("\n "+t._s(t.optin_button_title)+"\n ")])],1)]),t._v(" "),e("button",{staticClass:"sui-modal-skip defender-tracking-modal-skip-link",attrs:{type:"button"},on:{click:function(e){return t.hideModal()}}},[t._v("\n "+t._s(t.skip_button_title)+"\n ")])])])}),[],!1,null,null,null).exports;e().component("submit-button",s),e().component("app-footer",d),e().component("doc-link",St),e().component("opcache-notice",Ot),e().component("tracking-modal",Bt);new(e())({el:"#defender",store:Ht,components:{settings:jt},render:function(t){return t(jt)},data:{high_contrast:defender.misc.high_contrast}})})()})();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings