HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpskycap/wp-content/plugins/defender-security/assets/app/two-fa.js
"use strict";(self.webpackChunkwp_defender=self.webpackChunkwp_defender||[]).push([[472],{682:(e,t,n)=>{n.d(t,{X:()=>o,m:()=>a});var r=n(9726),i=(0,r.KR)(defender.misc.high_contrast||!1),a=function(e){i.value=e},o=function(){var e=(0,r.KR)(1===parseInt(defender.is_free)),t=(0,r.KR)(defender.tracking_modal),n=(0,r.KR)(defender.is_whitelabel),a=(0,r.KR)(defender.misc||{}),o=(0,r.KR)(defender.whitelabel||{}),u=(0,r.KR)(defender.upgrade_title||""),l=(0,r.KR)(defender.is_membership||!1),s=(0,r.KR)(defender.wpmudev_support_ticket_text||""),c=(0,r.KR)(defender.hosted||!1),d=(0,r.EW)(function(){return"show"===t.value}),f=(0,r.EW)(function(){return"disabled"===n.value}),p=(0,r.EW)(function(){return"enabled"===n.value}),v=(0,r.EW)(function(){return!0===i.value});return{is_free:e,tracking_modal:t,is_whitelabel:n,is_membership:l,misc:a,whitelabel:o,upgradeTitle:u,support_text:s,hosted:c,showTrackingModal:d,isWhitelabelDisabled:f,isWhitelabelEnabled:p,showSupportLinks:function(){return f.value&&!e.value},hasFeature:function(t){if(!e.value)return!0;return["security_tweaks","firewall","scan_free","audit_free","two_fa_free"].includes(t)},maybeHighContrast:function(){return{"sui-color-accessible":v.value}},isHighContrast:function(){return v.value}}}},1289:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(9726),i=n(7476),a=n(6965),o={class:"sui-loading-text"},u={class:"sui-button-text-default"},l={class:"sui-button-text-onload"};const s={__name:"sui-button",props:{id:{type:String,default:""},label:{type:String,default:""},type:{type:String,default:"button"},variant:{type:String,default:"auto"},icon:{type:String,default:""},action:{type:String,default:""},disabled:{type:Boolean,default:!1},loadingText:{type:String,default:""},customClass:{type:String,default:""},onlyIcon:{type:[Boolean,String],default:!1},href:{type:String,default:""}},emits:["click"],setup:function(e){var t=(0,i.r)(),n=(0,a.S)().stringToId,s=e,c=(0,r.EW)(function(){return s.icon||(s.action.includes("save")?"sui-icon-save":"")}),d=(0,r.EW)(function(){return"auto"===s.variant?"submit"===s.type?"sui-button-blue":"sui-button-ghost":{blue:"sui-button-blue",ghost:"sui-button-ghost",red:"sui-button-red",gray:"",purple:"sui-button-purple"}[s.variant]}),f=(0,r.EW)(function(){return s.action&&t.isLoading(s.action)}),p=(0,r.EW)(function(){var e=[s.onlyIcon?"sui-button-icon":"sui-button",d.value];return f.value&&e.push(s.loadingText?"sui-button-onload-text":"sui-button-onload"),s.customClass&&e.push(s.customClass),e}),v=(0,r.EW)(function(){return s.id?s.id:s.action?n(s.action):n(s.label)});return function(t,n){return(0,r.uX)(),(0,r.Wv)((0,r.$y)(e.href?"a":"button"),(0,r.v6)({id:v.value,type:e.href?void 0:e.type,href:e.href,class:p.value,disabled:e.href?void 0:f.value||e.disabled,"aria-live":e.loadingText?"polite":void 0,onClick:n[0]||(n[0]=function(e){return t.$emit("click")})},t.$attrs),{default:(0,r.k6)(function(){return[e.loadingText?((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.Lk)("span",u,[c.value?((0,r.uX)(),(0,r.CE)("span",{key:0,class:(0,r.C4)(c.value),"aria-hidden":"true"},null,2)):(0,r.Q3)("",!0),(0,r.eW)(" "+(0,r.v_)(e.label)+" ",1),(0,r.RG)(t.$slots,"default")]),(0,r.Lk)("span",l,[n[2]||(n[2]=(0,r.Lk)("span",{class:"sui-icon-loader sui-loading","aria-hidden":"true"},null,-1)),(0,r.eW)(" "+(0,r.v_)(e.loadingText),1)])],64)):((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.Lk)("span",o,[c.value?((0,r.uX)(),(0,r.CE)("span",{key:0,class:(0,r.C4)(c.value),"aria-hidden":"true"},null,2)):(0,r.Q3)("",!0),(0,r.eW)(" "+(0,r.v_)(e.label)+" ",1),(0,r.RG)(t.$slots,"default")]),n[1]||(n[1]=(0,r.Lk)("span",{class:"sui-icon-loader sui-loading","aria-hidden":"true"},null,-1))],64))]}),_:3},16,["id","type","href","class","disabled","aria-live"])}}}},1512:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(9726),i=n(7786),a={class:"sui-tabs sui-side-tabs"},o={role:"tablist",class:"sui-tabs-menu"},u=["id","aria-controls","aria-selected","tabindex","onClick"],l=["name","value","aria-label","checked"],s={class:"sui-tabs-content"},c=["id","aria-labelledby","hidden"],d={key:0,class:"sui-border-frame"};const f={__name:"side-tab",props:{tabs:{type:Array,required:!0},modelValue:{type:[String,Boolean],required:!0},slug:{type:String,required:!0}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,f=e,p=n,v=(0,i.hRP)(f,"modelValue",p),m=(0,r.EW)(function(){return"".concat(f.slug,"-tabs")}),b=function(e){return e?"".concat(e,"-tab"):""},h=function(e){return e?"".concat(e,"-content"):""};return function(t,n){return(0,r.uX)(),(0,r.CE)("div",a,[(0,r.Lk)("div",o,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.tabs,function(i){return(0,r.uX)(),(0,r.CE)(r.FK,{key:i.value},[(0,r.Lk)("button",{type:"button",role:"tab",id:b(i.id||i.value),class:(0,r.C4)(["sui-tab-item",{active:e.modelValue===i.value}]),"aria-controls":h(i.id||i.value),"aria-selected":e.modelValue===i.value?"true":"false",tabindex:e.modelValue===i.value?"0":"-1",onClick:function(e){return t.$emit("update:modelValue",i.value)}},(0,r.v_)(i.label),11,u),(0,r.bo)((0,r.Lk)("input",{type:"radio",name:m.value,value:i.value,class:"sui-screen-reader-text","aria-label":i.label,"aria-hidden":"true",checked:e.modelValue===i.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.i9)(v)?v.value=e:null})},null,8,l),[[r.XL,(0,r.R1)(v)]])],64)}),128))]),(0,r.Lk)("div",s,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.tabs,function(n){return(0,r.uX)(),(0,r.CE)(r.FK,{key:n.value},[n.hideContent?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",{key:0,role:"tabpanel",id:h(n.id||n.value),class:(0,r.C4)(["sui-tab-content",{active:e.modelValue===n.value}]),"aria-labelledby":b(n.id||n.value),tabindex:0,hidden:e.modelValue!==n.value},[!1!==n.hasFrame?((0,r.uX)(),(0,r.CE)("div",d,[(0,r.RG)(t.$slots,n.value)])):(0,r.RG)(t.$slots,n.value,{key:1})],10,c))],64)}),128))])])}}}},1669:e=>{e.exports=jQuery},1751:(e,t,n)=>{n.d(t,{q:()=>b});var r=n(4335),i=n(3279),a=n(2720),o=n(7786),u=n(8261);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,i){var a,u,l,s=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,u=0,l=e,f.n=n,o}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!i&&t<c.length;t++){var i,a=c[t],p=f.p,v=a[2];n>3?(i=v===r)&&(l=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<v&&(i=n<3||a[0]>r||r>v)&&(a[4]=n,a[5]=r,f.n=v,u=0))}if(i||n>1)return o;throw d=!0,r}return function(i,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),u=c,l=v;(t=u<2?e:l)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,l)):f.n=l:f.v=l);try{if(s=2,a){if(u||(i="next"),t=a[i]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,u<2&&(u=0)}else 1===u&&(t=a.return)&&t.call(a),u<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),u=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==o)break}catch(t){a=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,i,a),!0),s}var o={};function u(){}function l(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=d.prototype=u.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=d,c(p,"constructor",d),c(d,"constructor",l),l.displayName="GeneratorFunction",c(d,i,"GeneratorFunction"),c(p),c(p,i,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:a,m:v}})()}function c(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function m(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){v(a,r,i,o,u,"next",e)}function u(e){v(a,r,i,o,u,"throw",e)}o(void 0)})}}function b(){var e=(0,u.m)().rebindSUI,t=r.A.create({baseURL:"".concat(ajaxurl,"?action=wp_defender/v1/hub/"),timeout:3e4,transitional:{clarifyTimeoutError:!0},withCredentials:!1});function n(e,t){return"&route=".concat(encodeURIComponent(e),"&_def_nonce=").concat(encodeURIComponent(t))}function l(e,t,n,r){return c.apply(this,arguments)}function c(){return c=m(s().m(function r(o,u,l,c){var p,v,m,b,h,y,g,k,_,w,L,C,R,E,S,x,j,X,A,O=arguments;return s().w(function(r){for(;;)switch(r.n){case 0:return y=O.length>4&&void 0!==O[4]?O[4]:{},g=new FormData,c instanceof File&&"application/json"===c.type?g.append("file",c):(k=JSON.stringify(c),g.append("data",k)),_=n(u,l),r.n=1,(0,i.q)(_,f({method:o,data:g},y),t);case 1:if(w=r.v,L=w.data,!w.error.value){r.n=2;break}return r.a(2,null);case 2:return C=L.value,R=C.success,E=(null===(p=C.data)||void 0===p?void 0:p.message)||null,S=(null===(v=C.data)||void 0===v?void 0:v.redirect)||null,x=(null===(m=C.data)||void 0===m?void 0:m.interval)||null,j=(null===(b=C.data)||void 0===b?void 0:b.type_notice)||!1,(void 0===(null===(h=C.data)||void 0===h?void 0:h.auto_close)||C.data.auto_close)&&null!==E&&(A=!0===(null===(X=C.data)||void 0===X?void 0:X.auto_close),Defender.showNotification(R?j||"success":"error",E,A)),"session_out"===j&&null===S&&d(),null!==x?(0,a.TO)(function(){null!==S?location.href=S:location.reload()},1e3*x):null!==S&&(location.href=S),e(),r.a(2,C.data)}},r)})),c.apply(this,arguments)}function d(){(0,a.TO)(function(){(0,o.MLh)(document,"heartbeat-tick",function(){jQuery(document).trigger("heartbeat-tick.wp-auth-check",[{"wp-auth-check":!1}])}),(0,o.MLh)(window,"load",function(){var e=document.getElementById("wp-auth-check-frame");if(e){var t,n=null===(t=e.contentDocument)||void 0===t?void 0:t.getElementById("loginform");n&&n.addEventListener("submit",function(){(0,a.TO)(function(){location.reload()},1e3)})}})},2e3)}var p=function(){var e=m(s().m(function e(t,n){var r,a,o,u,l,c,d,p,v,m,b,h,y=arguments;return s().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=y.length>2&&void 0!==y[2]?y[2]:{},a=y.length>3&&void 0!==y[3]?y[3]:{},e.p=1,o="".concat(window.ajaxurl,"?action=").concat(t,"&_def_nonce=").concat(n),e.n=2,(0,i.q)(f({url:o,method:"POST",data:r},a));case 2:if(u=e.v,!(l=u.data).value){e.n=4;break}if(!(c=l.value).success){e.n=3;break}return e.a(2,c.data||c);case 3:throw null!==(d=c.data)&&void 0!==d&&d.message&&null!==(p=window.Defender)&&void 0!==p&&p.showNotification&&window.Defender.showNotification("error",c.data.message),new Error((null===(v=c.data)||void 0===v?void 0:v.message)||"Request failed");case 4:throw new Error("No response received");case 5:throw e.p=5,h=e.v,403===(null===(m=h.response)||void 0===m?void 0:m.status)&&(null!==(b=window.Defender)&&void 0!==b&&b.showNotification&&window.Defender.showNotification("error","Session expired. Please refresh the page."),setTimeout(function(){return window.location.reload()},2e3)),h;case 6:return e.a(2)}},e,null,[[1,5]])}));return function(t,n){return e.apply(this,arguments)}}();return{ajax:p,post:function(e,t,n){return l("post",e,t,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})},get:function(e,t,n){return l("get",e,t,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}}}},2366:(e,t,n)=>{n.d(t,{A:()=>Ce});var r=n(9726),i=n(682),a=n(5945),o=n(5592),u=n(1751),l=n(9919);function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,i){var a,u,l,s=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,u=0,l=e,f.n=n,o}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!i&&t<c.length;t++){var i,a=c[t],p=f.p,v=a[2];n>3?(i=v===r)&&(l=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<v&&(i=n<3||a[0]>r||r>v)&&(a[4]=n,a[5]=r,f.n=v,u=0))}if(i||n>1)return o;throw d=!0,r}return function(i,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),u=c,l=v;(t=u<2?e:l)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,l)):f.n=l:f.v=l);try{if(s=2,a){if(u||(i="next"),t=a[i]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,u<2&&(u=0)}else 1===u&&(t=a.return)&&t.call(a),u<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),u=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==o)break}catch(t){a=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,i,a),!0),s}var o={};function u(){}function l(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=d.prototype=u.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=d,c(p,"constructor",d),c(d,"constructor",l),l.displayName="GeneratorFunction",c(d,i,"GeneratorFunction"),c(p),c(p,i,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:a,m:v}})()}function c(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function d(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){d(a,r,i,o,u,"next",e)}function u(e){d(a,r,i,o,u,"throw",e)}o(void 0)})}}var p={key:0,class:"defender-rate-notice sui-notice sui-notice-info"},v={class:"sui-notice-content"},m={class:"sui-notice-message"},b={class:"sui-notice-actions"},h={class:"sui-screen-reader-text"};const y={__name:"rate-notice",props:{message:String,type:String},setup:function(e){var t=(0,o.B)().__,n=(0,u.q)(),i=(0,r.WQ)("store"),a=(0,r.KR)(!0),c=(0,r.EW)(function(){return i.misc.rating_is_displayed}),d=(0,r.EW)(function(){return i.misc.rating_text}),y=(0,r.EW)(function(){return i.misc.rating_type}),g=(0,r.EW)(function(){return i.routes}),k=(0,r.EW)(function(){return i.nonces}),_=function(){var e=f(s().m(function e(){return s().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.post(g.value.handle_notice,k.value.handle_notice,{});case 1:a.value=!1,window.open("https://wordpress.org/support/plugin/defender-security/reviews/#new-post","_blank");case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),w=function(){var e=f(s().m(function e(){var t,r,i;return s().w(function(e){for(;;)switch(e.n){case 0:return t="tweak"===y.value,r=t?g.value.refuse_notice:g.value.postpone_notice,i=t?k.value.refuse_notice:k.value.postpone_notice,e.n=1,n.post(r,i,{});case 1:a.value=!1;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),L=function(){var e=f(s().m(function e(){return s().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.post(g.value.refuse_notice,k.value.refuse_notice,{});case 1:a.value=!1;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return function(e,n){return c.value&&a.value?((0,r.uX)(),(0,r.CE)("div",p,[(0,r.Lk)("div",v,[(0,r.Lk)("div",m,[(0,r.Lk)("p",null,(0,r.v_)(d.value),1),(0,r.bF)((0,r.R1)(l.A),{id:"rate-defender","css-class":"sui-button-blue",onClick:_},{default:(0,r.k6)(function(){return[(0,r.eW)((0,r.v_)((0,r.R1)(t)("Rate Defender")),1)]}),_:1}),(0,r.bF)((0,r.R1)(l.A),{id:"postpone-notice",onClick:w,"css-class":"sui-button-ghost dismiss"},{default:(0,r.k6)(function(){return[(0,r.eW)((0,r.v_)((0,r.R1)(t)("Maybe later")),1)]}),_:1}),(0,r.Lk)("a",{href:"#",id:"refuse-notice",onClick:(0,r.D$)(L,["prevent"]),class:"refuse"},(0,r.v_)((0,r.R1)(t)("No thanks")),1)]),(0,r.Lk)("div",b,[(0,r.Lk)("button",{id:"close-notice",class:"sui-button-icon",onClick:L},[n[0]||(n[0]=(0,r.Lk)("span",{class:"sui-icon-cross-close","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",h,(0,r.v_)((0,r.R1)(t)("Close this notice")),1)])])])])):(0,r.Q3)("",!0)}}};var g={key:0,class:"sui-notice sui-notice-info"},k={class:"sui-notice-content"},_={class:"sui-notice-message"},w={class:"m-0"},L=["innerHTML"];const C={__name:"opcache-notice",setup:function(e){var t=(0,o.B)().__,n=(0,r.KR)(defender.opcache_save_comments),i=(0,r.KR)(defender.opcache_message);return function(e,a){return"disabled"===n.value?((0,r.uX)(),(0,r.CE)("div",g,[(0,r.Lk)("div",k,[(0,r.Lk)("div",_,[(0,r.Lk)("h3",w,(0,r.v_)((0,r.R1)(t)("Enable OPcache Save Comments")),1),(0,r.Lk)("p",{innerHTML:i.value},null,8,L)])])])):(0,r.Q3)("",!0)}}};var R=n(6874),E=n(4073),S=n(5067),x={class:"sui-row-with-sidenav"},j={role:"navigation",class:"sui-sidenav"},X={class:"sui-vertical-tabs sui-sidenav-hide-md"},A=["id"],O=["id","data-tab","onClick"],T={key:0,class:"wd-new-feature-dot"},I={key:1,class:"sui-tag sui-tag-pro right-10px top-10px"},P={class:"sui-sidenav-hide-lg"},F=["id"];const U={__name:"side-menu",props:{tabs:{type:Array,required:!0},defaultTab:{type:String,default:null},boxed:{type:Boolean,default:!1}},setup:function(e){var t,n=(0,E.I)().adminUrl,i=(0,o.B)().__,a=e,u=(0,r.KR)(a.defaultTab||(null===(t=a.tabs[0])||void 0===t?void 0:t.id));(0,r.wB)(u,function(){var e=n("admin.php?page="+l()+"&view="+u.value),t=window.location.hash;void 0!==t&&(e+=t),history.replaceState({},null,e)});var l=function(){return new URLSearchParams(window.location.search).get("page")};return(0,r.sV)(function(){var e=new URLSearchParams(window.location.search).get("view");e&&a.tabs.some(function(t){return t.id===e})?u.value=e:!a.defaultTab&&a.tabs.length>0&&(u.value=a.tabs[0].id)}),function(t,a){return(0,r.uX)(),(0,r.CE)("section",x,[(0,r.Lk)("div",j,[(0,r.Lk)("ul",X,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.tabs,function(e){return(0,r.uX)(),(0,r.CE)("li",{key:e.id,class:(0,r.C4)(["sui-vertical-tab",{current:u.value===e.id,"heading pl-5px":e.heading}]),id:"tab-".concat(e.id)},[e.heading?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.eW)((0,r.v_)(e.heading),1)],64)):((0,r.uX)(),(0,r.CE)("a",{key:1,id:"tab-link-".concat(e.id),href:"#",role:"button","data-tab":e.id,onClick:(0,r.D$)(function(t){return r=e.id,u.value=r,void history.replaceState({},null,n("admin.php?page="+l()+"&view="+r));var r},["prevent"])},[(0,r.eW)((0,r.v_)(e.label)+" ",1),e.showDot?((0,r.uX)(),(0,r.CE)("span",T)):e.showPro?((0,r.uX)(),(0,r.CE)("span",I,(0,r.v_)((0,r.R1)(i)("Pro")),1)):e.badge?((0,r.uX)(),(0,r.CE)("span",{key:2,class:(0,r.C4)(["sui-tag",[e.badgeColor,{"sui-tag-grey":u.value===e.id}]])},(0,r.v_)(e.badge),3)):e.icon?((0,r.uX)(),(0,r.CE)("span",{key:3,class:(0,r.C4)(e.icon),"aria-hidden":"true"},null,2)):(0,r.Q3)("",!0)],8,O))],10,A)}),128))]),(0,r.Lk)("div",P,[(0,r.bF)(S.A,{"has-field":!1,class:"margin-bottom-30",modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=function(e){return u.value=e}),options:e.tabs.map(function(e){return{label:e.label,value:e.id}})},null,8,["modelValue","options"])])]),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.tabs,function(n){return(0,r.uX)(),(0,r.CE)("div",{key:n.id,class:(0,r.C4)({"sui-box":e.boxed}),style:(0,r.Tr)({display:u.value===n.id?"block":"none"}),id:"".concat(n.id,"-content")},[n.heading?(0,r.Q3)("",!0):(0,r.RG)(t.$slots,n.id,{key:0,tab:n},function(){return[(0,r.Lk)("p",null,"Content for "+(0,r.v_)(n.label),1)]})],14,F)}),128))])}}};var W=n(5072),G=n.n(W),V=n(7565),K={insert:"head",singleton:!1};G()(V.A,K);V.A.locals;const Q=(0,n(6262).A)(U,[["__scopeId","data-v-0cbd3b8a"]]);var B=n(9806),M=n(6965),D={class:"sui-list-detail flex items-center"},$=["id","href"];const H={__name:"unlock-pro",props:{feature:{type:String,required:!0},campaignUrl:{type:String,required:!0}},setup:function(e){var t=(0,o.B)().__;return function(n,i){return(0,r.uX)(),(0,r.CE)("span",D,[(0,r.Lk)("a",{id:"unlock-pro-".concat((0,r.R1)(M.S)().stringToId(e.feature)),href:e.campaignUrl,target:"_blank",class:"defender-upgrade-text"},(0,r.v_)((0,r.R1)(t)("Unlock with Pro")),9,$),i[0]||(i[0]=(0,r.Lk)("svg",{width:"36",height:"26",viewBox:"0 0 36 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.Lk)("rect",{x:"0.5",y:"0.5",width:"35",height:"25",rx:"12.5",fill:"#F9E1FF"}),(0,r.Lk)("rect",{x:"0.5",y:"0.5",width:"35",height:"25",rx:"12.5",stroke:"#8D00B1"}),(0,r.Lk)("path",{d:"M14.6133 12V10.8047C14.6289 10.3438 14.7305 9.91406 14.918 9.51562C15.1055 9.10938 15.3516 8.75781 15.6562 8.46094C15.9609 8.16406 16.3125 7.92969 16.7109 7.75781C17.1172 7.58594 17.5469 7.5 18 7.5C18.4609 7.5 18.8906 7.58594 19.2891 7.75781C19.6953 7.92969 20.0508 8.16406 20.3555 8.46094C20.6602 8.75781 20.9062 9.10938 21.0938 9.51562C21.2734 9.91406 21.375 10.3438 21.3984 10.8047V12H21.75C21.9609 12 22.1367 12.0742 22.2773 12.2227C22.4258 12.3633 22.5 12.5391 22.5 12.75V17.25C22.5 17.4609 22.4258 17.6406 22.2773 17.7891C22.1367 17.9297 21.9609 18 21.75 18H14.25C14.0391 18 13.8594 17.9297 13.7109 17.7891C13.5703 17.6406 13.5 17.4609 13.5 17.25V12.75C13.5 12.5391 13.5703 12.3633 13.7109 12.2227C13.8594 12.0742 14.0391 12 14.25 12H14.6133ZM16.5234 12H19.4766V10.8047C19.4766 10.3906 19.332 10.0391 19.043 9.75C18.7539 9.45312 18.4062 9.30469 18 9.30469C17.5938 9.30469 17.2461 9.45312 16.957 9.75C16.668 10.0391 16.5234 10.3906 16.5234 10.8047V12Z",fill:"#8D00B1"})],-1))])}}};var N=n(1289);function q(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var J=["id"],Y={class:"sui-summary-segment"},Z=["id"],ee={class:"sui-summary-large"},te=["data-tooltip"],ne={key:1,class:"sui-summary-percent"},re={class:"sui-summary-sub"},ie={key:2,class:"sui-summary-detail"},ae={key:3,class:"sui-summary-sub"},oe={key:0,class:"sui-summary-segment"},ue={class:"sui-list"},le=["id"],se={class:"sui-list-label"},ce=["data-tooltip"],de={class:"sui-list-detail"},fe=["id","href"],pe={key:0,class:"sui-tag sui-tag-brown"},ve={key:2,"aria-hidden":"true",class:"sui-icon-check-tick sui-success"},me={key:0,"aria-hidden":"true",class:"sui-icon-check-tick sui-success"},be={key:1,class:"sui-tag sui-tag-brown"},he={key:1,class:"sui-summary-segment"};const ye={__name:"sui-summary",props:{feature:{type:String,default:""},summary:{type:Object,default:function(){return{}}},small:{type:Boolean,default:!1},title:{type:String,default:""},customContent:{type:Boolean,default:!1}},emits:["action"],setup:function(e,t){var n=t.emit,i=e,a=n,u=(0,B.p)(),l=u.maybeHideBranding,s=u.whitelabelHeroImage,c=u.backgroundImageStyle,d=(0,o.B)().__,f=(0,r.EW)(function(){return i.feature?i.feature+"-summary":i.title?(0,M.S)().stringToId(i.title):(0,M.S)().generateId("summary")});return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)(["sui-box sui-summary",{"sui-summary-sm":e.small,"sui-rebranded":(0,r.R1)(l)&&(0,r.R1)(s),"sui-unbranded":(0,r.R1)(l)&&!(0,r.R1)(s)}]),id:f.value},[(0,r.Lk)("div",{class:"sui-summary-image-space","aria-hidden":"true",style:(0,r.Tr)((0,r.R1)(c))},null,4),(0,r.Lk)("div",Y,[(0,r.Lk)("div",{class:"sui-summary-details",id:e.summary.mainId||(0,r.R1)(M.S)().stringToId(e.summary.mainLabel)},[e.customContent?(0,r.RG)(t.$slots,"custom-content",{key:0}):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.Lk)("span",ee,(0,r.v_)(e.summary.mainValue),1),e.summary.tooltip?((0,r.uX)(),(0,r.CE)("span",{key:0,"data-tooltip":e.summary.tooltip,class:"sui-tooltip sui-tooltip-top-center sui-tooltip-constrained"},[n[0]||(n[0]=(0,r.eW)("  ",-1)),e.summary.icon?((0,r.uX)(),(0,r.CE)("span",{key:0,class:(0,r.C4)([e.summary.icon,e.summary.iconColor]),"aria-hidden":"true"},null,2)):(0,r.Q3)("",!0)],8,te)):(0,r.Q3)("",!0),e.summary.maxValue?((0,r.uX)(),(0,r.CE)("span",ne,"/"+(0,r.v_)(e.summary.maxValue),1)):(0,r.Q3)("",!0),(0,r.Lk)("span",re,(0,r.v_)(e.summary.mainLabel),1),e.summary.subValue?((0,r.uX)(),(0,r.CE)("span",ie,(0,r.v_)(e.summary.subValue),1)):(0,r.Q3)("",!0),e.summary.subLabel?((0,r.uX)(),(0,r.CE)("span",ae,(0,r.v_)(e.summary.subLabel),1)):(0,r.Q3)("",!0)],64))],8,Z)]),e.summary.listItems&&e.summary.listItems.length?((0,r.uX)(),(0,r.CE)("div",oe,[(0,r.Lk)("ul",ue,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.summary.listItems,function(e){return(0,r.uX)(),(0,r.CE)("li",{key:e.label,id:e.id||(0,r.R1)(M.S)().stringToId(e.label),class:"sui-list-item"},[(0,r.Lk)("span",se,[(0,r.eW)((0,r.v_)(e.label)+" ",1),e.tooltip?((0,r.uX)(),(0,r.CE)("span",{key:0,"data-tooltip":e.tooltip,class:"sui-tooltip sui-tooltip-constrained sui-tooltip-top-center"},q(n[1]||(n[1]=[(0,r.Lk)("span",{"aria-hidden":"true",class:"ml-2 sui-icon-info sui-sm"},null,-1)])),8,ce)):(0,r.Q3)("",!0)]),(0,r.Lk)("span",de,[e.button?((0,r.uX)(),(0,r.Wv)(N.A,{key:0,id:e.button.id,label:e.button.label||e.value,type:e.button.type||"button",variant:e.button.variant||"default",size:e.button.size||"small",disabled:e.button.disabled||!1,icon:e.button.icon,action:e.button.action||"default",onClick:function(t){return function(e){var t,n;a("action",{action:(null===(t=e.button)||void 0===t?void 0:t.action)||"default",data:(null===(n=e.button)||void 0===n?void 0:n.data)||{},item:e,label:e.label})}(e)}},null,8,["id","label","type","variant","size","disabled","icon","action","onClick"])):e.upsellUrl?((0,r.uX)(),(0,r.Wv)(H,{key:1,"campaign-url":e.upsellUrl,feature:e.label},null,8,["campaign-url","feature"])):e.link?((0,r.uX)(),(0,r.CE)("a",{key:2,id:"summary-item-link-".concat(e.id||(0,r.R1)(M.S)().stringToId(e.label)),href:e.link,target:"_blank"},["disabled"===e.value?((0,r.uX)(),(0,r.CE)("span",pe,(0,r.v_)((0,r.R1)(d)("Disabled")),1)):e.tag?((0,r.uX)(),(0,r.CE)("span",{key:1,class:(0,r.C4)(["sui-tag",e.tagClass||"sui-tag-error"])},(0,r.v_)(e.value),3)):"check"===e.value?((0,r.uX)(),(0,r.CE)("i",ve)):((0,r.uX)(),(0,r.CE)(r.FK,{key:3},[(0,r.eW)((0,r.v_)(e.value),1)],64))],8,fe)):((0,r.uX)(),(0,r.CE)(r.FK,{key:3},["check"===e.value?((0,r.uX)(),(0,r.CE)("i",me)):"disabled"===e.value?((0,r.uX)(),(0,r.CE)("span",be,(0,r.v_)((0,r.R1)(d)("Disabled")),1)):e.tag?((0,r.uX)(),(0,r.CE)("span",{key:2,class:(0,r.C4)(["sui-tag",e.tagClass||"sui-tag-error"])},(0,r.v_)(e.value),3)):((0,r.uX)(),(0,r.CE)(r.FK,{key:3},[(0,r.eW)((0,r.v_)(e.value),1)],64))],64))])],8,le)}),128))])])):(0,r.Q3)("",!0),t.$slots.segment?((0,r.uX)(),(0,r.CE)("div",he,[(0,r.RG)(t.$slots,"segment")])):(0,r.Q3)("",!0)],10,J)}}};var ge=n(3498),ke=["id"],_e={class:"sui-header"},we={class:"sui-header-title"},Le={key:5};const Ce={__name:"base-layout",props:{title:{type:String,required:!0},pageClass:{type:String,default:""},docLink:{type:String,default:null},summary:{type:Object,default:null},showSummary:{type:Boolean,default:!0},tabs:{type:Array,default:null},defaultTab:{type:String,default:null},boxed:{type:Boolean,default:!1},feature:{type:String,default:"base-layout"}},emits:["action"],setup:function(e,t){var n=t.emit,o=e,u=n,l=(0,i.X)(),s=l.maybeHighContrast,c=l.showTrackingModal,d=["file-scanning","security-tweaks"].includes(o.feature),f=function(e){u("action",e)};return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)(["sui-wrap",(0,r.R1)(s)()]),id:e.feature},[(0,r.Lk)("div",{class:(0,r.C4)(e.pageClass)},[(0,r.Lk)("div",_e,[(0,r.Lk)("h1",we,(0,r.v_)(e.title),1),(0,r.RG)(t.$slots,"header-actions"),e.docLink?((0,r.uX)(),(0,r.Wv)(a.A,{key:0,link:e.docLink},null,8,["link"])):(0,r.Q3)("",!0)]),(0,r.RG)(t.$slots,"notices"),(0,r.R1)(d)?((0,r.uX)(),(0,r.Wv)(y,{key:0})):(0,r.Q3)("",!0),(0,r.bF)(C),(0,r.R1)(c)?((0,r.uX)(),(0,r.Wv)(R.A,{key:1})):(0,r.Q3)("",!0),e.summary&&e.showSummary?((0,r.uX)(),(0,r.Wv)(ye,{key:2,feature:e.feature,summary:e.summary,onAction:f},null,8,["feature","summary"])):(0,r.RG)(t.$slots,"summary",{key:3}),e.tabs?((0,r.uX)(),(0,r.Wv)(Q,{key:4,tabs:e.tabs,"default-tab":e.defaultTab,boxed:e.boxed},(0,r.eX)({_:2},[(0,r.pI)(e.tabs,function(e){return{name:e.id,fn:(0,r.k6)(function(){return[(0,r.RG)(t.$slots,e.id)]})}})]),1032,["tabs","default-tab","boxed"])):((0,r.uX)(),(0,r.CE)("div",Le,[(0,r.RG)(t.$slots,"default")])),n[0]||(n[0]=(0,r.Lk)("div",{class:"clearfix"},null,-1)),n[1]||(n[1]=(0,r.Lk)("div",{class:"padding-bottom-30"},null,-1))],2),(0,r.bF)(ge.A),(0,r.RG)(t.$slots,"modals")],10,ke)}}}},3498:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(9726),i=n(5592),a=n(682),o=n(6965),u=n(4073);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=["innerHTML"],d={key:0},f={class:"sui-footer-nav"},p=["id","href"],v={class:"sui-footer-social"},m=["id","href"],b={class:"sui-screen-reader-text"};const h={__name:"app-footer",setup:function(e){var t=(0,i.B)().__,n=(0,a.X)(),s=n.is_free,h=n.whitelabel,y=(0,u.I)().wpmuDevHubUrl,g=(0,r.EW)(function(){return h.value.footer_text}),k=(0,r.EW)(function(){return h.value.change_footer}),_=[{url:"https://wpmudev.com/roadmap/",text:t("Roadmap")},{url:"https://wpmudev.com/docs/",text:t("Docs")},{url:"https://wpmudev.com/terms-of-service/",text:t("Terms of Service")},{url:"https://incsub.com/privacy-policy/",text:t("Privacy Policy")}],w=[{url:y(),text:t("The Hub")},{url:"https://wpmudev.com/projects/category/plugins/",text:t("Plugins")},{url:y("support/"),text:t("Support")},{url:y("community/"),text:t("Community")}],L=[{url:"https://profiles.wordpress.org/wpmudev#content-plugins",text:t("Free Plugins")},{url:"https://wpmudev.com/features/",text:t("Membership")},{url:"https://wordpress.org/support/plugin/defender-security/",text:t("Support")},{url:"https://wpmudev.com/hub-welcome/",text:t("The Hub")}],C=(0,r.EW)(function(){return[].concat(l(s.value?L:w),_)}),R=[{url:"https://www.facebook.com/wpmudev",icon:"sui-icon-social-facebook",name:t("Facebook")},{url:"https://twitter.com/wpmudev",icon:"sui-icon-social-twitter",name:t("Twitter")},{url:"https://www.instagram.com/wpmu_dev/",icon:"sui-icon-instagram",name:t("Instagram")}];return function(e,t){return(0,r.uX)(),(0,r.CE)("div",null,[(0,r.Lk)("div",{class:"sui-footer",innerHTML:g.value},null,8,c),k.value?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",d,[(0,r.Lk)("ul",f,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(C.value,function(e){return(0,r.uX)(),(0,r.CE)("li",{key:e.url},[(0,r.Lk)("a",{id:(0,r.R1)(o.S)().stringToId(e.text),href:e.url,target:"_blank"},(0,r.v_)(e.text),9,p)])}),128))]),(0,r.Lk)("ul",v,[((0,r.uX)(),(0,r.CE)(r.FK,null,(0,r.pI)(R,function(e){return(0,r.Lk)("li",{key:e.url},[(0,r.Lk)("a",{id:e.name,href:e.url,target:"_blank"},[(0,r.Lk)("i",{class:(0,r.C4)(e.icon),"aria-hidden":"true"},null,2),(0,r.Lk)("span",b,(0,r.v_)(e.name),1)],8,m)])}),64))])]))])}}}},3728:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(9726),i=n(6965),a=n(5592),o=["id"],u={key:0,class:"sui-box-settings-col-1"},l={class:"sui-settings-label"},s={key:0,class:"sui-tag sui-tag-pro"},c={key:1,class:"sui-tag sui-tag-green"},d={class:"sui-description"},f={class:"sui-box-settings-col-2"};const p={__name:"setting-row",props:{label:{type:String,default:""},description:{type:String,default:""},showPro:{type:[Boolean,Number],default:!1},showOpacity:{type:[Boolean,Number],default:!0},showNew:{type:[Boolean,Number],default:!1}},setup:function(e){var t=e,n=(0,a.B)().__;return function(a,p){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)(["sui-box-settings-row sui-flushed",{"opacity-50 pointer-events-none":e.showPro&&e.showOpacity}]),id:(0,r.R1)(i.S)().stringToId(e.label+"-row")},[t.label&&(0,r.Ht)().label?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",u,[(0,r.Lk)("div",l,[(0,r.eW)((0,r.v_)(e.label)+" ",1),(0,r.RG)(a.$slots,"label"),e.showPro?((0,r.uX)(),(0,r.CE)("span",s,(0,r.v_)((0,r.R1)(n)("Pro")),1)):(0,r.Q3)("",!0),e.showNew?((0,r.uX)(),(0,r.CE)("span",c,(0,r.v_)((0,r.R1)(n)("New")),1)):(0,r.Q3)("",!0)]),(0,r.Lk)("span",d,[(0,r.eW)((0,r.v_)(e.description||"")+" ",1),(0,r.RG)(a.$slots,"description")])])),(0,r.Lk)("div",f,[(0,r.RG)(a.$slots,"default")])],10,o)}}};var v=n(5072),m=n.n(v),b=n(4612),h={insert:"head",singleton:!1};m()(b.A,h);b.A.locals;const y=(0,n(6262).A)(p,[["__scopeId","data-v-079b01d3"]])},4073:(e,t,n)=>{n.d(t,{I:()=>r});var r=function(){return{homeUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.home_url+e},siteUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.site_url+e},adminUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.admin_url+e},assetUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.defender_url+e},wpmuDevApiBaseUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.wpmudev_api_base_url+e},campaign_url:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"project/wp-defender",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n=n&&!n.endsWith("&")?n+"&":n,"".concat(defender.wpmudev_api_base_url).concat(t,"/?").concat(n,"utm_source=defender&utm_medium=plugin&utm_campaign=").concat(e)},isUrlOrSlug:function(e){return/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/i.test(e)?"url":"slug"},wpmuDevHubUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.wpmudev_hub_link+e}}}},4146:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(9726),i=n(7786),a=["for"],o=["id","disabled","name"],u={class:"sui-toggle-label"},l=["innerHTML"],s={key:0,class:"sui-notice margin-top-10 sui-description"},c={class:"sui-notice-content"},d={class:"sui-notice-message"},f={key:1,class:"sui-toggle-content"};const p={__name:"toggle-feature",props:{feature:{type:String,required:!0},label:{type:String,required:!0},description:{type:String,default:""},modelValue:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1},disabledNotice:{type:String,default:""},name:{type:String,default:""},hasField:{type:Boolean,default:!0}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,p=e,v=n,m=(0,i.hRP)(p,"modelValue",v);return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)({"sui-form-field":e.hasField})},[(0,r.Lk)("label",{for:"toggle-".concat(e.feature),class:"sui-toggle mb-10px"},[(0,r.bo)((0,r.Lk)("input",{id:"toggle-".concat(e.feature),type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.i9)(m)?m.value=e:null}),disabled:e.disabled,name:e.name},null,8,o),[[r.lH,(0,r.R1)(m)]]),n[1]||(n[1]=(0,r.Lk)("span",{class:"sui-toggle-slider","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",u,[(0,r.eW)((0,r.v_)(e.label)+" ",1),(0,r.RG)(t.$slots,"label-addon")]),e.description?((0,r.uX)(),(0,r.CE)("span",{key:0,class:"sui-description text-left",innerHTML:e.description},null,8,l)):(0,r.Q3)("",!0)],8,a),e.disabled&&e.disabledNotice?((0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",c,[(0,r.Lk)("div",d,[n[2]||(n[2]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)(e.disabledNotice),1)])])])):(0,r.Q3)("",!0),(0,r.R1)(m)&&!e.disabled&&t.$slots.default?((0,r.uX)(),(0,r.CE)("div",f,[(0,r.RG)(t.$slots,"default")])):(0,r.Q3)("",!0)],2)}}}},4612:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(6314),i=n.n(r)()(function(e){return e[1]});i.push([e.id,".bottom-border[data-v-079b01d3]{border-bottom:1px solid #e6e6e6}.bottom-border[data-v-079b01d3]:last-child{border-bottom:none}.sui-tag[data-v-079b01d3]{font-size:8px!important;height:auto!important;line-height:8px!important;margin-left:5px!important;min-height:auto!important;padding:2px 6px!important;position:relative;top:-2px;width:auto!important}",""]);const a=i},4916:(e,t,n)=>{n.d(t,{w:()=>u});var r=n(1751);function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function u(n,r,i,o){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return a(c,"_invoke",function(n,r,i){var a,o,u,s=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,o=0,u=e,f.n=n,l}};function p(n,r){for(o=n,u=r,t=0;!d&&s&&!i&&t<c.length;t++){var i,a=c[t],p=f.p,v=a[2];n>3?(i=v===r)&&(u=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=n<2&&p<a[1])?(o=0,f.v=r,f.n=a[1]):p<v&&(i=n<3||a[0]>r||r>v)&&(a[4]=n,a[5]=r,f.n=v,o=0))}if(i||n>1)return l;throw d=!0,r}return function(i,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),o=c,u=v;(t=o<2?e:u)||!d;){a||(o?o<3?(o>1&&(f.n=-1),p(o,u)):f.n=u:f.v=u);try{if(s=2,a){if(o||(i="next"),t=a[i]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,o<2&&(o=0)}else 1===o&&(t=a.return)&&t.call(a),o<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==l)break}catch(t){a=e,o=1,u=t}finally{s=1}}return{value:t,done:d}}}(n,i,o),!0),c}var l={};function s(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=d.prototype=s.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,a(p,"constructor",d),a(d,"constructor",c),c.displayName="GeneratorFunction",a(d,o,"GeneratorFunction"),a(p),a(p,o,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(i=function(){return{w:u,m:v}})()}function a(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}a=function(e,t,n,r){function o(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},a(e,t,n,r)}function o(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}var u=(0,n(810).nY)("analyticsTracking",function(){function e(){var t;return t=i().m(function e(t){var n,a,o,u;return i().w(function(e){for(;;)switch(e.n){case 0:if(o=null===(n=defender)||void 0===n||null===(n=n.routes)||void 0===n?void 0:n.track_feature_handler,u=null===(a=defender)||void 0===a||null===(a=a.nonces)||void 0===a?void 0:a.track_feature_handler,!o||!u){e.n=2;break}return e.n=1,(0,r.q)().post(o,u,t);case 1:return e.a(2,e.v);case 2:return e.a(2)}},e)}),e=function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function u(e){o(a,r,i,u,l,"next",e)}function l(e){o(a,r,i,u,l,"throw",e)}u(void 0)})},e.apply(this,arguments)}return{trackFeature:function(t){return e.apply(this,arguments)}}})},5067:(e,t,n)=>{n.d(t,{A:()=>X});var r=n(9726),i=n(7786),a=n(682),o=n(1669),u=n.n(o);const l={mounted:function(e,t){(0,a.X)().isHighContrast()&&!u()("body").hasClass("sui-elements-accessible")&&u()("body").addClass("sui-elements-accessible");var n=jQuery(e).closest(".sui-modal-content"),r=n.length?n:"body";"function"==typeof jQuery.fn.SUIselect2&&jQuery(e).SUIselect2({dropdownParent:r}),jQuery(e).on("select2:select",function(){var n,r=new Event("change",{bubbles:!0,cancelable:!0});e.dispatchEvent(r),null===(n=t.value)||void 0===n||n.call(t,e)}),jQuery(e).on("select2:unselect",function(){var t=new Event("change",{bubbles:!0,cancelable:!0});e.dispatchEvent(t)})},updated:function(e){var t=jQuery(e);t.hasClass("select2-hidden-accessible")&&t.SUIselect2("destroy");var n=t.closest(".sui-modal-content"),r=n.length?n:"body";"function"==typeof t.SUIselect2&&t.SUIselect2({dropdownParent:r})},unmounted:function(e){var t=jQuery(e);t.hasClass("select2-hidden-accessible")&&t.SUIselect2("destroy")}};var s=n(6965);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,u=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v=["for"],m={key:1,class:"sui-field-prefix"},b={key:2,class:"relative"},h=["id","multiple","data-placeholder","data-minimum-results-for-search","data-width"],y={key:0,value:""},g=["value"],k=["id","name","multiple","data-placeholder","data-minimum-results-for-search","data-width"],_={key:0,value:""},w=["value"],L={key:4,class:"sui-error-message"},C={key:5,class:"sui-description"};const R={__name:"sui-select",props:{modelValue:{type:[String,Number,Array],default:""},options:{type:[Array,Object],required:!0},id:{type:String,default:""},name:{type:String,default:""},label:{type:String,default:""},prefix:{type:String,default:""},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},hasField:{type:Boolean,default:!0},hasError:{type:Boolean,default:!1},errorMessage:{type:String,default:""},helperMessage:{type:String,default:""},customClass:{type:String,default:""},width:{type:String,default:"100%"},icon:{type:String,default:""}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,a=l,o=e,u=n,c=(0,r.EW)(function(){return o.id||(0,s.S)().stringToId(o.label)||"select-".concat(Math.random().toString(36).substr(2,9))}),p=(0,r.EW)(function(){return(Array.isArray(o.options)?o.options:Object.entries(o.options).map(function(e){var t=f(e,2);return d({},t[0],t[1])})).map(function(e){if("string"==typeof e)return{value:e,label:e};if(void 0!==e.value||void 0!==e.label)return e;var t=f(Object.entries(e)[0]||[],2);return{value:t[0],label:t[1]}})}),R=(0,i.hRP)(o,"modelValue",u);return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)({"sui-form-field":e.hasField,"sui-form-field-error":e.hasError})},[e.label?((0,r.uX)(),(0,r.CE)("label",{key:0,class:"sui-label",for:c.value},(0,r.v_)(e.label),9,v)):(0,r.Q3)("",!0),e.prefix?((0,r.uX)(),(0,r.CE)("span",m,(0,r.v_)(e.prefix),1)):(0,r.Q3)("",!0),e.icon?((0,r.uX)(),(0,r.CE)("div",b,[n[2]||(n[2]=(0,r.Lk)("span",{class:"prefix-icon sui-icon-web-globe-world"},null,-1)),(0,r.bo)(((0,r.uX)(),(0,r.CE)("select",{id:c.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.i9)(R)?R.value=e:null}),class:(0,r.C4)(["sui-select",e.customClass]),multiple:e.multiple,"data-placeholder":e.placeholder,"data-minimum-results-for-search":e.searchable?0:"Infinity","data-width":e.width||"100%"},[!e.multiple&&e.placeholder?((0,r.uX)(),(0,r.CE)("option",y)):(0,r.Q3)("",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(p.value,function(e){return(0,r.uX)(),(0,r.CE)("option",{key:e.value,value:e.value},(0,r.v_)(e.label),9,g)}),128))],10,h)),[[r.u1,(0,r.R1)(R)],[(0,r.R1)(a)]])])):(0,r.bo)(((0,r.uX)(),(0,r.CE)("select",{key:3,id:c.value,name:e.name,"onUpdate:modelValue":n[1]||(n[1]=function(e){return(0,r.i9)(R)?R.value=e:null}),class:(0,r.C4)(["sui-select",e.customClass]),multiple:e.multiple,"data-placeholder":e.placeholder,"data-minimum-results-for-search":e.searchable?0:"Infinity","data-width":e.width||"100%"},[!e.multiple&&e.placeholder?((0,r.uX)(),(0,r.CE)("option",_)):(0,r.Q3)("",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(p.value,function(e){return(0,r.uX)(),(0,r.CE)("option",{key:e.value,value:e.value},(0,r.v_)(e.label),9,w)}),128))],10,k)),[[r.u1,(0,r.R1)(R)],[(0,r.R1)(a)]]),e.hasError&&e.errorMessage?((0,r.uX)(),(0,r.CE)("p",L,(0,r.v_)(e.errorMessage),1)):(0,r.Q3)("",!0),e.helperMessage?((0,r.uX)(),(0,r.CE)("p",C,(0,r.v_)(e.helperMessage),1)):(0,r.Q3)("",!0),(0,r.RG)(t.$slots,"default")],2)}}};var E=n(5072),S=n.n(E),x=n(7389),j={insert:"head",singleton:!1};S()(x.A,j);x.A.locals;const X=(0,n(6262).A)(R,[["__scopeId","data-v-bc246b6e"]])},5592:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(4005),i=new r.FilterXSS({whiteList:{a:["href","title","target"],span:["class"],strong:[]},safeAttrValue:function(e,t,n){return"a"===e&&"href"===t&&"%s"===n?"%s":(0,r.safeAttrValue)(e,t,n)}}),a=function(){var e=wp.i18n;return{__:function(t){return i.process(e.__(t,"defender-security"))},_n:function(t,n,r){return i.process(e._n(t,n,r,"defender-security"))},xss:function(e){return i.process(e)},sprintf:function(){return e.sprintf.apply(e,arguments)}}}},5945:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(9726),i=n(5592),a={key:0,class:"sui-actions-right"},o=["href"];const u={__name:"doc-link",props:{link:{type:String,required:!0}},setup:function(e){var t=e,n=(0,i.B)().__,u=(0,r.KR)(defender.whitelabel.hide_doc_link),l=(0,r.EW)(function(){return defender.wpmudev_url+t.link});return function(e,t){return!1===u.value?((0,r.uX)(),(0,r.CE)("div",a,[(0,r.Lk)("a",{id:"doc-link",href:l.value,target:"_blank",class:"sui-button sui-button-ghost"},[t[0]||(t[0]=(0,r.Lk)("i",{class:"sui-icon-academy","aria-hidden":"true"},null,-1)),(0,r.eW)(" "+(0,r.v_)((0,r.R1)(n)("Documentation")),1)],8,o)])):(0,r.Q3)("",!0)}}}},6874:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(9726),i=n(5592),a=n(8261),o=n(1751),u=n(9919);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var l=r&&r.prototype instanceof u?r:u,c=Object.create(l.prototype);return s(c,"_invoke",function(n,r,i){var a,u,l,s=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,u=0,l=e,f.n=n,o}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!i&&t<c.length;t++){var i,a=c[t],p=f.p,v=a[2];n>3?(i=v===r)&&(l=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<v&&(i=n<3||a[0]>r||r>v)&&(a[4]=n,a[5]=r,f.n=v,u=0))}if(i||n>1)return o;throw d=!0,r}return function(i,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),u=c,l=v;(t=u<2?e:l)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,l)):f.n=l:f.v=l);try{if(s=2,a){if(u||(i="next"),t=a[i]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,u<2&&(u=0)}else 1===u&&(t=a.return)&&t.call(a),u<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),u=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==o)break}catch(t){a=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,i,a),!0),c}var o={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=u.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,s(p,"constructor",d),s(d,"constructor",c),c.displayName="GeneratorFunction",s(d,i,"GeneratorFunction"),s(p),s(p,i,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:v}})()}function s(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}s=function(e,t,n,r){function a(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},s(e,t,n,r)}function c(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){c(a,r,i,o,u,"next",e)}function u(e){c(a,r,i,o,u,"throw",e)}o(void 0)})}}var f={class:"sui-modal sui-modal-md"},p=["aria-label"],v={class:"sui-box margin-bottom-5"},m={class:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},b={class:"sui-box-banner margin-bottom-30","aria-hidden":"true"},h=["src","srcset","alt"],y={class:"sui-screen-reader-text"},g=["innerHTML"],k=["innerHTML"],_={class:"sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--50"};const w={__name:"tracking-modal",setup:function(e){var t=(0,i.B)().__,n=(0,a.m)().suiRemoveModalClass,s=(0,o.q)().post,c=(0,r.KR)(defender.misc.banner_1x),w=(0,r.KR)(defender.misc.banner_2x),L=(0,r.KR)(defender.misc.title),C=(0,r.KR)(defender.misc.title),R=(0,r.KR)(defender.misc.desc),E=(0,r.KR)(defender.misc.optin_button_title),S=(0,r.KR)(defender.misc.skip_button_title),x=(0,r.KR)(defender.misc.nonces),j=(0,r.KR)(defender.misc.routes),X=(0,r.KR)(!1);(0,r.sV)(function(){document.onreadystatechange=function(){SUI.openModal("defender-tracking-modal",jQuery("body"),void 0,!1,!0)}});var A=function(){var e=d(l().m(function e(){return l().w(function(e){for(;;)switch(e.n){case 0:return X.value=!0,e.n=1,s(j.value.save_track_modal,x.value.save_track_modal,{});case 1:SUI.closeModal(),n(),X.value=!1;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),O=function(){var e=d(l().m(function e(){return l().w(function(e){for(;;)switch(e.n){case 0:return X.value=!0,e.n=1,s(j.value.close_track_modal,x.value.close_track_modal,{});case 1:SUI.closeModal(),n(),X.value=!1;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return function(e,n){return(0,r.uX)(),(0,r.CE)("div",f,[(0,r.Lk)("div",{role:"dialog",id:"defender-tracking-modal","aria-modal":"true",class:"sui-modal-content","aria-label":(0,r.R1)(t)("Tracking Preferences Modal")},[(0,r.Lk)("div",v,[(0,r.Lk)("div",m,[(0,r.Lk)("figure",b,[(0,r.Lk)("img",{src:c.value,srcset:c.value+" 1x, "+w.value+" 2x",alt:L.value},null,8,h)]),(0,r.Lk)("button",{class:"modal-close-button sui-button-white sui-button-icon sui-button-float--right",onClick:O},[n[0]||(n[0]=(0,r.Lk)("i",{class:"sui-icon-close sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",y,(0,r.v_)((0,r.R1)(t)("Close this dialog.")),1)]),(0,r.Lk)("h3",{class:"sui-box-title sui-lg",id:"defender-tracking-modal-label",innerHTML:C.value},null,8,g),(0,r.Lk)("p",{class:"sui-description",innerHTML:R.value},null,8,k)]),(0,r.Lk)("div",_,[(0,r.bF)((0,r.R1)(u.A),{onClick:A,doing_ajax:X.value,"css-class":"sui-button-blue"},{default:(0,r.k6)(function(){return[(0,r.eW)((0,r.v_)(E.value),1)]}),_:1},8,["doing_ajax"])])]),(0,r.Lk)("button",{type:"button",onClick:O,class:"sui-modal-skip defender-tracking-modal-skip-link"},(0,r.v_)(S.value),1)],8,p)])}}}},6965:(e,t,n)=>{function r(){return{capitalizeFirstLetter:function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""},stringToId:function(e){return e?e.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,""):""},generateId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Math.random().toString(36).substring(2,15);return e?"".concat(e,"-").concat(t):t}}}n.d(t,{S:()=>r})},7389:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(6314),i=n.n(r)()(function(e){return e[1]});i.push([e.id,".prefix-icon[data-v-bc246b6e]{left:14px;position:absolute;top:50%;transform:translateY(-50%)}",""]);const a=i},7476:(e,t,n)=>{n.d(t,{r:()=>l});var r=n(810),i=n(9726);function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function u(n,r,i,a){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return o(c,"_invoke",function(n,r,i){var a,o,u,s=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,o=0,u=e,f.n=n,l}};function p(n,r){for(o=n,u=r,t=0;!d&&s&&!i&&t<c.length;t++){var i,a=c[t],p=f.p,v=a[2];n>3?(i=v===r)&&(u=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=n<2&&p<a[1])?(o=0,f.v=r,f.n=a[1]):p<v&&(i=n<3||a[0]>r||r>v)&&(a[4]=n,a[5]=r,f.n=v,o=0))}if(i||n>1)return l;throw d=!0,r}return function(i,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),o=c,u=v;(t=o<2?e:u)||!d;){a||(o?o<3?(o>1&&(f.n=-1),p(o,u)):f.n=u:f.v=u);try{if(s=2,a){if(o||(i="next"),t=a[i]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,o<2&&(o=0)}else 1===o&&(t=a.return)&&t.call(a),o<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==l)break}catch(t){a=e,o=1,u=t}finally{s=1}}return{value:t,done:d}}}(n,i,a),!0),c}var l={};function s(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(o(t={},r,function(){return this}),t),p=d.prototype=s.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,o(p,"constructor",d),o(d,"constructor",c),c.displayName="GeneratorFunction",o(d,i,"GeneratorFunction"),o(p),o(p,i,"Generator"),o(p,r,function(){return this}),o(p,"toString",function(){return"[object Generator]"}),(a=function(){return{w:u,m:v}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}o=function(e,t,n,r){function a(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},o(e,t,n,r)}function u(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}var l=(0,r.nY)("loading",function(){var e=(0,i.KR)([]);function t(t){e.value.push(t)}function n(t){e.value=e.value.filter(function(e){return e!==t})}function r(t){return e.value.includes(t)}var o=function(){var e,i=(e=a().m(function e(i,o){return a().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!r(i)){e.n=1;break}return e.a(2);case 1:return t(i),e.p=2,e.n=3,o();case 3:return e.a(2,e.v);case 4:return e.p=4,n(i),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}),function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){u(a,r,i,o,l,"next",e)}function l(e){u(a,r,i,o,l,"throw",e)}o(void 0)})});return function(e,t){return i.apply(this,arguments)}}();return{start:t,stop:n,isLoading:r,clear:function(){for(var t in e)e[t]=!1},withLoading:o}})},7545:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(9726),i=n(7786),a=n(1289),o=n(3728),u=n(5592),l=n(9806),s={class:"sui-box-header"},c={class:"sui-box-title"},d={class:"sui-actions-right"},f={class:"sui-message"},p=["src"],v=["src"],m={class:"sui-message-content"},b={class:"sui-box-header"},h={class:"sui-box-title"},y={class:"sui-actions-right"},g=["innerHTML"],k={key:0,class:"sui-box-footer"},_={class:"sui-actions-right"};const w={__name:"settings-layout",props:{feature:{type:String,required:!0},title:{type:String,required:!0},modelValue:{type:Boolean,default:!0},settings:{type:Array,default:function(){return[]}},imageUrl:{type:String,default:""},toggleAction:{type:String,default:""},saveAction:{type:String,default:""},hasDeactivate:{type:Boolean,default:!0},layoutClass:{type:String,default:""}},emits:["update:modelValue","save-settings","toggle-feature"],setup:function(e,t){var n=t.emit,w=(0,u.B)().__,L=(0,l.p)(),C=L.maybeHideBranding,R=L.whitelabelHeroImage,E=e,S=n,x=(0,i.hRP)(E,"modelValue",S),j="settings-".concat(E.feature,"-").concat(E.modelValue?"enabled":"disabled");return function(t,n){return(0,r.uX)(),(0,r.CE)(r.FK,null,[!1===(0,r.R1)(x)&&e.toggleAction?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"sui-box",id:j},[(0,r.Lk)("div",s,[(0,r.Lk)("h2",c,(0,r.v_)(e.title),1),(0,r.Lk)("div",d,[(0,r.RG)(t.$slots,"actions-right")])]),(0,r.Lk)("div",f,[(0,r.R1)(C)?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("img",{key:0,src:e.imageUrl,class:"sui-image",alt:"Feature image"},null,8,p)),(0,r.R1)(C)&&(0,r.R1)(R)?((0,r.uX)(),(0,r.CE)("img",{key:1,src:(0,r.R1)(R),class:"sui-image wd-whitelabel-custom-branding-logo",alt:"Custom Feature image"},null,8,v)):(0,r.Q3)("",!0),(0,r.Lk)("div",m,[(0,r.RG)(t.$slots,"deactivate-message"),(0,r.bF)(a.A,{label:(0,r.R1)(w)("Activate"),variant:"blue",action:e.toggleAction,type:"button",onClick:n[0]||(n[0]=function(e){return S("toggle-feature")})},null,8,["label","action"])])])])):((0,r.uX)(),(0,r.CE)("div",{key:1,class:"sui-box",id:j},[(0,r.Lk)("div",b,[(0,r.Lk)("h3",h,(0,r.v_)(e.title),1),(0,r.Lk)("div",y,[(0,r.RG)(t.$slots,"actions-right")])]),(0,r.Lk)("div",{class:(0,r.C4)(["sui-box-body",e.layoutClass])},[(0,r.RG)(t.$slots,"description"),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.settings,function(e){return(0,r.uX)(),(0,r.Wv)(o.A,{id:e.key,key:e.key,label:e.label,description:"html"===e.descType?"":e.description,"show-pro":e.showPro,"show-opacity":e.showOpacity,"show-new":e.showNew},(0,r.eX)({default:(0,r.k6)(function(){return[(0,r.RG)(t.$slots,e.key)]}),_:2},["html"===e.descType?{name:"description",fn:(0,r.k6)(function(){return[(0,r.Lk)("div",{innerHTML:e.description},null,8,g)]}),key:"0"}:void 0]),1032,["id","label","description","show-pro","show-opacity","show-new"])}),128)),e.toggleAction?((0,r.uX)(),(0,r.Wv)(o.A,{key:0,label:(0,r.R1)(w)("Deactivate"),id:"deactivate-".concat(e.feature),description:(0,r.R1)(w)("If you no longer want to use this feature you can turn it off at any time.")},{default:(0,r.k6)(function(){return[(0,r.bF)(a.A,{label:(0,r.R1)(w)("Deactivate"),variant:"ghost",icon:"sui-icon-power-on-off",action:e.toggleAction,type:"button",onClick:n[1]||(n[1]=function(e){return S("toggle-feature")})},null,8,["label","action"])]}),_:1},8,["label","id","description"])):(0,r.Q3)("",!0)],2),(0,r.RG)(t.$slots,"default"),e.saveAction?((0,r.uX)(),(0,r.CE)("div",k,[(0,r.Lk)("div",_,[(0,r.bF)(a.A,{label:(0,r.R1)(w)("Save Changes"),variant:"blue",icon:"sui-icon-save",action:e.saveAction,type:"button",onClick:n[2]||(n[2]=function(e){return S("save-settings")})},null,8,["label","action"])])])):(0,r.Q3)("",!0)])),(0,r.RG)(t.$slots,"modals")],64)}}}},7565:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(6314),i=n.n(r)()(function(e){return e[1]});i.push([e.id,".heading[data-v-0cbd3b8a]{color:#999;font-size:12px;font-weight:600}.sidenav-tooltip-icon[data-v-0cbd3b8a]{right:-5px;top:2px}",""]);const a=i},8214:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(9726),i={class:"sui-notice-content"},a={class:"sui-notice-message"},o={key:0,class:"sui-notice-actions"},u=["aria-label"],l={class:"sui-screen-reader-text"};const s={__name:"sui-notice",props:{type:{type:String,default:"",validator:function(e){return["","info","success","warning","error","purple"].includes(e)}},dismissible:{type:Boolean,default:!1},dismissLabel:{type:String,default:"Close this notice"}},emits:["dismiss"],setup:function(e,t){var n=t.emit,s=e,c=n,d=(0,r.EW)(function(){return{info:"sui-icon-info",success:"sui-icon-check-tick",warning:"sui-icon-info",error:"sui-icon-info"}[s.type]||"sui-icon-info"}),f=function(){c("dismiss")};return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)(["sui-notice","sui-notice sui-notice-".concat(e.type)])},[(0,r.Lk)("div",i,[(0,r.Lk)("div",a,[(0,r.Lk)("i",{"aria-hidden":"true",class:(0,r.C4)(["sui-notice-icon sui-md",d.value])},null,2),(0,r.Lk)("p",null,[(0,r.RG)(t.$slots,"default")])]),e.dismissible?((0,r.uX)(),(0,r.CE)("div",o,[(0,r.Lk)("button",{class:"sui-button-icon",onClick:f,"aria-label":e.dismissLabel},[n[0]||(n[0]=(0,r.Lk)("i",{class:"sui-icon-check","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",l,(0,r.v_)(e.dismissLabel),1)],8,u)])):(0,r.Q3)("",!0)])],2)}}}},8261:(e,t,n)=>{n.d(t,{m:()=>u});var r=n(9726),i=n(7786);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,u=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(){var e=function(){(0,r.dY)(function(){"undefined"!=typeof SUI&&(t(),SUI.tabs(),SUI.modalDialog(),n()),"undefined"!=typeof SUI&&SUI.select2&&document.querySelectorAll(".sui-select").forEach(function(e){var t=e.dataset.placeholder||"";SUI.select2(e,{placeholder:t,dropdownCssClass:"sui-select-dropdown"})})})};function t(){document.querySelectorAll(".sui-accordion").forEach(function(e){SUI.suiAccordion(e)})}var n=function(){var e=document.querySelector(".sui-has-modal");e&&e.classList.remove("sui-has-modal")};e(),(0,i.MLh)(document,"modalClosed",n);var o=(0,i.Ubj)("(max-width: 767px)"),u=(0,i.Ubj)("(min-width: 768px) and (max-width: 1024px)"),l=(0,i.Ubj)("(min-width: 1025px)"),s=(0,i.Ubj)("(max-width: 1444px)");return{rebindSUI:e,associateSUIselect2WithModal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("undefined"!=typeof SUI&&SUI.select2){if(!t){var n=e.closest('.sui-modal-content[aria-modal="true"]');t=(null==n?void 0:n.getAttribute("id"))||""}if(t){var r=document.getElementById(t);r&&SUI.select2(e,{dropdownParent:r})}}},suiRemoveModalClass:n,observeModalChanges:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".sui-modal";(0,i.P1n)(document.body,function(n){var r,i=a(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if("childList"===o.type)Array.from(o.addedNodes).some(function(e){var n,r;return e.nodeType===Node.ELEMENT_NODE&&((null===(n=e.matches)||void 0===n?void 0:n.call(e,t))||(null===(r=e.querySelector)||void 0===r?void 0:r.call(e,t)))})&&e()}}catch(e){i.e(e)}finally{i.f()}},{childList:!0,subtree:!0})},reloadAccordion:t,isMobile:o,isTablet:u,isDesktop:l,isLargeDesktop:s}}},8859:(e,t,n)=>{var r=n(9726),i=n(810),a=n(2366),o=n(5592),u=n(4073),l=n(4916),s=n(7545),c=n(1751),d=n(7476);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return b(s,"_invoke",function(n,r,i){var a,u,l,s=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,u=0,l=e,f.n=n,o}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!i&&t<c.length;t++){var i,a=c[t],p=f.p,v=a[2];n>3?(i=v===r)&&(l=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<v&&(i=n<3||a[0]>r||r>v)&&(a[4]=n,a[5]=r,f.n=v,u=0))}if(i||n>1)return o;throw d=!0,r}return function(i,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),u=c,l=v;(t=u<2?e:l)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,l)):f.n=l:f.v=l);try{if(s=2,a){if(u||(i="next"),t=a[i]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,u<2&&(u=0)}else 1===u&&(t=a.return)&&t.call(a),u<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),u=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==o)break}catch(t){a=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,i,a),!0),s}var o={};function u(){}function l(){}function s(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(b(t={},r,function(){return this}),t),d=s.prototype=u.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,b(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,b(d,"constructor",s),b(s,"constructor",l),l.displayName="GeneratorFunction",b(s,i,"GeneratorFunction"),b(d),b(d,i,"Generator"),b(d,r,function(){return this}),b(d,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:f}})()}function b(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}b=function(e,t,n,r){function a(t,n){b(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},b(e,t,n,r)}function h(e,t,n,r,i,a,o){try{var u=e[a](o),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function y(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){h(a,r,i,o,u,"next",e)}function u(e){h(a,r,i,o,u,"throw",e)}o(void 0)})}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var k=(0,i.nY)("twoFactor",function(){var e=(0,c.q)().post,t=(0,d.r)(),n=(0,r.KR)({enabled:!1,lost_phone:!1,force_auth:!1,force_auth_mess:"",user_roles:[],force_auth_roles:[],custom_graphic:!1,custom_graphic_type:"upload",custom_graphic_url:"",custom_graphic_link:"",email_subject:"",email_sender:"",email_body:"",app_title:"",detect_woo:!1}),i=(0,r.KR)({}),a=(0,r.KR)([]),o=(0,r.KR)({}),u=(0,r.KR)({}),l=(0,r.KR)(0),s=(0,r.KR)([]),f=(0,r.KR)(""),v=(0,r.KR)(0),b=(0,r.KR)(!1),h=(0,r.KR)(!1),k=(0,r.KR)(""),_=(0,r.KR)(!1),w=(0,r.KR)(!1);function L(e){var t;n.value=e.model,i.value=null!==(t=e.misc)&&void 0!==t?t:{},a.value=e.all_roles,o.value=e.routes,u.value=e.nonces,l.value=e.count,s.value=e.notices,f.value=e.new_feature,v.value=e.count_checked_roles,b.value=e.is_woo_active,h.value=e.is_multisite,k.value=e.module_name,_.value=e.model.custom_graphic,w.value=n.value.user_roles.length>0}function C(){return R.apply(this,arguments)}function R(){return(R=y(m().m(function r(){return m().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,t.withLoading("save-two-factor-settings",function(){return e(o.value.save_settings,u.value.save_settings,n.value)});case 1:L(r.v);case 2:return r.a(2)}},r)}))).apply(this,arguments)}function E(){return(E=y(m().m(function r(){var i;return m().w(function(r){for(;;)switch(r.n){case 0:return i=p(p({},n.value),{},{enabled:!n.value.enabled}),r.n=1,t.withLoading("toggle-two-factor",y(m().m(function t(){return m().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e(o.value.save_settings,u.value.save_settings,i);case 1:setTimeout(function(){return location.reload()},500);case 2:return t.a(2)}},t)})));case 1:return r.a(2)}},r)}))).apply(this,arguments)}function S(){return(S=y(m().m(function r(i){return m().w(function(r){for(;;)switch(r.n){case 0:if("send"!==i){r.n=2;break}return r.n=1,t.withLoading("send-two-factor-test",function(){return e(o.value.send_test_email,u.value.send_test_email,{email_subject:n.value.email_subject,email_sender:n.value.email_sender,email_body:n.value.email_body})});case 1:r.n=4;break;case 2:return r.n=3,C();case 3:SUI.closeModal();case 4:return r.a(2)}},r)}))).apply(this,arguments)}"object"===g(window.two_fa)&&L(window.two_fa);var x=(0,r.EW)(function(){return!0===n.value.enabled&&!0===w.value}),j=(0,r.EW)(function(){return/(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/.test(n.value.custom_graphic_link)});return{model:n,misc:i,all_roles:a,routes:o,nonces:u,count:l,notices:s,new_feature:f,count_checked_roles:v,is_woo_active:b,is_multisite:h,module_name:k,custom_graphic_state:_,isAuthActiveNotice:w,isActive:x,isValidImageLink:j,init:L,toggle:function(){return E.apply(this,arguments)},saveSettings:C,handleEmailTemplate:function(e){return S.apply(this,arguments)},clearCustomGraphicLink:function(){n.value.custom_graphic_link=""}}}),_=n(1512),w=n(4146),L=n(7786),C=n(8214),R=n(9409);function E(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x={class:"sui-form-field"},j={key:0,class:"sui-label"},X={class:"sui-upload-image","aria-hidden":"true"},A={key:0,class:"flex-1 sui-with-button sui-with-button-icon"},O={key:0,class:"sui-upload-button"},T={key:1,class:"sui-upload-file ml-0"},I=["aria-label"],P={key:1,class:"sui-description"};const F={__name:"sui-image-upload",props:{modelValue:{type:String,default:""},label:{type:String,default:""},description:{type:String,default:""},defaultImage:{type:String,default:""},mode:{type:String,default:"file",validate:function(e){return["file","link"].includes(e)}}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,i=R.A,a=(0,o.B)().__,u=e,l=n,s=(0,L.hRP)(u,"modelValue",l),c=(0,r.KR)(""),d=(0,r.KR)(""),f=function(){d.value="",c.value="",s.value=""},p=function(e){e&&e.valid?(s.value=e.url,d.value=e.url.split("/").pop(),c.value=""):e&&!e.valid&&(c.value=a("Invalid image file type."))},v=(0,r.EW)(function(){var e=s.value||u.defaultImage;return e?{backgroundImage:"url(".concat(e,")")}:{backgroundImage:"url()"}});return(0,r.wB)(function(){return s.value},function(e){e?"link"===u.mode&&(!function(e){if(!e||"string"!=typeof e)return!1;try{new URL(e)}catch(e){return!1}return!!/\.(jpg|jpeg|png|gif|bmp|webp|svg|ico|tiff)(\?.*)?$/i.test(e)||(!!e.startsWith("data:image/")||[/imgur\.com/,/cloudinary\.com/,/amazonaws\.com.*\.(jpg|jpeg|png|gif|webp)/i,/googleusercontent\.com/,/cdn\./].some(function(t){return t.test(e)}))}(e)?c.value=a("The provided link is not a valid image URL."):c.value=""):c.value=""}),function(t,n){return(0,r.uX)(),(0,r.CE)("div",x,[e.label?((0,r.uX)(),(0,r.CE)("label",j,(0,r.v_)(e.label),1)):(0,r.Q3)("",!0),(0,r.Lk)("div",{class:(0,r.C4)(["sui-upload sui-file-upload sui-file-browser gap-5px",{"sui-has_file":(0,r.R1)(s)||"link"===e.mode}])},[(0,r.Lk)("div",X,[n[1]||(n[1]=(0,r.Lk)("div",{class:"sui-image-mask"},null,-1)),(0,r.bo)((0,r.Lk)("div",{role:"button",class:"sui-image-preview",style:(0,r.Tr)(v.value)},null,4),[[(0,r.R1)(i),p]])]),"link"===e.mode?((0,r.uX)(),(0,r.CE)("div",A,[(0,r.bo)((0,r.Lk)("input",{type:"url","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.i9)(s)?s.value=e:null}),class:"sui-form-control wp-link-media"},null,512),[[r.Jo,(0,r.R1)(s)]]),(0,r.R1)(s)?((0,r.uX)(),(0,r.CE)("button",{key:0,class:"sui-button-icon",type:"button",onClick:f},E(n[2]||(n[2]=[(0,r.Lk)("span",{class:"sui-icon-close","aria-hidden":"true"},null,-1)])))):(0,r.Q3)("",!0)])):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.R1)(s)?(0,r.Q3)("",!0):(0,r.bo)(((0,r.uX)(),(0,r.CE)("button",O,[n[3]||(n[3]=(0,r.Lk)("span",{class:"sui-icon-upload-cloud","aria-hidden":"true"},null,-1)),(0,r.eW)(" "+(0,r.v_)((0,r.R1)(a)("Upload file")),1)])),[[(0,r.R1)(i),p]]),(0,r.R1)(s)?((0,r.uX)(),(0,r.CE)("div",T,[(0,r.Lk)("span",null,(0,r.v_)(d.value||(0,r.R1)(s).split("/").pop()),1),(0,r.Lk)("button",{onClick:f,"aria-label":(0,r.R1)(a)("Remove file")},E(n[4]||(n[4]=[(0,r.Lk)("span",{class:"sui-icon-close","aria-hidden":"true"},null,-1)])),8,I)])):(0,r.Q3)("",!0)],64))],2),e.description?((0,r.uX)(),(0,r.CE)("div",P,(0,r.v_)(e.description),1)):(0,r.Q3)("",!0),c.value&&"link"===e.mode?((0,r.uX)(),(0,r.Wv)(C.A,{key:2,type:"error"},{default:(0,r.k6)(function(){return[(0,r.Lk)("p",null,(0,r.v_)(c.value),1)]}),_:1})):(0,r.Q3)("",!0)])}}};var U=n(5067),W=n(682),G={key:0,class:"sui-notice sui-notice-error"},V={class:"sui-notice-content"},K={class:"sui-notice-message"},Q={key:1,class:"sui-notice sui-notice-success"},B={class:"sui-notice-content"},M={class:"sui-notice-message"},D=["href"],$={key:2,class:"sui-notice sui-notice-warning"},H={class:"sui-notice-content"},N={class:"sui-notice-message"},q={class:"sui-field-list"},z={class:"sui-field-list-header"},J={class:"sui-field-list-title"},Y={class:"sui-field-list-body"},Z=["id"],ee=["innerHTML","for"],te=["for"],ne=["value","id"],re={class:"sui-form-field"},ie={class:"sui-toggle"},ae={id:"force_auth_label",class:"sui-toggle-label"},oe={class:"sui-description sui-toggle-content"},ue={id:"force_auth_roles",class:"sui-border-frame sui-toggle-content"},le=["id"],se=["for"],ce=["value","id"],de={class:"sui-description"},fe={class:"sui-label"},pe={class:"sui-notice"},ve={class:"sui-notice-content"},me={class:"sui-notice-message"},be={key:0,class:"sui-upsell-row"},he={class:"min-w-full p-0 sui-upsell-notice"},ye=["href"],ge={class:"sui-field-list"},ke={class:"sui-field-list-header"},_e={class:"sui-field-list-title"},we={class:"sui-field-list-body"},Le={class:"sui-field-list-item"},Ce={class:"sui-field-list-item-label"},Re={class:"w-48"},Ee={class:"sui-border-frame"},Se=["textContent"],xe=["href"],je=["src"],Xe=["href"],Ae=["src"],Oe={class:"sui-form-field"},Te={class:"sui-toggle"},Ie=["disabled"],Pe={for:"detect_woo",class:"sui-toggle-label"},Fe={key:0,class:"sui-notice margin-top-10 sui-description"},Ue={class:"sui-notice-content"},We={class:"sui-notice-message"},Ge=["href"],Ve={key:0,class:"sui-notice sui-notice-info"},Ke={class:"sui-notice-content"},Qe={class:"sui-notice-message"};const Be={__name:"two-fa-settings",setup:function(e){var t=(0,o.B)().__,n=(0,W.X)(),a=n.is_free,c=n.upgradeTitle,d=(0,u.I)(),f=d.adminUrl,p=d.assetUrl,v=d.campaign_url,m=k(),b=(0,l.w)(),h=(0,i.bP)(m),y=h.model,g=h.all_roles,L=h.notices,C=h.is_woo_active,R=h.is_multisite,E=h.module_name,S=h.isActive,x=(0,r.KR)("google-authenticator"),j=(0,r.EW)(function(){var e=[{key:"user_roles",label:t("User Roles"),description:t("Choose the user roles you want to enable two-factor authentication for.")},{key:"force_auth",label:t("Force Authentication"),description:t("By default, two-factor authentication is optional for users. This setting forces users to activate two-factor.")},{key:"app_title",label:t("App Title"),description:t("Customise the title that appears in the Authenticator app for this website.")},{key:"custom_graphic",label:t("Custom Graphic"),description:t("By default, Defender's icon appears above the login fields. You can upload your own branding, or turn this feature off."),showPro:a.value}];return a.value&&e.push({key:"custom_graphic_upsell"}),e.push({key:"emails",label:t("Emails"),description:t("Customize the default copy for emails the two-factor feature sends to users.")},{key:"app_download",label:t("App Download"),description:t("Need the app? Here's links to the official iOS and Android authenticator applications.")},{key:"woocommerce",label:t("WooCommerce"),description:t('Enable this option to allow users to configure two-factor authentication from WooCommerce "My Account" page.')},{key:"active_users",label:t("Active Users"),description:t("Here's a quick link to see which of your users have enabled two-factor authentication.")}),e}),X=[{label:t("Upload Graphic"),value:"upload"},{label:t("Link Graphic"),value:"link"},{label:t("No Graphic"),value:"no",hasFrame:!1}],A=(0,r.EW)(function(){switch(x.value){case"google-authenticator":return"https://apps.apple.com/app/google-authenticator/id388497605";case"microsoft-authenticator":return"https://apps.apple.com/app/microsoft-authenticator/id983156458";case"authy":return"https://apps.apple.com/app/authy/id494168017";default:return""}}),O=(0,r.EW)(function(){switch(x.value){case"google-authenticator":return"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2";case"microsoft-authenticator":return"https://play.google.com/store/apps/details?id=com.azure.authenticator";case"authy":return"https://play.google.com/store/apps/details?id=com.authy.authy";default:return""}}),T=(0,r.EW)(function(){switch(x.value){case"google-authenticator":return t("Download Google Authenticator");case"microsoft-authenticator":return t("Download Microsoft Authenticator");case"authy":return t("Download Authy");default:return""}}),I=function(e){m.toggle(),b.trackFeature({event:e?"def_feature_deactivated":"def_feature_activated",data:{Feature:"Two-Factor Authentication","Triggered From":"Feature page"}}),e||b.trackFeature({event:"def_2fa_activated",data:{"Woocommerce 2FA":y.value.detect_woo?"Enabled":"Disabled","Force authentication":y.value.force_auth?"Enabled":"Disabled"}})};return function(e,n){return(0,r.uX)(),(0,r.Wv)(s.A,{modelValue:(0,r.R1)(y).enabled,"onUpdate:modelValue":n[11]||(n[11]=function(e){return(0,r.R1)(y).enabled=e}),feature:"two-fa",title:(0,r.R1)(E),settings:j.value,"save-action":"save-two-factor-settings","toggle-action":"toggle-two-factor",onSaveSettings:(0,r.R1)(m).saveSettings,onToggleFeature:I,"image-url":(0,r.R1)(p)("assets/img/disabled-module.png")},{"deactivate-message":(0,r.k6)(function(){return[(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("Beef up your website's security with two-factor authentication. Add an extra step in the login process so that users are required to enter a password and an app-generated passcode using their phone – the best protection against brute force attacks.")),1)]}),description:(0,r.k6)(function(){return[(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("Configure your two-factor authentication settings. Our recommendations are enabled by default.")),1),(0,r.R1)(L).length?((0,r.uX)(),(0,r.CE)("div",G,[(0,r.Lk)("div",V,[(0,r.Lk)("div",K,[n[12]||(n[12]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,r.R1)(L),function(e,t){return(0,r.uX)(),(0,r.CE)("span",{key:t},(0,r.v_)(e),1)}),128))])])])])):(0,r.Q3)("",!0),(0,r.R1)(S)?((0,r.uX)(),(0,r.CE)("div",Q,[(0,r.Lk)("div",B,[(0,r.Lk)("div",M,[n[13]||(n[13]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,[(0,r.eW)((0,r.v_)((0,r.R1)(t)("Two-factor authentication is now active."))+" "+(0,r.v_)((0,r.R1)(t)("User roles with this feature enabled must visit their "))+" ",1),(0,r.Lk)("a",{id:"user-profile",href:(0,r.R1)(f)("profile.php#defender-security")},(0,r.v_)((0,r.R1)(t)("Profile page")),9,D),(0,r.eW)(" "+(0,r.v_)((0,r.R1)(t)("to finish setting up authentication.")),1)])])])])):((0,r.uX)(),(0,r.CE)("div",$,[(0,r.Lk)("div",H,[(0,r.Lk)("div",N,[n[14]||(n[14]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("Two-factor authentication is currently inactive. Configure and save your settings to finish setup.")),1)])])]))]}),user_roles:(0,r.k6)(function(){return[(0,r.Lk)("div",q,[(0,r.Lk)("div",z,[(0,r.Lk)("h3",J,(0,r.v_)((0,r.R1)(t)("User role")),1)]),(0,r.Lk)("div",Y,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,r.R1)(g),function(e,t){return(0,r.uX)(),(0,r.CE)("div",{class:"sui-field-list-item",key:t,id:t},[(0,r.Lk)("label",{innerHTML:e,class:"sui-field-list-item-label",for:"toggle_"+t},null,8,ee),(0,r.Lk)("label",{for:"toggle_"+t,class:"sui-toggle"},[(0,r.bo)((0,r.Lk)("input",{type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.R1)(y).user_roles=e}),value:t,id:"toggle_"+t},null,8,ne),[[r.lH,(0,r.R1)(y).user_roles]]),n[15]||(n[15]=(0,r.Lk)("span",{class:"sui-toggle-slider"},null,-1))],8,te)],8,Z)}),128))])])]}),force_auth:(0,r.k6)(function(){return[(0,r.Lk)("div",re,[(0,r.Lk)("label",ie,[(0,r.bo)((0,r.Lk)("input",{role:"presentation","onUpdate:modelValue":n[1]||(n[1]=function(e){return(0,r.R1)(y).force_auth=e}),type:"checkbox",name:"force_auth",class:"toggle-checkbox",id:"force-auth-toggle"},null,512),[[r.lH,(0,r.R1)(y).force_auth]]),n[16]||(n[16]=(0,r.Lk)("span",{class:"sui-toggle-slider"},null,-1)),(0,r.Lk)("span",ae,(0,r.v_)((0,r.R1)(t)("Force users to log in with two-factor authentication")),1)]),(0,r.Lk)("span",oe,(0,r.v_)((0,r.R1)(t)("Note: Users will be forced to set up two-factor when they next login.")),1),(0,r.bo)((0,r.Lk)("div",ue,[(0,r.Lk)("strong",null,(0,r.v_)((0,r.R1)(t)("User Roles")),1),(0,r.Lk)("ul",null,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,r.R1)(g),function(e,t){return(0,r.bo)(((0,r.uX)(),(0,r.CE)("li",{key:t,id:"force_role_".concat(t)},[(0,r.Lk)("label",{class:"sui-checkbox",for:"toggle_force_"+t},[(0,r.bo)((0,r.Lk)("input",{type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=function(e){return(0,r.R1)(y).force_auth_roles=e}),value:t,id:"toggle_force_"+t},null,8,ce),[[r.lH,(0,r.R1)(y).force_auth_roles]]),n[17]||(n[17]=(0,r.Lk)("span",{"aria-hidden":"true"},null,-1)),(0,r.Lk)("span",null,(0,r.v_)(e),1)],8,se)],8,le)),[[r.aG,(0,r.R1)(y).user_roles.includes(t)]])}),128))]),(0,r.Lk)("strong",null,(0,r.v_)((0,r.R1)(t)("Custom warning message")),1),(0,r.bo)((0,r.Lk)("textarea",{class:"sui-form-control","onUpdate:modelValue":n[3]||(n[3]=function(e){return(0,r.R1)(y).force_auth_mess=e}),name:"force_auth_mess"},null,512),[[r.Jo,(0,r.R1)(y).force_auth_mess]]),(0,r.Lk)("span",de,(0,r.v_)((0,r.R1)(t)("Note: This is shown in the users Profile area indicating they must use two-factor authentication.")),1)],512),[[r.aG,!0===(0,r.R1)(y).force_auth]])])]}),app_title:(0,r.k6)(function(){return[(0,r.Lk)("label",fe,(0,r.v_)((0,r.R1)(t)("Custom Title")),1),(0,r.bo)((0,r.Lk)("input",{"onUpdate:modelValue":n[4]||(n[4]=function(e){return(0,r.R1)(y).app_title=e}),class:"sui-form-control sui-input-md"},null,512),[[r.Jo,(0,r.R1)(y).app_title]])]}),custom_graphic:(0,r.k6)(function(){return[(0,r.bF)(w.A,{modelValue:(0,r.R1)(y).custom_graphic,"onUpdate:modelValue":n[5]||(n[5]=function(e){return(0,r.R1)(y).custom_graphic=e}),disabled:(0,r.R1)(a),label:(0,r.R1)(t)("Enable custom graphics above login fields"),feature:"custom_graphic"},null,8,["modelValue","disabled","label"]),!0===(0,r.R1)(y).custom_graphic?((0,r.uX)(),(0,r.Wv)(_.A,{key:0,modelValue:(0,r.R1)(y).custom_graphic_type,"onUpdate:modelValue":n[8]||(n[8]=function(e){return(0,r.R1)(y).custom_graphic_type=e}),tabs:X,slug:"wpdef-custom-graphics"},{upload:(0,r.k6)(function(){return[(0,r.bF)(F,{label:(0,r.R1)(t)("Custom Graphic"),description:(0,r.R1)(t)("For best results use a 168x168px JPG or PNG."),modelValue:(0,r.R1)(y).custom_graphic_url,"onUpdate:modelValue":n[6]||(n[6]=function(e){return(0,r.R1)(y).custom_graphic_url=e}),id:"custom_graphic","default-image":(0,r.R1)(y).custom_graphic_url},null,8,["label","description","modelValue","default-image"])]}),link:(0,r.k6)(function(){return[(0,r.bF)(F,{mode:"link",label:(0,r.R1)(t)("Custom Graphic"),description:(0,r.R1)(t)("For best results use a 168x168px JPG or PNG."),modelValue:(0,r.R1)(y).custom_graphic_link,"onUpdate:modelValue":n[7]||(n[7]=function(e){return(0,r.R1)(y).custom_graphic_link=e}),id:"custom_graphic","default-image":(0,r.R1)(y).custom_graphic_link},null,8,["label","description","modelValue","default-image"])]}),no:(0,r.k6)(function(){return[(0,r.Lk)("div",pe,[(0,r.Lk)("div",ve,[(0,r.Lk)("div",me,[n[18]||(n[18]=(0,r.Lk)("span",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("No icon will be displayed on two-factor form.")),1)])])])]}),_:1},8,["modelValue"])):(0,r.Q3)("",!0)]}),custom_graphic_upsell:(0,r.k6)(function(){return[(0,r.R1)(a)?((0,r.uX)(),(0,r.CE)("div",be,[(0,r.Lk)("div",he,[(0,r.Lk)("p",null,[(0,r.eW)((0,r.v_)((0,r.R1)(t)("Remove our branding and whitelabel two-factor authentication with Defender Pro. This feature is included in a WPMU DEV membership with 24/7 support and lots of handy site management tools."))+" ",1),n[19]||(n[19]=(0,r.Lk)("br",null,null,-1)),(0,r.Lk)("a",{id:"upgrade-graphic",class:"premium-button sui-button sui-button-purple",target:"_blank",href:(0,r.R1)(v)("defender_2fa_customgraphic_upsell")},(0,r.v_)((0,r.R1)(c)),9,ye)])])])):(0,r.Q3)("",!0)]}),emails:(0,r.k6)(function(){return[(0,r.Lk)("div",ge,[(0,r.Lk)("div",ke,[(0,r.Lk)("h3",_e,(0,r.v_)((0,r.R1)(t)("Email")),1)]),(0,r.Lk)("div",we,[(0,r.Lk)("div",Le,[(0,r.Lk)("label",Ce,(0,r.v_)((0,r.R1)(t)("Fallback email one time password")),1),n[20]||(n[20]=(0,r.Lk)("button",{type:"button",class:"sui-button-icon","data-modal-open":"modal-lost-phone-email-config","data-modal-mask":"false","data-esc-close":"true"},[(0,r.Lk)("i",{class:"sui-icon-pencil","aria-hidden":"true"})],-1))])])])]}),app_download:(0,r.k6)(function(){return[(0,r.Lk)("div",Re,[(0,r.bF)(U.A,{id:"two-fa-auth-select",modelValue:x.value,"onUpdate:modelValue":n[9]||(n[9]=function(e){return x.value=e}),options:[{value:"google-authenticator",label:(0,r.R1)(t)("Google Authenticator")},{value:"microsoft-authenticator",label:(0,r.R1)(t)("Microsoft Authenticator")},{value:"authy",label:(0,r.R1)(t)("Authy")}],searchable:!1,width:"220px'"},null,8,["modelValue","options"])]),(0,r.Lk)("div",Ee,[(0,r.Lk)("span",{class:"sui-description margin-bottom-10 no-margin-top",textContent:(0,r.v_)(T.value)},null,8,Se),(0,r.Lk)("a",{id:"ios-link",href:A.value,target:"_blank"},[(0,r.Lk)("img",{src:(0,r.R1)(p)("assets/img/ios-download.svg")},null,8,je)],8,xe),(0,r.Lk)("a",{id:"android-link",href:O.value,target:"_blank",class:"ml-1"},[(0,r.Lk)("img",{src:(0,r.R1)(p)("assets/img/android-download.svg")},null,8,Ae)],8,Xe)])]}),woocommerce:(0,r.k6)(function(){return[(0,r.Lk)("div",Oe,[(0,r.Lk)("label",Te,[(0,r.bo)((0,r.Lk)("input",{type:"checkbox","onUpdate:modelValue":n[10]||(n[10]=function(e){return(0,r.R1)(y).detect_woo=e}),id:"detect_woo",disabled:!(0,r.R1)(C),name:"detect_woo"},null,8,Ie),[[r.lH,(0,r.R1)(y).detect_woo]]),n[22]||(n[22]=(0,r.Lk)("span",{class:"sui-toggle-slider"},null,-1)),(0,r.Lk)("span",Pe,(0,r.v_)((0,r.R1)(t)("Enable two-factor authentication for WooCommerce")),1),(0,r.R1)(C)?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",Fe,[(0,r.Lk)("div",Ue,[(0,r.Lk)("div",We,[n[21]||(n[21]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("WooCommerce must be active to use this feature.")),1)])])]))])])]}),active_users:(0,r.k6)(function(){return[(0,r.Lk)("a",{id:"view-users",target:"_blank",href:(0,r.R1)(f)("users.php?wpdef_two_fa=enabled")},(0,r.v_)((0,r.R1)(t)("View users")),9,Ge),(0,r.eW)(" "+(0,r.v_)((0,r.R1)(t)("who have enabled this feature."))+" ",1),(0,r.R1)(R)?((0,r.uX)(),(0,r.CE)("div",Ve,[(0,r.Lk)("div",Ke,[(0,r.Lk)("div",Qe,[n[23]||(n[23]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("For multisite installations, you will see a list of all users who have enabled two-factor authentication on all subsites on the network Users screen.")),1)])])])):(0,r.Q3)("",!0)]}),_:1},8,["modelValue","title","settings","onSaveSettings","image-url"])}}},Me=Be;var De=n(9919),$e=n(1289),He={class:"sui-modal sui-modal-lg"},Ne={role:"dialog",id:"modal-lost-phone-email-config",class:"sui-modal-content","aria-modal":"true","aria-labelledby":"modal-lost-phone-email-config-title","aria-describedby":"modal-lost-phone-email-config-desc"},qe={class:"sui-box",role:"document"},ze={class:"sui-box-header"},Je={class:"sui-box-title",id:"modal-lost-phone-email-config-title"},Ye={class:"sui-actions-right"},Ze={id:"close-email-modal",class:"sui-button-icon sui-button-float--right","data-modal-close":""},et={class:"sui-screen-reader-text"},tt={class:"sui-box-body"},nt={id:"modal-lost-phone-email-config-desc"},rt={class:"sui-row"},it={class:"sui-col"},at={class:"sui-form-field"},ot={class:"sui-label"},ut={class:"sui-col"},lt={class:"sui-form-field"},st={class:"sui-label"},ct={class:"sui-row"},dt={class:"sui-col"},ft={class:"sui-label"},pt={class:"sui-row"},vt={class:"sui-col"},mt={class:"sui-label"},bt={class:"sui-tag"},ht=["textContent"],yt={class:"sui-tag"},gt=["textContent"],kt={class:"sui-box-footer"},_t={class:"sui-flex-child-right"},wt={id:"cancel-email-edit",type:"button",class:"sui-button sui-button-ghost","data-modal-close":""},Lt={class:"sui-actions-right"};const Ct={__name:"email-config-modal",setup:function(e){var t=(0,o.B)().__,n=k(),a=(0,i.bP)(n).model;return function(e,i){return(0,r.uX)(),(0,r.CE)("div",He,[(0,r.Lk)("div",Ne,[(0,r.Lk)("div",qe,[(0,r.Lk)("div",ze,[(0,r.Lk)("h3",Je,(0,r.v_)((0,r.R1)(t)("Edit Email")),1),(0,r.Lk)("div",Ye,[(0,r.Lk)("button",Ze,[i[5]||(i[5]=(0,r.Lk)("i",{class:"sui-icon-close sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",et,(0,r.v_)((0,r.R1)(t)("Close this dialog.")),1)])])]),(0,r.Lk)("form",{method:"post",onSubmit:i[4]||(i[4]=(0,r.D$)(function(e){return(0,r.R1)(n).handleEmailTemplate("save")},["prevent"]))},[(0,r.Lk)("div",tt,[(0,r.Lk)("p",nt,(0,r.v_)((0,r.R1)(t)("This email sends a temporary passcode when the user can't access their phone.")),1),(0,r.Lk)("div",rt,[(0,r.Lk)("div",it,[(0,r.Lk)("div",at,[(0,r.Lk)("label",ot,(0,r.v_)((0,r.R1)(t)("Subject")),1),(0,r.bo)((0,r.Lk)("input",{name:"subject","onUpdate:modelValue":i[0]||(i[0]=function(e){return(0,r.R1)(a).email_subject=e}),class:"sui-form-control",type:"text",id:"email_subject"},null,512),[[r.Jo,(0,r.R1)(a).email_subject]])])]),(0,r.Lk)("div",ut,[(0,r.Lk)("div",lt,[(0,r.Lk)("label",st,(0,r.v_)((0,r.R1)(t)("Sender")),1),(0,r.bo)((0,r.Lk)("input",{name:"sender","onUpdate:modelValue":i[1]||(i[1]=function(e){return(0,r.R1)(a).email_sender=e}),class:"sui-form-control",type:"text",id:"email_sender"},null,512),[[r.Jo,(0,r.R1)(a).email_sender]])])])]),(0,r.Lk)("div",ct,[(0,r.Lk)("div",dt,[(0,r.Lk)("label",ft,(0,r.v_)((0,r.R1)(t)("Body")),1),(0,r.bo)((0,r.Lk)("textarea",{class:"sui-form-control","onUpdate:modelValue":i[2]||(i[2]=function(e){return(0,r.R1)(a).email_body=e}),name:"body",rows:"8",id:"email_body"},null,512),[[r.Jo,(0,r.R1)(a).email_body]])])]),(0,r.Lk)("div",pt,[(0,r.Lk)("div",vt,[(0,r.Lk)("label",mt,(0,r.v_)((0,r.R1)(t)("Available variables")),1),(0,r.Lk)("span",bt,[(0,r.Lk)("strong",{textContent:(0,r.v_)((0,r.R1)(t)("{{passcode}}"))},null,8,ht)]),(0,r.Lk)("span",yt,[(0,r.Lk)("strong",{textContent:(0,r.v_)((0,r.R1)(t)("{{display_name}}"))},null,8,gt)])])])]),(0,r.Lk)("div",kt,[(0,r.Lk)("div",_t,[(0,r.Lk)("button",wt,(0,r.v_)((0,r.R1)(t)("Cancel")),1)]),(0,r.Lk)("div",Lt,[(0,r.bF)(De.A,{id:"save-email-template",action:"save-template","css-class":"sui-button"},{default:(0,r.k6)(function(){return[(0,r.eW)((0,r.v_)((0,r.R1)(t)("Save Template")),1)]}),_:1}),(0,r.bF)($e.A,{variant:"blue",action:"send-two-factor-test",onClick:i[3]||(i[3]=function(e){return(0,r.R1)(n).handleEmailTemplate("send")}),label:(0,r.R1)(t)("Send Test")},null,8,["label"])])])],32)])])])}}},Rt={__name:"two-fa",setup:function(e){var t=k(),n=(0,o.B)(),u=n._n,l=n.__,s=(0,W.X)().is_free,c=(0,i.bP)(t),d=c.model,f=c.count,p=c.custom_graphic_state,v=c.count_checked_roles,m=c.module_name,b=(0,r.EW)(function(){return{mainValue:f.value,mainLabel:u("User enabled authentication","Users enabled authentication",f.value),listItems:[{label:l("User roles"),value:v.value},{label:l("Custom Graphic"),value:s.value?l("Pro"):!1===p.value?l("Inactive"):l("Active"),tag:!0,tagClass:s.value?"sui-tag-pro":!1===p.value?"sui-tag-brown":"sui-tag-blue"}]}});return function(e,t){return(0,r.uX)(),(0,r.Wv)(a.A,{title:(0,r.R1)(m),"page-class":"two-fa",feature:"two-fa","doc-link":"?utm_source=defender&utm_medium=plugin&utm_campaign=defender_2fa_docs#two-factor-authentication",summary:b.value,"show-summary":(0,r.R1)(d).enabled},{default:(0,r.k6)(function(){return[(0,r.bF)(Me),(0,r.bF)(Ct)]}),_:1},8,["title","summary","show-summary"])}}};var Et=(0,r.Ef)(Rt);Et.use((0,i.Ey)()),Et.mount("#defender")},9409:(e,t,n)=>{n.d(t,{A:()=>i});var r=(0,n(5592).B)().__;const i={beforeMount:function(e,t){if(window.wp&&window.wp.media){var n=null,i=t.value||{},a="function"==typeof i?i:i.callback,o=i.type||["image"],u=i.allowedTypes||["image/jpeg","image/png","image/gif"],l=i.title||r("Choose an image file"),s=function(){"undefined"!=typeof _&&"function"==typeof _.forEach&&["get","set","cloneDeep","at"].every(function(e){return"function"==typeof _[e]})&&_.noConflict(),n||(n=window.wp.media({title:l,button:{text:r("Choose File")},multiple:!1,library:{type:o}})).on("select",function(){var e=n.state().get("selection").first().toJSON();0===u.length||u.indexOf(e.mime)>-1?a({url:e.url,valid:!0,id:e.id,filename:e.filename}):(window.Defender&&window.Defender.showNotification&&window.Defender.showNotification("error",r("Invalid file type")),a({url:e.url,valid:!1}))}),n.open()};e.__vueWpMediaHandler__=s,e.addEventListener("click",s)}},unmounted:function(e){e.removeEventListener("click",e.__vueWpMediaHandler__),delete e.__vueWpMediaHandler__}}},9806:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(5592),i=n(9726);function a(){(0,r.B)().__;var e=(0,i.EW)(function(){return defender.whitelabel.hide_branding}),t=(0,i.EW)(function(){return"disabled"===defender.is_whitelabel&&0===parseInt(defender.is_free)}),n=(0,i.EW)(function(){return"disabled"===defender.is_whitelabel}),a=(0,i.EW)(function(){return defender.whitelabel.hero_image||!1}),o=(0,i.EW)(function(){return defender.whitelabel.hide_doc_link||!1}),u=(0,i.EW)(function(){return e.value&&a.value?{backgroundImage:"url(".concat(a.value,")")}:{}});return{maybeHideBranding:e,showSupportLinks:t,isWhitelabelDisabled:n,whitelabelHeroImage:a,hide_doc_link:o,backgroundImageStyle:u}}},9919:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(9726);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=["type","disabled"],o={class:"sui-loading-text"};const u={__name:"submit-button2",props:{cssClass:String,disabled:Boolean,type:String,is_icon:Boolean,doing_ajax:[Boolean,String],action:String},emits:["click"],setup:function(e){var t=e,n=(0,r.nI)().proxy,u=null==n?void 0:n.$store,l=(0,r.EW)(function(){var e,n=["sui-button"];return!0===t.is_icon&&(n=[]),t.cssClass&&n.push(t.cssClass),void 0===t.doing_ajax?("object"===i(null==u?void 0:u.state.doing_ajax)&&t.action&&-1!==u.state.doing_ajax.indexOf(t.action)||!0===(null==u?void 0:u.state.doing_ajax))&&(e=!0):e=t.doing_ajax,!0===e&&n.push("sui-button-onload"),n}),s=(0,r.EW)(function(){return!0===t.disabled}),c=(0,r.EW)(function(){return""===t.type?"submit":t.type});return function(e,t){return(0,r.uX)(),(0,r.CE)("button",{type:c.value,onClick:t[0]||(t[0]=function(t){return e.$emit("click")}),class:(0,r.C4)(l.value),disabled:s.value},[(0,r.Lk)("span",o,[(0,r.RG)(e.$slots,"default")]),t[1]||(t[1]=(0,r.Lk)("i",{class:"sui-icon-loader sui-loading","aria-hidden":"true"},null,-1))],10,a)}}}}},e=>{e.O(0,[270],()=>{return t=8859,e(e.s=t);var t});e.O()}]);