@everymatrix/cashier-iframe-redirect 1.50.1 → 1.51.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.
- package/components/{CashierHeader-DjPdmRYY.cjs → CashierHeader-BgQNXnnQ.cjs} +1 -1
- package/components/{CashierHeader-Gw8UMQD4.js → CashierHeader-RyraoJNg.js} +7 -0
- package/components/CashierIframeRedirect-BUt_5BGj.cjs +1 -0
- package/components/{CashierIframeRedirect-Jiw_k1tu.js → CashierIframeRedirect-Bzjt6ENJ.js} +20 -17
- package/components/{CashierSpinner-CFHg1bGH.cjs → CashierSpinner-C6VaFIVf.cjs} +1 -1
- package/components/{CashierSpinner-CsWy8wlr.js → CashierSpinner-ChMYs5W7.js} +1 -1
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierIframeRedirect-sSfBrm-X.cjs +0 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,W.MISSING_INTL_API,a);var $=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));H=h.options[$]||h.options.other}if(!H)throw new bt(h.value,c,Object.keys(h.options),a);o.push.apply(o,ce(H.value,t,r,n,i,c-(h.offset||0)));continue}}return Gn(o)}function jn(e,t){return t?y(y(y({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=y(y({},e[n]),t[n]||{}),r},{})):e}function kn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=jn(e[n],t[n]),r},y({},e)):e}function Ne(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Vn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Oe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ce([void 0],r,!1)))},{cache:Ne(e.number),strategy:Pe.variadic}),getDateTimeFormat:Oe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ce([void 0],r,!1)))},{cache:Ne(e.dateTime),strategy:Pe.variadic}),getPluralRules:Oe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ce([void 0],r,!1)))},{cache:Ne(e.pluralRules),strategy:Pe.variadic})}}var tr=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var h=u.reduce(function(f,c){return!f.length||c.type!==x.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return ce(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=en(a,["formatters"]);this.ast=e.__parse(t,y(y({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=kn(e.formats,n),this.formatters=i&&i.formatters||Vn(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Rn,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}();function Xn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const P={},zn=(e,t,r)=>r&&(t in P||(P[t]={}),e in P[t]||(P[t][e]=r),r),rr=(e,t)=>{if(t==null)return;if(t in P&&e in P[t])return P[t][e];const r=se(t);for(let n=0;n<r.length;n++){const i=r[n],s=Zn(i,e);if(s)return zn(e,t,s)}};let Ke;const ie=_e({});function Wn(e){return Ke[e]||null}function nr(e){return e in Ke}function Zn(e,t){if(!nr(e))return null;const r=Wn(e);return Xn(r,t)}function Qn(e){if(e==null)return;const t=se(e);for(let r=0;r<t.length;r++){const n=t[r];if(nr(n))return n}}function et(e,...t){delete P[e],ie.update(r=>(r[e]=Kr.all([r[e]||{},...t]),r))}Q([ie],([e])=>Object.keys(e));ie.subscribe(e=>Ke=e);const me={};function qn(e,t){me[e].delete(t),me[e].size===0&&delete me[e]}function ir(e){return me[e]}function Jn(e){return se(e).map(t=>{const r=ir(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function de(e){return e==null?!1:se(e).some(t=>{var r;return(r=ir(t))==null?void 0:r.size})}function Yn(e,t){return Promise.all(t.map(n=>(qn(e,n),n().then(i=>i.default||i)))).then(n=>et(e,...n))}const J={};function sr(e){if(!de(e))return e in J?J[e]:Promise.resolve();const t=Jn(e);return J[e]=Promise.all(t.map(([r,n])=>Yn(r,n))).then(()=>{if(de(e))return sr(e);delete J[e]}),J[e]}var gt=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ti=(e,t)=>{var r={};for(var n in e)Kn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&>)for(var n of gt(e))t.indexOf(n)<0&&ei.call(e,n)&&(r[n]=e[n]);return r};const ri={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"}}};function ni({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${se(e).join('", "')}".${de(N())?`
|
|
4
4
|
|
|
5
|
-
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ii={fallbackLocale:null,loadingDelay:200,formats:ri,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Y=ii;function Z(){return Y}function or(e){const t=e,{formats:r}=t,n=ti(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{tr.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=ni:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Y,n,{initialLocale:i}),r&&("number"in r&&Object.assign(Y.formats.number,r.number),"date"in r&&Object.assign(Y.formats.date,r.date),"time"in r&&Object.assign(Y.formats.time,r.time)),I.set(i)}const Ie=_e(!1);var si=Object.defineProperty,oi=Object.defineProperties,ai=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,yt=(e,t,r)=>t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,li=(e,t)=>{for(var r in t||(t={}))ui.call(t,r)&&yt(e,r,t[r]);if(_t)for(var r of _t(t))hi.call(t,r)&&yt(e,r,t[r]);return e},fi=(e,t)=>oi(e,ai(t));let Xe;const be=_e(null);function Et(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function se(e,t=Z().fallbackLocale){const r=Et(e);return t?[...new Set([...r,...Et(t)])]:r}function N(){return Xe!=null?Xe:void 0}be.subscribe(e=>{Xe=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ci=e=>{if(e&&Qn(e)&&de(e)){const{loadingDelay:t}=Z();let r;return typeof window!="undefined"&&N()!=null&&t?r=window.setTimeout(()=>Ie.set(!0),t):Ie.set(!0),sr(e).then(()=>{be.set(e)}).finally(()=>{clearTimeout(r),Ie.set(!1)})}return be.set(e)},I=fi(li({},be),{set:ci}),xe=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var mi=Object.defineProperty,ge=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,xt=(e,t,r)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tt=(e,t)=>{for(var r in t||(t={}))ar.call(t,r)&&xt(e,r,t[r]);if(ge)for(var r of ge(t))ur.call(t,r)&&xt(e,r,t[r]);return e},q=(e,t)=>{var r={};for(var n in e)ar.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ge)for(var n of ge(e))t.indexOf(n)<0&&ur.call(e,n)&&(r[n]=e[n]);return r};const re=(e,t)=>{const{formats:r}=Z();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pi=xe(e=>{var t=e,{locale:r,format:n}=t,i=q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=re("number",n)),new Intl.NumberFormat(r,i)}),di=xe(e=>{var t=e,{locale:r,format:n}=t,i=q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=re("date",n):Object.keys(i).length===0&&(i=re("date","short")),new Intl.DateTimeFormat(r,i)}),bi=xe(e=>{var t=e,{locale:r,format:n}=t,i=q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=re("time",n):Object.keys(i).length===0&&(i=re("time","short")),new Intl.DateTimeFormat(r,i)}),gi=(e={})=>{var t=e,{locale:r=N()}=t,n=q(t,["locale"]);return pi(tt({locale:r},n))},_i=(e={})=>{var t=e,{locale:r=N()}=t,n=q(t,["locale"]);return di(tt({locale:r},n))},yi=(e={})=>{var t=e,{locale:r=N()}=t,n=q(t,["locale"]);return bi(tt({locale:r},n))},Ei=xe((e,t=N())=>new tr(e,t,Z().formats,{ignoreTag:Z().ignoreTag})),xi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=N(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=rr(e,l);if(!h)h=(s=(i=(n=(r=Z()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let f=h;try{f=Ei(h,l).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},vi=(e,t)=>yi(t).format(e),Hi=(e,t)=>_i(t).format(e),Bi=(e,t)=>gi(t).format(e),Ti=(e,t=N())=>rr(e,t),wi=Q([I,ie],()=>xi);Q([I],()=>vi);Q([I],()=>Hi);Q([I],()=>Bi);Q([I,ie],()=>Ti);function vt(e,t){et(e,t)}function Si(e){or({fallbackLocale:"en"}),I.set(e)}const Ht={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}}};function Ai(e){Lt(e,"svelte-bbilb",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}const Ci=e=>({}),Bt=e=>({}),Oi=e=>({}),Tt=e=>({}),Pi=e=>({}),wt=e=>({});function St(e){let t,r,n;return{c(){t=R("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>',U(t,"class","CashierHeaderLeftButton")},m(i,s){L(i,t,s),r||(n=Qe(t,"click",e[6]),r=!0)},p:T,d(i){i&&C(t),r=!1,n()}}}function Li(e){let t,r=e[1]&&St(e);return{c(){r&&r.c(),t=Nt()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,i){n[1]?r?r.p(n,i):(r=St(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&C(t),r&&r.d(n)}}}function Ni(e){let t,r=e[4](e[2])+"",n;return{c(){t=R("span"),n=Ze(r),U(t,"class","CashierHeaderTitle")},m(i,s){L(i,t,s),ee(t,n)},p(i,s){s&20&&r!==(r=i[4](i[2])+"")&&wr(n,r)},d(i){i&&C(t)}}}function At(e){let t,r,n;return{c(){t=R("span"),t.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>',U(t,"class","CashierHeaderRightButton")},m(i,s){L(i,t,s),r||(n=Qe(t,"click",e[5]),r=!0)},p:T,d(i){i&&C(t),r=!1,n()}}}function Ii(e){let t,r=e[3]&&At(e);return{c(){r&&r.c(),t=Nt()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,i){n[3]?r?r.p(n,i):(r=At(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&C(t),r&&r.d(n)}}}function Mi(e){let t,r,n,i;const s=e[15].leftButton,a=He(s,e,e[14],wt),o=a||Li(e),l=e[15].title,u=He(l,e,e[14],Tt),h=u||Ni(e),f=e[15].rightButton,c=He(f,e,e[14],Bt),p=c||Ii(e);return{c(){t=R("div"),o&&o.c(),r=Me(),h&&h.c(),n=Me(),p&&p.c(),U(t,"class","CashierHeader")},m(m,g){L(m,t,g),o&&o.m(t,null),ee(t,r),h&&h.m(t,null),ee(t,n),p&&p.m(t,null),e[16](t),i=!0},p(m,[g]){a?a.p&&(!i||g&16384)&&Te(a,s,m,m[14],i?Be(s,m[14],g,Pi):we(m[14]),wt):o&&o.p&&(!i||g&2)&&o.p(m,i?g:-1),u?u.p&&(!i||g&16384)&&Te(u,l,m,m[14],i?Be(l,m[14],g,Oi):we(m[14]),Tt):h&&h.p&&(!i||g&20)&&h.p(m,i?g:-1),c?c.p&&(!i||g&16384)&&Te(c,f,m,m[14],i?Be(f,m[14],g,Ci):we(m[14]),Bt):p&&p.p&&(!i||g&8)&&p.p(m,i?g:-1)},i(m){i||(le(o,m),le(h,m),le(p,m),i=!0)},o(m){Ae(o,m),Ae(h,m),Ae(p,m),i=!1},d(m){m&&C(t),o&&o.d(m),h&&h.d(m),p&&p.d(m),e[16](null)}}}function $i(e,t,r){let n;xr(e,wi,_=>r(4,n=_));let{$$slots:i={},$$scope:s}=t,{clientstyling:a=""}=t,{clientstylingurl:o=""}=t,{translationurl:l=""}=t,{showbackbutton:u=""}=t,{title:h="header.general"}=t,{lang:f="en"}=t,{showclosebutton:c=""}=t,p,m=!1,g,v=!1;const M=()=>{let _=l;_&&fetch(_).then(A=>A.json()).then(A=>{Object.keys(A).forEach(G=>{vt(G,A[G])})}).catch(A=>{console.log(A)})};Object.keys(Ht).forEach(_=>{vt(_,Ht[_])});const O=()=>{let _=document.createElement("style");_.innerHTML=a,p.appendChild(_)},H=()=>{let _=new URL(o),A=document.createElement("style");fetch(_.href).then(G=>G.text()).then(G=>{A.innerHTML=G,setTimeout(()=>{p.appendChild(A)},1)})},$=()=>{Si(f)},S=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},D=()=>{window.postMessage({type:"BackCashier"},window.location.href)},oe=()=>{r(1,m=!!u&&u!=="false")},lr=()=>{r(3,v=!!c&&c!=="false")},fr=()=>{r(2,g=h||"header.general")};function cr(_){pe[_?"unshift":"push"](()=>{p=_,r(0,p)})}return e.$$set=_=>{"clientstyling"in _&&r(7,a=_.clientstyling),"clientstylingurl"in _&&r(8,o=_.clientstylingurl),"translationurl"in _&&r(9,l=_.translationurl),"showbackbutton"in _&&r(10,u=_.showbackbutton),"title"in _&&r(11,h=_.title),"lang"in _&&r(12,f=_.lang),"showclosebutton"in _&&r(13,c=_.showclosebutton),"$$scope"in _&&r(14,s=_.$$scope)},e.$$.update=()=>{e.$$.dirty&4096&&f&&$(),e.$$.dirty&6144&&f&&h&&fr(),e.$$.dirty&129&&a&&p&&O(),e.$$.dirty&257&&o&&p&&H(),e.$$.dirty&4608&&f&&l&&M(),e.$$.dirty&1024&&u&&oe(),e.$$.dirty&8192&&c&&lr()},[p,m,g,v,n,S,D,a,o,l,u,h,f,c,s,i,cr]}class hr extends Rt{constructor(t){super(),It(this,t,$i,Mi,We,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13},Ai)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),w()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),w()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),w()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),w()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),w()}}$t(hr,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{}},["leftButton","title","rightButton"],[],!0);const Ri=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"}));exports.$locale=I;exports.CashierHeader_ce=Ri;exports.SvelteComponent=Rt;exports.addMessages=et;exports.append=ee;exports.append_styles=Lt;exports.attr=U;exports.binding_callbacks=pe;exports.create_custom_element=$t;exports.detach=C;exports.element=R;exports.flush=w;exports.init=or;exports.init$1=It;exports.insert=L;exports.listen=Qe;exports.noop=T;exports.safe_not_equal=We;exports.set_custom_element_data=Br;exports.space=Me;exports.src_url_equal=yr;
|
|
5
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ii={fallbackLocale:null,loadingDelay:200,formats:ri,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Y=ii;function Z(){return Y}function or(e){const t=e,{formats:r}=t,n=ti(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{tr.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=ni:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Y,n,{initialLocale:i}),r&&("number"in r&&Object.assign(Y.formats.number,r.number),"date"in r&&Object.assign(Y.formats.date,r.date),"time"in r&&Object.assign(Y.formats.time,r.time)),I.set(i)}const Ie=_e(!1);var si=Object.defineProperty,oi=Object.defineProperties,ai=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,yt=(e,t,r)=>t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,li=(e,t)=>{for(var r in t||(t={}))ui.call(t,r)&&yt(e,r,t[r]);if(_t)for(var r of _t(t))hi.call(t,r)&&yt(e,r,t[r]);return e},fi=(e,t)=>oi(e,ai(t));let Xe;const be=_e(null);function Et(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function se(e,t=Z().fallbackLocale){const r=Et(e);return t?[...new Set([...r,...Et(t)])]:r}function N(){return Xe!=null?Xe:void 0}be.subscribe(e=>{Xe=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ci=e=>{if(e&&Qn(e)&&de(e)){const{loadingDelay:t}=Z();let r;return typeof window!="undefined"&&N()!=null&&t?r=window.setTimeout(()=>Ie.set(!0),t):Ie.set(!0),sr(e).then(()=>{be.set(e)}).finally(()=>{clearTimeout(r),Ie.set(!1)})}return be.set(e)},I=fi(li({},be),{set:ci}),xe=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var mi=Object.defineProperty,ge=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,xt=(e,t,r)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tt=(e,t)=>{for(var r in t||(t={}))ar.call(t,r)&&xt(e,r,t[r]);if(ge)for(var r of ge(t))ur.call(t,r)&&xt(e,r,t[r]);return e},q=(e,t)=>{var r={};for(var n in e)ar.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ge)for(var n of ge(e))t.indexOf(n)<0&&ur.call(e,n)&&(r[n]=e[n]);return r};const re=(e,t)=>{const{formats:r}=Z();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pi=xe(e=>{var t=e,{locale:r,format:n}=t,i=q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=re("number",n)),new Intl.NumberFormat(r,i)}),di=xe(e=>{var t=e,{locale:r,format:n}=t,i=q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=re("date",n):Object.keys(i).length===0&&(i=re("date","short")),new Intl.DateTimeFormat(r,i)}),bi=xe(e=>{var t=e,{locale:r,format:n}=t,i=q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=re("time",n):Object.keys(i).length===0&&(i=re("time","short")),new Intl.DateTimeFormat(r,i)}),gi=(e={})=>{var t=e,{locale:r=N()}=t,n=q(t,["locale"]);return pi(tt({locale:r},n))},_i=(e={})=>{var t=e,{locale:r=N()}=t,n=q(t,["locale"]);return di(tt({locale:r},n))},yi=(e={})=>{var t=e,{locale:r=N()}=t,n=q(t,["locale"]);return bi(tt({locale:r},n))},Ei=xe((e,t=N())=>new tr(e,t,Z().formats,{ignoreTag:Z().ignoreTag})),xi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=N(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=rr(e,l);if(!h)h=(s=(i=(n=(r=Z()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let f=h;try{f=Ei(h,l).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},vi=(e,t)=>yi(t).format(e),Hi=(e,t)=>_i(t).format(e),Bi=(e,t)=>gi(t).format(e),Ti=(e,t=N())=>rr(e,t),wi=Q([I,ie],()=>xi);Q([I],()=>vi);Q([I],()=>Hi);Q([I],()=>Bi);Q([I,ie],()=>Ti);function vt(e,t){et(e,t)}function Si(e){or({fallbackLocale:"en"}),I.set(e)}const Ht={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},"en-us":{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}}};function Ai(e){Lt(e,"svelte-bbilb",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}const Ci=e=>({}),Bt=e=>({}),Oi=e=>({}),Tt=e=>({}),Pi=e=>({}),wt=e=>({});function St(e){let t,r,n;return{c(){t=R("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>',U(t,"class","CashierHeaderLeftButton")},m(i,s){L(i,t,s),r||(n=Qe(t,"click",e[6]),r=!0)},p:T,d(i){i&&C(t),r=!1,n()}}}function Li(e){let t,r=e[1]&&St(e);return{c(){r&&r.c(),t=Nt()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,i){n[1]?r?r.p(n,i):(r=St(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&C(t),r&&r.d(n)}}}function Ni(e){let t,r=e[4](e[2])+"",n;return{c(){t=R("span"),n=Ze(r),U(t,"class","CashierHeaderTitle")},m(i,s){L(i,t,s),ee(t,n)},p(i,s){s&20&&r!==(r=i[4](i[2])+"")&&wr(n,r)},d(i){i&&C(t)}}}function At(e){let t,r,n;return{c(){t=R("span"),t.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>',U(t,"class","CashierHeaderRightButton")},m(i,s){L(i,t,s),r||(n=Qe(t,"click",e[5]),r=!0)},p:T,d(i){i&&C(t),r=!1,n()}}}function Ii(e){let t,r=e[3]&&At(e);return{c(){r&&r.c(),t=Nt()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,i){n[3]?r?r.p(n,i):(r=At(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&C(t),r&&r.d(n)}}}function Mi(e){let t,r,n,i;const s=e[15].leftButton,a=He(s,e,e[14],wt),o=a||Li(e),l=e[15].title,u=He(l,e,e[14],Tt),h=u||Ni(e),f=e[15].rightButton,c=He(f,e,e[14],Bt),p=c||Ii(e);return{c(){t=R("div"),o&&o.c(),r=Me(),h&&h.c(),n=Me(),p&&p.c(),U(t,"class","CashierHeader")},m(m,g){L(m,t,g),o&&o.m(t,null),ee(t,r),h&&h.m(t,null),ee(t,n),p&&p.m(t,null),e[16](t),i=!0},p(m,[g]){a?a.p&&(!i||g&16384)&&Te(a,s,m,m[14],i?Be(s,m[14],g,Pi):we(m[14]),wt):o&&o.p&&(!i||g&2)&&o.p(m,i?g:-1),u?u.p&&(!i||g&16384)&&Te(u,l,m,m[14],i?Be(l,m[14],g,Oi):we(m[14]),Tt):h&&h.p&&(!i||g&20)&&h.p(m,i?g:-1),c?c.p&&(!i||g&16384)&&Te(c,f,m,m[14],i?Be(f,m[14],g,Ci):we(m[14]),Bt):p&&p.p&&(!i||g&8)&&p.p(m,i?g:-1)},i(m){i||(le(o,m),le(h,m),le(p,m),i=!0)},o(m){Ae(o,m),Ae(h,m),Ae(p,m),i=!1},d(m){m&&C(t),o&&o.d(m),h&&h.d(m),p&&p.d(m),e[16](null)}}}function $i(e,t,r){let n;xr(e,wi,_=>r(4,n=_));let{$$slots:i={},$$scope:s}=t,{clientstyling:a=""}=t,{clientstylingurl:o=""}=t,{translationurl:l=""}=t,{showbackbutton:u=""}=t,{title:h="header.general"}=t,{lang:f="en"}=t,{showclosebutton:c=""}=t,p,m=!1,g,v=!1;const M=()=>{let _=l;_&&fetch(_).then(A=>A.json()).then(A=>{Object.keys(A).forEach(G=>{vt(G,A[G])})}).catch(A=>{console.log(A)})};Object.keys(Ht).forEach(_=>{vt(_,Ht[_])});const O=()=>{let _=document.createElement("style");_.innerHTML=a,p.appendChild(_)},H=()=>{let _=new URL(o),A=document.createElement("style");fetch(_.href).then(G=>G.text()).then(G=>{A.innerHTML=G,setTimeout(()=>{p.appendChild(A)},1)})},$=()=>{Si(f)},S=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},D=()=>{window.postMessage({type:"BackCashier"},window.location.href)},oe=()=>{r(1,m=!!u&&u!=="false")},lr=()=>{r(3,v=!!c&&c!=="false")},fr=()=>{r(2,g=h||"header.general")};function cr(_){pe[_?"unshift":"push"](()=>{p=_,r(0,p)})}return e.$$set=_=>{"clientstyling"in _&&r(7,a=_.clientstyling),"clientstylingurl"in _&&r(8,o=_.clientstylingurl),"translationurl"in _&&r(9,l=_.translationurl),"showbackbutton"in _&&r(10,u=_.showbackbutton),"title"in _&&r(11,h=_.title),"lang"in _&&r(12,f=_.lang),"showclosebutton"in _&&r(13,c=_.showclosebutton),"$$scope"in _&&r(14,s=_.$$scope)},e.$$.update=()=>{e.$$.dirty&4096&&f&&$(),e.$$.dirty&6144&&f&&h&&fr(),e.$$.dirty&129&&a&&p&&O(),e.$$.dirty&257&&o&&p&&H(),e.$$.dirty&4608&&f&&l&&M(),e.$$.dirty&1024&&u&&oe(),e.$$.dirty&8192&&c&&lr()},[p,m,g,v,n,S,D,a,o,l,u,h,f,c,s,i,cr]}class hr extends Rt{constructor(t){super(),It(this,t,$i,Mi,We,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13},Ai)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),w()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),w()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),w()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),w()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),w()}}$t(hr,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{}},["leftButton","title","rightButton"],[],!0);const Ri=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"}));exports.$locale=I;exports.CashierHeader_ce=Ri;exports.SvelteComponent=Rt;exports.addMessages=et;exports.append=ee;exports.append_styles=Lt;exports.attr=U;exports.binding_callbacks=pe;exports.create_custom_element=$t;exports.detach=C;exports.element=R;exports.flush=w;exports.init=or;exports.init$1=It;exports.insert=L;exports.listen=Qe;exports.noop=T;exports.safe_not_equal=We;exports.set_custom_element_data=Br;exports.space=Me;exports.src_url_equal=yr;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierHeader-BgQNXnnQ.cjs");function C(i,e){t.addMessages(i,e)}function T(i){t.init({fallbackLocale:"en"}),t.$locale.set(i)}const y={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"},"en-us":{redirectHeader:"Deposit redirect"}};if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-BgQNXnnQ.cjs")).then(e=>e.CashierHeader_ce).then(({default:e})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",e.element)})}if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-C6VaFIVf.cjs")).then(({default:e})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",e.element)})}function S(i){t.append_styles(i,"svelte-10xutbi",".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 40px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}function L(i){let e,n,s;return{c(){e=t.element("div"),e.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>',t.attr(e,"slot","leftButton"),t.attr(e,"class","CashierHeaderLeftButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function v(i){let e,n,s;return{c(){e=t.element("div"),e.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>',t.attr(e,"slot","rightButton"),t.attr(e,"class","CashierHeaderRightButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function k(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[5]),t.set_custom_element_data(e,"clientstyling",i[4])},m(n,s){t.insert(n,e,s)},p(n,s){s&32&&t.set_custom_element_data(e,"clientstylingurl",n[5]),s&16&&t.set_custom_element_data(e,"clientstyling",n[4])},d(n){n&&t.detach(e)}}}function q(i){let e,n,s,f,m,d,g,_,w,o=!!i[3]&&i[3]!=="false"&&L(i),a=(!i[3]||i[3]==="false")&&v(i),c=i[8]&&k(i);return{c(){e=t.element("div"),n=t.element("cashier-header"),o&&o.c(),s=t.space(),a&&a.c(),f=t.space(),c&&c.c(),m=t.space(),d=t.element("iframe"),t.set_custom_element_data(n,"lang",i[0]),t.set_custom_element_data(n,"translationurl",i[2]),t.set_custom_element_data(n,"title",i[6]),t.set_custom_element_data(n,"showbackbutton",i[3]),t.set_custom_element_data(n,"clientstylingurl",i[5]),t.set_custom_element_data(n,"clientstyling",i[4]),t.src_url_equal(d.src,g=i[1])||t.attr(d,"src",g),t.attr(d,"frameborder","0"),t.attr(e,"class","CashierRedirectIframe")},m(r,u){t.insert(r,e,u),t.append(e,n),o&&o.m(n,null),t.append(n,s),a&&a.m(n,null),t.append(e,f),c&&c.m(e,null),t.append(e,m),t.append(e,d),i[12](e),_||(w=t.listen(d,"load",i[11]),_=!0)},p(r,[u]){r[3]&&r[3]!=="false"?o?o.p(r,u):(o=L(r),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,u):(a=v(r),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u&1&&t.set_custom_element_data(n,"lang",r[0]),u&4&&t.set_custom_element_data(n,"translationurl",r[2]),u&64&&t.set_custom_element_data(n,"title",r[6]),u&8&&t.set_custom_element_data(n,"showbackbutton",r[3]),u&32&&t.set_custom_element_data(n,"clientstylingurl",r[5]),u&16&&t.set_custom_element_data(n,"clientstyling",r[4]),r[8]?c?c.p(r,u):(c=k(r),c.c(),c.m(e,m)):c&&(c.d(1),c=null),u&2&&!t.src_url_equal(d.src,g=r[1])&&t.attr(d,"src",g)},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o&&o.d(),a&&a.d(),c&&c.d(),i[12](null),_=!1,w()}}}function D(i,e,n){let{lang:s="en"}=e,{iframeurl:f}=e,{translationurl:m=""}=e,{showbackbutton:d=""}=e,{clientstyling:g=""}=e,{clientstylingurl:_=""}=e,{title:w=""}=e,o=!0,a;const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{C(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(l=>{C(l,y[l])});const r=()=>{T(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},H=()=>{let l=new URL(_),h=document.createElement("style");fetch(l.href).then(p=>p.text()).then(p=>{h.innerHTML=p,setTimeout(()=>{a.appendChild(h)},1)})},M=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},b=l=>{l.target.src&&n(8,o=!1)},B=l=>b(l);function R(l){t.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(7,a)})}return i.$$set=l=>{"lang"in l&&n(0,s=l.lang),"iframeurl"in l&&n(1,f=l.iframeurl),"translationurl"in l&&n(2,m=l.translationurl),"showbackbutton"in l&&n(3,d=l.showbackbutton),"clientstyling"in l&&n(4,g=l.clientstyling),"clientstylingurl"in l&&n(5,_=l.clientstylingurl),"title"in l&&n(6,w=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&r(),i.$$.dirty&4&&m&&c(),i.$$.dirty&144&&g&&a&&u(),i.$$.dirty&160&&_&&a&&H()},[s,f,m,d,g,_,w,a,o,M,b,B,R]}class E extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,D,q,t.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},S)}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(e){this.$$set({iframeurl:e}),t.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get title(){return this.$$.ctx[6]}set title(e){this.$$set({title:e}),t.flush()}}t.create_custom_element(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as N, i as U, $ as Z, S as F, b as P, f as C, c as G, s as J, d as K, e as
|
|
1
|
+
import { a as N, i as U, $ as Z, S as F, b as P, f as C, c as G, s as J, d as K, e as y, g as H, h as c, j as R, k as b, l as v, m as L, n as M, o as k, p as E, q as Q } from "./CashierHeader-RyraoJNg.js";
|
|
2
2
|
function T(i, e) {
|
|
3
3
|
N(i, e);
|
|
4
4
|
}
|
|
@@ -19,6 +19,9 @@ const S = {
|
|
|
19
19
|
},
|
|
20
20
|
tr: {
|
|
21
21
|
redirectHeader: "Para yatırma yönlendirmesi"
|
|
22
|
+
},
|
|
23
|
+
"en-us": {
|
|
24
|
+
redirectHeader: "Deposit redirect"
|
|
22
25
|
}
|
|
23
26
|
};
|
|
24
27
|
if (typeof window != "undefined") {
|
|
@@ -33,7 +36,7 @@ if (typeof window != "undefined") {
|
|
|
33
36
|
}
|
|
34
37
|
};
|
|
35
38
|
};
|
|
36
|
-
customElements.define = i(customElements.define), import("./CashierHeader-
|
|
39
|
+
customElements.define = i(customElements.define), import("./CashierHeader-RyraoJNg.js").then((e) => e.C).then(({ default: e }) => {
|
|
37
40
|
!customElements.get("cashier-header") && customElements.define("cashier-header", e.element);
|
|
38
41
|
});
|
|
39
42
|
}
|
|
@@ -49,18 +52,18 @@ if (typeof window != "undefined") {
|
|
|
49
52
|
}
|
|
50
53
|
};
|
|
51
54
|
};
|
|
52
|
-
customElements.define = i(customElements.define), import("./CashierSpinner-
|
|
55
|
+
customElements.define = i(customElements.define), import("./CashierSpinner-ChMYs5W7.js").then(({ default: e }) => {
|
|
53
56
|
!customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
|
|
54
57
|
});
|
|
55
58
|
}
|
|
56
59
|
function W(i) {
|
|
57
60
|
K(i, "svelte-10xutbi", ".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 40px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
58
61
|
}
|
|
59
|
-
function
|
|
62
|
+
function D(i) {
|
|
60
63
|
let e, t, l;
|
|
61
64
|
return {
|
|
62
65
|
c() {
|
|
63
|
-
e =
|
|
66
|
+
e = y("div"), e.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(e, "slot", "leftButton"), b(e, "class", "CashierHeaderLeftButton");
|
|
64
67
|
},
|
|
65
68
|
m(u, h) {
|
|
66
69
|
v(u, e, h), t || (l = M(
|
|
@@ -76,11 +79,11 @@ function j(i) {
|
|
|
76
79
|
}
|
|
77
80
|
};
|
|
78
81
|
}
|
|
79
|
-
function
|
|
82
|
+
function j(i) {
|
|
80
83
|
let e, t, l;
|
|
81
84
|
return {
|
|
82
85
|
c() {
|
|
83
|
-
e =
|
|
86
|
+
e = y("div"), e.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>', b(e, "slot", "rightButton"), b(e, "class", "CashierHeaderRightButton");
|
|
84
87
|
},
|
|
85
88
|
m(u, h) {
|
|
86
89
|
v(u, e, h), t || (l = M(
|
|
@@ -100,7 +103,7 @@ function I(i) {
|
|
|
100
103
|
let e;
|
|
101
104
|
return {
|
|
102
105
|
c() {
|
|
103
|
-
e =
|
|
106
|
+
e = y("cashier-spinner"), c(
|
|
104
107
|
e,
|
|
105
108
|
"clientstylingurl",
|
|
106
109
|
/*clientstylingurl*/
|
|
@@ -138,15 +141,15 @@ function I(i) {
|
|
|
138
141
|
function X(i) {
|
|
139
142
|
let e, t, l, u, h, d, g, w, _, a = !!/*showbackbutton*/
|
|
140
143
|
i[3] && /*showbackbutton*/
|
|
141
|
-
i[3] !== "false" &&
|
|
144
|
+
i[3] !== "false" && D(i), r = (!/*showbackbutton*/
|
|
142
145
|
i[3] || /*showbackbutton*/
|
|
143
|
-
i[3] === "false") &&
|
|
146
|
+
i[3] === "false") && j(i), o = (
|
|
144
147
|
/*isLoading*/
|
|
145
148
|
i[8] && I(i)
|
|
146
149
|
);
|
|
147
150
|
return {
|
|
148
151
|
c() {
|
|
149
|
-
e =
|
|
152
|
+
e = y("div"), t = y("cashier-header"), a && a.c(), l = H(), r && r.c(), u = H(), o && o.c(), h = H(), d = y("iframe"), c(
|
|
150
153
|
t,
|
|
151
154
|
"lang",
|
|
152
155
|
/*lang*/
|
|
@@ -190,9 +193,9 @@ function X(i) {
|
|
|
190
193
|
p(s, [f]) {
|
|
191
194
|
/*showbackbutton*/
|
|
192
195
|
s[3] && /*showbackbutton*/
|
|
193
|
-
s[3] !== "false" ? a ? a.p(s, f) : (a =
|
|
196
|
+
s[3] !== "false" ? a ? a.p(s, f) : (a = D(s), a.c(), a.m(t, l)) : a && (a.d(1), a = null), !/*showbackbutton*/
|
|
194
197
|
s[3] || /*showbackbutton*/
|
|
195
|
-
s[3] === "false" ? r ? r.p(s, f) : (r =
|
|
198
|
+
s[3] === "false" ? r ? r.p(s, f) : (r = j(s), r.c(), r.m(t, null)) : r && (r.d(1), r = null), f & /*lang*/
|
|
196
199
|
1 && c(
|
|
197
200
|
t,
|
|
198
201
|
"lang",
|
|
@@ -246,8 +249,8 @@ function Y(i, e, t) {
|
|
|
246
249
|
let n = h;
|
|
247
250
|
if (n)
|
|
248
251
|
return fetch(n).then((m) => m.json()).then((m) => {
|
|
249
|
-
Object.keys(m).forEach((
|
|
250
|
-
T(
|
|
252
|
+
Object.keys(m).forEach((p) => {
|
|
253
|
+
T(p, m[p]);
|
|
251
254
|
});
|
|
252
255
|
}).catch((m) => {
|
|
253
256
|
console.log(m);
|
|
@@ -263,8 +266,8 @@ function Y(i, e, t) {
|
|
|
263
266
|
n.innerHTML = g, r.appendChild(n);
|
|
264
267
|
}, O = () => {
|
|
265
268
|
let n = new URL(w), m = document.createElement("style");
|
|
266
|
-
fetch(n.href).then((
|
|
267
|
-
m.innerHTML =
|
|
269
|
+
fetch(n.href).then((p) => p.text()).then((p) => {
|
|
270
|
+
m.innerHTML = p, setTimeout(
|
|
268
271
|
() => {
|
|
269
272
|
r.appendChild(m);
|
|
270
273
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierHeader-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierHeader-BgQNXnnQ.cjs");function y(i){t.append_styles(i,"svelte-fidj5e",".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function g(i){let e;return{c(){e=t.element("div"),e.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',t.attr(e,"class","CashierSpinner")},m(s,l){t.insert(s,e,l),i[3](e)},p:t.noop,i:t.noop,o:t.noop,d(s){s&&t.detach(e),i[3](null)}}}function p(i,e,s){let{clientstyling:l=""}=e,{clientstylingurl:a=""}=e,r;const h=()=>{let n=document.createElement("style");n.innerHTML=l,r.appendChild(n)},u=()=>{let n=new URL(a),c=document.createElement("style");fetch(n.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function f(n){t.binding_callbacks[n?"unshift":"push"](()=>{r=n,s(0,r)})}return i.$$set=n=>{"clientstyling"in n&&s(1,l=n.clientstyling),"clientstylingurl"in n&&s(2,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&3&&l&&r&&h(),i.$$.dirty&5&&a&&r&&u()},[r,l,a,f]}class d extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,p,g,t.safe_not_equal,{clientstyling:1,clientstylingurl:2},y)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(d,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as y, b as g, f as d, c as p, s as m, d as k, e as C, k as x, l as S, o as c, p as _, q as b } from "./CashierHeader-
|
|
1
|
+
import { S as y, b as g, f as d, c as p, s as m, d as k, e as C, k as x, l as S, o as c, p as _, q as b } from "./CashierHeader-RyraoJNg.js";
|
|
2
2
|
function v(n) {
|
|
3
3
|
k(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierIframeRedirect-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierIframeRedirect-BUt_5BGj.cjs")).then(({default:t})=>{!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierIframeRedirect-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierIframeRedirect-Bzjt6ENJ.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-iframe-redirect") && customElements.define("cashier-iframe-redirect", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierHeader-DjPdmRYY.cjs");function C(i,e){t.addMessages(i,e)}function T(i){t.init({fallbackLocale:"en"}),t.$locale.set(i)}const y={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-DjPdmRYY.cjs")).then(e=>e.CashierHeader_ce).then(({default:e})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",e.element)})}if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-CFHg1bGH.cjs")).then(({default:e})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",e.element)})}function S(i){t.append_styles(i,"svelte-10xutbi",".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 40px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}function L(i){let e,n,s;return{c(){e=t.element("div"),e.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>',t.attr(e,"slot","leftButton"),t.attr(e,"class","CashierHeaderLeftButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function v(i){let e,n,s;return{c(){e=t.element("div"),e.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>',t.attr(e,"slot","rightButton"),t.attr(e,"class","CashierHeaderRightButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function k(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[5]),t.set_custom_element_data(e,"clientstyling",i[4])},m(n,s){t.insert(n,e,s)},p(n,s){s&32&&t.set_custom_element_data(e,"clientstylingurl",n[5]),s&16&&t.set_custom_element_data(e,"clientstyling",n[4])},d(n){n&&t.detach(e)}}}function q(i){let e,n,s,f,m,d,g,_,w,o=!!i[3]&&i[3]!=="false"&&L(i),r=(!i[3]||i[3]==="false")&&v(i),c=i[8]&&k(i);return{c(){e=t.element("div"),n=t.element("cashier-header"),o&&o.c(),s=t.space(),r&&r.c(),f=t.space(),c&&c.c(),m=t.space(),d=t.element("iframe"),t.set_custom_element_data(n,"lang",i[0]),t.set_custom_element_data(n,"translationurl",i[2]),t.set_custom_element_data(n,"title",i[6]),t.set_custom_element_data(n,"showbackbutton",i[3]),t.set_custom_element_data(n,"clientstylingurl",i[5]),t.set_custom_element_data(n,"clientstyling",i[4]),t.src_url_equal(d.src,g=i[1])||t.attr(d,"src",g),t.attr(d,"frameborder","0"),t.attr(e,"class","CashierRedirectIframe")},m(a,u){t.insert(a,e,u),t.append(e,n),o&&o.m(n,null),t.append(n,s),r&&r.m(n,null),t.append(e,f),c&&c.m(e,null),t.append(e,m),t.append(e,d),i[12](e),_||(w=t.listen(d,"load",i[11]),_=!0)},p(a,[u]){a[3]&&a[3]!=="false"?o?o.p(a,u):(o=L(a),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!a[3]||a[3]==="false"?r?r.p(a,u):(r=v(a),r.c(),r.m(n,null)):r&&(r.d(1),r=null),u&1&&t.set_custom_element_data(n,"lang",a[0]),u&4&&t.set_custom_element_data(n,"translationurl",a[2]),u&64&&t.set_custom_element_data(n,"title",a[6]),u&8&&t.set_custom_element_data(n,"showbackbutton",a[3]),u&32&&t.set_custom_element_data(n,"clientstylingurl",a[5]),u&16&&t.set_custom_element_data(n,"clientstyling",a[4]),a[8]?c?c.p(a,u):(c=k(a),c.c(),c.m(e,m)):c&&(c.d(1),c=null),u&2&&!t.src_url_equal(d.src,g=a[1])&&t.attr(d,"src",g)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),o&&o.d(),r&&r.d(),c&&c.d(),i[12](null),_=!1,w()}}}function O(i,e,n){let{lang:s="en"}=e,{iframeurl:f}=e,{translationurl:m=""}=e,{showbackbutton:d=""}=e,{clientstyling:g=""}=e,{clientstylingurl:_=""}=e,{title:w=""}=e,o=!0,r;const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{C(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(l=>{C(l,y[l])});const a=()=>{T(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,r.appendChild(l)},H=()=>{let l=new URL(_),h=document.createElement("style");fetch(l.href).then(p=>p.text()).then(p=>{h.innerHTML=p,setTimeout(()=>{r.appendChild(h)},1)})},M=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},b=l=>{l.target.src&&n(8,o=!1)},B=l=>b(l);function R(l){t.binding_callbacks[l?"unshift":"push"](()=>{r=l,n(7,r)})}return i.$$set=l=>{"lang"in l&&n(0,s=l.lang),"iframeurl"in l&&n(1,f=l.iframeurl),"translationurl"in l&&n(2,m=l.translationurl),"showbackbutton"in l&&n(3,d=l.showbackbutton),"clientstyling"in l&&n(4,g=l.clientstyling),"clientstylingurl"in l&&n(5,_=l.clientstylingurl),"title"in l&&n(6,w=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&a(),i.$$.dirty&4&&m&&c(),i.$$.dirty&144&&g&&r&&u(),i.$$.dirty&160&&_&&r&&H()},[s,f,m,d,g,_,w,r,o,M,b,B,R]}class E extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,O,q,t.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},S)}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(e){this.$$set({iframeurl:e}),t.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get title(){return this.$$.ctx[6]}set title(e){this.$$set({title:e}),t.flush()}}t.create_custom_element(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;
|