File: /home/teamadsc/public_html/wp-content/plugins/wp-defender/assets/app/two-fa.js
"use strict";(self.webpackChunkwp_defender=self.webpackChunkwp_defender||[]).push([[472],{9135(e,t,n){n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()(function(e){return e[1]});o.push([e.id,".sui-tag[data-v-22cc36f6]{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=o},4896(e,t,n){n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()(function(e){return e[1]});o.push([e.id,".heading[data-v-5c3e3e2b]{color:#999;font-size:12px;font-weight:600}.sidenav-tooltip-icon[data-v-5c3e3e2b]{right:-5px;top:2px}",""]);const i=o},620(e,t,n){n.d(t,{A:()=>i});var r=n(6314),o=n.n(r)()(function(e){return e[1]});o.push([e.id,".prefix-icon[data-v-6455ea41]{left:14px;position:absolute;top:50%;transform:translateY(-50%)}",""]);const i=o},6860(e,t,n){n.d(t,{$C:()=>_,Bb:()=>O,D0:()=>I,Fj:()=>L,J_:()=>y,LS:()=>S,QN:()=>X,S8:()=>x,Y$:()=>g,YB:()=>P,YS:()=>k,ZW:()=>A,__:()=>d,_n:()=>f,bE:()=>E,dC:()=>F,eq:()=>j,gk:()=>C,nN:()=>b,nv:()=>p,uq:()=>m});var r=n(4073),o=n(5592),i=n(6965),a=n(8261),u=n(1751),l=n(682),s=n(9806),c=(0,o.B)(),d=c.__,f=c._n,p=c.sprintf,v=(0,r.I)(),m=v.assetUrl,b=v.adminUrl,y=v.campaign_url,h=(0,i.S)(),g=h.stringToId,_=h.generateId,w=(0,a.m)(),k=w.reloadAccordion,C=w.rebindSUI,S=w.suiRemoveModalClass,L=w.associateSUIselect2WithModal,E=(0,u.q)().post,R=(0,l.X)(),j=R.is_free,x=R.whitelabel,O=R.isHighContrast,A=R.maybeHighContrast,T=(0,s.p)(),P=T.showSupportLinks,X=T.maybeHideBranding,F=T.whitelabelHeroImage,I=T.backgroundImageStyle},682(e,t,n){n.d(t,{X:()=>a,m:()=>i});var r=n(9726),o=(0,r.KR)(defender.misc.high_contrast||!1),i=function(e){o.value=e},a=function(){var e=(0,r.KR)(1===parseInt(defender.is_free)),t=(0,r.KR)(1===parseInt(defender.is_wp_org)),n=(0,r.KR)(defender.tracking_modal),i=(0,r.KR)(defender.misc.rating.is_displayed),a=(0,r.KR)(defender.is_whitelabel),u=(0,r.KR)(defender.misc||{}),l=(0,r.KR)(defender.whitelabel||{hide_branding:!1,hide_doc_link:!1,footer_text:'Made with <i class="sui-icon-heart"></i> by WPMU DEV',hero_image:"",change_footer:!1,is_unbranded:!1,is_rebranded:!1}),s=(0,r.KR)(defender.upgrade_title||""),c=(0,r.KR)(defender.is_membership||!1),d=(0,r.KR)(defender.wpmudev_support_ticket_text||""),f=(0,r.KR)(defender.hosted||!1),p=(0,r.EW)(function(){return"show"===n.value}),v=(0,r.EW)(function(){return"disabled"===a.value}),m=(0,r.EW)(function(){return"enabled"===a.value}),b=(0,r.EW)(function(){return!0===o.value});return{is_free:e,is_wp_org:t,tracking_modal:n,is_whitelabel:a,is_membership:c,misc:u,whitelabel:l,upgradeTitle:s,support_text:d,hosted:f,ratingIsDisplayed:i,showTrackingModal:p,isWhitelabelDisabled:v,isWhitelabelEnabled:m,showSupportLinks:function(){return v.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":b.value}},isHighContrast:function(){return b.value}}}},1751(e,t,n){n.d(t,{q:()=>b});var r=n(4335),o=n(3279),i=n(7786),a=n(2720),u=n(8261);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var i,u,l,s=0,c=o||[],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,a}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,v=i[2];n>3?(o=v===r)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,f.v=r,f.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,u=0))}if(o||n>1)return a;throw d=!0,r}return function(o,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||(o="next"),t=i[o]){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 '"+o+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function u(){}function l(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=d.prototype=u.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=d,c(p,"constructor",d),c(d,"constructor",l),l.displayName="GeneratorFunction",c(d,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:v}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function i(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},c(e,t,n,r)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,u,"next",e)}function u(e){v(i,r,o,a,u,"throw",e)}a(void 0)})}}function b(){var e=(0,u.m)().rebindSUI,t=r.A.create({baseURL:"".concat(ajaxurl,"?action=wp_defender/v1/hub/"),timeout:3e4,transitional:{clarifyTimeoutError:!0},withCredentials:!1});function n(e,t){return"&route=".concat(encodeURIComponent(e),"&_def_nonce=").concat(encodeURIComponent(t))}function l(e,t,n,r){return c.apply(this,arguments)}function c(){return c=m(s().m(function r(i,u,l,c){var p,v,m,b,y,h,g,_,w,k,C,S,L,E,R,j,x,O,A,T=arguments;return s().w(function(r){for(;;)switch(r.n){case 0:return h=T.length>4&&void 0!==T[4]?T[4]:{},g=new FormData,c instanceof File&&"application/json"===c.type?g.append("file",c):(_=JSON.stringify(c),g.append("data",_)),w=n(u,l),r.n=1,(0,o.q)(w,f({method:i,data:g},h),t);case 1:if(k=r.v,C=k.data,!k.error.value){r.n=2;break}return r.a(2,null);case 2:return S=C.value,L=S.success,E=(null===(p=S.data)||void 0===p?void 0:p.message)||null,R=(null===(v=S.data)||void 0===v?void 0:v.redirect)||null,j=(null===(m=S.data)||void 0===m?void 0:m.interval)||null,x=(null===(b=S.data)||void 0===b?void 0:b.type_notice)||!1,(void 0===(null===(y=S.data)||void 0===y?void 0:y.show_notice)||S.data.show_notice)&&null!==E&&(A=!0===(null===(O=S.data)||void 0===O?void 0:O.auto_close),Defender.showNotification(L?x||"success":"error",E,A)),"session_out"===x&&null===R&&d(),null!==j?(0,a.TO)(function(){null!==R?location.href=R:location.reload()},1e3*j):null!==R&&(location.href=R),e(),r.a(2,S.data)}},r)})),c.apply(this,arguments)}function d(){(0,a.TO)(function(){(0,i.MLh)(document,"heartbeat-tick",function(){jQuery(document).trigger("heartbeat-tick.wp-auth-check",[{"wp-auth-check":!1}])}),(0,i.MLh)(window,"load",function(){var e=document.getElementById("wp-auth-check-frame");if(e){var t,n=null===(t=e.contentDocument)||void 0===t?void 0:t.getElementById("loginform");n&&n.addEventListener("submit",function(){(0,a.TO)(function(){location.reload()},1e3)})}})},2e3)}var p=function(){var e=m(s().m(function e(t,n){var r,i,a,u,l,c,d,p,v,m,b,y,h=arguments;return s().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=h.length>2&&void 0!==h[2]?h[2]:{},i=h.length>3&&void 0!==h[3]?h[3]:{},e.p=1,a="".concat(window.ajaxurl,"?action=").concat(t,"&_def_nonce=").concat(n),e.n=2,(0,o.q)(f({url:a,method:"POST",data:r},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,y=e.v,403===(null===(m=y.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)),y;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]:{})}}}},6965(e,t,n){function r(){return{capitalizeFirstLetter:function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""},stringToId:function(e){return e?e.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,""):""},generateId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Math.random().toString(36).substring(2,15);return e?"".concat(e,"-").concat(t):t}}}n.d(t,{S:()=>r})},5592(e,t,n){n.d(t,{B:()=>i});var r=n(4005),o=new r.FilterXSS({whiteList:{a:["href","title","target"],span:["class"],strong:[]},safeAttrValue:function(e,t,n){return"a"===e&&"href"===t&&"%s"===n?"%s":(0,r.safeAttrValue)(e,t,n)}}),i=function(){var e=wp.i18n;return{__:function(t){return o.process(e.__(t,"wpdef"))},_n:function(t,n,r){return o.process(e.sprintf(e._n(t,n,r,"wpdef"),r))},xss:function(e){return o.process(e)},sprintf:function(){return e.sprintf.apply(e,arguments)}}}},8261(e,t,n){n.d(t,{m:()=>u});var r=n(9726),o=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 a(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)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(){var e=function(){(0,r.dY)(function(){"undefined"!=typeof SUI&&(t(),SUI.tabs(),SUI.modalDialog(),n()),"undefined"!=typeof SUI&&SUI.select2&&document.querySelectorAll(".sui-select").forEach(function(e){var t=e.dataset.placeholder||"";SUI.select2(e,{placeholder:t,dropdownCssClass:"sui-select-dropdown"})})})};function t(){document.querySelectorAll(".sui-accordion").forEach(function(e){SUI.suiAccordion(e)})}var n=function(){var e=document.querySelector(".sui-has-modal");e&&e.classList.remove("sui-has-modal")};e(),(0,o.MLh)(document,"modalClosed",n);var a=(0,o.Ubj)("(max-width: 767px)"),u=(0,o.Ubj)("(min-width: 768px) and (max-width: 1024px)"),l=(0,o.Ubj)("(min-width: 1025px)"),s=(0,o.Ubj)("(max-width: 1444px)");return{rebindSUI:e,associateSUIselect2WithModal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("undefined"!=typeof SUI&&SUI.select2){if(!t){var n=e.closest('.sui-modal-content[aria-modal="true"]');t=(null==n?void 0:n.getAttribute("id"))||""}if(t){var r=document.getElementById(t);r&&SUI.select2(e,{dropdownParent:r})}}},suiRemoveModalClass:n,observeModalChanges:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".sui-modal";(0,o.P1n)(document.body,function(n){var r,o=i(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("childList"===a.type)Array.from(a.addedNodes).some(function(e){var n,r;return e.nodeType===Node.ELEMENT_NODE&&((null===(n=e.matches)||void 0===n?void 0:n.call(e,t))||(null===(r=e.querySelector)||void 0===r?void 0:r.call(e,t)))})&&e()}}catch(e){o.e(e)}finally{o.f()}},{childList:!0,subtree:!0})},reloadAccordion:t,isMobile:a,isTablet:u,isDesktop:l,isLargeDesktop:s}}},4073(e,t,n){n.d(t,{I:()=>r});var r=function(){return{homeUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.home_url+e},siteUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.site_url+e},adminUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.admin_url+e},assetUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.defender_url+e},wpmuDevApiBaseUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.wpmudev_api_base_url+e},campaign_url:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"project/wp-defender",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n=n&&!n.endsWith("&")?n+"&":n,"".concat(defender.wpmudev_api_base_url).concat(t,"/?").concat(n,"utm_source=defender&utm_medium=plugin&utm_campaign=").concat(e)},wpmuDevHubUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.wpmudev_hub_link+e}}}},9478(e,t,n){n.d(t,{h:()=>o});var r=n(5592),o=function(){var e=(0,r.B)().__;return{ucFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},getFlagEmoji:function(e){if(2===e.length)return e.toUpperCase().replace(/./g,function(e){return String.fromCodePoint(127397+e.charCodeAt())})},getCountryName:function(t){return 2===t.length?new Intl.DisplayNames(["en"],{type:"region"}).of(t):e("Unknown")},formatNumber:function(e){return"string"==typeof e&&(e=e.replace(/,/g,"")),isNaN(Number(e))?e:new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(Number(e))}}}},9806(e,t,n){n.d(t,{p:()=>i});var r=n(5592),o=n(9726);function i(){(0,r.B)().__;var e=(0,o.EW)(function(){return defender.whitelabel.hide_branding}),t=(0,o.EW)(function(){return"disabled"===defender.is_whitelabel&&0===parseInt(defender.is_free)}),n=(0,o.EW)(function(){return"disabled"===defender.is_whitelabel}),i=(0,o.EW)(function(){return defender.whitelabel.hero_image||!1}),a=(0,o.EW)(function(){return defender.whitelabel.hide_doc_link||!1}),u=(0,o.EW)(function(){return e.value&&i.value?{backgroundImage:"url(".concat(i.value,")")}:{}});return{maybeHideBranding:e,showSupportLinks:t,isWhitelabelDisabled:n,whitelabelHeroImage:i,hide_doc_link:a,backgroundImageStyle:u}}},9409(e,t,n){n.d(t,{A:()=>o});var r=(0,n(5592).B)().__;const o={beforeMount:function(e,t){if(window.wp&&window.wp.media){var n=null,o=t.value||{},i="function"==typeof o?o:o.callback,a=o.type||["image"],u=o.allowedTypes||["image/jpeg","image/png","image/gif"],l=o.title||r("Choose an image file"),s=function(){void 0!==window._&&"function"==typeof window._.forEach&&["get","set","cloneDeep","at"].every(function(e){return"function"==typeof window._[e]})&&window._.noConflict(),n||(n=window.wp.media({title:l,button:{text:r("Choose File")},multiple:!1,library:{type:a}})).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",r("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__}}},6885(e,t,n){n.d(t,{O:()=>y});var r=n(810),o=n(9726),i=n(1751),a=n(7476),u=n(3824),l=n(9478);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(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return d(s,"_invoke",function(n,r,o){var i,u,l,s=0,c=o||[],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,a}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,v=i[2];n>3?(o=v===r)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,f.v=r,f.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,u=0))}if(o||n>1)return a;throw d=!0,r}return function(o,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||(o="next"),t=i[o]){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 '"+o+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function u(){}function l(){}function s(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(d(t={},r,function(){return this}),t),p=s.prototype=u.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,d(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=s,d(p,"constructor",s),d(s,"constructor",l),l.displayName="GeneratorFunction",d(s,o,"GeneratorFunction"),d(p),d(p,o,"Generator"),d(p,r,function(){return this}),d(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:i,m:v}})()}function d(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}d=function(e,t,n,r){function i(t,n){d(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},d(e,t,n,r)}function f(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){f(i,r,o,a,u,"next",e)}function u(e){f(i,r,o,a,u,"throw",e)}a(void 0)})}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(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 r=n.call(e,t||"default");if("object"!=s(r))return r;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}var y=(0,r.nY)("antibot",function(){var e=(0,i.q)().post,t=(0,l.h)().formatNumber,n=(0,a.r)(),r=(0,u.k)().isSiteConnected,s=(0,o.KR)({}),d=(0,o.KR)({}),f=(0,o.KR)({}),v=(0,o.KR)({});function y(e){s.value=e.model,d.value=e.misc,f.value=e.routes,v.value=e.nonces}function h(e){var t=e.key,n=e.value;s.value=m(m({},s.value),{},b({},t,n))}function g(e){var t=e.key,n=e.value;d.value=m(m({},d.value),{},b({},t,n))}function _(){return(_=p(c().m(function t(){var r,o;return c().w(function(t){for(;;)switch(t.n){case 0:return r=m(m({},s.value),{},{enabled:!1}),t.n=1,n.withLoading("deactivate-antibot",function(){return e(f.value.save_settings,v.value.save_settings,r)});case 1:void 0!==(o=t.v)&&y(o);case 2:return t.a(2)}},t)}))).apply(this,arguments)}function w(){return w=p(c().m(function t(){var r,o=arguments;return c().w(function(t){for(;;)switch(t.n){case 0:return r=o.length>0&&void 0!==o[0]?o[0]:{},t.n=1,n.withLoading("activate-antibot",p(c().m(function t(){var n;return c().w(function(t){for(;;)switch(t.n){case 0:return n=m(m({},s.value),{},{enabled:!0,redirect_to_feature_page:r.redirect_to_feature_page||!1}),t.n=1,e(f.value.save_settings,v.value.save_settings,n);case 1:n.redirect_to_feature_page||setTimeout(function(){return location.reload()},500);case 2:return t.a(2)}},t)})));case 1:return t.a(2)}},t)})),w.apply(this,arguments)}function k(){return(k=p(c().m(function t(r){var o;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:return o=r.feedback,n.start("send-feedback"),t.p=1,t.n=2,e(f.value.send_feedback,v.value.send_feedback,{feedback:o});case 2:return t.p=2,n.stop("send-feedback"),t.f(2);case 3:return t.a(2)}},t,null,[[1,,2,3]])}))).apply(this,arguments)}function C(){return(C=p(c().m(function t(){return c().w(function(t){for(;;)switch(t.p=t.n){case 0:return n.start("dismiss-global-notice"),t.p=1,t.n=2,e(f.value.dismiss_global_notice,v.value.dismiss_global_notice,{});case 2:return t.p=2,n.stop("dismiss-global-notice"),t.f(2);case 3:return t.a(2)}},t,null,[[1,,2,3]])}))).apply(this,arguments)}function S(){return(S=p(c().m(function t(){return c().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,n.withLoading("switch-managed-by",p(c().m(function t(){var n;return c().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e(f.value.switch_managed_by,v.value.switch_managed_by);case 1:h({key:"managed_by",value:(n=t.v).managed_by}),g({key:"frontend_mode",value:n.frontend_mode}),g({key:"ips_count",value:n.ips_count});case 2:return t.a(2)}},t)})));case 1:return t.a(2)}},t)}))).apply(this,arguments)}function L(){return(L=p(c().m(function t(r){return c().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,n.withLoading("submit-trusted-ip-form",function(){return e(f.value.blocklist_checker_submit_trusted_ip_form,v.value.blocklist_checker_submit_trusted_ip_form,r)});case 1:return t.a(2)}},t)}))).apply(this,arguments)}function E(){return(E=p(c().m(function t(r){return c().w(function(t){for(;;)if(0===t.n)return t.a(2,n.withLoading("blocklist-checker-search",p(c().m(function t(){var n,o,i,a;return c().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e(f.value.blocklist_checker_search,v.value.blocklist_checker_search,{ip:r});case 1:if((a=t.v).success){t.n=2;break}throw new Error(a.message);case 2:return t.a(2,{local:null!==(n=a.local)&&void 0!==n&&n,central:null!==(o=a.central)&&void 0!==o&&o,antibot:null!==(i=a.antibot)&&void 0!==i&&i})}},t)}))))},t)}))).apply(this,arguments)}function R(){return(R=p(c().m(function t(r){return c().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,n.withLoading("add-ip-to-allowlist",function(){return e(f.value.blocklist_checker_add_ip_to_allowlist,v.value.blocklist_checker_add_ip_to_allowlist,{ip:r})});case 1:return t.a(2)}},t)}))).apply(this,arguments)}function j(){return(j=p(c().m(function t(){return c().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,n.withLoading("switch-mode",p(c().m(function t(){var n;return c().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e(f.value.switch_mode,v.value.switch_mode,{});case 1:g({key:"frontend_mode",value:(n=t.v).mode}),g({key:"ips_count",value:n.ips_count}),SUI.closeModal();case 2:return t.a(2)}},t)})));case 1:return t.a(2)}},t)}))).apply(this,arguments)}void 0!==window.antibot&&y(window.antibot);var x=(0,o.EW)(function(){return r&&d.value.frontend_is_enabled}),O=(0,o.EW)(function(){return x.value?t(d.value.ips_count):0}),A=(0,o.EW)(function(){var e;return null===(e=d.value)||void 0===e?void 0:e.is_expired_membership});return{model:s,misc:d,routes:f,nonces:v,isEnabled:x,totalAntibotIps:O,isCurrentPlanExpired:A,init:y,updateModelProperty:h,updateMiscProperty:g,deactivate:function(){return _.apply(this,arguments)},activate:function(){return w.apply(this,arguments)},switchManagedBy:function(){return S.apply(this,arguments)},submitTrustedIpForm:function(e){return L.apply(this,arguments)},blocklistCheckerSearch:function(e){return E.apply(this,arguments)},addIpToAllowlist:function(e){return R.apply(this,arguments)},switchMode:function(){return j.apply(this,arguments)},sendFeedback:function(e){return k.apply(this,arguments)},dismissGlobalNotice:function(){return C.apply(this,arguments)}}})},4916(e,t,n){n.d(t,{w:()=>s});var r=n(9726),o=n(810),i=n(6860);function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var a=r&&r.prototype instanceof s?r:s,c=Object.create(a.prototype);return u(c,"_invoke",function(n,r,o){var i,a,u,s=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,a=0,u=e,f.n=n,l}};function p(n,r){for(a=n,u=r,t=0;!d&&s&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,v=i[2];n>3?(o=v===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,f.v=r,f.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,a=0))}if(o||n>1)return l;throw d=!0,r}return function(o,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),a=c,u=v;(t=a<2?e:u)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,u)):f.n=u:f.v=u);try{if(s=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==l)break}catch(t){i=e,a=1,u=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),c}var l={};function s(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=d.prototype=s.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,u(p,"constructor",d),u(d,"constructor",c),c.displayName="GeneratorFunction",u(d,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m:v}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function i(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},u(e,t,n,r)}function l(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}var s=(0,o.nY)("analyticsTracking",function(){var e=(0,r.KR)(""),t=(0,r.KR)("");function n(){for(var n=0,r=[window.scan,window.audit,window.two_fa,window.dashboard,window.iplockout,window.advanced_tools,window.settings];n<r.length;n++){var o,i,a,u,l=r[n];if(null!=l&&null!==(o=l.routes)&&void 0!==o&&o.track_feature_handler&&null!=l&&null!==(i=l.nonces)&&void 0!==i&&i.track_feature_handler)return e.value=null===(a=l.routes)||void 0===a?void 0:a.track_feature_handler,void(t.value=null===(u=l.nonces)||void 0===u?void 0:u.track_feature_handler)}}function o(){var n;return n=a().m(function n(r){return a().w(function(n){for(;;)switch(n.n){case 0:if(e.value&&t.value){n.n=1;break}return n.a(2);case 1:return n.n=2,(0,i.bE)(e.value,t.value,r);case 2:return n.a(2,n.v)}},n)}),o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){l(i,r,o,a,u,"next",e)}function u(e){l(i,r,o,a,u,"throw",e)}a(void 0)})},o.apply(this,arguments)}return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n(),{trackFeature:function(e){return o.apply(this,arguments)}}})},3824(e,t,n){n.d(t,{k:()=>b});var r=n(810),o=n(9726),i=n(7786),a=n(1751),u=n(7476);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof u?r:u,c=Object.create(l.prototype);return s(c,"_invoke",function(n,r,o){var i,u,l,s=0,c=o||[],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,a}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,v=i[2];n>3?(o=v===r)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,f.v=r,f.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,u=0))}if(o||n>1)return a;throw d=!0,r}return function(o,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||(o="next"),t=i[o]){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 '"+o+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=u.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,s(p,"constructor",d),s(d,"constructor",c),c.displayName="GeneratorFunction",s(d,o,"GeneratorFunction"),s(p),s(p,o,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:v}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}s=function(e,t,n,r){function i(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},s(e,t,n,r)}function c(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,u,"next",e)}function u(e){c(i,r,o,a,u,"throw",e)}a(void 0)})}}function f(e){return f="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},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,r.nY)("hubConnection",function(){var e=(0,a.q)().get,t=(0,u.r)(),n=(0,i.Mjh)("init_hub_connection",""),r=(0,o.KR)({}),s=(0,o.KR)({}),c=(0,o.KR)(""),p=(0,o.KR)(!1),m=(0,o.KR)(!1),b=(0,o.KR)(!1),y=(0,o.KR)({}),h=(0,o.EW)(function(){return b.value}),g=(0,o.EW)(function(){return p.value&&m.value}),_=(0,o.EW)(function(){return p.value&&!m.value}),w=(0,o.EW)(function(){return Object.keys(y.value).length>0});function k(e){var t,n,o;e&&(r.value=e.routes?v({},e.routes):{},s.value=e.nonces?v({},e.nonces):{},c.value=e.button_label||"",p.value=null!==(t=e.is_dash_installed)&&void 0!==t&&t,m.value=null!==(n=e.is_dash_activated)&&void 0!==n&&n,b.value=null!==(o=e.is_hub_connected)&&void 0!==o&&o,y.value=e.hub_connector_url?v({},e.hub_connector_url):{})}function C(){return S.apply(this,arguments)}function S(){return(S=d(l().m(function n(){var o;return l().w(function(n){for(;;)switch(n.p=n.n){case 0:if(_.value&&r.value.activate_dashboard_plugin){n.n=1;break}throw new Error("Cannot activate dashboard plugin");case 1:return t.start("activate-dashboard-plugin"),n.p=2,n.n=3,e(r.value.activate_dashboard_plugin,s.value.activate_dashboard_plugin);case 3:return(o=n.v).redirect&&setTimeout(function(){return window.location.replace(o.redirect)},500),n.a(2,o);case 4:return n.p=4,t.stop("activate-dashboard-plugin"),n.f(4);case 5:return n.a(2)}},n,null,[[2,,4,5]])}))).apply(this,arguments)}function L(){return L=d(l().m(function e(){var t,r,o,i=arguments;return l().w(function(e){for(;;)switch(e.n){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},!_.value){e.n=2;break}return e.n=1,C();case 1:return e.a(2,e.v);case 2:r=t.page||"",t.is_summary||!1?(r="summary-box",n.value=r):n.value=t.module_slug||r,(o=E(r))&&window.location.replace(o);case 3:return e.a(2)}},e)})),L.apply(this,arguments)}function E(e){return w.value&&(y.value[e]||y.value.default)||null}return function(){if("undefined"!=typeof window){var e,t,n,r,o,i,a,u,l,s,c,d,f=(null===(e=window.dashboard)||void 0===e?void 0:e.hub_connector)||(null===(t=window.onboard)||void 0===t?void 0:t.hub_connector)||(null===(n=window.defender)||void 0===n?void 0:n.hub_connector)||(null===(r=window.iplockout)||void 0===r?void 0:r.hub_connector)||(null===(o=window.two_fa)||void 0===o?void 0:o.hub_connector)||(null===(i=window.security_tweaks)||void 0===i?void 0:i.hub_connector)||(null===(a=window.scan)||void 0===a?void 0:a.hub_connector)||(null===(u=window.audit)||void 0===u?void 0:u.hub_connector)||(null===(l=window.waf)||void 0===l?void 0:l.hub_connector)||(null===(s=window.advanced_tools)||void 0===s?void 0:s.hub_connector)||(null===(c=window.notification)||void 0===c?void 0:c.hub_connector)||(null===(d=window.settings)||void 0===d?void 0:d.hub_connector);f&&k(f)}}(),{routes:r,nonces:s,button_label:c,is_dash_installed:p,is_dash_activated:m,is_hub_connected:b,hub_connector_url:y,isSiteConnected:h,isDashReady:g,canActivateDash:_,hasConnectorUrls:w,init:k,updateConnectionStatus:function(e){b.value=Boolean(e)},updateConnectorUrl:function(e){"object"===f(e)&&null!==e?y.value=v({},e):"string"==typeof e&&(y.value={default:e})},initHubConnectionFlow:function(){return L.apply(this,arguments)},activateDashboardPlugin:C,checkConnection:function(){var e=n.value;return!(!e||!["global-ip","blocklist","onboard","summary-box"].includes(e)||!b.value)&&(n.value="",!0)},clearConnectionState:function(){n.value=""},getRedirectUrl:E}})},7476(e,t,n){n.d(t,{r:()=>l});var r=n(810),o=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:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function u(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return a(c,"_invoke",function(n,r,o){var i,a,u,s=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,a=0,u=e,f.n=n,l}};function p(n,r){for(a=n,u=r,t=0;!d&&s&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,v=i[2];n>3?(o=v===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,f.v=r,f.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,a=0))}if(o||n>1)return l;throw d=!0,r}return function(o,c,v){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,v),a=c,u=v;(t=a<2?e:u)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,u)):f.n=u:f.v=u);try{if(s=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?u:n.call(r,f))!==l)break}catch(t){i=e,a=1,u=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),c}var l={};function s(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=d.prototype=s.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,a(p,"constructor",d),a(d,"constructor",c),c.displayName="GeneratorFunction",a(d,o,"GeneratorFunction"),a(p),a(p,o,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(i=function(){return{w:u,m:v}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function u(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}var l=(0,r.nY)("loading",function(){var e=(0,o.KR)([]);function t(t){e.value.push(t)}function n(t){e.value=e.value.filter(function(e){return e!==t})}function r(t){return e.value.includes(t)}var a=function(){var e,o=(e=i().m(function e(o,a){return i().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!r(o)){e.n=1;break}return e.a(2);case 1:return t(o),e.p=2,e.n=3,a();case 3:return e.a(2,e.v);case 4:return e.p=4,n(o),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){u(i,r,o,a,l,"next",e)}function l(e){u(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e,t){return o.apply(this,arguments)}}();return{start:t,stop:n,isLoading:r,clear:function(){for(var t in e)e[t]=!1},withLoading:a}})},8859(e,t,n){var r=n(9726),o=n(810),i=n(9879),a=n(5592),u=n(4073),l=n(4916),s=n(7545),c=n(1751),d=n(7476);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return b(s,"_invoke",function(n,r,o){var i,u,l,s=0,c=o||[],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,a}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,v=i[2];n>3?(o=v===r)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,f.v=r,f.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,u=0))}if(o||n>1)return a;throw d=!0,r}return function(o,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||(o="next"),t=i[o]){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 '"+o+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function u(){}function l(){}function s(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(b(t={},r,function(){return this}),t),d=s.prototype=u.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,b(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,b(d,"constructor",s),b(s,"constructor",l),l.displayName="GeneratorFunction",b(s,o,"GeneratorFunction"),b(d),b(d,o,"Generator"),b(d,r,function(){return this}),b(d,"toString",function(){return"[object Generator]"}),(m=function(){return{w:i,m:f}})()}function b(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}b=function(e,t,n,r){function i(t,n){b(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},b(e,t,n,r)}function y(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){y(i,r,o,a,u,"next",e)}function u(e){y(i,r,o,a,u,"throw",e)}a(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,o.nY)("twoFactor",function(){var e=(0,c.q)().post,t=(0,d.r)(),n=(0,r.KR)({enabled:!1,lost_phone:!1,force_auth:!1,force_auth_mess:"",user_roles:[],force_auth_roles:[],custom_graphic:!1,custom_graphic_type:"upload",custom_graphic_url:"",custom_graphic_link:"",email_subject:"",email_sender:"",email_body:"",app_title:"",detect_woo:!1}),o=(0,r.KR)({}),i=(0,r.KR)([]),a=(0,r.KR)({}),u=(0,r.KR)({}),l=(0,r.KR)(0),s=(0,r.KR)([]),f=(0,r.KR)(""),v=(0,r.KR)(0),b=(0,r.KR)(!1),y=(0,r.KR)(!1),_=(0,r.KR)(""),w=(0,r.KR)(!1),k=(0,r.KR)(!1);function C(e){var t;n.value=e.model,o.value=null!==(t=e.misc)&&void 0!==t?t:{},i.value=e.all_roles,a.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,y.value=e.is_multisite,_.value=e.module_name,w.value=e.model.custom_graphic,k.value=n.value.user_roles.length>0}function S(){return L.apply(this,arguments)}function L(){return(L=h(m().m(function r(){return m().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,t.withLoading("save-two-factor-settings",function(){return e(a.value.save_settings,u.value.save_settings,n.value)});case 1:C(r.v);case 2:return r.a(2)}},r)}))).apply(this,arguments)}function E(){return(E=h(m().m(function r(){var o;return m().w(function(r){for(;;)switch(r.n){case 0:return o=p(p({},n.value),{},{enabled:!n.value.enabled}),r.n=1,t.withLoading("toggle-two-factor",h(m().m(function t(){return m().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e(a.value.save_settings,u.value.save_settings,o);case 1:setTimeout(function(){return location.reload()},500);case 2:return t.a(2)}},t)})));case 1:return r.a(2)}},r)}))).apply(this,arguments)}function R(){return(R=h(m().m(function r(o){return m().w(function(r){for(;;)switch(r.n){case 0:if("send"!==o){r.n=2;break}return r.n=1,t.withLoading("send-two-factor-test",function(){return e(a.value.send_test_email,u.value.send_test_email,{email_subject:n.value.email_subject,email_sender:n.value.email_sender,email_body:n.value.email_body})});case 1:r.n=4;break;case 2:return r.n=3,S();case 3:SUI.closeModal();case 4:return r.a(2)}},r)}))).apply(this,arguments)}"object"===g(window.two_fa)&&C(window.two_fa);var j=(0,r.EW)(function(){return!0===n.value.enabled&&!0===k.value});return{model:n,misc:o,all_roles:i,routes:a,nonces:u,count:l,notices:s,new_feature:f,count_checked_roles:v,is_woo_active:b,is_multisite:y,module_name:_,custom_graphic_state:w,isAuthActiveNotice:k,isActive:j,init:C,toggle:function(){return E.apply(this,arguments)},saveSettings:S,handleEmailTemplate:function(e){return R.apply(this,arguments)},clearCustomGraphicLink:function(){n.value.custom_graphic_link=""}}}),w=n(1512),k=n(4146),C=n(7786),S=n(8214),L=n(9409);function E(e){return function(e){if(Array.isArray(e))return R(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 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)||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 R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j={class:"sui-form-field"},x={key:0,class:"sui-label"},O={class:"sui-upload-image","aria-hidden":"true"},A={key:0,class:"flex-1 sui-with-button sui-with-button-icon"},T={key:0,class:"sui-upload-button"},P={key:1,class:"sui-upload-file ml-0"},X=["aria-label"],F={key:1,class:"sui-description"};const I={__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,o=L.A,i=(0,a.B)().__,u=e,l=n,s=(0,C.hRP)(u,"modelValue",l),c=(0,r.KR)(""),d=(0,r.KR)(""),f=function(){d.value="",c.value="",s.value=""},p=function(e){e&&e.valid?(s.value=e.url,d.value=e.url.split("/").pop(),c.value=""):e&&!e.valid&&(c.value=i("Invalid image file type."))},v=(0,r.EW)(function(){var e=s.value||u.defaultImage;return e?{backgroundImage:"url(".concat(e,")")}:{backgroundImage:"url()"}});return(0,r.wB)(function(){return s.value},function(e){e?"link"===u.mode&&(!function(e){if(!e||"string"!=typeof e)return!1;try{new URL(e)}catch(e){return!1}return!!/\.(jpg|jpeg|png|gif|bmp|webp|svg|ico|tiff)(\?.*)?$/i.test(e)||(!!e.startsWith("data:image/")||[/imgur\.com/,/cloudinary\.com/,/amazonaws\.com.*\.(jpg|jpeg|png|gif|webp)/i,/googleusercontent\.com/,/cdn\./].some(function(t){return t.test(e)}))}(e)?c.value=i("The provided link is not a valid image URL."):c.value=""):c.value=""}),function(t,n){return(0,r.uX)(),(0,r.CE)("div",j,[e.label?((0,r.uX)(),(0,r.CE)("label",x,(0,r.v_)(e.label),1)):(0,r.Q3)("",!0),(0,r.Lk)("div",{class:(0,r.C4)(["sui-upload sui-file-upload sui-file-browser gap-5px",{"sui-has_file":(0,r.R1)(s)||"link"===e.mode}])},[(0,r.Lk)("div",O,[n[1]||(n[1]=(0,r.Lk)("div",{class:"sui-image-mask"},null,-1)),(0,r.bo)((0,r.Lk)("div",{role:"button",class:"sui-image-preview",style:(0,r.Tr)(v.value)},null,4),[[(0,r.R1)(o),p]])]),"link"===e.mode?((0,r.uX)(),(0,r.CE)("div",A,[(0,r.bo)((0,r.Lk)("input",{type:"url","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.i9)(s)?s.value=e:null}),class:"sui-form-control wp-link-media"},null,512),[[r.Jo,(0,r.R1)(s)]]),(0,r.R1)(s)?((0,r.uX)(),(0,r.CE)("button",{key:0,class:"sui-button-icon",type:"button",onClick:f},E(n[2]||(n[2]=[(0,r.Lk)("span",{class:"sui-icon-close","aria-hidden":"true"},null,-1)])))):(0,r.Q3)("",!0)])):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.R1)(s)?(0,r.Q3)("",!0):(0,r.bo)(((0,r.uX)(),(0,r.CE)("button",T,[n[3]||(n[3]=(0,r.Lk)("span",{class:"sui-icon-upload-cloud","aria-hidden":"true"},null,-1)),(0,r.eW)(" "+(0,r.v_)((0,r.R1)(i)("Upload file")),1)])),[[(0,r.R1)(o),p]]),(0,r.R1)(s)?((0,r.uX)(),(0,r.CE)("div",P,[(0,r.Lk)("span",null,(0,r.v_)(d.value||(0,r.R1)(s).split("/").pop()),1),(0,r.Lk)("button",{onClick:f,"aria-label":(0,r.R1)(i)("Remove file")},E(n[4]||(n[4]=[(0,r.Lk)("span",{class:"sui-icon-close","aria-hidden":"true"},null,-1)])),8,X)])):(0,r.Q3)("",!0)],64))],2),e.description?((0,r.uX)(),(0,r.CE)("div",F,(0,r.v_)(e.description),1)):(0,r.Q3)("",!0),c.value&&"link"===e.mode?((0,r.uX)(),(0,r.Wv)(S.A,{key:2,type:"error"},{default:(0,r.k6)(function(){return[(0,r.Lk)("p",null,(0,r.v_)(c.value),1)]}),_:1})):(0,r.Q3)("",!0)])}}};var W=n(5571),U=n(682),G=n(6860),K={key:0,class:"sui-notice sui-notice-error"},V={class:"sui-notice-content"},B={class:"sui-notice-message"},M={key:1,class:"sui-notice sui-notice-success"},$={class:"sui-notice-content"},D={class:"sui-notice-message"},N=["href"],Q={key:2,class:"sui-notice sui-notice-warning"},H={class:"sui-notice-content"},q={class:"sui-notice-message"},Y={class:"sui-field-list"},z={class:"sui-field-list-header"},J={class:"sui-field-list-title"},Z={class:"sui-field-list-body"},ee=["id"],te=["innerHTML","for"],ne=["for"],re=["value","id"],oe={class:"sui-form-field"},ie={class:"sui-toggle"},ae={id:"force_auth_label",class:"sui-toggle-label"},ue={class:"sui-description sui-toggle-content"},le={id:"force_auth_roles",class:"sui-border-frame sui-toggle-content"},se=["id"],ce=["for"],de=["value","id"],fe={class:"sui-description"},pe={class:"sui-label"},ve={class:"sui-notice"},me={class:"sui-notice-content"},be={class:"sui-notice-message"},ye={key:0,class:"sui-upsell-row"},he={class:"min-w-full p-0 sui-upsell-notice"},ge=["href"],_e={class:"sui-field-list"},we={class:"sui-field-list-header"},ke={class:"sui-field-list-title"},Ce={class:"sui-field-list-body"},Se={class:"sui-field-list-item"},Le={class:"sui-field-list-item-label"},Ee={class:"w-48"},Re={class:"sui-border-frame"},je=["textContent"],xe=["href"],Oe=["src"],Ae=["href"],Te=["src"],Pe={class:"sui-form-field"},Xe={class:"sui-toggle"},Fe=["disabled"],Ie={for:"detect_woo",class:"sui-toggle-label"},We={key:0,class:"sui-notice margin-top-10 sui-description"},Ue={class:"sui-notice-content"},Ge={class:"sui-notice-message"},Ke=["href"],Ve={key:0,class:"sui-notice sui-notice-info"},Be={class:"sui-notice-content"},Me={class:"sui-notice-message"};const $e={__name:"two-fa-settings",setup:function(e){var t=(0,a.B)().__,n=(0,U.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)(),y=(0,o.bP)(m),h=y.model,g=y.all_roles,C=y.notices,S=y.is_woo_active,L=y.is_multisite,E=y.module_name,R=y.isActive,j=(0,r.KR)("google-authenticator"),x=(0,r.EW)(function(){var e=[{key:"user_roles",label:t("User Roles"),description:t("Choose the user roles you want to enable two-factor authentication for.")},{key:"force_auth",label:t("Force Authentication"),description:t("By default, two-factor authentication is optional for users. This setting forces users to activate two-factor.")},{key:"app_title",label:t("App Title"),description:t("Customise the title that appears in the Authenticator app for this website.")},{key:"custom_graphic",label:t("Custom Graphic"),description:t("By default, Defender's icon appears above the login fields. You can upload your own branding, or turn this feature off."),showPro: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}],A=(0,r.EW)(function(){switch(j.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""}}),T=(0,r.EW)(function(){switch(j.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""}}),P=(0,r.EW)(function(){switch(j.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""}}),X=function(){m.toggle(),b.trackFeature({event:h.value.enabled?"def_feature_deactivated":"def_feature_activated",data:{Feature:"Two-Factor Authentication","Triggered From":"Feature page"}}),h.value.enabled||b.trackFeature({event:"def_2fa_activated",data:{"Woocommerce 2FA":h.value.detect_woo?"Enabled":"Disabled","Force authentication":h.value.force_auth?"Enabled":"Disabled"}})};return function(e,n){return(0,r.uX)(),(0,r.Wv)(s.A,{modelValue:(0,r.R1)(h).enabled,"onUpdate:modelValue":n[11]||(n[11]=function(e){return(0,r.R1)(h).enabled=e}),feature:"two-fa",title:(0,r.R1)(E),settings:x.value,"save-action":"save-two-factor-settings","toggle-action":"toggle-two-factor",onSaveSettings:(0,r.R1)(m).saveSettings,onToggleFeature:X,"image-url":(0,r.R1)(p)("assets/img/disabled-module.png")},{"deactivate-message":(0,r.k6)(function(){return[(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("Beef up your website's security with two-factor authentication. Add an extra step in the login process so that users are required to enter a password and an app-generated passcode using their phone – the best protection against brute force attacks.")),1)]}),description:(0,r.k6)(function(){return[(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("Configure your two-factor authentication settings. Our recommendations are enabled by default.")),1),(0,r.R1)(C).length?((0,r.uX)(),(0,r.CE)("div",K,[(0,r.Lk)("div",V,[(0,r.Lk)("div",B,[n[12]||(n[12]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,r.R1)(C),function(e,t){return(0,r.uX)(),(0,r.CE)("span",{key:t},(0,r.v_)(e),1)}),128))])])])])):(0,r.Q3)("",!0),(0,r.R1)(R)?((0,r.uX)(),(0,r.CE)("div",M,[(0,r.Lk)("div",$,[(0,r.Lk)("div",D,[n[13]||(n[13]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,[(0,r.eW)((0,r.v_)((0,r.R1)(t)("Two-factor authentication is now active."))+" "+(0,r.v_)((0,r.R1)(t)("User roles with this feature enabled must visit their "))+" ",1),(0,r.Lk)("a",{id:"user-profile",href:(0,r.R1)(f)("profile.php#defender-security")},(0,r.v_)((0,r.R1)(t)("Profile page")),9,N),(0,r.eW)(" "+(0,r.v_)((0,r.R1)(t)("to finish setting up authentication.")),1)])])])])):((0,r.uX)(),(0,r.CE)("div",Q,[(0,r.Lk)("div",H,[(0,r.Lk)("div",q,[n[14]||(n[14]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("Two-factor authentication is currently inactive. Configure and save your settings to finish setup.")),1)])])]))]}),user_roles:(0,r.k6)(function(){return[(0,r.Lk)("div",Y,[(0,r.Lk)("div",z,[(0,r.Lk)("h3",J,(0,r.v_)((0,r.R1)(t)("User role")),1)]),(0,r.Lk)("div",Z,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,r.R1)(g),function(e,t){return(0,r.uX)(),(0,r.CE)("div",{class:"sui-field-list-item",key:t,id:t},[(0,r.Lk)("label",{innerHTML:e,class:"sui-field-list-item-label",for:"toggle_"+t},null,8,te),(0,r.Lk)("label",{for:"toggle_"+t,class:"sui-toggle"},[(0,r.bo)((0,r.Lk)("input",{type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.R1)(h).user_roles=e}),value:t,id:"toggle_"+t},null,8,re),[[r.lH,(0,r.R1)(h).user_roles]]),n[15]||(n[15]=(0,r.Lk)("span",{class:"sui-toggle-slider"},null,-1))],8,ne)],8,ee)}),128))])])]}),force_auth:(0,r.k6)(function(){return[(0,r.Lk)("div",oe,[(0,r.Lk)("label",ie,[(0,r.bo)((0,r.Lk)("input",{role:"presentation","onUpdate:modelValue":n[1]||(n[1]=function(e){return(0,r.R1)(h).force_auth=e}),type:"checkbox",name:"force_auth",class:"toggle-checkbox",id:"force-auth-toggle"},null,512),[[r.lH,(0,r.R1)(h).force_auth]]),n[16]||(n[16]=(0,r.Lk)("span",{class:"sui-toggle-slider"},null,-1)),(0,r.Lk)("span",ae,(0,r.v_)((0,r.R1)(t)("Force users to log in with two-factor authentication")),1)]),(0,r.Lk)("span",ue,(0,r.v_)((0,r.R1)(t)("Note: Users will be forced to set up two-factor when they next login.")),1),(0,r.bo)((0,r.Lk)("div",le,[(0,r.Lk)("strong",null,(0,r.v_)((0,r.R1)(t)("User Roles")),1),(0,r.Lk)("ul",null,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,r.R1)(g),function(e,t){return(0,r.bo)(((0,r.uX)(),(0,r.CE)("li",{key:t,id:"force_role_".concat(t)},[(0,r.Lk)("label",{class:"sui-checkbox",for:"toggle_force_"+t},[(0,r.bo)((0,r.Lk)("input",{type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=function(e){return(0,r.R1)(h).force_auth_roles=e}),value:t,id:"toggle_force_"+t},null,8,de),[[r.lH,(0,r.R1)(h).force_auth_roles]]),n[17]||(n[17]=(0,r.Lk)("span",{"aria-hidden":"true"},null,-1)),(0,r.Lk)("span",null,(0,r.v_)(e),1)],8,ce)],8,se)),[[r.aG,(0,r.R1)(h).user_roles.includes(t)]])}),128))]),(0,r.Lk)("strong",null,(0,r.v_)((0,r.R1)(t)("Custom warning message")),1),(0,r.bo)((0,r.Lk)("textarea",{class:"sui-form-control","onUpdate:modelValue":n[3]||(n[3]=function(e){return(0,r.R1)(h).force_auth_mess=e}),name:"force_auth_mess"},null,512),[[r.Jo,(0,r.R1)(h).force_auth_mess]]),(0,r.Lk)("span",fe,(0,r.v_)((0,r.R1)(t)("Note: This is shown in the users Profile area indicating they must use two-factor authentication.")),1)],512),[[r.aG,!0===(0,r.R1)(h).force_auth]])])]}),app_title:(0,r.k6)(function(){return[(0,r.Lk)("label",pe,(0,r.v_)((0,r.R1)(t)("Custom Title")),1),(0,r.bo)((0,r.Lk)("input",{"onUpdate:modelValue":n[4]||(n[4]=function(e){return(0,r.R1)(h).app_title=e}),class:"sui-form-control sui-input-md"},null,512),[[r.Jo,(0,r.R1)(h).app_title]])]}),custom_graphic:(0,r.k6)(function(){return[(0,r.bF)(k.A,{"model-value":!(0,r.R1)(i)&&(0,r.R1)(h).custom_graphic,"onUpdate:modelValue":n[5]||(n[5]=function(e){return(0,r.R1)(h).custom_graphic=e}),disabled:(0,r.R1)(i),label:(0,r.R1)(t)("Enable custom graphics above login fields"),feature:"custom_graphic"},null,8,["model-value","disabled","label"]),!0!==(0,r.R1)(h).custom_graphic||(0,r.R1)(i)?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.Wv)(w.A,{key:0,modelValue:(0,r.R1)(h).custom_graphic_type,"onUpdate:modelValue":n[8]||(n[8]=function(e){return(0,r.R1)(h).custom_graphic_type=e}),tabs:O,slug:"wpdef-custom-graphics"},{upload:(0,r.k6)(function(){return[(0,r.bF)(I,{label:(0,r.R1)(t)("Custom Graphic"),description:(0,r.R1)(t)("For best results use a 168x168px JPG or PNG."),modelValue:(0,r.R1)(h).custom_graphic_url,"onUpdate:modelValue":n[6]||(n[6]=function(e){return(0,r.R1)(h).custom_graphic_url=e}),id:"custom_graphic","default-image":(0,r.R1)(h).custom_graphic_url},null,8,["label","description","modelValue","default-image"])]}),link:(0,r.k6)(function(){return[(0,r.bF)(I,{mode:"link",label:(0,r.R1)(t)("Custom Graphic"),description:(0,r.R1)(t)("For best results use a 168x168px JPG or PNG."),modelValue:(0,r.R1)(h).custom_graphic_link,"onUpdate:modelValue":n[7]||(n[7]=function(e){return(0,r.R1)(h).custom_graphic_link=e}),id:"custom_graphic","default-image":(0,r.R1)(h).custom_graphic_link},null,8,["label","description","modelValue","default-image"])]}),no:(0,r.k6)(function(){return[(0,r.Lk)("div",ve,[(0,r.Lk)("div",me,[(0,r.Lk)("div",be,[n[18]||(n[18]=(0,r.Lk)("span",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("No icon will be displayed on two-factor form.")),1)])])])]}),_:1},8,["modelValue"]))]}),custom_graphic_upsell:(0,r.k6)(function(){return[(0,r.R1)(i)?((0,r.uX)(),(0,r.CE)("div",ye,[(0,r.Lk)("div",he,[(0,r.Lk)("p",null,[(0,r.eW)((0,r.v_)((0,r.R1)(t)("Remove our branding and whitelabel two-factor authentication with Defender Pro. This feature is included in a WPMU DEV membership with 24/7 support and lots of handy site management tools."))+" ",1),n[19]||(n[19]=(0,r.Lk)("br",null,null,-1)),(0,r.Lk)("a",{id:"upgrade-graphic",class:"premium-button sui-button sui-button-purple",target:"_blank",href:(0,r.R1)(v)("defender_2fa_customgraphic_upsell")},(0,r.v_)((0,r.R1)(c)),9,ge)])])])):(0,r.Q3)("",!0)]}),emails:(0,r.k6)(function(){return[(0,r.Lk)("div",_e,[(0,r.Lk)("div",we,[(0,r.Lk)("h3",ke,(0,r.v_)((0,r.R1)(t)("Email")),1)]),(0,r.Lk)("div",Ce,[(0,r.Lk)("div",Se,[(0,r.Lk)("label",Le,(0,r.v_)((0,r.R1)(t)("Fallback email one time password")),1),n[20]||(n[20]=(0,r.Lk)("button",{type:"button",class:"sui-button-icon","data-modal-open":"modal-lost-phone-email-config","data-modal-mask":"false","data-esc-close":"true"},[(0,r.Lk)("i",{class:"sui-icon-pencil","aria-hidden":"true"})],-1))])])])]}),app_download:(0,r.k6)(function(){return[(0,r.Lk)("div",Ee,[(0,r.bF)(W.A,{id:"two-fa-auth-select",modelValue:j.value,"onUpdate:modelValue":n[9]||(n[9]=function(e){return j.value=e}),options:[{value:"google-authenticator",label:(0,r.R1)(t)("Google Authenticator")},{value:"microsoft-authenticator",label:(0,r.R1)(t)("Microsoft Authenticator")},{value:"authy",label:(0,r.R1)(t)("Authy")}],searchable:!1,width:"220px"},null,8,["modelValue","options"])]),(0,r.Lk)("div",Re,[(0,r.Lk)("span",{class:"sui-description margin-bottom-10 no-margin-top",textContent:(0,r.v_)(P.value)},null,8,je),(0,r.Lk)("a",{id:"ios-link",href:A.value,target:"_blank"},[(0,r.Lk)("img",{src:(0,r.R1)(p)("assets/img/ios-download.svg")},null,8,Oe)],8,xe),(0,r.Lk)("a",{id:"android-link",href:T.value,target:"_blank",class:"ml-1"},[(0,r.Lk)("img",{class:(0,r.C4)({grayscale:(0,r.R1)(G.Bb)()}),src:(0,r.R1)(p)("assets/img/android-download.svg")},null,10,Te)],8,Ae)])]}),woocommerce:(0,r.k6)(function(){return[(0,r.Lk)("div",Pe,[(0,r.Lk)("label",Xe,[(0,r.bo)((0,r.Lk)("input",{type:"checkbox","onUpdate:modelValue":n[10]||(n[10]=function(e){return(0,r.R1)(h).detect_woo=e}),id:"detect_woo",disabled:!(0,r.R1)(S),name:"detect_woo"},null,8,Fe),[[r.lH,(0,r.R1)(h).detect_woo]]),n[22]||(n[22]=(0,r.Lk)("span",{class:"sui-toggle-slider"},null,-1)),(0,r.Lk)("span",Ie,(0,r.v_)((0,r.R1)(t)("Enable two-factor authentication for WooCommerce")),1),(0,r.R1)(S)?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",We,[(0,r.Lk)("div",Ue,[(0,r.Lk)("div",Ge,[n[21]||(n[21]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("WooCommerce must be active to use this feature.")),1)])])]))])])]}),active_users:(0,r.k6)(function(){return[(0,r.Lk)("a",{id:"view-users",target:"_blank",href:(0,r.R1)(f)("users.php?wpdef_two_fa=enabled")},(0,r.v_)((0,r.R1)(t)("View users")),9,Ke),(0,r.eW)(" "+(0,r.v_)((0,r.R1)(t)("who have enabled this feature."))+" ",1),(0,r.R1)(L)?((0,r.uX)(),(0,r.CE)("div",Ve,[(0,r.Lk)("div",Be,[(0,r.Lk)("div",Me,[n[23]||(n[23]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)((0,r.R1)(t)("For multisite installations, you will see a list of all users who have enabled two-factor authentication on all subsites on the network Users screen.")),1)])])])):(0,r.Q3)("",!0)]}),_:1},8,["modelValue","title","settings","onSaveSettings","image-url"])}}},De=$e;var Ne=n(9919),Qe=n(1289),He={class:"sui-modal sui-modal-lg"},qe={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"},Ye={class:"sui-box",role:"document"},ze={class:"sui-box-header"},Je={class:"sui-box-title",id:"modal-lost-phone-email-config-title"},Ze={class:"sui-actions-right"},et={id:"close-email-modal",class:"sui-button-icon sui-button-float--right","data-modal-close":""},tt={class:"sui-screen-reader-text"},nt={class:"sui-box-body"},rt={id:"modal-lost-phone-email-config-desc"},ot={class:"sui-row"},it={class:"sui-col"},at={class:"sui-form-field"},ut={class:"sui-label"},lt={class:"sui-col"},st={class:"sui-form-field"},ct={class:"sui-label"},dt={class:"sui-row"},ft={class:"sui-col"},pt={class:"sui-label"},vt={class:"sui-row"},mt={class:"sui-col"},bt={class:"sui-label"},yt={class:"sui-tag"},ht=["textContent"],gt={class:"sui-tag"},_t=["textContent"],wt={class:"sui-box-footer"},kt={class:"sui-flex-child-right"},Ct={id:"cancel-email-edit",type:"button",class:"sui-button sui-button-ghost","data-modal-close":""},St={class:"sui-actions-right"};const Lt={__name:"email-config-modal",setup:function(e){var t=(0,a.B)().__,n=_(),i=(0,o.bP)(n).model;return function(e,o){return(0,r.uX)(),(0,r.CE)("div",He,[(0,r.Lk)("div",qe,[(0,r.Lk)("div",Ye,[(0,r.Lk)("div",ze,[(0,r.Lk)("h3",Je,(0,r.v_)((0,r.R1)(t)("Edit Email")),1),(0,r.Lk)("div",Ze,[(0,r.Lk)("button",et,[o[5]||(o[5]=(0,r.Lk)("i",{class:"sui-icon-close sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",tt,(0,r.v_)((0,r.R1)(t)("Close this dialog.")),1)])])]),(0,r.Lk)("form",{method:"post",onSubmit:o[4]||(o[4]=(0,r.D$)(function(e){return(0,r.R1)(n).handleEmailTemplate("save")},["prevent"]))},[(0,r.Lk)("div",nt,[(0,r.Lk)("p",rt,(0,r.v_)((0,r.R1)(t)("This email sends a temporary passcode when the user can't access their phone.")),1),(0,r.Lk)("div",ot,[(0,r.Lk)("div",it,[(0,r.Lk)("div",at,[(0,r.Lk)("label",ut,(0,r.v_)((0,r.R1)(t)("Subject")),1),(0,r.bo)((0,r.Lk)("input",{name:"subject","onUpdate:modelValue":o[0]||(o[0]=function(e){return(0,r.R1)(i).email_subject=e}),class:"sui-form-control",type:"text",id:"email_subject"},null,512),[[r.Jo,(0,r.R1)(i).email_subject]])])]),(0,r.Lk)("div",lt,[(0,r.Lk)("div",st,[(0,r.Lk)("label",ct,(0,r.v_)((0,r.R1)(t)("Sender")),1),(0,r.bo)((0,r.Lk)("input",{name:"sender","onUpdate:modelValue":o[1]||(o[1]=function(e){return(0,r.R1)(i).email_sender=e}),class:"sui-form-control",type:"text",id:"email_sender"},null,512),[[r.Jo,(0,r.R1)(i).email_sender]])])])]),(0,r.Lk)("div",dt,[(0,r.Lk)("div",ft,[(0,r.Lk)("label",pt,(0,r.v_)((0,r.R1)(t)("Body")),1),(0,r.bo)((0,r.Lk)("textarea",{class:"sui-form-control","onUpdate:modelValue":o[2]||(o[2]=function(e){return(0,r.R1)(i).email_body=e}),name:"body",rows:"8",id:"email_body"},null,512),[[r.Jo,(0,r.R1)(i).email_body]])])]),(0,r.Lk)("div",vt,[(0,r.Lk)("div",mt,[(0,r.Lk)("label",bt,(0,r.v_)((0,r.R1)(t)("Available variables")),1),(0,r.Lk)("span",yt,[(0,r.Lk)("strong",{textContent:(0,r.v_)((0,r.R1)(t)("{{passcode}}"))},null,8,ht)]),(0,r.Lk)("span",gt,[(0,r.Lk)("strong",{textContent:(0,r.v_)((0,r.R1)(t)("{{display_name}}"))},null,8,_t)])])])]),(0,r.Lk)("div",wt,[(0,r.Lk)("div",kt,[(0,r.Lk)("button",Ct,(0,r.v_)((0,r.R1)(t)("Cancel")),1)]),(0,r.Lk)("div",St,[(0,r.bF)(Ne.A,{id:"save-email-template",action:"save-template","css-class":"sui-button"},{default:(0,r.k6)(function(){return[(0,r.eW)((0,r.v_)((0,r.R1)(t)("Save Template")),1)]}),_:1}),(0,r.bF)(Qe.A,{variant:"blue",action:"send-two-factor-test",onClick:o[3]||(o[3]=function(e){return(0,r.R1)(n).handleEmailTemplate("send")}),label:(0,r.R1)(t)("Send Test")},null,8,["label"])])])],32)])])])}}};var Et=n(6885);const Rt={__name:"two-fa",setup:function(e){var t=_(),n=(0,a.B)(),u=n._n,l=n.__,s=(0,U.X)().is_free,c=(0,o.bP)(t),d=c.model,f=c.count,p=c.custom_graphic_state,v=c.count_checked_roles,m=c.module_name,b=(0,Et.O)(),y=(0,r.EW)(function(){return{mainValue:f.value,mainLabel:u("User enabled authentication","Users enabled authentication",f.value),listItems:[{label:l("User roles"),value:v.value},{label:l("Custom Graphic"),value:s.value?l("Pro"):!1===p.value?l("Inactive"):l("Active"),tag:!0,tagClass:s.value?"sui-tag-pro":!1===p.value?"sui-tag-brown":"sui-tag-blue"}]}});return(0,r.KC)(function(){var e;null!==(e=window)&&void 0!==e&&null!==(e=e.two_fa)&&void 0!==e&&e.antibot&&b.init(window.two_fa.antibot)}),function(e,t){return(0,r.uX)(),(0,r.Wv)(i.A,{title:(0,r.R1)(m),"page-class":"two-fa",feature:"two-fa","doc-link":"?utm_source=defender&utm_medium=plugin&utm_campaign=defender_2fa_docs#two-factor-authentication",summary:y.value,"show-summary":(0,r.R1)(d).enabled},{default:(0,r.k6)(function(){return[(0,r.bF)(De),(0,r.bF)(Lt)]}),_:1},8,["title","summary","show-summary"])}}};var jt=(0,r.Ef)(Rt);jt.use((0,o.Ey)()),jt.mount("#defender")},3498(e,t,n){n.d(t,{A:()=>y});var r=n(9726),o=n(5592),i=n(682),a=n(6965),u=n(4073);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=["innerHTML"],d={key:0},f={class:"sui-footer-nav"},p=["id","href"],v={class:"sui-footer-social"},m=["id","href"],b={class:"sui-screen-reader-text"};const y={__name:"app-footer",setup:function(e){var t=(0,o.B)().__,n=(0,i.X)(),s=n.is_free,y=n.whitelabel,h=(0,u.I)().wpmuDevHubUrl,g=(0,r.EW)(function(){return y.value.footer_text}),_=(0,r.EW)(function(){return y.value.change_footer}),w=[{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")}],k=[{url:h(),text:t("The Hub")},{url:"https://wpmudev.com/projects/category/plugins/",text:t("Plugins")},{url:h("support/"),text:t("Support")},{url:h("community/"),text:t("Community")}],C=[{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")}],S=(0,r.EW)(function(){return[].concat(l(s.value?C:k),w)}),L=[{url:"https://www.facebook.com/wpmudev",icon:"sui-icon-social-facebook",name:t("Facebook")},{url:"https://twitter.com/wpmudev",icon:"sui-icon-social-twitter",name:t("Twitter")},{url:"https://www.instagram.com/wpmu_dev/",icon:"sui-icon-instagram",name:t("Instagram")}];return function(e,t){return(0,r.uX)(),(0,r.CE)("div",null,[(0,r.Lk)("div",{class:"sui-footer",innerHTML:g.value},null,8,c),_.value?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",d,[(0,r.Lk)("ul",f,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(S.value,function(e){return(0,r.uX)(),(0,r.CE)("li",{key:e.url},[(0,r.Lk)("a",{id:(0,r.R1)(a.S)().stringToId(e.text),href:e.url,target:"_blank"},(0,r.v_)(e.text),9,p)])}),128))]),(0,r.Lk)("ul",v,[((0,r.uX)(),(0,r.CE)(r.FK,null,(0,r.pI)(L,function(e){return(0,r.Lk)("li",{key:e.url},[(0,r.Lk)("a",{id:e.name,href:e.url,target:"_blank"},[(0,r.Lk)("i",{class:(0,r.C4)(e.icon),"aria-hidden":"true"},null,2),(0,r.Lk)("span",b,(0,r.v_)(e.name),1)],8,m)])}),64))])]))])}}}},9879(e,t,n){n.d(t,{A:()=>$e});var r=n(9726),o=n(682),i=n(5945),a=n(1751),u=n(9919);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof u?r:u,c=Object.create(l.prototype);return s(c,"_invoke",function(n,r,o){var i,u,l,s=0,c=o||[],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,a}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,v=i[2];n>3?(o=v===r)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,f.v=r,f.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,u=0))}if(o||n>1)return a;throw d=!0,r}return function(o,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||(o="next"),t=i[o]){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 '"+o+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=u.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,s(p,"constructor",d),s(d,"constructor",c),c.displayName="GeneratorFunction",s(d,o,"GeneratorFunction"),s(p),s(p,o,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:v}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}s=function(e,t,n,r){function i(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},s(e,t,n,r)}function c(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,u,"next",e)}function u(e){c(i,r,o,a,u,"throw",e)}a(void 0)})}}var f={key:0,class:"defender-rate-notice sui-notice sui-notice-info"},p={class:"sui-notice-content"},v={class:"sui-notice-message"},m=["innerHTML"];const b={__name:"rate-notice",props:{message:String,type:String},setup:function(e){var t=(0,a.q)(),n=(0,r.KR)(!0),o=(0,r.EW)(function(){return defender.misc.rating.text}),i=(0,r.EW)(function(){return defender.misc.rating.type}),s=(0,r.EW)(function(){return defender.misc.rating.routes}),c=(0,r.EW)(function(){return defender.misc.rating.nonces}),b=(0,r.EW)(function(){return defender.misc.rating.repo_link}),y=(0,r.EW)(function(){return defender.misc.rating.rate_button}),h=(0,r.EW)(function(){return defender.misc.rating.postpone_button}),g=(0,r.EW)(function(){return defender.misc.rating.dismiss_button}),_=(0,r.EW)(function(){return defender.misc.rating.location}),w=function(){var e=d(l().m(function e(){return l().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.post(s.value.handle_notice,c.value.handle_notice,{prompt:i.value,location:_.value});case 1:n.value=!1,window.open(b.value,"_blank");case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),k=function(){var e=d(l().m(function e(){var r,o,a;return l().w(function(e){for(;;)switch(e.n){case 0:return r="resolved_tweaks"===i.value,o=r?s.value.refuse_notice:s.value.postpone_notice,a=r?c.value.refuse_notice:c.value.postpone_notice,e.n=1,t.post(o,a,{prompt:i.value,location:_.value});case 1:n.value=!1;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),C=function(){var e=d(l().m(function e(){return l().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.post(s.value.refuse_notice,c.value.refuse_notice,{prompt:i.value,location:_.value});case 1:n.value=!1;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return function(e,t){return n.value?((0,r.uX)(),(0,r.CE)("div",f,[(0,r.Lk)("div",p,[t[0]||(t[0]=(0,r.Lk)("div",{class:"sui-notice-logo defender"},[(0,r.Lk)("span")],-1)),(0,r.Lk)("div",v,[(0,r.Lk)("div",{innerHTML:o.value},null,8,m),(0,r.bF)((0,r.R1)(u.A),{id:"rate-defender","css-class":"sui-button-blue",onClick:w},{default:(0,r.k6)(function(){return[(0,r.eW)((0,r.v_)(y.value),1)]}),_:1}),(0,r.bF)((0,r.R1)(u.A),{id:"postpone-notice",onClick:k,"css-class":"sui-button-ghost dismiss"},{default:(0,r.k6)(function(){return[(0,r.eW)((0,r.v_)(h.value),1)]}),_:1}),(0,r.Lk)("a",{href:"#",id:"refuse-notice",onClick:(0,r.D$)(C,["prevent"]),class:"refuse"},(0,r.v_)(g.value),1)])])])):(0,r.Q3)("",!0)}}},y=b;var h=n(5592),g={key:0,class:"sui-notice sui-notice-info"},_={class:"sui-notice-content"},w={class:"sui-notice-message"},k={class:"m-0"},C=["innerHTML"];const S={__name:"opcache-notice",setup:function(e){var t=(0,h.B)().__,n=(0,r.KR)(defender.opcache_save_comments),o=(0,r.KR)(defender.opcache_message);return function(e,i){return"disabled"===n.value?((0,r.uX)(),(0,r.CE)("div",g,[(0,r.Lk)("div",_,[(0,r.Lk)("div",w,[(0,r.Lk)("h3",k,(0,r.v_)((0,r.R1)(t)("Enable OPcache Save Comments")),1),(0,r.Lk)("p",{innerHTML:o.value},null,8,C)])])])):(0,r.Q3)("",!0)}}};var L=n(6874),E=n(6860),R=n(5571),j={class:"sui-row-with-sidenav"},x={role:"navigation",class:"sui-sidenav"},O={class:"sui-vertical-tabs sui-sidenav-hide-md"},A=["id"],T=["id","data-tab","onClick"],P={key:0,class:"wd-new-feature-dot"},X={key:1,class:"sui-tag sui-tag-pro right-10px top-10px"},F={class:"sui-sidenav-hide-lg"},I=["id"];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=e,o=(0,r.KR)(n.defaultTab||(null===(t=n.tabs[0])||void 0===t?void 0:t.id));(0,r.wB)(o,function(){var e=(0,E.nN)("admin.php?page="+i()+"&view="+o.value),t=window.location.hash;void 0!==t&&(e+=t),history.replaceState({},null,e),(0,E.gk)()});var i=function(){return new URLSearchParams(window.location.search).get("page")};return(0,r.sV)(function(){var e=new URLSearchParams(window.location.search).get("view");e&&n.tabs.some(function(t){return t.id===e})?o.value=e:!n.defaultTab&&n.tabs.length>0&&(o.value=n.tabs[0].id)}),function(t,n){return(0,r.uX)(),(0,r.CE)("section",j,[(0,r.Lk)("div",x,[(0,r.Lk)("ul",O,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.tabs,function(e){return(0,r.uX)(),(0,r.CE)("li",{key:e.id,class:(0,r.C4)(["sui-vertical-tab",{current:o.value===e.id,"heading pl-5px":e.heading}]),id:"tab-".concat(e.id)},[e.heading?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.eW)((0,r.v_)(e.heading),1)],64)):((0,r.uX)(),(0,r.CE)("a",{key:1,id:"tab-link-".concat(e.id),href:"#",role:"button","data-tab":e.id,onClick:(0,r.D$)(function(t){return n=e.id,o.value=n,void history.replaceState({},null,(0,E.nN)("admin.php?page="+i()+"&view="+n));var n},["prevent"])},[(0,r.eW)((0,r.v_)(e.label)+" ",1),e.showDot?((0,r.uX)(),(0,r.CE)("span",P)):e.showPro?((0,r.uX)(),(0,r.CE)("span",X,(0,r.v_)((0,r.R1)(E.__)("Pro")),1)):e.badge?((0,r.uX)(),(0,r.CE)("span",{key:2,class:(0,r.C4)(["sui-tag",[e.badgeColor,{"sui-tag-grey":o.value===e.id}]])},(0,r.v_)(e.badge),3)):e.icon?((0,r.uX)(),(0,r.CE)("span",{key:3,class:(0,r.C4)(e.icon),"aria-hidden":"true"},null,2)):(0,r.Q3)("",!0)],8,T))],10,A)}),128))]),(0,r.Lk)("div",F,[(0,r.bF)(R.A,{"has-field":!1,class:"margin-bottom-30",modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return o.value=e}),options:e.tabs.map(function(e){return{label:e.label,value:e.id}})},null,8,["modelValue","options"])])]),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.tabs,function(n){return(0,r.uX)(),(0,r.CE)(r.FK,{key:n.id},[n.heading||o.value!==n.id?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,r.C4)({"sui-box":e.boxed}),id:"".concat(n.id,"-content")},[(0,r.RG)(t.$slots,n.id,{tab:n},function(){return[(0,r.Lk)("p",null,"Content for "+(0,r.v_)(n.label),1)]})],10,I))],64)}),128))])}}};var U=n(5072),G=n.n(U),K=n(4896),V={insert:"head",singleton:!1};G()(K.A,V);K.A.locals;const B=(0,n(6262).A)(W,[["__scopeId","data-v-5c3e3e2b"]]);var M=n(6965);function $(e){return function(e){if(Array.isArray(e))return D(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 D(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)?D(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 D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var N={class:"sui-list-detail flex items-center"},Q=["id","href"];const H={__name:"unlock-pro",props:{feature:{type:String,required:!0},campaignUrl:{type:String,required:!0}},setup:function(e){var t=(0,h.B)().__;return function(n,o){return(0,r.uX)(),(0,r.CE)("span",N,[(0,r.Lk)("a",{id:"unlock-pro-".concat((0,r.R1)(M.S)().stringToId(e.feature)),href:e.campaignUrl,target:"_blank",class:"defender-upgrade-text"},(0,r.v_)((0,r.R1)(t)("Unlock with Pro")),9,Q),((0,r.uX)(),(0,r.CE)("svg",{class:(0,r.C4)({"grayscale-invert":(0,r.R1)(E.Bb)()}),width:"36",height:"26",viewBox:"0 0 36 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$(o[0]||(o[0]=[(0,r.Lk)("rect",{x:"0.5",y:"0.5",width:"35",height:"25",rx:"12.5",fill:"#F9E1FF"},null,-1),(0,r.Lk)("rect",{x:"0.5",y:"0.5",width:"35",height:"25",rx:"12.5",stroke:"#8D00B1"},null,-1),(0,r.Lk)("path",{d:"M14.6133 12V10.8047C14.6289 10.3438 14.7305 9.91406 14.918 9.51562C15.1055 9.10938 15.3516 8.75781 15.6562 8.46094C15.9609 8.16406 16.3125 7.92969 16.7109 7.75781C17.1172 7.58594 17.5469 7.5 18 7.5C18.4609 7.5 18.8906 7.58594 19.2891 7.75781C19.6953 7.92969 20.0508 8.16406 20.3555 8.46094C20.6602 8.75781 20.9062 9.10938 21.0938 9.51562C21.2734 9.91406 21.375 10.3438 21.3984 10.8047V12H21.75C21.9609 12 22.1367 12.0742 22.2773 12.2227C22.4258 12.3633 22.5 12.5391 22.5 12.75V17.25C22.5 17.4609 22.4258 17.6406 22.2773 17.7891C22.1367 17.9297 21.9609 18 21.75 18H14.25C14.0391 18 13.8594 17.9297 13.7109 17.7891C13.5703 17.6406 13.5 17.4609 13.5 17.25V12.75C13.5 12.5391 13.5703 12.3633 13.7109 12.2227C13.8594 12.0742 14.0391 12 14.25 12H14.6133ZM16.5234 12H19.4766V10.8047C19.4766 10.3906 19.332 10.0391 19.043 9.75C18.7539 9.45312 18.4062 9.30469 18 9.30469C17.5938 9.30469 17.2461 9.45312 16.957 9.75C16.668 10.0391 16.5234 10.3906 16.5234 10.8047V12Z",fill:"#8D00B1"},null,-1)])),2))])}}};var q=n(1289);function Y(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var J=["id"],Z={class:"sui-summary-segment"},ee=["id"],te={class:"sui-summary-large"},ne=["data-tooltip"],re={key:1,class:"sui-summary-percent"},oe={class:"sui-summary-sub"},ie={key:2,class:"sui-summary-detail"},ae={key:3,class:"sui-summary-sub"},ue={key:0,class:"sui-summary-segment"},le={class:"sui-list"},se=["id"],ce={class:"sui-list-label"},de=["data-tooltip"],fe={class:"sui-list-detail"},pe=["id","href"],ve={key:0,"aria-hidden":"true",class:"sui-icon-loader sui-loading"},me={key:1,class:"sui-tag sui-tag-brown"},be={key:3,"aria-hidden":"true",class:"sui-icon-check-tick sui-success"},ye={key:0,"aria-hidden":"true",class:"sui-icon-loader sui-loading"},he={key:1,"aria-hidden":"true",class:"sui-icon-check-tick sui-success"},ge={key:2,class:"sui-tag sui-tag-brown"},_e={key:1,class:"sui-summary-segment"};const we={__name:"sui-summary",props:{feature:{type:String,default:""},summary:{type:Object,default:function(){return{}}},small:{type:Boolean,default:!1},title:{type:String,default:""},customContent:{type:Boolean,default:!1}},emits:["action"],setup:function(e,t){var n=t.emit,o=e,i=n,a=(0,r.EW)(function(){return o.feature?o.feature+"-summary":o.title?(0,E.Y$)(o.title):(0,E.$C)("summary")});return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)(["sui-box sui-summary",{"sui-summary-sm":e.small,"sui-rebranded":(0,r.R1)(E.QN)&&(0,r.R1)(E.dC),"sui-unbranded":(0,r.R1)(E.QN)&&!(0,r.R1)(E.dC)}]),id:a.value},[(0,r.RG)(t.$slots,"first-segment",{},function(){return[(0,r.Lk)("div",{class:"sui-summary-image-space","aria-hidden":"true",style:(0,r.Tr)((0,r.R1)(E.D0))},null,4),(0,r.Lk)("div",Z,[(0,r.Lk)("div",{class:"sui-summary-details",id:e.summary.mainId||(0,r.R1)(E.Y$)(e.summary.mainLabel)},[e.customContent?(0,r.RG)(t.$slots,"custom-content",{key:0}):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.Lk)("span",te,(0,r.v_)(e.summary.mainValue),1),e.summary.tooltip?((0,r.uX)(),(0,r.CE)("span",{key:0,"data-tooltip":e.summary.tooltip,class:"sui-tooltip sui-tooltip-top-center sui-tooltip-constrained"},[n[0]||(n[0]=(0,r.eW)(" ",-1)),e.summary.icon?((0,r.uX)(),(0,r.CE)("span",{key:0,class:(0,r.C4)([e.summary.icon,e.summary.iconColor]),"aria-hidden":"true"},null,2)):(0,r.Q3)("",!0)],8,ne)):(0,r.Q3)("",!0),e.summary.maxValue?((0,r.uX)(),(0,r.CE)("span",re,"/"+(0,r.v_)(e.summary.maxValue),1)):(0,r.Q3)("",!0),(0,r.Lk)("span",oe,(0,r.v_)(e.summary.mainLabel),1),e.summary.subValue?((0,r.uX)(),(0,r.CE)("span",ie,(0,r.v_)(e.summary.subValue),1)):(0,r.Q3)("",!0),e.summary.subLabel?((0,r.uX)(),(0,r.CE)("span",ae,(0,r.v_)(e.summary.subLabel),1)):(0,r.Q3)("",!0)],64))],8,ee)])]}),e.summary.listItems&&e.summary.listItems.length?((0,r.uX)(),(0,r.CE)("div",ue,[(0,r.Lk)("ul",le,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.summary.listItems,function(e){return(0,r.uX)(),(0,r.CE)("li",{key:e.label,id:e.id||(0,r.R1)(E.Y$)(e.label),class:"sui-list-item"},[(0,r.Lk)("span",ce,[(0,r.eW)((0,r.v_)(e.label)+" ",1),e.tooltip?((0,r.uX)(),(0,r.CE)("span",{key:0,"data-tooltip":e.tooltip,class:"sui-tooltip sui-tooltip-constrained sui-tooltip-top-center"},Y(n[1]||(n[1]=[(0,r.Lk)("span",{"aria-hidden":"true",class:"ml-2 sui-icon-info sui-sm"},null,-1)])),8,de)):(0,r.Q3)("",!0)]),(0,r.Lk)("span",fe,[e.button?((0,r.uX)(),(0,r.Wv)(q.A,{key:0,id:e.button.id,label:e.button.label||e.value,type:e.button.type||"button",variant:e.button.variant||"default",size:e.button.size||"small",disabled:e.button.disabled||!1,icon:e.button.icon,action:e.button.action||"default",onClick:function(t){return function(e){var t,n;i("action",{action:(null===(t=e.button)||void 0===t?void 0:t.action)||"default",data:(null===(n=e.button)||void 0===n?void 0:n.data)||{},item:e,label:e.label})}(e)}},null,8,["id","label","type","variant","size","disabled","icon","action","onClick"])):e.upsellUrl?((0,r.uX)(),(0,r.Wv)(H,{key:1,"campaign-url":e.upsellUrl,feature:e.label},null,8,["campaign-url","feature"])):e.link?((0,r.uX)(),(0,r.CE)("a",{key:2,id:"summary-item-link-".concat(e.id||(0,r.R1)(E.Y$)(e.label)),href:e.link,target:"_blank"},["loading"===e.value?((0,r.uX)(),(0,r.CE)("i",ve)):"disabled"===e.value?((0,r.uX)(),(0,r.CE)("span",me,(0,r.v_)((0,r.R1)(E.__)("Disabled")),1)):e.tag?((0,r.uX)(),(0,r.CE)("span",{key:2,class:(0,r.C4)(["sui-tag",e.tagClass||"sui-tag-error"])},(0,r.v_)(e.value),3)):"check"===e.value?((0,r.uX)(),(0,r.CE)("i",be)):((0,r.uX)(),(0,r.CE)(r.FK,{key:4},[(0,r.eW)((0,r.v_)(e.value),1)],64))],8,pe)):((0,r.uX)(),(0,r.CE)(r.FK,{key:3},["loading"===e.value?((0,r.uX)(),(0,r.CE)("i",ye)):"check"===e.value?((0,r.uX)(),(0,r.CE)("i",he)):"disabled"===e.value?((0,r.uX)(),(0,r.CE)("span",ge,(0,r.v_)((0,r.R1)(E.__)("Disabled")),1)):e.tag?((0,r.uX)(),(0,r.CE)("span",{key:3,class:(0,r.C4)(["sui-tag",e.tagClass||"sui-tag-error"])},(0,r.v_)(e.value),3)):((0,r.uX)(),(0,r.CE)(r.FK,{key:4},[(0,r.eW)((0,r.v_)(e.value),1)],64))],64))])],8,se)}),128))])])):(0,r.Q3)("",!0),t.$slots.segment?((0,r.uX)(),(0,r.CE)("div",_e,[(0,r.RG)(t.$slots,"segment")])):(0,r.Q3)("",!0)],10,J)}}};var ke=n(3498),Ce=n(810),Se=n(3824),Le=n(6885),Ee=n(2688),Re=n(4916);function je(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return xe(s,"_invoke",function(n,r,o){var i,u,l,s=0,c=o||[],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,a}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,v=i[2];n>3?(o=v===r)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,f.v=r,f.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,u=0))}if(o||n>1)return a;throw d=!0,r}return function(o,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||(o="next"),t=i[o]){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 '"+o+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function u(){}function l(){}function s(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(xe(t={},r,function(){return this}),t),d=s.prototype=u.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,xe(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,xe(d,"constructor",s),xe(s,"constructor",l),l.displayName="GeneratorFunction",xe(s,o,"GeneratorFunction"),xe(d),xe(d,o,"Generator"),xe(d,r,function(){return this}),xe(d,"toString",function(){return"[object Generator]"}),(je=function(){return{w:i,m:f}})()}function xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}xe=function(e,t,n,r){function i(t,n){xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},xe(e,t,n,r)}function Oe(e){return function(e){if(Array.isArray(e))return Ae(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 Ae(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)?Ae(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 Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Te(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function Pe(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Te(i,r,o,a,u,"next",e)}function u(e){Te(i,r,o,a,u,"throw",e)}a(void 0)})}}var Xe={key:0,class:"sui-notice"},Fe={class:"sui-notice-content items-center"},Ie=["innerHTML"],We=["placeholder"];const Ue={__name:"antibot-global-notice",setup:function(e){var t=(0,h.B)(),n=t.__,o=t.sprintf,i=(0,Se.k)(),a=(0,Ce.bP)(i).isSiteConnected,u=(0,Le.O)(),l=(0,Re.w)(),s=(0,r.KR)(""),c=(0,r.KR)(!1),d=(0,r.EW)(function(){return 0===s.value.trim().length});function f(e){0!==s.value.length||" "!==e.key&&"Tab"!==e.key||e.preventDefault()}var p=(0,r.EW)(function(){var e;return(null===(e=u.misc)||void 0===e?void 0:e.should_show_global_notice)&&!c.value});function v(){return m.apply(this,arguments)}function m(){return(m=Pe(je().m(function e(){return je().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u.dismissGlobalNotice();case 1:l.trackFeature({event:"Antibot Survey",data:{"Notice Action":"Closed"}}),c.value=!0;case 2:return e.a(2)}},e)}))).apply(this,arguments)}function b(){return y.apply(this,arguments)}function y(){return(y=Pe(je().m(function e(){var t;return je().w(function(e){for(;;)switch(e.n){case 0:if(t=s.value.trim()){e.n=1;break}return s.value="",e.a(2);case 1:return document.documentElement.style.overflow="hidden",e.n=2,u.sendFeedback({feedback:t});case 2:_(),c.value=!0,s.value="",document.documentElement.style.overflow="";case 3:return e.a(2)}},e)}))).apply(this,arguments)}var g=(0,r.EW)(function(){return a.value?o(n("%1$sThe AntiBot Firewall just got better!%2$s Stop bots from draining your server resources. %3$sEnable it now%4$s for instant protection. Got feedback? %5$sTell us what you think%6$s."),"<strong>","</strong>",'<a href="#" id="wpdef-enable-feature">',"</a>",'<a href="#" id="wpdef-feedback-feature">',"</a>"):o(n("%1$sThe AntiBot Firewall just got better!%2$s Stop bots from draining your server resources. %3$sConnect your site%4$s to enable it for free. Got feedback? %5$sTell us what you think%6$s."),"<strong>","</strong>",'<a href="#" id="wpdef-connect-site">',"</a>",'<a href="#" id="wpdef-feedback-feature">',"</a>")}),_=function(){var e;null!==(e=window.SUI)&&void 0!==e&&e.closeModal&&window.SUI.closeModal()};function w(e){return k.apply(this,arguments)}function k(){return(k=Pe(je().m(function e(t){var n;return je().w(function(e){for(;;)switch(e.n){case 0:if("wpdef-enable-feature"!==t.target.id){e.n=2;break}return t.preventDefault(),e.n=1,u.activate({redirect_to_feature_page:!0});case 1:return l.trackFeature({event:"Antibot Survey",data:{"Notice Action":"Enable Antibot"}}),e.n=2,u.dismissGlobalNotice();case 2:"wpdef-connect-site"===t.target.id&&(t.preventDefault(),l.trackFeature({event:"Antibot Survey",data:{"Notice Action":"Connect Site"}}),i.initHubConnectionFlow({page:"antibot-notice"})),"wpdef-feedback-feature"===t.target.id&&(t.preventDefault(),n=document.body,window.SUI.openModal("antibot-feedback-confirm",n));case 3:return e.a(2)}},e)}))).apply(this,arguments)}return(0,r.sV)(function(){document.addEventListener("click",w)}),(0,r.xo)(function(){document.removeEventListener("click",w)}),function(e,t){return p.value?((0,r.uX)(),(0,r.CE)("div",Xe,[(0,r.Lk)("div",Fe,[t[2]||(t[2]=(0,r.Lk)("span",{class:"sui-icon-defender mr-10px mt-2px","aria-hidden":"true"},null,-1)),(0,r.Lk)("div",{class:"sui-notice-message text-gray-500",innerHTML:g.value},null,8,Ie),(0,r.Lk)("button",{id:"notice-antibot-survey-close",class:"sui-button-icon bg-widget","data-notice-close":"notice-antibot-survey",onClick:v},Oe(t[1]||(t[1]=[(0,r.Lk)("span",{class:"sui-icon-close","aria-hidden":"true"},null,-1)])))]),(0,r.bF)(Ee.A,{id:"antibot-feedback-confirm",size:"sm",title:(0,r.R1)(n)("Help us improve AntiBot Firewall"),description:(0,r.R1)(n)("We're always working to make Defender better. Tell us what's holding you back from enabling AntiBot — your feedback shapes future updates."),"show-cancel-btn":!1,"footer-alignment":"center",onClose:_},{"header-content":(0,r.k6)(function(){return[(0,r.bo)((0,r.Lk)("textarea",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return s.value=e}),placeholder:(0,r.R1)(n)("Share your thoughts or suggestions…"),id:"content-antibot-feedback",class:"sui-form-control","aria-labelledby":"label-antibot-feedback","aria-describedby":"description-antibot-feedback",rows:"4",onKeydown:f},null,40,We),[[r.Jo,s.value]])]}),footer:(0,r.k6)(function(){return[(0,r.bF)(q.A,{type:"button",action:"send-feedback",label:(0,r.R1)(n)("Share feedback"),"loading-text":(0,r.R1)(n)("Sending feedback..."),variant:"blue",onClick:b,disabled:d.value},null,8,["label","loading-text","disabled"])]}),_:1},8,["title","description"])])):(0,r.Q3)("",!0)}}},Ge=Ue;var Ke=["id"],Ve={class:"sui-header"},Be={class:"sui-header-title"},Me={key:5};const $e={__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"},smallSummary:{type:Boolean,default:!1}},emits:["action"],setup:function(e,t){var n=t.emit,a=(0,o.X)(),u=a.maybeHighContrast,l=a.showTrackingModal,s=a.ratingIsDisplayed,c=function(e){n("action",e)};return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)(["sui-wrap",(0,r.R1)(u)()]),id:e.feature},[(0,r.Lk)("div",{class:(0,r.C4)(e.pageClass)},[(0,r.Lk)("div",Ve,[(0,r.Lk)("h1",Be,(0,r.v_)(e.title),1),(0,r.RG)(t.$slots,"header-actions"),e.docLink?((0,r.uX)(),(0,r.Wv)(i.A,{key:0,link:e.docLink},null,8,["link"])):(0,r.Q3)("",!0)]),(0,r.RG)(t.$slots,"notices"),(0,r.R1)(s)?((0,r.uX)(),(0,r.Wv)(y,{key:0})):(0,r.Q3)("",!0),(0,r.bF)(S),(0,r.bF)(Ge),(0,r.R1)(l)?((0,r.uX)(),(0,r.Wv)(L.A,{key:1})):(0,r.Q3)("",!0),e.summary&&e.showSummary?((0,r.uX)(),(0,r.Wv)(we,{key:2,feature:e.feature,summary:e.summary,small:e.smallSummary,onAction:c},{"first-segment":(0,r.k6)(function(){return[(0,r.RG)(t.$slots,"first-summary-segment")]}),_:3},8,["feature","summary","small"])):(0,r.RG)(t.$slots,"summary",{key:3}),e.tabs?((0,r.uX)(),(0,r.Wv)(B,{key:4,tabs:e.tabs,"default-tab":e.defaultTab,boxed:e.boxed},(0,r.eX)({_:2},[(0,r.pI)(e.tabs,function(e){return{name:e.id,fn:(0,r.k6)(function(){return[(0,r.RG)(t.$slots,e.id)]})}})]),1032,["tabs","default-tab","boxed"])):((0,r.uX)(),(0,r.CE)("div",Me,[(0,r.RG)(t.$slots,"default")])),n[0]||(n[0]=(0,r.Lk)("div",{class:"clearfix"},null,-1)),n[1]||(n[1]=(0,r.Lk)("div",{class:"padding-bottom-30"},null,-1))],2),(0,r.bF)(ke.A),(0,r.RG)(t.$slots,"modals")],10,Ke)}}}},5945(e,t,n){n.d(t,{A:()=>u});var r=n(9726),o=n(5592),i={key:0,class:"sui-actions-right"},a=["href"];const u={__name:"doc-link",props:{link:{type:String,required:!0}},setup:function(e){var t=e,n=(0,o.B)().__,u=(0,r.KR)(defender.whitelabel.hide_doc_link),l=(0,r.EW)(function(){return defender.wpmudev_url+t.link});return function(e,t){return!1===u.value?((0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("a",{id:"doc-link",href:l.value,target:"_blank",class:"sui-button sui-button-ghost"},[t[0]||(t[0]=(0,r.Lk)("i",{class:"sui-icon-academy","aria-hidden":"true"},null,-1)),(0,r.eW)(" "+(0,r.v_)((0,r.R1)(n)("Documentation")),1)],8,a)])):(0,r.Q3)("",!0)}}}},2150(e,t,n){n.d(t,{A:()=>m});var r=n(9726),o=n(6860),i=["id"],a={class:"sui-settings-label"},u={key:0,class:"sui-tag sui-tag-pro"},l={key:1,class:"sui-tag sui-tag-green"},s={key:0,class:"sui-description"};const c={__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},customClass:{type:String,default:""},asColumn:{type:Boolean,default:!1}},setup:function(e){return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)(["sui-box-settings-row sui-flushed",[{"opacity-50 pointer-events-none":e.showPro&&e.showOpacity,"flex-col":e.asColumn},e.customClass]]),id:(0,r.R1)(o.Y$)(e.label+"-row")},[e.label||t.$slots.label?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,r.C4)({"sui-box-settings-col-1":!e.asColumn})},[(0,r.Lk)("div",a,[(0,r.eW)((0,r.v_)(e.label)+" ",1),(0,r.RG)(t.$slots,"label"),e.showPro?((0,r.uX)(),(0,r.CE)("span",u,(0,r.v_)((0,r.R1)(o.__)("Pro")),1)):(0,r.Q3)("",!0),e.showNew?((0,r.uX)(),(0,r.CE)("span",l,(0,r.v_)((0,r.R1)(o.__)("New")),1)):(0,r.Q3)("",!0)]),e.description||t.$slots.description?((0,r.uX)(),(0,r.CE)("span",s,[(0,r.eW)((0,r.v_)(e.description||"")+" ",1),(0,r.RG)(t.$slots,"description")])):(0,r.Q3)("",!0)],2)):(0,r.Q3)("",!0),(0,r.Lk)("div",{class:(0,r.C4)({"sui-box-settings-col-2":!e.asColumn})},[(0,r.RG)(t.$slots,"default")],2)],10,i)}}};var d=n(5072),f=n.n(d),p=n(9135),v={insert:"head",singleton:!1};f()(p.A,v);p.A.locals;const m=(0,n(6262).A)(c,[["__scopeId","data-v-22cc36f6"]])},7545(e,t,n){n.d(t,{A:()=>k});var r=n(9726),o=n(7786),i=n(1289),a=n(2150),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"},y={class:"sui-box-title"},h={class:"sui-actions-right"},g=["innerHTML"],_={key:0,class:"sui-box-footer"},w={class:"sui-actions-right"};const k={__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:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","save-settings","toggle-feature"],setup:function(e,t){var n=t.emit,k=(0,u.B)().__,C=(0,l.p)(),S=C.maybeHideBranding,L=C.whitelabelHeroImage,E=e,R=n,j=(0,o.hRP)(E,"modelValue",R),x="settings-".concat(E.feature,"-").concat(E.modelValue?"enabled":"disabled");return function(t,n){return(0,r.uX)(),(0,r.CE)(r.FK,null,[!1===(0,r.R1)(j)&&e.toggleAction?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"sui-box",id:x},[(0,r.Lk)("div",s,[(0,r.Lk)("h2",c,(0,r.v_)(e.title),1),(0,r.Lk)("div",d,[(0,r.RG)(t.$slots,"actions-right")])]),(0,r.Lk)("div",f,[(0,r.R1)(S)?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("img",{key:0,src:e.imageUrl,class:"sui-image",alt:"Feature image"},null,8,p)),(0,r.R1)(S)&&(0,r.R1)(L)?((0,r.uX)(),(0,r.CE)("img",{key:1,src:(0,r.R1)(L),class:"sui-image wd-whitelabel-custom-branding-logo",alt:"Custom Feature image"},null,8,v)):(0,r.Q3)("",!0),(0,r.Lk)("div",m,[(0,r.RG)(t.$slots,"deactivate-message"),(0,r.bF)(i.A,{label:(0,r.R1)(k)("Activate"),variant:"blue",action:e.toggleAction,type:"button",disabled:e.disabled,onClick:n[0]||(n[0]=function(t){return R("toggle-feature",!e.modelValue)})},null,8,["label","action","disabled"])])])])):((0,r.uX)(),(0,r.CE)("div",{key:1,class:"sui-box",id:x},[(0,r.Lk)("div",b,[(0,r.Lk)("h3",y,(0,r.v_)(e.title),1),(0,r.Lk)("div",h,[(0,r.RG)(t.$slots,"actions-right")])]),(0,r.Lk)("div",{class:(0,r.C4)(["sui-box-body",e.layoutClass])},[(0,r.RG)(t.$slots,"description"),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.settings,function(e){return(0,r.uX)(),(0,r.Wv)(a.A,{id:e.key,key:e.key,label:e.label,description:"html"===e.descType?"":e.description,"show-pro":e.showPro,"show-opacity":e.showOpacity,"show-new":e.showNew,"custom-class":e.customClass},(0,r.eX)({default:(0,r.k6)(function(){return[(0,r.RG)(t.$slots,e.key)]}),_:2},["html"===e.descType?{name:"description",fn:(0,r.k6)(function(){return[(0,r.Lk)("div",{innerHTML:e.description},null,8,g)]}),key:"0"}:void 0]),1032,["id","label","description","show-pro","show-opacity","show-new","custom-class"])}),128)),e.toggleAction?((0,r.uX)(),(0,r.Wv)(a.A,{key:0,label:(0,r.R1)(k)("Deactivate"),id:"deactivate-".concat(e.feature),description:(0,r.R1)(k)("If you no longer want to use this feature you can turn it off at any time.")},{default:(0,r.k6)(function(){return[(0,r.bF)(i.A,{label:(0,r.R1)(k)("Deactivate"),variant:"ghost",icon:"sui-icon-power-on-off",action:e.toggleAction,type:"button",onClick:n[1]||(n[1]=function(t){return R("toggle-feature",!e.modelValue)})},null,8,["label","action"])]}),_:1},8,["label","id","description"])):(0,r.Q3)("",!0)],2),(0,r.RG)(t.$slots,"default"),e.saveAction?((0,r.uX)(),(0,r.CE)("div",_,[(0,r.Lk)("div",w,[(0,r.bF)(i.A,{label:(0,r.R1)(k)("Save Changes"),variant:"blue",icon:"sui-icon-save",action:e.saveAction,type:"button",disabled:e.disabled,onClick:n[2]||(n[2]=function(e){return R("save-settings")})},null,8,["label","action","disabled"])])])):(0,r.Q3)("",!0)])),(0,r.RG)(t.$slots,"modals")],64)}}}},1512(e,t,n){n.d(t,{A:()=>f});var r=n(9726),o=n(7786),i={class:"sui-tabs sui-side-tabs"},a={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,o.hRP)(f,"modelValue",p),m=(0,r.EW)(function(){return"".concat(f.slug,"-tabs")}),b=function(e){return e?"".concat(f.slug,"-").concat(e,"-tab"):""},y=function(e){return e?"".concat(f.slug,"-").concat(e,"-content"):""};return function(t,n){return(0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("div",a,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.tabs,function(o){return(0,r.uX)(),(0,r.CE)(r.FK,{key:o.value},[(0,r.Lk)("button",{type:"button",role:"tab",id:b(o.id||o.value),class:(0,r.C4)(["sui-tab-item",{active:e.modelValue===o.value}]),"aria-controls":y(o.id||o.value),"aria-selected":e.modelValue===o.value?"true":"false",tabindex:e.modelValue===o.value?"0":"-1",onClick:function(e){return t.$emit("update:modelValue",o.value)}},(0,r.v_)(o.label),11,u),(0,r.bo)((0,r.Lk)("input",{type:"radio",name:m.value,value:o.value,class:"sui-screen-reader-text","aria-label":o.label,"aria-hidden":"true",checked:e.modelValue===o.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.i9)(v)?v.value=e:null})},null,8,l),[[r.XL,(0,r.R1)(v)]])],64)}),128))]),(0,r.Lk)("div",s,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.tabs,function(n){return(0,r.uX)(),(0,r.CE)(r.FK,{key:n.value},[n.hideContent?(0,r.Q3)("",!0):((0,r.uX)(),(0,r.CE)("div",{key:0,role:"tabpanel",id:y(n.id||n.value),class:(0,r.C4)(["sui-tab-content",{active:e.modelValue===n.value}]),"aria-labelledby":b(n.id||n.value),tabindex:0,hidden:e.modelValue!==n.value},[!1!==n.hasFrame?((0,r.uX)(),(0,r.CE)("div",d,[(0,r.RG)(t.$slots,n.value)])):(0,r.RG)(t.$slots,n.value,{key:1})],10,c))],64)}),128))])])}}}},9919(e,t,n){n.d(t,{A:()=>u});var r=n(9726);function o(e){return o="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},o(e)}var i=["type","disabled"],a={class:"sui-loading-text"};const u={__name:"submit-button2",props:{cssClass:String,disabled:Boolean,type:String,is_icon:Boolean,doing_ajax:[Boolean,String],action:String},emits:["click"],setup:function(e){var t=e,n=(0,r.nI)().proxy,u=null==n?void 0:n.$store,l=(0,r.EW)(function(){var e,n=["sui-button"];return!0===t.is_icon&&(n=[]),t.cssClass&&n.push(t.cssClass),void 0===t.doing_ajax?("object"===o(null==u?void 0:u.state.doing_ajax)&&t.action&&-1!==u.state.doing_ajax.indexOf(t.action)||!0===(null==u?void 0:u.state.doing_ajax))&&(e=!0):e=t.doing_ajax,!0===e&&n.push("sui-button-onload"),n}),s=(0,r.EW)(function(){return!0===t.disabled}),c=(0,r.EW)(function(){return""===t.type?"submit":t.type});return function(e,t){return(0,r.uX)(),(0,r.CE)("button",{type:c.value,onClick:t[0]||(t[0]=function(t){return e.$emit("click")}),class:(0,r.C4)(l.value),disabled:s.value},[(0,r.Lk)("span",a,[(0,r.RG)(e.$slots,"default")]),t[1]||(t[1]=(0,r.Lk)("i",{class:"sui-icon-loader sui-loading","aria-hidden":"true"},null,-1))],10,i)}}}},1289(e,t,n){n.d(t,{A:()=>s});var r=n(9726),o=n(7476),i=n(6965),a={class:"sui-loading-text"},u={class:"sui-button-text-default"},l={class:"sui-button-text-onload"};const s={__name:"sui-button",props:{id:{type:String,default:""},label:{type:String,default:""},type:{type:String,default:"button"},variant:{type:String,default:"auto"},icon:{type:String,default:""},action:{type:String,default:""},disabled:{type:Boolean,default:!1},loadingText:{type:String,default:""},customClass:{type:String,default:""},onlyIcon:{type:[Boolean,String],default:!1},href:{type:String,default:""}},emits:["click"],setup:function(e){var t=(0,o.r)(),n=(0,i.S)().stringToId,s=e,c=(0,r.EW)(function(){return s.icon||(s.action.includes("save")?"sui-icon-save":"")}),d=(0,r.EW)(function(){return"auto"===s.variant?"submit"===s.type?"sui-button-blue":"sui-button-ghost":{blue:"sui-button-blue",ghost:"sui-button-ghost",red:"sui-button-red",gray:"",purple:"sui-button-purple",upsell:"wpdefui-hub-upsell-button"}[s.variant]}),f=(0,r.EW)(function(){return s.action&&t.isLoading(s.action)}),p=(0,r.EW)(function(){var e=[s.onlyIcon?"sui-button-icon":"sui-button",d.value];return f.value&&e.push(s.loadingText?"sui-button-onload-text":"sui-button-onload"),s.customClass&&e.push(s.customClass),e}),v=(0,r.EW)(function(){return s.id?s.id:s.action?n(s.action):n(s.label)});return function(t,n){return(0,r.uX)(),(0,r.Wv)((0,r.$y)(e.href?"a":"button"),(0,r.v6)({id:v.value,type:e.href?void 0:e.type,href:e.href,class:p.value,disabled:e.href?void 0:f.value||e.disabled,"aria-live":e.loadingText?"polite":void 0,onClick:n[0]||(n[0]=function(e){return t.$emit("click")})},t.$attrs),{default:(0,r.k6)(function(){return[e.loadingText?((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.Lk)("span",u,[c.value?((0,r.uX)(),(0,r.CE)("span",{key:0,class:(0,r.C4)(c.value),"aria-hidden":"true"},null,2)):(0,r.Q3)("",!0),(0,r.eW)(" "+(0,r.v_)(e.label)+" ",1),(0,r.RG)(t.$slots,"default")]),(0,r.Lk)("span",l,[n[2]||(n[2]=(0,r.Lk)("span",{class:"sui-icon-loader sui-loading","aria-hidden":"true"},null,-1)),(0,r.eW)(" "+(0,r.v_)(e.loadingText),1)])],64)):((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.Lk)("span",a,[c.value?((0,r.uX)(),(0,r.CE)("span",{key:0,class:(0,r.C4)(c.value),"aria-hidden":"true"},null,2)):(0,r.Q3)("",!0),(0,r.eW)(" "+(0,r.v_)(e.label)+" ",1),(0,r.RG)(t.$slots,"default")]),n[1]||(n[1]=(0,r.Lk)("span",{class:"sui-icon-loader sui-loading","aria-hidden":"true"},null,-1))],64))]}),_:3},16,["id","type","href","class","disabled","aria-live"])}}}},2688(e,t,n){n.d(t,{A:()=>p});var r=n(9726);function o(e){return o="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},o(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=["id","aria-labelledby","aria-describedby"],u={class:"sui-box",role:"document"},l={key:0,type:"button","data-modal-close":"",class:"sui-button-icon sui-button-float--right"},s={class:"sui-screen-reader-text"},c=["id"],d=["id","innerHTML"],f=["id"];const p={__name:"sui-modal",props:{id:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,default:""},size:{type:String,default:"md",validator:function(e){return["sm","md","lg","xl"].includes(e)}},closeText:{type:String,default:"Close this dialog"},cancelText:{type:String,default:"Cancel"},showCancel:{type:Boolean,default:!0},showCancelBtn:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},footerAlignment:{type:String,default:"separated",validator:function(e){return["separated","center","right"].includes(e)}},isScan:{type:Boolean,default:!1},topSpacing:{type:String,default:"60",validator:function(e){return["40","60","80","100"].includes(e)}}},setup:function(e){var t=e,n=(0,r.Ht)(),o=(0,r.EW)(function(){return t.size?"sui-modal-".concat(t.size):""}),p=(0,r.EW)(function(){switch(t.footerAlignment){case"separated":default:return"sui-content-separated";case"center":return"sui-content-center";case"right":return"sui-content-right"}});return function(t,v){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)(["sui-modal",o.value])},[(0,r.Lk)("div",{id:e.id,role:"dialog",class:"sui-modal-content","aria-modal":"true","aria-labelledby":"".concat(e.id,"-title"),"aria-describedby":"".concat(e.id,"-desc")},[(0,r.Lk)("div",u,[(0,r.Lk)("div",{class:(0,r.C4)(["sui-box-header",i({},"sui-flatten sui-content-center sui-spacing-top--".concat(e.topSpacing),!e.isScan)])},[e.showCancel?((0,r.uX)(),(0,r.CE)("button",l,[v[0]||(v[0]=(0,r.Lk)("i",{class:"sui-icon-close sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",s,(0,r.v_)(e.closeText),1)])):(0,r.Q3)("",!0),(0,r.Lk)("h3",{id:"modal-title-".concat(e.id),class:(0,r.C4)(["sui-box-title",{"sui-lg":!e.isScan}])},(0,r.v_)(e.title),11,c),e.description?((0,r.uX)(),(0,r.CE)("p",{key:1,id:"modal-description-".concat(e.id),class:"sui-description",innerHTML:e.description},null,8,d)):(0,r.Q3)("",!0),(0,r.RG)(t.$slots,"header-content")],2),(0,r.RG)(t.$slots,"default"),e.showFooter?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,r.C4)(["sui-box-footer sui-flatten",p.value])},[e.showCancel&&e.showCancelBtn?((0,r.uX)(),(0,r.CE)("button",{key:0,id:"cancel-".concat(e.id),type:"button","data-modal-close":"",class:"sui-button sui-button-ghost"},(0,r.v_)(e.cancelText),9,f)):(0,r.Q3)("",!0),(0,r.R1)(n).footer?(0,r.RG)(t.$slots,"footer",{key:1}):(0,r.Q3)("",!0)],2)):(0,r.Q3)("",!0)])],8,a)],2)}}}},8214(e,t,n){n.d(t,{A:()=>s});var r=n(9726),o={class:"sui-notice-content"},i={class:"sui-notice-message"},a={key:0,class:"sui-notice-actions"},u=["aria-label"],l={class:"sui-screen-reader-text"};const s={__name:"sui-notice",props:{type:{type:String,default:"",validator:function(e){return["","info","success","warning","error","purple"].includes(e)}},dismissible:{type:Boolean,default:!1},dismissLabel:{type:String,default:"Close this notice"}},emits:["dismiss"],setup:function(e,t){var n=t.emit,s=e,c=n,d=(0,r.EW)(function(){return{info:"sui-icon-info",success:"sui-icon-check-tick",warning:"sui-icon-info",error:"sui-icon-info"}[s.type]||"sui-icon-info"}),f=function(){c("dismiss")};return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)(["sui-notice","sui-notice sui-notice-".concat(e.type)])},[(0,r.Lk)("div",o,[(0,r.Lk)("div",i,[(0,r.Lk)("i",{"aria-hidden":"true",class:(0,r.C4)(["sui-notice-icon sui-md",d.value])},null,2),(0,r.Lk)("p",null,[(0,r.RG)(t.$slots,"default")])]),e.dismissible?((0,r.uX)(),(0,r.CE)("div",a,[(0,r.Lk)("button",{class:"sui-button-icon",onClick:f,"aria-label":e.dismissLabel},[n[0]||(n[0]=(0,r.Lk)("i",{class:"sui-icon-check","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",l,(0,r.v_)(e.dismissLabel),1)],8,u)])):(0,r.Q3)("",!0)])],2)}}}},5571(e,t,n){n.d(t,{A:()=>O});var r=n(9726),o=n(7786),i=n(682),a=n(1669),u=n.n(a);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"),r=n.length?n:"body";"function"==typeof jQuery.fn.SUIselect2&&jQuery(e).SUIselect2({dropdownParent:r}),jQuery(e).on("select2:select",function(){var n,r=new Event("change",{bubbles:!0,cancelable:!0});e.dispatchEvent(r),null===(n=t.value)||void 0===n||n.call(t,e)}),jQuery(e).on("select2:unselect",function(){var t=new Event("change",{bubbles:!0,cancelable:!0});e.dispatchEvent(t)})},updated:function(e){var t=jQuery(e);t.hasClass("select2-hidden-accessible")&&t.SUIselect2("destroy");var n=t.closest(".sui-modal-content"),r=n.length?n:"body";"function"==typeof t.SUIselect2&&t.SUIselect2({dropdownParent:r})},unmounted:function(e){var t=jQuery(e);t.hasClass("select2-hidden-accessible")&&t.SUIselect2("destroy")}};var s=n(6965);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,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=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v=["for"],m={key:1,class:"sui-field-prefix"},b={key:2,class:"relative"},y=["id","multiple","data-placeholder","data-minimum-results-for-search","data-width","disabled"],h={key:0,value:""},g=["value"],_=["id","name","multiple","data-placeholder","data-minimum-results-for-search","data-width","disabled"],w={key:0,value:""},k=["value"],C={key:4,class:"sui-error-message"},S={key:5,class:"sui-description"};const L={__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:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,i=l,a=e,u=n,c=(0,r.EW)(function(){return a.id||(0,s.S)().stringToId(a.label)||"select-".concat(Math.random().toString(36).substr(2,9))}),p=(0,r.EW)(function(){return(Array.isArray(a.options)?a.options:Object.entries(a.options).map(function(e){var t=f(e,2);return d({},t[0],t[1])})).map(function(e){if("string"==typeof e)return{value:e,label:e};if(void 0!==e.value||void 0!==e.label)return e;var t=f(Object.entries(e)[0]||[],2);return{value:t[0],label:t[1]}})}),L=(0,o.hRP)(a,"modelValue",u);return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)({"sui-form-field":e.hasField,"sui-form-field-error":e.hasError})},[e.label?((0,r.uX)(),(0,r.CE)("label",{key:0,class:"sui-label",for:c.value},(0,r.v_)(e.label),9,v)):(0,r.Q3)("",!0),e.prefix?((0,r.uX)(),(0,r.CE)("span",m,(0,r.v_)(e.prefix),1)):(0,r.Q3)("",!0),e.icon?((0,r.uX)(),(0,r.CE)("div",b,[n[2]||(n[2]=(0,r.Lk)("span",{class:"prefix-icon sui-icon-web-globe-world"},null,-1)),(0,r.bo)(((0,r.uX)(),(0,r.CE)("select",{id:c.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.i9)(L)?L.value=e:null}),class:(0,r.C4)(["sui-select",e.customClass]),multiple:e.multiple,"data-placeholder":e.placeholder,"data-minimum-results-for-search":e.searchable?0:"Infinity","data-width":e.width||"100%",disabled:e.disabled},[!e.multiple&&e.placeholder?((0,r.uX)(),(0,r.CE)("option",h)):(0,r.Q3)("",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(p.value,function(e){return(0,r.uX)(),(0,r.CE)("option",{key:e.value,value:e.value},(0,r.v_)(e.label),9,g)}),128))],10,y)),[[r.u1,(0,r.R1)(L)],[(0,r.R1)(i)]])])):(0,r.bo)(((0,r.uX)(),(0,r.CE)("select",{key:3,id:c.value,name:e.name,"onUpdate:modelValue":n[1]||(n[1]=function(e){return(0,r.i9)(L)?L.value=e:null}),class:(0,r.C4)(["sui-select",e.customClass]),multiple:e.multiple,"data-placeholder":e.placeholder,"data-minimum-results-for-search":e.searchable?0:"Infinity","data-width":e.width||"100%",disabled:e.disabled},[!e.multiple&&e.placeholder?((0,r.uX)(),(0,r.CE)("option",w)):(0,r.Q3)("",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(p.value,function(e){return(0,r.uX)(),(0,r.CE)("option",{key:e.value,value:e.value},(0,r.v_)(e.label),9,k)}),128))],10,_)),[[r.u1,(0,r.R1)(L)],[(0,r.R1)(i)]]),e.hasError&&e.errorMessage?((0,r.uX)(),(0,r.CE)("p",C,(0,r.v_)(e.errorMessage),1)):(0,r.Q3)("",!0),e.helperMessage?((0,r.uX)(),(0,r.CE)("p",S,(0,r.v_)(e.helperMessage),1)):(0,r.Q3)("",!0),(0,r.RG)(t.$slots,"default")],2)}}};var E=n(5072),R=n.n(E),j=n(620),x={insert:"head",singleton:!1};R()(j.A,x);j.A.locals;const O=(0,n(6262).A)(L,[["__scopeId","data-v-6455ea41"]])},4146(e,t,n){n.d(t,{A:()=>p});var r=n(9726),o=n(7786),i=["for"],a=["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,o.hRP)(p,"modelValue",v);return function(t,n){return(0,r.uX)(),(0,r.CE)("div",{class:(0,r.C4)({"sui-form-field":e.hasField})},[(0,r.Lk)("label",{for:"toggle-".concat(e.feature),class:"sui-toggle mb-10px"},[(0,r.bo)((0,r.Lk)("input",{id:"toggle-".concat(e.feature),type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,r.i9)(m)?m.value=e:null}),disabled:e.disabled,name:e.name},null,8,a),[[r.lH,(0,r.R1)(m)]]),n[1]||(n[1]=(0,r.Lk)("span",{class:"sui-toggle-slider","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",u,[(0,r.eW)((0,r.v_)(e.label)+" ",1),(0,r.RG)(t.$slots,"label-addon")]),e.description?((0,r.uX)(),(0,r.CE)("span",{key:0,class:"sui-description text-left",innerHTML:e.description},null,8,l)):(0,r.Q3)("",!0)],8,i),e.disabled&&e.disabledNotice?((0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",c,[(0,r.Lk)("div",d,[n[2]||(n[2]=(0,r.Lk)("i",{class:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("p",null,(0,r.v_)(e.disabledNotice),1)])])])):(0,r.Q3)("",!0),(0,r.R1)(m)&&!e.disabled&&t.$slots.default?((0,r.uX)(),(0,r.CE)("div",f,[(0,r.RG)(t.$slots,"default")])):(0,r.Q3)("",!0)],2)}}}},6874(e,t,n){n.d(t,{A:()=>C});var r=n(9726),o=n(5592),i=n(8261),a=n(1751),u=n(9919);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof u?r:u,c=Object.create(l.prototype);return s(c,"_invoke",function(n,r,o){var i,u,l,s=0,c=o||[],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,a}};function p(n,r){for(u=n,l=r,t=0;!d&&s&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,v=i[2];n>3?(o=v===r)&&(l=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,f.v=r,f.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,u=0))}if(o||n>1)return a;throw d=!0,r}return function(o,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||(o="next"),t=i[o]){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 '"+o+"' method"),u=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,u=1,l=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),p=d.prototype=u.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,s(p,"constructor",d),s(d,"constructor",c),c.displayName="GeneratorFunction",s(d,o,"GeneratorFunction"),s(p),s(p,o,"Generator"),s(p,r,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:v}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}s=function(e,t,n,r){function i(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},s(e,t,n,r)}function c(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,u,"next",e)}function u(e){c(i,r,o,a,u,"throw",e)}a(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"},y=["src","srcset","alt"],h={class:"sui-screen-reader-text"},g=["innerHTML"],_=["innerHTML"],w={class:"sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--50"};const k={__name:"tracking-modal",setup:function(e){var t=(0,o.B)().__,n=(0,i.m)().suiRemoveModalClass,s=(0,a.q)().post,c=(0,r.KR)(defender.misc.banner_1x),k=(0,r.KR)(defender.misc.banner_2x),C=(0,r.KR)(defender.misc.title),S=(0,r.KR)(defender.misc.title),L=(0,r.KR)(defender.misc.desc),E=(0,r.KR)(defender.misc.optin_button_title),R=(0,r.KR)(defender.misc.skip_button_title),j=(0,r.KR)(defender.misc.nonces),x=(0,r.KR)(defender.misc.routes),O=(0,r.KR)(!1);(0,r.sV)(function(){document.onreadystatechange=function(){SUI.openModal("defender-tracking-modal",jQuery("body"),void 0,!1,!0)}});var A=function(){var e=d(l().m(function e(){return l().w(function(e){for(;;)switch(e.n){case 0:return O.value=!0,e.n=1,s(x.value.save_track_modal,j.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)}}(),T=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(x.value.close_track_modal,j.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,r.uX)(),(0,r.CE)("div",f,[(0,r.Lk)("div",{role:"dialog",id:"defender-tracking-modal","aria-modal":"true",class:"sui-modal-content","aria-label":(0,r.R1)(t)("Tracking Preferences Modal")},[(0,r.Lk)("div",v,[(0,r.Lk)("div",m,[(0,r.Lk)("figure",b,[(0,r.Lk)("img",{src:c.value,srcset:c.value+" 1x, "+k.value+" 2x",alt:C.value},null,8,y)]),(0,r.Lk)("button",{class:"modal-close-button sui-button-white sui-button-icon sui-button-float--right",onClick:T},[n[0]||(n[0]=(0,r.Lk)("i",{class:"sui-icon-close sui-md","aria-hidden":"true"},null,-1)),(0,r.Lk)("span",h,(0,r.v_)((0,r.R1)(t)("Close this dialog.")),1)]),(0,r.Lk)("h3",{class:"sui-box-title sui-lg",id:"defender-tracking-modal-label",innerHTML:S.value},null,8,g),(0,r.Lk)("p",{class:"sui-description",innerHTML:L.value},null,8,_)]),(0,r.Lk)("div",w,[(0,r.bF)((0,r.R1)(u.A),{onClick:A,doing_ajax:O.value,"css-class":"sui-button-blue"},{default:(0,r.k6)(function(){return[(0,r.eW)((0,r.v_)(E.value),1)]}),_:1},8,["doing_ajax"])])]),(0,r.Lk)("button",{type:"button",onClick:T,class:"sui-modal-skip defender-tracking-modal-skip-link"},(0,r.v_)(R.value),1)],8,p)])}}},C=k},1669(e){e.exports=jQuery}},e=>{e.O(0,[270],()=>{return t=8859,e(e.s=t);var t});e.O()}]);