@everymatrix/cashier-method-details 1.29.0 → 1.29.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  | Version | Release date | Impacted areas | Changes |
5
5
  | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
+ | 1.29.0 | Wed Apr 10 2024 | cashier-method-details | fix(MMFE-885)(cashier-confirm-modal,cashier-error,cashier-method-details,cashier-methods-list,cashier-notifications,cashier-receipt-page): add inherit font-family for buttons |
6
7
  | 1.28.7 | Mon Apr 01 2024 | cashier-method-details | fix(MMFE-852)(cashier-method-details): fix displaying of digits <br /> fix(MMFE-850)(cashier-page,cashier-method-details): move container which froze page, change height of scrollable container |
7
8
  | 1.28.4 | Wed Mar 20 2024 | cashier-method-details | fix(MMFE-828)(cashier-method-details): fix dropdown size when container is scrollable, fix value in selector, fix check for required fields <br /> fix(GMMMFE-818)(cashier-method-details,cashier-page): add event which froze Cashier while the spinner on Deposit/Withdraw buttons is processing |
8
9
  | 1.28.0 | Fri Mar 08 2024 | cashier-method-details | feat(GMMMFE-773)(cashier-method-details,cashier-page): add field with type 'date' <br /> fix(GMMMFE-792)(cashier-method-details): fixes for validation |
@@ -679,8 +679,8 @@ this.formats=ar(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.
679
679
  // and Intl.DateTimeFormat instances.
680
680
  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 cr={},ur=(e,t,n)=>n?(t in cr||(cr[t]={}),e in cr[t]||(cr[t][e]=n),n):n,dr=(e,t)=>{if(null==t)return;if(t in cr&&e in cr[t])return cr[t][e];const n=Br(t);for(let r=0;r<n.length;r++){const i=mr(n[r],e);if(i)return ur(e,t,i)}};let hr;const pr=Mt({});function fr(e){return e in hr}function mr(e,t){if(!fr(e))return null;const n=function(e){return hr[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 gr(e,...t){delete cr[e],pr.update((n=>(n[e]=It.all([n[e]||{},...t]),n)))}Tt([pr],(([e])=>Object.keys(e))),pr.subscribe((e=>hr=e));const br={};function yr(e){return br[e]}function wr(e){return null!=e&&Br(e).some((e=>{var t;return null==(t=yr(e))?void 0:t.size}))}function vr(e,t){const n=Promise.all(t.map((t=>(function(e,t){br[e].delete(t),0===br[e].size&&delete br[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>gr(e,...t)))}const kr={};function xr(e){if(!wr(e))return e in kr?kr[e]:Promise.resolve();const t=function(e){return Br(e).map((e=>{const t=yr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return kr[e]=Promise.all(t.map((([e,t])=>vr(e,t)))).then((()=>{if(wr(e))return xr(e);delete kr[e]})),kr[e]}const Cr={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 Er(){return Cr}const Mr=Mt(!1);var Tr=Object.defineProperty,Dr=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Pr=(e,t,n)=>t in e?Tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Or;const Hr=Mt(null);function Ir(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Br(e,t=Er().fallbackLocale){const n=Ir(e);return t?[...new Set([...n,...Ir(t)])]:n}function Nr(){return null!=Or?Or:void 0}Hr.subscribe((e=>{Or=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Rr=($r=((e,t)=>{for(var n in t||(t={}))_r.call(t,n)&&Pr(e,n,t[n]);if(Ar)for(var n of Ar(t))Lr.call(t,n)&&Pr(e,n,t[n]);return e})({},Hr),Dr($r,Sr({set:e=>{if(e&&function(e){if(null==e)return;const t=Br(e);for(let e=0;e<t.length;e++){const n=t[e];if(fr(n))return n}}(e)&&wr(e)){const{loadingDelay:t}=Er();let n;return"undefined"!=typeof window&&null!=Nr()&&t?n=window.setTimeout((()=>Mr.set(!0)),t):Mr.set(!0),xr(e).then((()=>{Hr.set(e)})).finally((()=>{clearTimeout(n),Mr.set(!1)}))}return Hr.set(e)}})));var $r;const Fr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var jr=Object.defineProperty,Ur=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable,Gr=(e,t,n)=>t in e?jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jr=(e,t)=>{for(var n in t||(t={}))zr.call(t,n)&&Gr(e,n,t[n]);if(Ur)for(var n of Ur(t))Wr.call(t,n)&&Gr(e,n,t[n]);return e},Yr=(e,t)=>{var n={};for(var r in e)zr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ur)for(var r of Ur(e))t.indexOf(r)<0&&Wr.call(e,r)&&(n[r]=e[r]);return n};const Vr=(e,t)=>{const{formats:n}=Er();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kr=Fr((e=>{var t=e,{locale:n,format:r}=t,i=Yr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Vr("number",r)),new Intl.NumberFormat(n,i)})),qr=Fr((e=>{var t=e,{locale:n,format:r}=t,i=Yr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Vr("date",r):0===Object.keys(i).length&&(i=Vr("date","short")),new Intl.DateTimeFormat(n,i)})),Xr=Fr((e=>{var t=e,{locale:n,format:r}=t,i=Yr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Vr("time",r):0===Object.keys(i).length&&(i=Vr("time","short")),new Intl.DateTimeFormat(n,i)})),Zr=Fr((
681
681
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
682
- (e,t=Nr())=>new lr(e,t,Er().formats,{ignoreTag:Er().ignoreTag}))),Qr=(e,t={})=>{var n,r,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=Nr(),default:c}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=dr(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=Er()).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=Zr(u,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},ei=(e,t)=>((e={})=>{var t=e,{locale:n=Nr()}=t,r=Yr(t,["locale"]);return Xr(Jr({locale:n},r))})(t).format(e),ti=(e,t)=>((e={})=>{var t=e,{locale:n=Nr()}=t,r=Yr(t,["locale"]);return qr(Jr({locale:n},r))})(t).format(e),ni=(e,t)=>((e={})=>{var t=e,{locale:n=Nr()}=t,r=Yr(t,["locale"]);return Kr(Jr({locale:n},r))})(t).format(e),ri=(e,t=Nr())=>dr(e,t),ii=Tt([Rr,pr],(()=>Qr));Tt([Rr],(()=>ei)),Tt([Rr],(()=>ti)),Tt([Rr],(()=>ni)),Tt([Rr,pr],(()=>ri)),window.emWidgets={topic:(e,t=0)=>{if(-1==xt.indexOf(e)){let n=new kt(t);Ct[e]=n,xt.push(e)}return Ct[e]}};function oi(e,t){gr(e,t)}const ai={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",closeModal:"CLOSE",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 si(e,t){gr(e,t)}const li={en:{redirectHeader:"Deposit redirect"}};
683
- /* ../cashier-iframe-redirect/src/CashierIframeRedirect.svelte generated by Svelte v3.59.2 */function ci(e){let t;return{c(){t=C("div"),A(t,"class","LoadingSpinner")},m(e,n){v(e,t,n)},d(e){e&&k(t)}}}function ui(t){let n,r,o,a,s,c,u,d,h,p,f,m,g=/*$_*/t[2]("redirectHeader")+"",y=/*isLoading*/t[1]&&ci();return{c(){n=C("div"),r=C("div"),o=C("div"),a=M(g),s=T(),c=C("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=T(),y&&y.c(),d=T(),h=C("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")+"")&&P(a,g),/*isLoading*/e[1]?y||(y=ci(),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 di(e,t,n){let r;u(e,ii,(e=>n(2,r=e)));let{lang:i="en"}=t,{iframeurl:o}=t,{translationurl:a=""}=t,s=!0;!function(){const e=J()}();Object.keys(li).forEach((e=>{si(e,li[e])}));const l=()=>{var e;e=i,Rr.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=>{si(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 hi(e,t){gr(e,t)}!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",class extends ge{constructor(e){super();const t=document.createElement("style");t.textContent='.CashierRedirectIframe{height:inherit;width:inherit}iframe{height:100%;width:100%}.HeaderContainer{position:fixed;display:flex;top:0;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),me(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},di,ui,a,{lang:5,iframeurl:0,translationurl:6},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ie()))}static get observedAttributes(){return["lang","iframeurl","translationurl"]}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),ie()}get iframeurl(){return this.$$.ctx[0]}set iframeurl(e){this.$$set({iframeurl:e}),ie()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),ie()}});const pi={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}"}},withdrawal:{success:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Your withdrawal is successful"},pending:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Thank you. Your withdrawal is being processed."},reject:{title:"Withdrawal 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:"BACK TO MERCHANT"}},fi={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"},mi={Deposit:"deposit",Withdraw:"withdrawal"},gi={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:bi}=g;function yi(e,t,n){const r=e.slice();return r[34]=t[n],r[36]=n,r}
682
+ (e,t=Nr())=>new lr(e,t,Er().formats,{ignoreTag:Er().ignoreTag}))),Qr=(e,t={})=>{var n,r,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=Nr(),default:c}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=dr(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=Er()).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=Zr(u,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},ei=(e,t)=>((e={})=>{var t=e,{locale:n=Nr()}=t,r=Yr(t,["locale"]);return Xr(Jr({locale:n},r))})(t).format(e),ti=(e,t)=>((e={})=>{var t=e,{locale:n=Nr()}=t,r=Yr(t,["locale"]);return qr(Jr({locale:n},r))})(t).format(e),ni=(e,t)=>((e={})=>{var t=e,{locale:n=Nr()}=t,r=Yr(t,["locale"]);return Kr(Jr({locale:n},r))})(t).format(e),ri=(e,t=Nr())=>dr(e,t),ii=Tt([Rr,pr],(()=>Qr));Tt([Rr],(()=>ei)),Tt([Rr],(()=>ti)),Tt([Rr],(()=>ni)),Tt([Rr,pr],(()=>ri)),window.emWidgets={topic:(e,t=0)=>{if(-1==xt.indexOf(e)){let n=new kt(t);Ct[e]=n,xt.push(e)}return Ct[e]}};function oi(e,t){gr(e,t)}const ai={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",closeModal:"CLOSE",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 si(e,t){gr(e,t)}const li={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"}};
683
+ /* ../cashier-iframe-redirect/src/CashierIframeRedirect.svelte generated by Svelte v3.59.2 */function ci(e){let t;return{c(){t=C("div"),A(t,"class","LoadingSpinner")},m(e,n){v(e,t,n)},d(e){e&&k(t)}}}function ui(t){let n,r,o,a,s,c,u,d,h,p,f,m,g=/*$_*/t[2]("redirectHeader")+"",y=/*isLoading*/t[1]&&ci();return{c(){n=C("div"),r=C("div"),o=C("div"),a=M(g),s=T(),c=C("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=T(),y&&y.c(),d=T(),h=C("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")+"")&&P(a,g),/*isLoading*/e[1]?y||(y=ci(),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 di(e,t,n){let r;u(e,ii,(e=>n(2,r=e)));let{lang:i="en"}=t,{iframeurl:o}=t,{translationurl:a=""}=t,s=!0;!function(){const e=J()}();Object.keys(li).forEach((e=>{si(e,li[e])}));const l=()=>{var e;e=i,Rr.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=>{si(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 hi(e,t){gr(e,t)}!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",class extends ge{constructor(e){super();const t=document.createElement("style");t.textContent='.CashierRedirectIframe{height:inherit;width:inherit}iframe{height:100%;width:100%}.HeaderContainer{position:fixed;display:flex;top:0;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),me(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},di,ui,a,{lang:5,iframeurl:0,translationurl:6},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ie()))}static get observedAttributes(){return["lang","iframeurl","translationurl"]}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),ie()}get iframeurl(){return this.$$.ctx[0]}set iframeurl(e){this.$$set({iframeurl:e}),ie()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),ie()}});const pi={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}"}}},"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: {código}",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: {código}",close:"REGRESAR A PROVEEDOR DE PAGO"}},fi={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"},mi={Deposit:"deposit",Withdraw:"withdrawal"},gi={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:bi}=g;function yi(e,t,n){const r=e.slice();return r[34]=t[n],r[36]=n,r}
684
684
  // (192:5) {#if txnInfo}
685
685
  function wi(e){let t,n,r,o,a,s,c,u,d,h,p,f,m,g,y,w,x,E,D,_,L,O,H,I,B,N=/*$_*/e[9]("close")+"",R=/*txnInfo*/e[2].referenceId&&vi(e),$=/*receiptFields*/e[3].length&&ki(e);return{c(){t=C("div"),n=C("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=T(),o=C("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=T(),s=C("div"),c=C("img"),d=T(),h=C("div"),p=C("h2"),f=M(/*title*/e[5]),m=T(),g=C("div"),y=M(/*subTitle*/e[4]),w=T(),x=C("div"),E=M(/*text*/e[6]),D=T(),R&&R.c(),_=T(),$&&$.c(),L=T(),O=C("button"),H=M(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(O,"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,E),v(i,D,l),R&&R.m(i,l),v(i,_,l),$&&$.m(i,l),v(i,L,l),v(i,O,l),b(O,H),I||(B=[S(n,"click",/*liveChat*/e[11]),S(o,"click",/*closeReceipt*/e[10]),S(O,"click",/*closeReceipt*/e[10])],I=!0)},p(e,t){/*statusImageUrl*/128&t[0]&&!l(c.src,u=/*statusImageUrl*/e[7])&&A(c,"src",u),/*title*/32&t[0]&&P(f,/*title*/e[5]),/*subTitle*/16&t[0]&&P(y,/*subTitle*/e[4]),/*text*/64&t[0]&&P(E,/*text*/e[6]),/*txnInfo*/e[2].referenceId?R?R.p(e,t):(R=vi(e),R.c(),R.m(_.parentNode,_)):R&&(R.d(1),R=null),/*receiptFields*/e[3].length?$?$.p(e,t):($=ki(e),$.c(),$.m(L.parentNode,L)):$&&($.d(1),$=null),/*$_*/512&t[0]&&N!==(N=/*$_*/e[9]("close")+"")&&P(H,N)},d(e){e&&k(t),e&&k(a),e&&k(s),e&&k(w),e&&k(x),e&&k(D),R&&R.d(e),e&&k(_),$&&$.d(e),e&&k(L),e&&k(O),I=!1,i(B)}}}
686
686
  // (213:7) {#if txnInfo.referenceId}