Your IP : 216.73.216.44


Current Path : /home/krobertfnz/www/wp-content/plugins/wp-defender/assets/app/
Upload File :
Current File : /home/krobertfnz/www/wp-content/plugins/wp-defender/assets/app/two-fa.js

/*! For license information please see two-fa.js.LICENSE.txt */
!function(t){var e={};function s(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)s.d(i,a,function(e){return t[e]}.bind(null,a));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/",s(s.s=258)}({1:function(t,e,s){"use strict";function i(t,e,s,i,a,n,o,r){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=s,u._compiled=!0),i&&(u.functional=!0),n&&(u._scopeId="data-v-"+n),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):a&&(c=r?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:u}}s.d(e,"a",(function(){return i}))},11:function(t,e,s){var i=s(17),a=s(33);for(var n in(e=t.exports=function(t,e){return new a(e).process(t)}).FilterCSS=a,i)e[n]=i[n];"undefined"!=typeof window&&(window.filterCSS=t.exports)},12:function(t,e){t.exports={indexOf:function(t,e){var s,i;if(Array.prototype.indexOf)return t.indexOf(e);for(s=0,i=t.length;s<i;s++)if(t[s]===e)return s;return-1},forEach:function(t,e,s){var i,a;if(Array.prototype.forEach)return t.forEach(e,s);for(i=0,a=t.length;i<a;i++)e.call(s,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}}},13:function(t,e,s){var i=s(16),a=s(19),n=s(35);function o(t,e){return new n(e).process(t)}(e=t.exports=o).filterXSS=o,e.FilterXSS=n,function(){for(var t in i)e[t]=i[t];for(var s in a)e[s]=a[s]}(),"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)},14:function(t,e,s){"use strict";var i={mixins:[s(2).a],data:function(){return{whitelabel:defender.whitelabel,is_free:parseInt(defender.is_free)}}},a=s(1),n=Object(a.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"sui-footer",domProps:{innerHTML:t._s(t.whitelabel.footer_text)}}),t._v(" "),!1===t.whitelabel.change_footer?s("div",[1===t.is_free?s("ul",{staticClass:"sui-footer-nav"},[s("li",[s("a",{attrs:{href:"https://profiles.wordpress.org/wpmudev#content-plugins",target:"_blank"}},[t._v(t._s(t.__("Free Plugins")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/features/",target:"_blank"}},[t._v(t._s(t.__("Membership")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/roadmap/",target:"_blank"}},[t._v(t._s(t.__("Roadmap")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wordpress.org/support/plugin/defender-security/",target:"_blank"}},[t._v(t._s(t.__("Support")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/docs/",target:"_blank"}},[t._v(t._s(t.__("Docs")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/hub-welcome/",target:"_blank"}},[t._v(t._s(t.__("The Hub")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/terms-of-service/",target:"_blank"}},[t._v(t._s(t.__("Terms of Service")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://incsub.com/privacy-policy/",target:"_blank"}},[t._v(t._s(t.__("Privacy Policy")))])])]):s("ul",{staticClass:"sui-footer-nav"},[s("li",[s("a",{attrs:{href:"https://wpmudev.com/hub2/",target:"_blank"}},[t._v(t._s(t.__("The Hub")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/projects/category/plugins/",target:"_blank"}},[t._v(t._s(t.__("Plugins")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/roadmap/",target:"_blank"}},[t._v(t._s(t.__("Roadmap")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/hub2/support/",target:"_blank"}},[t._v(t._s(t.__("Support")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/docs/",target:"_blank"}},[t._v(t._s(t.__("Docs")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/hub2/community/",target:"_blank"}},[t._v(t._s(t.__("Community")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://wpmudev.com/terms-of-service/",target:"_blank"}},[t._v(t._s(t.__("Terms of Service")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://incsub.com/privacy-policy/",target:"_blank"}},[t._v(t._s(t.__("Privacy Policy")))])])]),t._v(" "),s("ul",{staticClass:"sui-footer-social"},[s("li",[s("a",{attrs:{href:"https://www.facebook.com/wpmudev",target:"_blank"}},[s("i",{staticClass:"sui-icon-social-facebook",attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Facebook")))])])]),t._v(" "),s("li",[t._m(0),t._v(" "),s("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Twitter")))])]),t._v(" "),s("li",[s("a",{attrs:{href:"https://www.instagram.com/wpmu_dev/",target:"_blank"}},[s("i",{staticClass:"sui-icon-instagram",attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Instagram")))])])])])]):t._e()])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"https://twitter.com/wpmudev",target:"_blank"}},[e("i",{staticClass:"sui-icon-social-twitter",attrs:{"aria-hidden":"true"}})])}],!1,null,null,null);e.a=n.exports},15:function(t,e,s){"use strict";(function(e){var i=s(6),a=s(44),n=s(25),o={"Content-Type":"application/x-www-form-urlencoded"};function r(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(c=s(26)),c),transformRequest:[function(t,e){return a(e,"Accept"),a(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)||e&&"application/json"===e["Content-Type"]?(r(e,"application/json"),function(t,e,s){if(i.isString(t))try{return(e||JSON.parse)(t),i.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(s||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,s=e&&e.silentJSONParsing,a=e&&e.forcedJSONParsing,o=!s&&"json"===this.responseType;if(o||a&&i.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw n(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){u.headers[t]=i.merge(o)})),t.exports=u}).call(this,s(36))},16:function(t,e,s){var i=s(11).FilterCSS,a=s(11).getDefaultWhiteList,n=s(12);function o(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var r=new i;function c(t){return t.replace(u,"&lt;").replace(l,"&gt;")}var u=/</g,l=/>/g,d=/"/g,p=/&quot;/g,f=/&#([a-zA-Z0-9]*);?/gim,_=/&colon;?/gim,h=/&newline;?/gim,m=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,v=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,g=/u\s*r\s*l\s*\(.*/gi;function b(t){return t.replace(d,"&quot;")}function y(t){return t.replace(p,'"')}function w(t){return t.replace(f,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function C(t){return t.replace(_,":").replace(h," ")}function x(t){for(var e="",s=0,i=t.length;s<i;s++)e+=t.charCodeAt(s)<32?" ":t.charAt(s);return n.trim(e)}function k(t){return t=x(t=C(t=w(t=y(t))))}function A(t){return t=c(t=b(t))}e.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},e.getDefaultWhiteList=o,e.onTag=function(t,e,s){},e.onIgnoreTag=function(t,e,s){},e.onTagAttr=function(t,e,s){},e.onIgnoreTagAttr=function(t,e,s){},e.safeAttrValue=function(t,e,s,i){if(s=k(s),"href"===e||"src"===e){if("#"===(s=n.trim(s)))return"#";if("http://"!==s.substr(0,7)&&"https://"!==s.substr(0,8)&&"mailto:"!==s.substr(0,7)&&"tel:"!==s.substr(0,4)&&"data:image/"!==s.substr(0,11)&&"ftp://"!==s.substr(0,6)&&"./"!==s.substr(0,2)&&"../"!==s.substr(0,3)&&"#"!==s[0]&&"/"!==s[0])return""}else if("background"===e){if(m.lastIndex=0,m.test(s))return""}else if("style"===e){if(v.lastIndex=0,v.test(s))return"";if(g.lastIndex=0,g.test(s)&&(m.lastIndex=0,m.test(s)))return"";!1!==i&&(s=(i=i||r).process(s))}return s=A(s)},e.escapeHtml=c,e.escapeQuote=b,e.unescapeQuote=y,e.escapeHtmlEntities=w,e.escapeDangerHtml5Entities=C,e.clearNonPrintableCharacter=x,e.friendlyAttrValue=k,e.escapeAttrValue=A,e.onIgnoreTagStripAll=function(){return""},e.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var s=!Array.isArray(t),i=[],a=!1;return{onIgnoreTag:function(o,r,c){if(function(e){return!!s||-1!==n.indexOf(t,e)}(o)){if(c.isClosing){var u="[/removed]",l=c.position+u.length;return i.push([!1!==a?a:c.position,l]),a=!1,u}return a||(a=c.position),"[removed]"}return e(o,r,c)},remove:function(t){var e="",s=0;return n.forEach(i,(function(i){e+=t.slice(s,i[0]),s=i[1]})),e+=t.slice(s)}}},e.stripCommentTag=function(t){for(var e="",s=0;s<t.length;){var i=t.indexOf("\x3c!--",s);if(-1===i){e+=t.slice(s);break}e+=t.slice(s,i);var a=t.indexOf("--\x3e",i);if(-1===a)break;s=a+3}return e},e.stripBlankChar=function(t){var e=t.split("");return(e=e.filter((function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))}))).join("")},e.cssFilter=r,e.getDefaultCSSWhiteList=a},17:function(t,e){function s(){var t={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return t}var i=/javascript\s*\:/gim;e.whiteList=s(),e.getDefaultWhiteList=s,e.onAttr=function(t,e,s){},e.onIgnoreAttr=function(t,e,s){},e.safeAttrValue=function(t,e){return i.test(e)?"":e}},18:function(t,e){t.exports={indexOf:function(t,e){var s,i;if(Array.prototype.indexOf)return t.indexOf(e);for(s=0,i=t.length;s<i;s++)if(t[s]===e)return s;return-1},forEach:function(t,e,s){var i,a;if(Array.prototype.forEach)return t.forEach(e,s);for(i=0,a=t.length;i<a;i++)e.call(s,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}}},19:function(t,e,s){var i=s(12);function a(t){var e,s=i.spaceIndex(t);return e=-1===s?t.slice(1,-1):t.slice(1,s+1),"/"===(e=i.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}function n(t){return"</"===t.slice(0,2)}var o=/[^a-zA-Z0-9\\_:.-]/gim;function r(t,e){for(;e<t.length;e++){var s=t[e];if(" "!==s)return"="===s?e:-1}}function c(t,e){for(;e<t.length;e++){var s=t[e];if(" "!==s)return"'"===s||'"'===s?e:-1}}function u(t,e){for(;e>0;e--){var s=t[e];if(" "!==s)return"="===s?e:-1}}function l(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}e.parseTag=function(t,e,s){"use strict";var i="",o=0,r=!1,c=!1,u=0,l=t.length,d="",p="";t:for(u=0;u<l;u++){var f=t.charAt(u);if(!1===r){if("<"===f){r=u;continue}}else if(!1===c){if("<"===f){i+=s(t.slice(o,u)),r=u,o=u;continue}if(">"===f||u===l-1){i+=s(t.slice(o,r)),d=a(p=t.slice(r,u+1)),i+=e(r,i.length,d,p,n(p)),o=u+1,r=!1;continue}if('"'===f||"'"===f)for(var _=1,h=t.charAt(u-_);""===h.trim()||"="===h;){if("="===h){c=f;continue t}h=t.charAt(u-++_)}}else if(f===c){c=!1;continue}}return o<l&&(i+=s(t.substr(o))),i},e.parseAttr=function(t,e){"use strict";var s=0,a=0,n=[],d=!1,p=t.length;function f(t,s){if(!((t=(t=i.trim(t)).replace(o,"").toLowerCase()).length<1)){var a=e(t,s||"");a&&n.push(a)}}for(var _=0;_<p;_++){var h,m=t.charAt(_);if(!1!==d||"="!==m)if(!1===d||_!==a)if(/\s|\n|\t/.test(m)){if(t=t.replace(/\s|\n|\t/g," "),!1===d){if(-1===(h=r(t,_))){f(i.trim(t.slice(s,_))),d=!1,s=_+1;continue}_=h-1;continue}if(-1===(h=u(t,_-1))){f(d,l(i.trim(t.slice(s,_)))),d=!1,s=_+1;continue}}else;else{if(-1===(h=t.indexOf(m,_+1)))break;f(d,i.trim(t.slice(a+1,h))),d=!1,s=(_=h)+1}else d=t.slice(s,_),s=_+1,a='"'===t.charAt(s)||"'"===t.charAt(s)?s:c(t,_+1)}return s<t.length&&(!1===d?f(t.slice(s)):f(d,l(i.trim(t.slice(s))))),i.trim(n.join(" "))}},2:function(t,e,s){"use strict";var i=s(13),a=wp.i18n,n={whiteList:{a:["href","title","target"],span:["class"],strong:["*"]},safeAttrValue:function(t,e,s,a){return"a"===t&&"href"===e&&"%s"===s?"%s":Object(i.safeAttrValue)(t,e,s,a)}},o=new i.FilterXSS(n),r=[];e.a={data:function(){return{width:{document:0},mobileWidth:768,tabletWidth:1024,isMobile:!1,isTablet:!1}},methods:{__:function(t){var e=a.__(t,"wpdef");return o.process(e)},multipleTranslation:function(t,e,s){var i=a._n(t,e,s,"wpdef");return o.process(i)},xss:function(t){return o.process(t)},vsprintf:function(t){return a.sprintf.apply(null,arguments)},homeUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.home_url+t},siteUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.site_url+t},adminUrl:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return defender.admin_url+t},assetUrl:function(t){return defender.defender_url+t},maybeHighContrast:function(){return{"sui-color-accessible":!0===defender.misc.high_contrast}},maybeHideBranding:function(){return defender.whitelabel.hide_branding},showSupportLinks:function(){return"disabled"===defender.is_whitelabel&&0===parseInt(defender.is_free)},isWhitelabelDisabled:function(){return"disabled"===defender.is_whitelabel},whitelabelHeroImage:function(){var t=defender.whitelabel.hero_image;return t||!1},campaign_url:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"project/wp-defender",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return s=s&&"&"!==s.slice(-1)?s+"&":s,defender.wpmudev_api_base_url+e+"/?"+s+"utm_source=defender&utm_medium=plugin&utm_campaign="+t},httpRequest:function(t,e,s,i,a){var n=this;void 0===a&&(this.state.on_saving=!0);var o=ajaxurl+"?action="+this.endpoints[e]+"&_def_nonce="+this.nonces[e],c=jQuery.ajax({url:o,method:t,data:s,success:function(t){var e=t.data;n.state.on_saving=!1,void 0!==e&&void 0!==e.message&&(t.success?Defender.showNotification("success",e.message):Defender.showNotification("error",e.message)),void 0!==i&&i(t)}});r.push(c)},httpGetRequest:function(t,e,s,i){this.httpRequest("get",t,e,s,i)},httpPostRequest:function(t,e,s,i){this.httpRequest("post",t,e,s,i)},rebindSUI:function(){jQuery(".sui-accordion").each((function(){SUI.suiAccordion(this)})),SUI.tabs(),SUI.modalDialog(),jQuery(".sui-select").SUIselect2({placeholder:function(){$(this).data("placeholder")},dropdownCssClass:"sui-select-dropdown"})},associateSUIselect2WithModal:function(t,e){""===e&&(e=jQuery(t).closest('.sui-modal-content[aria-modal="true"]').attr("id")),jQuery(t).SUIselect2({dropdownParent:jQuery("#"+e)})},ucFirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},windowWidth:function(t){this.width.document=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.isMobile=this.mobileWidth>=this.width.document,this.isTablet=this.tabletWidth>=this.width.document},getFlagEmoji:function(t){if(2===t.length)return t.toUpperCase().replace(/./g,(function(t){return String.fromCodePoint(127397+t.charCodeAt())}))},getCountryName:function(t){return 2===t.length?new Intl.DisplayNames(["en"],{type:"region"}).of(t):this.__("Unknown")},suiRemoveModalClass:function(){var t;null===(t=document.querySelector(".sui-has-modal"))||void 0===t||null===(t=t.classList)||void 0===t||t.remove("sui-has-modal")}},created:function(){this.$nextTick().then(this.windowWidth),window.addEventListener("resize",this.windowWidth)},beforeDestroy:function(){window.removeEventListener("resize",this.windowWidth)}}},20:function(t,e,s){"use strict";var i={name:"submit-button",props:["id","state","text","css-class","type"],computed:{getClass:function(){return"sui-button "+this.cssClass},disabled:function(){return!0===this.state.disabled||this.state.on_saving}}},a=s(1),n=Object(a.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("button",{staticClass:"sui-button",class:[t.getClass,{"sui-button-onload":t.state.on_saving}],attrs:{id:t.id,type:t.type,disabled:t.disabled},on:{click:function(e){return t.$emit("click")}}},[s("span",{staticClass:"sui-loading-text"},[t._t("default")],2),t._v(" "),s("i",{staticClass:"sui-icon-loader sui-loading",attrs:{"aria-hidden":"true"}})])}),[],!1,null,null,null);e.a=n.exports},21:function(t,e,s){"use strict";var i={mixins:[s(2).a],name:"doc-link",props:["link"],data:function(){return{whitelabel:defender.whitelabel}},methods:{build_url:function(t){return defender.wpmudev_url+t}}},a=s(1),n=Object(a.a)(i,(function(){var t=this.$createElement,e=this._self._c||t;return!1===this.whitelabel.hide_doc_link?e("div",{staticClass:"sui-actions-right"},[e("a",{staticClass:"sui-button sui-button-ghost",attrs:{href:this.build_url(this.link),target:"_blank"}},[e("i",{staticClass:"sui-icon-academy"}),this._v(" "+this._s(this.__("Documentation"))+"\n    ")])]):this._e()}),[],!1,null,null,null);e.a=n.exports},22:function(t,e,s){"use strict";var i={name:"OPcacheNotice",mixins:[s(2).a],data:function(){return{opcacheSaveComments:defender.opcache_save_comments,opcacheMessage:defender.opcache_message}}},a=s(1),n=Object(a.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return"disabled"==t.opcacheSaveComments?s("div",{staticClass:"sui-notice sui-notice-info"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("h3",{staticClass:"m-0"},[t._v(t._s(t.__("Enable OPcache Save Comments")))]),t._v(" "),s("p",{domProps:{innerHTML:t._s(t.opcacheMessage)}})])])]):t._e()}),[],!1,null,null,null);e.a=n.exports},23:function(t,e,s){"use strict";t.exports=function(t,e){return function(){for(var s=new Array(arguments.length),i=0;i<s.length;i++)s[i]=arguments[i];return t.apply(e,s)}}},24:function(t,e,s){"use strict";var i=s(6);function a(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,s){if(!e)return t;var n;if(s)n=s(e);else if(i.isURLSearchParams(e))n=e.toString();else{var o=[];i.forEach(e,(function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),o.push(a(e)+"="+a(t))})))})),n=o.join("&")}if(n){var r=t.indexOf("#");-1!==r&&(t=t.slice(0,r)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}},25:function(t,e,s){"use strict";t.exports=function(t,e,s,i,a){return t.config=e,s&&(t.code=s),t.request=i,t.response=a,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},258:function(t,e,s){t.exports=s(274)},26:function(t,e,s){"use strict";var i=s(6),a=s(45),n=s(46),o=s(24),r=s(47),c=s(50),u=s(51),l=s(27);t.exports=function(t){return new Promise((function(e,s){var d=t.data,p=t.headers,f=t.responseType;i.isFormData(d)&&delete p["Content-Type"];var _=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var v=r(t.baseURL,t.url);function g(){if(_){var i="getAllResponseHeaders"in _?c(_.getAllResponseHeaders()):null,n={data:f&&"text"!==f&&"json"!==f?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:i,config:t,request:_};a(e,s,n),_=null}}if(_.open(t.method.toUpperCase(),o(v,t.params,t.paramsSerializer),!0),_.timeout=t.timeout,"onloadend"in _?_.onloadend=g:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(g)},_.onabort=function(){_&&(s(l("Request aborted",t,"ECONNABORTED",_)),_=null)},_.onerror=function(){s(l("Network Error",t,null,_)),_=null},_.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),s(l(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},i.isStandardBrowserEnv()){var b=(t.withCredentials||u(v))&&t.xsrfCookieName?n.read(t.xsrfCookieName):void 0;b&&(p[t.xsrfHeaderName]=b)}"setRequestHeader"in _&&i.forEach(p,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete p[e]:_.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(_.withCredentials=!!t.withCredentials),f&&"json"!==f&&(_.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&_.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){_&&(_.abort(),s(t),_=null)})),d||(d=null),_.send(d)}))}},27:function(t,e,s){"use strict";var i=s(25);t.exports=function(t,e,s,a,n){var o=new Error(t);return i(o,e,s,a,n)}},274:function(t,e,s){"use strict";s.r(e);var i=s(8),a=s.n(i),n=s(2),o=s(5),r=s(4);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function l(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?u(Object(s),!0).forEach((function(e){d(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function d(t,e,s){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!==c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var p={name:"two-fa",components:{SubmitButton2:o.a},mixins:[n.a],data:function(){return{whitelabel:defender.whitelabel,app:"google-authenticator",is_shown:"no"}},methods:{bindUploader:function(){var t,e=this;jQuery(".file-picker").on("click",(function(){t||(t=wp.media.frames.file_frame=wp.media({title:e.__("Choose an image file"),button:{text:e.__("Choose File")},multiple:!1,library:{type:["image"]}})).on("select",(function(){var s=t.state().get("selection").first().toJSON();jQuery.inArray(s.mime,["image/jpeg","image/png","image/gif"])>-1?e.custom_graphic_url=s.url:Defender.showNotification("error",e.__("Invalid image file type"))})),t.open()}))}},computed:l(l({},Object(r.b)(["model.enabled","model.lost_phone","model.app_title","model.custom_graphic","model.custom_graphic_type","model.custom_graphic_url","model.custom_graphic_link","model.email_body","model.email_sender","model.email_subject","model.force_auth","model.force_auth_mess","model.force_auth_roles","model.user_roles","model.detect_woo","is_active","all_roles","count","custom_graphic_state","notices","new_feature","count_checked_roles","is_woo_active","is_multisite"])),{},{get_ios_url:function(){switch(this.app){case"google-authenticator":return"https://apps.apple.com/app/google-authenticator/id388497605";case"microsoft-authenticator":return"https://apps.apple.com/app/microsoft-authenticator/id983156458";case"authy":return"https://apps.apple.com/app/authy/id494168017"}},get_android_url:function(){switch(this.app){case"google-authenticator":return"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2";case"microsoft-authenticator":return"https://play.google.com/store/apps/details?id=com.azure.authenticator";case"authy":return"https://play.google.com/store/apps/details?id=com.authy.authy"}},download_app_text:function(){switch(this.app){case"google-authenticator":return this.__("Download Google Authenticator");case"microsoft-authenticator":return this.__("Download Microsoft Authenticator");case"authy":return this.__("Download Authy")}}}),mounted:function(){var t=this;this.bindUploader(),this.$store.dispatch("isAuthActiveNotice"),jQuery("#two-fa-auth-select").on("change",(function(e){t.app=e.target.value})),localStorage.is_shown&&(this.is_shown=localStorage.is_shown)},beforeMount:function(){this.$store.commit("init",two_fa)},watch:{is_shown:function(t){localStorage.is_shown=t}}},f=s(1),_=Object(f.a)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"sui-wrap",class:[t.maybeHighContrast()],attrs:{id:"two-fa"}},[!1===t.enabled?s("div",{staticClass:"sui-box"},[s("div",{staticClass:"sui-box"},[s("div",{staticClass:"sui-box-header"},[s("h3",{staticClass:"sui-box-title"},[t._v("\n            "+t._s(t.__("Two Factor Authentication"))+"\n          ")])]),t._v(" "),s("div",{staticClass:"sui-message"},[t.maybeHideBranding()?t._e():s("img",{staticClass:"sui-image",attrs:{src:t.assetUrl("assets/img/disabled-module.png"),"aria-hidden":"true"}}),t._v(" "),t.maybeHideBranding()&&t.whitelabelHeroImage()?s("img",{staticClass:"sui-image wd-whitelabel-custom-branding-logo",attrs:{src:t.whitelabelHeroImage(),"aria-hidden":"true"}}):t._e(),t._v(" "),s("div",{staticClass:"sui-message-content"},[s("p",[t._v("\n              "+t._s(t.__("Beef up your website’s security with two-factor authentication. Add an extra step in the login process so that users are required to enter a password and an app-generated passcode using their phone – the best protection against brute force attacks."))+"\n            ")]),t._v(" "),s("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("toggle")}}},[s("submit-button2",{attrs:{"css-class":"sui-button-blue activate"}},[t._v("\n                "+t._s(t.__("Activate"))+"\n              ")])],1)])])])]):s("div",[s("div",{staticClass:"sui-header"},[s("h1",{staticClass:"sui-header-title"},[t._v("\n          "+t._s(t.__("Two-Factor Authentication"))+"\n        ")]),t._v(" "),s("doc-link",{attrs:{link:"?utm_source=defender&utm_medium=plugin&utm_campaign=defender_2fa_docs#two-factor-authentication"}})],1),t._v(" "),s("opcache-notice"),t._v(" "),s("summary-box",{attrs:{"css-class":"sui-summary-sm"}},[s("div",{staticClass:"sui-summary-segment"},[s("div",{staticClass:"sui-summary-details"},[s("span",{staticClass:"sui-summary-large",domProps:{textContent:t._s(t.count)}}),t._v(" "),s("span",{staticClass:"sui-summary-sub"},[t._v("\n              "+t._s(t.multipleTranslation("User enabled authentication","Users enabled authentication",t.count))+"\n          ")])])]),t._v(" "),s("div",{staticClass:"sui-summary-segment"},[s("ul",{staticClass:"sui-list"},[s("li",[s("span",{staticClass:"sui-list-label"},[t._v(t._s(t.__("User roles")))]),t._v(" "),s("span",{staticClass:"sui-list-detail"},[t._v(t._s(t.count_checked_roles))])]),t._v(" "),s("li",{attrs:{id:"customgraphic-tag"}},[s("span",{staticClass:"sui-list-label"},[t._v(t._s(t.__("Custom Graphic")))]),t._v(" "),s("span",{staticClass:"sui-list-detail"},[!1===t.custom_graphic_state?s("span",{staticClass:"sui-tag sui-tag-brown"},[t._v(t._s(t.__("Inactive")))]):s("span",{staticClass:"sui-tag sui-tag-blue"},[t._v(t._s(t.__("Active")))])])])])])]),t._v(" "),0==t.whitelabel.hide_doc_link&&"no"===t.is_shown?s("div",{staticClass:"sui-notice sui-notice-blue"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("p",{domProps:{innerHTML:t._s(t.new_feature)}})]),t._v(" "),s("div",{staticClass:"sui-notice-actions"},[s("button",{staticClass:"sui-button-icon",on:{click:function(e){t.is_shown="yes"}}},[s("i",{staticClass:"sui-icon-check",attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Close this notice")))])])])])]):t._e(),t._v(" "),s("div",{staticClass:"sui-box"},[s("div",{staticClass:"sui-box-header"},[s("h3",{staticClass:"sui-box-title"},[t._v("\n            "+t._s(t.__("Two Factor Authentication"))+"\n          ")])]),t._v(" "),s("form",{attrs:{method:"post",id:"advanced-settings-frm"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("saveSettings")}}},[s("div",{staticClass:"sui-box-body"},[s("p",[t._v("\n              "+t._s(t.__("Configure your two-factor authentication settings. Our recommendations are enabled by default."))+"\n            ")]),t._v(" "),t.notices.length?s("div",{staticClass:"sui-notice sui-notice-error"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",t._l(t.notices,(function(e){return s("span",[t._v("\n                        "+t._s(e)+"\n                    ")])})),0)])])]):t._e(),t._v(" "),t.$store.getters.isActive?s("div",{staticClass:"sui-notice sui-notice-success"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",[t._v(t._s(t.__("Two-factor authentication is now active."))+" "+t._s(t.__("User roles with this feature enabled must visit their "))+"\n                    "),s("a",{attrs:{href:t.adminUrl("profile.php#defender-security")}},[t._v(t._s(t.__("Profile page")))]),t._v(" "+t._s(t.__("to finish setting up authentication.")))])])])]):s("div",{staticClass:"sui-notice sui-notice-warning"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",[t._v(t._s(t.__("Two-factor authentication is currently inactive. Configure and save your settings to finish setup.")))])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("User Roles")))]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Choose the user roles you want to enable two-factor authentication for."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"sui-field-list"},[s("div",{staticClass:"sui-field-list-header"},[s("h3",{staticClass:"sui-field-list-title"},[t._v("\n                      "+t._s(t.__("User role"))+"\n                    ")])]),t._v(" "),s("div",{staticClass:"sui-field-list-body"},t._l(t.all_roles,(function(e,i){return s("div",{staticClass:"sui-field-list-item"},[s("label",{staticClass:"sui-field-list-item-label",attrs:{for:"toggle_"+i},domProps:{innerHTML:t._s(e)}}),t._v(" "),s("label",{staticClass:"sui-toggle"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.user_roles,expression:"user_roles"}],attrs:{type:"checkbox",id:"toggle_"+i},domProps:{value:i,checked:Array.isArray(t.user_roles)?t._i(t.user_roles,i)>-1:t.user_roles},on:{change:function(e){var s=t.user_roles,a=e.target,n=!!a.checked;if(Array.isArray(s)){var o=i,r=t._i(s,o);a.checked?r<0&&(t.user_roles=s.concat([o])):r>-1&&(t.user_roles=s.slice(0,r).concat(s.slice(r+1)))}else t.user_roles=n}}}),t._v(" "),s("span",{staticClass:"sui-toggle-slider"})])])})),0)])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("Force Authentication"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("By default, two-factor authentication is optional for users. This setting forces users to activate two-factor."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"sui-form-field"},[s("label",{staticClass:"sui-toggle"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.force_auth,expression:"force_auth"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"force_auth",id:"force_auth"},domProps:{checked:Array.isArray(t.force_auth)?t._i(t.force_auth,null)>-1:t.force_auth},on:{change:function(e){var s=t.force_auth,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&(t.force_auth=s.concat([null])):n>-1&&(t.force_auth=s.slice(0,n).concat(s.slice(n+1)))}else t.force_auth=a}}}),t._v(" "),s("span",{staticClass:"sui-toggle-slider"}),t._v(" "),s("span",{staticClass:"sui-toggle-label",attrs:{id:"force_auth_label"}},[t._v("\n                      "+t._s(t.__("Force users to log in with two-factor authentication"))+"\n                    ")])]),t._v(" "),s("span",{staticClass:"sui-description sui-toggle-content"},[t._v("\n                    "+t._s(t.__("Note: Users will be forced to set up two-factor when they next login."))+"\n                  ")]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.force_auth,expression:"force_auth===true"}],staticClass:"sui-border-frame sui-toggle-content",attrs:{id:"force_auth_roles"}},[s("strong",[t._v(t._s(t.__("User Roles")))]),t._v(" "),s("ul",t._l(t.all_roles,(function(e,i){return s("li",{directives:[{name:"show",rawName:"v-show",value:t.user_roles.includes(i),expression:"user_roles.includes(role)"}],key:i},[s("label",{staticClass:"sui-checkbox",attrs:{for:"toggle_force_"+i}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.force_auth_roles,expression:"force_auth_roles"}],attrs:{type:"checkbox",id:"toggle_force_"+i},domProps:{value:i,checked:Array.isArray(t.force_auth_roles)?t._i(t.force_auth_roles,i)>-1:t.force_auth_roles},on:{change:function(e){var s=t.force_auth_roles,a=e.target,n=!!a.checked;if(Array.isArray(s)){var o=i,r=t._i(s,o);a.checked?r<0&&(t.force_auth_roles=s.concat([o])):r>-1&&(t.force_auth_roles=s.slice(0,r).concat(s.slice(r+1)))}else t.force_auth_roles=n}}}),t._v(" "),s("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",[t._v(t._s(e))])])])})),0),t._v(" "),s("strong",[t._v(t._s(t.__("Custom warning message")))]),t._v(" "),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.force_auth_mess,expression:"force_auth_mess"}],staticClass:"sui-form-control",attrs:{name:"force_auth_mess"},domProps:{value:t.force_auth_mess},on:{input:function(e){e.target.composing||(t.force_auth_mess=e.target.value)}}}),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                      "+t._s(t.__("Note: This is shown in the users Profile area indicating they must use two-factor authentication."))+"\n                    ")])])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("App Title"))+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("Customise the title that appears in the Authenticator app for this website."))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("label",{staticClass:"sui-label"},[t._v("\n                  "+t._s(t.__("Custom Title"))+"\n                ")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.app_title,expression:"app_title"}],staticClass:"sui-form-control sui-input-md",domProps:{value:t.app_title},on:{input:function(e){e.target.composing||(t.app_title=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("Custom Graphic"))+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("By default, Defender’s icon appears above the login fields. You can upload your own branding, or turn this feature off."))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("label",{staticClass:"sui-toggle"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic,expression:"custom_graphic"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"custom_graphic",id:"custom_graphic"},domProps:{checked:Array.isArray(t.custom_graphic)?t._i(t.custom_graphic,null)>-1:t.custom_graphic},on:{change:function(e){var s=t.custom_graphic,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&(t.custom_graphic=s.concat([null])):n>-1&&(t.custom_graphic=s.slice(0,n).concat(s.slice(n+1)))}else t.custom_graphic=a}}}),t._v(" "),s("span",{staticClass:"sui-toggle-slider"}),t._v(" "),s("span",{staticClass:"sui-toggle-label",attrs:{id:"custom_graphic_label"}},[t._v("\n                    "+t._s(t.__("Enable custom graphics above login fields"))+"\n                  ")])]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.custom_graphic,expression:"custom_graphic === true"}],staticClass:"sui-tabs sui-side-tabs",attrs:{id:"wpdef-custom-graphics-tabs"}},[s("div",{staticClass:"sui-tabs-menu",attrs:{role:"tablist"}},[s("label",{staticClass:"sui-tab-item",class:{active:"upload"===t.custom_graphic_type},attrs:{for:"custom-graphic-upload"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic_type,expression:"custom_graphic_type"}],attrs:{type:"radio",name:"custom_graphic_type",value:"upload",id:"custom-graphic-upload","data-tab-menu":"wpdef-custom-graphic-upload"},domProps:{checked:t._q(t.custom_graphic_type,"upload")},on:{change:function(e){t.custom_graphic_type="upload"}}}),t._v("\n                      "+t._s(t.__("Upload Graphic"))+"\n                    ")]),t._v(" "),s("label",{staticClass:"sui-tab-item",class:{active:"link"===t.custom_graphic_type},attrs:{for:"custom-graphic-link"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic_type,expression:"custom_graphic_type"}],attrs:{type:"radio",name:"custom_graphic_type",value:"link",id:"custom-graphic-link","data-tab-menu":"wpdef-custom-graphic-link"},domProps:{checked:t._q(t.custom_graphic_type,"link")},on:{change:function(e){t.custom_graphic_type="link"}}}),t._v("\n                      "+t._s(t.__("Link Graphic"))+"\n                    ")]),t._v(" "),s("label",{staticClass:"sui-tab-item",class:{active:"no"===t.custom_graphic_type},attrs:{for:"custom-graphic-no"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic_type,expression:"custom_graphic_type"}],attrs:{type:"radio",name:"custom_graphic_type",value:"no",id:"custom-graphic-no","data-tab-menu":"wpdef-custom-graphic-no"},domProps:{checked:t._q(t.custom_graphic_type,"no")},on:{change:function(e){t.custom_graphic_type="no"}}}),t._v("\n                      "+t._s(t.__("No Graphic"))+"\n                    ")])]),t._v(" "),s("div",{staticClass:"sui-tabs-content"},[s("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"upload"===t.custom_graphic_type},attrs:{id:"wpdef-custom-graphic-upload","data-tab-content":"wpdef-custom-graphic-upload"}},[s("div",{staticClass:"sui-border-frame"},[s("span",{staticClass:"sui-description"},[s("strong",[t._v(t._s(t.__("Custom Graphic")))])]),t._v(" "),s("div",{staticClass:"sui-upload"},[s("div",{staticClass:"sui-upload-image"},[s("img",{attrs:{id:"custom_graphicIMG",width:"40",height:"40",src:t.custom_graphic_url}}),t._v(" "),s("div",{staticClass:"sui-image-preview",style:{backgroundImage:"url("+t.custom_graphic_url+")"},attrs:{role:"button"}})]),t._v(" "),s("button",{staticClass:"sui-upload-button file-picker",attrs:{type:"button"}},[s("i",{staticClass:"sui-icon-upload-cloud",attrs:{"aria-hidden":"true"}}),t._v("\n                            "+t._s(t.__("Upload file"))+"\n                          ")]),t._v(" "),t._m(0)]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                          "+t._s(t.__("For best results use a 168x168px JPG or PNG."))+"\n                        ")])])]),t._v(" "),s("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"link"===t.custom_graphic_type},attrs:{id:"wpdef-custom-graphic-link","data-tab-content":"wpdef-custom-graphic-link"}},[s("div",{staticClass:"sui-border-frame"},[s("span",{staticClass:"sui-description"},[t._v("\n                          "+t._s(t.__("Insert custom graphic from URL"))+"\n                        ")]),t._v(" "),s("div",{attrs:{id:"wpdef-custom-graphic-link-cont"}},[s("div",{staticClass:"sui-upload"},[s("div",{staticClass:"sui-upload-image",attrs:{"aria-hidden":"true"}},[s("div",{staticClass:"sui-image-mask"}),t._v(" "),t.$store.getters.isValidImageLink?s("div",{staticClass:"sui-image-link-preview has-logo-image",style:t.$store.getters.isValidImageLink?{backgroundImage:"url("+t.custom_graphic_link+")"}:{},attrs:{id:"custom_graphic_link_preview"}}):t._e()]),t._v(" "),s("div",{staticClass:"sui-with-button sui-with-button-icon",attrs:{id:"custom_graphic_link_wrap"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.custom_graphic_link,expression:"custom_graphic_link"}],staticClass:"sui-form-control wp-link-media",attrs:{id:"custom_graphic_link"},domProps:{value:t.custom_graphic_link},on:{input:function(e){e.target.composing||(t.custom_graphic_link=e.target.value)}}}),t._v(" "),t.custom_graphic_link?s("button",{staticClass:"sui-button-icon",attrs:{type:"button",id:"custom_graphic_link_clear"},on:{click:function(e){return t.$store.dispatch("clearCustomGraphicLink")}}},[s("span",{staticClass:"sui-icon-close",attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",{staticClass:"sui-screen-reader-text"},[t._v("\n                                  "+t._s(t.__("Remove file"))+"\n                                ")])]):t._e()])]),t._v(" "),t.custom_graphic_link&&!t.$store.getters.isValidImageLink?s("span",{staticClass:"sui-error-message",attrs:{id:"custom_graphic_link_error",role:"alert"}},[t._v("\n                            "+t._s(t.__("Invalid image URL. Please use a valid one."))+"\n                          ")]):t._e()]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                          "+t._s(t.__("For best results, use a 168x168px JPG or PNG."))+"\n                        ")])])]),t._v(" "),s("div",{staticClass:"sui-tab-content sui-tab-boxed",class:{active:"no"===t.custom_graphic_type},attrs:{id:"wpdef-custom-graphic-no","data-tab-content":"wpdef-custom-graphic-no"}},[s("div",{staticClass:"sui-notice"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("span",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",[t._v(t._s(t.__("No icon will be displayed on two-factor form.")))])])])])])])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("Emails"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Customize the default copy for emails the two-factor feature sends to users."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"sui-field-list"},[s("div",{staticClass:"sui-field-list-header"},[s("h3",{staticClass:"sui-field-list-title"},[t._v("\n                      "+t._s(t.__("Email"))+"\n                    ")])]),t._v(" "),s("div",{staticClass:"sui-field-list-body"},[s("div",{staticClass:"sui-field-list-item"},[s("label",{staticClass:"sui-field-list-item-label"},[t._v("\n                        "+t._s(t.__("Fallback email one time password"))+"\n                      ")]),t._v(" "),t._m(1)])])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("App Download"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Need the app? Here’s links to the official iOS and Android authenticator applications."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"w-48"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.app,expression:"app"}],staticClass:"sui-select",attrs:{id:"two-fa-auth-select","data-width":"220px","data-minimum-results-for-search":"Infinity"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.app=e.target.multiple?s:s[0]}}},[s("option",{attrs:{value:"google-authenticator"}},[t._v(t._s(t.__("Google Authenticator")))]),t._v(" "),s("option",{attrs:{value:"microsoft-authenticator"}},[t._v(t._s(t.__("Microsoft Authenticator")))]),t._v(" "),s("option",{attrs:{value:"authy"}},[t._v(t._s(t.__("Authy")))])])]),t._v(" "),s("div",{staticClass:"sui-border-frame"},[s("span",{staticClass:"sui-description margin-bottom-10 no-margin-top",domProps:{textContent:t._s(t.download_app_text)}}),t._v(" "),s("a",{attrs:{href:t.get_ios_url,target:"_blank"}},[s("img",{attrs:{src:t.assetUrl("assets/img/ios-download.svg")}})]),t._v(" "),s("a",{attrs:{href:t.get_android_url,target:"_blank"}},[s("img",{attrs:{src:t.assetUrl("assets/img/android-download.svg")}})])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("WooCommerce")))]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__('Enable this option to allow users to configure two-factor authentication from WooCommerce "My Account" page.'))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"sui-form-field"},[s("label",{staticClass:"sui-toggle"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.detect_woo,expression:"detect_woo"}],attrs:{type:"checkbox",id:"detect_woo",disabled:!t.is_woo_active,name:"detect_woo"},domProps:{checked:Array.isArray(t.detect_woo)?t._i(t.detect_woo,null)>-1:t.detect_woo},on:{change:function(e){var s=t.detect_woo,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&(t.detect_woo=s.concat([null])):n>-1&&(t.detect_woo=s.slice(0,n).concat(s.slice(n+1)))}else t.detect_woo=a}}}),t._v(" "),s("span",{staticClass:"sui-toggle-slider"}),t._v(" "),s("span",{staticClass:"sui-toggle-label",attrs:{for:"detect_woo"}},[t._v("\n                      "+t._s(t.__("Enable two-factor authentication for WooCommerce"))+"\n                    ")]),t._v(" "),t.is_woo_active?t._e():s("div",{staticClass:"sui-notice margin-top-10 sui-description"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",[t._v(t._s(t.__("WooCommerce must be active to use this feature.")))])])])])])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("Active Users"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Here’s a quick link to see which of your users have enabled two-factor authentication."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("a",{attrs:{target:"_blank",href:t.adminUrl("users.php?wpdef_two_fa=enabled")}},[t._v(t._s(t.__("View users")))]),t._v("\n                "+t._s(t.__("who have enabled this feature."))+"\n                "),t.is_multisite?s("div",{staticClass:"sui-notice sui-notice-info"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",[t._v(t._s(t.__("For multisite installations, you will see a list of all users who have enabled two-factor authentication on all subsites on the network Users screen.")))])])])]):t._e()])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("Deactivate"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Disable two-factor authentication on your website."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("submit-button2",{attrs:{"css-class":"sui-button-ghost"},on:{click:function(e){return t.$store.dispatch("toggle")}}},[s("i",{staticClass:"sui-icon-power-on-off",attrs:{"aria-hidden":"true"}}),t._v("\n                  "+t._s(t.__("Deactivate"))+"\n                ")])],1)])]),t._v(" "),s("div",{staticClass:"sui-box-footer"},[s("div",{staticClass:"sui-actions-right"},[s("submit-button2",{attrs:{"css-class":"sui-button-blue save-changes",disabled:t.custom_graphic_link&&!t.$store.getters.isValidImageLink}},[s("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v("\n                "+t._s(t.__("Save Changes"))+"\n              ")])],1)])])]),t._v(" "),s("div",{staticClass:"sui-modal sui-modal-lg"},[s("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"modal-lost-phone-email-config","aria-modal":"true","aria-labelledby":"modal-lost-phone-email-config-title","aria-describedby":"modal-lost-phone-email-config-desc"}},[s("div",{staticClass:"sui-box",attrs:{role:"document"}},[s("div",{staticClass:"sui-box-header"},[s("h3",{staticClass:"sui-box-title",attrs:{id:"modal-lost-phone-email-config-title"}},[t._v("\n                "+t._s(t.__("Edit Email"))+"\n              ")]),t._v(" "),s("div",{staticClass:"sui-actions-right"},[s("button",{staticClass:"sui-button-icon sui-button-float--right",attrs:{"data-modal-close":""}},[s("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Close this dialog.")))])])])]),t._v(" "),s("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("handleEmailTemplate","save")}}},[s("div",{staticClass:"sui-box-body"},[s("p",{attrs:{id:"modal-lost-phone-email-config-desc"}},[t._v("\n                  "+t._s(t.__("This email sends a temporary passcode when the user can’t access their phone."))+"\n                ")]),t._v(" "),s("div",{staticClass:"sui-row"},[s("div",{staticClass:"sui-col"},[s("div",{staticClass:"sui-form-field"},[s("label",{staticClass:"sui-label"},[t._v("\n                        "+t._s(t.__("Subject"))+"\n                      ")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.email_subject,expression:"email_subject"}],staticClass:"sui-form-control",attrs:{name:"subject",type:"text",id:"email_subject"},domProps:{value:t.email_subject},on:{input:function(e){e.target.composing||(t.email_subject=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"sui-col"},[s("div",{staticClass:"sui-form-field"},[s("label",{staticClass:"sui-label"},[t._v("\n                        "+t._s(t.__("Sender"))+"\n                      ")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.email_sender,expression:"email_sender"}],staticClass:"sui-form-control",attrs:{name:"sender",type:"text",id:"email_sender"},domProps:{value:t.email_sender},on:{input:function(e){e.target.composing||(t.email_sender=e.target.value)}}})])])]),t._v(" "),s("div",{staticClass:"sui-row"},[s("div",{staticClass:"sui-col"},[s("label",{staticClass:"sui-label"},[t._v("\n                      "+t._s(t.__("Body"))+"\n                    ")]),t._v(" "),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.email_body,expression:"email_body"}],staticClass:"sui-form-control",attrs:{name:"body",rows:"8",id:"email_body"},domProps:{value:t.email_body},on:{input:function(e){e.target.composing||(t.email_body=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"sui-row"},[s("div",{staticClass:"sui-col"},[s("label",{staticClass:"sui-label"},[t._v("\n                      "+t._s(t.__("Available variables"))+"\n                    ")]),t._v(" "),s("span",{staticClass:"sui-tag"},[s("strong",{domProps:{textContent:t._s(t.__("{{passcode}}"))}})]),t._v(" "),s("span",{staticClass:"sui-tag"},[s("strong",{domProps:{textContent:t._s(t.__("{{display_name}}"))}})])])])]),t._v(" "),s("div",{staticClass:"sui-box-footer"},[s("div",{staticClass:"sui-flex-child-right"},[s("button",{staticClass:"sui-button sui-button-ghost",attrs:{type:"button","data-modal-close":""}},[t._v("\n                    "+t._s(t.__("Cancel"))+"\n                  ")])]),t._v(" "),s("div",{staticClass:"sui-actions-right"},[s("submit-button2",{attrs:{"css-class":"sui-button"}},[t._v("\n                    "+t._s(t.__("Save Template"))+"\n                  ")]),t._v(" "),s("submit-button2",{attrs:{type:"button","css-class":"sui-button sui-button-blue"},on:{click:function(e){return t.$store.dispatch("handleEmailTemplate","send")}}},[t._v("\n                    "+t._s(t.__("Send Test"))+"\n                  ")])],1)])])])])])],1),t._v(" "),s("app-footer")],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"sui-upload-file"},[e("span")])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"sui-button-icon",attrs:{type:"button","data-modal-open":"modal-lost-phone-email-config","data-modal-mask":"false","data-esc-close":"true"}},[e("i",{staticClass:"sui-icon-pencil",attrs:{"aria-hidden":"true"}})])}],!1,null,null,null).exports;function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function v(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?m(Object(s),!0).forEach((function(e){g(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function g(t,e,s){return(e=function(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!==h(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===h(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var b={name:"two-fa",components:{SubmitButton2:o.a},mixins:[n.a],data:function(){return{whitelabel:defender.whitelabel,app:"google-authenticator",is_shown:"no",upgradeTitle:defender.upgrade_title}},methods:{bindUploader:function(){var t,e=this;jQuery(".file-picker").on("click",(function(){t||(t=wp.media.frames.file_frame=wp.media({title:e.__("Choose an image file"),button:{text:e.__("Choose File")},multiple:!1,library:{type:["image"]}})).on("select",(function(){var s=t.state().get("selection").first().toJSON();jQuery.inArray(s.mime,["image/jpeg","image/png","image/gif"])>-1?e.custom_graphic_url=s.url:Defender.showNotification("error",e.__("Invalid image file type"))})),t.open()}))}},computed:v(v({},Object(r.b)(["model.enabled","model.lost_phone","model.app_title","model.custom_graphic","model.custom_graphic_type","model.custom_graphic_url","model.custom_graphic_link","model.email_body","model.email_sender","model.email_subject","model.force_auth","model.force_auth_mess","model.force_auth_roles","model.user_roles","model.detect_woo","is_active","all_roles","count","custom_graphic_state","notices","new_feature","count_checked_roles","is_woo_active","is_multisite"])),{},{get_ios_url:function(){switch(this.app){case"google-authenticator":return"https://apps.apple.com/app/google-authenticator/id388497605";case"microsoft-authenticator":return"https://apps.apple.com/app/microsoft-authenticator/id983156458";case"authy":return"https://apps.apple.com/app/authy/id494168017"}},get_android_url:function(){switch(this.app){case"google-authenticator":return"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2";case"microsoft-authenticator":return"https://play.google.com/store/apps/details?id=com.azure.authenticator";case"authy":return"https://play.google.com/store/apps/details?id=com.authy.authy"}},download_app_text:function(){switch(this.app){case"google-authenticator":return this.__("Download Google Authenticator");case"microsoft-authenticator":return this.__("Download Microsoft Authenticator");case"authy":return this.__("Download Authy")}}}),mounted:function(){var t=this;this.bindUploader(),this.$store.dispatch("isAuthActiveNotice"),jQuery("#two-fa-auth-select").on("change",(function(e){t.app=e.target.value})),localStorage.is_shown&&(this.is_shown=localStorage.is_shown)},beforeMount:function(){this.$store.commit("init",two_fa)},watch:{is_shown:function(t){localStorage.is_shown=t}}},y=Object(f.a)(b,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"sui-wrap",class:[t.maybeHighContrast()],attrs:{id:"two-fa"}},[!1===t.enabled?s("div",{staticClass:"sui-box"},[s("div",{staticClass:"sui-box"},[s("div",{staticClass:"sui-box-header"},[s("h3",{staticClass:"sui-box-title"},[t._v("\n            "+t._s(t.__("Two Factor Authentication"))+"\n          ")])]),t._v(" "),s("div",{staticClass:"sui-message"},[t.maybeHideBranding()?t._e():s("img",{staticClass:"sui-image",attrs:{src:t.assetUrl("assets/img/disabled-module.png"),"aria-hidden":"true"}}),t._v(" "),s("div",{staticClass:"sui-message-content"},[s("p",[t._v("\n              "+t._s(t.__("Beef up your website’s security with two-factor authentication. Add an extra step in the login process so that users are required to enter a password and an app-generated passcode using their phone – the best protection against brute force attacks."))+"\n            ")]),t._v(" "),s("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("toggle")}}},[s("submit-button2",{attrs:{"css-class":"sui-button-blue activate"}},[t._v("\n                "+t._s(t.__("Activate"))+"\n              ")])],1)])])])]):s("div",[s("div",{staticClass:"sui-header"},[s("h1",{staticClass:"sui-header-title"},[t._v("\n          "+t._s(t.__("Two-Factor Authentication"))+"\n        ")]),t._v(" "),s("doc-link",{attrs:{link:"?utm_source=defender&utm_medium=plugin&utm_campaign=defender_2fa_docs#two-factor-authentication"}})],1),t._v(" "),s("summary-box",{attrs:{"css-class":"sui-summary-sm"}},[s("div",{staticClass:"sui-summary-segment"},[s("div",{staticClass:"sui-summary-details"},[s("span",{staticClass:"sui-summary-large",domProps:{textContent:t._s(t.count)}}),t._v(" "),s("span",{staticClass:"sui-summary-sub"},[t._v("\n              "+t._s(t.multipleTranslation("User enabled authentication","Users enabled authentication",t.count))+"\n\t\t\t\t\t")])])]),t._v(" "),s("div",{staticClass:"sui-summary-segment"},[s("ul",{staticClass:"sui-list"},[s("li",[s("span",{staticClass:"sui-list-label"},[t._v(t._s(t.__("User roles")))]),t._v(" "),s("span",{staticClass:"sui-list-detail"},[t._v(t._s(t.count_checked_roles))])]),t._v(" "),s("li",[s("span",{staticClass:"sui-list-label"},[t._v(t._s(t.__("Custom Graphic")))]),t._v(" "),s("span",{staticClass:"sui-list-detail"},[s("span",{staticClass:"sui-tag sui-tag-pro"},[t._v(t._s(t.__("Pro")))])])])])])]),t._v(" "),0==t.whitelabel.hide_doc_link&&"no"===t.is_shown?s("div",{staticClass:"sui-notice sui-notice-blue"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("p",{domProps:{innerHTML:t._s(t.new_feature)}})]),t._v(" "),s("div",{staticClass:"sui-notice-actions"},[s("button",{staticClass:"sui-button-icon",on:{click:function(e){t.is_shown="yes"}}},[s("i",{staticClass:"sui-icon-check",attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Close this notice")))])])])])]):t._e(),t._v(" "),s("div",{staticClass:"sui-box"},[s("div",{staticClass:"sui-box-header"},[s("h3",{staticClass:"sui-box-title"},[t._v("\n            "+t._s(t.__("Two Factor Authentication"))+"\n          ")])]),t._v(" "),s("form",{attrs:{method:"post",id:"advanced-settings-frm"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("saveSettings")}}},[s("div",{staticClass:"sui-box-body"},[s("p",[t._v("\n              "+t._s(t.__("Configure your two-factor authentication settings. Our recommendations are enabled by default."))+"\n            ")]),t._v(" "),t.notices.length?s("div",{staticClass:"sui-notice sui-notice-error"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",t._l(t.notices,(function(e){return s("span",[t._v("\n                        "+t._s(e)+"\n                    ")])})),0)])])]):t._e(),t._v(" "),t.$store.getters.isActive?s("div",{staticClass:"sui-notice sui-notice-success"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",[t._v(t._s(t.__("Two-factor authentication is now active."))+" "+t._s(t.__("User roles with this feature enabled must visit their "))+"\n                    "),s("a",{attrs:{href:t.adminUrl("profile.php#defender-security")}},[t._v(t._s(t.__("Profile page")))]),t._v(" "+t._s(t.__("to finish setting up authentication.")))])])])]):s("div",{staticClass:"sui-notice sui-notice-warning"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",[t._v(t._s(t.__("Two-factor authentication is currently inactive. Configure and save your settings to finish setup.")))])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("User Roles")))]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Choose the user roles you want to enable two-factor authentication for."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"sui-field-list"},[s("div",{staticClass:"sui-field-list-header"},[s("h3",{staticClass:"sui-field-list-title"},[t._v("\n                      "+t._s(t.__("User role"))+"\n                    ")])]),t._v(" "),s("div",{staticClass:"sui-field-list-body"},t._l(t.all_roles,(function(e,i){return s("div",{staticClass:"sui-field-list-item"},[s("label",{staticClass:"sui-field-list-item-label",attrs:{for:"toggle_"+i},domProps:{innerHTML:t._s(e)}}),t._v(" "),s("label",{staticClass:"sui-toggle"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.user_roles,expression:"user_roles"}],attrs:{type:"checkbox",id:"toggle_"+i},domProps:{value:i,checked:Array.isArray(t.user_roles)?t._i(t.user_roles,i)>-1:t.user_roles},on:{change:function(e){var s=t.user_roles,a=e.target,n=!!a.checked;if(Array.isArray(s)){var o=i,r=t._i(s,o);a.checked?r<0&&(t.user_roles=s.concat([o])):r>-1&&(t.user_roles=s.slice(0,r).concat(s.slice(r+1)))}else t.user_roles=n}}}),t._v(" "),s("span",{staticClass:"sui-toggle-slider"})])])})),0)])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("Force Authentication"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("By default, two-factor authentication is optional for users. This setting forces users to activate two-factor."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"sui-form-field"},[s("label",{staticClass:"sui-toggle"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.force_auth,expression:"force_auth"}],staticClass:"toggle-checkbox",attrs:{role:"presentation",type:"checkbox",name:"force_auth",id:"force_auth"},domProps:{checked:Array.isArray(t.force_auth)?t._i(t.force_auth,null)>-1:t.force_auth},on:{change:function(e){var s=t.force_auth,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&(t.force_auth=s.concat([null])):n>-1&&(t.force_auth=s.slice(0,n).concat(s.slice(n+1)))}else t.force_auth=a}}}),t._v(" "),s("span",{staticClass:"sui-toggle-slider"}),t._v(" "),s("span",{staticClass:"sui-toggle-label",attrs:{id:"force_auth_label"}},[t._v("\n                      "+t._s(t.__("Force users to log in with two-factor authentication"))+"\n                    ")])]),t._v(" "),s("span",{staticClass:"sui-description sui-toggle-content"},[t._v("\n                    "+t._s(t.__("Note: Users will be forced to set up two-factor when they next login."))+"\n                  ")]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.force_auth,expression:"force_auth===true"}],staticClass:"sui-border-frame sui-toggle-content",attrs:{id:"force_auth_roles"}},[s("strong",[t._v(t._s(t.__("User Roles")))]),t._v(" "),s("ul",t._l(t.all_roles,(function(e,i){return s("li",{directives:[{name:"show",rawName:"v-show",value:t.user_roles.includes(i),expression:"user_roles.includes(role)"}],key:i},[s("label",{staticClass:"sui-checkbox",attrs:{for:"toggle_force_"+i}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.force_auth_roles,expression:"force_auth_roles"}],attrs:{type:"checkbox",id:"toggle_force_"+i},domProps:{value:i,checked:Array.isArray(t.force_auth_roles)?t._i(t.force_auth_roles,i)>-1:t.force_auth_roles},on:{change:function(e){var s=t.force_auth_roles,a=e.target,n=!!a.checked;if(Array.isArray(s)){var o=i,r=t._i(s,o);a.checked?r<0&&(t.force_auth_roles=s.concat([o])):r>-1&&(t.force_auth_roles=s.slice(0,r).concat(s.slice(r+1)))}else t.force_auth_roles=n}}}),t._v(" "),s("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",[t._v(t._s(e))])])])})),0),t._v(" "),s("strong",[t._v(t._s(t.__("Custom warning message")))]),t._v(" "),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.force_auth_mess,expression:"force_auth_mess"}],staticClass:"sui-form-control",attrs:{name:"force_auth_mess"},domProps:{value:t.force_auth_mess},on:{input:function(e){e.target.composing||(t.force_auth_mess=e.target.value)}}}),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                      "+t._s(t.__("Note: This is shown in the users Profile area indicating they must use two-factor authentication."))+"\n                    ")])])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row mb-0 border-b-0"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("App Title"))+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("Customise the title that appears in the Authenticator app for this website."))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("label",{staticClass:"sui-label"},[t._v("\n                  "+t._s(t.__("Custom Title"))+"\n                ")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.app_title,expression:"app_title"}],staticClass:"sui-form-control sui-input-md",domProps:{value:t.app_title},on:{input:function(e){e.target.composing||(t.app_title=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"sui-box-body sui-upsell-items sui-flushed border-t border-silver-light border-b"},[s("div",{staticClass:"sui-box-settings-row sui-disabled"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label-with-tag"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("Custom Graphic"))+" "),s("span",{staticClass:"sui-tag sui-tag-pro"},[t._v(t._s(t.__("Pro")))])]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.__("By default, Defender’s icon appears above the login fields. You can upload your own branding, or turn this feature off."))+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("label",{staticClass:"sui-toggle"},[s("input",{staticClass:"toggle-checkbox",attrs:{disabled:"",role:"presentation",type:"checkbox",name:"custom_graphic",id:"custom_graphic","aria-labelledby":"custom_graphic_label"}}),t._v(" "),s("span",{staticClass:"sui-toggle-slider",attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",{staticClass:"sui-toggle-label",attrs:{id:"custom_graphic_label",for:"custom_graphic"}},[t._v("\n                      "+t._s(t.__("Enable custom graphics above login fields"))+"\n                    ")])])])])]),t._v(" "),s("div",{staticClass:"sui-box-body"},[s("div",{staticClass:"sui-box-settings-row sui-upsell-row"},[s("div",{staticClass:"sui-upsell-notice p-0 min-w-full"},[s("p",[t._v("\n                    "+t._s(t.__("Remove our branding and whitelabel two-factor authentication with Defender Pro. This feature is included in a WPMU DEV membership with 24/7 support and lots of handy site management tools."))),s("br"),t._v(" "),s("a",{staticClass:"premium-button sui-button sui-button-purple",attrs:{target:"_blank",href:t.campaign_url("defender_2fa_customgraphic_upsell")}},[t._v(t._s(t.upgradeTitle))])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("Emails"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Customize the default copy for emails the two-factor feature sends to users."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"sui-field-list"},[s("div",{staticClass:"sui-field-list-header"},[s("h3",{staticClass:"sui-field-list-title"},[t._v("\n                        "+t._s(t.__("Email"))+"\n                      ")])]),t._v(" "),s("div",{staticClass:"sui-field-list-body"},[s("div",{staticClass:"sui-field-list-item"},[s("label",{staticClass:"sui-field-list-item-label"},[t._v("\n                          "+t._s(t.__("Fallback email one time password"))+"\n                        ")]),t._v(" "),t._m(0)])])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("App Download"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Need the app? Here’s links to the official iOS and Android authenticator applications."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"w-48"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.app,expression:"app"}],staticClass:"sui-select",attrs:{id:"two-fa-auth-select","data-width":"220px","data-minimum-results-for-search":"Infinity"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.app=e.target.multiple?s:s[0]}}},[s("option",{attrs:{value:"google-authenticator"}},[t._v(t._s(t.__("Google Authenticator")))]),t._v(" "),s("option",{attrs:{value:"microsoft-authenticator"}},[t._v(t._s(t.__("Microsoft Authenticator")))]),t._v(" "),s("option",{attrs:{value:"authy"}},[t._v(t._s(t.__("Authy")))])])]),t._v(" "),s("div",{staticClass:"sui-border-frame"},[s("span",{staticClass:"sui-description margin-bottom-10 no-margin-top",domProps:{textContent:t._s(t.download_app_text)}}),t._v(" "),s("a",{attrs:{target:"_blank",href:t.get_ios_url}},[s("img",{attrs:{src:t.assetUrl("assets/img/ios-download.svg")}})]),t._v(" "),s("a",{attrs:{target:"_blank",href:t.get_android_url}},[s("img",{attrs:{src:t.assetUrl("assets/img/android-download.svg")}})])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v(t._s(t.__("WooCommerce")))]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__('Enable this option to allow users to configure two-factor authentication from WooCommerce "My Account" page.'))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("div",{staticClass:"sui-form-field"},[s("label",{staticClass:"sui-toggle"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.detect_woo,expression:"detect_woo"}],attrs:{type:"checkbox",id:"detect_woo",disabled:!t.is_woo_active,name:"detect_woo"},domProps:{checked:Array.isArray(t.detect_woo)?t._i(t.detect_woo,null)>-1:t.detect_woo},on:{change:function(e){var s=t.detect_woo,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&(t.detect_woo=s.concat([null])):n>-1&&(t.detect_woo=s.slice(0,n).concat(s.slice(n+1)))}else t.detect_woo=a}}}),t._v(" "),s("span",{staticClass:"sui-toggle-slider"}),t._v(" "),s("span",{staticClass:"sui-toggle-label",attrs:{for:"detect_woo"}},[t._v("\n                      "+t._s(t.__("Enable two-factor authentication for WooCommerce"))+"\n                    ")]),t._v(" "),t.is_woo_active?t._e():s("div",{staticClass:"sui-notice margin-top-10 sui-description"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",[t._v(t._s(t.__("WooCommerce must be active to use this feature.")))])])])])])])])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("Active Users"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Here’s a quick link to see which of your users have enabled two-factor authentication."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("a",{attrs:{target:"_blank",href:t.adminUrl("users.php?wpdef_two_fa=enabled")}},[t._v(t._s(t.__("View users")))]),t._v("\n                  "+t._s(t.__("who have enabled this feature."))+"\n                  "),t.is_multisite?s("div",{staticClass:"sui-notice sui-notice-info"},[s("div",{staticClass:"sui-notice-content"},[s("div",{staticClass:"sui-notice-message"},[s("i",{staticClass:"sui-notice-icon sui-icon-info sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("p",[t._v(t._s(t.__("For multisite installations, you will see a list of all users who have enabled two-factor authentication on all subsites on the network Users screen.")))])])])]):t._e()])]),t._v(" "),s("div",{staticClass:"sui-box-settings-row"},[s("div",{staticClass:"sui-box-settings-col-1"},[s("span",{staticClass:"sui-settings-label"},[t._v("\n                  "+t._s(t.__("Deactivate"))+"\n                ")]),t._v(" "),s("span",{staticClass:"sui-description"},[t._v("\n                  "+t._s(t.__("Disable two-factor authentication on your website."))+"\n                ")])]),t._v(" "),s("div",{staticClass:"sui-box-settings-col-2"},[s("submit-button2",{attrs:{"css-class":"sui-button-ghost"},on:{click:function(e){return t.$store.dispatch("toggle")}}},[s("i",{staticClass:"sui-icon-power-on-off",attrs:{"aria-hidden":"true"}}),t._v("\n                    "+t._s(t.__("Deactivate"))+"\n                  ")])],1)])])]),t._v(" "),s("div",{staticClass:"sui-box-footer"},[s("div",{staticClass:"sui-actions-right"},[s("submit-button2",{attrs:{"css-class":"sui-button-blue save-changes"}},[s("i",{staticClass:"sui-icon-save",attrs:{"aria-hidden":"true"}}),t._v("\n                "+t._s(t.__("Save Changes"))+"\n              ")])],1)])])]),t._v(" "),s("div",{staticClass:"sui-modal sui-modal-lg"},[s("div",{staticClass:"sui-modal-content",attrs:{role:"dialog",id:"modal-lost-phone-email-config","aria-modal":"true","aria-labelledby":"modal-lost-phone-email-config-title","aria-describedby":"modal-lost-phone-email-config-desc"}},[s("div",{staticClass:"sui-box",attrs:{role:"document"}},[s("div",{staticClass:"sui-box-header"},[s("h3",{staticClass:"sui-box-title",attrs:{id:"modal-lost-phone-email-config-title"}},[t._v("\n                "+t._s(t.__("Edit Email"))+"\n              ")]),t._v(" "),s("div",{staticClass:"sui-actions-right"},[s("button",{staticClass:"sui-button-icon sui-button-float--right",attrs:{"data-modal-close":""}},[s("i",{staticClass:"sui-icon-close sui-md",attrs:{"aria-hidden":"true"}}),t._v(" "),s("span",{staticClass:"sui-screen-reader-text"},[t._v(t._s(t.__("Close this dialog.")))])])])]),t._v(" "),s("form",{attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.$store.dispatch("handleEmailTemplate","save")}}},[s("div",{staticClass:"sui-box-body"},[s("p",{attrs:{id:"modal-lost-phone-email-config-desc"}},[t._v("\n                  "+t._s(t.__("This email sends a temporary passcode when the user can’t access their phone."))+"\n                ")]),t._v(" "),s("div",{staticClass:"sui-row"},[s("div",{staticClass:"sui-col"},[s("div",{staticClass:"sui-form-field"},[s("label",{staticClass:"sui-label"},[t._v("\n                        "+t._s(t.__("Subject"))+"\n                      ")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.email_subject,expression:"email_subject"}],staticClass:"sui-form-control",attrs:{name:"subject",type:"text",id:"email_subject"},domProps:{value:t.email_subject},on:{input:function(e){e.target.composing||(t.email_subject=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"sui-col"},[s("div",{staticClass:"sui-form-field"},[s("label",{staticClass:"sui-label"},[t._v("\n                        "+t._s(t.__("Sender"))+"\n                      ")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.email_sender,expression:"email_sender"}],staticClass:"sui-form-control",attrs:{name:"sender",type:"text",id:"email_sender"},domProps:{value:t.email_sender},on:{input:function(e){e.target.composing||(t.email_sender=e.target.value)}}})])])]),t._v(" "),s("div",{staticClass:"sui-row"},[s("div",{staticClass:"sui-col"},[s("label",{staticClass:"sui-label"},[t._v("\n                      "+t._s(t.__("Body"))+"\n                    ")]),t._v(" "),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.email_body,expression:"email_body"}],staticClass:"sui-form-control",attrs:{name:"body",rows:"8",id:"email_body"},domProps:{value:t.email_body},on:{input:function(e){e.target.composing||(t.email_body=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"sui-row"},[s("div",{staticClass:"sui-col"},[s("label",{staticClass:"sui-label"},[t._v("\n                      "+t._s(t.__("Available variables"))+"\n                    ")]),t._v(" "),s("span",{staticClass:"sui-tag"},[s("strong",{domProps:{textContent:t._s(t.__("{{passcode}}"))}})]),t._v(" "),s("span",{staticClass:"sui-tag"},[s("strong",{domProps:{textContent:t._s(t.__("{{display_name}}"))}})])])])]),t._v(" "),s("div",{staticClass:"sui-box-footer"},[s("div",{staticClass:"sui-flex-child-right"},[s("button",{staticClass:"sui-button sui-button-ghost",attrs:{type:"button","data-modal-close":""}},[t._v("\n                    "+t._s(t.__("Cancel"))+"\n                  ")])]),t._v(" "),s("div",{staticClass:"sui-actions-right"},[s("submit-button2",{attrs:{"css-class":"sui-button"}},[t._v("\n                    "+t._s(t.__("Save Template"))+"\n                  ")]),t._v(" "),s("submit-button2",{attrs:{type:"button","css-class":"sui-button sui-button-blue"},on:{click:function(e){return t.$store.dispatch("handleEmailTemplate","send")}}},[t._v("\n                    "+t._s(t.__("Send Test"))+"\n                  ")])],1)])])])])])],1),t._v(" "),s("app-footer")],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"sui-button-icon",attrs:{type:"button","data-modal-open":"modal-lost-phone-email-config","data-modal-mask":"false","data-esc-close":"true"}},[e("i",{staticClass:"sui-icon-pencil",attrs:{"aria-hidden":"true"}})])}],!1,null,null,null).exports,w=s(20),C=s(14),x=s(21),k=s(38),A=s(22),j=s(9),S=s(7),O={model:{enabled:!1,lost_phone:!1,force_auth:!1,force_auth_mess:"",user_roles:[],force_auth_roles:[],custom_graphic:!1,custom_graphic_type:"upload",custom_graphic_url:"",custom_graphic_link:"",email_subject:"",email_sender:"",email_body:"",app_title:"",detect_woo:!1},all_roles:[],doing_ajax:!1,custom_graphic_state:!1,notices:[],isAuthActiveNotice:!1,new_feature:"",count_checked_roles:0,is_woo_active:!1,is_multisite:!1},T={saveSettings:function(t){t.commit("doingAjax"),S.a(O.routes.save_settings,O.nonces.save_settings,t.state.model).then((function(e){t.commit("ajaxDone"),t.commit("init",e),t.commit("isAuthActiveNotice")}))},toggle:function(t){t.commit("doingAjax");var e=Object.assign({},O.model);e.enabled=!e.enabled,S.a(O.routes.save_settings,O.nonces.save_settings,e).then((function(t){setTimeout((function(){return location.reload()}),500)}))},handleEmailTemplate:function(t,e){"send"===e?(t.commit("doingAjax"),S.a(O.routes.send_test_email,O.nonces.send_test_email,{email_subject:t.state.model.email_subject,email_sender:t.state.model.email_sender,email_body:t.state.model.email_body}).then((function(e){t.commit("ajaxDone")}))):t.dispatch("saveSettings").then((function(){SUI.closeModal()}))},isAuthActiveNotice:function(t){t.commit("isAuthActiveNotice")},clearCustomGraphicLink:function(t){t.commit("clearCustomGraphicLink")}},E={getField:r.a,isActive:function(t){return!0===t.model.enabled&&!0===t.isAuthActiveNotice},isValidImageLink:function(t){return/(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/.test(t.model.custom_graphic_link)}},P={init:function(t,e){t.model=e.model,t.is_active=e.is_active,t.all_roles=e.all_roles,t.nonces=e.nonces,t.routes=e.routes,t.count=e.count,t.custom_graphic_state=e.model.custom_graphic,t.notices=e.notices,t.new_feature=e.new_feature,t.count_checked_roles=e.count_checked_roles,t.is_woo_active=e.is_woo_active,t.is_multisite=e.is_multisite},updateField:r.c,doingAjax:function(t){t.doing_ajax=!0},ajaxDone:function(t){t.doing_ajax=!1},isAuthActiveNotice:function(t){t.isAuthActiveNotice=t.model.user_roles.length>0},clearCustomGraphicLink:function(t){t.model.custom_graphic_link=""}},N=new j.a.Store({state:O,mutations:P,getters:E,actions:T});a.a.component("submit-button",w.a),a.a.component("app-footer",C.a),a.a.component("doc-link",x.a),a.a.component("summary-box",k.a),a.a.component("opcache-notice",A.a);new a.a({el:"#defender",store:N,components:{two_fa:_,two_fa_free:y},render:function(t){return"0"===defender.is_free?t(_):t(y)}})},28:function(t,e,s){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},29:function(t,e,s){"use strict";var i=s(6);t.exports=function(t,e){e=e||{};var s={},a=["url","method","data"],n=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],r=["validateStatus"];function c(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function u(a){i.isUndefined(e[a])?i.isUndefined(t[a])||(s[a]=c(void 0,t[a])):s[a]=c(t[a],e[a])}i.forEach(a,(function(t){i.isUndefined(e[t])||(s[t]=c(void 0,e[t]))})),i.forEach(n,u),i.forEach(o,(function(a){i.isUndefined(e[a])?i.isUndefined(t[a])||(s[a]=c(void 0,t[a])):s[a]=c(void 0,e[a])})),i.forEach(r,(function(i){i in e?s[i]=c(t[i],e[i]):i in t&&(s[i]=c(void 0,t[i]))}));var l=a.concat(n).concat(o).concat(r),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return i.forEach(d,u),s}},30:function(t,e,s){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},31:function(t,e,s){t.exports=s(39)},33:function(t,e,s){var i=s(17),a=s(34);s(18);function n(t){return null==t}function o(t){(t=function(t){var e={};for(var s in t)e[s]=t[s];return e}(t||{})).whiteList=t.whiteList||i.whiteList,t.onAttr=t.onAttr||i.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||i.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||i.safeAttrValue,this.options=t}o.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,s=e.whiteList,i=e.onAttr,o=e.onIgnoreAttr,r=e.safeAttrValue;return a(t,(function(t,e,a,c,u){var l=s[a],d=!1;if(!0===l?d=l:"function"==typeof l?d=l(c):l instanceof RegExp&&(d=l.test(c)),!0!==d&&(d=!1),c=r(a,c)){var p,f={position:e,sourcePosition:t,source:u,isWhite:d};return d?n(p=i(a,c,f))?a+":"+c:p:n(p=o(a,c,f))?void 0:p}}))},t.exports=o},34:function(t,e,s){var i=s(18);t.exports=function(t,e){";"!==(t=i.trimRight(t))[t.length-1]&&(t+=";");var s=t.length,a=!1,n=0,o=0,r="";function c(){if(!a){var s=i.trim(t.slice(n,o)),c=s.indexOf(":");if(-1!==c){var u=i.trim(s.slice(0,c)),l=i.trim(s.slice(c+1));if(u){var d=e(n,r.length,u,l,s);d&&(r+=d+"; ")}}}n=o+1}for(;o<s;o++){var u=t[o];if("/"===u&&"*"===t[o+1]){var l=t.indexOf("*/",o+2);if(-1===l)break;n=(o=l+1)+1,a=!1}else"("===u?a=!0:")"===u?a=!1:";"===u?a||c():"\n"===u&&c()}return i.trim(r)}},35:function(t,e,s){var i=s(11).FilterCSS,a=s(16),n=s(19),o=n.parseTag,r=n.parseAttr,c=s(12);function u(t){return null==t}function l(t){(t=function(t){var e={};for(var s in t)e[s]=t[s];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=a.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e={};for(var s in t)Array.isArray(t[s])?e[s.toLowerCase()]=t[s].map((function(t){return t.toLowerCase()})):e[s.toLowerCase()]=t[s];return e}(t.whiteList||t.allowList):t.whiteList=a.whiteList,t.onTag=t.onTag||a.onTag,t.onTagAttr=t.onTagAttr||a.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||a.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||a.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||a.safeAttrValue,t.escapeHtml=t.escapeHtml||a.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new i(t.css))}l.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,s=e.whiteList,i=e.onTag,n=e.onIgnoreTag,l=e.onTagAttr,d=e.onIgnoreTagAttr,p=e.safeAttrValue,f=e.escapeHtml,_=this.cssFilter;e.stripBlankChar&&(t=a.stripBlankChar(t)),e.allowCommentTag||(t=a.stripCommentTag(t));var h=!1;e.stripIgnoreTagBody&&(h=a.StripTagBody(e.stripIgnoreTagBody,n),n=h.onIgnoreTag);var m=o(t,(function(t,e,a,o,h){var m={sourcePosition:t,position:e,isClosing:h,isWhite:Object.prototype.hasOwnProperty.call(s,a)},v=i(a,o,m);if(!u(v))return v;if(m.isWhite){if(m.isClosing)return"</"+a+">";var g=function(t){var e=c.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var s="/"===(t=c.trim(t.slice(e+1,-1)))[t.length-1];return s&&(t=c.trim(t.slice(0,-1))),{html:t,closing:s}}(o),b=s[a],y=r(g.html,(function(t,e){var s=-1!==c.indexOf(b,t),i=l(a,t,e,s);return u(i)?s?(e=p(a,t,e,_))?t+'="'+e+'"':t:u(i=d(a,t,e,s))?void 0:i:i}));return o="<"+a,y&&(o+=" "+y),g.closing&&(o+=" /"),o+=">"}return u(v=n(a,o,m))?f(o):v}),f);return h&&(m=h.remove(m)),m},t.exports=l},36:function(t,e){var s,i,a=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(t){if(s===setTimeout)return setTimeout(t,0);if((s===n||!s)&&setTimeout)return s=setTimeout,setTimeout(t,0);try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}!function(){try{s="function"==typeof setTimeout?setTimeout:n}catch(t){s=n}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var c,u=[],l=!1,d=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&f())}function f(){if(!l){var t=r(p);l=!0;for(var e=u.length;e;){for(c=u,u=[];++d<e;)c&&c[d].run();d=-1,e=u.length}c=null,l=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function _(t,e){this.fun=t,this.array=e}function h(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)e[s-1]=arguments[s];u.push(new _(t,e)),1!==u.length||l||r(f)},_.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(t){return[]},a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},37:function(t,e){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch(t){"object"==typeof window&&(s=window)}t.exports=s},38:function(t,e,s){"use strict";var i={mixins:[s(2).a],props:["css-class"],name:"summary-box",data:function(){return{whitelabel:defender.whitelabel}},computed:{summary_class:function(){return{"sui-unbranded":!0===this.whitelabel.hide_branding&&0===this.whitelabel.hero_image.length,"sui-rebranded":!0===this.whitelabel.hide_branding&&this.whitelabel.hero_image.length>0}},css_class:function(){return this.cssClass},rebrand_img:function(){if(this.whitelabel.hero_image.length>0)return{"background-image":"url('"+this.whitelabel.hero_image+"')"}}}},a=s(1),n=Object(a.a)(i,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"sui-box sui-summary",class:[this.summary_class,this.css_class]},[e("div",{staticClass:"sui-summary-image-space",style:this.rebrand_img,attrs:{"aria-hidden":"true"}}),this._v(" "),this._t("default")],2)}),[],!1,null,null,null);e.a=n.exports},39:function(t,e,s){"use strict";var i=s(6),a=s(23),n=s(40),o=s(29);function r(t){var e=new n(t),s=a(n.prototype.request,e);return i.extend(s,n.prototype,e),i.extend(s,e),s}var c=r(s(15));c.Axios=n,c.create=function(t){return r(o(c.defaults,t))},c.Cancel=s(30),c.CancelToken=s(54),c.isCancel=s(28),c.all=function(t){return Promise.all(t)},c.spread=s(55),c.isAxiosError=s(56),t.exports=c,t.exports.default=c},4:function(t,e,s){"use strict";function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var s=[],i=!0,a=!1,n=void 0;try{for(var o,r=t[Symbol.iterator]();!(i=(o=r.next()).done)&&(s.push(o.value),!e||s.length!==e);i=!0);}catch(t){a=!0,n=t}finally{try{i||null==r.return||r.return()}finally{if(a)throw n}}return s}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,i=new Array(e);s<e;s++)i[s]=t[s];return i}function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce((function(t,e){var s=e.split(".").slice(-1)[0];if(t[s])throw new Error("The key `".concat(s,"` is already in use."));return t[s]=e,t}),{})}function o(t){return function(){for(var e=arguments.length,s=new Array(e),a=0;a<e;a++)s[a]=arguments[a];var n="string"==typeof s[0]?[].concat(s):[""].concat(s),o=i(n,4),r=o[0],c=o[1],u=o[2],l=o[3];return r.length&&"/"!==r.charAt(r.length-1)&&(r+="/"),u="".concat(r).concat(u||"getField"),l="".concat(r).concat(l||"updateField"),t(r,c,u,l)}}function r(t){return function(e){return e.split(/[.[\]]+/).reduce((function(t,e){return t[e]}),t)}}function c(t,e){var s=e.path,i=e.value;s.split(/[.[\]]+/).reduce((function(t,e,s,a){return a.length===s+1&&(t[e]=i),t[e]}),t)}s.d(e,"a",(function(){return r})),s.d(e,"b",(function(){return u})),s.d(e,"c",(function(){return c}));var u=o((function(t,e,s,i){var a=Array.isArray(e)?n(e):e;return Object.keys(a).reduce((function(t,e){var n=a[e],o={get:function(){return this.$store.getters[s](n)},set:function(t){this.$store.commit(i,{path:n,value:t})}};return t[e]=o,t}),{})}));o((function(t,e,s,i){var a=Array.isArray(e)?n(e):e;return Object.keys(a).reduce((function(t,e){var n=a[e];return t[e]={get:function(){var t,e=this.$store;return(t=e.getters[s](n),Object.keys(t).map((function(e){return[e,t[e]]}))).map((function(t){return Object.keys(t[1]).reduce((function(a,o){var r="".concat(n,"[").concat(t[0],"].").concat(o);return Object.defineProperty(a,o,{get:function(){return e.getters[s](r)},set:function(t){e.commit(i,{path:r,value:t})}})}),{})}))}},t}),{})}))},40:function(t,e,s){"use strict";var i=s(6),a=s(24),n=s(41),o=s(42),r=s(29),c=s(52),u=c.validators;function l(t){this.defaults=t,this.interceptors={request:new n,response:new n}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=r(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var s=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var a,n=[];if(this.interceptors.response.forEach((function(t){n.push(t.fulfilled,t.rejected)})),!i){var l=[o,void 0];for(Array.prototype.unshift.apply(l,s),l=l.concat(n),a=Promise.resolve(t);l.length;)a=a.then(l.shift(),l.shift());return a}for(var d=t;s.length;){var p=s.shift(),f=s.shift();try{d=p(d)}catch(t){f(t);break}}try{a=o(d)}catch(t){return Promise.reject(t)}for(;n.length;)a=a.then(n.shift(),n.shift());return a},l.prototype.getUri=function(t){return t=r(this.defaults,t),a(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,s){return this.request(r(s||{},{method:t,url:e,data:(s||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,s,i){return this.request(r(i||{},{method:t,url:e,data:s}))}})),t.exports=l},41:function(t,e,s){"use strict";var i=s(6);function a(){this.handlers=[]}a.prototype.use=function(t,e,s){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!s&&s.synchronous,runWhen:s?s.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},a.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=a},42:function(t,e,s){"use strict";var i=s(6),a=s(43),n=s(28),o=s(15);function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return r(t),t.headers=t.headers||{},t.data=a.call(t,t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return r(t),e.data=a.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return n(e)||(r(t),e&&e.response&&(e.response.data=a.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},43:function(t,e,s){"use strict";var i=s(6),a=s(15);t.exports=function(t,e,s){var n=this||a;return i.forEach(s,(function(s){t=s.call(n,t,e)})),t}},44:function(t,e,s){"use strict";var i=s(6);t.exports=function(t,e){i.forEach(t,(function(s,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=s,delete t[i])}))}},45:function(t,e,s){"use strict";var i=s(27);t.exports=function(t,e,s){var a=s.config.validateStatus;s.status&&a&&!a(s.status)?e(i("Request failed with status code "+s.status,s.config,null,s.request,s)):t(s)}},46:function(t,e,s){"use strict";var i=s(6);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,s,a,n,o){var r=[];r.push(t+"="+encodeURIComponent(e)),i.isNumber(s)&&r.push("expires="+new Date(s).toGMTString()),i.isString(a)&&r.push("path="+a),i.isString(n)&&r.push("domain="+n),!0===o&&r.push("secure"),document.cookie=r.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},47:function(t,e,s){"use strict";var i=s(48),a=s(49);t.exports=function(t,e){return t&&!i(e)?a(t,e):e}},48:function(t,e,s){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},49:function(t,e,s){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},5:function(t,e,s){"use strict";var i={name:"submit-button2",props:["css-class","disabled","type","is_icon","doing_ajax"],computed:{getClass:function(){var t=["sui-button"];return!0===this.is_icon&&(t=[]),t.push(this.cssClass),!0===(void 0===this.doing_ajax?this.$store.state.doing_ajax:this.doing_ajax)&&t.push("sui-button-onload"),t},isDisable:function(){return!0===this.disabled},buttonType:function(){return""===this.type?"submit":this.type}}},a=s(1),n=Object(a.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("button",{class:t.getClass,attrs:{type:t.buttonType,disabled:t.isDisable},on:{click:function(e){return t.$emit("click")}}},[s("span",{staticClass:"sui-loading-text"},[t._t("default")],2),t._v(" "),s("i",{staticClass:"sui-icon-loader sui-loading",attrs:{"aria-hidden":"true"}})])}),[],!1,null,null,null);e.a=n.exports},50:function(t,e,s){"use strict";var i=s(6),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,s,n,o={};return t?(i.forEach(t.split("\n"),(function(t){if(n=t.indexOf(":"),e=i.trim(t.substr(0,n)).toLowerCase(),s=i.trim(t.substr(n+1)),e){if(o[e]&&a.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([s]):o[e]?o[e]+", "+s:s}})),o):o}},51:function(t,e,s){"use strict";var i=s(6);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");function a(t){var i=t;return e&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}return t=a(window.location.href),function(e){var s=i.isString(e)?a(e):e;return s.protocol===t.protocol&&s.host===t.host}}():function(){return!0}},52:function(t,e,s){"use strict";var i=s(53),a={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){a[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}}));var n={},o=i.version.split(".");function r(t,e){for(var s=e?e.split("."):o,i=t.split("."),a=0;a<3;a++){if(s[a]>i[a])return!0;if(s[a]<i[a])return!1}return!1}a.transitional=function(t,e,s){var a=e&&r(e);function o(t,e){return"[Axios v"+i.version+"] Transitional option '"+t+"'"+e+(s?". "+s:"")}return function(s,i,r){if(!1===t)throw new Error(o(i," has been removed in "+e));return a&&!n[i]&&(n[i]=!0,console.warn(o(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(s,i,r)}},t.exports={isOlderVersion:r,assertOptions:function(t,e,s){if("object"!=typeof t)throw new TypeError("options must be an object");for(var i=Object.keys(t),a=i.length;a-- >0;){var n=i[a],o=e[n];if(o){var r=t[n],c=void 0===r||o(r,n,t);if(!0!==c)throw new TypeError("option "+n+" must be "+c)}else if(!0!==s)throw Error("Unknown option "+n)}},validators:a}},53:function(t){t.exports=JSON.parse('{"_from":"axios@^0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"axios@^0.21.4","name":"axios","escapedName":"axios","rawSpec":"^0.21.4","saveSpec":null,"fetchSpec":"^0.21.4"},"_requiredBy":["#DEV:/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_shasum":"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575","_spec":"axios@^0.21.4","_where":"/opt/atlassian/pipelines/agent/build","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundleDependencies":false,"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"deprecated":false,"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},54:function(t,e,s){"use strict";var i=s(30);function a(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var s=this;t((function(t){s.reason||(s.reason=new i(t),e(s.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var t;return{token:new a((function(e){t=e})),cancel:t}},t.exports=a},55:function(t,e,s){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},56:function(t,e,s){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},6:function(t,e,s){"use strict";var i=s(23),a=Object.prototype.toString;function n(t){return"[object Array]"===a.call(t)}function o(t){return void 0===t}function r(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==a.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===a.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),n(t))for(var s=0,i=t.length;s<i;s++)e.call(null,t[s],s,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}t.exports={isArray:n,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:function(t){return null!==t&&!o(t)&&null!==t.constructor&&!o(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:r,isPlainObject:c,isUndefined:o,isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:u,isStream:function(t){return r(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function t(){var e={};function s(s,i){c(e[i])&&c(s)?e[i]=t(e[i],s):c(s)?e[i]=t({},s):n(s)?e[i]=s.slice():e[i]=s}for(var i=0,a=arguments.length;i<a;i++)l(arguments[i],s);return e},extend:function(t,e,s){return l(e,(function(e,a){t[a]=s&&"function"==typeof e?i(e,s):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},7:function(t,e,s){"use strict";s.d(e,"a",(function(){return u}));var i=s(31);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function o(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?n(Object(s),!0).forEach((function(e){r(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function r(t,e,s){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var c=s.n(i).a.create({baseURL:ajaxurl+"?action=wp_defender/v1/hub/",timeout:15e3});function u(t,e,s){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return l("post",t,e,s,i).then((function(t){return t}))}function l(t,e,s,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},n=JSON.stringify(i),r=new FormData;return r.append("data",n),c.request(o(o({},a),{},{url:d(e,s),method:t,data:r})).then((function(t){var e=t.data,s=e.success,i=void 0!==e.data.message?e.data.message:null,a=void 0!==e.data.redirect?e.data.redirect:null,n=void 0!==e.data.interval?e.data.interval:null,o=void 0!==e.data.type_notice&&e.data.type_notice;if(null!==i){var r=void 0!==e.data.auto_close&&!0===e.data.auto_close;Defender.showNotification(s?o||"success":"error",i,r)}return"session_out"===o&&null===a&&p(),null!==n?setTimeout((function(){null!==a?location.href=a:location.reload()}),1e3*n):null!==a&&(location.href=a),e.data}))}function d(t,e){return"&route="+t+"&_def_nonce="+e}function p(){setTimeout((function(){jQuery(document).trigger("heartbeat-tick.wp-auth-check",[{"wp-auth-check":!1}]),jQuery((function(){jQuery("#wp-auth-check-frame").load((function(){jQuery(this).contents().find("#loginform").submit((function(){return setTimeout((function(){location.reload()}),1e3),!0}))}))}))}),2e3)}},8:function(t,e){t.exports=Vue},9:function(t,e,s){"use strict";(function(t){s.d(e,"b",(function(){return x})),s.d(e,"c",(function(){return C})),s.d(e,"d",(function(){return w})),s.d(e,"e",(function(){return y}));var i=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var s,i=(s=function(e){return e.original===t},e.filter(s)[0]);if(i)return i.copy;var n=Array.isArray(t)?[]:{};return e.push({original:t,copy:n}),Object.keys(t).forEach((function(s){n[s]=a(t[s],e)})),n}function n(t,e){Object.keys(t).forEach((function(s){return e(t[s],s)}))}function o(t){return null!==t&&"object"==typeof t}var r=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var s=t.state;this.state=("function"==typeof s?s():s)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},r.prototype.addChild=function(t,e){this._children[t]=e},r.prototype.removeChild=function(t){delete this._children[t]},r.prototype.getChild=function(t){return this._children[t]},r.prototype.hasChild=function(t){return t in this._children},r.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},r.prototype.forEachChild=function(t){n(this._children,t)},r.prototype.forEachGetter=function(t){this._rawModule.getters&&n(this._rawModule.getters,t)},r.prototype.forEachAction=function(t){this._rawModule.actions&&n(this._rawModule.actions,t)},r.prototype.forEachMutation=function(t){this._rawModule.mutations&&n(this._rawModule.mutations,t)},Object.defineProperties(r.prototype,c);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,s){return t+((e=e.getChild(s)).namespaced?s+"/":"")}),"")},u.prototype.update=function(t){!function t(e,s,i){0;if(s.update(i),i.modules)for(var a in i.modules){if(!s.getChild(a))return void 0;t(e.concat(a),s.getChild(a),i.modules[a])}}([],this.root,t)},u.prototype.register=function(t,e,s){var i=this;void 0===s&&(s=!0);var a=new r(e,s);0===t.length?this.root=a:this.get(t.slice(0,-1)).addChild(t[t.length-1],a);e.modules&&n(e.modules,(function(e,a){i.register(t.concat(a),e,s)}))},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),s=t[t.length-1],i=e.getChild(s);i&&i.runtime&&e.removeChild(s)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),s=t[t.length-1];return!!e&&e.hasChild(s)};var l;var d=function(t){var e=this;void 0===t&&(t={}),!l&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var s=t.plugins;void 0===s&&(s=[]);var a=t.strict;void 0===a&&(a=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var n=this,o=this.dispatch,r=this.commit;this.dispatch=function(t,e){return o.call(n,t,e)},this.commit=function(t,e,s){return r.call(n,t,e,s)},this.strict=a;var c=this._modules.root.state;m(this,c,[],this._modules.root),h(this,c),s.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:l.config.devtools)&&function(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){i.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},p={state:{configurable:!0}};function f(t,e,s){return e.indexOf(t)<0&&(s&&s.prepend?e.unshift(t):e.push(t)),function(){var s=e.indexOf(t);s>-1&&e.splice(s,1)}}function _(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var s=t.state;m(t,s,[],t._modules.root,!0),h(t,s,e)}function h(t,e,s){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var a=t._wrappedGetters,o={};n(a,(function(e,s){o[s]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,s,{get:function(){return t._vm[s]},enumerable:!0})}));var r=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:o}),l.config.silent=r,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(s&&t._withCommit((function(){i._data.$$state=null})),l.nextTick((function(){return i.$destroy()})))}function m(t,e,s,i,a){var n=!s.length,o=t._modules.getNamespace(s);if(i.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=i),!n&&!a){var r=v(e,s.slice(0,-1)),c=s[s.length-1];t._withCommit((function(){l.set(r,c,i.state)}))}var u=i.context=function(t,e,s){var i=""===e,a={dispatch:i?t.dispatch:function(s,i,a){var n=g(s,i,a),o=n.payload,r=n.options,c=n.type;return r&&r.root||(c=e+c),t.dispatch(c,o)},commit:i?t.commit:function(s,i,a){var n=g(s,i,a),o=n.payload,r=n.options,c=n.type;r&&r.root||(c=e+c),t.commit(c,o,r)}};return Object.defineProperties(a,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var s={},i=e.length;Object.keys(t.getters).forEach((function(a){if(a.slice(0,i)===e){var n=a.slice(i);Object.defineProperty(s,n,{get:function(){return t.getters[a]},enumerable:!0})}})),t._makeLocalGettersCache[e]=s}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return v(t.state,s)}}}),a}(t,o,s);i.forEachMutation((function(e,s){!function(t,e,s,i){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){s.call(t,i.state,e)}))}(t,o+s,e,u)})),i.forEachAction((function(e,s){var i=e.root?s:o+s,a=e.handler||e;!function(t,e,s,i){(t._actions[e]||(t._actions[e]=[])).push((function(e){var a,n=s.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(a=n)&&"function"==typeof a.then||(n=Promise.resolve(n)),t._devtoolHook?n.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):n}))}(t,i,a,u)})),i.forEachGetter((function(e,s){!function(t,e,s,i){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return s(i.state,i.getters,t.state,t.getters)}}(t,o+s,e,u)})),i.forEachChild((function(i,n){m(t,e,s.concat(n),i,a)}))}function v(t,e){return e.reduce((function(t,e){return t[e]}),t)}function g(t,e,s){return o(t)&&t.type&&(s=e,e=t,t=t.type),{type:t,payload:e,options:s}}function b(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:s});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[s].concat(t.init):s,e.call(this,t)}}function s(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(t){0},d.prototype.commit=function(t,e,s){var i=this,a=g(t,e,s),n=a.type,o=a.payload,r=(a.options,{type:n,payload:o}),c=this._mutations[n];c&&(this._withCommit((function(){c.forEach((function(t){t(o)}))})),this._subscribers.slice().forEach((function(t){return t(r,i.state)})))},d.prototype.dispatch=function(t,e){var s=this,i=g(t,e),a=i.type,n=i.payload,o={type:a,payload:n},r=this._actions[a];if(r){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(o,s.state)}))}catch(t){0}var c=r.length>1?Promise.all(r.map((function(t){return t(n)}))):r[0](n);return new Promise((function(t,e){c.then((function(e){try{s._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(o,s.state)}))}catch(t){0}t(e)}),(function(t){try{s._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(o,s.state,t)}))}catch(t){0}e(t)}))}))}},d.prototype.subscribe=function(t,e){return f(t,this._subscribers,e)},d.prototype.subscribeAction=function(t,e){return f("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},d.prototype.watch=function(t,e,s){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,s)},d.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},d.prototype.registerModule=function(t,e,s){void 0===s&&(s={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),m(this,this.state,t,this._modules.get(t),s.preserveState),h(this,this.state)},d.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var s=v(e.state,t.slice(0,-1));l.delete(s,t[t.length-1])})),_(this)},d.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},d.prototype.hotUpdate=function(t){this._modules.update(t),_(this,!0)},d.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(d.prototype,p);var y=A((function(t,e){var s={};return k(e).forEach((function(e){var i=e.key,a=e.val;s[i]=function(){var e=this.$store.state,s=this.$store.getters;if(t){var i=j(this.$store,"mapState",t);if(!i)return;e=i.context.state,s=i.context.getters}return"function"==typeof a?a.call(this,e,s):e[a]},s[i].vuex=!0})),s})),w=A((function(t,e){var s={};return k(e).forEach((function(e){var i=e.key,a=e.val;s[i]=function(){for(var e=[],s=arguments.length;s--;)e[s]=arguments[s];var i=this.$store.commit;if(t){var n=j(this.$store,"mapMutations",t);if(!n)return;i=n.context.commit}return"function"==typeof a?a.apply(this,[i].concat(e)):i.apply(this.$store,[a].concat(e))}})),s})),C=A((function(t,e){var s={};return k(e).forEach((function(e){var i=e.key,a=e.val;a=t+a,s[i]=function(){if(!t||j(this.$store,"mapGetters",t))return this.$store.getters[a]},s[i].vuex=!0})),s})),x=A((function(t,e){var s={};return k(e).forEach((function(e){var i=e.key,a=e.val;s[i]=function(){for(var e=[],s=arguments.length;s--;)e[s]=arguments[s];var i=this.$store.dispatch;if(t){var n=j(this.$store,"mapActions",t);if(!n)return;i=n.context.dispatch}return"function"==typeof a?a.apply(this,[i].concat(e)):i.apply(this.$store,[a].concat(e))}})),s}));function k(t){return function(t){return Array.isArray(t)||o(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function A(t){return function(e,s){return"string"!=typeof e?(s=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,s)}}function j(t,e,s){return t._modulesNamespaceMap[s]}function S(t,e,s){var i=s?t.groupCollapsed:t.group;try{i.call(t,e)}catch(s){t.log(e)}}function O(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function T(){var t=new Date;return" @ "+E(t.getHours(),2)+":"+E(t.getMinutes(),2)+":"+E(t.getSeconds(),2)+"."+E(t.getMilliseconds(),3)}function E(t,e){return s="0",i=e-t.toString().length,new Array(i+1).join(s)+t;var s,i}var P={Store:d,install:b,version:"3.6.2",mapState:y,mapMutations:w,mapGetters:C,mapActions:x,createNamespacedHelpers:function(t){return{mapState:y.bind(null,t),mapGetters:C.bind(null,t),mapMutations:w.bind(null,t),mapActions:x.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var s=t.filter;void 0===s&&(s=function(t,e,s){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var n=t.mutationTransformer;void 0===n&&(n=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var r=t.actionTransformer;void 0===r&&(r=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var d=a(t.state);void 0!==l&&(c&&t.subscribe((function(t,o){var r=a(o);if(s(t,d,r)){var c=T(),u=n(t),p="mutation "+t.type+c;S(l,p,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",i(r)),O(l)}d=r})),u&&t.subscribeAction((function(t,s){if(o(t,s)){var i=T(),a=r(t),n="action "+t.type+i;S(l,n,e),l.log("%c action","color: #03A9F4; font-weight: bold",a),O(l)}})))}}};e.a=P}).call(this,s(37))}});