@everymatrix/cashier-page 1.33.0 → 1.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  | Version | Release date | Impacted areas | Changes |
5
5
  | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
+ | 1.33.1 | Fri Jun 07 2024 | cashier-page | fix(MMFE-922)(cashier-page,cashier-method-details): added translations which... |
6
7
  | 1.30.0 | Thu May 16 2024 | cashier-page | feat(GMMMFE-781)(cashier-page,cashier-confirm-page,cashier-method-deposit,cashier-receipt-page,cashier-error,cashier-method-list): add transaction |
7
8
  | 1.29.6 | Mon Apr 29 2024 | cashier-page | fix(MMFE-893)(cashier-confirm-modal,cashier-iframe-redirect,cashier-method-details,cashier-page): move modals to cashier-page, move redirect frame to cashier-page, move translations to cashier-page tranlslations, changed hover for close modal |
8
9
  | 1.29.5 | Tue Apr 23 2024 | cashier-page | fix(MMFE-859)(cashier-method-details,cashier-page): fix datepicker for mobile, fix scroll |
@@ -622,7 +622,7 @@ this.formats=en(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.
622
622
  // and Intl.DateTimeFormat instances.
623
623
  e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const rn={},on=(e,t,n)=>n?(t in rn||(rn[t]={}),e in rn[t]||(rn[t][e]=n),n):n,an=(e,t)=>{if(null==t)return;if(t in rn&&e in rn[t])return rn[t][e];const n=$n(t);for(let r=0;r<n.length;r++){const i=un(n[r],e);if(i)return on(e,t,i)}};let sn;const ln=ve({});function cn(e){return e in sn}function un(e,t){if(!cn(e))return null;const n=function(e){return sn[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function dn(e,...t){delete rn[e],ln.update((n=>(n[e]=Le.all([n[e]||{},...t]),n)))}ke([ln],(([e])=>Object.keys(e))),ln.subscribe((e=>sn=e));const hn={};function pn(e){return hn[e]}function fn(e){return null!=e&&$n(e).some((e=>{var t;return null==(t=pn(e))?void 0:t.size}))}function mn(e,t){const n=Promise.all(t.map((t=>(function(e,t){hn[e].delete(t),0===hn[e].size&&delete hn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>dn(e,...t)))}const gn={};function bn(e){if(!fn(e))return e in gn?gn[e]:Promise.resolve();const t=function(e){return $n(e).map((e=>{const t=pn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return gn[e]=Promise.all(t.map((([e,t])=>mn(e,t)))).then((()=>{if(fn(e))return bn(e);delete gn[e]})),gn[e]}const yn={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function wn(){return yn}const vn=ve(!1);var kn=Object.defineProperty,xn=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,Tn=(e,t,n)=>t in e?kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Sn;const An=ve(null);function Ln(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function $n(e,t=wn().fallbackLocale){const n=Ln(e);return t?[...new Set([...n,...Ln(t)])]:n}function _n(){return null!=Sn?Sn:void 0}An.subscribe((e=>{Sn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Pn=(On=((e,t)=>{for(var n in t||(t={}))En.call(t,n)&&Tn(e,n,t[n]);if(Cn)for(var n of Cn(t))Dn.call(t,n)&&Tn(e,n,t[n]);return e})({},An),xn(On,Mn({set:e=>{if(e&&function(e){if(null==e)return;const t=$n(e);for(let e=0;e<t.length;e++){const n=t[e];if(cn(n))return n}}(e)&&fn(e)){const{loadingDelay:t}=wn();let n;return"undefined"!=typeof window&&null!=_n()&&t?n=window.setTimeout((()=>vn.set(!0)),t):vn.set(!0),bn(e).then((()=>{An.set(e)})).finally((()=>{clearTimeout(n),vn.set(!1)}))}return An.set(e)}})));var On;const Hn=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var In=Object.defineProperty,Nn=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Fn=(e,t,n)=>t in e?In(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jn=(e,t)=>{for(var n in t||(t={}))Bn.call(t,n)&&Fn(e,n,t[n]);if(Nn)for(var n of Nn(t))Rn.call(t,n)&&Fn(e,n,t[n]);return e},zn=(e,t)=>{var n={};for(var r in e)Bn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Nn)for(var r of Nn(e))t.indexOf(r)<0&&Rn.call(e,r)&&(n[r]=e[r]);return n};const Un=(e,t)=>{const{formats:n}=wn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Wn=Hn((e=>{var t=e,{locale:n,format:r}=t,i=zn(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Un("number",r)),new Intl.NumberFormat(n,i)})),Yn=Hn((e=>{var t=e,{locale:n,format:r}=t,i=zn(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Un("date",r):0===Object.keys(i).length&&(i=Un("date","short")),new Intl.DateTimeFormat(n,i)})),Gn=Hn((e=>{var t=e,{locale:n,format:r}=t,i=zn(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Un("time",r):0===Object.keys(i).length&&(i=Un("time","short")),new Intl.DateTimeFormat(n,i)})),Jn=Hn((
624
624
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
625
- (e,t=_n())=>new nn(e,t,wn().formats,{ignoreTag:wn().ignoreTag}))),Vn=(e,t={})=>{var n,r,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=_n(),default:c}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=an(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(r=(n=wn()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!s)return u;let d=u;try{d=Jn(u,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},Kn=(e,t)=>((e={})=>{var t=e,{locale:n=_n()}=t,r=zn(t,["locale"]);return Gn(jn({locale:n},r))})(t).format(e),Xn=(e,t)=>((e={})=>{var t=e,{locale:n=_n()}=t,r=zn(t,["locale"]);return Yn(jn({locale:n},r))})(t).format(e),qn=(e,t)=>((e={})=>{var t=e,{locale:n=_n()}=t,r=zn(t,["locale"]);return Wn(jn({locale:n},r))})(t).format(e),Zn=(e,t=_n())=>an(e,t),Qn=ke([Pn,ln],(()=>Vn));function er(e,t){dn(e,t)}ke([Pn],(()=>Kn)),ke([Pn],(()=>Xn)),ke([Pn],(()=>qn)),ke([Pn,ln],(()=>Zn));const tr={en:{loading:"Loading...",closeModal:"CLOSE",header:{deposit:"Deposit",withdraw:"Withdraw"},deposit:{makeTxnButton:"DEPOSIT",confirmText:"You're going to deposit {amount} {currency} to your account",confirmButton:"Ok"},withdraw:{makeTxnButton:"WITHDRAW",confirmText:"You're going to withdraw {amount} {currency} from your account",confirmButton:"Ok"}},hr:{loading:"Učitavanje",header:{deposit:"Uplata",withdraw:"Visszavonás"}}};var nr,rr;!function(e){e.Deposit="Deposit",e.Withdraw="Withdraw"}(nr||(nr={})),function(e){e.Desktop="Desktop",e.Mobile="Mobile",e.NativeApp="NativeApp"}(rr||(rr={}));const ir={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Pokaži sve",showLess:"Prikaži manje"}};
625
+ (e,t=_n())=>new nn(e,t,wn().formats,{ignoreTag:wn().ignoreTag}))),Vn=(e,t={})=>{var n,r,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=_n(),default:c}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=an(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(r=(n=wn()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!s)return u;let d=u;try{d=Jn(u,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},Kn=(e,t)=>((e={})=>{var t=e,{locale:n=_n()}=t,r=zn(t,["locale"]);return Gn(jn({locale:n},r))})(t).format(e),Xn=(e,t)=>((e={})=>{var t=e,{locale:n=_n()}=t,r=zn(t,["locale"]);return Yn(jn({locale:n},r))})(t).format(e),qn=(e,t)=>((e={})=>{var t=e,{locale:n=_n()}=t,r=zn(t,["locale"]);return Wn(jn({locale:n},r))})(t).format(e),Zn=(e,t=_n())=>an(e,t),Qn=ke([Pn,ln],(()=>Vn));function er(e,t){dn(e,t)}ke([Pn],(()=>Kn)),ke([Pn],(()=>Xn)),ke([Pn],(()=>qn)),ke([Pn,ln],(()=>Zn));const tr={en:{loading:"Loading...",closeModal:"CLOSE",header:{deposit:"Deposit",withdraw:"Withdraw"},deposit:{makeTxnButton:"DEPOSIT",confirmText:"You're going to deposit to your account",confirmTextWithAmount:"You're going to deposit {amount} {currency} to your account",confirmButton:"Ok"},withdraw:{makeTxnButton:"WITHDRAW",confirmText:"You're going to withdraw from your account",confirmTextWithAmount:"You're going to withdraw {amount} {currency} from your account",confirmButton:"Ok"}},hr:{loading:"Učitavanje",header:{deposit:"Uplata",withdraw:"Povlačenje"}}};var nr,rr;!function(e){e.Deposit="Deposit",e.Withdraw="Withdraw"}(nr||(nr={})),function(e){e.Desktop="Desktop",e.Mobile="Mobile",e.NativeApp="NativeApp"}(rr||(rr={}));const ir={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Pokaži sve",showLess:"Prikaži manje"}};
626
626
  /* ../cashier-methods-list/src/CashierMethodsList.svelte generated by Svelte v3.59.2 */function or(e,t,n){const r=e.slice();return r[38]=t[n],r[40]=n,r}
627
627
  // (134:0) {#if showMethodsList }
628
628
  function ar(e){let t,n,r,i=/*paymentMethodsToShow*/e[8],o=[];for(let t=0;t<i.length;t+=1)o[t]=sr(or(e,i,t));let a=/*methodsButtonToggleText*/e[7]&&lr(e);return{c(){t=M("div"),n=M("div");for(let e=0;e<o.length;e+=1)o[e].c();r=D(),a&&a.c(),A(n,"class","CashierMethodList"),A(t,"class","CashierMethodListWidget")},m(i,s){v(i,t,s),b(t,n);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(n,null);b(t,r),a&&a.m(t,null)
@@ -690,7 +690,7 @@ i.url.startsWith("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=
690
690
  PERFORMANCE OF THIS SOFTWARE.
691
691
  ***************************************************************************** */
692
692
  /* global Reflect, Promise, SuppressedError, Symbol */
693
- var Rr=function(e,t){return Rr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Rr(e,t)};function Fr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Rr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function jr(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zr(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ur(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Wr(e){return"function"==typeof e}function Yr(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var Gr=Yr((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Jr(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Vr=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=jr(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(Wr(l))try{l()}catch(e){i=e instanceof Gr?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=jr(c),d=u.next();!d.done;d=u.next()){var h=d.value;try{qr(h)}catch(e){i=null!=i?i:[],e instanceof Gr?i=Ur(Ur([],zr(i)),zr(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new Gr(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)qr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Jr(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Jr(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Kr=Vr.EMPTY;function Xr(e){return e instanceof Vr||e&&"closed"in e&&Wr(e.remove)&&Wr(e.add)&&Wr(e.unsubscribe)}function qr(e){Wr(e)?e():e.unsubscribe()}var Zr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qr={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Qr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ur([e,t],zr(n))):setTimeout.apply(void 0,Ur([e,t],zr(n)))},clearTimeout:function(e){var t=Qr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ei(){}var ti=null;function ni(e){if(Zr.useDeprecatedSynchronousErrorHandling){var t=!ti;if(t&&(ti={errorThrown:!1,error:null}),e(),t){var n=ti,r=n.errorThrown,i=n.error;if(ti=null,r)throw i}}else e()}var ri=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Xr(t)&&t.add(n)):n.destination=ci,n}return Fr(t,e),t.create=function(e,t,n){return new si(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Vr),ii=Function.prototype.bind;function oi(e,t){return ii.call(e,t)}var ai=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){li(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){li(e)}else li(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){li(e)}},e}(),si=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;Wr(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&Zr.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&oi(t.next,o),error:t.error&&oi(t.error,o),complete:t.complete&&oi(t.complete,o)}):i=t;return a.destination=new ai(i),a}return Fr(t,e),t}(ri);function li(e){var t;t=e,Qr.setTimeout((function(){throw t}))}var ci={closed:!0,next:ei,error:function(e){throw e},complete:ei},ui="function"==typeof Symbol&&Symbol.observable||"@@observable";function di(e){return e}var hi=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof ri||function(e){return e&&Wr(e.next)&&Wr(e.error)&&Wr(e.complete)}(r)&&Xr(r)?e:new si(e,t,n);return ni((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=pi(t))((function(t,r){var i=new si({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[ui]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?di:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=pi(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function pi(e){var t;return null!==(t=null!=e?e:Zr.Promise)&&void 0!==t?t:Promise}var fi=Yr((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),mi=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Fr(t,e),t.prototype.lift=function(e){var t=new gi(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new fi},t.prototype.next=function(e){var t=this;ni((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=jr(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;ni((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;ni((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?Kr:(this.currentObservers=null,o.push(e),new Vr((function(){t.currentObservers=null,Jr(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new hi;return e.source=this,e},t.create=function(e,t){return new gi(e,t)},t}(hi),gi=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return Fr(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Kr},t}(mi),bi={now:function(){return(bi.delegate||Date).now()},delegate:void 0},yi=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=bi);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return Fr(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var a=n.now(),s=0,l=1;l<r.length&&r[l]<=a;l+=2)s=l;s&&r.splice(0,s+1)}},t}(mi);let wi=[],vi={};function ki(e,t){dn(e,t)}window.emWidgets={topic:(e,t=0)=>{if(-1==wi.indexOf(e)){let n=new yi(t);vi[e]=n,wi.push(e)}return vi[e]}};const xi={en:{loading:"Loading...",amountLabel:"Amount",redirectTitle:"You are redirected to the payment's provider page",redirectMessage:"Please complete your transaction on the payment's provider page.",backToPayment:"Close",retryText:"Please note that your popup blocker may prevent the payment window from appearing",retryButton:"RETRY",processingButton:"PROCESSING...",generalMin:"Min:",generalMax:"Max:",amountPlaceholder:"0.00",change:"Change",errorEmptyField:"Please enter data",minAmountError:"Amount cannot be smaller than {amount} {currency}",maxAmountError:"Amount cannot be bigger than {amount} {currency}",amountMultiplierError:"Amount should be multiple of {multiplier}",amountIntError:"Amount should be integer value",amountDecimalError:"Amount should have 2 or less digits after decimal point",invalidFieldError:"{field} is invalid",backToMethodList:"BACK TO PAYMENT METHODS",deposit:{makeTxnButton:"DEPOSIT",confirmText:"You're going to deposit {amount} {currency} to your account",confirmButton:"Ok"},withdraw:{makeTxnButton:"WITHDRAW",confirmText:"You're going to withdraw {amount} {currency} from your account",confirmButton:"Ok"}}};function Mi(e,t){dn(e,t)}const Ci={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"}};
693
+ var Rr=function(e,t){return Rr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Rr(e,t)};function Fr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Rr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function jr(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zr(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ur(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Wr(e){return"function"==typeof e}function Yr(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var Gr=Yr((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Jr(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Vr=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=jr(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(Wr(l))try{l()}catch(e){i=e instanceof Gr?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=jr(c),d=u.next();!d.done;d=u.next()){var h=d.value;try{qr(h)}catch(e){i=null!=i?i:[],e instanceof Gr?i=Ur(Ur([],zr(i)),zr(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new Gr(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)qr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Jr(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Jr(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Kr=Vr.EMPTY;function Xr(e){return e instanceof Vr||e&&"closed"in e&&Wr(e.remove)&&Wr(e.add)&&Wr(e.unsubscribe)}function qr(e){Wr(e)?e():e.unsubscribe()}var Zr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qr={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Qr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ur([e,t],zr(n))):setTimeout.apply(void 0,Ur([e,t],zr(n)))},clearTimeout:function(e){var t=Qr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ei(){}var ti=null;function ni(e){if(Zr.useDeprecatedSynchronousErrorHandling){var t=!ti;if(t&&(ti={errorThrown:!1,error:null}),e(),t){var n=ti,r=n.errorThrown,i=n.error;if(ti=null,r)throw i}}else e()}var ri=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Xr(t)&&t.add(n)):n.destination=ci,n}return Fr(t,e),t.create=function(e,t,n){return new si(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Vr),ii=Function.prototype.bind;function oi(e,t){return ii.call(e,t)}var ai=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){li(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){li(e)}else li(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){li(e)}},e}(),si=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;Wr(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&Zr.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&oi(t.next,o),error:t.error&&oi(t.error,o),complete:t.complete&&oi(t.complete,o)}):i=t;return a.destination=new ai(i),a}return Fr(t,e),t}(ri);function li(e){var t;t=e,Qr.setTimeout((function(){throw t}))}var ci={closed:!0,next:ei,error:function(e){throw e},complete:ei},ui="function"==typeof Symbol&&Symbol.observable||"@@observable";function di(e){return e}var hi=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof ri||function(e){return e&&Wr(e.next)&&Wr(e.error)&&Wr(e.complete)}(r)&&Xr(r)?e:new si(e,t,n);return ni((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=pi(t))((function(t,r){var i=new si({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[ui]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?di:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=pi(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function pi(e){var t;return null!==(t=null!=e?e:Zr.Promise)&&void 0!==t?t:Promise}var fi=Yr((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),mi=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Fr(t,e),t.prototype.lift=function(e){var t=new gi(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new fi},t.prototype.next=function(e){var t=this;ni((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=jr(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;ni((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;ni((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?Kr:(this.currentObservers=null,o.push(e),new Vr((function(){t.currentObservers=null,Jr(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new hi;return e.source=this,e},t.create=function(e,t){return new gi(e,t)},t}(hi),gi=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return Fr(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Kr},t}(mi),bi={now:function(){return(bi.delegate||Date).now()},delegate:void 0},yi=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=bi);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return Fr(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var a=n.now(),s=0,l=1;l<r.length&&r[l]<=a;l+=2)s=l;s&&r.splice(0,s+1)}},t}(mi);let wi=[],vi={};function ki(e,t){dn(e,t)}window.emWidgets={topic:(e,t=0)=>{if(-1==wi.indexOf(e)){let n=new yi(t);vi[e]=n,wi.push(e)}return vi[e]}};const xi={en:{loading:"Loading...",amountLabel:"Amount",redirectTitle:"You are redirected to the payment's provider page",redirectMessage:"Please complete your transaction on the payment's provider page.",backToPayment:"Close",retryText:"Please note that your popup blocker may prevent the payment window from appearing",retryButton:"RETRY",processingButton:"PROCESSING...",generalMin:"Min:",generalMax:"Max:",amountPlaceholder:"0.00",change:"Change",errorEmptyField:"Please enter data",minAmountError:"Amount cannot be smaller than {amount} {currency}",maxAmountError:"Amount cannot be bigger than {amount} {currency}",amountMultiplierError:"Amount should be multiple of {multiplier}",amountIntError:"Amount should be integer value",amountDecimalError:"Amount should have 2 or less digits after decimal point",invalidFieldError:"{field} is invalid",backToMethodList:"BACK TO PAYMENT METHODS",deposit:{makeTxnButton:"DEPOSIT",confirmText:"You're going to deposit to your account",confirmTextWithAmount:"You're going to deposit {amount} {currency} to your account",confirmButton:"Ok"},withdraw:{makeTxnButton:"WITHDRAW",confirmText:"You're going to withdraw from your account",confirmTextWithAmount:"You're going to withdraw {amount} {currency} from your account",confirmButton:"Ok"}}};function Mi(e,t){dn(e,t)}const Ci={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"}};
694
694
  /* ../cashier-iframe-redirect/src/CashierIframeRedirect.svelte generated by Svelte v3.59.2 */function Ei(e){let t;return{c(){t=M("div"),A(t,"class","LoadingSpinner")},m(e,n){v(e,t,n)},d(e){e&&k(t)}}}function Di(t){let n,r,o,a,s,c,u,d,h,p,f,m,g=/*$_*/t[2]("redirectHeader")+"",y=/*isLoading*/t[1]&&Ei();return{c(){n=M("div"),r=M("div"),o=M("div"),a=E(g),s=D(),c=M("div"),c.innerHTML='<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',u=D(),y&&y.c(),d=D(),h=M("iframe"),this.c=e,A(o,"class","RedirectHeader"),A(c,"class","CloseButton"),A(r,"class","HeaderContainer"),l(h.src,p=/*iframeurl*/t[0])||A(h,"src",p),A(h,"frameborder","0"),A(n,"class","CashierRedirectIframe")},m(e,i){v(e,n,i),b(n,r),b(r,o),b(o,a),b(r,s),b(r,c),b(n,u),y&&y.m(n,null),b(n,d),b(n,h),f||(m=[S(c,"click",/*close*/t[3]),S(h,"load",/*load_handler*/t[7])],f=!0)},p(e,[t]){/*$_*/4&t&&g!==(g=/*$_*/e[2]("redirectHeader")+"")&&_(a,g),/*isLoading*/e[1]?y||(y=Ei(),y.c(),y.m(n,d)):y&&(y.d(1),y=null),/*iframeurl*/1&t&&!l(h.src,p=/*iframeurl*/e[0])&&A(h,"src",p)},i:e,o:e,d(e){e&&k(n),y&&y.d(),f=!1,i(m)}}}function Ti(e,t,n){let r;u(e,Qn,(e=>n(2,r=e)));let{lang:i="en"}=t,{iframeurl:o}=t,{translationurl:a=""}=t,s=!0;K();Object.keys(Ci).forEach((e=>{Mi(e,Ci[e])}));const l=()=>{var e;e=i,Pn.set(e)},c=e=>{e.target.src&&n(1,s=!1)};return e.$$set=e=>{"lang"in e&&n(5,i=e.lang),"iframeurl"in e&&n(0,o=e.iframeurl),"translationurl"in e&&n(6,a=e.translationurl)},e.$$.update=()=>{/*lang*/32&e.$$.dirty&&i&&l(),/*translationurl*/64&e.$$.dirty&&a&&(()=>{if(a)fetch(a).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Mi(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[o,s,r,()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},c,i,a,e=>c(e)]}function Si(e,t){dn(e,t)}!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",class extends ye{constructor(e){super();const t=document.createElement("style");t.textContent='.CashierRedirectIframe{height:inherit;width:inherit}iframe{height:100%;width:100%}.HeaderContainer{display:flex;background-color:var(--emw--color-white, #fff);justify-content:space-between;align-items:center;width:100%}.HeaderContainer .RedirectHeader{font-size:var(--emw--font-size-small, 14px);color:var(--mmw--color-grey-10, #111);font-weight:bold;line-height:var(--emw--font-size-small, 14px)}.HeaderContainer .CloseButton{display:flex;align-items:center;padding:var(--emw--spacing-small-minus, 10px) var(--emw--spacing-x-small, 8px);box-sizing:border-box;border-radius:var(--mmw--border-radius-1x-small, 2px);background:var(--emw--color-white, #fff);justify-content:end;cursor:pointer}.LoadingSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:var(--emw--spacing-x-small, 8px);border-radius:50%;border:6px solid var(--mmw--color-main-button, #7EC51E);border-color:transparent var(--mmw--color-main-button, #7EC51E) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},Ti,Di,a,{lang:5,iframeurl:0,translationurl:6},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["lang","iframeurl","translationurl"]}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),ae()}get iframeurl(){return this.$$.ctx[0]}set iframeurl(e){this.$$set({iframeurl:e}),ae()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),ae()}});const Ai={en:{deposit:{success:{title:"{amount} {currency}",subTitle:"Deposited in your account",text:"Your deposit is successful"},pending:{title:"{amount} {currency}",subTitle:"Transaction is in progress",text:"Thank you. Your deposit is being processed."},reject:{title:"Deposit Rejected",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:"{errorText}"}},reference:"Reference ID: {code}",close:"Close"},"pt-br":{deposit:{success:{title:"{amount} {currency}",subTitle:"Depositado em sua conta",text:"Seu depósito foi bem-sucedido"},pending:{title:"{amount} {currency}",subTitle:"Transação em andamento",text:"Obrigado. Seu depósito está sendo processado."},reject:{title:"Depósito Rejeitado",subTitle:"",text:"{errorText}"},fail:{title:"Erro",subTitle:"",text:"{errorText}"},cancel:{title:"Você cancelou a transação",subTitle:"",text:"{errorText}"}},reference:"Referência ID: {code}",close:"VOLTAR AO PROVEDOR DE PAGAMENTO"},"es-mx":{deposit:{success:{title:"{amount} {currency}",subTitle:"Depositado en tu cuenta",text:"Tu depósito fue exitoso"},pending:{title:"{amount} {currency}",subTitle:"Transacción en proceso",text:"Gracias. Tu depósito está siendo procesado."},reject:{title:"Depósito Rechazado",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"Has cancelado la transacción",subTitle:" ",text:"{errorText}"}},reference:"Referencia ID: {code}",close:"REGRESAR A PROVEEDOR DE PAGO"}},Li={Success:"/txn-success.png",Voided:"/txn-success.png",Rejected:"/txn-failed.png",Failed:"/txn-failed.png",Canceled:"/txn-failed.png",PendingNotification:"/txn-pending.png","Pending Approval III":"/txn-pending.png","Pending Confirmation":"/txn-pending.png","Pending Approval I":"/txn-pending.png","Pending Offline Notification":"/txn-pending.png","Pending Approval II":"/txn-pending.png"},$i={Deposit:"deposit",Withdraw:"withdrawal"},_i={Success:"success",Voided:"success",PendingNotification:"pending","Pending Approval III":"pending","Pending Confirmation":"pending","Pending Approval I":"pending","Pending Offline Notification":"pending","Pending Approval II":"pending",Rejected:"reject",Failed:"fail",Canceled:"cancel"},{document:Pi}=g;function Oi(e,t,n){const r=e.slice();return r[40]=t[n],r[42]=n,r}
695
695
  // (207:5) {#if txnInfo}
696
696
  function Hi(e){let t,n,r,o,a,s,c,u,d,h,p,f,m,g,y,w,x,C,T,L,$,P,O,H,I,N=/*$_*/e[9]("close")+"",B=/*txnInfo*/e[2].referenceId&&Ii(e),R=/*receiptFields*/e[3].length&&Ni(e);return{c(){t=M("div"),n=M("span"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.33279 0.00663425C7.89688 0.105453 6.49895 0.511564 5.2336 1.19749C3.96825 1.88341 2.86499 2.83313 1.9985 3.9824C0.985792 5.31809 0.356137 6.84155 0.0769857 8.63039C-0.0256619 9.28509 -0.0256619 10.7147 0.0769857 11.3694C0.505101 14.1158 1.83326 16.3704 3.9851 18.0027C5.31451 19.0117 6.84672 19.6451 8.63053 19.923C9.28522 20.0257 10.7148 20.0257 11.3695 19.923C13.803 19.5437 15.8709 18.4471 17.4232 16.7121C18.8001 15.1736 19.595 13.4737 19.923 11.3694C20.0257 10.7147 20.0257 9.28509 19.923 8.63039C19.6451 6.84655 19.0117 5.31433 18.0028 3.9849C17.1973 2.91304 16.1846 2.01398 15.0249 1.34112C13.8652 0.668249 12.5821 0.235297 11.2518 0.0679732C10.614 0.00852964 9.97311 -0.0119547 9.33279 0.00663425ZM11.3019 1.33481C14.7956 1.87685 17.641 4.45559 18.4885 7.848C18.69 8.65292 18.7288 9.00343 18.7288 9.99988C18.7288 10.6946 18.715 10.97 18.6675 11.2855C18.4018 13.0557 17.6016 14.7024 16.374 16.0052C15.1464 17.308 13.5501 18.2045 11.7988 18.5748C10.686 18.8127 9.31401 18.8127 8.20117 18.5748C4.93272 17.8788 2.33398 15.3927 1.52156 12.1868C1.31126 11.3556 1.2712 11.0101 1.2712 9.99988C1.2712 8.98966 1.31126 8.64416 1.52156 7.81295C1.91376 6.29839 2.70396 4.91631 3.81023 3.81003C4.9165 2.70374 6.29856 1.91353 7.81311 1.52133C8.0885 1.45123 8.49409 1.36986 8.7144 1.34107L9.21512 1.27347C9.46673 1.23967 10.9689 1.28349 11.3019 1.33481ZM9.5481 5.25925C8.67685 5.35439 7.88821 5.8138 7.33116 6.54987C7.12462 6.82277 7.042 7.06437 7.09332 7.25339C7.17594 7.56009 7.55398 7.71781 7.87945 7.58262C7.94079 7.55633 8.16236 7.36355 8.37016 7.15325C8.79201 6.72763 8.99981 6.59995 9.41541 6.51232C10.5533 6.27197 11.541 6.85532 11.596 7.79918C11.6086 8.02326 11.5998 8.08084 11.5259 8.24107C11.3632 8.59659 11.0177 8.88826 10.5095 9.09982C10.1439 9.24341 9.76155 9.33975 9.3716 9.38649L9.1275 9.40902L9.13876 10.5306L9.14878 11.6523L9.23265 11.8025C9.42542 12.1517 9.96745 12.2118 10.2378 11.9152C10.3793 11.7587 10.4056 11.6247 10.4256 10.9638L10.4431 10.3416L10.6635 10.2815C12.1518 9.88095 13.1433 8.66669 12.973 7.44993C12.8579 6.62248 12.3709 5.96027 11.586 5.56845C11.0778 5.31433 10.2278 5.18539 9.5481 5.25925ZM9.37285 13.0568C9.06365 13.2108 8.90092 13.4799 8.89967 13.8404C8.89717 14.6003 9.77342 15.0071 10.3405 14.5089C10.4789 14.3866 10.576 14.2244 10.6186 14.0447C10.6612 13.8649 10.6471 13.6764 10.5783 13.505C10.3755 13.0493 9.81098 12.839 9.37285 13.0568Z" fill="#111111"></path></svg>',r=D(),o=M("span"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',a=D(),s=M("div"),c=M("img"),d=D(),h=M("div"),p=M("h2"),f=E(/*title*/e[5]),m=D(),g=M("div"),y=E(/*subTitle*/e[4]),w=D(),x=M("div"),C=E(/*text*/e[6]),T=D(),B&&B.c(),L=D(),R&&R.c(),$=D(),P=M("button"),O=E(N),A(t,"class","HeaderButtonContainer"),l(c.src,u=/*statusImageUrl*/e[7])||A(c,"src",u),A(c,"class","StatusLogo"),A(p,"class","Title"),A(g,"class","SubTitle"),A(h,"class","TitleWrapper"),A(s,"class","ReceiptWrapper"),A(x,"class","Text"),A(P,"class","PrimaryButton")},m(i,l){v(i,t,l),b(t,n),b(t,r),b(t,o),v(i,a,l),v(i,s,l),b(s,c),b(s,d),b(s,h),b(h,p),b(p,f),b(h,m),b(h,g),b(g,y),v(i,w,l),v(i,x,l),b(x,C),v(i,T,l),B&&B.m(i,l),v(i,L,l),R&&R.m(i,l),v(i,$,l),v(i,P,l),b(P,O),H||(I=[S(n,"click",/*liveChat*/e[11]),S(o,"click",/*closeReceipt*/e[10]),S(P,"click",/*closeReceipt*/e[10])],H=!0)},p(e,t){/*statusImageUrl*/128&t[0]&&!l(c.src,u=/*statusImageUrl*/e[7])&&A(c,"src",u),/*title*/32&t[0]&&_(f,/*title*/e[5]),/*subTitle*/16&t[0]&&_(y,/*subTitle*/e[4]),/*text*/64&t[0]&&_(C,/*text*/e[6]),/*txnInfo*/e[2].referenceId?B?B.p(e,t):(B=Ii(e),B.c(),B.m(L.parentNode,L)):B&&(B.d(1),B=null),/*receiptFields*/e[3].length?R?R.p(e,t):(R=Ni(e),R.c(),R.m($.parentNode,$)):R&&(R.d(1),R=null),/*$_*/512&t[0]&&N!==(N=/*$_*/e[9]("close")+"")&&_(O,N)},d(e){e&&k(t),e&&k(a),e&&k(s),e&&k(w),e&&k(x),e&&k(T),B&&B.d(e),e&&k(L),R&&R.d(e),e&&k($),e&&k(P),H=!1,i(I)}}}
@@ -847,7 +847,7 @@ function Aa(e){let t,n,r,i,o,a,s,l,c,u,d,h,p=/*$_*/e[30](`header.${/*type*/e[12]
847
847
  // (204:4) {#if redirectUrl && redirectMode === RedirectionModeStringEnum.Default}
848
848
  function La(e){let t,n;return{c(){t=M("div"),n=M("cashier-iframe-redirect"),L(n,"lang",/*lang*/e[2]),L(n,"translationurl",/*translationurl*/e[7]),L(n,"iframeurl",/*redirectUrl*/e[23]),A(t,"class","IframeRedirect")},m(e,r){v(e,t,r),b(t,n)},p(e,t){/*lang*/4&t[0]&&L(n,"lang",/*lang*/e[2]),/*translationurl*/128&t[0]&&L(n,"translationurl",/*translationurl*/e[7]),/*redirectUrl*/8388608&t[0]&&L(n,"iframeurl",/*redirectUrl*/e[23])},d(e){e&&k(t)}}}
849
849
  // (224:4) {#if showConfirmModal}
850
- function $a(e){let t,n,r,i,o,a,s=/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmText`,{values:/*editedAmount*/null!==e[28]?{amount:/*formatter*/e[31].format(/*editedAmount*/e[28]||0),currency:/*currency*/e[9]}:{amount:"",currency:""}})+"",l=/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmButton`)+"";return{c(){t=M("cashier-confirm-modal"),n=M("span"),r=E(s),i=D(),o=M("div"),a=E(l),A(n,"slot","text"),A(o,"slot","confirm")},m(e,s){v(e,t,s),b(t,n),b(n,r),b(t,i),b(t,o),b(o,a)},p(e,t){/*$_, type, editedAmount, currency*/1342181888&t[0]&&s!==(s=/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmText`,{values:/*editedAmount*/null!==e[28]?{amount:/*formatter*/e[31].format(/*editedAmount*/e[28]||0),currency:/*currency*/e[9]}:{amount:"",currency:""}})+"")&&_(r,s),/*$_, type*/1073745920&t[0]&&l!==(l=/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmButton`)+"")&&_(a,l)},d(e){e&&k(t)}}}
850
+ function $a(e){let t,n,r,i,o,a,s=/*editedAmount*/(e[28]?/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmTextWithAmount`,{values:{amount:/*formatter*/e[31].format(/*editedAmount*/e[28]),currency:/*currency*/e[9]}}):/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmText`))+"",l=/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmButton`)+"";return{c(){t=M("cashier-confirm-modal"),n=M("span"),r=E(s),i=D(),o=M("div"),a=E(l),A(n,"slot","text"),A(o,"slot","confirm")},m(e,s){v(e,t,s),b(t,n),b(n,r),b(t,i),b(t,o),b(o,a)},p(e,t){/*editedAmount, $_, type, currency*/1342181888&t[0]&&s!==(s=/*editedAmount*/(e[28]?/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmTextWithAmount`,{values:{amount:/*formatter*/e[31].format(/*editedAmount*/e[28]),currency:/*currency*/e[9]}}):/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmText`))+"")&&_(r,s),/*$_, type*/1073745920&t[0]&&l!==(l=/*$_*/e[30](`${/*type*/e[12].toLowerCase()}.confirmButton`)+"")&&_(a,l)},d(e){e&&k(t)}}}
851
851
  // (272:4) {:else}
852
852
  function _a(e){let t,n,r;return{c(){t=M("cashier-error"),n=M("span"),r=E(/*errorMessage*/e[26]),A(n,"slot","text"),L(t,"lang",/*lang*/e[2]),L(t,"assetsurl",/*assetsurl*/e[11]),L(t,"translationurl",/*translationurl*/e[7]),L(t,"clientstylingurl",/*clientstylingurl*/e[15]),L(t,"clientstyling",/*clientstyling*/e[14]),L(t,"hidebuttons","true")},m(e,i){v(e,t,i),b(t,n),b(n,r)},p(e,n){/*errorMessage*/67108864&n[0]&&_(r,/*errorMessage*/e[26]),/*lang*/4&n[0]&&L(t,"lang",/*lang*/e[2]),/*assetsurl*/2048&n[0]&&L(t,"assetsurl",/*assetsurl*/e[11]),/*translationurl*/128&n[0]&&L(t,"translationurl",/*translationurl*/e[7]),/*clientstylingurl*/32768&n[0]&&L(t,"clientstylingurl",/*clientstylingurl*/e[15]),/*clientstyling*/16384&n[0]&&L(t,"clientstyling",/*clientstyling*/e[14])},d(e){e&&k(t)}}}
853
853
  // (232:2) {#if !errorMessage}