File manager - Edit - /home/xfekoga/grenier/wp-content/plugins/defender-security/assets/app/two-fa.js
Back
/*! For license information please see two-fa.js.LICENSE.txt */ (()=>{var t={1100:t=>{t.exports={indexOf:function(t,e){var s,i;if(Array.prototype.indexOf)return t.indexOf(e);for(s=0,i=t.length;s<i;s++)if(t[s]===e)return s;return-1},forEach:function(t,e,s){var i,a;if(Array.prototype.forEach)return t.forEach(e,s);for(i=0,a=t.length;i<a;i++)e.call(s,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,s)=>{var i=s(6018).FilterCSS,a=s(6018).getDefaultWhiteList,o=s(9349);function n(){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 r=new i;function c(t){return t.replace(l,"<").replace(u,">")}var l=/</g,u=/>/g,d=/"/g,p=/"/g,f=/&#([a-zA-Z0-9]*);?/gim,_=/:?/gim,m=/&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,v=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,g=/u\s*r\s*l\s*\(.*/gi;function b(t){return t.replace(d,""")}function y(t){return t.replace(p,'"')}function w(t){return t.replace(f,(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(_,":").replace(m," ")}function x(t){for(var e="",s=0,i=t.length;s<i;s++)e+=t.charCodeAt(s)<32?" ":t.charAt(s);return o.trim(e)}function k(t){return t=x(t=C(t=w(t=y(t))))}function A(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=n,e.onTag=function(t,e,s){},e.onIgnoreTag=function(t,e,s){},e.onTagAttr=function(t,e,s){},e.onIgnoreTagAttr=function(t,e,s){},e.safeAttrValue=function(t,e,s,i){if(s=k(s),"href"===e||"src"===e){if("#"===(s=o.trim(s)))return"#";if("http://"!==s.substr(0,7)&&"https://"!==s.substr(0,8)&&"mailto:"!==s.substr(0,7)&&"tel:"!==s.substr(0,4)&&"data:image/"!==s.substr(0,11)&&"ftp://"!==s.substr(0,6)&&"./"!==s.substr(0,2)&&"../"!==s.substr(0,3)&&"#"!==s[0]&&"/"!==s[0])return""}else if("background"===e){if(h.lastIndex=0,h.test(s))return""}else if("style"===e){if(v.lastIndex=0,v.test(s))return"";if(g.lastIndex=0,g.test(s)&&(h.lastIndex=0,h.test(s)))return"";!1!==i&&(s=(i=i||r).process(s))}return s=A(s)},e.escapeHtml=c,e.escapeQuote=b,e.unescapeQuote=y,e.escapeHtmlEntities=w,e.escapeDangerHtml5Entities=C,e.clearNonPrintableCharacter=x,e.friendlyAttrValue=k,e.escapeAttrValue=A,e.onIgnoreTagStripAll=function(){return""},e.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var s=!Array.isArray(t),i=[],a=!1;return{onIgnoreTag:function(n,r,c){if(function(e){return!!s||-1!==o.indexOf(t,e)}(n)){if(c.isClosing){var l="[/removed]",u=c.position+10;return i.push([!1!==a?a:c.position,u]),a=!1,l}return a||(a=c.position),"[removed]"}return e(n,r,c)},remove:function(t){var e="",s=0;return o.forEach(i,(function(i){e+=t.slice(s,i[0]),s=i[1]})),e+=t.slice(s)}}},e.stripCommentTag=function(t){for(var e="",s=0;s<t.length;){var i=t.indexOf("\x3c!--",s);if(-1===i){e+=t.slice(s);break}e+=t.slice(s,i);var a=t.indexOf("--\x3e",i);if(-1===a)break;s=a+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=r,e.getDefaultCSSWhiteList=a},2505:(t,e,s)=>{t.exports=s(8015)},2881:(t,e,s)=>{"use strict";var i=s(9516),a=s(6987);t.exports=function(t,e,s){var o=this||a;return i.forEach(s,(function(s){t=s.call(o,t,e)})),t}},3191:(t,e,s)=>{"use strict";var i=s(1928);function a(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var s=this;t((function(t){s.reason||(s.reason=new i(t),e(s.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var t;return{token:new a((function(e){t=e})),cancel:t}},t.exports=a},3471:(t,e,s)=>{"use strict";var i=s(9516);function a(){this.handlers=[]}a.prototype.use=function(t,e,s){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!s&&s.synchronous,runWhen:s?s.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},a.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=a},3473:(t,e,s)=>{var i=s(7043),a=s(5323);s(1100);function o(t){return null==t}function n(t){(t=function(t){var e={};for(var s in t)e[s]=t[s];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}n.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,s=e.whiteList,i=e.onAttr,n=e.onIgnoreAttr,r=e.safeAttrValue;return a(t,(function(t,e,a,c,l){var u=s[a],d=!1;if(!0===u?d=u:"function"==typeof u?d=u(c):u instanceof RegExp&&(d=u.test(c)),!0!==d&&(d=!1),c=r(a,c)){var p,f={position:e,sourcePosition:t,source:l,isWhite:d};return d?o(p=i(a,c,f))?a+":"+c:p:o(p=n(a,c,f))?void 0:p}}))},t.exports=n},3864:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},3948:(t,e,s)=>{"use strict";var i=s(9516);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,s,a,o,n){var r=[];r.push(t+"="+encodeURIComponent(e)),i.isNumber(s)&&r.push("expires="+new Date(s).toGMTString()),i.isString(a)&&r.push("path="+a),i.isString(o)&&r.push("domain="+o),!0===n&&r.push("secure"),document.cookie=r.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,s)=>{var i=s(2048),a=s(5930),o=s(8327);function n(t,e){return new o(e).process(t)}(e=t.exports=n).filterXSS=n,e.FilterXSS=o,function(){for(var t in i)e[t]=i[t];for(var s in a)e[s]=a[s]}(),"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,s)=>{"use strict";var i=s(9516);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");function a(t){var i=t;return e&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}return t=a(window.location.href),function(e){var s=i.isString(e)?a(e):e;return s.protocol===t.protocol&&s.host===t.host}}():function(){return!0}},4490:(t,e,s)=>{"use strict";var i=s(9516),a=s(2881),o=s(3864),n=s(6987);function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return r(t),t.headers=t.headers||{},t.data=a.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||n.adapter)(t).then((function(e){return r(t),e.data=a.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(r(t),e&&e.response&&(e.response.data=a.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,s)=>{"use strict";var i=s(4198),a={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){a[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}}));var o={},n=i.version.split(".");function r(t,e){for(var s=e?e.split("."):n,i=t.split("."),a=0;a<3;a++){if(s[a]>i[a])return!0;if(s[a]<i[a])return!1}return!1}a.transitional=function(t,e,s){var a=e&&r(e);function n(t,e){return"[Axios v"+i.version+"] Transitional option '"+t+"'"+e+(s?". "+s:"")}return function(s,i,r){if(!1===t)throw new Error(n(i," has been removed in "+e));return a&&!o[i]&&(o[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(s,i,r)}},t.exports={isOlderVersion:r,assertOptions:function(t,e,s){if("object"!=typeof t)throw new TypeError("options must be an object");for(var i=Object.keys(t),a=i.length;a-- >0;){var o=i[a],n=e[o];if(n){var r=t[o],c=void 0===r||n(r,o,t);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==s)throw Error("Unknown option "+o)}},validators:a}},5019:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},5155:(t,e,s)=>{"use strict";var i=s(9516),a=s(9106),o=s(3471),n=s(4490),r=s(5343),c=s(4841),l=c.validators;function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=r(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:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var s=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var a,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!i){var u=[n,void 0];for(Array.prototype.unshift.apply(u,s),u=u.concat(o),a=Promise.resolve(t);u.length;)a=a.then(u.shift(),u.shift());return a}for(var d=t;s.length;){var p=s.shift(),f=s.shift();try{d=p(d)}catch(t){f(t);break}}try{a=n(d)}catch(t){return Promise.reject(t)}for(;o.length;)a=a.then(o.shift(),o.shift());return a},u.prototype.getUri=function(t){return t=r(this.defaults,t),a(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,s){return this.request(r(s||{},{method:t,url:e,data:(s||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,s,i){return this.request(r(i||{},{method:t,url:e,data:s}))}})),t.exports=u},5323:(t,e,s)=>{var i=s(1100);t.exports=function(t,e){";"!==(t=i.trimRight(t))[t.length-1]&&(t+=";");var s=t.length,a=!1,o=0,n=0,r="";function c(){if(!a){var s=i.trim(t.slice(o,n)),c=s.indexOf(":");if(-1!==c){var l=i.trim(s.slice(0,c)),u=i.trim(s.slice(c+1));if(l){var d=e(o,r.length,l,u,s);d&&(r+=d+"; ")}}}o=n+1}for(;n<s;n++){var l=t[n];if("/"===l&&"*"===t[n+1]){var u=t.indexOf("*/",n+2);if(-1===u)break;o=(n=u+1)+1,a=!1}else"("===l?a=!0:")"===l?a=!1:";"===l?a||c():"\n"===l&&c()}return i.trim(r)}},5343:(t,e,s)=>{"use strict";var i=s(9516);t.exports=function(t,e){e=e||{};var s={},a=["url","method","data"],o=["headers","auth","proxy","params"],n=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],r=["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 l(a){i.isUndefined(e[a])?i.isUndefined(t[a])||(s[a]=c(void 0,t[a])):s[a]=c(t[a],e[a])}i.forEach(a,(function(t){i.isUndefined(e[t])||(s[t]=c(void 0,e[t]))})),i.forEach(o,l),i.forEach(n,(function(a){i.isUndefined(e[a])?i.isUndefined(t[a])||(s[a]=c(void 0,t[a])):s[a]=c(void 0,e[a])})),i.forEach(r,(function(i){i in e?s[i]=c(t[i],e[i]):i in t&&(s[i]=c(void 0,t[i]))}));var u=a.concat(o).concat(n).concat(r),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return i.forEach(d,l),s}},5449:t=>{"use strict";t.exports=function(t,e,s,i,a){return t.config=e,s&&(t.code=s),t.request=i,t.response=a,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,s)=>{"use strict";var i=s(9516),a=s(7522),o=s(3948),n=s(9106),r=s(9615),c=s(9631),l=s(4202),u=s(7763);t.exports=function(t){return new Promise((function(e,s){var d=t.data,p=t.headers,f=t.responseType;i.isFormData(d)&&delete p["Content-Type"];var _=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+h)}var v=r(t.baseURL,t.url);function g(){if(_){var i="getAllResponseHeaders"in _?c(_.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:i,config:t,request:_};a(e,s,o),_=null}}if(_.open(t.method.toUpperCase(),n(v,t.params,t.paramsSerializer),!0),_.timeout=t.timeout,"onloadend"in _?_.onloadend=g:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(g)},_.onabort=function(){_&&(s(u("Request aborted",t,"ECONNABORTED",_)),_=null)},_.onerror=function(){s(u("Network Error",t,null,_)),_=null},_.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),s(u(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},i.isStandardBrowserEnv()){var b=(t.withCredentials||l(v))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;b&&(p[t.xsrfHeaderName]=b)}"setRequestHeader"in _&&i.forEach(p,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete p[e]:_.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(_.withCredentials=!!t.withCredentials),f&&"json"!==f&&(_.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&_.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){_&&(_.abort(),s(t),_=null)})),d||(d=null),_.send(d)}))}},5606:t=>{var e,s,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function n(t){if(e===setTimeout)return setTimeout(t,0);if((e===a||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(s){try{return e.call(null,t,0)}catch(s){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:a}catch(t){e=a}try{s="function"==typeof clearTimeout?clearTimeout:o}catch(t){s=o}}();var r,c=[],l=!1,u=-1;function d(){l&&r&&(l=!1,r.length?c=r.concat(c):u=-1,c.length&&p())}function p(){if(!l){var t=n(d);l=!0;for(var e=c.length;e;){for(r=c,c=[];++u<e;)r&&r[u].run();u=-1,e=c.length}r=null,l=!1,function(t){if(s===clearTimeout)return clearTimeout(t);if((s===o||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(t);try{return s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function _(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)e[s-1]=arguments[s];c.push(new f(t,e)),1!==c.length||l||n(p)},f.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=_,i.addListener=_,i.once=_,i.off=_,i.removeListener=_,i.removeAllListeners=_,i.emit=_,i.prependListener=_,i.prependOnceListener=_,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,s)=>{var i=s(9349);function a(t){var e,s=i.spaceIndex(t);return e=-1===s?t.slice(1,-1):t.slice(1,s+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 n=/[^a-zA-Z0-9\\_:.-]/gim;function r(t,e){for(;e<t.length;e++){var s=t[e];if(" "!==s)return"="===s?e:-1}}function c(t,e){for(;e<t.length;e++){var s=t[e];if(" "!==s)return"'"===s||'"'===s?e:-1}}function l(t,e){for(;e>0;e--){var s=t[e];if(" "!==s)return"="===s?e:-1}}function u(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,s){"use strict";var i="",n=0,r=!1,c=!1,l=0,u=t.length,d="",p="";t:for(l=0;l<u;l++){var f=t.charAt(l);if(!1===r){if("<"===f){r=l;continue}}else if(!1===c){if("<"===f){i+=s(t.slice(n,l)),r=l,n=l;continue}if(">"===f||l===u-1){i+=s(t.slice(n,r)),d=a(p=t.slice(r,l+1)),i+=e(r,i.length,d,p,o(p)),n=l+1,r=!1;continue}if('"'===f||"'"===f)for(var _=1,m=t.charAt(l-_);""===m.trim()||"="===m;){if("="===m){c=f;continue t}m=t.charAt(l-++_)}}else if(f===c){c=!1;continue}}return n<u&&(i+=s(t.substr(n))),i},e.parseAttr=function(t,e){"use strict";var s=0,a=0,o=[],d=!1,p=t.length;function f(t,s){if(!((t=(t=i.trim(t)).replace(n,"").toLowerCase()).length<1)){var a=e(t,s||"");a&&o.push(a)}}for(var _=0;_<p;_++){var m,h=t.charAt(_);if(!1!==d||"="!==h)if(!1===d||_!==a)if(/\s|\n|\t/.test(h)){if(t=t.replace(/\s|\n|\t/g," "),!1===d){if(-1===(m=r(t,_))){f(i.trim(t.slice(s,_))),d=!1,s=_+1;continue}_=m-1;continue}if(-1===(m=l(t,_-1))){f(d,u(i.trim(t.slice(s,_)))),d=!1,s=_+1;continue}}else;else{if(-1===(m=t.indexOf(h,_+1)))break;f(d,i.trim(t.slice(a+1,m))),d=!1,s=(_=m)+1}else d=t.slice(s,_),s=_+1,a='"'===t.charAt(s)||"'"===t.charAt(s)?s:c(t,_+1)}return s<t.length&&(!1===d?f(t.slice(s)):f(d,u(i.trim(t.slice(s))))),i.trim(o.join(" "))}},6018:(t,e,s)=>{var i=s(7043),a=s(3473);for(var o in(e=t.exports=function(t,e){return new a(e).process(t)}).FilterCSS=a,i)e[o]=i[o];"undefined"!=typeof window&&(window.filterCSS=t.exports)},6987:(t,e,s)=>{"use strict";var i=s(5606),a=s(9516),o=s(7018),n=s(5449),r={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!a.isUndefined(t)&&a.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==i&&"[object process]"===Object.prototype.toString.call(i))&&(l=s(5592)),l),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),a.isFormData(t)||a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)?t:a.isArrayBufferView(t)?t.buffer:a.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):a.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,s){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(s||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,s=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,o=!s&&"json"===this.responseType;if(o||i&&a.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw n(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}};u.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),a.forEach(["post","put","patch"],(function(t){u.headers[t]=a.merge(r)})),t.exports=u},7018:(t,e,s)=>{"use strict";var i=s(9516);t.exports=function(t,e){i.forEach(t,(function(s,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=s,delete t[i])}))}},7043:(t,e)=>{function s(){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=s(),e.getDefaultWhiteList=s,e.onAttr=function(t,e,s){},e.onIgnoreAttr=function(t,e,s){},e.safeAttrValue=function(t,e){return i.test(e)?"":e}},7522:(t,e,s)=>{"use strict";var i=s(7763);t.exports=function(t,e,s){var a=s.config.validateStatus;s.status&&a&&!a(s.status)?e(i("Request failed with status code "+s.status,s.config,null,s.request,s)):t(s)}},7763:(t,e,s)=>{"use strict";var i=s(5449);t.exports=function(t,e,s,a,o){var n=new Error(t);return i(n,e,s,a,o)}},7980:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},8015:(t,e,s)=>{"use strict";var i=s(9516),a=s(9012),o=s(5155),n=s(5343);function r(t){var e=new o(t),s=a(o.prototype.request,e);return i.extend(s,o.prototype,e),i.extend(s,e),s}var c=r(s(6987));c.Axios=o,c.create=function(t){return r(n(c.defaults,t))},c.Cancel=s(1928),c.CancelToken=s(3191),c.isCancel=s(3864),c.all=function(t){return Promise.all(t)},c.spread=s(7980),c.isAxiosError=s(5019),t.exports=c,t.exports.default=c},8327:(t,e,s)=>{var i=s(6018).FilterCSS,a=s(2048),o=s(5930),n=o.parseTag,r=o.parseAttr,c=s(9349);function l(t){return null==t}function u(t){(t=function(t){var e={};for(var s in t)e[s]=t[s];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=a.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e={};for(var s in t)Array.isArray(t[s])?e[s.toLowerCase()]=t[s].map((function(t){return t.toLowerCase()})):e[s.toLowerCase()]=t[s];return e}(t.whiteList||t.allowList):t.whiteList=a.whiteList,this.attributeWrapSign=!0===t.singleQuotedAttributeValue?"'":a.attributeWrapSign,t.onTag=t.onTag||a.onTag,t.onTagAttr=t.onTagAttr||a.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||a.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||a.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||a.safeAttrValue,t.escapeHtml=t.escapeHtml||a.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new i(t.css))}u.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this,s=e.options,i=s.whiteList,o=s.onTag,u=s.onIgnoreTag,d=s.onTagAttr,p=s.onIgnoreTagAttr,f=s.safeAttrValue,_=s.escapeHtml,m=e.attributeWrapSign,h=e.cssFilter;s.stripBlankChar&&(t=a.stripBlankChar(t)),s.allowCommentTag||(t=a.stripCommentTag(t));var v=!1;s.stripIgnoreTagBody&&(v=a.StripTagBody(s.stripIgnoreTagBody,u),u=v.onIgnoreTag);var g=n(t,(function(t,e,s,a,n){var v={sourcePosition:t,position:e,isClosing:n,isWhite:Object.prototype.hasOwnProperty.call(i,s)},g=o(s,a,v);if(!l(g))return g;if(v.isWhite){if(v.isClosing)return"</"+s+">";var b=function(t){var e=c.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var s="/"===(t=c.trim(t.slice(e+1,-1)))[t.length-1];return s&&(t=c.trim(t.slice(0,-1))),{html:t,closing:s}}(a),y=i[s],w=r(b.html,(function(t,e){var i=-1!==c.indexOf(y,t),a=d(s,t,e,i);return l(a)?i?(e=f(s,t,e,h))?t+"="+m+e+m:t:l(a=p(s,t,e,i))?void 0:a:a}));return a="<"+s,w&&(a+=" "+w),b.closing&&(a+=" /"),a+=">"}return l(g=u(s,a,v))?_(a):g}),_);return v&&(g=v.remove(g)),g},t.exports=u},9012:t=>{"use strict";t.exports=function(t,e){return function(){for(var s=new Array(arguments.length),i=0;i<s.length;i++)s[i]=arguments[i];return t.apply(e,s)}}},9106:(t,e,s)=>{"use strict";var i=s(9516);function a(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,s){if(!e)return t;var o;if(s)o=s(e);else if(i.isURLSearchParams(e))o=e.toString();else{var n=[];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)),n.push(a(e)+"="+a(t))})))})),o=n.join("&")}if(o){var r=t.indexOf("#");-1!==r&&(t=t.slice(0,r)),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 s,i;if(Array.prototype.indexOf)return t.indexOf(e);for(s=0,i=t.length;s<i;s++)if(t[s]===e)return s;return-1},forEach:function(t,e,s){var i,a;if(Array.prototype.forEach)return t.forEach(e,s);for(i=0,a=t.length;i<a;i++)e.call(s,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,s)=>{"use strict";var i=s(9012),a=Object.prototype.toString;function o(t){return"[object Array]"===a.call(t)}function n(t){return void 0===t}function r(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==a.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===a.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var s=0,i=t.length;s<i;s++)e.call(null,t[s],s,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:function(t){return null!==t&&!n(t)&&null!==t.constructor&&!n(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:r,isPlainObject:c,isUndefined:n,isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:l,isStream:function(t){return r(t)&&l(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:u,merge:function t(){var e={};function s(s,i){c(e[i])&&c(s)?e[i]=t(e[i],s):c(s)?e[i]=t({},s):o(s)?e[i]=s.slice():e[i]=s}for(var i=0,a=arguments.length;i<a;i++)u(arguments[i],s);return e},extend:function(t,e,s){return u(e,(function(e,a){t[a]=s&&"function"==typeof e?i(e,s):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,s)=>{"use strict";var i=s(9137),a=s(4680);t.exports=function(t,e){return t&&!i(e)?a(t,e):e}},9631:(t,e,s)=>{"use strict";var i=s(9516),a=["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,s,o,n={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),s=i.trim(t.substr(o+1)),e){if(n[e]&&a.indexOf(e)>=0)return;n[e]="set-cookie"===e?(n[e]?n[e]:[]).concat([s]):n[e]?n[e]+", "+s:s}})),n):n}}},e={};function s(i){var a=e[i];if(void 0!==a)return a.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,s),o.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=Vue;var e=s.n(t),i=s(4005),a=wp.i18n,o={whiteList:{a:["href","title","target"],span:["class"],strong:["*"]},safeAttrValue:function(t,e,s,a){return"a"===t&&"href"===e&&"%s"===s?"%s":(0,i.safeAttrValue)(t,e,s,a)}},n=new i.FilterXSS(o),r=[];const c={data:function(){return{width:{document:0},mobileWidth:768,tabletWidth:1024,isMobile:!1,isTablet:!1}},methods:{__:function(t){var e=a.__(t,"defender-security");return n.process(e)},multipleTranslation:function(t,e,s){var i=a._n(t,e,s,"defender-security");return n.process(i)},xss:function(t){return n.process(t)},vsprintf:function(t){return a.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",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return s=s&&"&"!==s.slice(-1)?s+"&":s,defender.wpmudev_api_base_url+e+"/?"+s+"utm_source=defender&utm_medium=plugin&utm_campaign="+t},httpRequest:function(t,e,s,i,a){var o=this;void 0===a&&(this.state.on_saving=!0);var n=ajaxurl+"?action="+this.endpoints[e]+"&_def_nonce="+this.nonces[e],c=jQuery.ajax({url:n,method:t,data:s,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)}});r.push(c)},httpGetRequest:function(t,e,s,i){this.httpRequest("get",t,e,s,i)},httpPostRequest:function(t,e,s,i){this.httpRequest("post",t,e,s,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)}};function l(t){return l="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},l(t)}function u(t,e,s,i,a,o,n,r){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=s,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),n?(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__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},l._ssrRegister=c):a&&(c=r?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}const d=u({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"===l(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 p(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 s=[],i=!0,a=!1,o=void 0;try{for(var n,r=t[Symbol.iterator]();!(i=(n=r.next()).done)&&(s.push(n.value),!e||s.length!==e);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(a)throw o}}return s}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return f(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 f(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,i=new Array(e);s<e;s++)i[s]=t[s];return i}function _(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var s=e.split(".").slice(-1)[0];if(t[s])throw new Error("The key `".concat(s,"` is already in use."));return t[s]=e,t}),{})}function m(t){return function(){for(var e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];var a=p("string"==typeof s[0]?[].concat(s):[""].concat(s),4),o=a[0],n=a[1],r=a[2],c=a[3];return o.length&&"/"!==o.charAt(o.length-1)&&(o+="/"),r="".concat(o).concat(r||"getField"),c="".concat(o).concat(c||"updateField"),t(o,n,r,c)}}function h(t){return function(e){return e.split(/[.[\]]+/).reduce((function(t,e){return t[e]}),t)}}function v(t,e){var s=e.path,i=e.value;s.split(/[.[\]]+/).reduce((function(t,e,s,a){return a.length===s+1&&(t[e]=i),t[e]}),t)}var g=m((function(t,e,s,i){var a=Array.isArray(e)?_(e):e;return Object.keys(a).reduce((function(t,e){var o=a[e],n={get:function(){return this.$store.getters[s](o)},set:function(t){this.$store.commit(i,{path:o,value:t})}};return t[e]=n,t}),{})}));m((function(t,e,s,i){var a=Array.isArray(e)?_(e):e;return Object.keys(a).reduce((function(t,e){var o=a[e];return t[e]={get:function(){var t,e=this.$store,a=(t=e.getters[s](o),Object.keys(t).map((function(e){return[e,t[e]]})));return a.map((function(t){return Object.keys(t[1]).reduce((function(a,n){var r="".concat(o,"[").concat(t[0],"].").concat(n);return Object.defineProperty(a,n,{get:function(){return e.getters[s](r)},set:function(t){e.commit(i,{path:r,value:t})}})}),{})}))}},t}),{})}));var b=("undefined"!=typeof window?window:void 0!==s.g?s.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function y(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var s,i=(s=function(e){return e.original===t},e.filter(s)[0]);if(i)return i.copy;var a=Array.isArray(t)?[]:{};return e.push({original:t,copy:a}),Object.keys(t).forEach((function(s){a[s]=y(t[s],e)})),a}function w(t,e){Object.keys(t).forEach((function(s){return e(t[s],s)}))}function C(t){return null!==t&&"object"==typeof t}var x=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var s=t.state;this.state=("function"==typeof s?s():s)||{}},k={namespaced:{configurable:!0}};k.namespaced.get=function(){return!!this._rawModule.namespaced},x.prototype.addChild=function(t,e){this._children[t]=e},x.prototype.removeChild=function(t){delete this._children[t]},x.prototype.getChild=function(t){return this._children[t]},x.prototype.hasChild=function(t){return t in this._children},x.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)},x.prototype.forEachChild=function(t){w(this._children,t)},x.prototype.forEachGetter=function(t){this._rawModule.getters&&w(this._rawModule.getters,t)},x.prototype.forEachAction=function(t){this._rawModule.actions&&w(this._rawModule.actions,t)},x.prototype.forEachMutation=function(t){this._rawModule.mutations&&w(this._rawModule.mutations,t)},Object.defineProperties(x.prototype,k);var A=function(t){this.register([],t,!1)};function j(t,e,s){if(e.update(s),s.modules)for(var i in s.modules){if(!e.getChild(i))return void 0;j(t.concat(i),e.getChild(i),s.modules[i])}}A.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},A.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,s){return t+((e=e.getChild(s)).namespaced?s+"/":"")}),"")},A.prototype.update=function(t){j([],this.root,t)},A.prototype.register=function(t,e,s){var i=this;void 0===s&&(s=!0);var a=new x(e,s);0===t.length?this.root=a:this.get(t.slice(0,-1)).addChild(t[t.length-1],a);e.modules&&w(e.modules,(function(e,a){i.register(t.concat(a),e,s)}))},A.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),s=t[t.length-1],i=e.getChild(s);i&&i.runtime&&e.removeChild(s)},A.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),s=t[t.length-1];return!!e&&e.hasChild(s)};var S;var O=function(t){var e=this;void 0===t&&(t={}),!S&&"undefined"!=typeof window&&window.Vue&&I(window.Vue);var s=t.plugins;void 0===s&&(s=[]);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 A(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new S,this._makeLocalGettersCache=Object.create(null);var a=this,o=this.dispatch,n=this.commit;this.dispatch=function(t,e){return o.call(a,t,e)},this.commit=function(t,e,s){return n.call(a,t,e,s)},this.strict=i;var r=this._modules.root.state;U(this,r,[],this._modules.root),N(this,r),s.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:S.config.devtools)&&function(t){b&&(t._devtoolHook=b,b.emit("vuex:init",t),b.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){b.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){b.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},T={state:{configurable:!0}};function E(t,e,s){return e.indexOf(t)<0&&(s&&s.prepend?e.unshift(t):e.push(t)),function(){var s=e.indexOf(t);s>-1&&e.splice(s,1)}}function P(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var s=t.state;U(t,s,[],t._modules.root,!0),N(t,s,e)}function N(t,e,s){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var a=t._wrappedGetters,o={};w(a,(function(e,s){o[s]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,s,{get:function(){return t._vm[s]},enumerable:!0})}));var n=S.config.silent;S.config.silent=!0,t._vm=new S({data:{$$state:e},computed:o}),S.config.silent=n,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(s&&t._withCommit((function(){i._data.$$state=null})),S.nextTick((function(){return i.$destroy()})))}function U(t,e,s,i,a){var o=!s.length,n=t._modules.getNamespace(s);if(i.namespaced&&(t._modulesNamespaceMap[n],t._modulesNamespaceMap[n]=i),!o&&!a){var r=D(e,s.slice(0,-1)),c=s[s.length-1];t._withCommit((function(){S.set(r,c,i.state)}))}var l=i.context=function(t,e,s){var i=""===e,a={dispatch:i?t.dispatch:function(s,i,a){var o=L(s,i,a),n=o.payload,r=o.options,c=o.type;return r&&r.root||(c=e+c),t.dispatch(c,n)},commit:i?t.commit:function(s,i,a){var o=L(s,i,a),n=o.payload,r=o.options,c=o.type;r&&r.root||(c=e+c),t.commit(c,n,r)}};return Object.defineProperties(a,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var s={},i=e.length;Object.keys(t.getters).forEach((function(a){if(a.slice(0,i)===e){var o=a.slice(i);Object.defineProperty(s,o,{get:function(){return t.getters[a]},enumerable:!0})}})),t._makeLocalGettersCache[e]=s}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return D(t.state,s)}}}),a}(t,n,s);i.forEachMutation((function(e,s){!function(t,e,s,i){var a=t._mutations[e]||(t._mutations[e]=[]);a.push((function(e){s.call(t,i.state,e)}))}(t,n+s,e,l)})),i.forEachAction((function(e,s){var i=e.root?s:n+s,a=e.handler||e;!function(t,e,s,i){var a=t._actions[e]||(t._actions[e]=[]);a.push((function(e){var a,o=s.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(a=o)&&"function"==typeof a.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,i,a,l)})),i.forEachGetter((function(e,s){!function(t,e,s,i){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return s(i.state,i.getters,t.state,t.getters)}}(t,n+s,e,l)})),i.forEachChild((function(i,o){U(t,e,s.concat(o),i,a)}))}function D(t,e){return e.reduce((function(t,e){return t[e]}),t)}function L(t,e,s){return C(t)&&t.type&&(s=e,e=t,t=t.type),{type:t,payload:e,options:s}}function I(t){S&&t===S||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:s});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[s].concat(t.init):s,e.call(this,t)}}function s(){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)}}(S=t)}T.state.get=function(){return this._vm._data.$$state},T.state.set=function(t){0},O.prototype.commit=function(t,e,s){var i=this,a=L(t,e,s),o=a.type,n=a.payload,r=(a.options,{type:o,payload:n}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(n)}))})),this._subscribers.slice().forEach((function(t){return t(r,i.state)})))},O.prototype.dispatch=function(t,e){var s=this,i=L(t,e),a=i.type,o=i.payload,n={type:a,payload:o},r=this._actions[a];if(r){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(n,s.state)}))}catch(t){0}var c=r.length>1?Promise.all(r.map((function(t){return t(o)}))):r[0](o);return new Promise((function(t,e){c.then((function(e){try{s._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(n,s.state)}))}catch(t){0}t(e)}),(function(t){try{s._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(n,s.state,t)}))}catch(t){0}e(t)}))}))}},O.prototype.subscribe=function(t,e){return E(t,this._subscribers,e)},O.prototype.subscribeAction=function(t,e){return E("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},O.prototype.watch=function(t,e,s){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,s)},O.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},O.prototype.registerModule=function(t,e,s){void 0===s&&(s={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),U(this,this.state,t,this._modules.get(t),s.preserveState),N(this,this.state)},O.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var s=D(e.state,t.slice(0,-1));S.delete(s,t[t.length-1])})),P(this)},O.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},O.prototype.hotUpdate=function(t){this._modules.update(t),P(this,!0)},O.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(O.prototype,T);var R=G((function(t,e){var s={};return H(e).forEach((function(e){var i=e.key,a=e.val;s[i]=function(){var e=this.$store.state,s=this.$store.getters;if(t){var i=W(this.$store,"mapState",t);if(!i)return;e=i.context.state,s=i.context.getters}return"function"==typeof a?a.call(this,e,s):e[a]},s[i].vuex=!0})),s})),M=G((function(t,e){var s={};return H(e).forEach((function(e){var i=e.key,a=e.val;s[i]=function(){for(var e=[],s=arguments.length;s--;)e[s]=arguments[s];var i=this.$store.commit;if(t){var o=W(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"==typeof a?a.apply(this,[i].concat(e)):i.apply(this.$store,[a].concat(e))}})),s})),F=G((function(t,e){var s={};return H(e).forEach((function(e){var i=e.key,a=e.val;a=t+a,s[i]=function(){if(!t||W(this.$store,"mapGetters",t))return this.$store.getters[a]},s[i].vuex=!0})),s})),B=G((function(t,e){var s={};return H(e).forEach((function(e){var i=e.key,a=e.val;s[i]=function(){for(var e=[],s=arguments.length;s--;)e[s]=arguments[s];var i=this.$store.dispatch;if(t){var o=W(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"==typeof a?a.apply(this,[i].concat(e)):i.apply(this.$store,[a].concat(e))}})),s}));function H(t){return function(t){return Array.isArray(t)||C(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 G(t){return function(e,s){return"string"!=typeof e?(s=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,s)}}function W(t,e,s){return t._modulesNamespaceMap[s]}function q(t,e,s){var i=s?t.groupCollapsed:t.group;try{i.call(t,e)}catch(s){t.log(e)}}function V(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function z(){var t=new Date;return" @ "+Q(t.getHours(),2)+":"+Q(t.getMinutes(),2)+":"+Q(t.getSeconds(),2)+"."+Q(t.getMilliseconds(),3)}function Q(t,e){return s="0",i=e-t.toString().length,new Array(i+1).join(s)+t;var s,i}var J={Store:O,install:I,version:"3.6.2",mapState:R,mapMutations:M,mapGetters:F,mapActions:B,createNamespacedHelpers:function(t){return{mapState:R.bind(null,t),mapGetters:F.bind(null,t),mapMutations:M.bind(null,t),mapActions:B.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var s=t.filter;void 0===s&&(s=function(t,e,s){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var a=t.mutationTransformer;void 0===a&&(a=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var n=t.actionTransformer;void 0===n&&(n=function(t){return t});var r=t.logMutations;void 0===r&&(r=!0);var c=t.logActions;void 0===c&&(c=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var u=y(t.state);void 0!==l&&(r&&t.subscribe((function(t,o){var n=y(o);if(s(t,u,n)){var r=z(),c=a(t),d="mutation "+t.type+r;q(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",i(u)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",i(n)),V(l)}u=n})),c&&t.subscribeAction((function(t,s){if(o(t,s)){var i=z(),a=n(t),r="action "+t.type+i;q(l,r,e),l.log("%c action","color: #03A9F4; font-weight: bold",a),V(l)}})))}}};const X=J;function K(t){return K="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},K(t)}function Z(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function Y(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(s),!0).forEach((function(e){tt(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Z(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function tt(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=K(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=K(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==K(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const et=u({name:"two-fa",components:{SubmitButton2:d},mixins:[c],data:function(){return{whitelabel:defender.whitelabel,app:"google-authenticator",tracking_modal:defender.tracking_modal}},methods:Y({handleResult:function(t){this.$store.dispatch("toggle"),this.trackFeature({event:t?"def_feature_deactivated":"def_feature_activated",data:{Feature:"Two-Factor Authentication","Triggered From":"Feature page"}}),t||this.trackFeature({event:"def_2fa_activated",data:{"Woocommerce 2FA":this.detect_woo?"Enabled":"Disabled","Force authentication":this.force_auth?"Enabled":"Disabled"}})},bindUploader:function(){var t,e=this;jQuery(".file-picker").on("click",(function(){t||(t=wp.media.frames.file_frame=wp.media({title:e.__("Choose an image file"),button:{text:e.__("Choose File")},multiple:!1,library:{type:["image"]}})).on("select",(function(){var s=t.state().get("selection").first().toJSON();jQuery.inArray(s.mime,["image/jpeg","image/png","image/gif"])>-1?e.custom_graphic_url=s.url:Defender.showNotification("error",e.__("Invalid image file type"))})),t.open()}))}},B("AnalyticsTracking",["trackFeature"])),computed:Y(Y({},g(["model.enabled","model.lost_phone","model.app_title","model.custom_graphic","model.custom_graphic_type","model.custom_graphic_url","model.custom_graphic_link","model.email_body","model.email_sender","model.email_subject","model.force_auth","model.force_auth_mess","model.force_auth_roles","model.user_roles","model.detect_woo","is_active","all_roles","count","custom_graphic_state","notices","count_checked_roles","is_woo_active","is_multisite","module_name"])),{},{get_ios_url:function(){switch(this.app){case"google-authenticator":return"https://apps.apple.com/app/google-authenticator/id388497605";case"microsoft-authenticator":return"https://apps.apple.com/app/microsoft-authenticator/id983156458";case"authy":return"https://apps.apple.com/app/authy/id494168017"}},get_android_url:function(){switch(this.app){case"google-authenticator":return"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2";case"microsoft-authenticator":return"https://play.google.com/store/apps/details?id=com.azure.authenticator";case"authy":return"https://play.google.com/store/apps/details?id=com.authy.authy"}},download_app_text:function(){switch(this.app){case"google-authenticator":return this.__("Download Google Authenticator");case"microsoft-authenticator":return this.__("Download Microsoft Authenticator");case"authy":return this.__("Download Authy")}}}),mounted:function(){var t=this;this.bindUploader(),this.$store.dispatch("isAuthActiveNotice"),jQuery("#two-fa-auth-select").on("change",(function(e){t.app=e.target.value}))},beforeMount:function(){this.$store.commit("init",two_fa)}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-wrap",class:[t.maybeHighContrast()],attrs:{id:"two-fa"}},["show"===t.tracking_modal?e("tracking-modal"):t._e(),t._v(" "),!1===t.enabled?e("div",[e("opcache-notice"),t._v(" "),e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.module_name)+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-message"},[t.maybeHideBranding()?t._e():e("img",{staticClass:"sui-image",attrs:{src:t.assetUrl("assets/img/disabled-module.png"),"aria-hidden":"true"}}),t._v(" "),t.maybeHideBranding()&&t.whitelabelHeroImage()?e("img",{staticClass:"sui-image wd-whitelabel-custom-branding-logo",attrs:{src:t.whitelabelHeroImage(),"aria-hidden":"true"}}):t._e(),t._v(" "),e("div",{staticClass:"sui-message-content"},[e("p",[t._v("\n "+t._s(t.__("Beef up your website’s security with two-factor authentication. Add an extra step in the login process so that users are required to enter a password and an app-generated passcode using their phone – the best protection against brute force attacks."))+"\n ")]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.handleResult(t.enabled)}}},[e("submit-button2",{attrs:{action:"toggle","css-class":"sui-button-blue activate"}},[t._v("\n "+t._s(t.__("Activate"))+"\n ")])],1)])])])],1):e("div",[e("div",{staticClass:"sui-header"},[e("h1",{staticClass:"sui-header-title"},[t._v("\n "+t._s(t.module_name)+"\n ")]),t._v(" "),e("doc-link",{attrs:{link:"?utm_source=defender&utm_medium=plugin&utm_campaign=defender_2fa_docs#two-factor-authentication"}})],1),t._v(" "),e("opcache-notice"),t._v(" "),e("summary-box",[e("div",{staticClass:"sui-summary-segment"},[e("div",{staticClass:"sui-summary-details"},[e("span",{staticClass:"sui-summary-large",domProps:{textContent:t._s(t.count)}}),t._v(" "),e("span",{staticClass:"sui-summary-sub"},[t._v("\n "+t._s(t.multipleTranslation("User enabled authentication","Users enabled authentication",t.count))+"\n ")])])]),t._v(" "),e("div",{staticClass:"sui-summary-segment"},[e("ul",{staticClass:"sui-list"},[e("li",[e("span",{staticClass:"sui-list-label"},[t._v(t._s(t.__("User roles")))]),t._v(" "),e("span",{staticClass:"sui-list-detail"},[t._v(t._s(t.count_checked_roles))])]),t._v(" "),e("li",{attrs:{id:"customgraphic-tag"}},[e("span",{staticClass:"sui-list-label"},[t._v(t._s(t.__("Custom Graphic")))]),t._v(" "),e("span",{staticClass:"sui-list-detail"},[!1===t.custom_graphic_state?e("span",{staticClass:"sui-tag sui-tag-brown"},[t._v(t._s(t.__("Inactive")))]):e("span",{staticClass:"sui-tag sui-tag-blue"},[t._v(t._s(t.__("Active")))])])])])])]),t._v(" "),e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.module_name)+"\n ")])]),t._v(" "),e("form",{attrs:{method:"post",id:"advanced-settings-frm"},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 your two-factor authentication settings. Our recommendations are enabled by default."))+"\n ")]),t._v(" "),t.notices.length?e("div",{staticClass:"sui-notice sui-notice-error"},[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._l(t.notices,(function(s){return e("span",[t._v("\n "+t._s(s)+"\n ")])})),0)])])]):t._e(),t._v(" "),t.$store.getters.isActive?e("div",{staticClass:"sui-notice sui-notice-success"},[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(t._s(t.__("Two-factor authentication is now active."))+" "+t._s(t.__("User roles with this feature enabled must visit their "))+"\n "),e("a",{attrs:{href:t.adminUrl("profile.php#defender-security")}},[t._v(t._s(t.__("Profile page")))]),t._v(" "+t._s(t.__("to finish setting up authentication.")))])])])]):e("div",{staticClass:"sui-notice sui-notice-warning"},[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(t._s(t.__("Two-factor authentication is currently inactive. Configure and save your settings to finish setup.")))])])])]),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.__("User Roles")))]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Choose the user roles you want to enable two-factor authentication for."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-field-list"},[e("div",{staticClass:"sui-field-list-header"},[e("h3",{staticClass:"sui-field-list-title"},[t._v("\n "+t._s(t.__("User role"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-field-list-body"},t._l(t.all_roles,(function(s,i){return e("div",{staticClass:"sui-field-list-item"},[e("label",{staticClass:"sui-field-list-item-label",attrs:{for:"toggle_"+i},domProps:{innerHTML:t._s(s)}}),t._v(" "),e("label",{staticClass:"sui-toggle"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.user_roles,expression:"user_roles"}],attrs:{type:"checkbox",id:"toggle_"+i},domProps:{value:i,checked:Array.isArray(t.user_roles)?t._i(t.user_roles,i)>-1:t.user_roles},on:{change:function(e){var s=t.user_roles,a=e.target,o=!!a.checked;if(Array.isArray(s)){var n=i,r=t._i(s,n);a.checked?r<0&&(t.user_roles=s.concat([n])):r>-1&&(t.user_roles=s.slice(0,r).concat(s.slice(r+1)))}else t.user_roles=o}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"})])])})),0)])])]),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.__("Force Authentication"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("By default, two-factor authentication is optional for users. This setting forces users to activate two-factor."))+"\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.force_auth,expression:"force_auth"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"force_auth",id:"force_auth"},domProps:{checked:Array.isArray(t.force_auth)?t._i(t.force_auth,null)>-1:t.force_auth},on:{change:function(e){var s=t.force_auth,i=e.target,a=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&(t.force_auth=s.concat([null])):o>-1&&(t.force_auth=s.slice(0,o).concat(s.slice(o+1)))}else t.force_auth=a}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"force_auth_label"}},[t._v("\n "+t._s(t.__("Force users to log in with two-factor authentication"))+"\n ")])]),t._v(" "),e("span",{staticClass:"sui-description sui-toggle-content"},[t._v("\n "+t._s(t.__("Note: Users will be forced to set up two-factor when they next login."))+"\n ")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.force_auth,expression:"force_auth===true"}],staticClass:"sui-border-frame sui-toggle-content",attrs:{id:"force_auth_roles"}},[e("strong",[t._v(t._s(t.__("User Roles")))]),t._v(" "),e("ul",t._l(t.all_roles,(function(s,i){return e("li",{directives:[{name:"show",rawName:"v-show",value:t.user_roles.includes(i),expression:"user_roles.includes(role)"}],key:i},[e("label",{staticClass:"sui-checkbox",attrs:{for:"toggle_force_"+i}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.force_auth_roles,expression:"force_auth_roles"}],attrs:{type:"checkbox",id:"toggle_force_"+i},domProps:{value:i,checked:Array.isArray(t.force_auth_roles)?t._i(t.force_auth_roles,i)>-1:t.force_auth_roles},on:{change:function(e){var s=t.force_auth_roles,a=e.target,o=!!a.checked;if(Array.isArray(s)){var n=i,r=t._i(s,n);a.checked?r<0&&(t.force_auth_roles=s.concat([n])):r>-1&&(t.force_auth_roles=s.slice(0,r).concat(s.slice(r+1)))}else t.force_auth_roles=o}}}),t._v(" "),e("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v(t._s(s))])])])})),0),t._v(" "),e("strong",[t._v(t._s(t.__("Custom warning message")))]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.force_auth_mess,expression:"force_auth_mess"}],staticClass:"sui-form-control",attrs:{name:"force_auth_mess"},domProps:{value:t.force_auth_mess},on:{input:function(e){e.target.composing||(t.force_auth_mess=e.target.value)}}}),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Note: This is shown in the users Profile area indicating they must use two-factor authentication."))+"\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("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("App Title"))+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("Customise the title that appears in the Authenticator app for this website."))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Custom Title"))+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.app_title,expression:"app_title"}],staticClass:"sui-form-control sui-input-md",domProps:{value:t.app_title},on:{input:function(e){e.target.composing||(t.app_title=e.target.value)}}})])]),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\t\t\t\t\t\t\t\t"+t._s(t.__("Custom Graphic"))+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("By default, Defender’s icon appears above the login fields. You can upload your own branding, or turn this feature off."))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("label",{staticClass:"sui-toggle"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic,expression:"custom_graphic"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"custom_graphic",id:"custom_graphic"},domProps:{checked:Array.isArray(t.custom_graphic)?t._i(t.custom_graphic,null)>-1:t.custom_graphic},on:{change:function(e){var s=t.custom_graphic,i=e.target,a=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&(t.custom_graphic=s.concat([null])):o>-1&&(t.custom_graphic=s.slice(0,o).concat(s.slice(o+1)))}else t.custom_graphic=a}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"custom_graphic_label"}},[t._v("\n "+t._s(t.__("Enable custom graphics above login fields"))+"\n ")])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.custom_graphic,expression:"custom_graphic === true"}],staticClass:"sui-tabs sui-side-tabs",attrs:{id:"wpdef-custom-graphics-tabs"}},[e("div",{staticClass:"sui-tabs-menu",attrs:{role:"tablist"}},[e("label",{staticClass:"sui-tab-item",class:{active:"upload"===t.custom_graphic_type},attrs:{for:"custom-graphic-upload"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic_type,expression:"custom_graphic_type"}],attrs:{type:"radio",name:"custom_graphic_type",value:"upload",id:"custom-graphic-upload","data-tab-menu":"wpdef-custom-graphic-upload"},domProps:{checked:t._q(t.custom_graphic_type,"upload")},on:{change:function(e){t.custom_graphic_type="upload"}}}),t._v("\n "+t._s(t.__("Upload Graphic"))+"\n ")]),t._v(" "),e("label",{staticClass:"sui-tab-item",class:{active:"link"===t.custom_graphic_type},attrs:{for:"custom-graphic-link"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic_type,expression:"custom_graphic_type"}],attrs:{type:"radio",name:"custom_graphic_type",value:"link",id:"custom-graphic-link","data-tab-menu":"wpdef-custom-graphic-link"},domProps:{checked:t._q(t.custom_graphic_type,"link")},on:{change:function(e){t.custom_graphic_type="link"}}}),t._v("\n "+t._s(t.__("Link Graphic"))+"\n ")]),t._v(" "),e("label",{staticClass:"sui-tab-item",class:{active:"no"===t.custom_graphic_type},attrs:{for:"custom-graphic-no"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic_type,expression:"custom_graphic_type"}],attrs:{type:"radio",name:"custom_graphic_type",value:"no",id:"custom-graphic-no","data-tab-menu":"wpdef-custom-graphic-no"},domProps:{checked:t._q(t.custom_graphic_type,"no")},on:{change:function(e){t.custom_graphic_type="no"}}}),t._v("\n "+t._s(t.__("No Graphic"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-tabs-content"},[e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"upload"===t.custom_graphic_type},attrs:{id:"wpdef-custom-graphic-upload","data-tab-content":"wpdef-custom-graphic-upload"}},[e("div",{staticClass:"sui-border-frame"},[e("span",{staticClass:"sui-description"},[e("strong",[t._v(t._s(t.__("Custom Graphic")))])]),t._v(" "),e("div",{staticClass:"sui-upload"},[e("div",{staticClass:"sui-upload-image"},[e("img",{attrs:{id:"custom_graphicIMG",width:"40",height:"40",src:t.custom_graphic_url}}),t._v(" "),e("div",{staticClass:"sui-image-preview",style:{backgroundImage:"url("+t.custom_graphic_url+")"},attrs:{role:"button"}})]),t._v(" "),e("button",{staticClass:"sui-upload-button file-picker",attrs:{type:"button"}},[e("i",{staticClass:"sui-icon-upload-cloud",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Upload file"))+"\n ")]),t._v(" "),t._m(0)]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("For best results use a 168x168px JPG or PNG."))+"\n ")])])]),t._v(" "),e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"link"===t.custom_graphic_type},attrs:{id:"wpdef-custom-graphic-link","data-tab-content":"wpdef-custom-graphic-link"}},[e("div",{staticClass:"sui-border-frame"},[e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Insert custom graphic from URL"))+"\n ")]),t._v(" "),e("div",{attrs:{id:"wpdef-custom-graphic-link-cont"}},[e("div",{staticClass:"sui-upload"},[e("div",{staticClass:"sui-upload-image",attrs:{"aria-hidden":"true"}},[e("div",{staticClass:"sui-image-mask"}),t._v(" "),t.$store.getters.isValidImageLink?e("div",{staticClass:"sui-image-link-preview has-logo-image",style:t.$store.getters.isValidImageLink?{backgroundImage:"url("+t.custom_graphic_link+")"}:{},attrs:{id:"custom_graphic_link_preview"}}):t._e()]),t._v(" "),e("div",{staticClass:"sui-with-button sui-with-button-icon",attrs:{id:"custom_graphic_link_wrap"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic_link,expression:"custom_graphic_link"}],staticClass:"sui-form-control wp-link-media",attrs:{id:"custom_graphic_link"},domProps:{value:t.custom_graphic_link},on:{input:function(e){e.target.composing||(t.custom_graphic_link=e.target.value)}}}),t._v(" "),t.custom_graphic_link?e("button",{staticClass:"sui-button-icon",attrs:{type:"button",id:"custom_graphic_link_clear"},on:{click:function(e){return t.$store.dispatch("clearCustomGraphicLink")}}},[e("span",{staticClass:"sui-icon-close",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text"},[t._v("\n "+t._s(t.__("Remove file"))+"\n ")])]):t._e()])]),t._v(" "),t.custom_graphic_link&&!t.$store.getters.isValidImageLink?e("span",{staticClass:"sui-error-message",attrs:{id:"custom_graphic_link_error",role:"alert"}},[t._v("\n "+t._s(t.__("Invalid image URL. Please use a valid one."))+"\n ")]):t._e()]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("For best results, use a 168x168px JPG or PNG."))+"\n ")])])]),t._v(" "),e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"no"===t.custom_graphic_type},attrs:{id:"wpdef-custom-graphic-no","data-tab-content":"wpdef-custom-graphic-no"}},[e("div",{staticClass:"sui-notice"},[e("div",{staticClass:"sui-notice-content"},[e("div",{staticClass:"sui-notice-message"},[e("span",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("p",[t._v(t._s(t.__("No icon will be displayed on two-factor form.")))])])])])])])])])]),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.__("Emails"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Customize the default copy for emails the two-factor feature sends to users."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-field-list"},[e("div",{staticClass:"sui-field-list-header"},[e("h3",{staticClass:"sui-field-list-title"},[t._v("\n "+t._s(t.__("Email"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-field-list-body"},[e("div",{staticClass:"sui-field-list-item"},[e("label",{staticClass:"sui-field-list-item-label"},[t._v("\n "+t._s(t.__("Fallback email one time password"))+"\n ")]),t._v(" "),t._m(1)])])])])]),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.__("App Download"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Need the app? Here’s links to the official iOS and Android authenticator applications."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"w-48"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.app,expression:"app"}],staticClass:"sui-select",attrs:{id:"two-fa-auth-select","data-width":"220px","data-minimum-results-for-search":"Infinity"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.app=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"google-authenticator"}},[t._v(t._s(t.__("Google Authenticator")))]),t._v(" "),e("option",{attrs:{value:"microsoft-authenticator"}},[t._v(t._s(t.__("Microsoft Authenticator")))]),t._v(" "),e("option",{attrs:{value:"authy"}},[t._v(t._s(t.__("Authy")))])])]),t._v(" "),e("div",{staticClass:"sui-border-frame"},[e("span",{staticClass:"sui-description margin-bottom-10 no-margin-top",domProps:{textContent:t._s(t.download_app_text)}}),t._v(" "),e("a",{attrs:{href:t.get_ios_url,target:"_blank"}},[e("img",{attrs:{src:t.assetUrl("assets/img/ios-download.svg")}})]),t._v(" "),e("a",{attrs:{href:t.get_android_url,target:"_blank"}},[e("img",{attrs:{src:t.assetUrl("assets/img/android-download.svg")}})])])])]),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.__("WooCommerce")))]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__('Enable this option to allow users to configure two-factor authentication from WooCommerce "My Account" page.'))+"\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.detect_woo,expression:"detect_woo"}],attrs:{type:"checkbox",id:"detect_woo",disabled:!t.is_woo_active,name:"detect_woo"},domProps:{checked:Array.isArray(t.detect_woo)?t._i(t.detect_woo,null)>-1:t.detect_woo},on:{change:function(e){var s=t.detect_woo,i=e.target,a=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&(t.detect_woo=s.concat([null])):o>-1&&(t.detect_woo=s.slice(0,o).concat(s.slice(o+1)))}else t.detect_woo=a}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{for:"detect_woo"}},[t._v("\n "+t._s(t.__("Enable two-factor authentication for WooCommerce"))+"\n ")]),t._v(" "),t.is_woo_active?t._e():e("div",{staticClass:"sui-notice margin-top-10 sui-description"},[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(t._s(t.__("WooCommerce must be active to use this feature.")))])])])])])])])]),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.__("Active Users"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Here’s a quick link to see which of your users have enabled two-factor authentication."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("a",{attrs:{target:"_blank",href:t.adminUrl("users.php?wpdef_two_fa=enabled")}},[t._v(t._s(t.__("View users")))]),t._v("\n "+t._s(t.__("who have enabled this feature."))+"\n "),t.is_multisite?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(t._s(t.__("For multisite installations, you will see a list of all users who have enabled two-factor authentication on all subsites on the network Users screen.")))])])])]):t._e()])]),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.__("Deactivate"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Disable two-factor authentication on your website."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("submit-button2",{attrs:{action:"toggle","css-class":"sui-button-ghost"},on:{click:function(e){return t.handleResult(t.enabled)}}},[e("i",{staticClass:"sui-icon-power-on-off",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Deactivate"))+"\n ")])],1)])]),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{action:"settings","css-class":"sui-button-blue save-changes",disabled:t.custom_graphic_link&&!t.$store.getters.isValidImageLink}},[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-lg"},[e("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"modal-lost-phone-email-config","aria-modal":"true","aria-labelledby":"modal-lost-phone-email-config-title","aria-describedby":"modal-lost-phone-email-config-desc"}},[e("div",{staticClass:"sui-box",attrs:{role:"document"}},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title",attrs:{id:"modal-lost-phone-email-config-title"}},[t._v("\n "+t._s(t.__("Edit Email"))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-actions-right"},[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.__("Close this dialog.")))])])])]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("handleEmailTemplate","save")}}},[e("div",{staticClass:"sui-box-body"},[e("p",{attrs:{id:"modal-lost-phone-email-config-desc"}},[t._v("\n "+t._s(t.__("This email sends a temporary passcode when the user can’t access their phone."))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-row"},[e("div",{staticClass:"sui-col"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Subject"))+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.email_subject,expression:"email_subject"}],staticClass:"sui-form-control",attrs:{name:"subject",type:"text",id:"email_subject"},domProps:{value:t.email_subject},on:{input:function(e){e.target.composing||(t.email_subject=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"sui-col"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Sender"))+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.email_sender,expression:"email_sender"}],staticClass:"sui-form-control",attrs:{name:"sender",type:"text",id:"email_sender"},domProps:{value:t.email_sender},on:{input:function(e){e.target.composing||(t.email_sender=e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"sui-row"},[e("div",{staticClass:"sui-col"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Body"))+"\n ")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.email_body,expression:"email_body"}],staticClass:"sui-form-control",attrs:{name:"body",rows:"8",id:"email_body"},domProps:{value:t.email_body},on:{input:function(e){e.target.composing||(t.email_body=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"sui-row"},[e("div",{staticClass:"sui-col"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Available variables"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-tag"},[e("strong",{domProps:{textContent:t._s(t.__("{{passcode}}"))}})]),t._v(" "),e("span",{staticClass:"sui-tag"},[e("strong",{domProps:{textContent:t._s(t.__("{{display_name}}"))}})])])])]),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-flex-child-right"},[e("button",{staticClass:"sui-button sui-button-ghost",attrs:{type:"button","data-modal-close":""}},[t._v("\n "+t._s(t.__("Cancel"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{action:"save-template","css-class":"sui-button"}},[t._v("\n "+t._s(t.__("Save Template"))+"\n ")]),t._v(" "),e("submit-button2",{attrs:{action:"send-test",type:"button","css-class":"sui-button sui-button-blue"},on:{click:function(e){return t.$store.dispatch("handleEmailTemplate","send")}}},[t._v("\n "+t._s(t.__("Send Test"))+"\n ")])],1)])])])])])],1),t._v(" "),e("app-footer")],1)}),[function(){var t=this._self._c;return t("div",{staticClass:"sui-upload-file"},[t("span")])},function(){var t=this._self._c;return t("button",{staticClass:"sui-button-icon",attrs:{type:"button","data-modal-open":"modal-lost-phone-email-config","data-modal-mask":"false","data-esc-close":"true"}},[t("i",{staticClass:"sui-icon-pencil",attrs:{"aria-hidden":"true"}})])}],!1,null,null,null).exports;function st(t){return st="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},st(t)}function it(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function at(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?it(Object(s),!0).forEach((function(e){ot(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):it(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function ot(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=st(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=st(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==st(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const nt=u({name:"two-fa",components:{SubmitButton2:d},mixins:[c],data:function(){return{whitelabel:defender.whitelabel,app:"google-authenticator",upgradeTitle:defender.upgrade_title,tracking_modal:defender.tracking_modal}},methods:at({handleResult:function(t){this.$store.dispatch("toggle"),this.trackFeature({event:t?"def_feature_deactivated":"def_feature_activated",data:{Feature:"Two-Factor Authentication","Triggered From":"Feature page"}}),t||this.trackFeature({event:"def_2fa_activated",data:{"Woocommerce 2FA":this.detect_woo?"Enabled":"Disabled","Force authentication":this.force_auth?"Enabled":"Disabled"}})},bindUploader:function(){var t,e=this;jQuery(".file-picker").on("click",(function(){t||(t=wp.media.frames.file_frame=wp.media({title:e.__("Choose an image file"),button:{text:e.__("Choose File")},multiple:!1,library:{type:["image"]}})).on("select",(function(){var s=t.state().get("selection").first().toJSON();jQuery.inArray(s.mime,["image/jpeg","image/png","image/gif"])>-1?e.custom_graphic_url=s.url:Defender.showNotification("error",e.__("Invalid image file type"))})),t.open()}))}},B("AnalyticsTracking",["trackFeature"])),computed:at(at({},g(["model.enabled","model.lost_phone","model.app_title","model.custom_graphic","model.custom_graphic_type","model.custom_graphic_url","model.custom_graphic_link","model.email_body","model.email_sender","model.email_subject","model.force_auth","model.force_auth_mess","model.force_auth_roles","model.user_roles","model.detect_woo","is_active","all_roles","count","custom_graphic_state","notices","count_checked_roles","is_woo_active","is_multisite","module_name"])),{},{get_ios_url:function(){switch(this.app){case"google-authenticator":return"https://apps.apple.com/app/google-authenticator/id388497605";case"microsoft-authenticator":return"https://apps.apple.com/app/microsoft-authenticator/id983156458";case"authy":return"https://apps.apple.com/app/authy/id494168017"}},get_android_url:function(){switch(this.app){case"google-authenticator":return"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2";case"microsoft-authenticator":return"https://play.google.com/store/apps/details?id=com.azure.authenticator";case"authy":return"https://play.google.com/store/apps/details?id=com.authy.authy"}},download_app_text:function(){switch(this.app){case"google-authenticator":return this.__("Download Google Authenticator");case"microsoft-authenticator":return this.__("Download Microsoft Authenticator");case"authy":return this.__("Download Authy")}}}),mounted:function(){var t=this;this.bindUploader(),this.$store.dispatch("isAuthActiveNotice"),jQuery("#two-fa-auth-select").on("change",(function(e){t.app=e.target.value}))},beforeMount:function(){this.$store.commit("init",two_fa)}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-wrap",class:[t.maybeHighContrast()],attrs:{id:"two-fa"}},["show"===t.tracking_modal?e("tracking-modal"):t._e(),t._v(" "),!1===t.enabled?e("div",[e("opcache-notice"),t._v(" "),e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.module_name)+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-message"},[t.maybeHideBranding()?t._e():e("img",{staticClass:"sui-image",attrs:{src:t.assetUrl("assets/img/disabled-module.png"),"aria-hidden":"true"}}),t._v(" "),e("div",{staticClass:"sui-message-content"},[e("p",[t._v("\n "+t._s(t.__("Beef up your website’s security with two-factor authentication. Add an extra step in the login process so that users are required to enter a password and an app-generated passcode using their phone – the best protection against brute force attacks."))+"\n ")]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.handleResult(t.enabled)}}},[e("submit-button2",{attrs:{action:"toggle","css-class":"sui-button-blue activate"}},[t._v("\n "+t._s(t.__("Activate"))+"\n ")])],1)])])])],1):e("div",[e("div",{staticClass:"sui-header"},[e("h1",{staticClass:"sui-header-title"},[t._v("\n "+t._s(t.module_name)+"\n ")]),t._v(" "),e("doc-link",{attrs:{link:"?utm_source=defender&utm_medium=plugin&utm_campaign=defender_2fa_docs#two-factor-authentication"}})],1),t._v(" "),e("opcache-notice"),t._v(" "),e("summary-box",[e("div",{staticClass:"sui-summary-segment"},[e("div",{staticClass:"sui-summary-details"},[e("span",{staticClass:"sui-summary-large",domProps:{textContent:t._s(t.count)}}),t._v(" "),e("span",{staticClass:"sui-summary-sub"},[t._v("\n "+t._s(t.multipleTranslation("User enabled authentication","Users enabled authentication",t.count))+"\n\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"sui-summary-segment"},[e("ul",{staticClass:"sui-list"},[e("li",[e("span",{staticClass:"sui-list-label"},[t._v(t._s(t.__("User roles")))]),t._v(" "),e("span",{staticClass:"sui-list-detail"},[t._v(t._s(t.count_checked_roles))])]),t._v(" "),e("li",[e("span",{staticClass:"sui-list-label"},[t._v(t._s(t.__("Custom Graphic")))]),t._v(" "),e("span",{staticClass:"sui-list-detail"},[e("span",{staticClass:"sui-tag sui-tag-pro"},[t._v(t._s(t.__("Pro")))])])])])])]),t._v(" "),e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.module_name)+"\n ")])]),t._v(" "),e("form",{attrs:{method:"post",id:"advanced-settings-frm"},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 your two-factor authentication settings. Our recommendations are enabled by default."))+"\n ")]),t._v(" "),t.notices.length?e("div",{staticClass:"sui-notice sui-notice-error"},[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._l(t.notices,(function(s){return e("span",[t._v("\n "+t._s(s)+"\n ")])})),0)])])]):t._e(),t._v(" "),t.$store.getters.isActive?e("div",{staticClass:"sui-notice sui-notice-success"},[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(t._s(t.__("Two-factor authentication is now active."))+" "+t._s(t.__("User roles with this feature enabled must visit their "))+"\n "),e("a",{attrs:{href:t.adminUrl("profile.php#defender-security")}},[t._v(t._s(t.__("Profile page")))]),t._v(" "+t._s(t.__("to finish setting up authentication.")))])])])]):e("div",{staticClass:"sui-notice sui-notice-warning"},[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(t._s(t.__("Two-factor authentication is currently inactive. Configure and save your settings to finish setup.")))])])])]),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.__("User Roles")))]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Choose the user roles you want to enable two-factor authentication for."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-field-list"},[e("div",{staticClass:"sui-field-list-header"},[e("h3",{staticClass:"sui-field-list-title"},[t._v("\n "+t._s(t.__("User role"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-field-list-body"},t._l(t.all_roles,(function(s,i){return e("div",{staticClass:"sui-field-list-item"},[e("label",{staticClass:"sui-field-list-item-label",attrs:{for:"toggle_"+i},domProps:{innerHTML:t._s(s)}}),t._v(" "),e("label",{staticClass:"sui-toggle"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.user_roles,expression:"user_roles"}],attrs:{type:"checkbox",id:"toggle_"+i},domProps:{value:i,checked:Array.isArray(t.user_roles)?t._i(t.user_roles,i)>-1:t.user_roles},on:{change:function(e){var s=t.user_roles,a=e.target,o=!!a.checked;if(Array.isArray(s)){var n=i,r=t._i(s,n);a.checked?r<0&&(t.user_roles=s.concat([n])):r>-1&&(t.user_roles=s.slice(0,r).concat(s.slice(r+1)))}else t.user_roles=o}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"})])])})),0)])])]),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.__("Force Authentication"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("By default, two-factor authentication is optional for users. This setting forces users to activate two-factor."))+"\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.force_auth,expression:"force_auth"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"force_auth",id:"force_auth"},domProps:{checked:Array.isArray(t.force_auth)?t._i(t.force_auth,null)>-1:t.force_auth},on:{change:function(e){var s=t.force_auth,i=e.target,a=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&(t.force_auth=s.concat([null])):o>-1&&(t.force_auth=s.slice(0,o).concat(s.slice(o+1)))}else t.force_auth=a}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"force_auth_label"}},[t._v("\n "+t._s(t.__("Force users to log in with two-factor authentication"))+"\n ")])]),t._v(" "),e("span",{staticClass:"sui-description sui-toggle-content"},[t._v("\n "+t._s(t.__("Note: Users will be forced to set up two-factor when they next login."))+"\n ")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.force_auth,expression:"force_auth===true"}],staticClass:"sui-border-frame sui-toggle-content",attrs:{id:"force_auth_roles"}},[e("strong",[t._v(t._s(t.__("User Roles")))]),t._v(" "),e("ul",t._l(t.all_roles,(function(s,i){return e("li",{directives:[{name:"show",rawName:"v-show",value:t.user_roles.includes(i),expression:"user_roles.includes(role)"}],key:i},[e("label",{staticClass:"sui-checkbox",attrs:{for:"toggle_force_"+i}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.force_auth_roles,expression:"force_auth_roles"}],attrs:{type:"checkbox",id:"toggle_force_"+i},domProps:{value:i,checked:Array.isArray(t.force_auth_roles)?t._i(t.force_auth_roles,i)>-1:t.force_auth_roles},on:{change:function(e){var s=t.force_auth_roles,a=e.target,o=!!a.checked;if(Array.isArray(s)){var n=i,r=t._i(s,n);a.checked?r<0&&(t.force_auth_roles=s.concat([n])):r>-1&&(t.force_auth_roles=s.slice(0,r).concat(s.slice(r+1)))}else t.force_auth_roles=o}}}),t._v(" "),e("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v(t._s(s))])])])})),0),t._v(" "),e("strong",[t._v(t._s(t.__("Custom warning message")))]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.force_auth_mess,expression:"force_auth_mess"}],staticClass:"sui-form-control",attrs:{name:"force_auth_mess"},domProps:{value:t.force_auth_mess},on:{input:function(e){e.target.composing||(t.force_auth_mess=e.target.value)}}}),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Note: This is shown in the users Profile area indicating they must use two-factor authentication."))+"\n ")])])])])]),t._v(" "),e("div",{staticClass:"sui-box-settings-row mb-0 border-b-0"},[e("div",{staticClass:"sui-box-settings-col-1"},[e("span",{staticClass:"sui-settings-label"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("App Title"))+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("Customise the title that appears in the Authenticator app for this website."))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Custom Title"))+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.app_title,expression:"app_title"}],staticClass:"sui-form-control sui-input-md",domProps:{value:t.app_title},on:{input:function(e){e.target.composing||(t.app_title=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"sui-box-body sui-upsell-items sui-flushed border-t border-silver-light border-b"},[e("div",{staticClass:"sui-box-settings-row sui-disabled"},[e("div",{staticClass:"sui-box-settings-col-1"},[e("span",{staticClass:"sui-settings-label-with-tag"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("Custom Graphic"))+" "),e("span",{staticClass:"sui-tag sui-tag-pro"},[t._v(t._s(t.__("Pro")))])]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("By default, Defender’s icon appears above the login fields. You can upload your own branding, or turn this feature off."))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("label",{staticClass:"sui-toggle"},[e("input",{staticClass:"toggle-checkbox",attrs:{disabled:"",role:"presentation",type:"checkbox",name:"custom_graphic",id:"custom_graphic","aria-labelledby":"custom_graphic_label"}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"custom_graphic_label",for:"custom_graphic"}},[t._v("\n "+t._s(t.__("Enable custom graphics above login fields"))+"\n ")])])])])]),t._v(" "),e("div",{staticClass:"sui-box-body"},[e("div",{staticClass:"sui-box-settings-row sui-upsell-row"},[e("div",{staticClass:"sui-upsell-notice p-0 min-w-full"},[e("p",[t._v("\n "+t._s(t.__("Remove our branding and whitelabel two-factor authentication with Defender Pro. This feature is included in a WPMU DEV membership with 24/7 support and lots of handy site management tools."))),e("br"),t._v(" "),e("a",{staticClass:"premium-button sui-button sui-button-purple",attrs:{target:"_blank",href:t.campaign_url("defender_2fa_customgraphic_upsell")}},[t._v(t._s(t.upgradeTitle))])])])]),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.__("Emails"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Customize the default copy for emails the two-factor feature sends to users."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-field-list"},[e("div",{staticClass:"sui-field-list-header"},[e("h3",{staticClass:"sui-field-list-title"},[t._v("\n "+t._s(t.__("Email"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-field-list-body"},[e("div",{staticClass:"sui-field-list-item"},[e("label",{staticClass:"sui-field-list-item-label"},[t._v("\n "+t._s(t.__("Fallback email one time password"))+"\n ")]),t._v(" "),t._m(0)])])])])]),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.__("App Download"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Need the app? Here’s links to the official iOS and Android authenticator applications."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"w-48"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.app,expression:"app"}],staticClass:"sui-select",attrs:{id:"two-fa-auth-select","data-width":"220px","data-minimum-results-for-search":"Infinity"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.app=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"google-authenticator"}},[t._v(t._s(t.__("Google Authenticator")))]),t._v(" "),e("option",{attrs:{value:"microsoft-authenticator"}},[t._v(t._s(t.__("Microsoft Authenticator")))]),t._v(" "),e("option",{attrs:{value:"authy"}},[t._v(t._s(t.__("Authy")))])])]),t._v(" "),e("div",{staticClass:"sui-border-frame"},[e("span",{staticClass:"sui-description margin-bottom-10 no-margin-top",domProps:{textContent:t._s(t.download_app_text)}}),t._v(" "),e("a",{attrs:{target:"_blank",href:t.get_ios_url}},[e("img",{attrs:{src:t.assetUrl("assets/img/ios-download.svg")}})]),t._v(" "),e("a",{attrs:{target:"_blank",href:t.get_android_url}},[e("img",{attrs:{src:t.assetUrl("assets/img/android-download.svg")}})])])])]),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.__("WooCommerce")))]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__('Enable this option to allow users to configure two-factor authentication from WooCommerce "My Account" page.'))+"\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.detect_woo,expression:"detect_woo"}],attrs:{type:"checkbox",id:"detect_woo",disabled:!t.is_woo_active,name:"detect_woo"},domProps:{checked:Array.isArray(t.detect_woo)?t._i(t.detect_woo,null)>-1:t.detect_woo},on:{change:function(e){var s=t.detect_woo,i=e.target,a=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&(t.detect_woo=s.concat([null])):o>-1&&(t.detect_woo=s.slice(0,o).concat(s.slice(o+1)))}else t.detect_woo=a}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{for:"detect_woo"}},[t._v("\n "+t._s(t.__("Enable two-factor authentication for WooCommerce"))+"\n ")]),t._v(" "),t.is_woo_active?t._e():e("div",{staticClass:"sui-notice margin-top-10 sui-description"},[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(t._s(t.__("WooCommerce must be active to use this feature.")))])])])])])])])]),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.__("Active Users"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Here’s a quick link to see which of your users have enabled two-factor authentication."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("a",{attrs:{target:"_blank",href:t.adminUrl("users.php?wpdef_two_fa=enabled")}},[t._v(t._s(t.__("View users")))]),t._v("\n "+t._s(t.__("who have enabled this feature."))+"\n "),t.is_multisite?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(t._s(t.__("For multisite installations, you will see a list of all users who have enabled two-factor authentication on all subsites on the network Users screen.")))])])])]):t._e()])]),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.__("Deactivate"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Disable two-factor authentication on your website."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("submit-button2",{attrs:{action:"toggle","css-class":"sui-button-ghost"},on:{click:function(e){return t.handleResult(t.enabled)}}},[e("i",{staticClass:"sui-icon-power-on-off",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.__("Deactivate"))+"\n ")])],1)])])]),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{action:"settings","css-class":"sui-button-blue save-changes"}},[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-lg"},[e("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"modal-lost-phone-email-config","aria-modal":"true","aria-labelledby":"modal-lost-phone-email-config-title","aria-describedby":"modal-lost-phone-email-config-desc"}},[e("div",{staticClass:"sui-box",attrs:{role:"document"}},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title",attrs:{id:"modal-lost-phone-email-config-title"}},[t._v("\n "+t._s(t.__("Edit Email"))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-actions-right"},[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.__("Close this dialog.")))])])])]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("handleEmailTemplate","save")}}},[e("div",{staticClass:"sui-box-body"},[e("p",{attrs:{id:"modal-lost-phone-email-config-desc"}},[t._v("\n "+t._s(t.__("This email sends a temporary passcode when the user can’t access their phone."))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-row"},[e("div",{staticClass:"sui-col"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Subject"))+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.email_subject,expression:"email_subject"}],staticClass:"sui-form-control",attrs:{name:"subject",type:"text",id:"email_subject"},domProps:{value:t.email_subject},on:{input:function(e){e.target.composing||(t.email_subject=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"sui-col"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Sender"))+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.email_sender,expression:"email_sender"}],staticClass:"sui-form-control",attrs:{name:"sender",type:"text",id:"email_sender"},domProps:{value:t.email_sender},on:{input:function(e){e.target.composing||(t.email_sender=e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"sui-row"},[e("div",{staticClass:"sui-col"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Body"))+"\n ")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.email_body,expression:"email_body"}],staticClass:"sui-form-control",attrs:{name:"body",rows:"8",id:"email_body"},domProps:{value:t.email_body},on:{input:function(e){e.target.composing||(t.email_body=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"sui-row"},[e("div",{staticClass:"sui-col"},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("Available variables"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-tag"},[e("strong",{domProps:{textContent:t._s(t.__("{{passcode}}"))}})]),t._v(" "),e("span",{staticClass:"sui-tag"},[e("strong",{domProps:{textContent:t._s(t.__("{{display_name}}"))}})])])])]),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-flex-child-right"},[e("button",{staticClass:"sui-button sui-button-ghost",attrs:{type:"button","data-modal-close":""}},[t._v("\n "+t._s(t.__("Cancel"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{action:"save-template","css-class":"sui-button"}},[t._v("\n "+t._s(t.__("Save Template"))+"\n ")]),t._v(" "),e("submit-button2",{attrs:{action:"send-test",type:"button","css-class":"sui-button sui-button-blue"},on:{click:function(e){return t.$store.dispatch("handleEmailTemplate","send")}}},[t._v("\n "+t._s(t.__("Send Test"))+"\n ")])],1)])])])])])],1),t._v(" "),e("app-footer")],1)}),[function(){var t=this._self._c;return t("button",{staticClass:"sui-button-icon",attrs:{type:"button","data-modal-open":"modal-lost-phone-email-config","data-modal-mask":"false","data-esc-close":"true"}},[t("i",{staticClass:"sui-icon-pencil",attrs:{"aria-hidden":"true"}})])}],!1,null,null,null).exports;const rt=u({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;const ct=u({mixins:[c],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;const lt=u({mixins:[c],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 ut=u({mixins:[c],props:["css-class"],name:"summary-box",data:function(){return{whitelabel:defender.whitelabel}},computed:{summary_class:function(){return{"sui-unbranded":!0===this.whitelabel.hide_branding&&0===this.whitelabel.hero_image.length,"sui-rebranded":!0===this.whitelabel.hide_branding&&this.whitelabel.hero_image.length>0}},css_class:function(){return this.cssClass},rebrand_img:function(){if(this.whitelabel.hero_image.length>0)return{"background-image":"url('"+this.whitelabel.hero_image+"')"}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-box sui-summary",class:[t.summary_class,t.css_class]},[e("div",{staticClass:"sui-summary-image-space",style:t.rebrand_img,attrs:{"aria-hidden":"true"}}),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports;const dt=u({name:"OPcacheNotice",mixins:[c],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 pt=s(2505);function ft(t){return ft="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},ft(t)}function _t(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function mt(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?_t(Object(s),!0).forEach((function(e){ht(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):_t(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function ht(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=ft(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=ft(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ft(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var vt=s.n(pt)().create({baseURL:ajaxurl+"?action=wp_defender/v1/hub/",timeout:15e3});function gt(t,e,s){return bt("post",t,e,s,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).then((function(t){return t}))}function bt(t,e,s,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=JSON.stringify(i),n=new FormData;return n.append("data",o),vt.request(mt(mt({},a),{},{url:yt(e,s),method:t,data:n})).then((function(t){var e=t.data,s=e.success,i=void 0!==e.data.message?e.data.message:null,a=void 0!==e.data.redirect?e.data.redirect:null,o=void 0!==e.data.interval?e.data.interval:null,n=void 0!==e.data.type_notice&&e.data.type_notice;if((void 0===e.data.show_notice||e.data.show_notice)&&null!==i){var r=void 0!==e.data.auto_close&&!0===e.data.auto_close;Defender.showNotification(s?n||"success":"error",i,r)}return"session_out"===n&&null===a&&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!==a?location.href=a:location.reload()}),1e3*o):null!==a&&(location.href=a),e.data}))}function yt(t,e){return"&route="+t+"&_def_nonce="+e}var wt={model:{enabled:!1,lost_phone:!1,force_auth:!1,force_auth_mess:"",user_roles:[],force_auth_roles:[],custom_graphic:!1,custom_graphic_type:"upload",custom_graphic_url:"",custom_graphic_link:"",email_subject:"",email_sender:"",email_body:"",app_title:"",detect_woo:!1},all_roles:[],doing_ajax:[],custom_graphic_state:!1,notices:[],isAuthActiveNotice:!1,new_feature:"",count_checked_roles:0,is_woo_active:!1,is_multisite:!1,module_name:""},Ct={saveSettings:function(t){t.commit("doingAjax","settings"),gt(wt.routes.save_settings,wt.nonces.save_settings,t.state.model).then((function(e){t.commit("ajaxDone","settings"),t.commit("init",e),t.commit("isAuthActiveNotice")}))},toggle:function(t){t.commit("doingAjax","toggle");var e=Object.assign({},wt.model);e.enabled=!e.enabled,gt(wt.routes.save_settings,wt.nonces.save_settings,e).then((function(e){t.commit("ajaxDone","toggle"),setTimeout((function(){return location.reload()}),500)}))},handleEmailTemplate:function(t,e){"send"===e?(t.commit("doingAjax","send-test"),gt(wt.routes.send_test_email,wt.nonces.send_test_email,{email_subject:t.state.model.email_subject,email_sender:t.state.model.email_sender,email_body:t.state.model.email_body}).then((function(e){t.commit("ajaxDone","send-test")}))):t.dispatch("saveSettings").then((function(){SUI.closeModal()}))},isAuthActiveNotice:function(t){t.commit("isAuthActiveNotice")},clearCustomGraphicLink:function(t){t.commit("clearCustomGraphicLink")}},xt={getField:h,isActive:function(t){return!0===t.model.enabled&&!0===t.isAuthActiveNotice},isValidImageLink:function(t){return/(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/.test(t.model.custom_graphic_link)}},kt={init:function(t,e){t.model=e.model,t.is_active=e.is_active,t.all_roles=e.all_roles,t.nonces=e.nonces,t.routes=e.routes,t.count=e.count,t.custom_graphic_state=e.model.custom_graphic,t.notices=e.notices,t.new_feature=e.new_feature,t.count_checked_roles=e.count_checked_roles,t.is_woo_active=e.is_woo_active,t.is_multisite=e.is_multisite,t.module_name=e.module_name},updateField:v,doingAjax:function(t,e){t.doing_ajax.includes(e)||t.doing_ajax.push(e)},ajaxDone:function(t,e){t.doing_ajax=t.doing_ajax.filter((function(t){return t!==e}))},isAuthActiveNotice:function(t){t.isAuthActiveNotice=t.model.user_roles.length>0},clearCustomGraphicLink:function(t){t.model.custom_graphic_link=""}},At={AnalyticsTracking:{namespaced:!0,actions:{trackFeature:function(t,e){var s,i,a,o;if(void 0!==(null==t||null===(s=t.rootState)||void 0===s||null===(i=s.nonces)||void 0===i?void 0:i.track_feature_handler)&&void 0!==(null==t||null===(a=t.rootState)||void 0===a||null===(o=a.routes)||void 0===o?void 0:o.track_feature_handler))return gt(t.rootState.routes.track_feature_handler,t.rootState.nonces.track_feature_handler,e)}}}};const jt=new X.Store({state:wt,mutations:kt,getters:xt,actions:Ct,modules:At});const St=u({name:"tracking-modal",mixins:[c],components:{SubmitButton2:d},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(s,i){gt(e.routes.save_track_modal,e.nonces.save_track_modal,{}).then((function(i){e.doing_ajax=!1,SUI.closeModal(),t.suiRemoveModalClass(),s(i)})).catch((function(t){i(t)}))}))},hideModal:function(){var t=this,e=this;return e.doing_ajax=!0,new Promise((function(s,i){gt(e.routes.close_track_modal,e.nonces.close_track_modal,{}).then((function(i){e.doing_ajax=!1,SUI.closeModal(),t.suiRemoveModalClass(),s(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",rt),e().component("app-footer",ct),e().component("doc-link",lt),e().component("summary-box",ut),e().component("opcache-notice",dt),e().component("tracking-modal",St);new(e())({el:"#defender",store:jt,components:{two_fa:et,two_fa_free:nt},render:function(t){return"0"===defender.is_free?t(et):t(nt)}})})()})();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings