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/wpmuhibbah_err/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:()=>r,m:()=>i});var o=n(9726),a=(0,o.KR)(defender.misc.high_contrast||!1),i=function(e){a.value=e},r=function(){var e=(0,o.KR)(1===parseInt(defender.is_free)),t=(0,o.KR)(defender.tracking_modal),n=(0,o.KR)(defender.is_whitelabel),i=(0,o.KR)(defender.misc||{}),r=(0,o.KR)(defender.whitelabel||{}),u=(0,o.KR)(defender.upgrade_title||""),l=(0,o.KR)(defender.is_membership||!1),s=(0,o.KR)(defender.wpmudev_support_ticket_text||""),c=(0,o.KR)(defender.hosted||!1),d=(0,o.EW)(function(){return"show"===t.value}),f=(0,o.EW)(function(){return"disabled"===n.value}),p=(0,o.EW)(function(){return"enabled"===n.value}),v=(0,o.EW)(function(){return!0===a.value});return{is_free:e,tracking_modal:t,is_whitelabel:n,is_membership:l,misc:i,whitelabel:r,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 o=n(9726),a=n(7476),i=["id","type","disabled","aria-live"],r={class:"sui-loading-text"},u={class:"sui-button-text-default"},l={class:"sui-button-text-onload"};const s={__name:"sui-button",props:{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}},emits:["click"],setup:function(e){var t=(0,a.r)(),n=e,s=(0,o.EW)(function(){return n.icon||(n.action.includes("save")?"sui-icon-save":"")}),c=(0,o.EW)(function(){return"auto"===n.variant?"submit"===n.type?"sui-button-blue":"sui-button-ghost":{blue:"sui-button-blue",ghost:"sui-button-ghost",red:"sui-button-red",gray:"",purple:"sui-button-purple"}[n.variant]}),d=(0,o.EW)(function(){return n.action&&t.isLoading(n.action)}),f=(0,o.EW)(function(){var e=[n.onlyIcon?"sui-button-icon":"sui-button",c.value];return d.value&&e.push(n.loadingText?"sui-button-onload-text":"sui-button-onload"),n.customClass&&e.push(n.customClass),e}),p=(0,o.EW)(function(){return n.action?"".concat(n.type,"-").concat(n.action.toLowerCase().replace(/\s+/g,"-")):"".concat(n.type,"-").concat(n.label.toLowerCase().replace(/\s+/g,"-"),"-").concat(n.type)});return function(t,n){return(0,o.uX)(),(0,o.CE)("button",(0,o.v6)({id:p.value,type:e.type,class:f.value,disabled:d.value||e.disabled,"aria-live":e.loadingText?"polite":void 0,onClick:n[0]||(n[0]=function(e){return t.$emit("click")})},t.$attrs),[e.loadingText?((0,o.uX)(),(0,o.CE)(o.FK,{key:1},[(0,o.Lk)("span",u,[s.value?((0,o.uX)(),(0,o.CE)("span",{key:0,class:(0,o.C4)(s.value),"aria-hidden":"true"},null,2)):(0,o.Q3)("",!0),(0,o.eW)(" "+(0,o.v_)(e.label)+" ",1),(0,o.RG)(t.$slots,"default")]),(0,o.Lk)("span",l,[n[2]||(n[2]=(0,o.Lk)("span",{class:"sui-icon-loader sui-loading","aria-hidden":"true"},null,-1)),(0,o.eW)(" "+(0,o.v_)(e.loadingText),1)])],64)):((0,o.uX)(),(0,o.CE)(o.FK,{key:0},[(0,o.Lk)("span",r,[s.value?((0,o.uX)(),(0,o.CE)("span",{key:0,class:(0,o.C4)(s.value),"aria-hidden":"true"},null,2)):(0,o.Q3)("",!0),(0,o.eW)(" "+(0,o.v_)(e.label)+" ",1),(0,o.RG)(t.$slots,"default")]),n[1]||(n[1]=(0,o.Lk)("span",{class:"sui-icon-loader sui-loading","aria-hidden":"true"},null,-1))],64))],16,i)}}}},1512:(e,t,n)=>{n.d(t,{A:()=>f});var o=n(9726),a=n(7786),i={class:"sui-tabs sui-side-tabs"},r={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,a.hRP)(f,"modelValue",p),m=(0,o.EW)(function(){return"".concat(f.slug,"-tabs")}),b=function(e){return e?"".concat(f.slug,"__").concat(e,"__tab"):""},h=function(e){return e?"".concat(f.slug,"__").concat(e,"__content"):""};return function(t,n){return(0,o.uX)(),(0,o.CE)("div",i,[(0,o.Lk)("div",r,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.tabs,function(a){return(0,o.uX)(),(0,o.CE)(o.FK,{key:a.value},[(0,o.Lk)("button",{type:"button",role:"tab",id:b(a.value),class:(0,o.C4)(["sui-tab-item",{active:e.modelValue===a.value}]),"aria-controls":h(a.value),"aria-selected":e.modelValue===a.value?"true":"false",tabindex:e.modelValue===a.value?"0":"-1",onClick:function(e){return t.$emit("update:modelValue",a.value)}},(0,o.v_)(a.label),11,u),(0,o.bo)((0,o.Lk)("input",{type:"radio",name:m.value,value:a.value,class:"sui-screen-reader-text","aria-label":a.label,"aria-hidden":"true",checked:e.modelValue===a.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,o.i9)(v)?v.value=e:null})},null,8,l),[[o.XL,(0,o.R1)(v)]])],64)}),128))]),(0,o.Lk)("div",s,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.tabs,function(n){return(0,o.uX)(),(0,o.CE)(o.FK,{key:n.value},[n.hideContent?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",{key:0,role:"tabpanel",id:h(n.value),class:(0,o.C4)(["sui-tab-content",{active:e.modelValue===n.value}]),"aria-labelledby":b(n.value),tabindex:0,hidden:e.modelValue!==n.value},[!1!==n.hasFrame?((0,o.uX)(),(0,o.CE)("div",d,[(0,o.RG)(t.$slots,n.value)])):(0,o.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 o=n(4335),a=n(3279),i=n(2720),r=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:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,o,a,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,o,a){var i,u,l,s=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,l=e,f.n=n,r}};function p(n,o){for(u=n,l=o,t=0;!d&&s&&!a&&t<c.length;t++){var a,i=c[t],p=f.p,v=i[2];n>3?(a=v===o)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(u=0,f.v=o,f.n=i[1]):p<v&&(a=n<3||i[0]>o||o>v)&&(i[4]=n,i[5]=o,f.n=v,u=0))}if(a||n>1)return r;throw d=!0,o}return function(a,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;){i||(u?u<3?(u>1&&(f.n=-1),p(u,l)):f.n=l:f.v=l);try{if(s=2,i){if(u||(a="next"),t=i[a]){if(!(t=t.call(i,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=i.return)&&t.call(i),u<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(o,f))!==r)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,a,i),!0),s}var r={};function u(){}function l(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(c(t={},o,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,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=d,c(p,"constructor",d),c(d,"constructor",l),l.displayName="GeneratorFunction",c(d,a,"GeneratorFunction"),c(p),c(p,a,"Generator"),c(p,o,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:v}})()}function c(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}c=function(e,t,n,o){if(t)a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){c(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},c(e,t,n,o)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}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 o=n.call(e,t||"default");if("object"!=l(o))return o;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,o,a,i,r){try{var u=e[i](r),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(o,a)}function m(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function r(e){v(i,o,a,r,u,"next",e)}function u(e){v(i,o,a,r,u,"throw",e)}r(void 0)})}}function b(){var e=(0,u.m)().rebindSUI,t=o.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,o){return c.apply(this,arguments)}function c(){return c=m(s().m(function o(r,u,l,c){var p,v,m,b,h,y,g,_,k,w,L,C,R,E,S,x,j,O,X,A=arguments;return s().w(function(o){for(;;)switch(o.n){case 0:return y=A.length>4&&void 0!==A[4]?A[4]:{},g=new FormData,c instanceof File&&"application/json"===c.type?g.append("file",c):(_=JSON.stringify(c),g.append("data",_)),k=n(u,l),o.n=1,(0,a.q)(k,f({method:r,data:g},y),t);case 1:if(w=o.v,L=w.data,!w.error.value){o.n=2;break}return o.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&&(X=!0===(null===(O=C.data)||void 0===O?void 0:O.auto_close),Defender.showNotification(R?j||"success":"error",E,X)),"session_out"===j&&null===S&&d(),null!==x?(0,i.TO)(function(){null!==S?location.href=S:location.reload()},1e3*x):null!==S&&(location.href=S),e(),o.a(2,C.data)}},o)})),c.apply(this,arguments)}function d(){(0,i.TO)(function(){(0,r.MLh)(document,"heartbeat-tick",function(){jQuery(document).trigger("heartbeat-tick.wp-auth-check",[{"wp-auth-check":!1}])}),(0,r.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,i.TO)(function(){location.reload()},1e3)})}})},2e3)}var p=function(){var e=m(s().m(function e(t,n){var o,i,r,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 o=y.length>2&&void 0!==y[2]?y[2]:{},i=y.length>3&&void 0!==y[3]?y[3]:{},e.p=1,r="".concat(window.ajaxurl,"?action=").concat(t,"&_def_nonce=").concat(n),e.n=2,(0,a.q)(f({url:r,method:"POST",data:o},i));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]:{})}}}},1904:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(6314),a=n.n(o)()(function(e){return e[1]});a.push([e.id,".prefix-icon[data-v-b05b1ba2]{left:14px;position:absolute;top:50%;transform:translateY(-50%)}",""]);const i=a},3498:(e,t,n)=>{n.d(t,{A:()=>m});var o=n(9726),a=n(5592),i=n(682);function r(e){return function(e){if(Array.isArray(e))return u(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 u(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)?u(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var l=["innerHTML"],s={key:0},c={class:"sui-footer-nav"},d=["href"],f={class:"sui-footer-social"},p=["href"],v={class:"sui-screen-reader-text"};const m={__name:"app-footer",setup:function(e){var t=(0,a.B)().__,n=(0,i.X)(),u=n.is_free,m=n.whitelabel,b=(0,o.EW)(function(){return m.value.footer_text}),h=(0,o.EW)(function(){return m.value.change_footer}),y=[{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")}],g=[{url:"https://wpmudev.com/hub2/",text:t("The Hub")},{url:"https://wpmudev.com/projects/category/plugins/",text:t("Plugins")},{url:"https://wpmudev.com/hub2/support/",text:t("Support")},{url:"https://wpmudev.com/hub2/community/",text:t("Community")}],_=[{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")}],k=(0,o.EW)(function(){return[].concat(r(u.value?_:g),y)}),w=[{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,o.uX)(),(0,o.CE)("div",null,[(0,o.Lk)("div",{class:"sui-footer",innerHTML:b.value},null,8,l),h.value?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",s,[(0,o.Lk)("ul",c,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(k.value,function(e){return(0,o.uX)(),(0,o.CE)("li",{key:e.url},[(0,o.Lk)("a",{href:e.url,target:"_blank"},(0,o.v_)(e.text),9,d)])}),128))]),(0,o.Lk)("ul",f,[((0,o.uX)(),(0,o.CE)(o.FK,null,(0,o.pI)(w,function(e){return(0,o.Lk)("li",{key:e.url},[(0,o.Lk)("a",{href:e.url,target:"_blank"},[(0,o.Lk)("i",{class:(0,o.C4)(e.icon),"aria-hidden":"true"},null,2),(0,o.Lk)("span",v,(0,o.v_)(e.name),1)],8,p)])}),64))])]))])}}}},4073:(e,t,n)=>{n.d(t,{I:()=>o});var o=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"}}}},4146:(e,t,n)=>{n.d(t,{A:()=>p});var o=n(9726),a=n(7786),i=["for"],r=["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,a.hRP)(p,"modelValue",v);return function(t,n){return(0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)({"sui-form-field":e.hasField})},[(0,o.Lk)("label",{for:"toggle-".concat(e.feature),class:"sui-toggle mb-10px"},[(0,o.bo)((0,o.Lk)("input",{id:"toggle-".concat(e.feature),type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,o.i9)(m)?m.value=e:null}),disabled:e.disabled,name:e.name},null,8,r),[[o.lH,(0,o.R1)(m)]]),n[1]||(n[1]=(0,o.Lk)("span",{class:"sui-toggle-slider","aria-hidden":"true"},null,-1)),(0,o.Lk)("span",u,[(0,o.eW)((0,o.v_)(e.label)+" ",1),(0,o.RG)(t.$slots,"label-addon")]),e.description?((0,o.uX)(),(0,o.CE)("span",{key:0,class:"sui-description text-left",innerHTML:e.description},null,8,l)):(0,o.Q3)("",!0)],8,i),e.disabled&&e.disabledNotice?((0,o.uX)(),(0,o.CE)("div",s,[(0,o.Lk)("div",c,[(0,o.Lk)("div",d,[n[2]||(n[2]=(0,o.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,o.Lk)("p",null,(0,o.v_)(e.disabledNotice),1)])])])):(0,o.Q3)("",!0),(0,o.R1)(m)&&!e.disabled&&t.$slots.default?((0,o.uX)(),(0,o.CE)("div",f,[(0,o.RG)(t.$slots,"default")])):(0,o.Q3)("",!0)],2)}}}},4438:(e,t,n)=>{n.d(t,{A:()=>j});var o=n(9726),a=n(7786),i=n(682),r=n(1669),u=n.n(r);const l={mounted:function(e,t){(0,i.X)().isHighContrast()&&!u()("body").hasClass("sui-elements-accessible")&&u()("body").addClass("sui-elements-accessible");var n=jQuery(e).closest(".sui-modal-content"),o=n.length?n:"body";"function"==typeof jQuery.fn.SUIselect2&&jQuery(e).SUIselect2({dropdownParent:o}),jQuery(e).on("select2:select",function(){var n,o=new Event("change",{bubbles:!0,cancelable:!0});e.dispatchEvent(o),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"),o=n.length?n:"body";"function"==typeof t.SUIselect2&&t.SUIselect2({dropdownParent:o})},unmounted:function(e){var t=jQuery(e);t.hasClass("select2-hidden-accessible")&&t.SUIselect2("destroy")}};function s(e){return s="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},s(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(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 o,a,i,r,u=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(u.push(o.value),u.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(s)throw a}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var p=["for"],v={key:1,class:"sui-field-prefix"},m={key:2,class:"relative"},b=["id","name","multiple","data-placeholder","data-minimum-results-for-search","data-width"],h={key:0,value:""},y=["value"],g=["id","name","multiple","data-placeholder","data-minimum-results-for-search","data-width"],_={key:0,value:""},k=["value"],w={key:4,class:"sui-error-message"},L={key:5,class:"sui-description"};const C={__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,i=l,r=e,u=n,s=(0,o.EW)(function(){return r.id||"select-".concat(Math.random().toString(36).substr(2,9))}),f=(0,o.EW)(function(){return(Array.isArray(r.options)?r.options:Object.entries(r.options).map(function(e){var t=d(e,2);return c({},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=d(Object.entries(e)[0]||[],2);return{value:t[0],label:t[1]}})}),C=(0,a.hRP)(r,"modelValue",u);return function(t,n){return(0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)({"sui-form-field":e.hasField,"sui-form-field-error":e.hasError})},[e.label?((0,o.uX)(),(0,o.CE)("label",{key:0,class:"sui-label",for:s.value},(0,o.v_)(e.label),9,p)):(0,o.Q3)("",!0),e.prefix?((0,o.uX)(),(0,o.CE)("span",v,(0,o.v_)(e.prefix),1)):(0,o.Q3)("",!0),e.icon?((0,o.uX)(),(0,o.CE)("div",m,[n[2]||(n[2]=(0,o.Lk)("span",{class:"prefix-icon sui-icon-web-globe-world"},null,-1)),(0,o.bo)(((0,o.uX)(),(0,o.CE)("select",{id:s.value,name:e.name,"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,o.i9)(C)?C.value=e:null}),class:(0,o.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,o.uX)(),(0,o.CE)("option",h)):(0,o.Q3)("",!0),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(f.value,function(e){return(0,o.uX)(),(0,o.CE)("option",{key:e.value,value:e.value},(0,o.v_)(e.label),9,y)}),128))],10,b)),[[o.u1,(0,o.R1)(C)],[(0,o.R1)(i)]])])):(0,o.bo)(((0,o.uX)(),(0,o.CE)("select",{key:3,id:s.value,name:e.name,"onUpdate:modelValue":n[1]||(n[1]=function(e){return(0,o.i9)(C)?C.value=e:null}),class:(0,o.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,o.uX)(),(0,o.CE)("option",_)):(0,o.Q3)("",!0),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(f.value,function(e){return(0,o.uX)(),(0,o.CE)("option",{key:e.value,value:e.value},(0,o.v_)(e.label),9,k)}),128))],10,g)),[[o.u1,(0,o.R1)(C)],[(0,o.R1)(i)]]),e.hasError&&e.errorMessage?((0,o.uX)(),(0,o.CE)("p",w,(0,o.v_)(e.errorMessage),1)):(0,o.Q3)("",!0),e.helperMessage?((0,o.uX)(),(0,o.CE)("p",L,(0,o.v_)(e.helperMessage),1)):(0,o.Q3)("",!0),(0,o.RG)(t.$slots,"default")],2)}}};var R=n(5072),E=n.n(R),S=n(1904),x={insert:"head",singleton:!1};E()(S.A,x);S.A.locals;const j=(0,n(6262).A)(C,[["__scopeId","data-v-b05b1ba2"]])},4916:(e,t,n)=>{n.d(t,{w:()=>u});var o=n(1751);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:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function u(n,o,a,r){var u=o&&o.prototype instanceof s?o:s,c=Object.create(u.prototype);return i(c,"_invoke",function(n,o,a){var i,r,u,s=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,r=0,u=e,f.n=n,l}};function p(n,o){for(r=n,u=o,t=0;!d&&s&&!a&&t<c.length;t++){var a,i=c[t],p=f.p,v=i[2];n>3?(a=v===o)&&(u=i[(r=i[4])?5:(r=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(r=0,f.v=o,f.n=i[1]):p<v&&(a=n<3||i[0]>o||o>v)&&(i[4]=n,i[5]=o,f.n=v,r=0))}if(a||n>1)return l;throw d=!0,o}return function(a,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),r=c,u=v;(t=r<2?e:u)||!d;){i||(r?r<3?(r>1&&(f.n=-1),p(r,u)):f.n=u:f.v=u);try{if(s=2,i){if(r||(a="next"),t=i[a]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,r<2&&(r=0)}else 1===r&&(t=i.return)&&t.call(i),r<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),r=1);i=e}else if((t=(d=f.n<0)?u:n.call(o,f))!==l)break}catch(t){i=e,r=1,u=t}finally{s=1}}return{value:t,done:d}}}(n,a,r),!0),c}var l={};function s(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(i(t={},o,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,i(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,i(p,"constructor",d),i(d,"constructor",c),c.displayName="GeneratorFunction",i(d,r,"GeneratorFunction"),i(p),i(p,r,"Generator"),i(p,o,function(){return this}),i(p,"toString",function(){return"[object Generator]"}),(a=function(){return{w:u,m:v}})()}function i(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}i=function(e,t,n,o){if(t)a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var r=function(t,n){i(e,t,function(e){return this._invoke(t,n,e)})};r("next",0),r("throw",1),r("return",2)}},i(e,t,n,o)}function r(e,t,n,o,a,i,r){try{var u=e[i](r),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(o,a)}var u=(0,n(810).nY)("analyticsTracking",function(){function e(){var t;return t=a().m(function e(t){var n,i,r,u;return a().w(function(e){for(;;)switch(e.n){case 0:if(r=null===(n=defender)||void 0===n||null===(n=n.routes)||void 0===n?void 0:n.track_feature_handler,u=null===(i=defender)||void 0===i||null===(i=i.nonces)||void 0===i?void 0:i.track_feature_handler,!r||!u){e.n=2;break}return e.n=1,(0,o.q)().post(r,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(o,a){var i=t.apply(e,n);function u(e){r(i,o,a,u,l,"next",e)}function l(e){r(i,o,a,u,l,"throw",e)}u(void 0)})},e.apply(this,arguments)}return{trackFeature:function(t){return e.apply(this,arguments)}}})},5592:(e,t,n)=>{n.d(t,{B:()=>i});var o=n(4005),a=new o.FilterXSS({whiteList:{a:["href","title","target"],span:["class"],strong:[]},safeAttrValue:function(e,t,n){return"a"===e&&"href"===t&&"%s"===n?"%s":(0,o.safeAttrValue)(e,t,n)}}),i=function(){var e=wp.i18n;return{__:function(t){return a.process(e.__(t,"defender-security"))},_n:function(t,n,o){return a.process(e._n(t,n,o,"defender-security"))},xss:function(e){return a.process(e)},sprintf:function(){return e.sprintf.apply(e,arguments)}}}},5807:(e,t,n)=>{n.d(t,{A:()=>ge});var o=n(9726),a=n(682),i=n(5945),r=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:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,o,a,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,o,a){var i,u,l,s=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,l=e,f.n=n,r}};function p(n,o){for(u=n,l=o,t=0;!d&&s&&!a&&t<c.length;t++){var a,i=c[t],p=f.p,v=i[2];n>3?(a=v===o)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(u=0,f.v=o,f.n=i[1]):p<v&&(a=n<3||i[0]>o||o>v)&&(i[4]=n,i[5]=o,f.n=v,u=0))}if(a||n>1)return r;throw d=!0,o}return function(a,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;){i||(u?u<3?(u>1&&(f.n=-1),p(u,l)):f.n=l:f.v=l);try{if(s=2,i){if(u||(a="next"),t=i[a]){if(!(t=t.call(i,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=i.return)&&t.call(i),u<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(o,f))!==r)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,a,i),!0),s}var r={};function u(){}function l(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(c(t={},o,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,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=d,c(p,"constructor",d),c(d,"constructor",l),l.displayName="GeneratorFunction",c(d,a,"GeneratorFunction"),c(p),c(p,a,"Generator"),c(p,o,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:v}})()}function c(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}c=function(e,t,n,o){if(t)a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){c(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},c(e,t,n,o)}function d(e,t,n,o,a,i,r){try{var u=e[i](r),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(o,a)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function r(e){d(i,o,a,r,u,"next",e)}function u(e){d(i,o,a,r,u,"throw",e)}r(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,r.B)().__,n=(0,u.q)(),a=(0,o.WQ)("store"),i=(0,o.KR)(!0),c=(0,o.EW)(function(){return a.misc.rating_is_displayed}),d=(0,o.EW)(function(){return a.misc.rating_text}),y=(0,o.EW)(function(){return a.misc.rating_type}),g=(0,o.EW)(function(){return a.routes}),_=(0,o.EW)(function(){return a.nonces}),k=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,_.value.handle_notice,{});case 1:i.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,o,a;return s().w(function(e){for(;;)switch(e.n){case 0:return t="tweak"===y.value,o=t?g.value.refuse_notice:g.value.postpone_notice,a=t?_.value.refuse_notice:_.value.postpone_notice,e.n=1,n.post(o,a,{});case 1:i.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,_.value.refuse_notice,{});case 1:i.value=!1;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return function(e,n){return c.value&&i.value?((0,o.uX)(),(0,o.CE)("div",p,[(0,o.Lk)("div",v,[(0,o.Lk)("div",m,[(0,o.Lk)("p",null,(0,o.v_)(d.value),1),(0,o.bF)((0,o.R1)(l.A),{"css-class":"sui-button-blue",onClick:k},{default:(0,o.k6)(function(){return[(0,o.eW)((0,o.v_)((0,o.R1)(t)("Rate Defender")),1)]}),_:1}),(0,o.bF)((0,o.R1)(l.A),{onClick:w,"css-class":"sui-button-ghost dismiss"},{default:(0,o.k6)(function(){return[(0,o.eW)((0,o.v_)((0,o.R1)(t)("Maybe later")),1)]}),_:1}),(0,o.Lk)("a",{href:"#",onClick:(0,o.D$)(L,["prevent"]),class:"refuse"},(0,o.v_)((0,o.R1)(t)("No thanks")),1)]),(0,o.Lk)("div",b,[(0,o.Lk)("button",{class:"sui-button-icon",onClick:L},[n[0]||(n[0]=(0,o.Lk)("span",{class:"sui-icon-cross-close","aria-hidden":"true"},null,-1)),(0,o.Lk)("span",h,(0,o.v_)((0,o.R1)(t)("Close this notice")),1)])])])])):(0,o.Q3)("",!0)}}};var g={key:0,class:"sui-notice sui-notice-info"},_={class:"sui-notice-content"},k={class:"sui-notice-message"},w={class:"m-0"},L=["innerHTML"];const C={__name:"opcache-notice",setup:function(e){var t=(0,r.B)().__,n=(0,o.KR)(defender.opcache_save_comments),a=(0,o.KR)(defender.opcache_message);return function(e,i){return"disabled"===n.value?((0,o.uX)(),(0,o.CE)("div",g,[(0,o.Lk)("div",_,[(0,o.Lk)("div",k,[(0,o.Lk)("h3",w,(0,o.v_)((0,o.R1)(t)("Enable OPcache Save Comments")),1),(0,o.Lk)("p",{innerHTML:a.value},null,8,L)])])])):(0,o.Q3)("",!0)}}};var R=n(6874),E=n(4073),S=n(4438),x={class:"sui-row-with-sidenav"},j={role:"navigation",class:"sui-sidenav"},O={class:"sui-vertical-tabs sui-sidenav-hide-md"},X=["data-tab","onClick"],A={key:0,class:"wd-new-feature-dot"},T={key:1,class:"sui-tag sui-tag-pro right-10px top-10px"},P={class:"sui-sidenav-hide-lg"};const W={__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,a=(0,r.B)().__,i=e,u=(0,o.KR)(i.defaultTab||(null===(t=i.tabs[0])||void 0===t?void 0:t.id));(0,o.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,o.sV)(function(){var e=new URLSearchParams(window.location.search).get("view");e&&i.tabs.some(function(t){return t.id===e})?u.value=e:!i.defaultTab&&i.tabs.length>0&&(u.value=i.tabs[0].id)}),function(t,i){return(0,o.uX)(),(0,o.CE)("section",x,[(0,o.Lk)("div",j,[(0,o.Lk)("ul",O,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.tabs,function(e){return(0,o.uX)(),(0,o.CE)("li",{key:e.id,class:(0,o.C4)(["sui-vertical-tab",{current:u.value===e.id,"heading pl-5px":e.heading}])},[e.heading?((0,o.uX)(),(0,o.CE)(o.FK,{key:0},[(0,o.eW)((0,o.v_)(e.heading),1)],64)):((0,o.uX)(),(0,o.CE)("a",{key:1,href:"#",role:"button","data-tab":e.id,onClick:(0,o.D$)(function(t){return o=e.id,u.value=o,void history.replaceState({},null,n("admin.php?page="+l()+"&view="+o));var o},["prevent"])},[(0,o.eW)((0,o.v_)(e.label)+" ",1),e.showDot?((0,o.uX)(),(0,o.CE)("span",A)):e.showPro?((0,o.uX)(),(0,o.CE)("span",T,(0,o.v_)((0,o.R1)(a)("Pro")),1)):e.badge?((0,o.uX)(),(0,o.CE)("span",{key:2,class:(0,o.C4)(["sui-tag",[e.badgeColor,{"sui-tag-grey":u.value===e.id}]])},(0,o.v_)(e.badge),3)):e.icon?((0,o.uX)(),(0,o.CE)("span",{key:3,class:(0,o.C4)(e.icon),"aria-hidden":"true"},null,2)):(0,o.Q3)("",!0)],8,X))],2)}),128))]),(0,o.Lk)("div",P,[(0,o.bF)(S.A,{"has-field":!1,class:"margin-bottom-30",modelValue:u.value,"onUpdate:modelValue":i[0]||(i[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,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.tabs,function(n){return(0,o.uX)(),(0,o.CE)("div",{key:"content-".concat(n.id),class:(0,o.C4)({"sui-box":e.boxed}),style:(0,o.Tr)({display:u.value===n.id?"block":"none"})},[n.heading?(0,o.Q3)("",!0):(0,o.RG)(t.$slots,n.id,{key:0,tab:n},function(){return[(0,o.Lk)("p",null,"Content for "+(0,o.v_)(n.label),1)]})],6)}),128))])}}};var F=n(5072),I=n.n(F),U=n(8023),G={insert:"head",singleton:!1};I()(U.A,G);U.A.locals;const V=(0,n(6262).A)(W,[["__scopeId","data-v-4f9f85ba"]]);var K=n(9806),Q={class:"sui-list-detail flex items-center"},B=["href"];const M={__name:"unlock-pro",props:{campaignUrl:{type:String,required:!0}},setup:function(e){var t=(0,r.B)().__;return function(n,a){return(0,o.uX)(),(0,o.CE)("span",Q,[(0,o.Lk)("a",{href:e.campaignUrl,target:"_blank",class:"defender-upgrade-text"},(0,o.v_)((0,o.R1)(t)("Unlock with Pro")),9,B),a[0]||(a[0]=(0,o.Lk)("svg",{width:"36",height:"26",viewBox:"0 0 36 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,o.Lk)("rect",{x:"0.5",y:"0.5",width:"35",height:"25",rx:"12.5",fill:"#F9E1FF"}),(0,o.Lk)("rect",{x:"0.5",y:"0.5",width:"35",height:"25",rx:"12.5",stroke:"#8D00B1"}),(0,o.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 D=n(1289),N=["id"],$={class:"sui-summary-segment"},H={class:"sui-summary-details"},q={class:"sui-summary-large"},J=["data-tooltip"],z={key:1,class:"sui-summary-percent"},Y={class:"sui-summary-sub"},Z={key:2,class:"sui-summary-detail"},ee={key:3,class:"sui-summary-sub"},te={key:0,class:"sui-summary-segment"},ne={class:"sui-list"},oe={class:"sui-list-label"},ae=["data-tooltip"],ie={class:"sui-list-detail"},re=["href"],ue={key:0,class:"sui-tag sui-tag-brown"},le={key:2,"aria-hidden":"true",class:"sui-icon-check-tick sui-success"},se={key:0,"aria-hidden":"true",class:"sui-icon-check-tick sui-success"},ce={key:1,class:"sui-tag sui-tag-brown"},de={key:1,class:"sui-summary-segment"};const fe={__name:"sui-summary",props:{small:{type:Boolean,default:!1},id:{type:String,default:""},title:{type:String,default:""},mainValue:{type:[String,Number]},maxValue:{type:[String,Number],default:""},mainLabel:{type:String},subValue:{type:String,default:""},subLabel:{type:String,default:""},icon:{type:String,default:""},iconColor:{type:String,default:""},listItems:{type:Array,default:function(){return[]}},customContent:{type:Boolean,default:!1},tooltip:{type:String,default:""}},emits:["button-click"],setup:function(e,t){var n=t.emit,a=e,i=n,u=(0,K.p)(),l=u.maybeHideBranding,s=u.whitelabelHeroImage,c=u.backgroundImageStyle,d=(0,r.B)().__,f=(0,o.EW)(function(){return a.id?a.id:a.title?a.title.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""):""});return function(t,n){return(0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)(["sui-box sui-summary",{"sui-summary-sm":e.small,"sui-rebranded":(0,o.R1)(l)&&(0,o.R1)(s),"sui-unbranded":(0,o.R1)(l)&&!(0,o.R1)(s)}]),id:f.value},[(0,o.Lk)("div",{class:"sui-summary-image-space","aria-hidden":"true",style:(0,o.Tr)((0,o.R1)(c))},null,4),(0,o.Lk)("div",$,[(0,o.Lk)("div",H,[e.customContent?(0,o.RG)(t.$slots,"custom-content",{key:0}):((0,o.uX)(),(0,o.CE)(o.FK,{key:1},[(0,o.Lk)("span",q,(0,o.v_)(e.mainValue),1),e.tooltip?((0,o.uX)(),(0,o.CE)("span",{key:0,"data-tooltip":e.tooltip,class:"sui-tooltip sui-tooltip-top-center sui-tooltip-constrained"},[n[0]||(n[0]=(0,o.eW)("  ")),e.icon?((0,o.uX)(),(0,o.CE)("span",{key:0,class:(0,o.C4)([e.icon,e.iconColor]),"aria-hidden":"true"},null,2)):(0,o.Q3)("",!0)],8,J)):(0,o.Q3)("",!0),e.maxValue?((0,o.uX)(),(0,o.CE)("span",z,"/"+(0,o.v_)(e.maxValue),1)):(0,o.Q3)("",!0),(0,o.Lk)("span",Y,(0,o.v_)(e.mainLabel),1),e.subValue?((0,o.uX)(),(0,o.CE)("span",Z,(0,o.v_)(e.subValue),1)):(0,o.Q3)("",!0),e.subLabel?((0,o.uX)(),(0,o.CE)("span",ee,(0,o.v_)(e.subLabel),1)):(0,o.Q3)("",!0)],64))])]),e.listItems&&e.listItems.length?((0,o.uX)(),(0,o.CE)("div",te,[(0,o.Lk)("ul",ne,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.listItems,function(e){return(0,o.uX)(),(0,o.CE)("li",{key:e.label},[(0,o.Lk)("span",oe,[(0,o.eW)((0,o.v_)(e.label)+" ",1),e.tooltip?((0,o.uX)(),(0,o.CE)("span",{key:0,"data-tooltip":e.tooltip,class:"sui-tooltip sui-tooltip-constrained sui-tooltip-top-center"},n[1]||(n[1]=[(0,o.Lk)("span",{"aria-hidden":"true",class:"ml-2 sui-icon-info sui-sm"},null,-1)]),8,ae)):(0,o.Q3)("",!0)]),(0,o.Lk)("span",ie,[e.button?((0,o.uX)(),(0,o.Wv)(D.A,{key:0,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,onClick:function(t){return function(e){var t,n;i("button-click",{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,["label","type","variant","size","disabled","icon","onClick"])):e.upsellUrl?((0,o.uX)(),(0,o.Wv)(M,{key:1,"campaign-url":e.upsellUrl},null,8,["campaign-url"])):e.link?((0,o.uX)(),(0,o.CE)("a",{key:2,href:e.link,target:"_blank"},["disabled"===e.value?((0,o.uX)(),(0,o.CE)("span",ue,(0,o.v_)((0,o.R1)(d)("Disabled")),1)):e.tag?((0,o.uX)(),(0,o.CE)("span",{key:1,class:(0,o.C4)(["sui-tag",e.tagClass||"sui-tag-error"])},(0,o.v_)(e.value),3)):"check"===e.value?((0,o.uX)(),(0,o.CE)("i",le)):((0,o.uX)(),(0,o.CE)(o.FK,{key:3},[(0,o.eW)((0,o.v_)(e.value),1)],64))],8,re)):((0,o.uX)(),(0,o.CE)(o.FK,{key:3},["check"===e.value?((0,o.uX)(),(0,o.CE)("i",se)):"disabled"===e.value?((0,o.uX)(),(0,o.CE)("span",ce,(0,o.v_)((0,o.R1)(d)("Disabled")),1)):e.tag?((0,o.uX)(),(0,o.CE)("span",{key:2,class:(0,o.C4)(["sui-tag",e.tagClass||"sui-tag-error"])},(0,o.v_)(e.value),3)):((0,o.uX)(),(0,o.CE)(o.FK,{key:3},[(0,o.eW)((0,o.v_)(e.value),1)],64))],64))])])}),128))])])):(0,o.Q3)("",!0),t.$slots.segment?((0,o.uX)(),(0,o.CE)("div",de,[(0,o.RG)(t.$slots,"segment")])):(0,o.Q3)("",!0)],10,N)}}};var pe=n(3498),ve=n(9250),me=["id"],be={class:"sui-header"},he={class:"sui-header-title"},ye={key:5};const ge={__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"}},setup:function(e){var t=e,n=(0,a.X)(),r=n.maybeHighContrast,u=n.showTrackingModal,l=["file-scanning","security-tweaks"].includes(t.feature),s=function(e){e.action&&"start-scan"===e.action&&(0,ve.S)().startScan()};return function(t,n){return(0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)(["sui-wrap",(0,o.R1)(r)()]),id:e.feature},[(0,o.Lk)("div",{class:(0,o.C4)(e.pageClass)},[(0,o.Lk)("div",be,[(0,o.Lk)("h1",he,(0,o.v_)(e.title),1),(0,o.RG)(t.$slots,"header-actions"),e.docLink?((0,o.uX)(),(0,o.Wv)(i.A,{key:0,link:e.docLink},null,8,["link"])):(0,o.Q3)("",!0)]),(0,o.RG)(t.$slots,"notices"),(0,o.R1)(l)?((0,o.uX)(),(0,o.Wv)(y,{key:0})):(0,o.Q3)("",!0),(0,o.bF)(C),(0,o.R1)(u)?((0,o.uX)(),(0,o.Wv)(R.A,{key:1})):(0,o.Q3)("",!0),e.summary&&e.showSummary?((0,o.uX)(),(0,o.Wv)(fe,{key:2,id:"".concat(e.feature,"-summary"),"main-value":e.summary.mainValue,"main-label":e.summary.mainLabel,"sub-value":e.summary.subValue,"sub-label":e.summary.subLabel,icon:e.summary.icon,"icon-color":e.summary.iconColor,tooltip:e.summary.tooltip,"list-items":e.summary.listItems,onButtonClick:s},null,8,["id","main-value","main-label","sub-value","sub-label","icon","icon-color","tooltip","list-items"])):(0,o.RG)(t.$slots,"summary",{key:3}),e.tabs?((0,o.uX)(),(0,o.Wv)(V,{key:4,tabs:e.tabs,"default-tab":e.defaultTab,boxed:e.boxed},(0,o.eX)({_:2},[(0,o.pI)(e.tabs,function(e){return{name:e.id,fn:(0,o.k6)(function(){return[(0,o.RG)(t.$slots,e.id)]})}})]),1032,["tabs","default-tab","boxed"])):((0,o.uX)(),(0,o.CE)("div",ye,[(0,o.RG)(t.$slots,"default")])),n[0]||(n[0]=(0,o.Lk)("div",{class:"clearfix"},null,-1)),n[1]||(n[1]=(0,o.Lk)("div",{class:"padding-bottom-30"},null,-1))],2),(0,o.bF)(pe.A),(0,o.RG)(t.$slots,"modals")],10,me)}}}},5945:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(9726),a=n(5592),i={key:0,class:"sui-actions-right"},r=["href"];const u={__name:"doc-link",props:{link:{type:String,required:!0}},setup:function(e){var t=e,n=(0,a.B)().__,u=(0,o.KR)(defender.whitelabel.hide_doc_link),l=(0,o.EW)(function(){return defender.wpmudev_url+t.link});return function(e,t){return!1===u.value?((0,o.uX)(),(0,o.CE)("div",i,[(0,o.Lk)("a",{href:l.value,target:"_blank",class:"sui-button sui-button-ghost"},[t[0]||(t[0]=(0,o.Lk)("i",{class:"sui-icon-academy","aria-hidden":"true"},null,-1)),(0,o.eW)(" "+(0,o.v_)((0,o.R1)(n)("Documentation")),1)],8,r)])):(0,o.Q3)("",!0)}}}},6874:(e,t,n)=>{n.d(t,{A:()=>w});var o=n(9726),a=n(5592),i=n(8261),r=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:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,o,a,i){var l=o&&o.prototype instanceof u?o:u,c=Object.create(l.prototype);return s(c,"_invoke",function(n,o,a){var i,u,l,s=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,l=e,f.n=n,r}};function p(n,o){for(u=n,l=o,t=0;!d&&s&&!a&&t<c.length;t++){var a,i=c[t],p=f.p,v=i[2];n>3?(a=v===o)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(u=0,f.v=o,f.n=i[1]):p<v&&(a=n<3||i[0]>o||o>v)&&(i[4]=n,i[5]=o,f.n=v,u=0))}if(a||n>1)return r;throw d=!0,o}return function(a,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;){i||(u?u<3?(u>1&&(f.n=-1),p(u,l)):f.n=l:f.v=l);try{if(s=2,i){if(u||(a="next"),t=i[a]){if(!(t=t.call(i,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=i.return)&&t.call(i),u<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(o,f))!==r)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,a,i),!0),c}var r={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(s(t={},o,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,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,s(p,"constructor",d),s(d,"constructor",c),c.displayName="GeneratorFunction",s(d,a,"GeneratorFunction"),s(p),s(p,a,"Generator"),s(p,o,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:v}})()}function s(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}s=function(e,t,n,o){if(t)a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){s(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},s(e,t,n,o)}function c(e,t,n,o,a,i,r){try{var u=e[i](r),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(o,a)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function r(e){c(i,o,a,r,u,"next",e)}function u(e){c(i,o,a,r,u,"throw",e)}r(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"],_=["innerHTML"],k={class:"sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--50"};const w={__name:"tracking-modal",setup:function(e){var t=(0,a.B)().__,n=(0,i.m)().suiRemoveModalClass,s=(0,r.q)().post,c=(0,o.KR)(defender.misc.banner_1x),w=(0,o.KR)(defender.misc.banner_2x),L=(0,o.KR)(defender.misc.title),C=(0,o.KR)(defender.misc.title),R=(0,o.KR)(defender.misc.desc),E=(0,o.KR)(defender.misc.optin_button_title),S=(0,o.KR)(defender.misc.skip_button_title),x=(0,o.KR)(defender.misc.nonces),j=(0,o.KR)(defender.misc.routes),O=(0,o.KR)(!1);(0,o.sV)(function(){document.onreadystatechange=function(){SUI.openModal("defender-tracking-modal",jQuery("body"),void 0,!1,!0)}});var X=function(){var e=d(l().m(function e(){return l().w(function(e){for(;;)switch(e.n){case 0:return O.value=!0,e.n=1,s(j.value.save_track_modal,x.value.save_track_modal,{});case 1:SUI.closeModal(),n(),O.value=!1;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),A=function(){var e=d(l().m(function e(){return l().w(function(e){for(;;)switch(e.n){case 0:return O.value=!0,e.n=1,s(j.value.close_track_modal,x.value.close_track_modal,{});case 1:SUI.closeModal(),n(),O.value=!1;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return function(e,n){return(0,o.uX)(),(0,o.CE)("div",f,[(0,o.Lk)("div",{role:"dialog",id:"defender-tracking-modal","aria-modal":"true",class:"sui-modal-content","aria-label":(0,o.R1)(t)("Tracking Preferences Modal")},[(0,o.Lk)("div",v,[(0,o.Lk)("div",m,[(0,o.Lk)("figure",b,[(0,o.Lk)("img",{src:c.value,srcset:c.value+" 1x, "+w.value+" 2x",alt:L.value},null,8,h)]),(0,o.Lk)("button",{class:"modal-close-button sui-button-white sui-button-icon sui-button-float--right",onClick:A},[n[0]||(n[0]=(0,o.Lk)("i",{class:"sui-icon-close sui-md","aria-hidden":"true"},null,-1)),(0,o.Lk)("span",y,(0,o.v_)((0,o.R1)(t)("Close this dialog.")),1)]),(0,o.Lk)("h3",{class:"sui-box-title sui-lg",id:"defender-tracking-modal-label",innerHTML:C.value},null,8,g),(0,o.Lk)("p",{class:"sui-description",innerHTML:R.value},null,8,_)]),(0,o.Lk)("div",k,[(0,o.bF)((0,o.R1)(u.A),{onClick:X,doing_ajax:O.value,"css-class":"sui-button-blue"},{default:(0,o.k6)(function(){return[(0,o.eW)((0,o.v_)(E.value),1)]}),_:1},8,["doing_ajax"])])]),(0,o.Lk)("button",{type:"button",onClick:A,class:"sui-modal-skip defender-tracking-modal-skip-link"},(0,o.v_)(S.value),1)],8,p)])}}}},7476:(e,t,n)=>{n.d(t,{r:()=>l});var o=n(810),a=n(9726);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:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function u(n,o,a,i){var u=o&&o.prototype instanceof s?o:s,c=Object.create(u.prototype);return r(c,"_invoke",function(n,o,a){var i,r,u,s=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,r=0,u=e,f.n=n,l}};function p(n,o){for(r=n,u=o,t=0;!d&&s&&!a&&t<c.length;t++){var a,i=c[t],p=f.p,v=i[2];n>3?(a=v===o)&&(u=i[(r=i[4])?5:(r=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(r=0,f.v=o,f.n=i[1]):p<v&&(a=n<3||i[0]>o||o>v)&&(i[4]=n,i[5]=o,f.n=v,r=0))}if(a||n>1)return l;throw d=!0,o}return function(a,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),r=c,u=v;(t=r<2?e:u)||!d;){i||(r?r<3?(r>1&&(f.n=-1),p(r,u)):f.n=u:f.v=u);try{if(s=2,i){if(r||(a="next"),t=i[a]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,r<2&&(r=0)}else 1===r&&(t=i.return)&&t.call(i),r<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),r=1);i=e}else if((t=(d=f.n<0)?u:n.call(o,f))!==l)break}catch(t){i=e,r=1,u=t}finally{s=1}}return{value:t,done:d}}}(n,a,i),!0),c}var l={};function s(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(r(t={},o,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,r(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,r(p,"constructor",d),r(d,"constructor",c),c.displayName="GeneratorFunction",r(d,a,"GeneratorFunction"),r(p),r(p,a,"Generator"),r(p,o,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(i=function(){return{w:u,m:v}})()}function r(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}r=function(e,t,n,o){if(t)a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){r(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},r(e,t,n,o)}function u(e,t,n,o,a,i,r){try{var u=e[i](r),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(o,a)}var l=(0,o.nY)("loading",function(){var e=(0,a.KR)([]);function t(t){e.value.push(t)}function n(t){e.value=e.value.filter(function(e){return e!==t})}function o(t){return e.value.includes(t)}var r=function(){var e,a=(e=i().m(function e(a,r){return i().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!o(a)){e.n=1;break}return e.a(2);case 1:return t(a),e.p=2,e.n=3,r();case 3:return e.a(2,e.v);case 4:return e.p=4,n(a),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}),function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function r(e){u(i,o,a,r,l,"next",e)}function l(e){u(i,o,a,r,l,"throw",e)}r(void 0)})});return function(e,t){return a.apply(this,arguments)}}();return{start:t,stop:n,isLoading:o,clear:function(){for(var t in e)e[t]=!1},withLoading:r}})},7545:(e,t,n)=>{n.d(t,{A:()=>w});var o=n(9726),a=n(7786),i=n(1289),r=n(8114),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"],_={key:0,class:"sui-box-footer"},k={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,a.hRP)(E,"modelValue",S),j="settings-".concat(E.feature,"-").concat(E.modelValue?"enabled":"disabled");return function(t,n){return(0,o.uX)(),(0,o.CE)(o.FK,null,[!1===(0,o.R1)(x)&&e.toggleAction?((0,o.uX)(),(0,o.CE)("div",{key:0,class:"sui-box",id:j},[(0,o.Lk)("div",s,[(0,o.Lk)("h2",c,(0,o.v_)(e.title),1),(0,o.Lk)("div",d,[(0,o.RG)(t.$slots,"actions-right")])]),(0,o.Lk)("div",f,[(0,o.R1)(C)?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("img",{key:0,src:e.imageUrl,class:"sui-image",alt:"Feature image"},null,8,p)),(0,o.R1)(C)&&(0,o.R1)(R)?((0,o.uX)(),(0,o.CE)("img",{key:1,src:(0,o.R1)(R),class:"sui-image wd-whitelabel-custom-branding-logo",alt:"Custom Feature image"},null,8,v)):(0,o.Q3)("",!0),(0,o.Lk)("div",m,[(0,o.RG)(t.$slots,"deactivate-message"),(0,o.bF)(i.A,{label:(0,o.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,o.uX)(),(0,o.CE)("div",{key:1,class:"sui-box",id:j},[(0,o.Lk)("div",b,[(0,o.Lk)("h3",h,(0,o.v_)(e.title),1),(0,o.Lk)("div",y,[(0,o.RG)(t.$slots,"actions-right")])]),(0,o.Lk)("div",{class:(0,o.C4)(["sui-box-body",e.layoutClass])},[(0,o.RG)(t.$slots,"description"),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.settings,function(e){return(0,o.uX)(),(0,o.Wv)(r.A,{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,o.eX)({default:(0,o.k6)(function(){return[(0,o.RG)(t.$slots,e.key)]}),_:2},["html"===e.descType?{name:"description",fn:(0,o.k6)(function(){return[(0,o.Lk)("div",{innerHTML:e.description},null,8,g)]}),key:"0"}:void 0]),1032,["label","description","show-pro","show-opacity","show-new"])}),128)),e.toggleAction?((0,o.uX)(),(0,o.Wv)(r.A,{key:0,label:(0,o.R1)(w)("Deactivate"),description:(0,o.R1)(w)("If you no longer want to use this feature you can turn it off at any time.")},{default:(0,o.k6)(function(){return[(0,o.bF)(i.A,{label:(0,o.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","description"])):(0,o.Q3)("",!0)],2),(0,o.RG)(t.$slots,"default"),e.saveAction?((0,o.uX)(),(0,o.CE)("div",_,[(0,o.Lk)("div",k,[(0,o.bF)(i.A,{label:(0,o.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,o.Q3)("",!0)])),(0,o.RG)(t.$slots,"modals")],64)}}}},8023:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(6314),a=n.n(o)()(function(e){return e[1]});a.push([e.id,".heading[data-v-4f9f85ba]{color:#999;font-size:12px;font-weight:600}.sidenav-tooltip-icon[data-v-4f9f85ba]{right:-5px;top:2px}",""]);const i=a},8114:(e,t,n)=>{n.d(t,{A:()=>b});var o=n(9726),a=n(5592),i={key:0,class:"sui-box-settings-col-1"},r={class:"sui-settings-label"},u={key:0,class:"sui-tag sui-tag-pro"},l={key:1,class:"sui-tag sui-tag-green"},s={class:"sui-description"},c={class:"sui-box-settings-col-2"};const d={__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,d){return(0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)(["sui-box-settings-row sui-flushed",{"opacity-50 pointer-events-none":e.showPro&&e.showOpacity}])},[t.label&&(0,o.Ht)().label?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",i,[(0,o.Lk)("div",r,[(0,o.eW)((0,o.v_)(e.label)+" ",1),(0,o.RG)(a.$slots,"label"),e.showPro?((0,o.uX)(),(0,o.CE)("span",u,(0,o.v_)((0,o.R1)(n)("Pro")),1)):(0,o.Q3)("",!0),e.showNew?((0,o.uX)(),(0,o.CE)("span",l,(0,o.v_)((0,o.R1)(n)("New")),1)):(0,o.Q3)("",!0)]),(0,o.Lk)("span",s,[(0,o.eW)((0,o.v_)(e.description||"")+" ",1),(0,o.RG)(a.$slots,"description")])])),(0,o.Lk)("div",c,[(0,o.RG)(a.$slots,"default")])],2)}}};var f=n(5072),p=n.n(f),v=n(9755),m={insert:"head",singleton:!1};p()(v.A,m);v.A.locals;const b=(0,n(6262).A)(d,[["__scopeId","data-v-4b019f10"]])},8214:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(9726),a={class:"sui-notice-content"},i={class:"sui-notice-message"},r={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,o.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,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)(["sui-notice","sui-notice sui-notice-".concat(e.type)])},[(0,o.Lk)("div",a,[(0,o.Lk)("div",i,[(0,o.Lk)("i",{"aria-hidden":"true",class:(0,o.C4)(["sui-notice-icon sui-md",d.value])},null,2),(0,o.Lk)("p",null,[(0,o.RG)(t.$slots,"default")])]),e.dismissible?((0,o.uX)(),(0,o.CE)("div",r,[(0,o.Lk)("button",{class:"sui-button-icon",onClick:f,"aria-label":e.dismissLabel},[n[0]||(n[0]=(0,o.Lk)("i",{class:"sui-icon-check","aria-hidden":"true"},null,-1)),(0,o.Lk)("span",l,(0,o.v_)(e.dismissLabel),1)],8,u)])):(0,o.Q3)("",!0)])],2)}}}},8261:(e,t,n)=>{n.d(t,{m:()=>u});var o=n(9726),a=n(7786);function i(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 r(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)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}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 i,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,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw i}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var u=function(){var e=function(){(0,o.dY)(function(){"undefined"!=typeof SUI&&(t(),SUI.tabs(),SUI.modalDialog()),"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,a.MLh)(document,"modalClosed",n);var r=(0,a.Ubj)("(max-width: 767px)"),u=(0,a.Ubj)("(min-width: 768px) and (max-width: 1024px)"),l=(0,a.Ubj)("(min-width: 1025px)"),s=(0,a.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 o=document.getElementById(t);o&&SUI.select2(e,{dropdownParent:o})}}},suiRemoveModalClass:n,observeModalChanges:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".sui-modal";(0,a.P1n)(document.body,function(n){var o,a=i(n);try{for(a.s();!(o=a.n()).done;){var r=o.value;if("childList"===r.type)Array.from(r.addedNodes).some(function(e){var n,o;return e.nodeType===Node.ELEMENT_NODE&&((null===(n=e.matches)||void 0===n?void 0:n.call(e,t))||(null===(o=e.querySelector)||void 0===o?void 0:o.call(e,t)))})&&e()}}catch(e){a.e(e)}finally{a.f()}},{childList:!0,subtree:!0})},reloadAccordion:t,isMobile:r,isTablet:u,isDesktop:l,isLargeDesktop:s}}},8859:(e,t,n)=>{var o=n(9726),a=n(810),i=n(5807),r=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 o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}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 o=n.call(e,t||"default");if("object"!=g(o))return o;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:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,o,a,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return b(s,"_invoke",function(n,o,a){var i,u,l,s=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,l=e,f.n=n,r}};function p(n,o){for(u=n,l=o,t=0;!d&&s&&!a&&t<c.length;t++){var a,i=c[t],p=f.p,v=i[2];n>3?(a=v===o)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(u=0,f.v=o,f.n=i[1]):p<v&&(a=n<3||i[0]>o||o>v)&&(i[4]=n,i[5]=o,f.n=v,u=0))}if(a||n>1)return r;throw d=!0,o}return function(a,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;){i||(u?u<3?(u>1&&(f.n=-1),p(u,l)):f.n=l:f.v=l);try{if(s=2,i){if(u||(a="next"),t=i[a]){if(!(t=t.call(i,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=i.return)&&t.call(i),u<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(o,f))!==r)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,a,i),!0),s}var r={};function u(){}function l(){}function s(){}t=Object.getPrototypeOf;var c=[][o]?t(t([][o]())):(b(t={},o,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,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,b(d,"constructor",s),b(s,"constructor",l),l.displayName="GeneratorFunction",b(s,a,"GeneratorFunction"),b(d),b(d,a,"Generator"),b(d,o,function(){return this}),b(d,"toString",function(){return"[object Generator]"}),(m=function(){return{w:i,m:f}})()}function b(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}b=function(e,t,n,o){if(t)a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){b(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},b(e,t,n,o)}function h(e,t,n,o,a,i,r){try{var u=e[i](r),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(o,a)}function y(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function r(e){h(i,o,a,r,u,"next",e)}function u(e){h(i,o,a,r,u,"throw",e)}r(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 _=(0,a.nY)("twoFactor",function(){var e=(0,c.q)().post,t=(0,d.r)(),n=(0,o.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}),a=(0,o.KR)({}),i=(0,o.KR)([]),r=(0,o.KR)({}),u=(0,o.KR)({}),l=(0,o.KR)(0),s=(0,o.KR)([]),f=(0,o.KR)(""),v=(0,o.KR)(0),b=(0,o.KR)(!1),h=(0,o.KR)(!1),_=(0,o.KR)(""),k=(0,o.KR)(!1),w=(0,o.KR)(!1);function L(e){var t;n.value=e.model,a.value=null!==(t=e.misc)&&void 0!==t?t:{},i.value=e.all_roles,r.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,_.value=e.module_name,k.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 o(){return m().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,t.withLoading("save-two-factor-settings",function(){return e(r.value.save_settings,u.value.save_settings,n.value)});case 1:L(o.v);case 2:return o.a(2)}},o)}))).apply(this,arguments)}function E(){return(E=y(m().m(function o(){var a;return m().w(function(o){for(;;)switch(o.n){case 0:return a=p(p({},n.value),{},{enabled:!n.value.enabled}),o.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(r.value.save_settings,u.value.save_settings,a);case 1:setTimeout(function(){return location.reload()},500);case 2:return t.a(2)}},t)})));case 1:return o.a(2)}},o)}))).apply(this,arguments)}function S(){return(S=y(m().m(function o(a){return m().w(function(o){for(;;)switch(o.n){case 0:if("send"!==a){o.n=2;break}return o.n=1,t.withLoading("send-two-factor-test",function(){return e(r.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:o.n=4;break;case 2:return o.n=3,C();case 3:SUI.closeModal();case 4:return o.a(2)}},o)}))).apply(this,arguments)}"object"===g(window.two_fa)&&L(window.two_fa);var x=(0,o.EW)(function(){return!0===n.value.enabled&&!0===w.value}),j=(0,o.EW)(function(){return/(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/.test(n.value.custom_graphic_link)});return{model:n,misc:a,all_roles:i,routes:r,nonces:u,count:l,notices:s,new_feature:f,count_checked_roles:v,is_woo_active:b,is_multisite:h,module_name:_,custom_graphic_state:k,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=""}}}),k=n(1512),w=n(4146),L=n(7786),C=n(8214),R=n(9409),E={class:"sui-form-field"},S={key:0,class:"sui-label"},x={class:"sui-upload-image","aria-hidden":"true"},j={key:0,class:"flex-1 sui-with-button sui-with-button-icon"},O={key:0,class:"sui-upload-button"},X={key:1,class:"sui-upload-file ml-0"},A=["aria-label"],T={key:1,class:"sui-description"};const P={__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,a=R.A,i=(0,r.B)().__,u=e,l=n,s=(0,L.hRP)(u,"modelValue",l),c=(0,o.KR)(""),d=(0,o.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=i("Invalid image file type."))},v=(0,o.EW)(function(){var e=s.value||u.defaultImage;return e?{backgroundImage:"url(".concat(e,")")}:{backgroundImage:"url()"}});return(0,o.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=i("The provided link is not a valid image URL."):c.value=""):c.value=""}),function(t,n){return(0,o.uX)(),(0,o.CE)("div",E,[e.label?((0,o.uX)(),(0,o.CE)("label",S,(0,o.v_)(e.label),1)):(0,o.Q3)("",!0),(0,o.Lk)("div",{class:(0,o.C4)(["sui-upload sui-file-upload sui-file-browser gap-5px",{"sui-has_file":(0,o.R1)(s)||"link"===e.mode}])},[(0,o.Lk)("div",x,[n[1]||(n[1]=(0,o.Lk)("div",{class:"sui-image-mask"},null,-1)),(0,o.bo)((0,o.Lk)("div",{role:"button",class:"sui-image-preview",style:(0,o.Tr)(v.value)},null,4),[[(0,o.R1)(a),p]])]),"link"===e.mode?((0,o.uX)(),(0,o.CE)("div",j,[(0,o.bo)((0,o.Lk)("input",{type:"url","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,o.i9)(s)?s.value=e:null}),class:"sui-form-control wp-link-media"},null,512),[[o.Jo,(0,o.R1)(s)]]),(0,o.R1)(s)?((0,o.uX)(),(0,o.CE)("button",{key:0,class:"sui-button-icon",type:"button",onClick:f},n[2]||(n[2]=[(0,o.Lk)("span",{class:"sui-icon-close","aria-hidden":"true"},null,-1)]))):(0,o.Q3)("",!0)])):((0,o.uX)(),(0,o.CE)(o.FK,{key:1},[(0,o.R1)(s)?(0,o.Q3)("",!0):(0,o.bo)(((0,o.uX)(),(0,o.CE)("button",O,[n[3]||(n[3]=(0,o.Lk)("span",{class:"sui-icon-upload-cloud","aria-hidden":"true"},null,-1)),(0,o.eW)(" "+(0,o.v_)((0,o.R1)(i)("Upload file")),1)])),[[(0,o.R1)(a),p]]),(0,o.R1)(s)?((0,o.uX)(),(0,o.CE)("div",X,[(0,o.Lk)("span",null,(0,o.v_)(d.value||(0,o.R1)(s).split("/").pop()),1),(0,o.Lk)("button",{onClick:f,"aria-label":(0,o.R1)(i)("Remove file")},n[4]||(n[4]=[(0,o.Lk)("span",{class:"sui-icon-close","aria-hidden":"true"},null,-1)]),8,A)])):(0,o.Q3)("",!0)],64))],2),e.description?((0,o.uX)(),(0,o.CE)("div",T,(0,o.v_)(e.description),1)):(0,o.Q3)("",!0),c.value&&"link"===e.mode?((0,o.uX)(),(0,o.Wv)(C.A,{key:2,type:"error"},{default:(0,o.k6)(function(){return[(0,o.Lk)("p",null,(0,o.v_)(c.value),1)]}),_:1})):(0,o.Q3)("",!0)])}}};var W=n(4438),F=n(682),I={key:0,class:"sui-notice sui-notice-error"},U={class:"sui-notice-content"},G={class:"sui-notice-message"},V={key:1,class:"sui-notice sui-notice-success"},K={class:"sui-notice-content"},Q={class:"sui-notice-message"},B=["href"],M={key:2,class:"sui-notice sui-notice-warning"},D={class:"sui-notice-content"},N={class:"sui-notice-message"},$={class:"sui-field-list"},H={class:"sui-field-list-header"},q={class:"sui-field-list-title"},J={class:"sui-field-list-body"},z=["innerHTML","for"],Y={class:"sui-toggle"},Z=["value","id"],ee={class:"sui-form-field"},te={class:"sui-toggle"},ne={id:"force_auth_label",class:"sui-toggle-label"},oe={class:"sui-description sui-toggle-content"},ae={id:"force_auth_roles",class:"sui-border-frame sui-toggle-content"},ie=["for"],re=["value","id"],ue={class:"sui-description"},le={class:"sui-label"},se={class:"sui-notice"},ce={class:"sui-notice-content"},de={class:"sui-notice-message"},fe={key:0,class:"sui-upsell-row"},pe={class:"min-w-full p-0 sui-upsell-notice"},ve=["href"],me={class:"sui-field-list"},be={class:"sui-field-list-header"},he={class:"sui-field-list-title"},ye={class:"sui-field-list-body"},ge={class:"sui-field-list-item"},_e={class:"sui-field-list-item-label"},ke={class:"w-48"},we={class:"sui-border-frame"},Le=["textContent"],Ce=["href"],Re=["src"],Ee=["href"],Se=["src"],xe={class:"sui-form-field"},je={class:"sui-toggle"},Oe=["disabled"],Xe={for:"detect_woo",class:"sui-toggle-label"},Ae={key:0,class:"sui-notice margin-top-10 sui-description"},Te={class:"sui-notice-content"},Pe={class:"sui-notice-message"},We=["href"],Fe={key:0,class:"sui-notice sui-notice-info"},Ie={class:"sui-notice-content"},Ue={class:"sui-notice-message"};const Ge={__name:"two-fa-settings",setup:function(e){var t=(0,r.B)().__,n=(0,F.X)(),i=n.is_free,c=n.upgradeTitle,d=(0,u.I)(),f=d.adminUrl,p=d.assetUrl,v=d.campaign_url,m=_(),b=(0,l.w)(),h=(0,a.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,o.KR)("google-authenticator"),j=(0,o.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:i.value}];return i.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}),O=[{label:t("Upload Graphic"),value:"upload"},{label:t("Link Graphic"),value:"link"},{label:t("No Graphic"),value:"no",hasFrame:!1}],X=(0,o.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""}}),A=(0,o.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,o.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""}}),Ge=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,o.uX)(),(0,o.Wv)(s.A,{modelValue:(0,o.R1)(y).enabled,"onUpdate:modelValue":n[11]||(n[11]=function(e){return(0,o.R1)(y).enabled=e}),feature:"two-fa",title:(0,o.R1)(E),settings:j.value,"save-action":"save-two-factor-settings","toggle-action":"toggle-two-factor",onSaveSettings:(0,o.R1)(m).saveSettings,onToggleFeature:Ge,"image-url":(0,o.R1)(p)("assets/img/disabled-module.png")},{"deactivate-message":(0,o.k6)(function(){return[(0,o.Lk)("p",null,(0,o.v_)((0,o.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,o.k6)(function(){return[(0,o.Lk)("p",null,(0,o.v_)((0,o.R1)(t)("Configure your two-factor authentication settings. Our recommendations are enabled by default.")),1),(0,o.R1)(L).length?((0,o.uX)(),(0,o.CE)("div",I,[(0,o.Lk)("div",U,[(0,o.Lk)("div",G,[n[12]||(n[12]=(0,o.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,o.Lk)("p",null,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,o.R1)(L),function(e,t){return(0,o.uX)(),(0,o.CE)("span",{key:t},(0,o.v_)(e),1)}),128))])])])])):(0,o.Q3)("",!0),(0,o.R1)(S)?((0,o.uX)(),(0,o.CE)("div",V,[(0,o.Lk)("div",K,[(0,o.Lk)("div",Q,[n[13]||(n[13]=(0,o.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,o.Lk)("p",null,[(0,o.eW)((0,o.v_)((0,o.R1)(t)("Two-factor authentication is now active."))+" "+(0,o.v_)((0,o.R1)(t)("User roles with this feature enabled must visit their "))+" ",1),(0,o.Lk)("a",{href:(0,o.R1)(f)("profile.php#defender-security")},(0,o.v_)((0,o.R1)(t)("Profile page")),9,B),(0,o.eW)(" "+(0,o.v_)((0,o.R1)(t)("to finish setting up authentication.")),1)])])])])):((0,o.uX)(),(0,o.CE)("div",M,[(0,o.Lk)("div",D,[(0,o.Lk)("div",N,[n[14]||(n[14]=(0,o.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,o.Lk)("p",null,(0,o.v_)((0,o.R1)(t)("Two-factor authentication is currently inactive. Configure and save your settings to finish setup.")),1)])])]))]}),user_roles:(0,o.k6)(function(){return[(0,o.Lk)("div",$,[(0,o.Lk)("div",H,[(0,o.Lk)("h3",q,(0,o.v_)((0,o.R1)(t)("User role")),1)]),(0,o.Lk)("div",J,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,o.R1)(g),function(e,t){return(0,o.uX)(),(0,o.CE)("div",{class:"sui-field-list-item",key:t},[(0,o.Lk)("label",{innerHTML:e,class:"sui-field-list-item-label",for:"toggle_"+t},null,8,z),(0,o.Lk)("label",Y,[(0,o.bo)((0,o.Lk)("input",{type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,o.R1)(y).user_roles=e}),value:t,id:"toggle_"+t},null,8,Z),[[o.lH,(0,o.R1)(y).user_roles]]),n[15]||(n[15]=(0,o.Lk)("span",{class:"sui-toggle-slider"},null,-1))])])}),128))])])]}),force_auth:(0,o.k6)(function(){return[(0,o.Lk)("div",ee,[(0,o.Lk)("label",te,[(0,o.bo)((0,o.Lk)("input",{role:"presentation","onUpdate:modelValue":n[1]||(n[1]=function(e){return(0,o.R1)(y).force_auth=e}),type:"checkbox",name:"force_auth",class:"toggle-checkbox",id:"force_auth"},null,512),[[o.lH,(0,o.R1)(y).force_auth]]),n[16]||(n[16]=(0,o.Lk)("span",{class:"sui-toggle-slider"},null,-1)),(0,o.Lk)("span",ne,(0,o.v_)((0,o.R1)(t)("Force users to log in with two-factor authentication")),1)]),(0,o.Lk)("span",oe,(0,o.v_)((0,o.R1)(t)("Note: Users will be forced to set up two-factor when they next login.")),1),(0,o.bo)((0,o.Lk)("div",ae,[(0,o.Lk)("strong",null,(0,o.v_)((0,o.R1)(t)("User Roles")),1),(0,o.Lk)("ul",null,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,o.R1)(g),function(e,t){return(0,o.bo)(((0,o.uX)(),(0,o.CE)("li",{key:t},[(0,o.Lk)("label",{class:"sui-checkbox",for:"toggle_force_"+t},[(0,o.bo)((0,o.Lk)("input",{type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=function(e){return(0,o.R1)(y).force_auth_roles=e}),value:t,id:"toggle_force_"+t},null,8,re),[[o.lH,(0,o.R1)(y).force_auth_roles]]),n[17]||(n[17]=(0,o.Lk)("span",{"aria-hidden":"true"},null,-1)),(0,o.Lk)("span",null,(0,o.v_)(e),1)],8,ie)])),[[o.aG,(0,o.R1)(y).user_roles.includes(t)]])}),128))]),(0,o.Lk)("strong",null,(0,o.v_)((0,o.R1)(t)("Custom warning message")),1),(0,o.bo)((0,o.Lk)("textarea",{class:"sui-form-control","onUpdate:modelValue":n[3]||(n[3]=function(e){return(0,o.R1)(y).force_auth_mess=e}),name:"force_auth_mess"},null,512),[[o.Jo,(0,o.R1)(y).force_auth_mess]]),(0,o.Lk)("span",ue,(0,o.v_)((0,o.R1)(t)("Note: This is shown in the users Profile area indicating they must use two-factor authentication.")),1)],512),[[o.aG,!0===(0,o.R1)(y).force_auth]])])]}),app_title:(0,o.k6)(function(){return[(0,o.Lk)("label",le,(0,o.v_)((0,o.R1)(t)("Custom Title")),1),(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":n[4]||(n[4]=function(e){return(0,o.R1)(y).app_title=e}),class:"sui-form-control sui-input-md"},null,512),[[o.Jo,(0,o.R1)(y).app_title]])]}),custom_graphic:(0,o.k6)(function(){return[(0,o.bF)(w.A,{modelValue:(0,o.R1)(y).custom_graphic,"onUpdate:modelValue":n[5]||(n[5]=function(e){return(0,o.R1)(y).custom_graphic=e}),disabled:(0,o.R1)(i),label:(0,o.R1)(t)("Enable custom graphics above login fields"),feature:"custom_graphic"},null,8,["modelValue","disabled","label"]),!0===(0,o.R1)(y).custom_graphic?((0,o.uX)(),(0,o.Wv)(k.A,{key:0,modelValue:(0,o.R1)(y).custom_graphic_type,"onUpdate:modelValue":n[8]||(n[8]=function(e){return(0,o.R1)(y).custom_graphic_type=e}),tabs:O,slug:"wpdef-custom-graphics"},{upload:(0,o.k6)(function(){return[(0,o.bF)(P,{label:(0,o.R1)(t)("Custom Graphic"),description:(0,o.R1)(t)("For best results use a 168x168px JPG or PNG."),modelValue:(0,o.R1)(y).custom_graphic_url,"onUpdate:modelValue":n[6]||(n[6]=function(e){return(0,o.R1)(y).custom_graphic_url=e}),id:"custom_graphic","default-image":(0,o.R1)(y).custom_graphic_url},null,8,["label","description","modelValue","default-image"])]}),link:(0,o.k6)(function(){return[(0,o.bF)(P,{mode:"link",label:(0,o.R1)(t)("Custom Graphic"),description:(0,o.R1)(t)("For best results use a 168x168px JPG or PNG."),modelValue:(0,o.R1)(y).custom_graphic_link,"onUpdate:modelValue":n[7]||(n[7]=function(e){return(0,o.R1)(y).custom_graphic_link=e}),id:"custom_graphic","default-image":(0,o.R1)(y).custom_graphic_link},null,8,["label","description","modelValue","default-image"])]}),no:(0,o.k6)(function(){return[(0,o.Lk)("div",se,[(0,o.Lk)("div",ce,[(0,o.Lk)("div",de,[n[18]||(n[18]=(0,o.Lk)("span",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,o.Lk)("p",null,(0,o.v_)((0,o.R1)(t)("No icon will be displayed on two-factor form.")),1)])])])]}),_:1},8,["modelValue"])):(0,o.Q3)("",!0)]}),custom_graphic_upsell:(0,o.k6)(function(){return[(0,o.R1)(i)?((0,o.uX)(),(0,o.CE)("div",fe,[(0,o.Lk)("div",pe,[(0,o.Lk)("p",null,[(0,o.eW)((0,o.v_)((0,o.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,o.Lk)("br",null,null,-1)),(0,o.Lk)("a",{class:"premium-button sui-button sui-button-purple",target:"_blank",href:(0,o.R1)(v)("defender_2fa_customgraphic_upsell")},(0,o.v_)((0,o.R1)(c)),9,ve)])])])):(0,o.Q3)("",!0)]}),emails:(0,o.k6)(function(){return[(0,o.Lk)("div",me,[(0,o.Lk)("div",be,[(0,o.Lk)("h3",he,(0,o.v_)((0,o.R1)(t)("Email")),1)]),(0,o.Lk)("div",ye,[(0,o.Lk)("div",ge,[(0,o.Lk)("label",_e,(0,o.v_)((0,o.R1)(t)("Fallback email one time password")),1),n[20]||(n[20]=(0,o.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,o.Lk)("i",{class:"sui-icon-pencil","aria-hidden":"true"})],-1))])])])]}),app_download:(0,o.k6)(function(){return[(0,o.Lk)("div",ke,[(0,o.bF)(W.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,o.R1)(t)("Google Authenticator")},{value:"microsoft-authenticator",label:(0,o.R1)(t)("Microsoft Authenticator")},{value:"authy",label:(0,o.R1)(t)("Authy")}],searchable:!1,width:"220px'"},null,8,["modelValue","options"])]),(0,o.Lk)("div",we,[(0,o.Lk)("span",{class:"sui-description margin-bottom-10 no-margin-top",textContent:(0,o.v_)(T.value)},null,8,Le),(0,o.Lk)("a",{href:X.value,target:"_blank"},[(0,o.Lk)("img",{src:(0,o.R1)(p)("assets/img/ios-download.svg")},null,8,Re)],8,Ce),(0,o.Lk)("a",{href:A.value,target:"_blank",class:"ml-1"},[(0,o.Lk)("img",{src:(0,o.R1)(p)("assets/img/android-download.svg")},null,8,Se)],8,Ee)])]}),woocommerce:(0,o.k6)(function(){return[(0,o.Lk)("div",xe,[(0,o.Lk)("label",je,[(0,o.bo)((0,o.Lk)("input",{type:"checkbox","onUpdate:modelValue":n[10]||(n[10]=function(e){return(0,o.R1)(y).detect_woo=e}),id:"detect_woo",disabled:!(0,o.R1)(C),name:"detect_woo"},null,8,Oe),[[o.lH,(0,o.R1)(y).detect_woo]]),n[22]||(n[22]=(0,o.Lk)("span",{class:"sui-toggle-slider"},null,-1)),(0,o.Lk)("span",Xe,(0,o.v_)((0,o.R1)(t)("Enable two-factor authentication for WooCommerce")),1),(0,o.R1)(C)?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",Ae,[(0,o.Lk)("div",Te,[(0,o.Lk)("div",Pe,[n[21]||(n[21]=(0,o.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,o.Lk)("p",null,(0,o.v_)((0,o.R1)(t)("WooCommerce must be active to use this feature.")),1)])])]))])])]}),active_users:(0,o.k6)(function(){return[(0,o.Lk)("a",{target:"_blank",href:(0,o.R1)(f)("users.php?wpdef_two_fa=enabled")},(0,o.v_)((0,o.R1)(t)("View users")),9,We),(0,o.eW)(" "+(0,o.v_)((0,o.R1)(t)("who have enabled this feature."))+" ",1),(0,o.R1)(R)?((0,o.uX)(),(0,o.CE)("div",Fe,[(0,o.Lk)("div",Ie,[(0,o.Lk)("div",Ue,[n[23]||(n[23]=(0,o.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,o.Lk)("p",null,(0,o.v_)((0,o.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,o.Q3)("",!0)]}),_:1},8,["modelValue","title","settings","onSaveSettings","image-url"])}}},Ve=Ge;var Ke=n(9919),Qe=n(1289),Be={class:"sui-modal sui-modal-lg"},Me={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"},De={class:"sui-box",role:"document"},Ne={class:"sui-box-header"},$e={class:"sui-box-title",id:"modal-lost-phone-email-config-title"},He={class:"sui-actions-right"},qe={class:"sui-button-icon sui-button-float--right","data-modal-close":""},Je={class:"sui-screen-reader-text"},ze={class:"sui-box-body"},Ye={id:"modal-lost-phone-email-config-desc"},Ze={class:"sui-row"},et={class:"sui-col"},tt={class:"sui-form-field"},nt={class:"sui-label"},ot={class:"sui-col"},at={class:"sui-form-field"},it={class:"sui-label"},rt={class:"sui-row"},ut={class:"sui-col"},lt={class:"sui-label"},st={class:"sui-row"},ct={class:"sui-col"},dt={class:"sui-label"},ft={class:"sui-tag"},pt=["textContent"],vt={class:"sui-tag"},mt=["textContent"],bt={class:"sui-box-footer"},ht={class:"sui-flex-child-right"},yt={type:"button",class:"sui-button sui-button-ghost","data-modal-close":""},gt={class:"sui-actions-right"};const _t={__name:"email-config-modal",setup:function(e){var t=(0,r.B)().__,n=_(),i=(0,a.bP)(n).model;return function(e,a){return(0,o.uX)(),(0,o.CE)("div",Be,[(0,o.Lk)("div",Me,[(0,o.Lk)("div",De,[(0,o.Lk)("div",Ne,[(0,o.Lk)("h3",$e,(0,o.v_)((0,o.R1)(t)("Edit Email")),1),(0,o.Lk)("div",He,[(0,o.Lk)("button",qe,[a[5]||(a[5]=(0,o.Lk)("i",{class:"sui-icon-close sui-md","aria-hidden":"true"},null,-1)),(0,o.Lk)("span",Je,(0,o.v_)((0,o.R1)(t)("Close this dialog.")),1)])])]),(0,o.Lk)("form",{method:"post",onSubmit:a[4]||(a[4]=(0,o.D$)(function(e){return(0,o.R1)(n).handleEmailTemplate("save")},["prevent"]))},[(0,o.Lk)("div",ze,[(0,o.Lk)("p",Ye,(0,o.v_)((0,o.R1)(t)("This email sends a temporary passcode when the user can't access their phone.")),1),(0,o.Lk)("div",Ze,[(0,o.Lk)("div",et,[(0,o.Lk)("div",tt,[(0,o.Lk)("label",nt,(0,o.v_)((0,o.R1)(t)("Subject")),1),(0,o.bo)((0,o.Lk)("input",{name:"subject","onUpdate:modelValue":a[0]||(a[0]=function(e){return(0,o.R1)(i).email_subject=e}),class:"sui-form-control",type:"text",id:"email_subject"},null,512),[[o.Jo,(0,o.R1)(i).email_subject]])])]),(0,o.Lk)("div",ot,[(0,o.Lk)("div",at,[(0,o.Lk)("label",it,(0,o.v_)((0,o.R1)(t)("Sender")),1),(0,o.bo)((0,o.Lk)("input",{name:"sender","onUpdate:modelValue":a[1]||(a[1]=function(e){return(0,o.R1)(i).email_sender=e}),class:"sui-form-control",type:"text",id:"email_sender"},null,512),[[o.Jo,(0,o.R1)(i).email_sender]])])])]),(0,o.Lk)("div",rt,[(0,o.Lk)("div",ut,[(0,o.Lk)("label",lt,(0,o.v_)((0,o.R1)(t)("Body")),1),(0,o.bo)((0,o.Lk)("textarea",{class:"sui-form-control","onUpdate:modelValue":a[2]||(a[2]=function(e){return(0,o.R1)(i).email_body=e}),name:"body",rows:"8",id:"email_body"},null,512),[[o.Jo,(0,o.R1)(i).email_body]])])]),(0,o.Lk)("div",st,[(0,o.Lk)("div",ct,[(0,o.Lk)("label",dt,(0,o.v_)((0,o.R1)(t)("Available variables")),1),(0,o.Lk)("span",ft,[(0,o.Lk)("strong",{textContent:(0,o.v_)((0,o.R1)(t)("{{passcode}}"))},null,8,pt)]),(0,o.Lk)("span",vt,[(0,o.Lk)("strong",{textContent:(0,o.v_)((0,o.R1)(t)("{{display_name}}"))},null,8,mt)])])])]),(0,o.Lk)("div",bt,[(0,o.Lk)("div",ht,[(0,o.Lk)("button",yt,(0,o.v_)((0,o.R1)(t)("Cancel")),1)]),(0,o.Lk)("div",gt,[(0,o.bF)(Ke.A,{action:"save-template","css-class":"sui-button"},{default:(0,o.k6)(function(){return[(0,o.eW)((0,o.v_)((0,o.R1)(t)("Save Template")),1)]}),_:1}),(0,o.bF)(Qe.A,{variant:"blue",action:"send-two-factor-test",onClick:a[3]||(a[3]=function(e){return(0,o.R1)(n).handleEmailTemplate("send")}),label:(0,o.R1)(t)("Send Test")},null,8,["label"])])])],32)])])])}}},kt={__name:"two-fa",setup:function(e){var t=_(),n=(0,r.B)(),u=n._n,l=n.__,s=(0,F.X)().is_free,c=(0,a.bP)(t),d=c.model,f=c.count,p=c.custom_graphic_state,v=c.count_checked_roles,m=c.module_name,b=(0,o.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,o.uX)(),(0,o.Wv)(i.A,{title:(0,o.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,o.R1)(d).enabled},{default:(0,o.k6)(function(){return[(0,o.bF)(Ve),(0,o.bF)(_t)]}),_:1},8,["title","summary","show-summary"])}}};var wt=(0,o.Ef)(kt);wt.use((0,a.Ey)()),wt.mount("#defender")},9250:(e,t,n)=>{n.d(t,{S:()=>p});var o=n(810),a=n(9726),i=n(1751),r=n(5592),u=n(2720),l=n(7476);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:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,o,a,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,o,a){var i,u,l,s=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,l=e,f.n=n,r}};function p(n,o){for(u=n,l=o,t=0;!d&&s&&!a&&t<c.length;t++){var a,i=c[t],p=f.p,v=i[2];n>3?(a=v===o)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(u=0,f.v=o,f.n=i[1]):p<v&&(a=n<3||i[0]>o||o>v)&&(i[4]=n,i[5]=o,f.n=v,u=0))}if(a||n>1)return r;throw d=!0,o}return function(a,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;){i||(u?u<3?(u>1&&(f.n=-1),p(u,l)):f.n=l:f.v=l);try{if(s=2,i){if(u||(a="next"),t=i[a]){if(!(t=t.call(i,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=i.return)&&t.call(i),u<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(o,f))!==r)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,a,i),!0),s}var r={};function u(){}function l(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(c(t={},o,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,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=d,c(p,"constructor",d),c(d,"constructor",l),l.displayName="GeneratorFunction",c(d,a,"GeneratorFunction"),c(p),c(p,a,"Generator"),c(p,o,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:v}})()}function c(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}c=function(e,t,n,o){if(t)a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){c(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},c(e,t,n,o)}function d(e,t,n,o,a,i,r){try{var u=e[i](r),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(o,a)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function r(e){d(i,o,a,r,u,"next",e)}function u(e){d(i,o,a,r,u,"throw",e)}r(void 0)})}}var p=(0,o.nY)("scan",function(){var e,t=(0,a.KR)(null),n=(0,a.KR)({}),o=(0,a.KR)({}),c=(0,a.KR)(""),d=(0,a.KR)({}),p=(0,a.KR)({}),v=(0,a.KR)({}),m=(0,r.B)(),b=m.__,h=m.sprintf,y=(0,l.r)(),g=(0,a.EW)(function(){var e;return(null===(e=t.value)||void 0===e||null===(e=e.count)||void 0===e?void 0:e.issues_total)||0}),_=(0,a.EW)(function(){var e;return[void 0,"finish","idle"].includes(null===(e=t.value)||void 0===e?void 0:e.status)}),k=(0,a.EW)(function(){var e;return(null===(e=p.value)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.length)||0}),w=(0,a.EW)(function(){var e;return(null===(e=t.value)||void 0===e||null===(e=e.issues_items)||void 0===e?void 0:e.length)||0}),L=(0,a.EW)(function(){return y.isLoading("scan")});function C(e){t.value=e.scan,n.value=e.routes,o.value=e.nonces,c.value=e.report,d.value=e.settings,p.value=e.quarantine,v.value=e.upsell}function R(){return(R=f(s().m(function e(){return s().w(function(e){for(;;)if(0===e.n)return e.a(2,y.withLoading("start-scan",f(s().m(function e(){var a;return s().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,i.q)().post(n.value.start,o.value.start,{});case 1:return a=e.v,t.value=a,e.a(2,a)}},e)}))))},e)}))).apply(this,arguments)}function E(){return(E=f(s().m(function e(){return s().w(function(e){for(;;)if(0===e.n)return e.a(2,y.withLoading("cancel-scan",f(s().m(function e(){var a;return s().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,i.q)().post(n.value.cancel,o.value.cancel,{});case 1:return a=e.v,t.value=a.scan,e.a(2,a)}},e)}))))},e)}))).apply(this,arguments)}function S(){return x.apply(this,arguments)}function x(){return(x=f(s().m(function e(){var a;return s().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,i.q)().post(n.value.status,o.value.status,{});case 1:if("session_out"!==(null==(a=e.v)?void 0:a.type_notice)){e.n=2;break}throw new Error(a.type_notice);case 2:return t.value=a,e.a(2,a)}},e)}))).apply(this,arguments)}"undefined"!=typeof window&&null!==(e=window.dashboard)&&void 0!==e&&e.scan&&C(window.dashboard.scan);var j,O=(0,a.EW)(function(){return 1===g.value?b("We've detected a potential security risk in your file system. We recommend you take a look and action a fix, or ignore the file if it's harmless."):g.value>1?h(b("We've detected %d potential security risks in your file system. We recommend you take a look and action a fix, or ignore the file if it's harmless."),[g.value]):b("You don't have any outstanding security recommendations, nice work!")}),X=function(){var e,t;null===(e=j)||void 0===e||null===(t=e.pause)||void 0===t||t.call(e)};return{scan:t,report:c,settings:d,quarantine:p,upsell:v,count:g,isScanStopped:_,getQuarantineCount:k,tooltips:O,totalIssues:w,isLoading:L,init:C,startScan:function(){return R.apply(this,arguments)},cancelScan:function(){return E.apply(this,arguments)},status:S,startPolling:function(){var e;null!==(e=j)&&void 0!==e&&null!==(e=e.isActive)&&void 0!==e&&e.value||(j=(0,u.Rg)(f(s().m(function e(){return s().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,S();case 1:e.n=3;break;case 2:e.p=2,"session_out"===e.v.message&&X();case 3:return e.a(2)}},e,null,[[0,2]])})),3e3)).resume()},stopPolling:X,resultIndicator:function(e){return e>0?'<span class="sui-tag sui-tag-warning">'.concat(e,"</span>"):'<i aria-hidden="true" class="sui-icon-check-tick sui-success"></i>'}}})},9409:(e,t,n)=>{n.d(t,{A:()=>a});var o=(0,n(5592).B)().__;const a={beforeMount:function(e,t){if(window.wp&&window.wp.media){var n=null,a=t.value||{},i="function"==typeof a?a:a.callback,r=a.type||["image"],u=a.allowedTypes||["image/jpeg","image/png","image/gif"],l=a.title||o("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:o("Choose File")},multiple:!1,library:{type:r}})).on("select",function(){var e=n.state().get("selection").first().toJSON();0===u.length||u.indexOf(e.mime)>-1?i({url:e.url,valid:!0,id:e.id,filename:e.filename}):(window.Defender&&window.Defender.showNotification&&window.Defender.showNotification("error",o("Invalid file type")),i({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__}}},9755:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(6314),a=n.n(o)()(function(e){return e[1]});a.push([e.id,".bottom-border[data-v-4b019f10]{border-bottom:1px solid #e6e6e6}.bottom-border[data-v-4b019f10]:last-child{border-bottom:none}.sui-tag[data-v-4b019f10]{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 i=a},9806:(e,t,n)=>{n.d(t,{p:()=>i});var o=n(5592),a=n(9726);function i(){(0,o.B)().__;var e=(0,a.EW)(function(){return defender.whitelabel.hide_branding}),t=(0,a.EW)(function(){return"disabled"===defender.is_whitelabel&&0===parseInt(defender.is_free)}),n=(0,a.EW)(function(){return"disabled"===defender.is_whitelabel}),i=(0,a.EW)(function(){return defender.whitelabel.hero_image||!1}),r=(0,a.EW)(function(){return defender.whitelabel.hide_doc_link||!1}),u=(0,a.EW)(function(){return e.value&&i.value?{backgroundImage:"url(".concat(i.value,")")}:{}});return{maybeHideBranding:e,showSupportLinks:t,isWhitelabelDisabled:n,whitelabelHeroImage:i,hide_doc_link:r,backgroundImageStyle:u}}},9919:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(9726);function a(e){return a="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},a(e)}var i=["type","disabled"],r={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,o.nI)().proxy,u=null==n?void 0:n.$store,l=(0,o.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"===a(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,o.EW)(function(){return!0===t.disabled}),c=(0,o.EW)(function(){return""===t.type?"submit":t.type});return function(e,t){return(0,o.uX)(),(0,o.CE)("button",{type:c.value,onClick:t[0]||(t[0]=function(t){return e.$emit("click")}),class:(0,o.C4)(l.value),disabled:s.value},[(0,o.Lk)("span",r,[(0,o.RG)(e.$slots,"default")]),t[1]||(t[1]=(0,o.Lk)("i",{class:"sui-icon-loader sui-loading","aria-hidden":"true"},null,-1))],10,i)}}}}},e=>{e.O(0,[594],()=>{return t=8859,e(e.s=t);var t});e.O()}]);