!function(t){var n={};function o(s){if(n[s])return n[s].exports;var e=n[s]={i:s,l:!1,exports:{}};return t[s].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=t,o.c=n,o.d=function(t,n,s){o.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:s})},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="/",o(o.s=30)}({30:function(t,n,o){t.exports=o(31)},31:function(t,n){var o="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};window.wp2sv=window.wp2sv||{},function(t,n){"use strict";var s,e=0;t.init=function(){n(document).on("click","[data-wp2sv-modal]",function(o){o.preventDefault(),t.openModal(n(this).data("wp2sv-modal"))}),n(document).on("click",".wp2sv-modal-close",function(n){n.preventDefault(),t.closeModal(this)})},t.openModal=function(t){(t=n(t).closest(".wp2sv-modal")).find(".wp2sv-modal-content").length||t.wrapInner('
'),t.trigger("open"),n(document).trigger("wp2sv-modal-open"),t.find(".wp2sv-modal-close-icon").length||t.append('
'),e++,t.wrap(''),t.closest(".wp2sv-modal-mask").css("z-index",9999+e),s=t},t.closeModal=function(t){(t=(t=n(t=t||s)).closest(".wp2sv-modal")).trigger("close"),n(document).trigger("wp2sv-modal-close"),t.unwrap().unwrap(),t.trigger("closed"),e--};var i=1;t.confirm=function(o,s,e,c){var a=n("#wp2sv-confirm");a.after(a=a.clone()),a.attr("id","wp2sv-confirm-"+i++).addClass("wp2sv-confirm-modal"),"function"==typeof s&&(e=s,s=o,o=""),"function"!=typeof e&&(e=function(){return!0}),o&&n(".wp2sv-h1",a).html(o),s&&n(".wp2sv-p",a).html(s),c&&n(".wp2sv-cancel-btn",a).addClass("hidden"),a.on("click",".wp2sv-confirm-btn",function(){!1!==(n(this).is("[data-btn-ok]")?e(!0):e(!1))&&t.closeModal(a)}),a.on("closed",function(){a.remove()}),t.openModal(a)},t.alert=function(n,o,s){"function"==typeof o&&(s=o,o=""),t.confirm(o,n,s,!0)},t.post=function(n,o){return t.ajax(n,o,"POST")},t.get=function(n,o){return t.ajax(n,o)},t.ajax=function(s,e,i){return"object"===(void 0===s?"undefined":o(s))?(i||(i=e),e=s):"object"===(void 0===e?"undefined":o(e))?e.action=s:e={action:s},i=i||"GET",(e=e||{}).action&&(e.wp2sv_action=e.action,e.wp2sv_nonce=t._nonce),e.action="wp2sv",n.ajax({type:i,dataType:"json",url:ajaxurl,data:e})},t.print=function(t){var o=n(t).html(),s=window.open("","backup codes","height=400,width=600");s.document.write(""),s.document.write(''),s.document.write(''),s.document.write(o),s.document.write("
"),s.document.close(),s.focus(),s.onload=function(){}},t.toast={show:function(t,n){this.el().find(".wp2sv-toast-message").html(t);var o=n?"wp2sv-toast wp2sv-toast-"+n:"wp2sv-toast";this.el().find(">div").attr("class",o),this.el().show()},info:function(t){this.show(t,"info")},error:function(t){this.show(t,"error")},success:function(t){this.show(t,"success")},warning:function(t){this.show(t,"warning")},hide:function(){this.el().hide()},el:function(){if(this.$el||(this.$el=n("#wp2sv-toast")),!this.$el.length){console.log("no toast");this.$el=n('').appendTo(".wp2sv")}return this.$el}},t.init()}(window.wp2sv,jQuery)}});