@everymatrix/cashier-method-details 1.43.4 → 1.44.0
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.43.4 | Tue Oct 15 2024 | cashier-method-details | fix(MMFE-1235)(cashier-verification,cashier-method-details): abort loading the payment details <br /> fix(MMFE-1224)(cashier-method-details): prevent input minus and 'e' for amount |
|
6
7
|
| 1.43.3 | Fri Oct 04 2024 | cashier-method-details | fix(MMFE-1201)(cashier-confirm-modal,cashier-error,cashier-method-details,cashier-modal,cashier-notifications,cashier-page,cashier-session-expiration-modal): decrease z-index value, set height for main widget <br /> feat(MMFE-1155)(cashier-page,cashier-method-list,cashier-header,cashier-method-details,cashier-error,cashier-receipt-page): handle maintenance error, code refactor |
|
7
8
|
| 1.43.1 | Thu Sep 26 2024 | cashier-method-details | fix(MMFE-817)(cashier-method-details,cashier-method-list,cashier-page,cashier-receipt-page,cashier-session-expiration-modal,cashier-verifications): added extra header to requests to backend <br /> feat(MMFE-1187)(cashier-method-details,cashier-verifications,cashier-page): display KYC widget on details page |
|
8
9
|
| 1.42.0 | Thu Sep 19 2024 | cashier-method-details | fix(MMFE-1171)(cashier-method-details,cashier-session-expiration): add image to rollup |
|
@@ -680,7 +680,7 @@ this.formats=an(A.formats,n),this.formatters=r&&r.formatters||(void 0===(i=this.
|
|
680
680
|
// and Intl.DateTimeFormat instances.
|
681
681
|
A.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"}}},A}();const ln={},cn=(A,e,t)=>t?(e in ln||(ln[e]={}),A in ln[e]||(ln[e][A]=t),t):t,un=(A,e)=>{if(null==e)return;if(e in ln&&A in ln[e])return ln[e][A];const t=Nn(e);for(let n=0;n<t.length;n++){const r=wn(t[n],A);if(r)return cn(A,e,r)}};let dn;const hn=Be({});function gn(A){return A in dn}function wn(A,e){if(!gn(A))return null;const t=function(A){return dn[A]||null}(A);return function(A,e){if(null==e)return;if(e in A)return A[e];const t=e.split(".");let n=A;for(let A=0;A<t.length;A++)if("object"==typeof n){if(A>0){const e=t.slice(A,t.length).join(".");if(e in n){n=n[e];break}}n=n[t[A]]}else n=void 0;return n}(t,e)}function vn(A,...e){delete ln[A],hn.update((t=>(t[A]=Xe.all([t[A]||{},...e]),t)))}xe([hn],(([A])=>Object.keys(A))),hn.subscribe((A=>dn=A));const pn={};function mn(A){return pn[A]}function Pn(A){return null!=A&&Nn(A).some((A=>{var e;return null==(e=mn(A))?void 0:e.size}))}function Cn(A,e){const t=Promise.all(e.map((e=>(function(A,e){pn[A].delete(e),0===pn[A].size&&delete pn[A]}(A,e),e().then((A=>A.default||A))))));return t.then((e=>vn(A,...e)))}const En={};function yn(A){if(!Pn(A))return A in En?En[A]:Promise.resolve();const e=function(A){return Nn(A).map((A=>{const e=mn(A);return[A,e?[...e]:[]]})).filter((([,A])=>A.length>0))}(A);return En[A]=Promise.all(e.map((([A,e])=>Cn(A,e)))).then((()=>{if(Pn(A))return yn(A);delete En[A]})),En[A]}var bn=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable;function xn({locale:A,id:e}){console.warn(`[svelte-i18n] The message "${e}" was not found in "${Nn(A).join('", "')}".${Pn(Sn())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const Tn={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 Mn(){return Tn}function Hn(A){const e=A,{formats:t}=e,n=((A,e)=>{var t={};for(var n in A)Dn.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&bn)for(var n of bn(A))e.indexOf(n)<0&&Bn.call(A,n)&&(t[n]=A[n]);return t})(e,["formats"]);let r=A.fallbackLocale;if(A.initialLocale)try{fn.resolveLocale(A.initialLocale)&&(r=A.initialLocale)}catch(e){console.warn(`[svelte-i18n] The initial locale "${A.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=xn:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Tn,n,{initialLocale:r}),t&&("number"in t&&Object.assign(Tn.formats.number,t.number),"date"in t&&Object.assign(Tn.formats.date,t.date),"time"in t&&Object.assign(Tn.formats.time,t.time)),Gn.set(r)}const Ln=Be(!1);var zn=Object.defineProperty,kn=Object.defineProperties,In=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,Fn=(A,e,t)=>e in A?zn(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t;let On;const Qn=Be(null);function Rn(A){return A.split("-").map(((A,e,t)=>t.slice(0,e+1).join("-"))).reverse()}function Nn(A,e=Mn().fallbackLocale){const t=Rn(A);return e?[...new Set([...t,...Rn(e)])]:t}function Sn(){return null!=On?On:void 0}Qn.subscribe((A=>{On=null!=A?A:void 0,"undefined"!=typeof window&&null!=A&&document.documentElement.setAttribute("lang",A)}));const Gn=(Yn=((A,e)=>{for(var t in e||(e={}))Xn.call(e,t)&&Fn(A,t,e[t]);if(jn)for(var t of jn(e))Jn.call(e,t)&&Fn(A,t,e[t]);return A})({},Qn),kn(Yn,In({set:A=>{if(A&&function(A){if(null==A)return;const e=Nn(A);for(let A=0;A<e.length;A++){const t=e[A];if(gn(t))return t}}(A)&&Pn(A)){const{loadingDelay:e}=Mn();let t;return"undefined"!=typeof window&&null!=Sn()&&e?t=window.setTimeout((()=>Ln.set(!0)),e):Ln.set(!0),yn(A).then((()=>{Qn.set(A)})).finally((()=>{clearTimeout(t),Ln.set(!1)}))}return Qn.set(A)}})));var Yn;const Un=A=>{const e=Object.create(null);return t=>{const n=JSON.stringify(t);return n in e?e[n]:e[n]=A(t)}};var Kn=Object.defineProperty,Zn=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Vn=(A,e,t)=>e in A?Kn(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t,$n=(A,e)=>{for(var t in e||(e={}))Wn.call(e,t)&&Vn(A,t,e[t]);if(Zn)for(var t of Zn(e))qn.call(e,t)&&Vn(A,t,e[t]);return A},_n=(A,e)=>{var t={};for(var n in A)Wn.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&Zn)for(var n of Zn(A))e.indexOf(n)<0&&qn.call(A,n)&&(t[n]=A[n]);return t};const Ar=(A,e)=>{const{formats:t}=Mn();if(A in t&&e in t[A])return t[A][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${A} format.`)},er=Un((A=>{var e=A,{locale:t,format:n}=e,r=_n(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=Ar("number",n)),new Intl.NumberFormat(t,r)})),tr=Un((A=>{var e=A,{locale:t,format:n}=e,r=_n(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=Ar("date",n):0===Object.keys(r).length&&(r=Ar("date","short")),new Intl.DateTimeFormat(t,r)})),nr=Un((A=>{var e=A,{locale:t,format:n}=e,r=_n(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=Ar("time",n):0===Object.keys(r).length&&(r=Ar("time","short")),new Intl.DateTimeFormat(t,r)})),rr=Un((
|
682
682
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
683
|
-
(A,e=Sn())=>new fn(A,e,Mn().formats,{ignoreTag:Mn().ignoreTag}))),ir=(A,e={})=>{var t,n,r,i;let o=e;"object"==typeof A&&(o=A,A=o.id);const{values:a,locale:s=Sn(),default:f}=o;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=un(A,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${A}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(i=null!=(r=null==(n=(t=Mn()).handleMissingMessage)?void 0:n.call(t,{locale:s,id:A,defaultValue:f}))?r:f)?i:A;if(!a)return l;let c=l;try{c=rr(l,s).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${A}" has syntax error:`,e.message)}return c},or=(A,e)=>((A={})=>{var e=A,{locale:t=Sn()}=e,n=_n(e,["locale"]);return nr($n({locale:t},n))})(e).format(A),ar=(A,e)=>((A={})=>{var e=A,{locale:t=Sn()}=e,n=_n(e,["locale"]);return tr($n({locale:t},n))})(e).format(A),sr=(A,e)=>((A={})=>{var e=A,{locale:t=Sn()}=e,n=_n(e,["locale"]);return er($n({locale:t},n))})(e).format(A),fr=(A,e=Sn())=>un(A,e),lr=xe([Gn,hn],(()=>ir));function cr(A,e){vn(A,e)}xe([Gn],(()=>or)),xe([Gn],(()=>ar)),xe([Gn],(()=>sr)),xe([Gn,hn],(()=>fr)),window.emWidgets={topic:(A,e=0)=>{if(-1==ye.indexOf(A)){let t=new Ee(e);be[A]=t,ye.push(A)}return be[A]}},Hn({fallbackLocale:"en"});const ur={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"},tr:{loading:"Yükleniyor...",amountLabel:"Miktar",redirectTitle:"Ödeme sağlayıcısı sayfasına yönlendirilirsiniz",redirectMessage:"Lütfen ödeme sağlayıcısı sayfasında işleminizi tamamlayın.",backToPayment:"KAPALI",retryText:"Açılır pencere engelleyicinizin ödeme penceresinin görünmesini engelleyebileceğini lütfen unutmayın",retryButton:"Yeniden Dene",processingButton:"İŞLEME...",generalMin:"Min:",generalMax:"Maks:",amountPlaceholder:"0",change:"Değiştir",errorEmptyField:"Lütfen verileri girin",minAmountError:"Tutar {amount} {currency}'den küçük olamaz",maxAmountError:"Tutar {amount} {currency}'den büyük olamaz",amountMultiplierError:"Tutar {multiplier}'nin katı olmalıdır",amountIntError:"Tutar tam sayı olmalıdır",amountDecimalError:"Tutarın ondalık noktadan sonra 2 veya daha az hanesi olmalıdır",invalidFieldError:"{field} geçersiz",backToMethodList:"ÖDEME YÖNTEMLERİNE GERİ DÖN"}};function dr(A,e){vn(A,e)}Hn({fallbackLocale:"en"});const hr={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};function gr(A,e){vn(A,e)}Hn({fallbackLocale:"en"});const wr={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Yatır",withdraw:"
|
683
|
+
(A,e=Sn())=>new fn(A,e,Mn().formats,{ignoreTag:Mn().ignoreTag}))),ir=(A,e={})=>{var t,n,r,i;let o=e;"object"==typeof A&&(o=A,A=o.id);const{values:a,locale:s=Sn(),default:f}=o;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=un(A,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${A}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(i=null!=(r=null==(n=(t=Mn()).handleMissingMessage)?void 0:n.call(t,{locale:s,id:A,defaultValue:f}))?r:f)?i:A;if(!a)return l;let c=l;try{c=rr(l,s).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${A}" has syntax error:`,e.message)}return c},or=(A,e)=>((A={})=>{var e=A,{locale:t=Sn()}=e,n=_n(e,["locale"]);return nr($n({locale:t},n))})(e).format(A),ar=(A,e)=>((A={})=>{var e=A,{locale:t=Sn()}=e,n=_n(e,["locale"]);return tr($n({locale:t},n))})(e).format(A),sr=(A,e)=>((A={})=>{var e=A,{locale:t=Sn()}=e,n=_n(e,["locale"]);return er($n({locale:t},n))})(e).format(A),fr=(A,e=Sn())=>un(A,e),lr=xe([Gn,hn],(()=>ir));function cr(A,e){vn(A,e)}xe([Gn],(()=>or)),xe([Gn],(()=>ar)),xe([Gn],(()=>sr)),xe([Gn,hn],(()=>fr)),window.emWidgets={topic:(A,e=0)=>{if(-1==ye.indexOf(A)){let t=new Ee(e);be[A]=t,ye.push(A)}return be[A]}},Hn({fallbackLocale:"en"});const ur={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"},tr:{loading:"Yükleniyor...",amountLabel:"Miktar",redirectTitle:"Ödeme sağlayıcısı sayfasına yönlendirilirsiniz",redirectMessage:"Lütfen ödeme sağlayıcısı sayfasında işleminizi tamamlayın.",backToPayment:"KAPALI",retryText:"Açılır pencere engelleyicinizin ödeme penceresinin görünmesini engelleyebileceğini lütfen unutmayın",retryButton:"Yeniden Dene",processingButton:"İŞLEME...",generalMin:"Min:",generalMax:"Maks:",amountPlaceholder:"0",change:"Değiştir",errorEmptyField:"Lütfen verileri girin",minAmountError:"Tutar {amount} {currency}'den küçük olamaz",maxAmountError:"Tutar {amount} {currency}'den büyük olamaz",amountMultiplierError:"Tutar {multiplier}'nin katı olmalıdır",amountIntError:"Tutar tam sayı olmalıdır",amountDecimalError:"Tutarın ondalık noktadan sonra 2 veya daha az hanesi olmalıdır",invalidFieldError:"{field} geçersiz",backToMethodList:"ÖDEME YÖNTEMLERİNE GERİ DÖN"}};function dr(A,e){vn(A,e)}Hn({fallbackLocale:"en"});const hr={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};function gr(A,e){vn(A,e)}Hn({fallbackLocale:"en"});const wr={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}}};
|
684
684
|
/* ../cashier-header/src/CashierHeader.svelte generated by Svelte v3.59.2 */function vr(e){let t,n,r;return{c(){t=y("div"),t.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="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',M(t,"class","CashierHeaderLeftButton")},m(A,i){P(A,t,i),n||(r=T(t,"click",/*back*/e[5]),n=!0)},p:A,d(A){A&&C(t),n=!1,r()}}}function pr(e){let t,n,r,i,o,a,s,f,l,c,u,d=/*$_*/e[3](/*titleText*/e[2])+"",h=/*backButton*/e[1]&&vr(e);return{c(){t=y("div"),n=y("slot"),h&&h.c(),r=B(),i=y("slot"),o=y("span"),a=D(d),s=B(),f=y("slot"),l=y("span"),l.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>',this.c=A,M(n,"name","leftButton"),M(o,"class","CashierHeaderTitle"),M(i,"name","title"),M(l,"class","CashierHeaderRightButton"),M(f,"name","rightButton"),M(t,"class","CashierHeader")},m(A,d){P(A,t,d),v(t,n),h&&h.m(n,null),v(t,r),v(t,i),v(i,o),v(o,a),v(t,s),v(t,f),v(f,l),
|
685
685
|
/*div_binding*/e[12](t),c||(u=T(l,"click",/*close*/e[4]),c=!0)},p(A,[e]){/*backButton*/A[1]?h?h.p(A,e):(h=vr(A),h.c(),h.m(n,null)):h&&(h.d(1),h=null),/*$_, titleText*/12&e&&d!==(d=/*$_*/A[3](/*titleText*/A[2])+"")&&z(a,d)},i:A,o:A,d(A){A&&C(t),h&&h.d()
|
686
686
|
/*div_binding*/,e[12](null),c=!1,u()}}}function mr(A,e,t){let n;l(A,lr,(A=>t(3,n=A)));let r,i,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,{translationurl:s=""}=e,{showbackbutton:f=""}=e,{title:c="header.general"}=e,{lang:u="en"}=e,d=!1;Object.keys(wr).forEach((A=>{gr(A,wr[A])}));const h=()=>{var A;A=u,Gn.set(A)};return A.$$set=A=>{"clientstyling"in A&&t(6,o=A.clientstyling),"clientstylingurl"in A&&t(7,a=A.clientstylingurl),"translationurl"in A&&t(8,s=A.translationurl),"showbackbutton"in A&&t(9,f=A.showbackbutton),"title"in A&&t(10,c=A.title),"lang"in A&&t(11,u=A.lang)},A.$$.update=()=>{/*lang*/2048&A.$$.dirty&&u&&h(),/*lang, title*/3072&A.$$.dirty&&u&&c&&t(2,i=c||"header.general"),/*clientstyling, customStylingContainer*/65&A.$$.dirty&&o&&r&&(()=>{let A=document.createElement("style");A.innerHTML=o,r.appendChild(A)})(),/*clientstylingurl, customStylingContainer*/129&A.$$.dirty&&a&&r&&(()=>{let A=new URL(a),e=document.createElement("style");fetch(A.href).then((A=>A.text())).then((A=>{e.innerHTML=A,setTimeout((()=>{r.appendChild(e)}),1)}))})(),/*lang, translationurl*/2304&A.$$.dirty&&u&&s&&s&&fetch(s).then((A=>A.json())).then((A=>{Object.keys(A).forEach((e=>{gr(e,A[e])}))})).catch((A=>{console.log(A)})),/*showbackbutton*/512&A.$$.dirty&&f&&t(1,d=!!f&&"false"!==f)},[r,d,i,n,()=>{window.postMessage({type:"CloseCashier"},window.location.href)},()=>{window.postMessage({type:"BackCashier"},window.location.href)},o,a,s,f,c,u,function(A){W[A?"unshift":"push"]((()=>{r=A,t(0,r)}))}]}
|