1!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=45)}([,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(9),o=r.n(n),i=r(5),a=r.n(i);function u(_x,t){return c.apply(this,arguments)}function c(){return(c=o()(a.a.mark((function e(r,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.ajax({data:n,method:"POST",url:"".concat(wpApiSettings.root,"wpsp/").concat(r),beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)}});case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),e.t0.responseJSON;case 10:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}}).call(this,r(7))},function(t,e,r){var n=r(18);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},,function(t,e){var r=/^(?:submit|button|image|reset|file)$/i,n=/^(?:input|select|textarea|keygen)/i,o=/(\[[^\[\]]*\])/g;function i(t,e,r){if(e.match(o))!function t(e,r,n){if(0===r.length)return n;var o=r.shift(),i=o.match(/^\[(.+?)\]$/);if("[]"===o)return e=e||[],Array.isArray(e)?e.push(t(null,r,n)):(e._values=e._values||[],e._values.push(t(null,r,n))),e;if(i){var a=i[1],u=+a;isNaN(u)?(e=e||{})[a]=t(e[a],r,n):(e=e||[])[u]=t(e[u],r,n)}else e[o]=t(e[o],r,n);return e}(t,function(t){var e=[],r=new RegExp(o),n=/^([^\[\]]*)/.exec(t);for(n[1]&&e.push(n[1]);null!==(n=r.exec(t));)e.push(n[1]);return e}(e),r);else{var n=t[e];n?(Array.isArray(n)||(t[e]=[n]),t[e].push(r)):t[e]=r}return t}function a(t,e,r){return r=r.replace(/(\r)?\n/g,"\r\n"),r=(r=encodeURIComponent(r)).replace(/%20/g,"+"),t+(t?"&":"")+encodeURIComponent(e)+"="+r}t.exports=function(t,e){"object"!=typeof e?e={hash:!!e}:void 0===e.hash&&(e.hash=!0);for(var o=e.hash?{}:"",u=e.serializer||(e.hash?i:a),c=t&&t.elements?t.elements:[],s=Object.create(null),l=0;l<c.length;++l){var f=c[l];if((e.disabled||!f.disabled)&&f.name&&n.test(f.nodeName)&&!r.test(f.type)){var p=f.name,d=f.value;if("checkbox"!==f.type&&"radio"!==f.type||f.checked||(d=void 0),e.empty){if("checkbox"!==f.type||f.checked||(d=""),"radio"===f.type&&(s[f.name]||f.checked?f.checked&&(s[f.name]=!0):s[f.name]=!1),null==d&&"radio"==f.type)continue}else if(!d)continue;if("select-multiple"!==f.type)o=u(o,p,d);else{d=[];for(var h=f.options,m=!1,y=0;y<h.length;++y){var v=h[y],g=e.empty&&!v.value,b=v.value||g;v.selected&&b&&(m=!0,o=e.hash&&"[]"!==p.slice(p.length-2)?u(o,p+"[]",v.value):u(o,p,v.value))}!m&&e.empty&&(o=u(o,p,""))}}}if(e.empty)for(var p in s)s[p]||(o=u(o,p,""));return o}},function(t,e,r){var n=r(25)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e){function r(e){return t.exports=r="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.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=jQuery},function(t,e,r){"use strict";r.d(e,"a",(function(){return y}
1)),r.d(e,"c",(function(){return v}));var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},o=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},i=function(t){return function(e,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(o(e)&&n(r))if("function"==typeof i)if("number"==typeof a){var u={callback:i,priority:a,namespace:r};if(t[e]){var c,s=t[e].handlers;for(c=s.length;c>0&&!(a>=s[c-1].priority);c--);c===s.length?s[c]=u:s.splice(c,0,u),(t.__current||[]).forEach((function(t){t.name===e&&t.currentIndex>=c&&t.currentIndex++}))}else t[e]={handlers:[u],runs:0};"hookAdded"!==e&&h("hookAdded",e,r,i,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},a=function(t,e){return function(r,i){if(o(r)&&(e||n(i))){if(!t[r])return 0;var a=0;if(e)a=t[r].handlers.length,t[r]={runs:t[r].runs,handlers:[]};else for(var u=t[r].handlers,c=function(e){u[e].namespace===i&&(u.splice(e,1),a++,(t.__current||[]).forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},s=u.length-1;s>=0;s--)c(s);return"hookRemoved"!==r&&h("hookRemoved",r,i),a}}},u=function(t){return function(e,r){return void 0!==r?e in t&&t[e].handlers.some((function(t){return t.namespace===r})):e in t}},c=function(t,e){return function(r){t[r]||(t[r]={handlers:[],runs:0}),t[r].runs++;for(var n=t[r].handlers,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(!n||!n.length)return e?i[0]:void 0;var u={name:r,currentIndex:0};for(t.__current.push(u);u.currentIndex<n.length;){var c=n[u.currentIndex],s=c.callback.apply(null,i);e&&(i[0]=s),u.currentIndex++}return t.__current.pop(),e?i[0]:void 0}},s=function(t){return function(){return t.__current&&t.__current.length?t.__current[t.__current.length-1].name:null}},l=function(t){return function(e){return void 0===e?void 0!==t.__current[0]:!!t.__current[0]&&e===t.__current[0].name}},f=function(t){return function(e){if(o(e))return t[e]&&t[e].runs?t[e].runs:0}},p=function(){var t=Object.create(null),e=Object.create(null);return t.__current=[],e.__current=[],{addAction:i(t),addFilter:i(e),removeAction:a(t),removeFilter:a(e),hasAction:u(t),hasFilter:u(e),removeAllActions:a(t,!0),removeAllFilters:a(e,!0),doAction:c(t),applyFilters:c(e,!0),currentAction:s(t),currentFilter:s(e),doingAction:l(t),doingFilter:l(e),didAction:f(t),didFilter:f(e),actions:t,filters:e}},d=p(),h=(d.addAction,d.addFilter,d.removeAction,d.removeFilter,d.hasAction,d.hasFilter,d.removeAllActions,d.removeAllFilters,d.doAction),m=(d.applyFilters,d.currentAction,d.currentFilter,d.doingAction,d.doingFilter,d.didAction,d.didFilter,d.actions,d.filters,p()),y=m.addAction,v=(m.addFilter,m.doAction);m.applyFilters,e.b=m},function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(21),o=r(22),i=r(23),a=r(24);t.exports=function(t){return n(t)||o(t)||i(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";function n(t){if(!window.simpayGoogleRecaptcha)return Promise.resolve("");var e=window.simpayGoogleRecaptcha,r=e.siteKey,n=e.i18n;return new Promise((function(e,o){try{grecaptcha.execute(r,{action:t}).then((function(t){return e(t)}))}catch(t){o(n.invalid)}}))}r.d(e,"a",(function(){return n}))},function(t,e,r){var n=r(18);function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}
1,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.r(e),r.d(e,"registerPaymentFormType",(function(){return a})),r.d(e,"getPaymentFormType",(function(){return u})),r.d(e,"getPaymentFormTypes",(function(){return c})),r.d(e,"registerPaymentMethod",(function(){return l})),r.d(e,"getPaymentMethod",(function(){return f})),r.d(e,"getPaymentMethods",(function(){return p})),r.d(e,"__unstableUpdatePaymentFormCart",(function(){return d}));var n=r(6),o=r.n(n),i={};function a(t,e){return"object"!==o()(e)||"string"!=typeof t||i[t]?null:(i[t]=e,e)}function u(t){return i[t]}var c=function(){return i},s={};function l(t,e){return"object"!==o()(e)||"string"!=typeof t||s[t]?null:(s[t]=e,e)}function f(t){return s[t]}var p=function(){return s};function d(t,e){var r=t.state,n=r.price,o=r.taxRates,i=r.taxStatus,a=n.unit_amount,u=n.currency,c=n.can_recur,s=n.recurring;return e.update({currency:u,taxRates:o,taxStatus:i}),e.addLineItem({id:"setup-fee",title:"Initial Setup Fee",amount:0,quantity:1,subscription:!1}),e.addLineItem({id:"plan-setup-fee",title:"Plan Setup Fee",amount:0,quantity:1,subscription:!1}),e.addLineItem({id:"base",price:n,title:s&&!1===c?"Subscription":"One Time",amount:a,quantity:1,subscription:!(!s||!1!==c)&&{isTrial:!!s.trial_period_days,interval:s.interval,intervalCount:s.interval_count}}),e}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o}));var n={};r.r(n),r.d(n,"create",(function(){return p}));var o={};r.r(o),r.d(o,"create",(function(){return m}));var i=r(1),a=r(2),u=r.n(a),c=r(4),s=r.n(c);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){u()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.getFormData;return Object(i.a)("v2/customer",f({form_values:s()(e[0],{hash:!0}),form_data:n(),form_id:r},t))}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){u()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.getFormData;return Object(i.a)("v2/checkout-session",h({form_values:s()(e[0],{hash:!0}),form_data:n(),form_id:r},t))}r(9),r(5),r(11)},function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(6).default,o=r(26);t.exports=function(t){var e=o(t,"string");return"symbol"===n(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(47);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)}
vendor: 5,392 bytes, line 1
1,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(6).default,o=r(48);t.exports=function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(17);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(17);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(6).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),u=new k(n||[]);return a(i,"_invoke",{value:T(t,r,u)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function m(){}function y(){}function v(){}var g={};f(g,c,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(S([])));x&&x!==r&&i.call(x,c)&&(g=x);var _=v.prototype=m.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){var r;a(this,"_invoke",{value:function(o,a){function u(){return new e((function(r,u){!function r(o,a,u,c){var s=d(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}(o,a,r,u)}))}return r=r?r.then(u,u):u()}})}function T(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=j(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function j(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=d(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:A}}function A(){return{value:void 0,done:!0}}return y.prototype=v,a(_,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=f(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},w(O.prototype),f(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
1ise);var a=new O(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),f(_,l,"Generator"),f(_,c,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;F(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(6).default;t.exports=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},,,,function(t,e,r){var n=r(46);t.exports=function(t,e){if(null==t)return{};var r,o,i=n(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)r=a[o],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";(function(t){var r=window.spShared,n=r.convertToDollars,o=r.formatCurrency;e.a={init:_.noop,setupCoreForm:_.noop,isStripeCheckoutForm:function(t){return void 0===t.formDisplayType||"stripe_checkout"===t.formDisplayType},setCoreFinalAmount:function(e,r){r.finalAmount=e.cart.getTotalDueToday(),t(document.body).trigger("simpayFinalizeCoreAmount",[e,r])},disableForm:function(t,e,r){var n=t.find(".simpay-payment-btn"),o=e.paymentButtonLoadingText;t.addClass("simpay-checkout-form--loading"),window.simpayApp.isStripeCheckoutForm(e)||(n=t.find(".simpay-checkout-btn"),o=e.checkoutButtonLoadingText),n.prop("disabled",!0),!0===r&&n.addClass("simpay-disabled").find("span").html(o)},enableForm:function(e,r){var i=e.cart;if(void 0!==i){var a=e.find(".simpay-payment-btn"),u=r.paymentButtonLoadingText,c=r.paymentButtonText;e.removeClass("simpay-checkout-form--loading"),window.simpayApp.isStripeCheckoutForm(r)||(a=e.find(".simpay-checkout-btn"),u=r.checkoutButtonLoadingText,c=r.checkoutButtonText),a.prop("disabled",!1).removeClass("simpay-disabled");var s=document.createElement("div");if(s.innerHTML=u,t(s).html()===a.find("span").html())if(0===i.getTotalDueToday()){var l=r.checkoutButtonTrialText;a.find("span").text(l)}else{var f=o(i.isZeroDecimal()?i.getTotalDueToday():n(i.getTotalDueToday()),!0,i.getCurrencySymbol(),i.isZeroDecimal()),p='<em class="simpay-total-amount-value">'.concat(f,"</span>");c=c.replace("{{amount}}",p),a.find("span").html(c)}}},showError:function(t,e,r){return t.find(".simpay-errors").html(r)},triggerBrowserValidation:function(e,r){return t("<input>").attr({type:"submit",style:{display:"none"}}).appendTo(e).click().remove()}}}
1).call(this,r(7))},,,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e),function(t){var e=r(30),n=r.n(e),o=r(2),i=r.n(o),a=r(8),u=r(14),c=r(31),s=(r(57),["order","customer","paymentMethods"]);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){i()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(e){var r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=window.simpayApp.formCount;if(e.attr("data-simpay-form-instance",c),!1===i){var l=window.simplePayForms;r=l[o=e.data("simpay-form-id")]}else r=i,o=i.id;var p=r,d=p.type,h=p.form,m=h.prices,y=h.livemode,v=h.config,g=void 0===v?{}:v,b=g.taxRates,x=void 0===b?[]:b,w=g.paymentMethods,O=void 0===w?[]:w,T=g.taxStatus,j=void 0===T?"fixed-global":T,P=f(f(f(f(f({formId:o,formInstance:c,quantity:1,isValid:!0,stripeParams:f(f({},r.stripe.strings),r.stripe.bools),prices:m},r.form.bools),r.form.integers),r.form.i18n),r.form.strings),r.form.config);e.__unstableLegacyFormData=P;var F=u.getPaymentFormType(d);_.each(F,(function(t,r){e[r]=_.isFunction(t)?_.bind(t,e,e):t})),e.id=o,e.state={isValid:!0,customAmount:!1,coupon:!1,price:_.find(m,(function(t){return!0===t.default})),paymentMethod:_.first(O),taxRates:x,taxStatus:j,paymentMethods:O,livemode:y,displayType:P.formDisplayType},e.setState=function(t){e.state=f(f({},e.state),t)},e.getFormData=function(){var t=f(f({},e.__unstableLegacyFormData),e.state),r=(t.order,t.customer,t.paymentMethods,n()(t,s));return JSON.stringify(r)};var k=r.stripe.strings,S=k.key,A=k.stripe_api_version,M=k.elementsLocale;e.stripeInstance=Stripe(S,{apiVersion:A,locale:M||"auto"}),Object(a.c)("simpaySetupPaymentForm",e),window.simpayApp.spFormData[o]=P,window.simpayApp.spFormElems[o]=e,t(document.body).trigger("simpayCoreFormVarsInitialized",[e,P]).trigger("simpayBindCoreFormEventsAndTriggers",[e,P]).trigger("simpaySetupCoreForm",[e])}window.wpsp={hooks:a.b,paymentForms:u,initPaymentForm:p},window.simpayApp=f({formCount:0,spFormElList:{},spFormData:{},spFormElems:{}},c.a),t((function(){return e=t(document.body).find(".simpay-checkout-form:not(.simpay-update-payment-method)"),window.simpayApp.spFormElList=e,void e.each((function(){window.simpayApp.formCount++,p(t(this))}));var e}))}.call(this,r(7))},function(t,e){t.exports=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,function(t,e,r){"use strict";var n=r(9),o=r.n(n),i=r(5),a=r.n(i),u=r(14),c=r(8),s=r(12),l=r.n(s),f=r(13),p=r.n(f),d=r(19),h=r.n(d),m=r(20),y=r.n(m),v=r(16),g=r.n(v),b=r(10),x=r.n(b),_=r(6),w=r.n(_),O=r(2),T=r.n(O);function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){T()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var F=function(){function t(e,r){if(p()(this,t),this.cart=null,this.id=null,this.title=null,this.amount=0,this.quantity=1,this.subscription=!1,this.price=null,"object"!==w()(r))throw{id:"invalid-line-item-cart",message:"Item must have an cart."};this.cart=r,this.update(e)}
1return l()(t,[{key:"update",value:function(t){var e=P(P({},this),t),r=e.id,n=e.title,o=e.amount,i=e.quantity,a=e.subscription,u=e.price;if("string"!=typeof r)throw{id:"invalid-line-item-id",message:"Item ID must be a string."};if(this.id=r,"string"!=typeof n)throw{id:"invalid-line-item-title",message:"Item title must be a string."};if(this.title=n,!Number.isSafeInteger(o))throw{id:"invalid-line-item-amount",message:"Item amount must be an integer."};if(this.amount=o,!Number.isSafeInteger(i))throw{id:"invalid-line-item-quantity",message:"Item quantity must be an integer."};if(this.quantity=i,!1!==a&&"object"!==w()(a))throw{id:"invalid-line-item-subscription",message:"Item subscription data must be a false or contain subscription data."};return this.subscription=a,"object"===w()(u)&&null!==u?this.price=u:this.price=null,this}},{key:"remove",value:function(){var t=this,e=this.cart.getLineItems().filter((function(e){var r=e.id;return t.id!==r}));return this.cart.items=e,this}},{key:"getUnitPrice",value:function(){return this.amount}},{key:"getQuantity",value:function(){return this.quantity}},{key:"getDiscount",value:function(){var t=this.cart.getDiscount();if(0===t)return 0;var e=this.cart.getLineItems().filter((function(t){return!t.hasFreeTrial()&&0!==t.getUnitPrice()}));return Math.round(t/e.length)}},{key:"getSubtotal",value:function(){if(this.hasFreeTrial())return 0;var t=this.getUnitPrice()*this.getQuantity();return 0===t?t:Math.round(t-this.getDiscount())}},{key:"getInclusiveTaxAmount",value:function(){var t=this.cart.getTaxPercent("inclusive")/100,e=this.getSubtotal(),r=Math.round(e-e/(1+t));return Math.round(e-(e-r))}},{key:"getTaxableAmount",value:function(){var t=this.getSubtotal(),e=this.getInclusiveTaxAmount();return Math.round(t-e)}},{key:"getTax",value:function(){if("automatic"===this.cart.taxStatus||"none"===this.cart.taxStatus)return 0;var t=this.getTaxableAmount(),e=this.cart.getTaxPercent("exclusive");return Math.round(t*(e/100))}},{key:"getTotal",value:function(){return this.getSubtotal()+this.getTax()}},{key:"hasFreeTrial",value:function(){var t=this.price;return!!t&&!1!==this.subscription&&t.recurring&&t.recurring.trial_period_days}}]),t}(),k=F;function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){T()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var M={includeFeeRecovery:!0},L=function(){function t(e){p()(this,t),this.LineItem=k,this.paymentForm=null,this.items=[],this.currency="usd",this.taxPercent=0,this.taxRates=[],this.taxStatus="fixed-global",this.taxBehavior="exclusive",this.automaticTax={},this.coupon=!1,this.isNonDecimalCurrency=!1,this.update(e)}return l()(t,[{key:"update",value:function(t){var e=A(A({},this),t),r=e.paymentForm,n=e.currency,o=e.taxPercent,i=e.taxRates,a=e.taxStatus,u=e.taxBehavior,c=e.automaticTax,s=e.coupon,l=e.isNonDecimalCurrency;if(this.paymentForm=r,"string"!=typeof n)throw{id:"invalid-currency",message:"Currency must be a string."};if(this.currency=n,isNaN(o))throw{id:"invalid-tax-percent",message:"Tax percentage must be a number."};if(this.taxPercent=parseFloat(o),i&&Array.isArray(i)&&(this.taxRates=i),a&&"string"==typeof a&&(this.taxStatus=a),u&&"string"==typeof u&&(this.taxBehavior=u),c&&"object"===w()(c)&&(this.automaticTax=c),!1!==s&&"object"!==w()(s))throw{id:"invalid-coupon",message:"Coupon must be a false or contain coupon data."};if(this.coupon=s,"boolean"!=typeof l)throw{id:"invalid-non-decimal-currency",message:"Declaring a non-decimal currency must be a boolean."};return this.isNonDecimalCurrency=l,this}},{key:"reset",value:function(){return new t}},{key:"getCurrency",value:function(){var t,e;return(null===(t=this.getLineItem("base"))||void 0===t||null===(e=t.price)||void 0===e?void 0:e.currency)||""}},{key:"getCurrencySymbol",value:function(){var t,e;return(null===(t=this.getLineItem("base"))||void 0===t||null===(e=t.price)||void 0===e?void 0:e.currency_symbol)||""}},{key:"isZeroDecimal",value:function(){return this.getLineItem("base").price.is_zero_decimal}},{key:"getCoupon",value:function(){return this.coupon}},{key:"getTaxPercent",value:function(t){return this.getTaxRates().reduce((function(e,r){var n=r.calculation,o=r.percentage;return t!==n?e:e+o}),0)}},{key:"getTaxDecimal",value:function(){return this.taxPercent/100}},{key:"getTaxRates",value:function(){return this.taxRates}},{key:"getLineItems",value:function(){return this.items}},{key:"getSubtotal",value:function(){return this.getLineItems().reduce((function(t,e){return e.hasFreeTrial()?t:t+Math.round(e.getUnitPrice()*e.getQuantity())}),0)}},{key:"getDiscount",value:function(){var t=this.getCoupon(),e=t.percent_off,r=t.amount_off,n=0;return!1===t||(e?n+=Math.round(this.getSubtotal()*(e/100)):r&&(n+=r)),n}},{key:"getTax",value:function(){return"none"===this.taxStatus?0:this.getLineItems().reduce((function(t,e){return t+e.getTax()}),0)}},{key:"getAppliedTaxRates",value:function(){if("none"===this.taxStatus)return{};var t=this.getLineItems(),e=this.getTaxRates().filter((function(t){return"inclusive"!==t.calculation})),r=this.getTaxPercent("exclusive")/100,n=this.getTaxRates().filter((function(t){return"exclusive"!==t.calculation})),o=this.getTaxPercent("inclusive")/100,i={};return t.forEach((function(t){if(!t.hasFreeTrial()){var a=t.getTax(),u=t.getTaxableAmount(),c=t.getInclusiveTaxAmount();e.forEach((function(t,n){var o=t.id,c=t.percentage/100,s=0;if(n===e.length-1){var l=e.filter((function(t){return t.id!==o})).reduce((function(t,e){return t+e.percentage}),0)/100,f=Math.floor(u*l);s=a-f}else s=Math.floor(a*(c/r));i[o]=[].concat(x()(i[o]||[]),[s])}
1)),n.forEach((function(t,e){var r,a=t.id,u=t.percentage/100;if(e===n.length-1){var s=n.filter((function(t){return t.id!==a})).reduce((function(t,e){var r=e.percentage;return t+Math.floor(c*(r/100/o))}),0);r=c-s}else r=Math.floor(c*(u/o));i[a]=[].concat(x()(i[a]||[]),[r])}))}})),i}},{key:"getTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,e=this.getLineItems().reduce((function(t,e){return t+e.getTotal()}),0),r=t.includeFeeRecovery?this.getFeeRecoveryForAmount(e):0;return e+r}},{key:"getTotalDueToday",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,e=0;"exclusive"===this.taxBehavior&&this.automaticTax&&0!==this.getSubtotal()&&(e=parseInt(this.automaticTax.amount_tax||e));var r=this.getLineItems().reduce((function(t,e){return e.hasFreeTrial()?t:t+e.getTotal()}),e),n=0!==r&&t.includeFeeRecovery?this.getFeeRecoveryForAmount(r):0;return r+n}},{key:"getRecurringTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,e=this.getLineItem("base"),r=e.getUnitPrice()*e.getQuantity();r=Math.round(r-this.getDiscount());var n=this.getTaxRates(),o=this.getTaxPercent("inclusive")/100,i=Math.round(r-r/(1+o)),a=Math.round(r-i),u=n.reduce((function(t,e){var r=e.percentage;return"inclusive"===e.calculation?t:t+Math.round(a*(r/100))}),0),c=Math.round(r+u),s=t.includeFeeRecovery?this.getFeeRecoveryForAmount(c):0;return c+s}},{key:"getRecurringNoDiscountTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,e=this.getLineItem("base"),r=e.getUnitPrice()*e.getQuantity(),n=0;if("automatic"!==this.taxStatus&&"none"!==this.taxStatus){var o=this.getTaxRates(),i=this.getTaxPercent("inclusive")/100,a=Math.round(r-r/(1+i)),u=Math.round(r-a);n=o.reduce((function(t,e){var r=e.percentage;return"inclusive"===e.calculation?t:t+Math.round(u*(r/100))}),0)}else if("automatic"===this.taxStatus&&"exclusive"===this.taxBehavior&&this.automaticTax){var c;n=(null===(c=this.automaticTax.upcomingInvoice)||void 0===c?void 0:c.amount_tax)||0}var s=Math.round(r+n),l=t.includeFeeRecovery?this.getFeeRecoveryForAmount(s):0;return s+l}},{key:"getNextInvoiceTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,e=this.getLineItem("base"),r=this.getCoupon(),n=r.percent_off,o=r.amount_off,i=r.duration,a=e.getUnitPrice()*e.getQuantity();if(r&&"once"!==i){var u=0;n?u+=Math.round(a*(n/100)):o&&(u+=o),a=Math.round(a-u)}var c=0;if("automatic"!==this.taxStatus&&"none"!==this.taxStatus){var s=this.getTaxRates(),l=this.getTaxPercent("inclusive")/100,f=Math.round(a-a/(1+l)),p=Math.round(a-f);c=s.reduce((function(t,e){var r=e.percentage;return"inclusive"===e.calculation?t:t+Math.round(p*(r/100))}),0)}else if("automatic"===this.taxStatus&&"exclusive"===this.taxBehavior&&this.automaticTax){var d;c=(null===(d=this.automaticTax.upcomingInvoice)||void 0===d?void 0:d.amount_tax)||0}var h=Math.round(a+c),m=t.includeFeeRecovery?this.getFeeRecoveryForAmount(h):0;return h+m}},{key:"getLineItem",value:function(t){var e=this.getLineItems().filter((function(e){return e.id===t}));if(0===e.length)throw{id:"invalid-line-item",message:'Unable to retrieve line item "'.concat(t,'"')};return e[0]}},{key:"addLineItem",value:function(t){var e;return e=1==t instanceof k?t:new this.LineItem(t,this),this.items.push(e),e}},{key:"hasFreeTrial",value:function(){return this.getLineItems().filter((function(t){return t.hasFreeTrial()})).length>0}},{key:"getFeeRecoveryForAmount",value:function(t){var e=this.paymentForm.state,r=e.paymentMethod,n=e.isCoveringFees;if(!r||!r.config)return 0;var o=r.config.fee_recovery;return o&&n?Math.round((t+parseInt(o.amount))/(1-parseFloat(o.percent)/100)-t):0}}]),t}();var I=function(t){h()(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=g()(e);if(r){var o=g()(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return y()(this,t)});function o(){return p()(this,o),n.apply(this,arguments)}return l()(o)}(F);var D=function(t){h()(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=g()(e);if(r){var o=g()(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return y()(this,t)});function o(t){var e;return p()(this,o),(e=n.call(this,t)).LineItem=I,e}return l()(o)}(L),E=r(15);function R(){return(R=o()(a.a.mark((function t(e){var r,n,o,i,u,c,s,l,f,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.error,n=e.disable,o=e.__unstableLegacyFormData,i=null,u=o.hasCustomerFields,r(""),n(),!u){t.next=13;break}return t.next=8,E.a.create({}
1,e).catch(r);case 8:if(c=t.sent){t.next=11;break}return t.abrupt("return");case 11:s=c.customer.id,i=s;case 13:return t.next=15,E.b.create({customer_id:i,payment_method_type:o.paymentMethods?o.paymentMethods[0].id:"card"},e).catch(r);case 15:if(l=t.sent){t.next=18;break}return t.abrupt("return");case 18:if(f=l.sessionId,p=l.session.url,"stripe"!==l.redirect_type){t.next=21;break}return t.abrupt("return",e.stripeInstance.redirectToCheckout({sessionId:f}).then((function(t){return t.error&&r(t.error),t})));case 21:window.location.href=p;case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var C=window.spShared,B=C.convertToDollars,N=C.formatCurrency,U="stripe-checkout";Object(u.registerPaymentFormType)(U,{type:U,setup:function(t){var e=t.enable;(0,t.disable)(),t.cart=Object(u.__unstableUpdatePaymentFormCart)(t,new D({paymentForm:t}));var r=t.find(".simpay-payment-btn")[0];r&&(r.addEventListener("click",(function(e){e.preventDefault();var r=window.simpayApp.triggerBrowserValidation;t[0].checkValidity()?Object(c.c)("simpaySubmitPaymentForm",t):r(t)})),e())},submit:function(_x){return R.apply(this,arguments)},enable:function(t){var e=t.cart,r=t.__unstableLegacyFormData,n=r.paymentButtonText,o=r.paymentButtonTrialText;t.removeClass("simpay-checkout-form--loading");var i=t.find(".simpay-payment-btn");if(i.prop("disabled",!1).removeClass("simpay-disabled"),0===e.getTotalDueToday())i.find("span").text(o);else{var a=N(e.isZeroDecimal()?e.getTotalDueToday():B(e.getTotalDueToday()),!0,e.getCurrencySymbol(),e.isZeroDecimal()),u='<em class="simpay-total-amount-value">'.concat(a,"</span>");i.find("span").html(n.replace("{{amount}}",u))}},disable:function(t){var e=t.__unstableLegacyFormData.paymentButtonLoadingText;t.addClass("simpay-checkout-form--loading"),t.find(".simpay-payment-btn").prop("disabled",!0).addClass("simpay-disabled").find("span").html(e)},error:function(t,e){var r,n=t.enable,o=t.__unstableLegacyFormData,i=o.stripeErrorMessages,a=o.unknownError;if(e&&""===e)r="";else if(void 0!==e){var u=e.message,c=e.code;r=u||e,c&&i[c]&&(r=i[c])}else r=a;t.find(".simpay-errors").html(r),n()}});var q=r(11);function G(){return(G=o()(a.a.mark((function t(e){var r,n,o,i,u,c,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.id,n=e.setState,o=e.submit,i=e.disable,u=e.enable,c=e.error,s=e.__unstableLegacyFormData,i(),e.trigger("simpayBeforeStripePayment",[e,s]),s.isValid){t.next=6;break}return u(),t.abrupt("return");case 6:return t.prev=6,t.next=9,Object(q.a)("simple_pay_form_".concat(r,"_customer")).then((function(t){n({customerCaptchaToken:t})}));case 9:return t.next=11,Object(q.a)("simple_pay_form_".concat(r,"_payment")).then((function(t){n({paymentCaptchaToken:t})}));case 11:o(),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(6),c(t.t0);case 17:case"end":return t.stop()}}),t,null,[[6,14]])})))).apply(this,arguments)}Object(c.a)("simpaySetupPaymentForm","wpsp/paymentForm",(function(t){return(0,t.setup)()})),Object(c.a)("simpaySubmitPaymentForm","wpsp/paymentForm",(function(_x){return G.apply(this,arguments)}))}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.