@everymatrix/cashier-page 1.33.1 → 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 +1 -0
- package/dist/cashier-page.js +1 -1
- package/dist/cashier-page.js.map +1 -1
- package/package.json +2 -2
- package/src/translations.js +2 -2
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 |
|
package/dist/cashier-page.js
CHANGED
|
@@ -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 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:"
|
|
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)
|