File manager - Edit - /home/xfekoga/grenier/wp-content/plugins/defender-security/assets/app/advanced-tools.js
Back
/*! For license information please see advanced-tools.js.LICENSE.txt */ (()=>{var t,e={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,r;if(Array.prototype.forEach)return t.forEach(e,s);for(i=0,r=t.length;i<r;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},2012:(t,e,s)=>{"use strict";s.d(e,{A:()=>o});var i=s(6798),r=s.n(i)()((function(t){return t[1]}));r.push([t.id,"#redirect_trafficwp_page_box .sui-select textarea{min-height:0}",""]);const o=r},2048:(t,e,s)=>{var i=s(6018).FilterCSS,r=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 a=new i;function c(t){return t.replace(l,"<").replace(u,">")}var l=/</g,u=/>/g,d=/"/g,_=/"/g,p=/&#([a-zA-Z0-9]*);?/gim,f=/:?/gim,m=/&newline;?/gim,v=/((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,h=/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(_,'"')}function w(t){return t.replace(p,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function x(t){return t.replace(f,":").replace(m," ")}function C(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=C(t=x(t=w(t=y(t))))}function S(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(v.lastIndex=0,v.test(s))return""}else if("style"===e){if(h.lastIndex=0,h.test(s))return"";if(g.lastIndex=0,g.test(s)&&(v.lastIndex=0,v.test(s)))return"";!1!==i&&(s=(i=i||a).process(s))}return s=S(s)},e.escapeHtml=c,e.escapeQuote=b,e.unescapeQuote=y,e.escapeHtmlEntities=w,e.escapeDangerHtml5Entities=x,e.clearNonPrintableCharacter=C,e.friendlyAttrValue=k,e.escapeAttrValue=S,e.onIgnoreTagStripAll=function(){return""},e.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var s=!Array.isArray(t),i=[],r=!1;return{onIgnoreTag:function(n,a,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!==r?r:c.position,u]),r=!1,l}return r||(r=c.position),"[removed]"}return e(n,a,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 r=t.indexOf("--\x3e",i);if(-1===r)break;s=r+3}return e},e.stripBlankChar=function(t){var e=t.split("");return(e=e.filter((function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))}))).join("")},e.attributeWrapSign='"',e.cssFilter=a,e.getDefaultCSSWhiteList=r},2505:(t,e,s)=>{t.exports=s(8015)},2881:(t,e,s)=>{"use strict";var i=s(9516),r=s(6987);t.exports=function(t,e,s){var o=this||r;return i.forEach(s,(function(s){t=s.call(o,t,e)})),t}},3191:(t,e,s)=>{"use strict";var i=s(1928);function r(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))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r((function(e){t=e})),cancel:t}},t.exports=r},3471:(t,e,s)=>{"use strict";var i=s(9516);function r(){this.handlers=[]}r.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},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},3473:(t,e,s)=>{var i=s(7043),r=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,a=e.safeAttrValue;return r(t,(function(t,e,r,c,l){var u=s[r],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=a(r,c)){var _,p={position:e,sourcePosition:t,source:l,isWhite:d};return d?o(_=i(r,c,p))?r+":"+c:_:o(_=n(r,c,p))?void 0:_}}))},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,r,o,n){var a=[];a.push(t+"="+encodeURIComponent(e)),i.isNumber(s)&&a.push("expires="+new Date(s).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(o)&&a.push("domain="+o),!0===n&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4005:(t,e,s)=>{var i=s(2048),r=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 r)e[s]=r[s]}(),"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)},4077:(t,e,s)=>{"use strict";const i=Vue;var r=s.n(i),o=s(4005),n=wp.i18n,a={whiteList:{a:["href","title","target"],span:["class"],strong:["*"]},safeAttrValue:function(t,e,s,i){return"a"===t&&"href"===e&&"%s"===s?"%s":(0,o.safeAttrValue)(t,e,s,i)}},c=new o.FilterXSS(a),l=[];const u={data:function(){return{width:{document:0},mobileWidth:768,tabletWidth:1024,isMobile:!1,isTablet:!1}},methods:{__:function(t){var e=n.__(t,"defender-security");return c.process(e)},multipleTranslation:function(t,e,s){var i=n._n(t,e,s,"defender-security");return c.process(i)},xss:function(t){return c.process(t)},vsprintf:function(t){return n.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,r){var o=this;void 0===r&&(this.state.on_saving=!0);var n=ajaxurl+"?action="+this.endpoints[e]+"&_def_nonce="+this.nonces[e],a=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)}});l.push(a)},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 d(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,r=!1,o=void 0;try{for(var n,a=t[Symbol.iterator]();!(i=(n=a.next()).done)&&(s.push(n.value),!e||s.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return s}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _(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 _(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 _(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 p(){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 f(t){return function(){for(var e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];var r=d("string"==typeof s[0]?[].concat(s):[""].concat(s),4),o=r[0],n=r[1],a=r[2],c=r[3];return o.length&&"/"!==o.charAt(o.length-1)&&(o+="/"),a="".concat(o).concat(a||"getField"),c="".concat(o).concat(c||"updateField"),t(o,n,a,c)}}function m(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,r){return r.length===s+1&&(t[e]=i),t[e]}),t)}var h=f((function(t,e,s,i){var r=Array.isArray(e)?p(e):e;return Object.keys(r).reduce((function(t,e){var o=r[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}),{})}));f((function(t,e,s,i){var r=Array.isArray(e)?p(e):e;return Object.keys(r).reduce((function(t,e){var o=r[e];return t[e]={get:function(){var t,e=this.$store,r=(t=e.getters[s](o),Object.keys(t).map((function(e){return[e,t[e]]})));return r.map((function(t){return Object.keys(t[1]).reduce((function(r,n){var a="".concat(o,"[").concat(t[0],"].").concat(n);return Object.defineProperty(r,n,{get:function(){return e.getters[s](a)},set:function(t){e.commit(i,{path:a,value:t})}})}),{})}))}},t}),{})}));function g(t){return g="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},g(t)}function b(t,e,s,i,r,o,n,a){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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),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 y=b({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"===g(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;const w=b({name:"sidetab",props:["labels","slug","active","contentClass"],methods:{getBoxId:function(t){return this.slug+t+"_box"},getId:function(t){return this.slug+t},getClass:function(t){if(this.active===t)return"active"}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-side-tabs"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.labels.length>1,expression:"labels.length > 1"}],staticClass:"sui-tabs-menu"},t._l(t.labels,(function(s){return e("label",{staticClass:"sui-tab-item",class:t.getClass(s.value),attrs:{for:t.getId(s.value)},on:{click:function(e){return t.$emit("selected",s.value)}}},[e("input",{attrs:{type:"radio",name:t.slug,id:t.getId(s.value),"data-tab-menu":t.getBoxId(s.value)},domProps:{value:s.value}}),t._v("\n "+t._s(s.text)+"\n ")])})),0),t._v(" "),e("div",{staticClass:"sui-tabs-content"},[t._l(t.labels,(function(s){return!0!==s.mute?e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:[t.getClass(s.value),t.contentClass],attrs:{id:t.getBoxId(s.value)}},[t._t(s.value)],2):t._e()})),t._v(" "),t._t("shared")],2)])}),[],!1,null,null,null).exports;const x=b({name:"search-post",mixins:[u],mounted:function(){var t=this,e=jQuery("#search-post"),s=ajaxurl+"?action=wp_defender/v1/hub/&route="+this.$store.state.mask_login.routes.get_posts+"&_def_nonce="+this.$store.state.mask_login.nonces.get_posts;jQuery((function(){e.SUIselect2({minimumInputLength:3,maximumSelectionLength:1,dropdownCssClass:"sui-search-dropdown",ajax:{url:s,type:"POST",dataType:"json",delay:250,data:function(t){var e={search:t.term,per_page:50},s=JSON.stringify(e);return{data:s}},processResults:function(t){return{results:jQuery.map(t.data,(function(t,e){return{text:t.name,url:t.url,id:t.id}}))}}}}),e.on("select2:select",(function(s){var i=s.params.data;t.$store.dispatch("mask_login/updateRedirectPage",i),e.val(null).trigger("change")}))}))},computed:{redirect_traffic_page_title:function(){return this.$store.state.mask_login.redirect_traffic_page_title},redirect_traffic_page_url:function(){return this.$store.state.mask_login.redirect_traffic_page_url}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-post-wrap"},[e("p",{staticClass:"sui-description"},[t._v(t._s(t.__("Select the page or post your default login URLs will redirect to.")))]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label",attrs:{for:"search-post",id:"search-post-label"}},[t._v(t._s(t.__("Redirect URL")))]),t._v(" "),e("select",{staticClass:"sui-select",attrs:{id:"search-post","data-placeholder":t.__("Type Post/Page title"),"data-theme":"search","data-search":"true","aria-required":"true","aria-labelledby":"search-post-label"}})]),t._v(" "),t.redirect_traffic_page_title?e("div",{staticClass:"margin-top-30"},[e("span",{staticClass:"sui-dark"},[t._v(t._s(t.__("Selected Post/Page")))]),t._v(" "),e("div",{staticClass:"selected-post"},[e("span",{staticClass:"selected-post-title truncate"},[e("a",{attrs:{href:t.redirect_traffic_page_url}},[t._v("\n "+t._s(t.redirect_traffic_page_title)+"\n ")])]),t._v(" "),e("div",{staticClass:"selected-post-icons"},[e("button",{staticClass:"sui-button-icon sui-tooltip sui-button-red",attrs:{type:"button","data-tooltip":t.__("Remove Post/Page")},on:{click:function(e){return t.$store.dispatch("mask_login/removeRedirectPage")}}},[e("i",{staticClass:"sui-icon-trash",attrs:{"aria-hidden":"true"}})])])])]):t._e()])}),[],!1,null,null,null).exports;var C=("undefined"!=typeof window?window:void 0!==s.g?s.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function k(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 r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(s){r[s]=k(t[s],e)})),r}function S(t,e){Object.keys(t).forEach((function(s){return e(t[s],s)}))}function P(t){return null!==t&&"object"==typeof t}var j=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)||{}},A={namespaced:{configurable:!0}};A.namespaced.get=function(){return!!this._rawModule.namespaced},j.prototype.addChild=function(t,e){this._children[t]=e},j.prototype.removeChild=function(t){delete this._children[t]},j.prototype.getChild=function(t){return this._children[t]},j.prototype.hasChild=function(t){return t in this._children},j.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)},j.prototype.forEachChild=function(t){S(this._children,t)},j.prototype.forEachGetter=function(t){this._rawModule.getters&&S(this._rawModule.getters,t)},j.prototype.forEachAction=function(t){this._rawModule.actions&&S(this._rawModule.actions,t)},j.prototype.forEachMutation=function(t){this._rawModule.mutations&&S(this._rawModule.mutations,t)},Object.defineProperties(j.prototype,A);var O=function(t){this.register([],t,!1)};function T(t,e,s){if(e.update(s),s.modules)for(var i in s.modules){if(!e.getChild(i))return void 0;T(t.concat(i),e.getChild(i),s.modules[i])}}O.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},O.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,s){return t+((e=e.getChild(s)).namespaced?s+"/":"")}),"")},O.prototype.update=function(t){T([],this.root,t)},O.prototype.register=function(t,e,s){var i=this;void 0===s&&(s=!0);var r=new j(e,s);0===t.length?this.root=r:this.get(t.slice(0,-1)).addChild(t[t.length-1],r);e.modules&&S(e.modules,(function(e,r){i.register(t.concat(r),e,s)}))},O.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)},O.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),s=t[t.length-1];return!!e&&e.hasChild(s)};var E;var R=function(t){var e=this;void 0===t&&(t={}),!E&&"undefined"!=typeof window&&window.Vue&&F(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 O(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new E,this._makeLocalGettersCache=Object.create(null);var r=this,o=this.dispatch,n=this.commit;this.dispatch=function(t,e){return o.call(r,t,e)},this.commit=function(t,e,s){return n.call(r,t,e,s)},this.strict=i;var a=this._modules.root.state;H(this,a,[],this._modules.root),I(this,a),s.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:E.config.devtools)&&function(t){C&&(t._devtoolHook=C,C.emit("vuex:init",t),C.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){C.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){C.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},N={state:{configurable:!0}};function L(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 D(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;H(t,s,[],t._modules.root,!0),I(t,s,e)}function I(t,e,s){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,o={};S(r,(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=E.config.silent;E.config.silent=!0,t._vm=new E({data:{$$state:e},computed:o}),E.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})),E.nextTick((function(){return i.$destroy()})))}function H(t,e,s,i,r){var o=!s.length,n=t._modules.getNamespace(s);if(i.namespaced&&(t._modulesNamespaceMap[n],t._modulesNamespaceMap[n]=i),!o&&!r){var a=U(e,s.slice(0,-1)),c=s[s.length-1];t._withCommit((function(){E.set(a,c,i.state)}))}var l=i.context=function(t,e,s){var i=""===e,r={dispatch:i?t.dispatch:function(s,i,r){var o=M(s,i,r),n=o.payload,a=o.options,c=o.type;return a&&a.root||(c=e+c),t.dispatch(c,n)},commit:i?t.commit:function(s,i,r){var o=M(s,i,r),n=o.payload,a=o.options,c=o.type;a&&a.root||(c=e+c),t.commit(c,n,a)}};return Object.defineProperties(r,{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(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(s,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=s}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return U(t.state,s)}}}),r}(t,n,s);i.forEachMutation((function(e,s){!function(t,e,s,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.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,r=e.handler||e;!function(t,e,s,i){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r,o=s.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(r=o)&&"function"==typeof r.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,i,r,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){H(t,e,s.concat(o),i,r)}))}function U(t,e){return e.reduce((function(t,e){return t[e]}),t)}function M(t,e,s){return P(t)&&t.type&&(s=e,e=t,t=t.type),{type:t,payload:e,options:s}}function F(t){E&&t===E||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)}}(E=t)}N.state.get=function(){return this._vm._data.$$state},N.state.set=function(t){0},R.prototype.commit=function(t,e,s){var i=this,r=M(t,e,s),o=r.type,n=r.payload,a=(r.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(a,i.state)})))},R.prototype.dispatch=function(t,e){var s=this,i=M(t,e),r=i.type,o=i.payload,n={type:r,payload:o},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(n,s.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(o)}))):a[0](o);return new Promise((function(t,e){c.then((function(e){try{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)}))}))}},R.prototype.subscribe=function(t,e){return L(t,this._subscribers,e)},R.prototype.subscribeAction=function(t,e){return L("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},R.prototype.watch=function(t,e,s){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,s)},R.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},R.prototype.registerModule=function(t,e,s){void 0===s&&(s={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),H(this,this.state,t,this._modules.get(t),s.preserveState),I(this,this.state)},R.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var s=U(e.state,t.slice(0,-1));E.delete(s,t[t.length-1])})),D(this)},R.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},R.prototype.hotUpdate=function(t){this._modules.update(t),D(this,!0)},R.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(R.prototype,N);var B=W((function(t,e){var s={};return G(e).forEach((function(e){var i=e.key,r=e.val;s[i]=function(){var e=this.$store.state,s=this.$store.getters;if(t){var i=Q(this.$store,"mapState",t);if(!i)return;e=i.context.state,s=i.context.getters}return"function"==typeof r?r.call(this,e,s):e[r]},s[i].vuex=!0})),s})),q=W((function(t,e){var s={};return G(e).forEach((function(e){var i=e.key,r=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=Q(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),s})),V=W((function(t,e){var s={};return G(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,s[i]=function(){if(!t||Q(this.$store,"mapGetters",t))return this.$store.getters[r]},s[i].vuex=!0})),s})),z=W((function(t,e){var s={};return G(e).forEach((function(e){var i=e.key,r=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=Q(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),s}));function G(t){return function(t){return Array.isArray(t)||P(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 W(t){return function(e,s){return"string"!=typeof e?(s=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,s)}}function Q(t,e,s){return t._modulesNamespaceMap[s]}function K(t,e,s){var i=s?t.groupCollapsed:t.group;try{i.call(t,e)}catch(s){t.log(e)}}function J(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function X(){var t=new Date;return" @ "+Y(t.getHours(),2)+":"+Y(t.getMinutes(),2)+":"+Y(t.getSeconds(),2)+"."+Y(t.getMilliseconds(),3)}function Y(t,e){return s="0",i=e-t.toString().length,new Array(i+1).join(s)+t;var s,i}var Z={Store:R,install:F,version:"3.6.2",mapState:B,mapMutations:q,mapGetters:V,mapActions:z,createNamespacedHelpers:function(t){return{mapState:B.bind(null,t),mapGetters:V.bind(null,t),mapMutations:q.bind(null,t),mapActions:z.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 r=t.mutationTransformer;void 0===r&&(r=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 a=t.logMutations;void 0===a&&(a=!0);var c=t.logActions;void 0===c&&(c=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var u=k(t.state);void 0!==l&&(a&&t.subscribe((function(t,o){var n=k(o);if(s(t,u,n)){var a=X(),c=r(t),d="mutation "+t.type+a;K(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)),J(l)}u=n})),c&&t.subscribeAction((function(t,s){if(o(t,s)){var i=X(),r=n(t),a="action "+t.type+i;K(l,a,e),l.log("%c action","color: #03A9F4; font-weight: bold",r),J(l)}})))}}};const tt=Z;function et(t){return et="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},et(t)}function st(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 it(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?st(Object(s),!0).forEach((function(e){rt(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):st(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function rt(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=et(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=et(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==et(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const ot={components:{Sidetab:w,SubmitButton2:y,SearchPost:x},mixins:[u],props:["onMaskState","onMaskEnabled"],name:"mask-login",data:function(){return{show_notice:!0}},methods:it({handleResult:function(t){this.$store.dispatch("mask_login/toggle"),this.trackFeature({event:t?"def_feature_deactivated":"def_feature_activated",data:{Feature:"Mask Login Area","Triggered From":"Feature page"}})},toggle:function(t){var e=this,s={};s.enabled=t,this.httpPostRequest("update_settings",{data:s},(function(){e.model.enabled=t}))},isUrlOrSlug:function(t){return/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/i.test(t)?"url":"slug"}},z("AnalyticsTracking",["trackFeature"])),computed:it({new_mask_login:function(){return""===this.new_login_url?"":this.new_login_url},login_redirect_url:function(){return this.misc.login_redirect_url},masking_url_desc:function(){var t=this.__("Replace the default <strong>wp-admin</strong> or <strong>wp-login</strong> with a custom slug below.\n For security reasons, less obvious URLs are recommended as they are harder for bots to guess.\n Note that the following list of slugs cannot be used for masking your login area:");return t+=" <em>wp-admin, wp-login.php, wp-login, login, dashboard, admin</em>."},show_mask_url_error_notice:function(){return this.show_notice&&this.is_mask_url_page_post_exists&&!this.is_active},show_mask_url_warning_notice:function(){return this.is_mask_url_empty&&!this.is_active},show_mask_url_success_notice:function(){return this.is_active}},h("mask_login",{model:"model",new_login_url:"new_login_url",is_active:"is_active",notices:"notices",redirect_traffic_page_title:"redirect_traffic_page_title",redirect_traffic_page_url:"redirect_traffic_page_url",is_mask_url_empty:"is_mask_url_empty",is_mask_url_page_post_exists:"is_mask_url_page_post_exists"})),mounted:function(){var t=sessionStorage.getItem("wpdef_mask_url");if(t){var e=JSON.parse(t);void 0!==(null==e?void 0:e.error)&&(this.show_notice=!1,"undefined"==typeof SUI?document.onreadystatechange=function(){"complete"===document.readyState&&Defender.showNotification("error",e.error,!1)}:Defender.showNotification("error",e.error,!1)),sessionStorage.removeItem("wpdef_mask_url")}}};var nt=s(5072),at=s.n(nt),ct=s(2012),lt={insert:"head",singleton:!1};at()(ct.A,lt);ct.A.locals;const ut=b(ot,(function(){var t=this,e=t._self._c;return!1===t.model.enabled?e("div",{staticClass:"sui-box",attrs:{id:"mask-login-disabled"}},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.__("Mask Login Area"))+"\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.__("Change the location of WordPress's default login area, making it harder for automated bots to find and also more convenient for your users."))+"\n ")]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.handleResult(t.model.enabled)}}},[e("submit-button2",{attrs:{action:"toggle","css-class":"sui-button-blue activate"}},[t._v("\n "+t._s(t.__("Activate"))+"\n ")])],1)])])]):e("div",{staticClass:"sui-box",attrs:{id:"mask-login"}},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.__("Mask Login Area"))+"\n ")])]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("mask_login/saveSettings")}}},[e("div",{staticClass:"sui-box-body"},[e("p",[t._v("\n "+t._s(t.__("Change your default WordPress login URL to hide your login area from hackers and bots."))+"\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.show_mask_url_error_notice?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._v("\n "+t._s(t.__("A page already exists at this URL. Please enter a unique URL for your login area."))+"\n ")])])])]):t.show_mask_url_warning_notice?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("\n "+t._s(t.__("Masking is currently inactive. Choose your URL and save your settings to finish setup."))+"\n ")])])])]):t.show_mask_url_success_notice?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-check-tick sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("p",[t._v("\n "+t._s(t.__("Masking is currently active at "))+" "),e("a",{attrs:{href:t.new_login_url,target:"_blank"},domProps:{textContent:t._s(t.new_login_url)}})])])])]):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.__("Masking URL slug"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Choose the new URL slug where users of your website will now navigate to log in or register."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("span",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.masking_url_desc)}}),t._v(" "),e("div",{staticClass:"sui-form-field",class:{"sui-form-field-error":t.is_mask_url_page_post_exists}},[e("label",{staticClass:"sui-label"},[t._v("\n "+t._s(t.__("New Login URL slug"))+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.mask_url,expression:"model.mask_url"}],staticClass:"sui-form-control",attrs:{type:"text",name:"mask_url",placeholder:"new-login-slug"},domProps:{value:t.model.mask_url},on:{input:function(e){e.target.composing||t.$set(t.model,"mask_url",e.target.value)}}}),t._v(" "),t.is_mask_url_page_post_exists?e("span",{staticClass:"sui-error-message",attrs:{role:"alert"}},[t._v("\n "+t._s(t.__("URL already exists. Please enter a different slug."))+"\n ")]):t._e(),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Note: Registration and Password Reset emails have hardcoded URLs in them. We will update them automatically to match your new login URL."))+"\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._s(t.__("Redirect traffic"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Send visitors and bots who try to visit the default WordPress login URLs to a separate URL to avoid 404s."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("sidetab",{attrs:{slug:"redirect_traffic",active:t.model.redirect_traffic,labels:[{text:t.__("Off"),mute:!0,value:"off"},{text:t.__("Choose redirect page"),mute:!1,value:"wp_page"},{text:t.__("Custom Url"),mute:!1,value:"custom_url"}]},on:{selected:function(e){t.model.redirect_traffic=e}},scopedSlots:t._u([{key:"wp_page",fn:function(){return[e("search-post")]},proxy:!0},{key:"custom_url",fn:function(){return[e("p",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Visitors who visit the default login URLs will be redirected to the custom URL you will set below."))+"\n ")]),t._v(" "),e("label",{staticClass:"sui-label"},[t._v(t._s(t.__("Redirection URL")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.redirect_traffic_url,expression:"model.redirect_traffic_url"}],staticClass:"sui-form-control",attrs:{placeholder:t.__("E.g. 404-error"),type:"text",name:"redirect_traffic_url"},domProps:{value:t.model.redirect_traffic_url},on:{input:function(e){e.target.composing||t.$set(t.model,"redirect_traffic_url",e.target.value)}}})]},proxy:!0}])})],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.__("Deactivate"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Disable login area masking and return to the default wp-admin and wp-login URLS."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("submit-button2",{attrs:{action:"toggle","css-class":"sui-button-ghost",type:"button"},on:{click:function(e){return t.handleResult(t.model.enabled)}}},[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)])])])}),[],!1,null,null,null).exports;const dt=b({mixins:[u],props:["misc","model"],name:"sh-xframe",data:function(){return{state:{on_saving:!1},tabUrlsText:""}},created:function(){this.tabUrlsText=vsprintf(this.__("The page <strong>%s</strong> will only be displayed in a frame on the specified origin. One per line."),this.siteUrl)}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-toggle-content"},[e("span",{staticClass:"sui-description toogle-content-description"},[t._v("\n\t\t"+t._s(t.__("Choose whether or not you want to allow your webpages to be embedded inside iframes."))+"\n\t")]),t._v(" "),e("div",{staticClass:"sui-side-tabs"},[e("div",{staticClass:"sui-tabs-menu"},[e("label",{staticClass:"sui-tab-item",class:{active:"sameorigin"===t.model.sh_xframe_mode},attrs:{for:"xf-sameorigin"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_xframe_mode,expression:"model.sh_xframe_mode"}],attrs:{type:"radio",name:"sh_xframe_mode",value:"sameorigin",id:"xf-sameorigin","data-tab-menu":"xf-sameorigin-box"},domProps:{checked:t._q(t.model.sh_xframe_mode,"sameorigin")},on:{change:function(e){return t.$set(t.model,"sh_xframe_mode","sameorigin")}}}),t._v("\n\t\t\t\t"+t._s(t.__("Sameorigin"))+"\n\t\t\t")]),t._v(" "),e("label",{staticClass:"sui-tab-item",class:{active:"deny"===t.model.sh_xframe_mode},attrs:{for:"xf-deny"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_xframe_mode,expression:"model.sh_xframe_mode"}],attrs:{type:"radio",name:"sh_xframe_mode",value:"deny",id:"xf-deny","data-tab-menu":"xf-deny-box"},domProps:{checked:t._q(t.model.sh_xframe_mode,"deny")},on:{change:function(e){return t.$set(t.model,"sh_xframe_mode","deny")}}}),t._v("\n\t\t\t\t"+t._s(t.__("Deny"))+"\n\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-tabs-content"},[e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"sameorigin"===t.model.sh_xframe_mode},attrs:{id:"xf-sameorigin-box","data-tab-content":"xf-sameorigin-box"}},[e("p",{staticClass:"sui-p-small"},[t._v("\n\t\t\t\t\t"+t._s(t.__("The page can only be displayed in a frame on the same origin as the page itself. The spec leaves it up to browser vendors to decide whether this option applies to the top level, the parent, or the whole chain."))+"\n\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"deny"===t.model.sh_xframe_mode},attrs:{id:"xf-deny-box","data-tab-content":"xf-deny-box"}},[e("p",{staticClass:"sui-p-small"},[t._v("\n\t\t\t\t\t"+t._s(t.__("The page can’t be displayed in a frame, regardless of the site attempting to do so."))+"\n\t\t\t\t")])])])])])}),[],!1,null,null,null).exports;const _t=b({mixins:[u],props:["misc","model"],name:"sh_xss_protection",data:function(){return{state:{on_saving:!1}}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-toggle-content"},[e("span",{staticClass:"sui-description toogle-content-description"},[t._v("\n "+t._s(t.__("Choose what level of protection X-XSS protection you would like to apply when XSS attacks are detected."))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-side-tabs"},[e("div",{staticClass:"sui-tabs-menu"},[e("label",{staticClass:"sui-tab-item",class:{active:"sanitize"===t.model.sh_xss_protection_mode},attrs:{for:"xss-sanitize"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_xss_protection_mode,expression:"model.sh_xss_protection_mode"}],attrs:{type:"radio",name:"sh_xss_protection_mode",value:"sanitize",id:"xss-sanitize","data-tab-menu":"xss-sanitize-box"},domProps:{checked:t._q(t.model.sh_xss_protection_mode,"sanitize")},on:{change:function(e){return t.$set(t.model,"sh_xss_protection_mode","sanitize")}}}),t._v("\n "+t._s(t.__("Sanitize"))+"\n ")]),t._v(" "),e("label",{staticClass:"sui-tab-item",class:{active:"block"===t.model.sh_xss_protection_mode},attrs:{for:"xss-block"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_xss_protection_mode,expression:"model.sh_xss_protection_mode"}],attrs:{type:"radio",name:"sh_xss_protection_mode",value:"block",id:"xss-block","data-tab-menu":"xss-block-box"},domProps:{checked:t._q(t.model.sh_xss_protection_mode,"block")},on:{change:function(e){return t.$set(t.model,"sh_xss_protection_mode","block")}}}),t._v("\n "+t._s(t.__("Block"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-tabs-content"},[e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"sanitize"===t.model.sh_xss_protection_mode},attrs:{id:"xss-sanitize-box","data-tab-content":"xss-sanitize-box"}},[e("p",{staticClass:"sui-p-small"},[t._v("\n "+t._s(t.__("If a cross-site scripting attack is detected, the browser will sanitize the page (remove the unsafe parts)."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"block"===t.model.sh_xss_protection_mode},attrs:{id:"xss-block-box","data-tab-content":"xss-allow-from-box"}},[e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Enables XSS filtering. Rather than sanitizing the page, the browser will prevent rendering of the page if an attack is detected."))+"\n ")])])])])])}),[],!1,null,null,null).exports;const pt=b({mixins:[u],name:"sh-content-type-options"},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-toggle-content"},[e("span",{staticClass:"sui-description toogle-content-description"},[t._v("\n\t\t\t"+t._s(t.__("Defender will automatically enforce the 'nosniff' X-Content-Type-Options header to help prevent MIME type sniffing and XSS attacks."))+"\n\t\t")])])}),[],!1,null,null,null).exports;const ft=b({mixins:[u],name:"sh-strict-transport",props:["misc","model"],data:function(){return{state:{on_saving:!1},hsts_preload:null,allow_subdomain:null,include_subdomain:null,hsts_cache_duration:null}},created:function(){this.hsts_preload=this.misc.diff.hsts_preload,this.allow_subdomain=this.misc.diff.allow_subdomain,this.include_subdomain=this.misc.diff.include_subdomain,!1===this.allow_subdomain&&(this.include_subdomain=!1),this.hsts_cache_duration=this.misc.diff.hsts_cache_duration},mounted:function(){var t=this;jQuery("#hsts-cache-duration").on("change",(function(){var e=jQuery(this).val();t.hsts_cache_duration=e,t.$parent.$emit("hsts_maximum_age",e)}))},computed:{show_hsts_warning:function(){return 1===parseInt(this.model.hsts_preload)},hsts_warning_text:function(){return vsprintf(this.__('Note: Do not include the preload directive by default if you maintain a project that provides HTTPS configuration advice or provides an option to enable HSTS. Be aware that inclusion in the preload list cannot easily be undone. Domains can be removed, but it takes months for a change. Check <a target="_blank" href="%s">here</a> for more information.'),"https://hstspreload.org/")},text_browser_caching:function(){return vsprintf(this.__('Select when the browser should cache and enforce the Strict Transport Security policy. The HSTS Maximum Age should be set to at least 30 days. To find out more about the differences in max-age values, click <a target="_blank" href="%s">here</a>.'),"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security#Examples")}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-toggle-content"},[e("div",{staticClass:"sui-border-frame"},[e("label",{staticClass:"sui-checkbox",attrs:{for:"hsts_preload"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.hsts_preload,expression:"model.hsts_preload"}],attrs:{type:"checkbox",name:"model.hsts_preload","true-value":"1","false-value":"0","aria-labelledby":"label_hsts_preload",id:"hsts_preload"},domProps:{checked:Array.isArray(t.model.hsts_preload)?t._i(t.model.hsts_preload,null)>-1:t._q(t.model.hsts_preload,"1")},on:{change:function(e){var s=t.model.hsts_preload,i=e.target,r=i.checked?"1":"0";if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.model,"hsts_preload",s.concat([null])):o>-1&&t.$set(t.model,"hsts_preload",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.model,"hsts_preload",r)}}}),t._v(" "),e("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{attrs:{id:"label_hsts_preload"}},[t._v(t._s(t.__("HSTS Preload")))])]),t._v(" "),e("span",{staticClass:"sui-description margin-bottom-10"},[t._v(t._s(t.__("Google maintains an HSTS preload service. By following the guidelines and successfully submitting your domain, browsers will never connect to your domain using an insecure connection.")))]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.show_hsts_warning,expression:"show_hsts_warning"}],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",{domProps:{innerHTML:t._s(t.hsts_warning_text)}})])])]),t._v(" "),!0===t.allow_subdomain?e("div",{staticClass:"margin-bottom-30"},[e("label",{staticClass:"sui-checkbox",attrs:{for:"include_subdomain"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.include_subdomain,expression:"model.include_subdomain"}],attrs:{type:"checkbox","true-value":"1","false-value":"0","aria-labelledby":"label_include_subdomain",id:"include_subdomain"},domProps:{checked:Array.isArray(t.model.include_subdomain)?t._i(t.model.include_subdomain,null)>-1:t._q(t.model.include_subdomain,"1")},on:{change:function(e){var s=t.model.include_subdomain,i=e.target,r=i.checked?"1":"0";if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.model,"include_subdomain",s.concat([null])):o>-1&&t.$set(t.model,"include_subdomain",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.model,"include_subdomain",r)}}}),t._v(" "),e("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{attrs:{id:"label_include_subdomain"}},[t._v(t._s(t.__("Include Subdomains")))])]),t._v(" "),e("span",{staticClass:"sui-description margin-bottom-10"},[t._v(t._s(t.__("If this optional parameter is specified, this rule applies to all of the site's subdomains as well.")))])]):t._e(),t._v(" "),e("div",{staticClass:"toggle-content-header"},[t._v(t._s(t.__("Browser Caching")))]),t._v(" "),e("span",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.text_browser_caching)}}),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("div",{staticClass:"sui-row"},[e("div",{staticClass:"sui-col-md-5"},[e("label",{staticClass:"sui-label",attrs:{for:"hsts-cache-duration",id:"label-hsts-cache-duration"}},[t._v(t._s(t.__("HSTS Maximum Age")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.model.hsts_cache_duration,expression:"model.hsts_cache_duration"}],staticClass:"sui-select sui-select-sm",attrs:{id:"hsts-cache-duration",name:"hsts_cache_duration","data-module":"sh-strict-transport","aria-labelledby":"label-hsts-cache-duration","data-key":"hsts_cache_duration"},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.$set(t.model,"hsts_cache_duration",e.target.multiple?s:s[0])}}},[e("option",{attrs:{value:"1 hour"}},[t._v(t._s(t.__("1 hour")))]),t._v(" "),e("option",{attrs:{value:"24 hours"}},[t._v(t._s(t.__("24 hours")))]),t._v(" "),e("option",{attrs:{value:"7 days"}},[t._v(t._s(t.__("7 days")))]),t._v(" "),e("option",{attrs:{value:"30 days"}},[t._v(t._s(t.__("30 days")))]),t._v(" "),e("option",{attrs:{value:"3 months"}},[t._v(t._s(t.__("3 months")))]),t._v(" "),e("option",{attrs:{value:"6 months"}},[t._v(t._s(t.__("6 months")))]),t._v(" "),e("option",{attrs:{value:"1 year"}},[t._v(t._s(t.__("1 year")))]),t._v(" "),e("option",{attrs:{value:"2 years"}},[t._v(t._s(t.__("2 years")))])])])])])])])}),[],!1,null,null,null).exports;const mt=b({mixins:[u],name:"sh-referrer-policy",props:["misc","model"],data:function(){return{state:{on_saving:!1},mode:null,policyDesc:""}},created:function(){this.mode=this.misc.diff.mode},mounted:function(){var t=this;jQuery("#referrer-policy").on("change",(function(){t.mode=jQuery(this).val()}))},watch:{mode:function(){"no-referrer"===this.mode&&(this.policyDesc=this.__("The Referer header will be omitted entirely. No referrer information is sent along with requests.")),"no-referrer-when-downgrade"===this.mode&&(this.policyDesc=this.__("This is the user agent's default behavior if no policy is specified. The origin is sent as referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but isn't sent to a less secure destination (HTTPS->HTTP).")),"origin"===this.mode&&(this.policyDesc=this.__("Only send the origin of the document as the referrer in all cases. The document https://example.com/page.html will send the referrer https://example.com/.")),"origin-when-cross-origin"===this.mode&&(this.policyDesc=this.__("Send a full URL when performing a same-origin request, but only send the origin of the document for other cases.")),"same-origin"===this.mode&&(this.policyDesc=this.__("A referrer will be sent for same-site origins, but cross-origin requests will contain no referrer information.")),"strict-origin"===this.mode&&(this.policyDesc=this.__("Only send the origin of the document as the referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but don't send it to a less secure destination (HTTPS->HTTP).")),"strict-origin-when-cross-origin"===this.mode&&(this.policyDesc=this.__("Send a full URL when performing a same-origin request, only send the origin of the document to a-priori as-much-secure destination (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP).")),"unsafe-url"===this.mode&&(this.policyDesc=this.__("Send a full URL (stripped from parameters) when performing a a same-origin or cross-origin request.")),this.$parent.$emit("mode_referrer_policy",this.mode)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-toggle-content"},[e("span",{staticClass:"sui-description toogle-content-description"},[t._v("\n\t\t"+t._s(t.__("Choose which referrer information to send along with requests."))+"\n\t")]),t._v(" "),e("div",{staticClass:"sui-border-frame"},[e("div",{staticClass:"sui-row"},[e("div",{staticClass:"sui-col-md-7"},[e("label",{staticClass:"sui-label",attrs:{for:"referrer-policy",id:"label-referrer-policy"}},[t._v(t._s(t.__("Referrer Information")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_referrer_policy_mode,expression:"model.sh_referrer_policy_mode"}],staticClass:"sui-select sui-select-sm",attrs:{id:"referrer-policy",name:"sh_referrer_policy_mode","aria-labelledby":"label-referrer-policy"},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.$set(t.model,"sh_referrer_policy_mode",e.target.multiple?s:s[0])}}},[e("option",{attrs:{value:"no-referrer"}},[t._v("no-referrer")]),t._v(" "),e("option",{attrs:{value:"no-referrer-when-downgrade"}},[t._v("no-referrer-when-downgrade")]),t._v(" "),e("option",{attrs:{value:"origin"}},[t._v("origin")]),t._v(" "),e("option",{attrs:{value:"origin-when-cross-origin"}},[t._v("origin-when-cross-origin")]),t._v(" "),e("option",{attrs:{value:"same-origin"}},[t._v("same-origin")]),t._v(" "),e("option",{attrs:{value:"strict-origin"}},[t._v("strict-origin")]),t._v(" "),e("option",{attrs:{value:"strict-origin-when-cross-origin"}},[t._v("strict-origin-when-cross-origin")]),t._v(" "),e("option",{attrs:{value:"unsafe-url"}},[t._v("unsafe-url")])])]),t._v(" "),e("div",{staticClass:"sui-col-md-12",style:{marginTop:"10px"}},[e("p",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.policyDesc)}})])])])])}),[],!1,null,null,null).exports;var vt=b({mixins:[u],props:["misc","model"],name:"sh-feature-policy",data:function(){return{state:{on_saving:!1},tabUrlsText:""}},created:function(){this.tabUrlsText=vsprintf(this.__("The feature is allowed for specific origins. Place URLs here <strong>%s</strong>, one per line."),this.siteUrl)}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-toggle-content"},[e("span",{staticClass:"sui-description toogle-content-description"},[t._v("\n "+t._s(t.__("Choose an option that matches your requirements from the options below to prevent unwanted actions when your webpages are embedded elsewhere."))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-side-tabs"},[e("div",{staticClass:"sui-tabs-menu"},[e("label",{staticClass:"sui-tab-item",class:{active:"self"===t.model.sh_feature_policy_mode},attrs:{for:"fp-site"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_feature_policy_mode,expression:"model.sh_feature_policy_mode"}],attrs:{type:"radio",name:"model.sh_feature_policy_mode",value:"self",id:"fp-site","data-tab-menu":"fp-site-box"},domProps:{checked:t._q(t.model.sh_feature_policy_mode,"self")},on:{change:function(e){return t.$set(t.model,"sh_feature_policy_mode","self")}}}),t._v("\n "+t._s(t.__("On site & iframe"))+"\n ")]),t._v(" "),e("label",{staticClass:"sui-tab-item",class:{active:"allow"===t.model.sh_feature_policy_mode},attrs:{for:"fp-allow"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_feature_policy_mode,expression:"model.sh_feature_policy_mode"}],attrs:{type:"radio",name:"model.sh_feature_policy_mode",value:"allow",id:"fp-allow","data-tab-menu":"fp-allow-box"},domProps:{checked:t._q(t.model.sh_feature_policy_mode,"allow")},on:{change:function(e){return t.$set(t.model,"sh_feature_policy_mode","allow")}}}),t._v("\n "+t._s(t.__("All"))+"\n ")]),t._v(" "),e("label",{staticClass:"sui-tab-item",class:{active:"origins"===t.model.sh_feature_policy_mode},attrs:{for:"fp-origins"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_feature_policy_mode,expression:"model.sh_feature_policy_mode"}],attrs:{type:"radio",name:"model.sh_feature_policy_mode",value:"origins",id:"fp-origins","data-tab-menu":"fp-origins-box"},domProps:{checked:t._q(t.model.sh_feature_policy_mode,"origins")},on:{change:function(e){return t.$set(t.model,"sh_feature_policy_mode","origins")}}}),t._v("\n "+t._s(t.__("Specific Origins"))+"\n ")]),t._v(" "),e("label",{staticClass:"sui-tab-item",class:{active:"none"===t.model.sh_feature_policy_mode},attrs:{for:"fp-none"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_feature_policy_mode,expression:"model.sh_feature_policy_mode"}],attrs:{type:"radio",name:"model.sh_feature_policy_mode",value:"none",id:"fp-none","data-tab-menu":"fp-none-box"},domProps:{checked:t._q(t.model.sh_feature_policy_mode,"none")},on:{change:function(e){return t.$set(t.model,"sh_feature_policy_mode","none")}}}),t._v("\n "+t._s(t.__("None"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-tabs-content"},[e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"self"===t.model.sh_feature_policy_mode},attrs:{id:"fp-site-box","data-tab-content":"fp-site-box"}},[e("p",{staticClass:"sui-p-small"},[t._v("\n "+t._s(t.__("The page can only be displayed in a frame on the same origin as the page itself. The spec leaves it up to browser vendors to decide whether this option applies to the top level, the parent, or the whole chain."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"allow"===t.model.sh_feature_policy_mode},attrs:{id:"fp-allow-box","data-tab-content":"fp-allow-box"}},[e("p",{staticClass:"sui-p-small"},[t._v("\n "+t._s(t.__("The feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"origins"===t.model.sh_feature_policy_mode},attrs:{id:"fp-origins-box","data-tab-content":"fp-origins-box"}},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label"},[t._v(t._s(t.__("Origin URL")))]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_feature_policy_urls,expression:"model.sh_feature_policy_urls"}],staticClass:"sui-form-control",attrs:{name:"sh_feature_policy_urls",placeholder:t.__("Place URLs here, one per line")},domProps:{value:t.model.sh_feature_policy_urls},on:{input:function(e){e.target.composing||t.$set(t.model,"sh_feature_policy_urls",e.target.value)}}}),t._v(" "),e("span",{staticClass:"sui-description",domProps:{innerHTML:t._s(t.tabUrlsText)}})])]),t._v(" "),e("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"none"===t.model.sh_feature_policy_mode},attrs:{id:"fp-none-box","data-tab-content":"fp-none-box"}},[e("p",{staticClass:"sui-p-small"},[t._v("\n "+t._s(t.__("The feature is disabled in top-level and nested browsing contexts."))+"\n ")])])])])])}),[],!1,null,null,null);function ht(t){return ht="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},ht(t)}function gt(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 bt(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=ht(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=ht(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ht(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const yt=b({mixins:[u],components:{SubmitButton2:y,"sh-xframe":dt,"sh-xss-protection":_t,"sh-content-type":pt,"sh-strict-transport":ft,"sh-referrer-policy":mt,"sh-feature-policy":vt.exports},name:"security-headers",methods:{updateSettings:function(){var t=this.model;this.httpPostRequest("update_settings",{data:t})},header_label:function(t){return this.vsprintf(this.__("Enable %s"),t)}},created:function(){this.$on("mode_referrer_policy",(function(t){this.model.sh_referrer_policy_mode=t})),this.$on("hsts_maximum_age",(function(t){this.model.hsts_cache_duration=t}))},computed:function(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(s),!0).forEach((function(e){bt(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):gt(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}({},h("security_headers",{model:"model",misc:"misc"}))},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-box",attrs:{id:"security-headers"}},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n\t\t\t"+t._s(t.__("Security Headers"))+"\n\t\t")])]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("security_headers/saveSettings")}}},[e("div",{staticClass:"sui-box-body"},[e("p",[t._v(t._s(t.__("Add extra security to your website by enabling and configuring the security headers.")))]),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._s(t.misc.sh_xframe.title)+"\n\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t"+t._s(t.misc.sh_xframe.diff.intro_text)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field",attrs:{id:"sh_xframe_wrap"}},[e("label",{staticClass:"sui-toggle",attrs:{for:"sh_xframe"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_xframe,expression:"model.sh_xframe"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"sh_xframe",id:"sh_xframe","aria-labelledby":"sh_xframe_label","false-value":!1,"true-value":!0},domProps:{checked:Array.isArray(t.model.sh_xframe)?t._i(t.model.sh_xframe,null)>-1:t.model.sh_xframe},on:{change:function(e){var s=t.model.sh_xframe,i=e.target,r=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.model,"sh_xframe",s.concat([null])):o>-1&&t.$set(t.model,"sh_xframe",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.model,"sh_xframe",r)}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"sh_xframe_label"}},[t._v(t._s(t.header_label(t.misc.sh_xframe.title)))])]),t._v(" "),e("sh-xframe",{directives:[{name:"show",rawName:"v-show",value:!0===t.model.sh_xframe,expression:"true === model.sh_xframe"}],attrs:{misc:t.misc.sh_xframe,model:t.model}})],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\t\t\t\t\t"+t._s(t.misc.sh_xss_protection.title)+"\n\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t"+t._s(t.misc.sh_xss_protection.diff.intro_text)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field",attrs:{id:"sh_xss_protection_wrap"}},[e("label",{staticClass:"sui-toggle",attrs:{for:"sh_xss_protection"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_xss_protection,expression:"model.sh_xss_protection"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"sh_xss_protection",id:"sh_xss_protection","aria-labelledby":"sh_xss_protection_label","false-value":!1,"true-value":!0},domProps:{checked:Array.isArray(t.model.sh_xss_protection)?t._i(t.model.sh_xss_protection,null)>-1:t.model.sh_xss_protection},on:{change:function(e){var s=t.model.sh_xss_protection,i=e.target,r=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.model,"sh_xss_protection",s.concat([null])):o>-1&&t.$set(t.model,"sh_xss_protection",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.model,"sh_xss_protection",r)}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"sh_xss_protection_label"}},[t._v(t._s(t.header_label(t.misc.sh_xss_protection.title)))])]),t._v(" "),e("sh-xss-protection",{directives:[{name:"show",rawName:"v-show",value:!0===t.model.sh_xss_protection,expression:"true === model.sh_xss_protection"}],attrs:{misc:t.misc.sh_xss_protection,model:t.model}})],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\t\t\t\t\t"+t._s(t.misc.sh_content_type_options.title)+"\n\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t"+t._s(t.misc.sh_content_type_options.diff.intro_text)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field",attrs:{id:"sh_content_type_options_wrap"}},[e("label",{staticClass:"sui-toggle",attrs:{for:"sh_content_type_options"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_content_type_options,expression:"model.sh_content_type_options"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"sh_content_type_options",id:"sh_content_type_options","aria-labelledby":"sh_content_type_options_label","false-value":!1,"true-value":!0},domProps:{checked:Array.isArray(t.model.sh_content_type_options)?t._i(t.model.sh_content_type_options,null)>-1:t.model.sh_content_type_options},on:{change:function(e){var s=t.model.sh_content_type_options,i=e.target,r=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.model,"sh_content_type_options",s.concat([null])):o>-1&&t.$set(t.model,"sh_content_type_options",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.model,"sh_content_type_options",r)}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"sh_content_type_options_label"}},[t._v(t._s(t.header_label(t.misc.sh_content_type_options.title)))])]),t._v(" "),e("sh-content-type",{directives:[{name:"show",rawName:"v-show",value:!0===t.model.sh_content_type_options,expression:"true === model.sh_content_type_options"}]})],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\t\t\t\t\t"+t._s(t.misc.sh_strict_transport.title)+"\n\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t"+t._s(t.misc.sh_strict_transport.diff.intro_text)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field",attrs:{id:"sh_strict_transport_wrap"}},[e("label",{staticClass:"sui-toggle",attrs:{for:"sh_strict_transport"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_strict_transport,expression:"model.sh_strict_transport"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"sh_strict_transport",id:"sh_strict_transport","aria-labelledby":"sh_strict_transport_label","false-value":!1,"true-value":!0},domProps:{checked:Array.isArray(t.model.sh_strict_transport)?t._i(t.model.sh_strict_transport,null)>-1:t.model.sh_strict_transport},on:{change:function(e){var s=t.model.sh_strict_transport,i=e.target,r=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.model,"sh_strict_transport",s.concat([null])):o>-1&&t.$set(t.model,"sh_strict_transport",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.model,"sh_strict_transport",r)}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"sh_strict_transport_label"}},[t._v(t._s(t.header_label(t.misc.sh_strict_transport.title)))])]),t._v(" "),e("sh-strict-transport",{directives:[{name:"show",rawName:"v-show",value:!0===t.model.sh_strict_transport,expression:"true === model.sh_strict_transport"}],attrs:{misc:t.misc.sh_strict_transport,model:t.model}})],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\t\t\t\t\t"+t._s(t.misc.sh_referrer_policy.title)+"\n\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t"+t._s(t.misc.sh_referrer_policy.diff.intro_text)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field",attrs:{id:"sh_referrer_policy_wrap"}},[e("label",{staticClass:"sui-toggle",attrs:{for:"sh_referrer_policy"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_referrer_policy,expression:"model.sh_referrer_policy"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"sh_referrer_policy",id:"sh_referrer_policy","aria-labelledby":"sh_referrer_policy_label","false-value":!1,"true-value":!0},domProps:{checked:Array.isArray(t.model.sh_referrer_policy)?t._i(t.model.sh_referrer_policy,null)>-1:t.model.sh_referrer_policy},on:{change:function(e){var s=t.model.sh_referrer_policy,i=e.target,r=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.model,"sh_referrer_policy",s.concat([null])):o>-1&&t.$set(t.model,"sh_referrer_policy",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.model,"sh_referrer_policy",r)}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"sh_referrer_policy_label"}},[t._v(t._s(t.header_label(t.misc.sh_referrer_policy.title)))])]),t._v(" "),e("sh-referrer-policy",{directives:[{name:"show",rawName:"v-show",value:!0===t.model.sh_referrer_policy,expression:"true === model.sh_referrer_policy"}],attrs:{misc:t.misc.sh_referrer_policy,model:t.model}})],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\t\t\t\t\t"+t._s(t.misc.sh_feature_policy.title)+"\n\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t"+t._s(t.misc.sh_feature_policy.diff.intro_text)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field",attrs:{id:"sh_feature_policy_wrap"}},[e("label",{staticClass:"sui-toggle",attrs:{for:"sh_feature_policy"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model.sh_feature_policy,expression:"model.sh_feature_policy"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"sh_feature_policy",id:"sh_feature_policy","aria-labelledby":"sh_feature_policy_label","false-value":!1,"true-value":!0},domProps:{checked:Array.isArray(t.model.sh_feature_policy)?t._i(t.model.sh_feature_policy,null)>-1:t.model.sh_feature_policy},on:{change:function(e){var s=t.model.sh_feature_policy,i=e.target,r=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&t.$set(t.model,"sh_feature_policy",s.concat([null])):o>-1&&t.$set(t.model,"sh_feature_policy",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.model,"sh_feature_policy",r)}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{id:"sh_feature_policy_label"}},[t._v(t._s(t.header_label(t.misc.sh_feature_policy.title)))])]),t._v(" "),e("sh-feature-policy",{directives:[{name:"show",rawName:"v-show",value:!0===t.model.sh_feature_policy,expression:"true === model.sh_feature_policy"}],attrs:{misc:t.misc.sh_feature_policy,model:t.model}})],1)])])]),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-actions-right"},[e("submit-button2",{attrs:{"css-class":"sui-button-blue save-changes"}},[e("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v("\n\t\t\t\t\t"+t._s(t.__("Save Changes"))+"\n\t\t\t\t")])],1)])])])}),[],!1,null,null,null).exports;const wt=b({mixins:[u],name:"v2-checkbox",props:["is_active","preloading","ticket_text"],mounted:function(){var t=this;jQuery("#v2_checkbox_size").on("change",(function(){t.$store.getters["recaptcha/dataV2Checkbox"].size=jQuery(this).val()})),jQuery("#v2_checkbox_style").on("change",(function(){t.$store.getters["recaptcha/dataV2Checkbox"].style=jQuery(this).val()}))}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-tab-content sui-tab-boxed",attrs:{id:"v2-checkbox-box","data-tab-content":"v2-checkbox-box"}},[e("p",{staticClass:"sui-p-small"},[t._v("\n "+t._s(t.__("Enter the API keys for reCAPTCHA v2 Checkbox type below."))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label",attrs:{for:"v2_captcha_key",id:"v2recaptcha-sitekey-label"}},[t._v(t._s(t.__("Site key")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.$store.getters["recaptcha/dataV2Checkbox"].key,expression:"$store.getters['recaptcha/dataV2Checkbox'].key"}],staticClass:"sui-form-control",attrs:{type:"text",name:"v2_captcha_key",placeholder:t.__("Enter your site key here"),id:"v2_captcha_key","aria-labelledby":"v2recaptcha-sitekey-label"},domProps:{value:t.$store.getters["recaptcha/dataV2Checkbox"].key},on:{input:function(e){e.target.composing||t.$set(t.$store.getters["recaptcha/dataV2Checkbox"],"key",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sui-form-field form-field-separator"},[e("label",{staticClass:"sui-label",attrs:{for:"v2_captcha_secret",id:"v2recaptcha-secretkey-label"}},[t._v(t._s(t.__("Secret Key")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.$store.getters["recaptcha/dataV2Checkbox"].secret,expression:"$store.getters['recaptcha/dataV2Checkbox'].secret"}],staticClass:"sui-form-control",attrs:{type:"text",name:"v2_captcha_secret",placeholder:t.__("Enter your secret key here"),id:"v2_captcha_secret","aria-labelledby":"v2recaptcha-secretkey-label"},domProps:{value:t.$store.getters["recaptcha/dataV2Checkbox"].secret},on:{input:function(e){e.target.composing||t.$set(t.$store.getters["recaptcha/dataV2Checkbox"],"secret",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("Style")))]),t._v(" "),e("p",{staticClass:"sui-description"},[t._v(t._s(t.__("Choose how you want your reCAPTCHA to be shown.")))]),t._v(" "),e("div",{staticClass:"sui-row"},[e("div",{staticClass:"sui-col"},[e("label",{staticClass:"sui-label",attrs:{for:"v2_checkbox_size"}},[t._v(t._s(t.__("Size")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.$store.getters["recaptcha/dataV2Checkbox"].size,expression:"$store.getters['recaptcha/dataV2Checkbox'].size"}],staticClass:"sui-select",attrs:{id:"v2_checkbox_size"},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.$set(t.$store.getters["recaptcha/dataV2Checkbox"],"size",e.target.multiple?s:s[0])}}},[e("option",{attrs:{value:"normal"}},[t._v(t._s(t.__("Normal")))]),t._v(" "),e("option",{attrs:{value:"compact"}},[t._v(t._s(t.__("Compact")))])])]),t._v(" "),e("div",{staticClass:"sui-col"},[e("label",{staticClass:"sui-label",attrs:{for:"v2_checkbox_style"}},[t._v(t._s(t.__("Theme")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.$store.getters["recaptcha/dataV2Checkbox"].style,expression:"$store.getters['recaptcha/dataV2Checkbox'].style"}],staticClass:"sui-select",attrs:{id:"v2_checkbox_style"},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.$set(t.$store.getters["recaptcha/dataV2Checkbox"],"style",e.target.multiple?s:s[0])}}},[e("option",{attrs:{value:"light"}},[t._v(t._s(t.__("Light")))]),t._v(" "),e("option",{attrs:{value:"dark"}},[t._v(t._s(t.__("Dark")))])])])])]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label mb-2"},[t._v(t._s(t.__("reCAPTCHA Preview")))]),t._v(" "),t.preloading?e("i",{staticClass:"sui-notice-icon sui-icon-loader sui-loading sui-md",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),e("div",{attrs:{id:"v2_checkbox-recaptcha-preview"}}),t._v(" "),t.is_active?e("p",{staticClass:"sui-p-small mt-2",attrs:{id:"v2_checkbox_notice_1"}},[t._v("\n "+t._s(t.__("If you see any errors in the preview, make sure the keys you've entered are valid, and you've listed your domain name while generating the keys."))+"\n ")]):t._e(),t._v(" "),e("p",{staticClass:"sui-p-small mt-2 wd-hide",attrs:{id:"v2_checkbox_notice_2"},domProps:{innerHTML:t._s(t.ticket_text)}})])])}),[],!1,null,null,null).exports;const xt=b({mixins:[u],name:"v2-invisible",props:["is_active","preloading","ticket_text"]},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-tab-content sui-tab-boxed",attrs:{id:"v2-invisible-box","data-tab-content":"v2-invisible-box"}},[e("p",{staticClass:"sui-p-small"},[t._v("\n "+t._s(t.__("Enter the API keys for reCAPTCHA V2 Invisible type below."))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label",attrs:{for:"v2_invisible_key",id:"v2invisible-sitekey-label"}},[t._v(t._s(t.__("Site key")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.$store.getters["recaptcha/dataV2Invisible"].key,expression:"$store.getters['recaptcha/dataV2Invisible'].key"}],staticClass:"sui-form-control",attrs:{type:"text",name:"v2_invisible_key",placeholder:t.__("Enter your site key here"),id:"v2_invisible_key","aria-labelledby":"v2invisible-sitekey-label"},domProps:{value:t.$store.getters["recaptcha/dataV2Invisible"].key},on:{input:function(e){e.target.composing||t.$set(t.$store.getters["recaptcha/dataV2Invisible"],"key",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sui-form-field form-field-separator"},[e("label",{staticClass:"sui-label",attrs:{for:"v2_invisible_secret",id:"v2invisible-secretkey-label"}},[t._v(t._s(t.__("Secret Key")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.$store.getters["recaptcha/dataV2Invisible"].secret,expression:"$store.getters['recaptcha/dataV2Invisible'].secret"}],staticClass:"sui-form-control",attrs:{type:"text",name:"v2_invisible_secret",placeholder:t.__("Enter your secret key here"),id:"v2_invisible_secret","aria-labelledby":"v2invisible-secretkey-label"},domProps:{value:t.$store.getters["recaptcha/dataV2Invisible"].secret},on:{input:function(e){e.target.composing||t.$set(t.$store.getters["recaptcha/dataV2Invisible"],"secret",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label mb-2"},[t._v(t._s(t.__("reCAPTCHA Preview")))]),t._v(" "),t.preloading?e("i",{staticClass:"sui-notice-icon sui-icon-loader sui-loading sui-md",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),e("div",{attrs:{id:"v2_invisible-recaptcha-preview"}}),t._v(" "),t.is_active?e("p",{staticClass:"sui-p-small mt-2",attrs:{id:"v2_invisible_notice_1"}},[t._v("\n "+t._s(t.__("If you see any errors in the preview, make sure the keys you've entered are valid, and you've listed your domain name while generating the keys."))+"\n ")]):t._e(),t._v(" "),e("p",{staticClass:"sui-p-small mt-2 wd-hide",attrs:{id:"v2_invisible_notice_2"},domProps:{innerHTML:t._s(t.ticket_text)}})])])}),[],!1,null,null,null).exports;const Ct=b({mixins:[u],name:"v2-checkbox",props:["is_active","preloading","ticket_text"],mounted:function(){var t=this;jQuery("#v3_recaptcha_threshold").on("change",(function(){t.$store.getters["recaptcha/dataV3Recaptcha"].threshold=jQuery(this).val()}))}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-tab-content sui-tab-boxed",attrs:{id:"v3-recaptcha-box","data-tab-content":"v3-recaptcha-box"}},[e("p",{staticClass:"sui-p-small"},[t._v("\n "+t._s(t.__("Enter the API keys for reCAPTCHA V3 type below."))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label",attrs:{for:"v3_recaptcha_key",id:"v3_recaptcha-sitekey-label"}},[t._v(t._s(t.__("Site key")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.$store.getters["recaptcha/dataV3Recaptcha"].key,expression:"$store.getters['recaptcha/dataV3Recaptcha'].key"}],staticClass:"sui-form-control",attrs:{type:"text",name:"v3_recaptcha_key",placeholder:t.__("Enter your site key here"),id:"v3_recaptcha_key","aria-labelledby":"v3_recaptcha-sitekey-label"},domProps:{value:t.$store.getters["recaptcha/dataV3Recaptcha"].key},on:{input:function(e){e.target.composing||t.$set(t.$store.getters["recaptcha/dataV3Recaptcha"],"key",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sui-form-field form-field-separator"},[e("label",{staticClass:"sui-label",attrs:{for:"v3_recaptcha_secret",id:"v3_recaptcha-secretkey-label"}},[t._v(t._s(t.__("Secret Key")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.$store.getters["recaptcha/dataV3Recaptcha"].secret,expression:"$store.getters['recaptcha/dataV3Recaptcha'].secret"}],staticClass:"sui-form-control",attrs:{type:"text",name:"v3_recaptcha_secret",placeholder:t.__("Enter your secret key here"),id:"v3_recaptcha_secret","aria-labelledby":"v3_recaptcha-secretkey-label"},domProps:{value:t.$store.getters["recaptcha/dataV3Recaptcha"].secret},on:{input:function(e){e.target.composing||t.$set(t.$store.getters["recaptcha/dataV3Recaptcha"],"secret",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sui-form-field form-field-separator"},[e("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("Score")))]),t._v(" "),e("p",{staticClass:"sui-description"},[t._v(t._s(t.__("reCAPTCHA v3 returns a score based on user interactions. Choose the score below which the verification should fail.")))]),t._v(" "),e("label",{staticClass:"sui-label",attrs:{for:"v3_recaptcha_threshold",id:"v3_recaptcha-threshold-label"}},[t._v(t._s(t.__("Score Threshold")))]),t._v(" "),e("div",{staticClass:"w-32"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.$store.getters["recaptcha/dataV3Recaptcha"].threshold,expression:"$store.getters['recaptcha/dataV3Recaptcha'].threshold"}],staticClass:"sui-select",attrs:{name:"v3_recaptcha_threshold",id:"v3_recaptcha_threshold","aria-labelledby":"v3_recaptcha-threshold-label"},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.$set(t.$store.getters["recaptcha/dataV3Recaptcha"],"threshold",e.target.multiple?s:s[0])}}},[e("option",{attrs:{value:"0"}},[t._v("0")]),t._v(" "),e("option",{attrs:{value:"0.2"}},[t._v("0.2")]),t._v(" "),e("option",{attrs:{value:"0.5"}},[t._v("0.5")]),t._v(" "),e("option",{attrs:{value:"0.8"}},[t._v("0.8")]),t._v(" "),e("option",{attrs:{value:"1"}},[t._v("1")])])]),t._v(" "),e("p",{staticClass:"sui-p-small"},[t._v(t._s(t.__("1 is very likely a good interaction, 0 is very likely a bot.")))])]),t._v(" "),e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label mb-2"},[t._v(t._s(t.__("reCAPTCHA Preview")))]),t._v(" "),t.preloading?e("i",{staticClass:"sui-notice-icon sui-icon-loader sui-loading sui-md",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),e("div",{attrs:{id:"v3_recaptcha-preview"}}),t._v(" "),t.is_active?e("p",{staticClass:"sui-p-small mt-2",attrs:{id:"v3_recaptcha_notice_1"}},[t._v("\n "+t._s(t.__("If you see any errors in the preview, make sure the keys you've entered are valid, and you've listed your domain name while generating the keys."))+"\n ")]):t._e(),t._v(" "),e("p",{staticClass:"sui-p-small mt-2 wd-hide",attrs:{id:"v3_recaptcha_notice_2"},domProps:{innerHTML:t._s(t.ticket_text)}})])])}),[],!1,null,null,null).exports;const kt=b({mixins:[u],name:"recaptcha-countries",props:["language"]},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-form-field w-56"},[e("label",{staticClass:"sui-label",attrs:{for:"recaptha_language",id:"rechaptcha-language-label"}},[t._v(t._s(t.__("Language")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.language,expression:"language"}],staticClass:"sui-select",attrs:{name:"recaptha_language",id:"recaptha_language","data-search":"true","aria-labelledby":"rechaptcha-language-label"},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.language=e.target.multiple?s:s[0]}}},[e("option",{attrs:{value:"automatic"}},[t._v(t._s(t.__("Automatic")))]),t._v(" "),e("option",{attrs:{value:"af"}},[t._v(t._s(t.__("Afrikaans")))]),t._v(" "),e("option",{attrs:{value:"am"}},[t._v(t._s(t.__("Amharic")))]),t._v(" "),e("option",{attrs:{value:"hy"}},[t._v(t._s(t.__("Armenian")))]),t._v(" "),e("option",{attrs:{value:"az"}},[t._v(t._s(t.__("Azerbaijani")))]),t._v(" "),e("option",{attrs:{value:"eu"}},[t._v(t._s(t.__("Basque")))]),t._v(" "),e("option",{attrs:{value:"bn"}},[t._v(t._s(t.__("Bengali")))]),t._v(" "),e("option",{attrs:{value:"bg"}},[t._v(t._s(t.__("Bulgarian")))]),t._v(" "),e("option",{attrs:{value:"ca"}},[t._v(t._s(t.__("Catalan")))]),t._v(" "),e("option",{attrs:{value:"zh-HK"}},[t._v(t._s(t.__("Chinese (Hong Kong) ")))]),t._v(" "),e("option",{attrs:{value:"zh-CN"}},[t._v(t._s(t.__("Chinese (Simplified)")))]),t._v(" "),e("option",{attrs:{value:"zh-TW"}},[t._v(t._s(t.__("Chinese (Traditional)")))]),t._v(" "),e("option",{attrs:{value:"hr"}},[t._v(t._s(t.__("Croatian")))]),t._v(" "),e("option",{attrs:{value:"cs"}},[t._v(t._s(t.__("Czech")))]),t._v(" "),e("option",{attrs:{value:"da"}},[t._v(t._s(t.__("Danish")))]),t._v(" "),e("option",{attrs:{value:"nl"}},[t._v(t._s(t.__("Dutch")))]),t._v(" "),e("option",{attrs:{value:"en-GB"}},[t._v(t._s(t.__("English"))+" (UK)")]),t._v(" "),e("option",{attrs:{value:"en"}},[t._v(t._s(t.__("English"))+" (US)")]),t._v(" "),e("option",{attrs:{value:"et"}},[t._v(t._s(t.__("Estonian")))]),t._v(" "),e("option",{attrs:{value:"fil"}},[t._v(t._s(t.__("Filipino")))]),t._v(" "),e("option",{attrs:{value:"fi"}},[t._v(t._s(t.__("Finnish")))]),t._v(" "),e("option",{attrs:{value:"fr"}},[t._v(t._s(t.__("French")))]),t._v(" "),e("option",{attrs:{value:"fr-CA"}},[t._v(t._s(t.__("French"))+" (Canadian)")]),t._v(" "),e("option",{attrs:{value:"gl"}},[t._v(t._s(t.__("Galician")))]),t._v(" "),e("option",{attrs:{value:"ka"}},[t._v(t._s(t.__("Georgian")))]),t._v(" "),e("option",{attrs:{value:"de"}},[t._v(t._s(t.__("German")))]),t._v(" "),e("option",{attrs:{value:"de-AT"}},[t._v(t._s(t.__("German"))+" (Austria)")]),t._v(" "),e("option",{attrs:{value:"de-CH"}},[t._v(t._s(t.__("German"))+" (Switzerland)")]),t._v(" "),e("option",{attrs:{value:"el"}},[t._v(t._s(t.__("Greek")))]),t._v(" "),e("option",{attrs:{value:"gu"}},[t._v(t._s(t.__("Gujarati")))]),t._v(" "),e("option",{attrs:{value:"iw"}},[t._v(t._s(t.__("Hebrew")))]),t._v(" "),e("option",{attrs:{value:"hi"}},[t._v(t._s(t.__("Hindi")))]),t._v(" "),e("option",{attrs:{value:"hu"}},[t._v(t._s(t.__("Hungarain")))]),t._v(" "),e("option",{attrs:{value:"is"}},[t._v(t._s(t.__("Icelandic")))]),t._v(" "),e("option",{attrs:{value:"id"}},[t._v(t._s(t.__("Indonesian")))]),t._v(" "),e("option",{attrs:{value:"it"}},[t._v(t._s(t.__("Italian")))]),t._v(" "),e("option",{attrs:{value:"ja"}},[t._v(t._s(t.__("Japanese")))]),t._v(" "),e("option",{attrs:{value:"kn"}},[t._v(t._s(t.__("Kannada")))]),t._v(" "),e("option",{attrs:{value:"ko"}},[t._v(t._s(t.__("Korean")))]),t._v(" "),e("option",{attrs:{value:"lo"}},[t._v(t._s(t.__("Laothian")))]),t._v(" "),e("option",{attrs:{value:"lv"}},[t._v(t._s(t.__("Latvian")))]),t._v(" "),e("option",{attrs:{value:"lt"}},[t._v(t._s(t.__("Lithuanian")))]),t._v(" "),e("option",{attrs:{value:"ms"}},[t._v(t._s(t.__("Malay")))]),t._v(" "),e("option",{attrs:{value:"ml"}},[t._v(t._s(t.__("Malayalam")))]),t._v(" "),e("option",{attrs:{value:"mr"}},[t._v(t._s(t.__("Marathi")))]),t._v(" "),e("option",{attrs:{value:"mn"}},[t._v(t._s(t.__("Mongolian")))]),t._v(" "),e("option",{attrs:{value:"no"}},[t._v(t._s(t.__("Norwegian")))]),t._v(" "),e("option",{attrs:{value:"fa"}},[t._v(t._s(t.__("Persian")))]),t._v(" "),e("option",{attrs:{value:"pl"}},[t._v(t._s(t.__("Polish")))]),t._v(" "),e("option",{attrs:{value:"pt"}},[t._v(t._s(t.__("Portuguese")))]),t._v(" "),e("option",{attrs:{value:"pt-BR"}},[t._v(t._s(t.__("Portuguese"))+" (Brazil)")]),t._v(" "),e("option",{attrs:{value:"pt-PT"}},[t._v(t._s(t.__("Portuguese"))+" (Portugal)")]),t._v(" "),e("option",{attrs:{value:"ro"}},[t._v(t._s(t.__("Romanian")))]),t._v(" "),e("option",{attrs:{value:"ru"}},[t._v(t._s(t.__("Russian")))]),t._v(" "),e("option",{attrs:{value:"rs"}},[t._v(t._s(t.__("Serbian")))])])])}),[],!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 Pt(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 jt(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(s),!0).forEach((function(e){At(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Pt(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function At(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}var Ot=b({mixins:[u],name:"deactivate-modal",props:["is_active"],methods:jt(jt({},z("AnalyticsTracking",["trackFeature"])),{},{handleResult:function(){this.$store.dispatch("recaptcha/toggle"),this.trackFeature({event:"def_feature_deactivated",data:{Feature:"Google reCAPTCHA","Triggered From":"Feature page"}})}})},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-modal sui-modal-sm"},[e("div",{staticClass:"sui-modal-content sui-content-fade-out",attrs:{role:"dialog",id:"deactivate-recaptcha","aria-modal":"true","ria-labelledby":"deactivate-recaptcha-title","aria-describedby":"deactivate-recaptcha-desc"}},[e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},[e("button",{staticClass:"sui-button-icon sui-button-float--right",attrs:{"data-modal-close":""}},[e("span",{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:"deactivate-recaptcha-title"}},[t._v(t._s(t.__("Deactivate Google reCAPTCHA")))]),t._v(" "),e("p",{staticClass:"sui-description",attrs:{id:"deactivate-recaptcha-desc"}},[t._v("\n "+t._s(t.__("Are you sure you want to deactivate Google reCAPTCHA? You can turn it on again at any time."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-footer sui-flatten sui-content-center"},[e("button",{staticClass:"sui-button sui-button-ghost",attrs:{"data-modal-close":""}},[t._v(t._s(t.__("Cancel")))]),t._v(" "),e("button",{staticClass:"sui-button sui-button-red sui-button-ghost",attrs:{"data-modal-close":""},on:{click:t.handleResult}},[e("span",{staticClass:"sui-icon-power-on-off",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.__("Deactivate"))+"\n ")])])])])])}),[],!1,null,null,null);function Tt(t){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt(t)}function Et(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 Rt(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?Et(Object(s),!0).forEach((function(e){Nt(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Et(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function Nt(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=Tt(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=Tt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Tt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const $t=b({components:{Sidetab:w,SubmitButton2:y,"v2-checkbox":wt,"v2-invisible":xt,"v3-recaptcha":Ct,"recaptcha-countries":kt,"deactivate-modal":Ot.exports},mixins:[u],name:"recaptcha",computed:Rt(Rt({},h("recaptcha",["model.enabled","model.active_type","model.data_v2_checkbox","model.data_v2_invisible","model.data_v3_recaptcha","model.language","model.message","model.locations","model.woo_checked_locations","model.detect_woo","model.buddypress_checked_locations","model.detect_buddypress","model.disable_for_known_users","is_active","default_locations","woo_locations","buddypress_locations","default_message","notice_type","notice_text","ticket_text","is_woo_active","is_buddypress_active","preloading","exist_error_notice","error_keys"])),{},{description_text:function(){return this.vsprintf(this.__("<a href='%s' target='_blank'>Click here</a> to create your Google reCAPTCHA keys. Note that each reCAPTCHA type requires a different set of API keys."),"https://www.google.com/recaptcha/admin#list")},notice_for_deactivated_plugin_locations:function(){return this.__("Please select at least one option.")}}),mounted:function(){var t=this;jQuery("#recaptha_language").on("change",(function(){t.$store.state.recaptcha.model.language=jQuery(this).val()}))},beforeMount:function(){this.enabled&&this.$store.dispatch("recaptcha/previewTypes")},methods:Rt({handleResult:function(){this.$store.dispatch("recaptcha/toggle"),this.trackFeature({event:"def_feature_activated",data:{Feature:"Google reCAPTCHA","Triggered From":"Feature page"}})},displayErrorNotice:function(t){var e=this.$store.getters["recaptcha/getErrorKeys"];return!0===this.exist_error_notice&&e.length>0&&e.includes(t)},isCheckoutChecked:function(){var t=this.woo_checked_locations;return t.length>0&&t.includes("woo_checkout")}},z("AnalyticsTracking",["trackFeature"]))},(function(){var t=this,e=t._self._c;return!1===t.enabled?e("div",{staticClass:"sui-box",attrs:{id:"recaptcha-disabled"}},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.__("Google reCAPTCHA"))+"\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.__("Set up a human verification system to keep malicious software from engaging in abusive activities on your website while helping your legitimate users to enter with ease."))+"\n ")]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.handleResult.apply(null,arguments)}}},[e("submit-button2",{attrs:{action:"toggle","css-class":"sui-button-blue activate"}},[t._v("\n "+t._s(t.__("Activate"))+"\n ")])],1)])])]):e("div",{staticClass:"sui-box",attrs:{id:"recaptcha-enabled"}},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.__("Google reCAPTCHA"))+"\n ")])]),t._v(" "),e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("recaptcha/saveSettings")}}},[e("div",{staticClass:"sui-box-body"},[e("p",[t._v("\n "+t._s(t.__("Set up a human verification system to keep malicious software from engaging in abusive activities on your website while helping your legitimate users to enter with ease."))+"\n ")]),t._v(" "),e("div",{staticClass:"sui-notice",class:"warning"===t.notice_type?"sui-notice-warning":"sui-notice-success"},[e("div",{staticClass:"sui-notice-content"},[e("div",{staticClass:"sui-notice-message"},[e("i",{staticClass:"sui-notice-icon sui-md",class:"warning"===t.notice_type?"sui-icon-info":"sui-icon-check-tick",attrs:{"aria-hidden":"true"}}),t._v(" "),e("p",{domProps:{innerHTML:t._s(t.notice_text)}})])])]),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.__("Configure reCAPTCHA"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Choose the reCAPTCHA type you want to use in your forms and enter your Site and Secret keys for use throughout the plugin."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field"},[e("span",{staticClass:"sui-description mb-3 mt-0",domProps:{innerHTML:t._s(t.description_text)}}),t._v(" "),e("sidetab",{attrs:{slug:"",active:t.active_type,labels:[{text:t.__("V2 Checkbox"),mute:!1,value:"v2_checkbox"},{text:t.__("V2 Invisible"),mute:!1,value:"v2_invisible"},{text:t.__("reCAPTCHA V3"),mute:!1,value:"v3_recaptcha"}]},on:{selected:function(e){t.active_type=e}},scopedSlots:t._u([{key:"v2_checkbox",fn:function(){return[e("v2-checkbox",{attrs:{is_active:t.is_active,preloading:t.preloading,ticket_text:t.ticket_text}})]},proxy:!0},{key:"v2_invisible",fn:function(){return[e("v2-invisible",{attrs:{is_active:t.is_active,preloading:t.preloading,ticket_text:t.ticket_text}})]},proxy:!0},{key:"v3_recaptcha",fn:function(){return[e("v3-recaptcha",{attrs:{is_active:t.is_active,preloading:t.preloading,ticket_text:t.ticket_text}})]},proxy:!0}])})],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.__("Language"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("By default, we'll show the reCAPTCHA in your website's language."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("recaptcha-countries",{attrs:{language:t.language}})],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.__("Error Message"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Choose the error message you want to display on your form when reCAPTCHA verification fails."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label",attrs:{for:"error_message",id:"error_message-label"}},[t._v(t._s(t.__("Error Message")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.message,expression:"message"}],staticClass:"sui-form-control",attrs:{type:"text",name:"error_message",id:"error_message",placeholder:t.default_message,"aria-labelledby":"error_message-label"},domProps:{value:t.message},on:{input:function(e){e.target.composing||(t.message=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._s(t.__("reCAPTCHA Locations"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Choose the forms for which reCAPTCHA human verification system will be deployed."))+"\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 font-bold leading-22px"},[t._v("\n "+t._s(t.__("Locations"))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-field-list-body"},t._l(t.default_locations,(function(s,i){return e("div",{staticClass:"sui-field-list-item"},[e("label",{staticClass:"sui-field-list-item-label text-base font-medium leading-22px",attrs:{for:"toggle_"+i}},[t._v(t._s(s))]),t._v(" "),e("label",{staticClass:"sui-toggle"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.locations,expression:"locations"}],attrs:{type:"checkbox",id:"toggle_"+i},domProps:{value:i,checked:Array.isArray(t.locations)?t._i(t.locations,i)>-1:t.locations},on:{change:function(e){var s=t.locations,r=e.target,o=!!r.checked;if(Array.isArray(s)){var n=i,a=t._i(s,n);r.checked?a<0&&(t.locations=s.concat([n])):a>-1&&(t.locations=s.slice(0,a).concat(s.slice(a+1)))}else t.locations=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.__("WooCommerce"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Enable reCAPTCHA in order to validate visitors to your WooCommerce store pages."))+"\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:!1===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,r=!!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=r}}}),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 reCAPTCHA 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(" "),t.is_woo_active&&t.detect_woo?e("div",[e("div",{staticClass:"sui-border-frame sui-toggle-content margin-bottom-10"},[e("p",{staticClass:"sui-p-small margin-bottom-15"},[t._v("\n "+t._s(t.__("Select the forms in which reCAPTCHA will be deployed."))+"\n ")]),t._v(" "),t._l(t.woo_locations,(function(s,i){return e("label",{staticClass:"sui-checkbox sui-checkbox-stacked sui-checkbox-sm",attrs:{for:"toggle_"+i}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.woo_checked_locations,expression:"woo_checked_locations"}],attrs:{type:"checkbox","aria-labelledby":"label_"+i,id:"toggle_"+i},domProps:{value:i,checked:Array.isArray(t.woo_checked_locations)?t._i(t.woo_checked_locations,i)>-1:t.woo_checked_locations},on:{change:function(e){var s=t.woo_checked_locations,r=e.target,o=!!r.checked;if(Array.isArray(s)){var n=i,a=t._i(s,n);r.checked?a<0&&(t.woo_checked_locations=s.concat([n])):a>-1&&(t.woo_checked_locations=s.slice(0,a).concat(s.slice(a+1)))}else t.woo_checked_locations=o}}}),t._v(" "),e("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{attrs:{id:"label_"+i}},[t._v(t._s(s))])])})),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isCheckoutChecked(),expression:"isCheckoutChecked()"}],staticClass:"sui-notice sui-notice-warning",style:{marginLeft:"26px"}},[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.__("This feature supports only the [woocommerce_checkout] shortcode.")))])])])]),t._v(" "),t.displayErrorNotice("enable_woo")?e("div",{staticClass:"sui-notice sui-notice-red"},[e("div",{staticClass:"sui-notice-content"},[e("div",{staticClass:"sui-notice-message"},[e("i",{staticClass:"sui-notice-icon sui-md sui-icon-info",attrs:{"aria-hidden":"true"}}),t._v(" "),e("p",{domProps:{innerHTML:t._s(t.notice_for_deactivated_plugin_locations)}})])])]):t._e()],2),t._v(" "),e("p",{staticClass:"sui-description sui-toggle-content no-margin-top"},[t._v("\n "+t._s(t.__("Note: You must select at least one of the forms listed above."))+"\n ")])]):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.__("BuddyPress"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Enable reCAPTCHA in order to validate visitors to your BuddyPress pages."))+"\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_buddypress,expression:"detect_buddypress"}],attrs:{type:"checkbox",id:"detect_buddypress",disabled:!1===t.is_buddypress_active,name:"detect_buddypress"},domProps:{checked:Array.isArray(t.detect_buddypress)?t._i(t.detect_buddypress,null)>-1:t.detect_buddypress},on:{change:function(e){var s=t.detect_buddypress,i=e.target,r=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&(t.detect_buddypress=s.concat([null])):o>-1&&(t.detect_buddypress=s.slice(0,o).concat(s.slice(o+1)))}else t.detect_buddypress=r}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider"}),t._v(" "),e("span",{staticClass:"sui-toggle-label",attrs:{for:"detect_buddypress"}},[t._v("\n "+t._s(t.__("Enable reCAPTCHA for BuddyPress"))+"\n ")]),t._v(" "),t.is_buddypress_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.__("BuddyPress must be active to use this feature.")))])])])])]),t._v(" "),t.is_buddypress_active&&t.detect_buddypress?e("div",[e("div",{staticClass:"sui-border-frame sui-toggle-content margin-bottom-10"},[e("p",{staticClass:"sui-p-small margin-bottom-15"},[t._v("\n "+t._s(t.__("Select the forms in which reCAPTCHA will be deployed."))+"\n ")]),t._v(" "),t._l(t.buddypress_locations,(function(s,i){return e("label",{staticClass:"sui-checkbox sui-checkbox-stacked sui-checkbox-sm",attrs:{for:"toggle_"+i}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.buddypress_checked_locations,expression:"buddypress_checked_locations"}],attrs:{type:"checkbox","aria-labelledby":"label_"+i,id:"toggle_"+i},domProps:{value:i,checked:Array.isArray(t.buddypress_checked_locations)?t._i(t.buddypress_checked_locations,i)>-1:t.buddypress_checked_locations},on:{change:function(e){var s=t.buddypress_checked_locations,r=e.target,o=!!r.checked;if(Array.isArray(s)){var n=i,a=t._i(s,n);r.checked?a<0&&(t.buddypress_checked_locations=s.concat([n])):a>-1&&(t.buddypress_checked_locations=s.slice(0,a).concat(s.slice(a+1)))}else t.buddypress_checked_locations=o}}}),t._v(" "),e("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{attrs:{id:"label_"+i}},[t._v(t._s(s))])])})),t._v(" "),t.displayErrorNotice("enable_buddypress")?e("div",{staticClass:"sui-notice sui-notice-red"},[e("div",{staticClass:"sui-notice-content"},[e("div",{staticClass:"sui-notice-message"},[e("i",{staticClass:"sui-notice-icon sui-md sui-icon-info",attrs:{"aria-hidden":"true"}}),t._v(" "),e("p",{domProps:{innerHTML:t._s(t.notice_for_deactivated_plugin_locations)}})])])]):t._e()],2),t._v(" "),e("p",{staticClass:"sui-description sui-toggle-content no-margin-top"},[t._v("\n "+t._s(t.__("Note: Select at least one form."))+"\n ")])]):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.__("Disable for logged in users"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("Disable reCAPTCHA for logged in users."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-checkbox",attrs:{for:"disable_for_known_users"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.disable_for_known_users,expression:"disable_for_known_users"}],attrs:{type:"checkbox",id:"disable_for_known_users",name:"disable_for_known_users","aria-labelledby":"label-disable_for_known_users"},domProps:{checked:Array.isArray(t.disable_for_known_users)?t._i(t.disable_for_known_users,null)>-1:t.disable_for_known_users},on:{change:function(e){var s=t.disable_for_known_users,i=e.target,r=!!i.checked;if(Array.isArray(s)){var o=t._i(s,null);i.checked?o<0&&(t.disable_for_known_users=s.concat([null])):o>-1&&(t.disable_for_known_users=s.slice(0,o).concat(s.slice(o+1)))}else t.disable_for_known_users=r}}}),t._v(" "),e("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{attrs:{id:"label-disable_for_known_users"}},[t._v("\n "+t._s(t.__("Disable reCAPTCHA verification for logged in users"))+"\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._s(t.__("Deactivate"))+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v("\n "+t._s(t.__("If you no longer want to add reCAPTCHA you can turn it off. You can activate again at any time."))+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[e("submit-button2",{attrs:{action:"toggle","css-class":"sui-button-ghost","data-modal-open":"deactivate-recaptcha","data-esc-close":"true",type:"button"}},[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("deactivate-modal")],1)}),[],!1,null,null,null).exports;const Lt=b({name:"StackedCheckboxes",inheritAttrs:!1,props:{options:{type:Object,required:!0},value:{type:Array,default:function(){return[]}},description:{type:String,default:""},feature:{type:String,required:!0},disabledOptions:{type:Array,default:function(){return["administrator"]}}},computed:{model:{get:function(){return Array.isArray(this.value)?this.value:[]},set:function(t){this.$emit("input",t)}},optionKeys:function(){return Object.keys(this.options)},lastOptionKey:function(){return this.optionKeys[this.optionKeys.length-1]}},methods:{getId:function(t){return"".concat(this.feature,"-toggle-").concat(t)},isDisabled:function(t){return this.disabledOptions.includes(t)}}},(function(){var t=this,e=t._self._c;return e("div",t._b({},"div",t.$attrs,!1),[e("p",{staticClass:"sui-description mb-18px"},[t._t("description",(function(){return[t._v("\n "+t._s(t.description)+"\n ")]}))],2),t._v(" "),e("div",{staticClass:"sui-form-field"},t._l(t.options,(function(s,i){return e("label",{key:i,staticClass:"sui-checkbox sui-checkbox-stacked",class:{"mb-15px":i!==t.lastOptionKey},attrs:{for:t.getId(i)}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],attrs:{id:t.getId(i),type:"checkbox",disabled:t.isDisabled(i),"aria-labelledby":t.getId(i)},domProps:{value:i,checked:Array.isArray(t.model)?t._i(t.model,i)>-1:t.model},on:{change:function(e){var s=t.model,r=e.target,o=!!r.checked;if(Array.isArray(s)){var n=i,a=t._i(s,n);r.checked?a<0&&(t.model=s.concat([n])):a>-1&&(t.model=s.slice(0,a).concat(s.slice(a+1)))}else t.model=o}}}),t._v(" "),e("span",{staticClass:"sui-checkbox-icon",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"flex flex-col gap-7px"},[e("span",{staticClass:"sui-checkbox-label",attrs:{id:t.getId(i)}},[t._v(t._s(s))])])])})),0)])}),[],!1,null,null,null).exports;function Dt(t){return Dt="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},Dt(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 Ht(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){Ut(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 Ut(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=Dt(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=Dt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Dt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const Mt=b({name:"PasswordReset",components:{RoleSelection:Lt,SubmitButton2:y},mixins:[u],data:function(){return{strings:{forceResetPassword:this.__("Force Reset Password"),undoForceReset:this.__("Undo force password reset"),closeDialog:this.__("Close this dialog."),selectUserRoles:this.__("Select the user roles to force password reset for."),allUserRoles:this.__("All Users Roles"),selectedRoles:this.__("Selected Roles"),adminRoleInfo:this.__("Choose the user roles you want to enable strong password checks for. The Administrator role is enabled by default and can't be disabled. "),customMessageLabel:this.__("Customize message"),cancel:this.__("Cancel"),resetPasswords:this.__("Reset Passwords"),passwordsResetInfo:this.__("Passwords created before %s are required to be reset.")}}},computed:Ht(Ht({},h("password_reset",["model.message","model.user_roles","model.role_type","model.expire_force","all_roles","reset_last","default_message"])),{},{noticeMessage:function(){return this.vsprintf(this.strings.passwordsResetInfo,this.reset_last)}}),methods:Ht({forceResult:function(){this.$store.dispatch("password_reset/forceReset"),this.trackFeature({event:"def_feature_activated",data:{Feature:"Password Reset","Triggered From":"Feature page"}})},undoResult:function(){this.$store.dispatch("password_reset/undoReset"),this.trackFeature({event:"def_feature_deactivated",data:{Feature:"Password Reset","Triggered From":"Feature page"}})}},z("AnalyticsTracking",["trackFeature"]))},(function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"password-reset-enabled"}},[e("submit-button2",{attrs:{type:"button","css-class":"sui-button-ghost mb-20px","data-modal-open":"reset-password-confirm","data-modal-mask":"false","data-esc-close":"true"}},[t._v("\n "+t._s(t.strings.forceResetPassword)+"\n ")]),t._v(" "),t.expire_force?e("div",{staticClass:"sui-notice"},[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",{domProps:{textContent:t._s(t.noticeMessage)}}),t._v(" "),e("a",{staticClass:"font-normal text-base",attrs:{href:"#"},domProps:{textContent:t._s(t.strings.undoForceReset)},on:{click:function(e){return e.preventDefault(),t.undoResult.apply(null,arguments)}}})])])]):t._e(),t._v(" "),e("div",{staticClass:"sui-modal sui-modal-sm"},[e("div",{staticClass:"sui-modal-content",attrs:{id:"reset-password-confirm",role:"dialog","aria-modal":"true","aria-labelledby":"modal-reset-data-confirm","aria-describedby":"modal-reset-data-confirm"}},[e("div",{staticClass:"sui-box",attrs:{role:"document"}},[e("div",{staticClass:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},[e("h3",{staticClass:"sui-box-title sui-lg",domProps:{textContent:t._s(t.strings.forceResetPassword)}}),t._v(" "),e("button",{staticClass:"sui-button-icon sui-button-float--right",attrs:{type:"button","data-modal-close":""}},[e("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-screen-reader-text",domProps:{textContent:t._s(t.strings.closeDialog)}})]),t._v(" "),e("p",{staticClass:"sui-description",domProps:{textContent:t._s(t.strings.selectUserRoles)}})]),t._v(" "),e("div",{staticClass:"sui-box-body"},[e("div",{staticClass:"sui-tabs sui-side-tabs"},[e("div",{staticClass:"sui-tabs-menu",attrs:{role:"tablist"}},[e("button",{staticClass:"sui-tab-item active",attrs:{id:"all-roles",type:"button",role:"tab","aria-controls":"all-roles-content","aria-selected":"true"},domProps:{textContent:t._s(t.strings.allUserRoles)}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.role_type,expression:"role_type"}],staticClass:"sui-screen-reader-text",attrs:{type:"radio",name:"role-tabs",value:"all","aria-label":t.strings.allUserRoles,"aria-hidden":"true"},domProps:{checked:t._q(t.role_type,"all")},on:{change:function(e){t.role_type="all"}}}),t._v(" "),e("button",{staticClass:"sui-tab-item",attrs:{id:"select-roles",type:"button",role:"tab","aria-controls":"select-roles-content","aria-selected":"false",tabindex:"-1"},domProps:{textContent:t._s(t.strings.selectedRoles)}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.role_type,expression:"role_type"}],staticClass:"sui-screen-reader-text",attrs:{type:"radio",name:"role-tabs","aria-label":t.strings.selectedRoles,"aria-hidden":"true"},domProps:{checked:t._q(t.role_type,null)},on:{change:function(e){t.role_type=null}}})]),t._v(" "),e("div",{staticClass:"sui-tabs-content"},[e("div",{staticClass:"sui-tab-content",attrs:{id:"select-roles-content",role:"tabpanel","aria-labelledby":"select-roles",tabindex:"0",hidden:""}},[e("role-selection",{staticClass:"sui-border-frame",attrs:{options:t.all_roles,description:t.strings.adminRoleInfo,feature:"password-reset"},model:{value:t.user_roles,callback:function(e){t.user_roles=e},expression:"user_roles"}})],1)])]),t._v(" "),e("div",{staticClass:"sui-form-field sui-no-margin-bottom"},[e("label",{staticClass:"sui-label",attrs:{id:"label-password-reset-message",for:"password-reset-message"},domProps:{textContent:t._s(t.strings.customMessageLabel)}}),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.message,expression:"message"}],staticClass:"sui-form-control",attrs:{id:"password-reset-message",placeholder:t.default_message,"aria-labelledby":"label-password-reset-message","aria-describedby":"error-force-password-message description-force-password-message",rows:"3"},domProps:{value:t.message},on:{input:function(e){e.target.composing||(t.message=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"sui-box-footer sui-flatten sui-content-separated"},[e("button",{staticClass:"sui-button sui-button-ghost",attrs:{type:"button","data-modal-close":""},domProps:{textContent:t._s(t.strings.cancel)}}),t._v(" "),e("submit-button2",{attrs:{type:"button",action:"force_reset"},on:{click:t.forceResult}},[e("span",{staticClass:"sui-icon-update",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.strings.resetPasswords)+"\n ")])],1)])])])],1)}),[],!1,null,null,null).exports;const Ft=b({name:"AccordionItem",props:{title:{type:String,required:!0}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-accordion-item"},[e("div",{staticClass:"sui-accordion-item-header"},[e("div",{staticClass:"sui-accordion-item-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t._m(0)]),t._v(" "),e("div",{staticClass:"sui-accordion-item-body"},[e("div",{staticClass:"sui-box"},[t._t("default")],2)])])}),[function(){var t=this._self._c;return t("div",[t("button",{staticClass:"sui-button-icon sui-accordion-open-indicator",attrs:{"aria-label":"Open item"}},[t("span",{staticClass:"sui-icon-chevron-down",attrs:{"aria-hidden":"true"}})])])}],!1,null,null,null).exports;const Bt=b({name:"ToggleFeature",props:{feature:{type:String,required:!0},label:{type:String,required:!0},value:{type:Boolean,required:!0}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-toggle mb-10px",attrs:{for:"toggle-".concat(this.feature)}},[e("input",{attrs:{id:"toggle-".concat(this.feature),type:"checkbox"},domProps:{checked:t.value},on:{input:function(e){return t.$emit("input",e.target.checked)}}}),t._v(" "),e("span",{staticClass:"sui-toggle-slider",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{staticClass:"sui-toggle-label"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"sui-toggle-content"},[t._t("default")],2)])}),[],!1,null,null,null).exports;const qt=b({name:"CustomMessageInput",props:{feature:{type:String,required:!0},label:{type:String,required:!0},description:{type:String,default:""},value:{type:String,default:""},placeholder:{type:String,default:""}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-box-body"},[t.description?e("p",{staticClass:"sui-description mb-18px",domProps:{textContent:t._s(t.description)}}):t._e(),t._v(" "),e("div",{staticClass:"sui-form-field sui-no-margin-bottom"},[e("label",{staticClass:"sui-label",attrs:{id:"".concat(t.feature,"-message-label"),for:"".concat(t.feature,"-message-textarea")},domProps:{textContent:t._s(t.label)}}),t._v(" "),e("textarea",{staticClass:"sui-form-control",attrs:{id:"".concat(t.feature,"-message-textarea"),placeholder:t.placeholder,"aria-describedby":"".concat(t.feature,"-message-error ").concat(t.feature,"-message-description"),"aria-labelledby":"".concat(t.feature,"-message-label"),rows:"4"},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})])])}),[],!1,null,null,null).exports;function Vt(t){return Vt="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},Vt(t)}function zt(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 Gt(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=Vt(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=Vt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Vt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const Wt=b({name:"StrongPassword",components:{ToggleFeature:Bt,AccordionItem:Ft,RoleSelection:Lt,CustomMessageInput:qt},mixins:[u],data:function(){return{title:this.__("Enforce Strong Passwords"),user_role_title:this.__("User Roles"),user_role_description:this.__("Choose the user roles you want to enable strong password checks for. The Administrator role is enabled by default and can't be disabled."),custom_message_title:this.__("Customize message"),custom_message_description:this.__("Customize the message shown to users when a weak password is detected."),custom_message_label:this.__("Custom message")}},computed:function(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?zt(Object(s),!0).forEach((function(e){Gt(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):zt(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}({},h("strong_password",["model.enabled","model.message","model.user_roles","all_roles"]))},(function(){var t=this,e=t._self._c;return e("toggle-feature",{attrs:{label:t.title,feature:"strong-password"},model:{value:t.enabled,callback:function(e){t.enabled=e},expression:"enabled"}},[e("div",{staticClass:"sui-accordion mb-10px"},[e("accordion-item",{attrs:{title:t.user_role_title}},[e("role-selection",{staticClass:"sui-box-body",attrs:{description:t.user_role_description,options:t.all_roles,feature:"strong-password"},model:{value:t.user_roles,callback:function(e){t.user_roles=e},expression:"user_roles"}})],1),t._v(" "),e("accordion-item",{attrs:{title:t.custom_message_title}},[e("custom-message-input",{attrs:{feature:"strong-password",description:t.custom_message_description,label:t.custom_message_label,placeholder:t.default_message},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}})],1)],1)])}),[],!1,null,null,null).exports;function Qt(t){return Qt="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},Qt(t)}function Kt(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 Jt(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(s),!0).forEach((function(e){Xt(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Kt(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function Xt(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=Qt(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=Qt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const Yt=b({name:"PasswordProtection",components:{ToggleFeature:Bt,RoleSelection:Lt,AccordionItem:Ft,CustomMessageInput:qt},mixins:[u],data:function(){return{title:this.__("Prevent Pwned password usage"),user_role_title:this.__("User Roles"),user_role_description:this.__("Choose the user roles you want to enable pwned password checks for. The Administrator role is enabled by default and can't be disabled."),custom_message_title:this.__("Customize message"),custom_message_description:this.__("Customize the message shown to users when a Pwned password is detected."),custom_message_label:this.__("Custom message")}},computed:Jt(Jt({},h("password_protection",["model.enabled","model.user_roles","model.pwned_actions.force_change_message","all_roles","default_message"])),{},{footer_credit:function(){return this.vsprintf(this.__("Passwords are checked with %1$sHave I Been Pwned API%2$s."),'<strong><a class="text-gray-400" href="https://haveibeenpwned.com/API/v3#License" target="_blank">',"</a></strong>")}})},(function(){var t=this,e=t._self._c;return e("toggle-feature",{attrs:{label:t.title,feature:"pwned-password"},model:{value:t.enabled,callback:function(e){t.enabled=e},expression:"enabled"}},[e("div",{staticClass:"sui-accordion mb-10px"},[e("accordion-item",{attrs:{title:t.user_role_title}},[e("role-selection",{staticClass:"sui-box-body",attrs:{description:t.user_role_description,options:t.all_roles,feature:"pwned-password"},model:{value:t.user_roles,callback:function(e){t.user_roles=e},expression:"user_roles"}})],1),t._v(" "),e("accordion-item",{attrs:{title:t.custom_message_title}},[e("custom-message-input",{attrs:{feature:"pwned-password",description:t.custom_message_description,label:t.custom_message_label,placeholder:t.default_message},model:{value:t.force_change_message,callback:function(e){t.force_change_message=e},expression:"force_change_message"}})],1)],1),t._v(" "),e("span",{staticClass:"sui-description italic",domProps:{innerHTML:t._s(t.footer_credit)}})])}),[],!1,null,null,null).exports;const Zt=b({name:"SettingRow",mixins:[u],props:{label:{type:String,required:!0},description:{type:String,required:!0}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-box-settings-row sui-flushed"},[e("div",{staticClass:"sui-box-settings-col-1"},[e("div",{staticClass:"sui-settings-label"},[t._v("\n "+t._s(t.label)+"\n ")]),t._v(" "),e("span",{staticClass:"sui-description"},[t._v(t._s(t.description))])]),t._v(" "),e("div",{staticClass:"sui-box-settings-col-2"},[t._t("default")],2)])}),[],!1,null,null,null).exports;function te(t){return te="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},te(t)}function ee(){ee=function(){return e};var t,e={},s=Object.prototype,i=s.hasOwnProperty,r=Object.defineProperty||function(t,e,s){t[e]=s.value},o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,s){return Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,s){return t[e]=s}}function u(t,e,s,i){var o=e&&e.prototype instanceof h?e:h,n=Object.create(o.prototype),a=new T(i||[]);return r(n,"_invoke",{value:P(t,s,a)}),n}function d(t,e,s){try{return{type:"normal",arg:t.call(e,s)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var _="suspendedStart",p="suspendedYield",f="executing",m="completed",v={};function h(){}function g(){}function b(){}var y={};l(y,n,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(E([])));x&&x!==s&&i.call(x,n)&&(y=x);var C=b.prototype=h.prototype=Object.create(y);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function s(r,o,n,a){var c=d(t[r],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==te(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){s("next",t,n,a)}),(function(t){s("throw",t,n,a)})):e.resolve(u).then((function(t){l.value=t,n(l)}),(function(t){return s("throw",t,n,a)}))}a(c.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){s(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function P(e,s,i){var r=_;return function(o,n){if(r===f)throw Error("Generator is already running");if(r===m){if("throw"===o)throw n;return{value:t,done:!0}}for(i.method=o,i.arg=n;;){var a=i.delegate;if(a){var c=j(a,i);if(c){if(c===v)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===_)throw r=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=f;var l=d(e,s,i);if("normal"===l.type){if(r=i.done?m:p,l.arg===v)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=m,i.method="throw",i.arg=l.arg)}}}function j(e,s){var i=s.method,r=e.iterator[i];if(r===t)return s.delegate=null,"throw"===i&&e.iterator.return&&(s.method="return",s.arg=t,j(e,s),"throw"===s.method)||"return"!==i&&(s.method="throw",s.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var o=d(r,e.iterator,s.arg);if("throw"===o.type)return s.method="throw",s.arg=o.arg,s.delegate=null,v;var n=o.arg;return n?n.done?(s[e.resultName]=n.value,s.next=e.nextLoc,"return"!==s.method&&(s.method="next",s.arg=t),s.delegate=null,v):n:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function E(e){if(e||""===e){var s=e[n];if(s)return s.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function s(){for(;++r<e.length;)if(i.call(e,r))return s.value=e[r],s.done=!1,s;return s.value=t,s.done=!0,s};return o.next=o}}throw new TypeError(te(e)+" is not iterable")}return g.prototype=b,r(C,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,s,i,r,o){void 0===o&&(o=Promise);var n=new S(u(t,s,i,r),o);return e.isGeneratorFunction(s)?n:n.next().then((function(t){return t.done?t.value:n.next()}))},k(C),l(C,c,"Generator"),l(C,n,(function(){return this})),l(C,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),s=[];for(var i in e)s.push(i);return s.reverse(),function t(){for(;s.length;){var i=s.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var s in this)"t"===s.charAt(0)&&i.call(this,s)&&!isNaN(+s.slice(1))&&(this[s]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var s=this;function r(i,r){return a.type="throw",a.arg=e,s.next=i,r&&(s.method="next",s.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var c=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(c&&l){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var n=o?o.completion:{};return n.type=t,n.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(n)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var s=this.tryEntries[e];if(s.finallyLoc===t)return this.complete(s.completion,s.afterLoc),O(s),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var s=this.tryEntries[e];if(s.tryLoc===t){var i=s.completion;if("throw"===i.type){var r=i.arg;O(s)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,s,i){return this.delegate={iterator:E(e),resultName:s,nextLoc:i},"next"===this.method&&(this.arg=t),v}},e}function se(t,e){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!s){if(Array.isArray(t)||(s=function(t,e){if(t){if("string"==typeof t)return ie(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?ie(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){s&&(t=s);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,n=!0,a=!1;return{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){a=!0,o=t},f:function(){try{n||null==s.return||s.return()}finally{if(a)throw o}}}}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,i=Array(e);s<e;s++)i[s]=t[s];return i}function re(t,e,s,i,r,o,n){try{var a=t[o](n),c=a.value}catch(t){return void s(t)}a.done?e(c):Promise.resolve(c).then(i,r)}const oe=b({name:"PasswordRules",components:{PasswordReset:Mt,SubmitButton2:y,StrongPassword:Wt,PasswordProtection:Yt,SettingRow:Zt},mixins:[u],data:function(){return{loading:!1,strings:{passwordRulesTitle:this.__("Password Rules"),passwordRulesDescription:this.__("Use these settings to configure and manage password settings for your site."),pwnedPasswordsLabel:this.__("Pwned Passwords"),pwnedPasswordsDescription:this.__('Protect your site from the risk of being breached by compromised passwords found in the publicly available "pwned" passwords list.'),strongPasswordLabel:this.__("Strong Passwords"),strongPasswordDescription:this.__("Require your users to set strong passwords when registering or changing their password."),resetPasswordsLabel:this.__("Reset Passwords"),resetPasswordsDescription:this.__("Force users to change their password upon next login if there is a security breach."),saveChangesButton:this.__("Save Changes")}}},methods:{handleSubmit:function(){var t,e=this;return(t=ee().mark((function t(){var s,i,r,o,n;return ee().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.loading){t.next=2;break}return t.abrupt("return");case 2:return e.loading=!0,t.prev=3,t.next=6,Promise.all([e.$store.dispatch("password_protection/saveSettings"),e.$store.dispatch("strong_password/saveSettings")]);case 6:s=t.sent,i=!1,r=se(s),t.prev=9,r.s();case 11:if((o=r.n()).done){t.next=18;break}if(!(n=o.value).warning){t.next=16;break}return i=n.warning,t.abrupt("break",18);case 16:t.next=11;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(9),r.e(t.t0);case 23:return t.prev=23,r.f(),t.finish(23);case 26:i?Defender.showNotification("warning",i,!0):(Defender.showNotification("success",e.__("Your settings have been updated."),!0),setTimeout((function(){window.location.reload()}),1e3));case 27:return t.prev=27,e.loading=!1,t.finish(27);case 30:case"end":return t.stop()}}),t,null,[[3,,27,30],[9,20,23,26]])})),function(){var e=this,s=arguments;return new Promise((function(i,r){var o=t.apply(e,s);function n(t){re(o,i,r,n,a,"next",t)}function a(t){re(o,i,r,n,a,"throw",t)}n(void 0)}))})()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.strings.passwordRulesTitle)+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-body"},[e("div",{staticClass:"sui-box-settings-row sui-flushed"},[t._v("\n "+t._s(t.strings.passwordRulesDescription)+"\n ")]),t._v(" "),e("setting-row",{attrs:{label:t.strings.pwnedPasswordsLabel,description:t.strings.pwnedPasswordsDescription}},[e("password-protection")],1),t._v(" "),e("setting-row",{attrs:{label:t.strings.strongPasswordLabel,description:t.strings.strongPasswordDescription}},[e("strong-password")],1),t._v(" "),e("setting-row",{attrs:{label:t.strings.resetPasswordsLabel,description:t.strings.resetPasswordsDescription}},[e("password-reset")],1)],1),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-actions-right"},[e("SubmitButton2",{attrs:{"css-class":"sui-button-blue",doing_ajax:t.loading},on:{click:t.handleSubmit}},[e("span",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.strings.saveChangesButton)+"\n ")])],1)])])}),[],!1,null,null,null).exports;var ne=b({name:"DurationInput",mixins:[u],props:{value:{type:Number,default:1},label:{type:String,required:!0},unit:{type:String,required:!0},feature:{type:String,required:!0}},data:function(){return{errorMessage:""}},computed:{inputId:function(){return"".concat(this.feature,"-input")},labelId:function(){return"".concat(this.feature,"-label")},errorId:function(){return"".concat(this.feature,"-error")},model:{get:function(){return this.value},set:function(t){var e=Number(t);isNaN(e)||e<1?this.errorMessage=this.__("Please enter a value of at least 1."):(this.errorMessage="",this.$emit("input",e))}}},methods:{validateInput:function(t){var e=Number(t.target.value);e<1||isNaN(e)?(t.target.value=1,this.$emit("input",1),this.errorMessage=this.__("Please enter a value of at least 1.")):this.errorMessage=""}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-form-field"},[e("label",{staticClass:"sui-label",attrs:{id:t.labelId,for:t.inputId}},[t._v("\n "+t._s(t.label)+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"sui-form-control sui-field-has-suffix sui-input-sm",attrs:{id:t.inputId,"aria-labelledby":t.labelId,type:"number",min:"1"},domProps:{value:t.model},on:{input:[function(e){e.target.composing||(t.model=e.target.value)},t.validateInput]}}),t._v(" "),e("span",{staticClass:"sui-field-suffix"},[t._v(t._s(t.unit))]),t._v(" "),t.errorMessage?e("span",{staticClass:"sui-error-message",attrs:{id:"error-unique-id",role:"alert"}},[t._v(t._s(t.errorMessage))]):t._e()])}),[],!1,null,null,null);function ae(t){return ae="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},ae(t)}function ce(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 le(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?ce(Object(s),!0).forEach((function(e){ue(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ce(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function ue(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=ae(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=ae(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ae(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const de={components:{"mask-login":ut,"security-headers":yt,recaptcha:$t,PasswordRules:oe,SessionProtection:b({components:{StackedCheckboxes:Lt,DurationInput:ne.exports,SettingRow:Zt,SubmitButton2:y},mixins:[u],computed:le(le(le({strings:function(){var t=this.__("Protect your site from session hijacking with features like session lock and idle timeout. Keep user sessions secure effortlessly.");return{title:this.__("Session Protection"),description:this.__("Use these settings to protect your site from session hijacking, where attackers steal session tokens to impersonate users and gain unauthorized access to websites."),timeout:{title:this.__("Idle Session Timeout"),description:this.__("Set the idle timeout period (in hours) after which inactive sessions will be automatically logged out."),label:this.__("Timeout after"),unit:this.__("Hours")},lock:{title:this.__("User Session Lock"),description:this.__("Lock and automatically end user sessions if any selected properties change."),hint:this.__("Users will be prompted to re-authenticate if the selected properties below change."),ip_hint:this.__("Note: Having a dynamic IP address can trigger frequent session locks.")},roles:{title:this.__("User Roles"),description:this.__("Choose the user roles to which the idle timeout and session lock will apply."),label:this.__("Roles"),hint:this.__("The Administrator role is enabled by default and can't be disabled."),all:this.__("All")},deactivation:{title:this.__("Deactivate"),description:this.__("Deactivate session protection."),button:this.__("Deactivate")},activation:{description:t,button:this.__("Activate")},upgrade:{description:t,button:this.__("Upgrade to Pro to Activate")},save:this.__("Save Changes"),image_alt:this.__("Session Protection Feature Image")}}},h("session_protection",{enabled:"model.enabled",idle_timeout:"model.idle_timeout",lock_properties:"model.lock_properties",login_duration:"model.login_duration",user_roles:"model.user_roles",properties:"properties",roles:"roles"})),V("session_protection",["selectAll","allRoleKeys"])),{},{is_deactivate:function(){return!this.enabled||this.is_free},branding_image:function(){return this.maybeHideBranding()&&this.whitelabelHeroImage()||this.assetUrl("assets/img/session-protection.png")},is_free:function(){return Boolean(Number(defender.is_free))},upgrade_url:function(){return this.campaign_url("defender_featurepage_sessionp")},show_feature_dot:function(){return window.advanced_tools.session_protection.show_feature_dot}}),watch:{selectAll:function(t){this.toggleSelectAll(t)},user_roles:function(t){this.updateUserRoles(t)}},mounted:function(){!0!==this.selectAll&&this.updateUserRoles(this.user_roles)},methods:le({onToggleAll:function(t){this.toggleSelectAll(t.target.checked)}},z("session_protection",["toggleSelectAll","updateUserRoles","toggle","saveSettings"]))},(function(){var t=this,e=t._self._c;return t.is_deactivate?e("div",{staticClass:"sui-box"},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.strings.title)+"\n ")]),t._v(" "),t.is_free?e("div",{staticClass:"sui-actions-left"},[e("span",{staticClass:"sui-tag sui-tag-pro"},[t._v(t._s(t.__("Pro")))])]):t._e(),t._v(" "),t.show_feature_dot?e("span",{staticClass:"sui-tag sui-tag-green sui-tag-sm ml-15px"},[t._v("\n "+t._s(t.__("New"))+"\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"sui-box-body"},[e("div",{staticClass:"sui-message"},[e("img",{staticClass:"sui-image wd-whitelabel-custom-branding-logo",attrs:{src:t.branding_image,alt:t.strings.image_alt,"aria-hidden":"true"}}),t._v(" "),e("div",{staticClass:"sui-message-content"},[e("p",{domProps:{textContent:t._s(t.is_free?t.strings.upgrade.description:t.strings.activation.description)}}),t._v(" "),t.is_free?e("a",{staticClass:"sui-button sui-button-purple",attrs:{href:t.upgrade_url,target:"_blank"}},[t._v(t._s(t.strings.upgrade.button))]):e("submit-button2",{attrs:{action:"toggle-session-protection","css-class":"sui-button-blue activate"},on:{click:t.toggle}},[t._v("\n "+t._s(t.strings.activation.button)+"\n ")])],1)])])]):e("div",{staticClass:"sui-box"},[e("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.saveSettings.apply(null,arguments)}}},[e("div",{staticClass:"sui-box-header"},[e("h3",{staticClass:"sui-box-title"},[t._v("\n "+t._s(t.strings.title)+"\n ")])]),t._v(" "),e("div",{staticClass:"sui-box-body"},[e("div",{staticClass:"sui-box-settings-row sui-flushed"},[t._v("\n "+t._s(t.strings.description)+"\n ")]),t._v(" "),e("setting-row",{attrs:{description:t.strings.timeout.description,label:t.strings.timeout.title}},[e("duration-input",{attrs:{label:t.strings.timeout.label,unit:t.strings.timeout.unit,feature:"session-protection-idle-timeout"},model:{value:t.idle_timeout,callback:function(e){t.idle_timeout=e},expression:"idle_timeout"}})],1),t._v(" "),e("setting-row",{attrs:{description:t.strings.lock.description,label:t.strings.lock.title}},[e("stacked-checkboxes",{attrs:{description:t.strings.lock.hint,options:t.properties,feature:"session-protection-lock-properties"},model:{value:t.lock_properties,callback:function(e){t.lock_properties=e},expression:"lock_properties"}}),t._v(" "),t.lock_properties.includes("ip_address")?e("div",{staticClass:"sui-notice sui-notice-warning ml-25px margin-top-10"},[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.strings.lock.ip_hint))])])])]):t._e()],1),t._v(" "),e("setting-row",{attrs:{description:t.strings.roles.description,label:t.strings.roles.title}},[e("div",{staticClass:"sui-field-list"},[e("div",{staticClass:"sui-field-list-header"},[e("h3",{staticClass:"sui-field-list-title",domProps:{textContent:t._s(t.strings.roles.label)}})]),t._v(" "),e("div",{staticClass:"sui-field-list-body max-h-290 overflow-y-auto"},[e("div",{staticClass:"sui-field-list-item p-30px"},[e("div",{staticClass:"sui-field-list-item-label"},[e("p",{staticClass:"sui-description mb-20px",domProps:{textContent:t._s(t.strings.roles.hint)}}),t._v(" "),e("div",{staticClass:"sui-form-field mb-0"},[e("label",{staticClass:"sui-checkbox",attrs:{for:"all-roles-toggle"}},[e("input",{attrs:{id:"all-roles-toggle",type:"checkbox"},domProps:{checked:t.selectAll},on:{change:function(e){return t.onToggleAll(e)}}}),t._v(" "),e("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",{attrs:{id:"label-all-roles-toggle"}},[t._v(t._s(t.strings.roles.all))])])]),t._v(" "),e("stacked-checkboxes",{staticClass:"pl-10px",attrs:{options:t.roles,feature:"session-protection-roles"},model:{value:t.user_roles,callback:function(e){t.user_roles=e},expression:"user_roles"}})],1)])])])])],1),t._v(" "),e("div",{staticClass:"sui-box-footer"},[e("div",{staticClass:"sui-actions-left"},[e("submit-button2",{attrs:{type:"button",action:"toggle-session-protection","css-class":"sui-button-ghost"},on:{click:t.toggle}},[e("i",{staticClass:"sui-icon-power-on-off",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.strings.deactivation.button)+"\n ")])],1),t._v(" "),e("div",{staticClass:"sui-actions-right"},[e("SubmitButton2",{attrs:{action:"save-session-protection","css-class":"sui-button-blue"}},[e("span",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.strings.save)+"\n ")])],1)])])])}),[],!1,null,null,null).exports},mixins:[u],data:function(){return{whitelabel:defender.whitelabel,is_free:Boolean(Number(defender.is_free)),view:"",tracking_modal:defender.tracking_modal}},computed:{show_feature_dot:function(){return window.advanced_tools.session_protection.show_feature_dot}},created:function(){var t=new URLSearchParams(window.location.search).get("view");null===t&&(t="mask-login"),this.view=t},watch:{view:function(t,e){history.replaceState({},null,this.adminUrl()+"admin.php?page=wdf-advanced-tools&view="+this.view)}},mounted:function(){var t=this;jQuery(".sui-mobile-nav").on("change",(function(){t.view=jQuery(this).val()}))},beforeMount:function(){this.$store.commit("init",advanced_tools),this.$store.commit("mask_login/init",advanced_tools.mask_login),this.$store.commit("security_headers/init",advanced_tools.security_headers),this.$store.commit("password_protection/init",advanced_tools.password_protection),this.$store.commit("password_reset/init",advanced_tools.password_reset),this.$store.commit("recaptcha/init",advanced_tools.recaptcha),this.$store.commit("strong_password/init",advanced_tools.strong_password),this.$store.commit("session_protection/init",advanced_tools.session_protection)}};var _e=s(9418),pe={insert:"head",singleton:!1};at()(_e.A,pe);_e.A.locals;const fe=b(de,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sui-wrap",class:[t.maybeHighContrast()]},["show"===t.tracking_modal?e("tracking-modal"):t._e(),t._v(" "),e("div",{staticClass:"advanced-tools"},[e("div",{staticClass:"sui-header"},[e("h1",{staticClass:"sui-header-title"},[t._v(t._s(t.__("Tools")))]),t._v(" "),e("doc-link",{attrs:{link:"?utm_source=defender&utm_medium=plugin&utm_campaign=defender_tools_docs#tools"}})],1),t._v(" "),e("opcache-notice"),t._v(" "),e("div",{staticClass:"sui-row-with-sidenav"},[e("div",{staticClass:"sui-sidenav",attrs:{role:"navigation"}},[e("ul",{staticClass:"sui-vertical-tabs sui-sidenav-hide-md"},[e("li",{staticClass:"sui-vertical-tab",class:{current:"mask-login"===t.view}},[e("a",{attrs:{role:"button",href:"#"},on:{click:function(e){e.preventDefault(),t.view="mask-login"}}},[t._v(t._s(t.__("Mask Login Area")))]),t._v(" "),e("i",{class:t.$store.getters["mask_login/getIndicator"],attrs:{"aria-hidden":"true"}})]),t._v(" "),e("li",{staticClass:"sui-vertical-tab",class:{current:"security-headers"===t.view}},[e("a",{attrs:{role:"button",href:"#"},on:{click:function(e){e.preventDefault(),t.view="security-headers"}}},[t._v(t._s(t.__("Security Headers")))])]),t._v(" "),e("li",{staticClass:"sui-vertical-tab",class:{current:"password-rules"===t.view}},[e("a",{attrs:{role:"button",href:"#"},on:{click:function(e){e.preventDefault(),t.view="password-rules"}}},[t._v("\n "+t._s(t.__("Password Rules"))+"\n ")])]),t._v(" "),e("li",{staticClass:"sui-vertical-tab",class:{current:"session-protection"===t.view}},[e("a",{attrs:{role:"button",href:"#"},on:{click:function(e){e.preventDefault(),t.view="session-protection"}}},[t._v("\n "+t._s(t.__("Session Protection"))+"\n "),t.is_free?e("span",{staticClass:"sui-tag sui-tag-pro right-10px top-10px"},[t._v(t._s(t.__("Pro")))]):t._e(),t._v(" "),t.show_feature_dot?e("span",{staticClass:"wd-new-feature-dot"}):t._e()])]),t._v(" "),e("li",{staticClass:"sui-vertical-tab",class:{current:"recaptcha"===t.view}},[e("a",{attrs:{role:"button",href:"#"},on:{click:function(e){e.preventDefault(),t.view="recaptcha"}}},[t._v(t._s(t.__("Google reCAPTCHA")))]),t._v(" "),e("i",{class:t.$store.getters["recaptcha/getIndicator"],attrs:{"aria-hidden":"true"}})])]),t._v(" "),e("div",{staticClass:"sui-sidenav-hide-lg margin-bottom-30"},[e("select",{staticClass:"sui-select sui-mobile-nav",attrs:{"data-minimum-results-for-search":"Infinity"}},[e("option",{attrs:{value:"mask-login"},domProps:{selected:"mask-login"===t.view}},[t._v(t._s(t.__("Mask Login Area")))]),t._v(" "),e("option",{attrs:{value:"security-headers"},domProps:{selected:"security-headers"===t.view}},[t._v(t._s(t.__("Security Headers")))]),t._v(" "),e("option",{attrs:{value:"password-rules"},domProps:{selected:"password-rules"===t.view}},[t._v("\n "+t._s(t.__("Password Rules"))+"\n ")]),t._v(" "),e("option",{attrs:{value:"session-protection"},domProps:{selected:"session-protection"===t.view}},[t._v("\n "+t._s(t.__("Session Protection"))+"\n ")]),t._v(" "),e("option",{attrs:{value:"recaptcha"},domProps:{selected:"recaptcha"===t.view}},[t._v(t._s(t.__("Google reCAPTCHA")))])])])]),t._v(" "),e("mask-login",{directives:[{name:"show",rawName:"v-show",value:"mask-login"===t.view,expression:"view==='mask-login'"}]}),t._v(" "),e("security-headers",{directives:[{name:"show",rawName:"v-show",value:"security-headers"===t.view,expression:"view==='security-headers'"}]}),t._v(" "),e("password-rules",{directives:[{name:"show",rawName:"v-show",value:"password-rules"===t.view,expression:"view === 'password-rules'"}]}),t._v(" "),e("session-protection",{directives:[{name:"show",rawName:"v-show",value:"session-protection"===t.view,expression:"view === 'session-protection'"}]}),t._v(" "),e("recaptcha",{directives:[{name:"show",rawName:"v-show",value:"recaptcha"===t.view,expression:"view==='recaptcha'"}]})],1)],1),t._v(" "),e("app-footer")],1)}),[],!1,null,"22f1ae98",null).exports;const me=b({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 ve=b({mixins:[u],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 he=b({mixins:[u],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 ge=b({name:"OPcacheNotice",mixins:[u],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 be=s(2505);function ye(t){return ye="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},ye(t)}function we(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 xe(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?we(Object(s),!0).forEach((function(e){Ce(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):we(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function Ce(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=ye(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=ye(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ye(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var ke=s.n(be)().create({baseURL:ajaxurl+"?action=wp_defender/v1/hub/",timeout:15e3});function Se(t,e,s){return Pe("post",t,e,s,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).then((function(t){return t}))}function Pe(t,e,s,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=JSON.stringify(i),n=new FormData;return n.append("data",o),ke.request(xe(xe({},r),{},{url:je(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,r=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 a=void 0!==e.data.auto_close&&!0===e.data.auto_close;Defender.showNotification(s?n||"success":"error",i,a)}return"session_out"===n&&null===r&&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!==r?location.href=r:location.reload()}),1e3*o):null!==r&&(location.href=r),e.data}))}function je(t,e){return"&route="+t+"&_def_nonce="+e}const Ae={namespaced:!0,state:function(){return{model:{},is_active:!1,routes:{},nonces:{},new_login_url:"",notices:[],redirect_traffic_page_title:"",redirect_traffic_page_url:"",is_mask_url_empty:!1,is_mask_url_page_post_exists:!1}},mutations:{updateField:v,init:function(t,e){t.model=e.model,t.is_active=e.is_active,t.nonces=e.nonces,t.routes=e.routes,t.new_login_url=e.new_login_url,t.notices=e.notices,t.redirect_traffic_page_title=e.redirect_traffic_page_title,t.redirect_traffic_page_url=e.redirect_traffic_page_url,t.is_mask_url_empty=e.is_mask_url_empty,t.is_mask_url_page_post_exists=e.is_mask_url_page_post_exists},updatePageForRedirect:function(t,e){t.model.redirect_traffic_page_id=e.redirect_page.id,t.redirect_traffic_page_title=e.redirect_page.text,t.redirect_traffic_page_url=e.redirect_page.url}},getters:{getField:m,getIndicator:function(t){if(t.is_active)return"sui-icon-check-tick sui-info";if(!0===t.model.enabled){if(t.is_mask_url_page_post_exists)return"sui-icon-info sui-error";if(t.is_mask_url_empty)return"sui-icon-warning-alert sui-warning"}}},actions:{saveSettings:function(t){t.commit("doingAjax","settings",{root:!0}),Se(t.state.routes.save_settings,t.state.nonces.save_settings,t.state.model).then((function(e){t.commit("ajaxDone","settings",{root:!0}),t.commit("init",e)}))},toggle:function(t){t.commit("doingAjax","toggle",{root:!0});var e={enabled:!t.state.model.enabled};Se(t.state.routes.toggle_module,t.state.nonces.toggle_module,e).then((function(e){if(void 0!==(null==e?void 0:e.error)){var s={error:e.error};sessionStorage.setItem("wpdef_mask_url",JSON.stringify(s))}t.commit("ajaxDone","toggle",{root:!0}),setTimeout((function(){return location.reload()}),500)}))},updateRedirectPage:function(t,e){t.commit("updatePageForRedirect",{redirect_page:e})},removeRedirectPage:function(t){t.commit("updatePageForRedirect",{redirect_page:{text:"",url:"",id:0}})}}};const Oe={namespaced:!0,state:function(){return{model:{},misc:{},routes:{},nonces:{}}},mutations:{updateField:v,init:function(t,e){t.model=e.model,t.nonces=e.nonces,t.routes=e.routes,t.misc=e.misc}},getters:{getField:m},actions:{saveSettings:function(t){t.commit("doingAjax",{},{root:!0}),Se(t.state.routes.save_settings,t.state.nonces.save_settings,t.state.model).then((function(e){t.commit("ajaxDone",{},{root:!0}),t.commit("init",e)}))}}};const Te={namespaced:!0,state:function(){return{model:{},all_roles:{},is_active:!1,default_message:"",routes:{},nonces:{}}},mutations:{updateField:v,init:function(t,e){t.model=e.model,t.all_roles=e.all_roles,t.is_active=e.is_active,t.nonces=e.nonces,t.routes=e.routes,t.default_message=e.default_message}},getters:{getField:m,getIndicator:function(t){return t.is_active?"sui-icon-check-tick sui-success":!0===t.model.enabled?"sui-icon-warning-alert sui-warning":void 0},isActive:function(t){return!0===t.model.enabled&&t.model.user_roles.length>1},enabled:function(t){return!0===t.model.enabled}},actions:{saveSettings:function(t){var e=t.state,s=e.routes,i=e.nonces,r=e.model;return Se(s.save_settings,i.save_settings,r).then((function(e){return t.commit("init",e),e}))}}};const Ee={namespaced:!0,state:function(){return{model:{},all_roles:{},reset_last:"",default_message:"",routes:{},nonces:{}}},mutations:{updateField:v,init:function(t,e){t.model=e.model,t.all_roles=e.all_roles,t.reset_last=e.reset_last,t.nonces=e.nonces,t.routes=e.routes,t.default_message=e.default_message}},getters:{getField:m},actions:{saveSettings:function(t,e){t.commit("doingAjax",{},{root:!0});var s=Object.assign({},t.state.model,e);Se(t.state.routes.save_settings,t.state.nonces.save_settings,s).then((function(e){t.commit("ajaxDone",{},{root:!0}),t.commit("init",e)}))},forceReset:function(t){t.commit("doingAjax","force_reset",{root:!0});var e=Object.assign({},t.state.model);e.expire_force=!0,Se(t.state.routes.toggle_reset,t.state.nonces.toggle_reset,e).then((function(e){SUI.closeModal(),t.commit("ajaxDone","force_reset",{root:!0}),t.commit("init",e)}))},undoReset:function(t){t.commit("doingAjax",{},{root:!0});var e=Object.assign({},t.state.model);e.expire_force=!1,Se(t.state.routes.toggle_reset,t.state.nonces.toggle_reset,e).then((function(e){t.commit("ajaxDone",{},{root:!0}),t.commit("init",e)}))}}};const Re={namespaced:!0,state:function(){return{model:{},is_active:!1,default_message:"",default_locations:[],woo_locations:[],buddypress_locations:[],notice_type:"",notice_text:"",preloading:!1,ticket_text:"",is_woo_active:!1,is_buddypress_active:!1,exist_error_notice:!1,error_keys:[],routes:{},nonces:{}}},mutations:{updateField:v,init:function(t,e){t.model=e.model,t.is_active=e.is_active,t.nonces=e.nonces,t.routes=e.routes,t.default_message=e.default_message,t.default_locations=e.default_locations,t.woo_locations=e.woo_locations,t.buddypress_locations=e.buddypress_locations,t.notice_type=e.notice_type,t.notice_text=e.notice_text,t.ticket_text=e.ticket_text,t.is_woo_active=e.is_woo_active,t.is_buddypress_active=e.is_buddypress_active},showPreloading:function(t){t.preloading=!0},hidePreloading:function(t){t.preloading=!1},showErrorNotice:function(t){t.exist_error_notice=!0},showErrorDetails:function(t,e){t.error_keys=e},hideErrorNotice:function(t){t.exist_error_notice=!1},clearErrorKeys:function(t){t.error_keys=[]}},getters:{getField:m,getIndicator:function(t){return"success"===t.notice_type?"sui-icon-check-tick sui-success":!0===t.model.enabled?"sui-icon-warning-alert sui-warning":void 0},dataV2Checkbox:function(t){return t.model.data_v2_checkbox},dataV2Invisible:function(t){return t.model.data_v2_invisible},dataV3Recaptcha:function(t){return t.model.data_v3_recaptcha},getErrorKeys:function(t){return t.error_keys}},actions:{saveSettings:function(t,e){t.commit("doingAjax","settings",{root:!0});var s=Object.assign({},t.state.model,e);Se(t.state.routes.save_settings,t.state.nonces.save_settings,s).then((function(e){void 0!==e.error_keys?(t.commit("showErrorNotice"),t.commit("showErrorDetails",e.error_keys)):(t.commit("hideErrorNotice"),t.commit("clearErrorKeys")),t.commit("ajaxDone","settings",{root:!0}),t.commit("init",e),t.dispatch("previewTypes")}))},toggle:function(t){t.commit("doingAjax","toggle",{root:!0});var e={enabled:!t.state.model.enabled};Se(t.state.routes.toggle_module,t.state.nonces.toggle_module,e).then((function(e){t.commit("ajaxDone","toggle",{root:!0}),setTimeout((function(){return location.reload()}),500)}))},previewTypes:function(t){t.dispatch("loadRecaptchaPreview","v2_checkbox"),t.dispatch("loadRecaptchaPreview","v2_invisible"),t.dispatch("loadRecaptchaPreview","v3_recaptcha")},loadRecaptchaPreview:function(t,e){t.commit("showPreloading"),Se(t.state.routes.load_recaptcha_preview,t.state.nonces.load_recaptcha_preview,{captcha_type:e}).then((function(s){s.preview&&(t.commit("hidePreloading"),"v2_checkbox"===e?jQuery("#v2_checkbox-recaptcha-preview").html(s.html):"v2_invisible"===e?jQuery("#v2_invisible-recaptcha-preview").html(s.html):"v3_recaptcha"===e&&jQuery("#v3_recaptcha-preview").html(s.html))}))}}};const Ne={namespaced:!0,actions:{trackFeature:function(t,e){var s,i,r,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===(r=t.rootState)||void 0===r||null===(o=r.routes)||void 0===o?void 0:o.track_feature_handler))return Se(t.rootState.routes.track_feature_handler,t.rootState.nonces.track_feature_handler,e)}}};const $e={namespaced:!0,state:{model:{},routes:{},nonces:{},all_roles:{},doing_ajax:!1},mutations:{updateField:v,init:function(t,e){t.model=e.model,t.routes=e.routes,t.nonces=e.nonces,t.all_roles=e.all_roles}},actions:{saveSettings:function(t){var e=t.state,s=e.routes,i=e.nonces,r=e.model;return Se(s.save_settings,i.save_settings,r).then((function(e){return t.commit("init",e),e}))}},getters:{getField:m,enabled:function(t){return!0===t.model.enabled}}};function Le(t){return Le="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},Le(t)}function De(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 Ie(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?De(Object(s),!0).forEach((function(e){He(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):De(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function He(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=Le(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=Le(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Le(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const Ue={namespaced:!0,state:{model:{},routes:{},nonces:{},properties:{},roles:{}},mutations:{updateField:v,init:function(t,e){t.model=e.model,t.routes=e.routes,t.nonces=e.nonces,t.properties=e.properties,t.roles=e.roles},setUserRoles:function(t,e){t.model.user_roles=e},toggleSelectAll:function(t,e){var s=Object.keys(t.roles||[]),i=Array.isArray(t.model.user_roles)?t.model.user_roles:[];e?t.model.user_roles=[].concat(s):s.every((function(t){return i.includes(t)}))&&(t.model.user_roles=["administrator"])}},actions:{saveSettings:function(t){var e=t.commit,s=t.state;e("doingAjax","save-session-protection",{root:!0});var i=s.routes,r=s.nonces,o=s.model;return Se(i.save_settings,r.save_settings,o).then((function(t){return e("init",t),t})).finally((function(){e("ajaxDone","save-session-protection",{root:!0})}))},toggle:function(t){var e=t.commit,s=t.state;e("doingAjax","toggle-session-protection",{root:!0});var i=Ie(Ie({},s.model),{},{enabled:!s.model.enabled});return Se(s.routes.save_settings,s.nonces.save_settings,i).then((function(){e("ajaxDone","toggle-session-protection",{root:!0}),setTimeout((function(){return location.reload()}),500)}))},toggleSelectAll:function(t,e){(0,t.commit)("toggleSelectAll",e)},updateUserRoles:function(t,e){(0,t.commit)("setUserRoles",e)}},getters:{getField:m,enabled:function(t){return!0===t.model.enabled},allRoleKeys:function(t){return Object.keys(t.roles||{})},isAllRolesSelected:function(t,e){return e.allRoleKeys.length&&e.allRoleKeys.every((function(e){return t.model.user_roles.includes(e)}))},selectAll:function(t,e){return e.isAllRolesSelected}}},Me=new tt.Store({state:{doing_ajax:[],routes:{},nonces:{}},mutations:{init:function(t,e){t.routes=e.routes,t.nonces=e.nonces},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}))}},modules:{mask_login:Ae,security_headers:Oe,password_protection:Te,password_reset:Ee,recaptcha:Re,AnalyticsTracking:Ne,strong_password:$e,session_protection:Ue}});const Fe=b({name:"tracking-modal",mixins:[u],components:{SubmitButton2:y},data:function(){return{banner_1x:defender.misc.banner_1x,banner_2x:defender.misc.banner_2x,banner_alt:defender.misc.title,title:defender.misc.title,desc:defender.misc.desc,optin_button_title:defender.misc.optin_button_title,skip_button_title:defender.misc.skip_button_title,nonces:defender.misc.nonces,routes:defender.misc.routes,doing_ajax:!1}},mounted:function(){document.onreadystatechange=function(){SUI.openModal("defender-tracking-modal",jQuery("body"),void 0,!1,!0)}},methods:{handleResult:function(){var t=this,e=this;return e.doing_ajax=!0,new Promise((function(s,i){Se(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){Se(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;r().component("app-footer",ve),r().component("doc-link",he),r().component("submit-button",me),r().component("opcache-notice",ge),r().component("tracking-modal",Fe);new(r())({el:"#defender",store:Me,components:{advanced_tools:fe},render:function(t){return t(fe)}})},4184:()=>{},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 r(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=r(window.location.href),function(e){var s=i.isString(e)?r(e):e;return s.protocol===t.protocol&&s.host===t.host}}():function(){return!0}},4490:(t,e,s)=>{"use strict";var i=s(9516),r=s(2881),o=s(3864),n=s(6987);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=r.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 a(t),e.data=r.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=r.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),r={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){r[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}}));var o={},n=i.version.split(".");function a(t,e){for(var s=e?e.split("."):n,i=t.split("."),r=0;r<3;r++){if(s[r]>i[r])return!0;if(s[r]<i[r])return!1}return!1}r.transitional=function(t,e,s){var r=e&&a(e);function n(t,e){return"[Axios v"+i.version+"] Transitional option '"+t+"'"+e+(s?". "+s:"")}return function(s,i,a){if(!1===t)throw new Error(n(i," has been removed in "+e));return r&&!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,a)}},t.exports={isOlderVersion:a,assertOptions:function(t,e,s){if("object"!=typeof t)throw new TypeError("options must be an object");for(var i=Object.keys(t),r=i.length;r-- >0;){var o=i[r],n=e[o];if(n){var a=t[o],c=void 0===a||n(a,o,t);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==s)throw Error("Unknown option "+o)}},validators:r}},5019:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},5072:(t,e,s)=>{"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var s=document.querySelector(e);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(t){s=null}t[e]=s}return t[e]}}(),n=[];function a(t){for(var e=-1,s=0;s<n.length;s++)if(n[s].identifier===t){e=s;break}return e}function c(t,e){for(var s={},i=[],r=0;r<t.length;r++){var o=t[r],c=e.base?o[0]+e.base:o[0],l=s[c]||0,u="".concat(c," ").concat(l);s[c]=l+1;var d=a(u),_={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(n[d].references++,n[d].updater(_)):n.push({identifier:u,updater:v(_,e),references:1}),i.push(u)}return i}function l(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=s.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var n=o(t.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function _(t,e,s,i){var r=s?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var o=document.createTextNode(r),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(o,n[e]):t.appendChild(o)}}function p(t,e,s){var i=s.css,r=s.media,o=s.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var f=null,m=0;function v(t,e){var s,i,r;if(e.singleton){var o=m++;s=f||(f=l(e)),i=_.bind(null,s,o,!1),r=_.bind(null,s,o,!0)}else s=l(e),i=p.bind(null,s,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(s)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var s=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<s.length;i++){var r=a(s[i]);n[r].references--}for(var o=c(t,e),l=0;l<s.length;l++){var u=a(s[l]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}s=o}}}},5155:(t,e,s)=>{"use strict";var i=s(9516),r=s(9106),o=s(3471),n=s(4490),a=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=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing: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 r,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),r=Promise.resolve(t);u.length;)r=r.then(u.shift(),u.shift());return r}for(var d=t;s.length;){var _=s.shift(),p=s.shift();try{d=_(d)}catch(t){p(t);break}}try{r=n(d)}catch(t){return Promise.reject(t)}for(;o.length;)r=r.then(o.shift(),o.shift());return r},u.prototype.getUri=function(t){return t=a(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,s){return this.request(a(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(a(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,r=!1,o=0,n=0,a="";function c(){if(!r){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,a.length,l,u,s);d&&(a+=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,r=!1}else"("===l?r=!0:")"===l?r=!1:";"===l?r||c():"\n"===l&&c()}return i.trim(a)}},5343:(t,e,s)=>{"use strict";var i=s(9516);t.exports=function(t,e){e=e||{};var s={},r=["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"],a=["validateStatus"];function c(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function l(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(s[r]=c(void 0,t[r])):s[r]=c(t[r],e[r])}i.forEach(r,(function(t){i.isUndefined(e[t])||(s[t]=c(void 0,e[t]))})),i.forEach(o,l),i.forEach(n,(function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(s[r]=c(void 0,t[r])):s[r]=c(void 0,e[r])})),i.forEach(a,(function(i){i in e?s[i]=c(t[i],e[i]):i in t&&(s[i]=c(void 0,t[i]))}));var u=r.concat(o).concat(n).concat(a),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return i.forEach(d,l),s}},5377:()=>{},5449:t=>{"use strict";t.exports=function(t,e,s,i,r){return t.config=e,s&&(t.code=s),t.request=i,t.response=r,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),r=s(7522),o=s(3948),n=s(9106),a=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,_=t.headers,p=t.responseType;i.isFormData(d)&&delete _["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";_.Authorization="Basic "+btoa(m+":"+v)}var h=a(t.baseURL,t.url);function g(){if(f){var i="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:i,config:t,request:f};r(e,s,o),f=null}}if(f.open(t.method.toUpperCase(),n(h,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(s(u("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){s(u("Network Error",t,null,f)),f=null},f.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",f)),f=null},i.isStandardBrowserEnv()){var b=(t.withCredentials||l(h))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;b&&(_[t.xsrfHeaderName]=b)}"setRequestHeader"in f&&i.forEach(_,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete _[e]:f.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),p&&"json"!==p&&(f.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),s(t),f=null)})),d||(d=null),f.send(d)}))}},5606:t=>{var e,s,i=t.exports={};function r(){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===r||!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:r}catch(t){e=r}try{s="function"==typeof clearTimeout?clearTimeout:o}catch(t){s=o}}();var a,c=[],l=!1,u=-1;function d(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&_())}function _(){if(!l){var t=n(d);l=!0;for(var e=c.length;e;){for(a=c,c=[];++u<e;)a&&a[u].run();u=-1,e=c.length}a=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 p(t,e){this.fun=t,this.array=e}function f(){}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 p(t,e)),1!==c.length||l||n(_)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,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 r(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 a(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,a=!1,c=!1,l=0,u=t.length,d="",_="";t:for(l=0;l<u;l++){var p=t.charAt(l);if(!1===a){if("<"===p){a=l;continue}}else if(!1===c){if("<"===p){i+=s(t.slice(n,l)),a=l,n=l;continue}if(">"===p||l===u-1){i+=s(t.slice(n,a)),d=r(_=t.slice(a,l+1)),i+=e(a,i.length,d,_,o(_)),n=l+1,a=!1;continue}if('"'===p||"'"===p)for(var f=1,m=t.charAt(l-f);""===m.trim()||"="===m;){if("="===m){c=p;continue t}m=t.charAt(l-++f)}}else if(p===c){c=!1;continue}}return n<u&&(i+=s(t.substr(n))),i},e.parseAttr=function(t,e){"use strict";var s=0,r=0,o=[],d=!1,_=t.length;function p(t,s){if(!((t=(t=i.trim(t)).replace(n,"").toLowerCase()).length<1)){var r=e(t,s||"");r&&o.push(r)}}for(var f=0;f<_;f++){var m,v=t.charAt(f);if(!1!==d||"="!==v)if(!1===d||f!==r)if(/\s|\n|\t/.test(v)){if(t=t.replace(/\s|\n|\t/g," "),!1===d){if(-1===(m=a(t,f))){p(i.trim(t.slice(s,f))),d=!1,s=f+1;continue}f=m-1;continue}if(-1===(m=l(t,f-1))){p(d,u(i.trim(t.slice(s,f)))),d=!1,s=f+1;continue}}else;else{if(-1===(m=t.indexOf(v,f+1)))break;p(d,i.trim(t.slice(r+1,m))),d=!1,s=(f=m)+1}else d=t.slice(s,f),s=f+1,r='"'===t.charAt(s)||"'"===t.charAt(s)?s:c(t,f+1)}return s<t.length&&(!1===d?p(t.slice(s)):p(d,u(i.trim(t.slice(s))))),i.trim(o.join(" "))}},6018:(t,e,s)=>{var i=s(7043),r=s(3473);for(var o in(e=t.exports=function(t,e){return new r(e).process(t)}).FilterCSS=r,i)e[o]=i[o];"undefined"!=typeof window&&(window.filterCSS=t.exports)},6333:()=>{},6798:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var s=t(e);return e[2]?"@media ".concat(e[2]," {").concat(s,"}"):s})).join("")},e.i=function(t,s,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var n=this[o][0];null!=n&&(r[n]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);i&&r[c[0]]||(s&&(c[2]?c[2]="".concat(s," and ").concat(c[2]):c[2]=s),e.push(c))}},e}},6987:(t,e,s)=>{"use strict";var i=s(5606),r=s(9516),o=s(7018),n=s(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!r.isUndefined(t)&&r.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"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,s){if(r.isString(t))try{return(e||JSON.parse)(t),r.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&&r.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, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),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 r=s.config.validateStatus;s.status&&r&&!r(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,r,o){var n=new Error(t);return i(n,e,s,r,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),r=s(9012),o=s(5155),n=s(5343);function a(t){var e=new o(t),s=r(o.prototype.request,e);return i.extend(s,o.prototype,e),i.extend(s,e),s}var c=a(s(6987));c.Axios=o,c.create=function(t){return a(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,r=s(2048),o=s(5930),n=o.parseTag,a=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=r.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=r.whiteList,this.attributeWrapSign=!0===t.singleQuotedAttributeValue?"'":r.attributeWrapSign,t.onTag=t.onTag||r.onTag,t.onTagAttr=t.onTagAttr||r.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||r.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||r.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||r.safeAttrValue,t.escapeHtml=t.escapeHtml||r.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,_=s.onIgnoreTagAttr,p=s.safeAttrValue,f=s.escapeHtml,m=e.attributeWrapSign,v=e.cssFilter;s.stripBlankChar&&(t=r.stripBlankChar(t)),s.allowCommentTag||(t=r.stripCommentTag(t));var h=!1;s.stripIgnoreTagBody&&(h=r.StripTagBody(s.stripIgnoreTagBody,u),u=h.onIgnoreTag);var g=n(t,(function(t,e,s,r,n){var h={sourcePosition:t,position:e,isClosing:n,isWhite:Object.prototype.hasOwnProperty.call(i,s)},g=o(s,r,h);if(!l(g))return g;if(h.isWhite){if(h.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}}(r),y=i[s],w=a(b.html,(function(t,e){var i=-1!==c.indexOf(y,t),r=d(s,t,e,i);return l(r)?i?(e=p(s,t,e,v))?t+"="+m+e+m:t:l(r=_(s,t,e,i))?void 0:r:r}));return r="<"+s,w&&(r+=" "+w),b.closing&&(r+=" /"),r+=">"}return l(g=u(s,r,h))?f(r):g}),f);return h&&(g=h.remove(g)),g},t.exports=u},8428:()=>{},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 r(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(r(e)+"="+r(t))})))})),o=n.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},9137:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},9349:t=>{t.exports={indexOf:function(t,e){var 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,r;if(Array.prototype.forEach)return t.forEach(e,s);for(i=0,r=t.length;i<r;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}}},9418:(t,e,s)=>{"use strict";s.d(e,{A:()=>o});var i=s(6798),r=s.n(i)()((function(t){return t[1]}));r.push([t.id,".sui-vertical-tabs .sui-icon-info[data-v-22f1ae98]:before{color:#fecf2f}.sui-vertical-tabs .sui-icon-info.sui-error[data-v-22f1ae98]:before{color:#ff6d6d}",""]);const o=r},9516:(t,e,s)=>{"use strict";var i=s(9012),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function n(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===r.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 r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===r.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:a,isPlainObject:c,isUndefined:n,isDate:function(t){return"[object Date]"===r.call(t)},isFile:function(t){return"[object File]"===r.call(t)},isBlob:function(t){return"[object Blob]"===r.call(t)},isFunction:l,isStream:function(t){return a(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,r=arguments.length;i<r;i++)u(arguments[i],s);return e},extend:function(t,e,s){return u(e,(function(e,r){t[r]=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),r=s(4680);t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},9631:(t,e,s)=>{"use strict";var i=s(9516),r=["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]&&r.indexOf(e)>=0)return;n[e]="set-cookie"===e?(n[e]?n[e]:[]).concat([s]):n[e]?n[e]+", "+s:s}})),n):n}}},s={};function i(t){var r=s[t];if(void 0!==r)return r.exports;var o=s[t]={id:t,exports:{}};return e[t](o,o.exports,i),o.exports}i.m=e,t=[],i.O=(e,s,r,o)=>{if(!s){var n=1/0;for(u=0;u<t.length;u++){for(var[s,r,o]=t[u],a=!0,c=0;c<s.length;c++)(!1&o||n>=o)&&Object.keys(i.O).every((t=>i.O[t](s[c])))?s.splice(c--,1):(a=!1,o<n&&(n=o));if(a){t.splice(u--,1);var l=r();void 0!==l&&(e=l)}}return e}o=o||0;for(var u=t.length;u>0&&t[u-1][2]>o;u--)t[u]=t[u-1];t[u]=[s,r,o]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={316:0,261:0,997:0,551:0,224:0};i.O.j=e=>0===t[e];var e=(e,s)=>{var r,o,[n,a,c]=s,l=0;if(n.some((e=>0!==t[e]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(c)var u=c(i)}for(e&&e(s);l<n.length;l++)o=n[l],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return i.O(u)},s=self.webpackChunkwp_defender=self.webpackChunkwp_defender||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))})(),i.nc=void 0,i.O(void 0,[261,997,551,224],(()=>i(4077))),i.O(void 0,[261,997,551,224],(()=>i(8428))),i.O(void 0,[261,997,551,224],(()=>i(5377))),i.O(void 0,[261,997,551,224],(()=>i(4184)));var r=i.O(void 0,[261,997,551,224],(()=>i(6333)));r=i.O(r)})();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings