@everymatrix/cashier-method-details 1.53.12 → 1.54.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/CashierConfirmModal-BCFrtc41.js +1029 -0
- package/components/CashierConfirmModal-BPOCBgWd.cjs +4 -0
- package/components/CashierError-DJht4oPb.cjs +5 -0
- package/components/{CashierError-MwSUmltg.js → CashierError-DsrAZ7IP.js} +16 -16
- package/components/{CashierHeader-t-mKIY-_.js → CashierHeader-BQ4XCSyP.js} +2 -2
- package/components/CashierHeader-GmZvyCGt.cjs +1 -0
- package/components/{CashierIframeRedirect-OvWRLGOx.js → CashierIframeRedirect-BURzxRqb.js} +6 -6
- package/components/CashierIframeRedirect-DmTcvobN.cjs +1 -0
- package/components/{CashierMethodDetails-BcnSmVkq.js → CashierMethodDetails-DH9kVsIF.js} +887 -869
- package/components/CashierMethodDetails-Dnhdtcto.cjs +18 -0
- package/components/CashierModal-D7FMZ2Gy.cjs +1 -0
- package/components/{CashierModal-ClIRlRW4.js → CashierModal-DcNl8u1M.js} +1 -1
- package/components/{CashierNotifications-Ip7CfQWs.js → CashierNotifications-BOc2VfCm.js} +1 -1
- package/components/CashierNotifications-a_yYbXof.cjs +1 -0
- package/components/{CashierReceiptPage-CIlcvMvB.js → CashierReceiptPage-B-bW-hmW.js} +109 -108
- package/components/CashierReceiptPage-RF2yM8w0.cjs +1 -0
- package/components/{CashierSpinner-DjTQcN-x.js → CashierSpinner-BhoNpvFz.js} +1 -1
- package/components/CashierSpinner-spPx3NOj.cjs +1 -0
- package/es2015/cashier-method-details.cjs +1 -0
- package/es2015/cashier-method-details.js +16 -0
- package/package.json +16 -12
- package/components/CashierConfirmModal-agjo7360.js +0 -992
- package/esnext/cashier-method-details.js +0 -14
@@ -1,4 +1,4 @@
|
|
1
|
-
import { n as G, s as Me, r as ze, a as fe, i as ye, S as je, b as de, f as d, c as Qe, d as Fe, e as AA, g as y, h as CA, j as b, k as F, l as M, u as eA, m as fA, o as nA, t as Q, p as R, q as Je, v as J, w as Oe, x as me, y as MA, z as zA, A as Re, B as Ge, C as Ne, D as DA } from "./CashierConfirmModal-
|
1
|
+
import { n as G, s as Me, r as ze, a as fe, i as ye, S as je, b as de, f as d, c as Qe, d as Fe, e as AA, g as y, h as CA, j as b, k as F, l as M, u as eA, m as fA, o as nA, t as Q, p as R, q as Je, v as J, w as Oe, x as me, y as MA, z as zA, A as Re, B as Ge, C as Ne, D as DA } from "./CashierConfirmModal-BCFrtc41.js";
|
2
2
|
const m = [];
|
3
3
|
function pe(A, e) {
|
4
4
|
return {
|
@@ -62,7 +62,7 @@ function k(A, e, f) {
|
|
62
62
|
};
|
63
63
|
});
|
64
64
|
}
|
65
|
-
var qn = typeof globalThis
|
65
|
+
var qn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
66
66
|
function Ye(A) {
|
67
67
|
return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
|
68
68
|
}
|
@@ -108,7 +108,7 @@ function FA(A) {
|
|
108
108
|
function ne(A, e) {
|
109
109
|
try {
|
110
110
|
return e in A;
|
111
|
-
} catch {
|
111
|
+
} catch (f) {
|
112
112
|
return !1;
|
113
113
|
}
|
114
114
|
}
|
@@ -187,11 +187,11 @@ function wf(A) {
|
|
187
187
|
}
|
188
188
|
function te(A, e, f, n) {
|
189
189
|
var t = wf(n) ? n : f(n), r = e.get(t);
|
190
|
-
return typeof r
|
190
|
+
return typeof r == "undefined" && (r = A.call(this, n), e.set(t, r)), r;
|
191
191
|
}
|
192
192
|
function re(A, e, f) {
|
193
193
|
var n = Array.prototype.slice.call(arguments, 3), t = f(n), r = e.get(t);
|
194
|
-
return typeof r
|
194
|
+
return typeof r == "undefined" && (r = A.apply(this, n), e.set(t, r)), r;
|
195
195
|
}
|
196
196
|
function yA(A, e, f, n, t) {
|
197
197
|
return f.bind(e, A, n, t);
|
@@ -2037,7 +2037,7 @@ var Xf = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mf = !!String
|
|
2037
2037
|
try {
|
2038
2038
|
var Jf = ue("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2039
2039
|
HA = ((aA = Jf.exec("a")) === null || aA === void 0 ? void 0 : aA[0]) === "a";
|
2040
|
-
} catch {
|
2040
|
+
} catch (A) {
|
2041
2041
|
HA = !1;
|
2042
2042
|
}
|
2043
2043
|
var GA = Xf ? (
|
@@ -2339,7 +2339,7 @@ var Rf = (
|
|
2339
2339
|
if (D.err)
|
2340
2340
|
return D;
|
2341
2341
|
var I = B(t, this.clonePosition());
|
2342
|
-
if (v && GA(v
|
2342
|
+
if (v && GA(v == null ? void 0 : v.style, "::", 0)) {
|
2343
2343
|
var x = Of(v.style.slice(2));
|
2344
2344
|
if (w === "number") {
|
2345
2345
|
var s = this.parseNumberSkeletonFromString(x, v.styleLocation);
|
@@ -2369,7 +2369,7 @@ var Rf = (
|
|
2369
2369
|
type: w === "number" ? H.number : w === "date" ? H.date : H.time,
|
2370
2370
|
value: n,
|
2371
2371
|
location: I,
|
2372
|
-
style: (r = v
|
2372
|
+
style: (r = v == null ? void 0 : v.style) !== null && r !== void 0 ? r : null
|
2373
2373
|
},
|
2374
2374
|
err: null
|
2375
2375
|
};
|
@@ -2462,7 +2462,7 @@ var Rf = (
|
|
2462
2462
|
var n = [];
|
2463
2463
|
try {
|
2464
2464
|
n = xf(e);
|
2465
|
-
} catch {
|
2465
|
+
} catch (t) {
|
2466
2466
|
return this.error(o.INVALID_NUMBER_SKELETON, f);
|
2467
2467
|
}
|
2468
2468
|
return {
|
@@ -2580,7 +2580,7 @@ var Rf = (
|
|
2580
2580
|
if (this.isEOF())
|
2581
2581
|
return null;
|
2582
2582
|
var e = this.char(), f = this.offset(), n = this.message.charCodeAt(f + (e >= 65536 ? 2 : 1));
|
2583
|
-
return n
|
2583
|
+
return n != null ? n : null;
|
2584
2584
|
}, A;
|
2585
2585
|
}()
|
2586
2586
|
);
|
@@ -2614,7 +2614,7 @@ function Yf(A, e) {
|
|
2614
2614
|
var n = SyntaxError(o[f.err.kind]);
|
2615
2615
|
throw n.location = f.err.location, n.originalMessage = f.err.message, n;
|
2616
2616
|
}
|
2617
|
-
return e
|
2617
|
+
return e != null && e.captureLocation || bA(f.val), f.val;
|
2618
2618
|
}
|
2619
2619
|
var Y;
|
2620
2620
|
(function(A) {
|
@@ -2873,7 +2873,7 @@ var De = (
|
|
2873
2873
|
enumerable: !1,
|
2874
2874
|
configurable: !0
|
2875
2875
|
}), A.memoizedDefaultLocale = null, A.resolveLocale = function(e) {
|
2876
|
-
if (
|
2876
|
+
if (typeof Intl.Locale != "undefined") {
|
2877
2877
|
var f = Intl.NumberFormat.supportedLocalesOf(e);
|
2878
2878
|
return f.length > 0 ? new Intl.Locale(f[0]) : new Intl.Locale(typeof e == "string" ? e : e[0]);
|
2879
2879
|
}
|
@@ -3109,7 +3109,7 @@ function sn(A) {
|
|
3109
3109
|
if (A.initialLocale)
|
3110
3110
|
try {
|
3111
3111
|
De.resolveLocale(A.initialLocale) && (t = A.initialLocale);
|
3112
|
-
} catch {
|
3112
|
+
} catch (r) {
|
3113
3113
|
console.warn(
|
3114
3114
|
`[svelte-i18n] The initial locale "${A.initialLocale}" is not a valid locale.`
|
3115
3115
|
);
|
@@ -3137,16 +3137,16 @@ function _(A, e = S().fallbackLocale) {
|
|
3137
3137
|
return e ? [.../* @__PURE__ */ new Set([...f, ...UA(e)])] : f;
|
3138
3138
|
}
|
3139
3139
|
function j() {
|
3140
|
-
return XA
|
3140
|
+
return XA != null ? XA : void 0;
|
3141
3141
|
}
|
3142
3142
|
wA.subscribe((A) => {
|
3143
|
-
XA = A
|
3143
|
+
XA = A != null ? A : void 0, typeof window != "undefined" && A != null && document.documentElement.setAttribute("lang", A);
|
3144
3144
|
});
|
3145
3145
|
const Dn = (A) => {
|
3146
3146
|
if (A && en(A) && iA(A)) {
|
3147
3147
|
const { loadingDelay: e } = S();
|
3148
3148
|
let f;
|
3149
|
-
return typeof window
|
3149
|
+
return typeof window != "undefined" && j() != null && e ? f = window.setTimeout(
|
3150
3150
|
() => xA.set(!0),
|
3151
3151
|
e
|
3152
3152
|
) : xA.set(!0), le(A).then(() => {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { S as $, b as tt, f as b, c as et, a as nt, d as st, e as L, g as y, h as z, j as B, k as C, l as S, u as v, m as H, o as T, t as M, p as E, v as k, w as lt, x as W, y as it, z as ot, C as at, A as Z, n as q } from "./CashierConfirmModal-
|
2
|
-
import { a as rt, i as ct, $ as ut, b as ft } from "./CashierError-
|
1
|
+
import { S as $, b as tt, f as b, c as et, a as nt, d as st, e as L, g as y, h as z, j as B, k as C, l as S, u as v, m as H, o as T, t as M, p as E, v as k, w as lt, x as W, y as it, z as ot, C as at, A as Z, n as q } from "./CashierConfirmModal-BCFrtc41.js";
|
2
|
+
import { a as rt, i as ct, $ as ut, b as ft } from "./CashierError-DsrAZ7IP.js";
|
3
3
|
function N(n, t) {
|
4
4
|
rt(n, t);
|
5
5
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-BPOCBgWd.cjs"),C=require("./CashierError-DJht4oPb.cjs");function k(l,t){C.addMessages(l,t)}function D(l){C.init({fallbackLocale:"en"}),C.$locale.set(l)}const B={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 P(l){e.append_styles(l,"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 W=l=>({}),L=l=>({}),Z=l=>({}),v=l=>({}),F=l=>({}),H=l=>({});function T(l){let t,n,i;return{c(){t=e.element("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>',e.attr(t,"class","CashierHeaderLeftButton")},m(s,u){e.insert(s,t,u),n||(i=e.listen(t,"click",l[6]),n=!0)},p:e.noop,d(s){s&&e.detach(t),n=!1,i()}}}function I(l){let t,n=l[1]&&T(l);return{c(){n&&n.c(),t=e.empty()},m(i,s){n&&n.m(i,s),e.insert(i,t,s)},p(i,s){i[1]?n?n.p(i,s):(n=T(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(i){i&&e.detach(t),n&&n.d(i)}}}function Y(l){let t,n=l[4](l[2])+"",i;return{c(){t=e.element("span"),i=e.text(n),e.attr(t,"class","CashierHeaderTitle")},m(s,u){e.insert(s,t,u),e.append(t,i)},p(s,u){u&20&&n!==(n=s[4](s[2])+"")&&e.set_data(i,n)},d(s){s&&e.detach(t)}}}function M(l){let t,n,i;return{c(){t=e.element("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>',e.attr(t,"class","CashierHeaderRightButton")},m(s,u){e.insert(s,t,u),n||(i=e.listen(t,"click",l[5]),n=!0)},p:e.noop,d(s){s&&e.detach(t),n=!1,i()}}}function G(l){let t,n=l[3]&&M(l);return{c(){n&&n.c(),t=e.empty()},m(i,s){n&&n.m(i,s),e.insert(i,t,s)},p(i,s){i[3]?n?n.p(i,s):(n=M(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(i){i&&e.detach(t),n&&n.d(i)}}}function J(l){let t,n,i,s;const u=l[15].leftButton,m=e.create_slot(u,l,l[14],H),h=m||I(l),p=l[15].title,g=e.create_slot(p,l,l[14],v),f=g||Y(l),_=l[15].rightButton,d=e.create_slot(_,l,l[14],L),c=d||G(l);return{c(){t=e.element("div"),h.c(),n=e.space(),f.c(),i=e.space(),c.c(),e.attr(t,"class","CashierHeader")},m(o,r){e.insert(o,t,r),h.m(t,null),e.append(t,n),f.m(t,null),e.append(t,i),c.m(t,null),l[16](t),s=!0},p(o,[r]){m?m.p&&(!s||r&16384)&&e.update_slot_base(m,u,o,o[14],s?e.get_slot_changes(u,o[14],r,F):e.get_all_dirty_from_scope(o[14]),H):h.p&&(!s||r&2)&&h.p(o,s?r:-1),g?g.p&&(!s||r&16384)&&e.update_slot_base(g,p,o,o[14],s?e.get_slot_changes(p,o[14],r,Z):e.get_all_dirty_from_scope(o[14]),v):f.p&&(!s||r&20)&&f.p(o,s?r:-1),d?d.p&&(!s||r&16384)&&e.update_slot_base(d,_,o,o[14],s?e.get_slot_changes(_,o[14],r,W):e.get_all_dirty_from_scope(o[14]),L):c.p&&(!s||r&8)&&c.p(o,s?r:-1)},i(o){s||(e.transition_in(h,o),e.transition_in(f,o),e.transition_in(c,o),s=!0)},o(o){e.transition_out(h,o),e.transition_out(f,o),e.transition_out(c,o),s=!1},d(o){o&&e.detach(t),h.d(o),f.d(o),c.d(o),l[16](null)}}}function K(l,t,n){let i;e.component_subscribe(l,C.$format,a=>n(4,i=a));let{$$slots:s={},$$scope:u}=t,{clientstyling:m=""}=t,{clientstylingurl:h=""}=t,{translationurl:p=""}=t,{showbackbutton:g=""}=t,{title:f="header.general"}=t,{lang:_="en"}=t,{showclosebutton:d=""}=t,c,o=!1,r,y=!1;const S=()=>{let a=p;a&&fetch(a).then(w=>w.json()).then(w=>{Object.keys(w).forEach(b=>{k(b,w[b])})}).catch(w=>{console.log(w)})};Object.keys(B).forEach(a=>{k(a,B[a])});const j=()=>{let a=document.createElement("style");a.innerHTML=m,c.appendChild(a)},N=()=>{let a=new URL(h),w=document.createElement("style");fetch(a.href).then(b=>b.text()).then(b=>{w.innerHTML=b,setTimeout(()=>{c.appendChild(w)},1)})},R=()=>{D(_)},z=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},O=()=>{window.postMessage({type:"BackCashier"},window.location.href)},q=()=>{n(1,o=!!g&&g!=="false")},A=()=>{n(3,y=!!d&&d!=="false")},U=()=>{n(2,r=f||"header.general")};function x(a){e.binding_callbacks[a?"unshift":"push"](()=>{c=a,n(0,c)})}return l.$$set=a=>{"clientstyling"in a&&n(7,m=a.clientstyling),"clientstylingurl"in a&&n(8,h=a.clientstylingurl),"translationurl"in a&&n(9,p=a.translationurl),"showbackbutton"in a&&n(10,g=a.showbackbutton),"title"in a&&n(11,f=a.title),"lang"in a&&n(12,_=a.lang),"showclosebutton"in a&&n(13,d=a.showclosebutton),"$$scope"in a&&n(14,u=a.$$scope)},l.$$.update=()=>{l.$$.dirty&4096&&_&&R(),l.$$.dirty&6144&&_&&f&&U(),l.$$.dirty&129&&m&&c&&j(),l.$$.dirty&257&&h&&c&&N(),l.$$.dirty&4608&&_&&p&&S(),l.$$.dirty&1024&&g&&q(),l.$$.dirty&8192&&d&&A()},[c,o,r,y,i,z,O,m,h,p,g,f,_,d,u,s,x]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,K,J,e.safe_not_equal,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13},P)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),e.flush()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),e.flush()}}e.create_custom_element(E,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{}},["leftButton","title","rightButton"],[],!0);exports.default=E;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { S as U, b as q, f as C, c as Z, a as F, d as P, g as y, h as H, E as c, D as R, j as b, k, l as L, A as M, n as v, v as E, C as G } from "./CashierConfirmModal-
|
2
|
-
import { a as J, i as K, $ as Q } from "./CashierError-
|
1
|
+
import { S as U, b as q, f as C, c as Z, a as F, d as P, g as y, h as H, E as c, D as R, j as b, k, l as L, A as M, n as v, v as E, C as G } from "./CashierConfirmModal-BCFrtc41.js";
|
2
|
+
import { a as J, i as K, $ as Q } from "./CashierError-DsrAZ7IP.js";
|
3
3
|
function T(i, e) {
|
4
4
|
J(i, e);
|
5
5
|
}
|
@@ -25,7 +25,7 @@ const D = {
|
|
25
25
|
redirectHeader: "Deposit redirect"
|
26
26
|
}
|
27
27
|
};
|
28
|
-
if (typeof window
|
28
|
+
if (typeof window != "undefined") {
|
29
29
|
let i = function(e) {
|
30
30
|
return function(...t) {
|
31
31
|
try {
|
@@ -37,11 +37,11 @@ if (typeof window < "u") {
|
|
37
37
|
}
|
38
38
|
};
|
39
39
|
};
|
40
|
-
customElements.define = i(customElements.define), import("./CashierHeader-
|
40
|
+
customElements.define = i(customElements.define), import("./CashierHeader-BQ4XCSyP.js").then(({ default: e }) => {
|
41
41
|
!customElements.get("cashier-header") && customElements.define("cashier-header", e.element);
|
42
42
|
});
|
43
43
|
}
|
44
|
-
if (typeof window
|
44
|
+
if (typeof window != "undefined") {
|
45
45
|
let i = function(e) {
|
46
46
|
return function(...t) {
|
47
47
|
try {
|
@@ -53,7 +53,7 @@ if (typeof window < "u") {
|
|
53
53
|
}
|
54
54
|
};
|
55
55
|
};
|
56
|
-
customElements.define = i(customElements.define), import("./CashierSpinner-
|
56
|
+
customElements.define = i(customElements.define), import("./CashierSpinner-BhoNpvFz.js").then(({ default: e }) => {
|
57
57
|
!customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
|
58
58
|
});
|
59
59
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BPOCBgWd.cjs"),C=require("./CashierError-DJht4oPb.cjs");function y(i,e){C.addMessages(i,e)}function S(i){C.init({fallbackLocale:"en"}),C.$locale.set(i)}const L={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-GmZvyCGt.cjs")).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-spPx3NOj.cjs")).then(({default:e})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",e.element)})}function q(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 v(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 k(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 E(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 D(i){let e,n,s,f,m,d,g,_,w,o=!!i[3]&&i[3]!=="false"&&v(i),a=(!i[3]||i[3]==="false")&&k(i),c=i[8]&&E(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=v(r),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,u):(a=k(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=E(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 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,a;const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{y(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(L).forEach(l=>{y(l,L[l])});const r=()=>{S(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},M=()=>{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)})},B=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},b=l=>{l.target.src&&n(8,o=!1)},R=l=>b(l);function T(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&&M()},[s,f,m,d,g,_,w,a,o,B,b,R,T]}class H extends t.SvelteComponent{constructor(e){super(),t.init(this,e,O,D,t.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},q)}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(H,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=H;
|