@everymatrix/cashier-iframe-redirect 1.43.3 → 1.44.0
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.
|
@@ -584,7 +584,7 @@ this.formats=Ee(t.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
584
584
|
// and Intl.DateTimeFormat instances.
|
|
585
585
|
t.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"}}},t}();const Te={},Be=(t,e,n)=>n?(e in Te||(Te[e]={}),t in Te[e]||(Te[e][t]=n),n):n,we=(t,e)=>{if(null==e)return;if(e in Te&&t in Te[e])return Te[e][t];const n=tn(e);for(let r=0;r<n.length;r++){const i=Ae(n[r],t);if(i)return Be(t,e,i)}};let _e;const Ce=G({});function Le(t){return t in _e}function Ae(t,e){if(!Le(t))return null;const n=function(t){return _e[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(t>0){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(n,e)}function Pe(t,...e){delete Te[t],Ce.update((n=>(n[t]=Y.all([n[t]||{},...e]),n)))}x([Ce],(([t])=>Object.keys(t))),Ce.subscribe((t=>_e=t));const Se={};function Oe(t){return Se[t]}function Ne(t){return null!=t&&tn(t).some((t=>{var e;return null==(e=Oe(t))?void 0:e.size}))}function Me(t,e){const n=Promise.all(e.map((e=>(function(t,e){Se[t].delete(e),0===Se[t].size&&delete Se[t]}(t,e),e().then((t=>t.default||t))))));return n.then((e=>Pe(t,...e)))}const Ie={};function Re(t){if(!Ne(t))return t in Ie?Ie[t]:Promise.resolve();const e=function(t){return tn(t).map((t=>{const e=Oe(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Ie[t]=Promise.all(e.map((([t,e])=>Me(t,e)))).then((()=>{if(Ne(t))return Re(t);delete Ie[t]})),Ie[t]}var $e=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable;function Ge({locale:t,id:e}){console.warn(`[svelte-i18n] The message "${e}" was not found in "${tn(t).join('", "')}".${Ne(en())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const xe={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 De(){return xe}function Fe(t){const e=t,{formats:n}=e,r=((t,e)=>{var n={};for(var r in t)Ue.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&$e)for(var r of $e(t))e.indexOf(r)<0&&ke.call(t,r)&&(n[r]=t[r]);return n})(e,["formats"]);let i=t.fallbackLocale;if(t.initialLocale)try{He.resolveLocale(t.initialLocale)&&(i=t.initialLocale)}catch(e){console.warn(`[svelte-i18n] The initial locale "${t.initialLocale}" is not a valid locale.`)}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,null==r.handleMissingMessage?r.handleMissingMessage=Ge:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(xe,r,{initialLocale:i}),n&&("number"in n&&Object.assign(xe.formats.number,n.number),"date"in n&&Object.assign(xe.formats.date,n.date),"time"in n&&Object.assign(xe.formats.time,n.time)),nn.set(i)}const je=G(!1);var Ve=Object.defineProperty,Xe=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,We=(t,e,n)=>e in t?Ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;let Qe;const Je=G(null);function qe(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function tn(t,e=De().fallbackLocale){const n=qe(t);return e?[...new Set([...n,...qe(e)])]:n}function en(){return null!=Qe?Qe:void 0}Je.subscribe((t=>{Qe=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const nn=(rn=((t,e)=>{for(var n in e||(e={}))ze.call(e,n)&&We(t,n,e[n]);if(Ze)for(var n of Ze(e))Ye.call(e,n)&&We(t,n,e[n]);return t})({},Je),Xe(rn,Ke({set:t=>{if(t&&function(t){if(null==t)return;const e=tn(t);for(let t=0;t<e.length;t++){const n=e[t];if(Le(n))return n}}(t)&&Ne(t)){const{loadingDelay:e}=De();let n;return"undefined"!=typeof window&&null!=en()&&e?n=window.setTimeout((()=>je.set(!0)),e):je.set(!0),Re(t).then((()=>{Je.set(t)})).finally((()=>{clearTimeout(n),je.set(!1)}))}return Je.set(t)}})));var rn;const on=t=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=t(n)}};var sn=Object.defineProperty,an=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,cn=(t,e,n)=>e in t?sn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,un=(t,e)=>{for(var n in e||(e={}))ln.call(e,n)&&cn(t,n,e[n]);if(an)for(var n of an(e))hn.call(e,n)&&cn(t,n,e[n]);return t},fn=(t,e)=>{var n={};for(var r in t)ln.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&an)for(var r of an(t))e.indexOf(r)<0&&hn.call(t,r)&&(n[r]=t[r]);return n};const pn=(t,e)=>{const{formats:n}=De();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},mn=on((t=>{var e=t,{locale:n,format:r}=e,i=fn(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=pn("number",r)),new Intl.NumberFormat(n,i)})),gn=on((t=>{var e=t,{locale:n,format:r}=e,i=fn(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=pn("date",r):0===Object.keys(i).length&&(i=pn("date","short")),new Intl.DateTimeFormat(n,i)})),dn=on((t=>{var e=t,{locale:n,format:r}=e,i=fn(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=pn("time",r):0===Object.keys(i).length&&(i=pn("time","short")),new Intl.DateTimeFormat(n,i)})),bn=on((
|
|
586
586
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
587
|
-
(t,e=en())=>new He(t,e,De().formats,{ignoreTag:De().ignoreTag}))),yn=(t,e={})=>{var n,r,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=en(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=we(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(r=(n=De()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:t,defaultValue:h}))?i:h)?o:t;if(!a)return c;let u=c;try{u=bn(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u},En=(t,e)=>((t={})=>{var e=t,{locale:n=en()}=e,r=fn(e,["locale"]);return dn(un({locale:n},r))})(e).format(t),vn=(t,e)=>((t={})=>{var e=t,{locale:n=en()}=e,r=fn(e,["locale"]);return gn(un({locale:n},r))})(e).format(t),Hn=(t,e)=>((t={})=>{var e=t,{locale:n=en()}=e,r=fn(e,["locale"]);return mn(un({locale:n},r))})(e).format(t),Tn=(t,e=en())=>we(t,e),Bn=x([nn,Ce],(()=>yn));function wn(t,e){Pe(t,e)}x([nn],(()=>En)),x([nn],(()=>vn)),x([nn],(()=>Hn)),x([nn,Ce],(()=>Tn)),Fe({fallbackLocale:"en"});const _n={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};function Cn(t,e){Pe(t,e)}Fe({fallbackLocale:"en"});const Ln={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Yatır",withdraw:"
|
|
587
|
+
(t,e=en())=>new He(t,e,De().formats,{ignoreTag:De().ignoreTag}))),yn=(t,e={})=>{var n,r,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=en(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=we(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(r=(n=De()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:t,defaultValue:h}))?i:h)?o:t;if(!a)return c;let u=c;try{u=bn(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u},En=(t,e)=>((t={})=>{var e=t,{locale:n=en()}=e,r=fn(e,["locale"]);return dn(un({locale:n},r))})(e).format(t),vn=(t,e)=>((t={})=>{var e=t,{locale:n=en()}=e,r=fn(e,["locale"]);return gn(un({locale:n},r))})(e).format(t),Hn=(t,e)=>((t={})=>{var e=t,{locale:n=en()}=e,r=fn(e,["locale"]);return mn(un({locale:n},r))})(e).format(t),Tn=(t,e=en())=>we(t,e),Bn=x([nn,Ce],(()=>yn));function wn(t,e){Pe(t,e)}x([nn],(()=>En)),x([nn],(()=>vn)),x([nn],(()=>Hn)),x([nn,Ce],(()=>Tn)),Fe({fallbackLocale:"en"});const _n={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};function Cn(t,e){Pe(t,e)}Fe({fallbackLocale:"en"});const Ln={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}}};
|
|
588
588
|
/* ../cashier-header/src/CashierHeader.svelte generated by Svelte v3.59.2 */function An(e){let n,r,i;return{c(){n=p("div"),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="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>',b(n,"class","CashierHeaderLeftButton")},m(t,o){u(t,n,o),r||(i=d(n,"click",/*back*/e[5]),r=!0)},p:t,d(t){t&&f(n),r=!1,i()}}}function Pn(e){let n,r,i,o,s,a,l,h,y,E,v,H=/*$_*/e[3](/*titleText*/e[2])+"",T=/*backButton*/e[1]&&An(e);return{c(){n=p("div"),r=p("slot"),T&&T.c(),i=g(),o=p("slot"),s=p("span"),a=m(H),l=g(),h=p("slot"),y=p("span"),y.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=t,b(r,"name","leftButton"),b(s,"class","CashierHeaderTitle"),b(o,"name","title"),b(y,"class","CashierHeaderRightButton"),b(h,"name","rightButton"),b(n,"class","CashierHeader")},m(t,f){u(t,n,f),c(n,r),T&&T.m(r,null),c(n,i),c(n,o),c(o,s),c(s,a),c(n,l),c(n,h),c(h,y),
|
|
589
589
|
/*div_binding*/e[12](n),E||(v=d(y,"click",/*close*/e[4]),E=!0)},p(t,[e]){/*backButton*/t[1]?T?T.p(t,e):(T=An(t),T.c(),T.m(r,null)):T&&(T.d(1),T=null),/*$_, titleText*/12&e&&H!==(H=/*$_*/t[3](/*titleText*/t[2])+"")&&function(t,e){e=""+e,t.data!==e&&(t.data=e)}(a,H)},i:t,o:t,d(t){t&&f(n),T&&T.d()
|
|
590
590
|
/*div_binding*/,e[12](null),E=!1,v()}}}function Sn(t,e,n){let r;var i,o;i=Bn,o=t=>n(3,r=t),t.$$.on_destroy.push(h(i,o));let s,a,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e,{showbackbutton:f=""}=e,{title:p="header.general"}=e,{lang:m="en"}=e,g=!1;Object.keys(Ln).forEach((t=>{Cn(t,Ln[t])}));const d=()=>{var t;t=m,nn.set(t)};return t.$$set=t=>{"clientstyling"in t&&n(6,l=t.clientstyling),"clientstylingurl"in t&&n(7,c=t.clientstylingurl),"translationurl"in t&&n(8,u=t.translationurl),"showbackbutton"in t&&n(9,f=t.showbackbutton),"title"in t&&n(10,p=t.title),"lang"in t&&n(11,m=t.lang)},t.$$.update=()=>{/*lang*/2048&t.$$.dirty&&m&&d(),/*lang, title*/3072&t.$$.dirty&&m&&p&&n(2,a=p||"header.general"),/*clientstyling, customStylingContainer*/65&t.$$.dirty&&l&&s&&(()=>{let t=document.createElement("style");t.innerHTML=l,s.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/129&t.$$.dirty&&c&&s&&(()=>{let t=new URL(c),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{s.appendChild(e)}),1)}))})(),/*lang, translationurl*/2304&t.$$.dirty&&m&&u&&u&&fetch(u).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Cn(e,t[e])}))})).catch((t=>{console.log(t)})),/*showbackbutton*/512&t.$$.dirty&&f&&n(1,g=!!f&&"false"!==f)},[s,g,a,r,()=>{window.postMessage({type:"CloseCashier"},window.location.href)},()=>{window.postMessage({type:"BackCashier"},window.location.href)},l,c,u,f,p,m,function(t){B[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}
|