@everymatrix/cashier-page 1.90.38 → 1.91.1
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/CashierCarousel-BNcnaN7U.js +672 -0
- package/components/CashierCarousel-CDhxtgjT.cjs +1 -0
- package/components/CashierCarousel-tfVH51fj.js +675 -0
- package/components/{CashierError-KbAGLdoj.js → CashierError-BBZp_vCz.js} +16 -15
- package/components/CashierError-BqvEnGrr.cjs +1 -0
- package/components/{CashierError-konEQwnP.js → CashierError-CJCuZ3gS.js} +16 -15
- package/components/CashierHeader-BGA-Qd-S.js +456 -0
- package/components/CashierHeader-BKL2lJFV.cjs +1 -0
- package/components/CashierHeader-Bt5aV48_.js +456 -0
- package/components/CashierIframeRedirect-BFSErhBp.cjs +1 -0
- package/components/{CashierIframeRedirect-C3muwYdO.js → CashierIframeRedirect-BmdHdE-5.js} +91 -106
- package/components/{CashierIframeRedirect-Ti9O6xV-.js → CashierIframeRedirect-pYzLGWrC.js} +93 -108
- package/components/CashierMethodDetails-DVZrNpfS.cjs +85 -0
- package/components/{CashierMethodDetails-B3kqjVcJ.js → CashierMethodDetails-DcSOxSSa.js} +2955 -3380
- package/components/{CashierMethodDetails-BuXvXCMn.js → CashierMethodDetails-pX-AJWAC.js} +2965 -3390
- package/components/{CashierMethodsList-Dz_ZPGDZ.js → CashierMethodsList-Bdv9g-e3.js} +56 -56
- package/components/CashierMethodsList-CKVmXdTC.cjs +1 -0
- package/components/{CashierMethodsList-DxIhgxEL.js → CashierMethodsList-D1cLe15i.js} +65 -65
- package/components/{CashierModal-BsrmgnKi.js → CashierModal-B3zx276E.js} +33 -32
- package/components/CashierModal-J_mZ6ODP.cjs +1 -0
- package/components/{CashierModal-B1pfSpCs.js → CashierModal-v3KI6AFW.js} +37 -36
- package/components/{CashierNotifications-DbJuswYZ.js → CashierNotifications-B2R2A9Ph.js} +5 -5
- package/components/{CashierNotifications-BXxNDzMM.js → CashierNotifications-CS6nM02T.js} +3 -3
- package/components/CashierNotifications-D-OhK4CJ.cjs +1 -0
- package/components/CashierPage-7d2gkNjC.js +9989 -0
- package/components/CashierPage-N8z4Zzox.js +9936 -0
- package/components/CashierPage-flG2gyRG.cjs +23 -0
- package/components/{CashierReceiptPage-DLZjvQui.js → CashierReceiptPage-BAvDYneB.js} +125 -138
- package/components/{CashierReceiptPage-DLp3xTRl.js → CashierReceiptPage-BHsVpacF.js} +125 -138
- package/components/CashierReceiptPage-BLOSwHFv.cjs +26 -0
- package/components/{CashierSessionExpirationModal-DnrJB7FX.js → CashierSessionExpirationModal-Bxct5zbr.js} +280 -267
- package/components/{CashierSessionExpirationModal-D9rAlcNI.js → CashierSessionExpirationModal-fN2A0ywt.js} +267 -254
- package/components/CashierSessionExpirationModal-vmiK0fHD.cjs +2 -0
- package/components/{CashierSpinner-DMrM0bGx.js → CashierSpinner-Ake8hCVD.js} +11 -10
- package/components/CashierSpinner-BUQIDK1i.cjs +1 -0
- package/components/{CashierSpinner-gJqeYU1n.js → CashierSpinner-DXjWZCDg.js} +13 -12
- package/components/CashierStepUp-BtrSk7D-.cjs +1 -0
- package/components/{CashierStepUp-BtmD9q4i.js → CashierStepUp-CcGk8qq_.js} +246 -245
- package/components/{CashierStepUp-B530YrSp.js → CashierStepUp-D2XsYRPV.js} +169 -168
- package/components/CashierTransactionHistory-0iCdtdJ1.cjs +1 -0
- package/components/{CashierTransactionHistory-DGGy4ffC.js → CashierTransactionHistory-C_yz5IP4.js} +71 -71
- package/components/{CashierTransactionHistory-DjJSyWXf.js → CashierTransactionHistory-Dr-rQ2Vi.js} +66 -66
- package/components/{CashierVerifications-CNMavkzY.js → CashierVerifications-DKRqica1.js} +158 -142
- package/components/{CashierVerifications-DWiOQPvm.js → CashierVerifications-dqSxyAIe.js} +118 -102
- package/components/CashierVerifications-v1QrnVcB.cjs +1 -0
- package/components/{TxnStatusIcon-DRFHs_0F.js → TxnStatusIcon-BBJGYEAU.js} +1 -1
- package/components/TxnStatusIcon-BWEAB3rw.cjs +1 -0
- package/components/{TxnStatusIcon-DCSCOAn2.js → TxnStatusIcon-BkGptsYx.js} +8 -8
- package/components/{TxnTypeIcons-Bg7QJKuH.js → TxnTypeIcons-BDTJpcOb.js} +1 -1
- package/components/TxnTypeIcons-Bjn-FpNT.cjs +1 -0
- package/components/{TxnTypeIcons-D37zQDwq.js → TxnTypeIcons-Bmdgcbf2.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +7 -7
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-B-cM-nlR.js +0 -5797
- package/components/CashierCarousel-CXoovlrR.js +0 -5835
- package/components/CashierCarousel-DMrMmClP.cjs +0 -23
- package/components/CashierError-CHGdRh2_.cjs +0 -1
- package/components/CashierHeader-B7FnLv3f.js +0 -397
- package/components/CashierHeader-BbP0idUh.js +0 -397
- package/components/CashierHeader-PvXFHPzQ.cjs +0 -1
- package/components/CashierIframeRedirect-C0AQ3pLh.cjs +0 -1
- package/components/CashierMethodDetails-31NnDFlx.cjs +0 -85
- package/components/CashierMethodsList-Dpc1Qnt_.cjs +0 -1
- package/components/CashierModal-DF8meLAZ.cjs +0 -1
- package/components/CashierNotifications-B8bRZMac.cjs +0 -1
- package/components/CashierPage-CrLOKCt7.js +0 -4485
- package/components/CashierPage-DDNG9YBM.cjs +0 -1
- package/components/CashierPage-Ra2kFFdS.js +0 -4455
- package/components/CashierReceiptPage-CGntD3Ym.cjs +0 -26
- package/components/CashierSessionExpirationModal-BE-FRBRq.cjs +0 -2
- package/components/CashierSpinner-DKYO0FtD.cjs +0 -1
- package/components/CashierStepUp-DKytvkqu.cjs +0 -1
- package/components/CashierTransactionHistory-DK7tE0EW.cjs +0 -1
- package/components/CashierVerifications-8c9sENE2.cjs +0 -1
- package/components/TxnStatusIcon-CWkyVMIU.cjs +0 -1
- package/components/TxnTypeIcons-CTQXT_j5.cjs +0 -1
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { a as tt, i as et, $ as st, S as nt, b as it, s as lt, f as b, c as ot, d as S, e as p, t as B, g as L, u as v, h as H, j as T, k as C, l as M, m as y, n as E, o as k, p as at, q as rt, r as G, v as ct, w as ut, x as ft, y as I, z as P, A as ht, B as dt } from "./CashierPage-7d2gkNjC.js";
|
|
2
|
+
function O(s, t) {
|
|
3
|
+
tt(s, t);
|
|
4
|
+
}
|
|
5
|
+
function gt(s) {
|
|
6
|
+
et({
|
|
7
|
+
fallbackLocale: "en"
|
|
8
|
+
}), st.set(s);
|
|
9
|
+
}
|
|
10
|
+
const z = {
|
|
11
|
+
en: {
|
|
12
|
+
header: {
|
|
13
|
+
general: "Cashier",
|
|
14
|
+
deposit: "Deposit",
|
|
15
|
+
withdraw: "Withdraw"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
tr: {
|
|
19
|
+
header: {
|
|
20
|
+
general: "Cashier",
|
|
21
|
+
deposit: "Para Yatır",
|
|
22
|
+
withdraw: "Çekim"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
fr: {
|
|
26
|
+
header: {
|
|
27
|
+
general: "Caisse",
|
|
28
|
+
deposit: "Dépôt",
|
|
29
|
+
withdraw: "Retrait"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}, m = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
33
|
+
function wt(s, t) {
|
|
34
|
+
if (s) {
|
|
35
|
+
const e = document.createElement("style");
|
|
36
|
+
e.innerHTML = t, s.appendChild(e);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function _t(s, t) {
|
|
40
|
+
if (!s || !t)
|
|
41
|
+
return;
|
|
42
|
+
const e = new URL(t);
|
|
43
|
+
fetch(e.href).then((i) => i.text()).then((i) => {
|
|
44
|
+
const n = document.createElement("style");
|
|
45
|
+
n.innerHTML = i, s && s.appendChild(n);
|
|
46
|
+
}).catch((i) => {
|
|
47
|
+
console.error("There was an error while trying to load client styling from URL", i);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function bt(s, t, e, i = !1) {
|
|
51
|
+
if (!window.emMessageBus)
|
|
52
|
+
return;
|
|
53
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !i)
|
|
54
|
+
return e = mt(s, t), e;
|
|
55
|
+
window[m] || (window[m] = {}), e = pt(s, t);
|
|
56
|
+
const a = e.unsubscribe.bind(e), h = () => {
|
|
57
|
+
if (window[m][t]) {
|
|
58
|
+
const r = window[m][t];
|
|
59
|
+
r.refCount > 1 ? r.refCount = r.refCount - 1 : delete window[m][t];
|
|
60
|
+
}
|
|
61
|
+
a();
|
|
62
|
+
};
|
|
63
|
+
return e.unsubscribe = h, e;
|
|
64
|
+
}
|
|
65
|
+
function mt(s, t) {
|
|
66
|
+
const e = document.createElement("style");
|
|
67
|
+
return window.emMessageBus.subscribe(t, (i) => {
|
|
68
|
+
s && (e.innerHTML = i, s.appendChild(e));
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function pt(s, t) {
|
|
72
|
+
return window.emMessageBus.subscribe(t, (e) => {
|
|
73
|
+
if (!s)
|
|
74
|
+
return;
|
|
75
|
+
const i = s.getRootNode(), n = window[m];
|
|
76
|
+
let a = n[t] && n[t].sheet;
|
|
77
|
+
a ? n[t].refCount = n[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(e), n[t] = {
|
|
78
|
+
sheet: a,
|
|
79
|
+
refCount: 1
|
|
80
|
+
});
|
|
81
|
+
const h = i.adoptedStyleSheets || [];
|
|
82
|
+
h.includes(a) || (i.adoptedStyleSheets = [...h, a]);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function Ct(s) {
|
|
86
|
+
ot(s, "svelte-1p7ag40", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;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;fill:var(--emw--color-primary, #F9C405)}");
|
|
87
|
+
}
|
|
88
|
+
const yt = (s) => ({}), N = (s) => ({}), kt = (s) => ({}), x = (s) => ({}), St = (s) => ({}), U = (s) => ({});
|
|
89
|
+
function D(s) {
|
|
90
|
+
let t, e, i;
|
|
91
|
+
return {
|
|
92
|
+
c() {
|
|
93
|
+
t = y("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><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"></path></svg>', k(t, "class", "CashierHeaderLeftButton");
|
|
94
|
+
},
|
|
95
|
+
m(n, a) {
|
|
96
|
+
C(n, t, a), e || (i = P(
|
|
97
|
+
t,
|
|
98
|
+
"click",
|
|
99
|
+
/*back*/
|
|
100
|
+
s[6]
|
|
101
|
+
), e = !0);
|
|
102
|
+
},
|
|
103
|
+
p: I,
|
|
104
|
+
d(n) {
|
|
105
|
+
n && p(t), e = !1, i();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function Bt(s) {
|
|
110
|
+
let t, e = (
|
|
111
|
+
/*backButton*/
|
|
112
|
+
s[1] && D(s)
|
|
113
|
+
);
|
|
114
|
+
return {
|
|
115
|
+
c() {
|
|
116
|
+
e && e.c(), t = G();
|
|
117
|
+
},
|
|
118
|
+
m(i, n) {
|
|
119
|
+
e && e.m(i, n), C(i, t, n);
|
|
120
|
+
},
|
|
121
|
+
p(i, n) {
|
|
122
|
+
/*backButton*/
|
|
123
|
+
i[1] ? e ? e.p(i, n) : (e = D(i), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
124
|
+
},
|
|
125
|
+
d(i) {
|
|
126
|
+
i && p(t), e && e.d(i);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function Lt(s) {
|
|
131
|
+
let t, e = (
|
|
132
|
+
/*$_*/
|
|
133
|
+
s[4](
|
|
134
|
+
/*titleText*/
|
|
135
|
+
s[2]
|
|
136
|
+
) + ""
|
|
137
|
+
), i;
|
|
138
|
+
return {
|
|
139
|
+
c() {
|
|
140
|
+
t = y("span"), i = ut(e), k(t, "class", "CashierHeaderTitle");
|
|
141
|
+
},
|
|
142
|
+
m(n, a) {
|
|
143
|
+
C(n, t, a), M(t, i);
|
|
144
|
+
},
|
|
145
|
+
p(n, a) {
|
|
146
|
+
a & /*$_, titleText*/
|
|
147
|
+
20 && e !== (e = /*$_*/
|
|
148
|
+
n[4](
|
|
149
|
+
/*titleText*/
|
|
150
|
+
n[2]
|
|
151
|
+
) + "") && ct(i, e);
|
|
152
|
+
},
|
|
153
|
+
d(n) {
|
|
154
|
+
n && p(t);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function q(s) {
|
|
159
|
+
let t, e, i;
|
|
160
|
+
return {
|
|
161
|
+
c() {
|
|
162
|
+
t = y("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>', k(t, "class", "CashierHeaderRightButton");
|
|
163
|
+
},
|
|
164
|
+
m(n, a) {
|
|
165
|
+
C(n, t, a), e || (i = P(
|
|
166
|
+
t,
|
|
167
|
+
"click",
|
|
168
|
+
/*close*/
|
|
169
|
+
s[5]
|
|
170
|
+
), e = !0);
|
|
171
|
+
},
|
|
172
|
+
p: I,
|
|
173
|
+
d(n) {
|
|
174
|
+
n && p(t), e = !1, i();
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function vt(s) {
|
|
179
|
+
let t, e = (
|
|
180
|
+
/*closeButton*/
|
|
181
|
+
s[3] && q(s)
|
|
182
|
+
);
|
|
183
|
+
return {
|
|
184
|
+
c() {
|
|
185
|
+
e && e.c(), t = G();
|
|
186
|
+
},
|
|
187
|
+
m(i, n) {
|
|
188
|
+
e && e.m(i, n), C(i, t, n);
|
|
189
|
+
},
|
|
190
|
+
p(i, n) {
|
|
191
|
+
/*closeButton*/
|
|
192
|
+
i[3] ? e ? e.p(i, n) : (e = q(i), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
193
|
+
},
|
|
194
|
+
d(i) {
|
|
195
|
+
i && p(t), e && e.d(i);
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function Ht(s) {
|
|
200
|
+
let t, e, i, n;
|
|
201
|
+
const a = (
|
|
202
|
+
/*#slots*/
|
|
203
|
+
s[16].leftButton
|
|
204
|
+
), h = S(
|
|
205
|
+
a,
|
|
206
|
+
s,
|
|
207
|
+
/*$$scope*/
|
|
208
|
+
s[15],
|
|
209
|
+
U
|
|
210
|
+
), r = h || Bt(s), _ = (
|
|
211
|
+
/*#slots*/
|
|
212
|
+
s[16].title
|
|
213
|
+
), d = S(
|
|
214
|
+
_,
|
|
215
|
+
s,
|
|
216
|
+
/*$$scope*/
|
|
217
|
+
s[15],
|
|
218
|
+
x
|
|
219
|
+
), c = d || Lt(s), g = (
|
|
220
|
+
/*#slots*/
|
|
221
|
+
s[16].rightButton
|
|
222
|
+
), w = S(
|
|
223
|
+
g,
|
|
224
|
+
s,
|
|
225
|
+
/*$$scope*/
|
|
226
|
+
s[15],
|
|
227
|
+
N
|
|
228
|
+
), u = w || vt(s);
|
|
229
|
+
return {
|
|
230
|
+
c() {
|
|
231
|
+
t = y("div"), r && r.c(), e = E(), c && c.c(), i = E(), u && u.c(), k(t, "class", "CashierHeader");
|
|
232
|
+
},
|
|
233
|
+
m(l, f) {
|
|
234
|
+
C(l, t, f), r && r.m(t, null), M(t, e), c && c.m(t, null), M(t, i), u && u.m(t, null), s[17](t), n = !0;
|
|
235
|
+
},
|
|
236
|
+
p(l, [f]) {
|
|
237
|
+
h ? h.p && (!n || f & /*$$scope*/
|
|
238
|
+
32768) && v(
|
|
239
|
+
h,
|
|
240
|
+
a,
|
|
241
|
+
l,
|
|
242
|
+
/*$$scope*/
|
|
243
|
+
l[15],
|
|
244
|
+
n ? T(
|
|
245
|
+
a,
|
|
246
|
+
/*$$scope*/
|
|
247
|
+
l[15],
|
|
248
|
+
f,
|
|
249
|
+
St
|
|
250
|
+
) : H(
|
|
251
|
+
/*$$scope*/
|
|
252
|
+
l[15]
|
|
253
|
+
),
|
|
254
|
+
U
|
|
255
|
+
) : r && r.p && (!n || f & /*backButton*/
|
|
256
|
+
2) && r.p(l, n ? f : -1), d ? d.p && (!n || f & /*$$scope*/
|
|
257
|
+
32768) && v(
|
|
258
|
+
d,
|
|
259
|
+
_,
|
|
260
|
+
l,
|
|
261
|
+
/*$$scope*/
|
|
262
|
+
l[15],
|
|
263
|
+
n ? T(
|
|
264
|
+
_,
|
|
265
|
+
/*$$scope*/
|
|
266
|
+
l[15],
|
|
267
|
+
f,
|
|
268
|
+
kt
|
|
269
|
+
) : H(
|
|
270
|
+
/*$$scope*/
|
|
271
|
+
l[15]
|
|
272
|
+
),
|
|
273
|
+
x
|
|
274
|
+
) : c && c.p && (!n || f & /*$_, titleText*/
|
|
275
|
+
20) && c.p(l, n ? f : -1), w ? w.p && (!n || f & /*$$scope*/
|
|
276
|
+
32768) && v(
|
|
277
|
+
w,
|
|
278
|
+
g,
|
|
279
|
+
l,
|
|
280
|
+
/*$$scope*/
|
|
281
|
+
l[15],
|
|
282
|
+
n ? T(
|
|
283
|
+
g,
|
|
284
|
+
/*$$scope*/
|
|
285
|
+
l[15],
|
|
286
|
+
f,
|
|
287
|
+
yt
|
|
288
|
+
) : H(
|
|
289
|
+
/*$$scope*/
|
|
290
|
+
l[15]
|
|
291
|
+
),
|
|
292
|
+
N
|
|
293
|
+
) : u && u.p && (!n || f & /*closeButton*/
|
|
294
|
+
8) && u.p(l, n ? f : -1);
|
|
295
|
+
},
|
|
296
|
+
i(l) {
|
|
297
|
+
n || (L(r, l), L(c, l), L(u, l), n = !0);
|
|
298
|
+
},
|
|
299
|
+
o(l) {
|
|
300
|
+
B(r, l), B(c, l), B(u, l), n = !1;
|
|
301
|
+
},
|
|
302
|
+
d(l) {
|
|
303
|
+
l && p(t), r && r.d(l), c && c.d(l), u && u.d(l), s[17](null);
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function Tt(s, t, e) {
|
|
308
|
+
let i;
|
|
309
|
+
at(s, dt, (o) => e(4, i = o));
|
|
310
|
+
let { $$slots: n = {}, $$scope: a } = t, { clientstyling: h = "" } = t, { clientstylingurl: r = "" } = t, { translationurl: _ = "" } = t, { showbackbutton: d = "" } = t, { title: c = "header.general" } = t, { lang: g = "en" } = t, { showclosebutton: w = "" } = t, { mbsource: u = "" } = t, l, f, A = !1, j, F = !1;
|
|
311
|
+
const Y = () => {
|
|
312
|
+
fetch(_).then((o) => o.json()).then((o) => {
|
|
313
|
+
Object.keys(o).forEach((R) => {
|
|
314
|
+
O(R, o[R]);
|
|
315
|
+
});
|
|
316
|
+
}).catch((o) => {
|
|
317
|
+
console.log(o);
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
Object.keys(z).forEach((o) => {
|
|
321
|
+
O(o, z[o]);
|
|
322
|
+
});
|
|
323
|
+
const Z = () => {
|
|
324
|
+
gt(g);
|
|
325
|
+
}, K = () => {
|
|
326
|
+
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
327
|
+
}, J = () => {
|
|
328
|
+
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
329
|
+
}, Q = () => {
|
|
330
|
+
e(1, A = !!d && d !== "false");
|
|
331
|
+
}, V = () => {
|
|
332
|
+
e(3, F = !!w && w !== "false");
|
|
333
|
+
}, X = () => {
|
|
334
|
+
e(2, j = c || "header.general");
|
|
335
|
+
};
|
|
336
|
+
rt(() => () => {
|
|
337
|
+
});
|
|
338
|
+
function $(o) {
|
|
339
|
+
ft[o ? "unshift" : "push"](() => {
|
|
340
|
+
l = o, e(0, l);
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
return s.$$set = (o) => {
|
|
344
|
+
"clientstyling" in o && e(7, h = o.clientstyling), "clientstylingurl" in o && e(8, r = o.clientstylingurl), "translationurl" in o && e(9, _ = o.translationurl), "showbackbutton" in o && e(10, d = o.showbackbutton), "title" in o && e(11, c = o.title), "lang" in o && e(12, g = o.lang), "showclosebutton" in o && e(13, w = o.showclosebutton), "mbsource" in o && e(14, u = o.mbsource), "$$scope" in o && e(15, a = o.$$scope);
|
|
345
|
+
}, s.$$.update = () => {
|
|
346
|
+
s.$$.dirty & /*lang*/
|
|
347
|
+
4096 && g && Z(), s.$$.dirty & /*lang, title*/
|
|
348
|
+
6144 && g && c && X(), s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
349
|
+
129 && h && l && wt(l, h), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
350
|
+
257 && r && l && _t(l, r), s.$$.dirty & /*mbsource, customStylingContainer*/
|
|
351
|
+
16385 && u && l && bt(l, `${u}.Style`, f), s.$$.dirty & /*lang, translationurl*/
|
|
352
|
+
4608 && g && _ && Y(), s.$$.dirty & /*showbackbutton*/
|
|
353
|
+
1024 && d && Q(), s.$$.dirty & /*showclosebutton*/
|
|
354
|
+
8192 && w && V();
|
|
355
|
+
}, [
|
|
356
|
+
l,
|
|
357
|
+
A,
|
|
358
|
+
j,
|
|
359
|
+
F,
|
|
360
|
+
i,
|
|
361
|
+
K,
|
|
362
|
+
J,
|
|
363
|
+
h,
|
|
364
|
+
r,
|
|
365
|
+
_,
|
|
366
|
+
d,
|
|
367
|
+
c,
|
|
368
|
+
g,
|
|
369
|
+
w,
|
|
370
|
+
u,
|
|
371
|
+
a,
|
|
372
|
+
n,
|
|
373
|
+
$
|
|
374
|
+
];
|
|
375
|
+
}
|
|
376
|
+
class W extends nt {
|
|
377
|
+
constructor(t) {
|
|
378
|
+
super(), it(
|
|
379
|
+
this,
|
|
380
|
+
t,
|
|
381
|
+
Tt,
|
|
382
|
+
Ht,
|
|
383
|
+
lt,
|
|
384
|
+
{
|
|
385
|
+
clientstyling: 7,
|
|
386
|
+
clientstylingurl: 8,
|
|
387
|
+
translationurl: 9,
|
|
388
|
+
showbackbutton: 10,
|
|
389
|
+
title: 11,
|
|
390
|
+
lang: 12,
|
|
391
|
+
showclosebutton: 13,
|
|
392
|
+
mbsource: 14
|
|
393
|
+
},
|
|
394
|
+
Ct
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
get clientstyling() {
|
|
398
|
+
return this.$$.ctx[7];
|
|
399
|
+
}
|
|
400
|
+
set clientstyling(t) {
|
|
401
|
+
this.$$set({ clientstyling: t }), b();
|
|
402
|
+
}
|
|
403
|
+
get clientstylingurl() {
|
|
404
|
+
return this.$$.ctx[8];
|
|
405
|
+
}
|
|
406
|
+
set clientstylingurl(t) {
|
|
407
|
+
this.$$set({ clientstylingurl: t }), b();
|
|
408
|
+
}
|
|
409
|
+
get translationurl() {
|
|
410
|
+
return this.$$.ctx[9];
|
|
411
|
+
}
|
|
412
|
+
set translationurl(t) {
|
|
413
|
+
this.$$set({ translationurl: t }), b();
|
|
414
|
+
}
|
|
415
|
+
get showbackbutton() {
|
|
416
|
+
return this.$$.ctx[10];
|
|
417
|
+
}
|
|
418
|
+
set showbackbutton(t) {
|
|
419
|
+
this.$$set({ showbackbutton: t }), b();
|
|
420
|
+
}
|
|
421
|
+
get title() {
|
|
422
|
+
return this.$$.ctx[11];
|
|
423
|
+
}
|
|
424
|
+
set title(t) {
|
|
425
|
+
this.$$set({ title: t }), b();
|
|
426
|
+
}
|
|
427
|
+
get lang() {
|
|
428
|
+
return this.$$.ctx[12];
|
|
429
|
+
}
|
|
430
|
+
set lang(t) {
|
|
431
|
+
this.$$set({ lang: t }), b();
|
|
432
|
+
}
|
|
433
|
+
get showclosebutton() {
|
|
434
|
+
return this.$$.ctx[13];
|
|
435
|
+
}
|
|
436
|
+
set showclosebutton(t) {
|
|
437
|
+
this.$$set({ showclosebutton: t }), b();
|
|
438
|
+
}
|
|
439
|
+
get mbsource() {
|
|
440
|
+
return this.$$.ctx[14];
|
|
441
|
+
}
|
|
442
|
+
set mbsource(t) {
|
|
443
|
+
this.$$set({ mbsource: t }), b();
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
ht(W, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
447
|
+
const At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
448
|
+
__proto__: null,
|
|
449
|
+
default: W
|
|
450
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
451
|
+
export {
|
|
452
|
+
At as C,
|
|
453
|
+
_t as a,
|
|
454
|
+
bt as b,
|
|
455
|
+
wt as s
|
|
456
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./CashierPage-flG2gyRG.cjs");function k(s,t){n.addMessages(s,t)}function q(s){n.init({fallbackLocale:"en"}),n.$locale.set(s)}const L={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},fr:{header:{general:"Caisse",deposit:"Dépôt",withdraw:"Retrait"}}},b="__WIDGET_GLOBAL_STYLE_CACHE__";function R(s,t){if(s){const e=document.createElement("style");e.innerHTML=t,s.appendChild(e)}}function A(s,t){if(!s||!t)return;const e=new URL(t);fetch(e.href).then(l=>l.text()).then(l=>{const i=document.createElement("style");i.innerHTML=l,s&&s.appendChild(i)}).catch(l=>{console.error("There was an error while trying to load client styling from URL",l)})}function F(s,t,e,l=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!l)return e=G(s,t),e;window[b]||(window[b]={}),e=I(s,t);const a=e.unsubscribe.bind(e),d=()=>{if(window[b][t]){const c=window[b][t];c.refCount>1?c.refCount=c.refCount-1:delete window[b][t]}a()};return e.unsubscribe=d,e}function G(s,t){const e=document.createElement("style");return window.emMessageBus.subscribe(t,l=>{s&&(e.innerHTML=l,s.appendChild(e))})}function I(s,t){return window.emMessageBus.subscribe(t,e=>{if(!s)return;const l=s.getRootNode(),i=window[b];let a=i[t]&&i[t].sheet;a?i[t].refCount=i[t].refCount+1:(a=new CSSStyleSheet,a.replaceSync(e),i[t]={sheet:a,refCount:1});const d=l.adoptedStyleSheets||[];d.includes(a)||(l.adoptedStyleSheets=[...d,a])})}function W(s){n.append_styles(s,"svelte-1p7ag40",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;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;fill:var(--emw--color-primary, #F9C405)}")}const Y=s=>({}),B=s=>({}),Z=s=>({}),v=s=>({}),K=s=>({}),H=s=>({});function T(s){let t,e,l;return{c(){t=n.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><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"></path></svg>',n.attr(t,"class","CashierHeaderLeftButton")},m(i,a){n.insert(i,t,a),e||(l=n.listen(t,"click",s[6]),e=!0)},p:n.noop,d(i){i&&n.detach(t),e=!1,l()}}}function J(s){let t,e=s[1]&&T(s);return{c(){e&&e.c(),t=n.empty()},m(l,i){e&&e.m(l,i),n.insert(l,t,i)},p(l,i){l[1]?e?e.p(l,i):(e=T(l),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(l){l&&n.detach(t),e&&e.d(l)}}}function Q(s){let t,e=s[4](s[2])+"",l;return{c(){t=n.element("span"),l=n.text(e),n.attr(t,"class","CashierHeaderTitle")},m(i,a){n.insert(i,t,a),n.append(t,l)},p(i,a){a&20&&e!==(e=i[4](i[2])+"")&&n.set_data(l,e)},d(i){i&&n.detach(t)}}}function M(s){let t,e,l;return{c(){t=n.element("span"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>',n.attr(t,"class","CashierHeaderRightButton")},m(i,a){n.insert(i,t,a),e||(l=n.listen(t,"click",s[5]),e=!0)},p:n.noop,d(i){i&&n.detach(t),e=!1,l()}}}function V(s){let t,e=s[3]&&M(s);return{c(){e&&e.c(),t=n.empty()},m(l,i){e&&e.m(l,i),n.insert(l,t,i)},p(l,i){l[3]?e?e.p(l,i):(e=M(l),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(l){l&&n.detach(t),e&&e.d(l)}}}function X(s){let t,e,l,i;const a=s[16].leftButton,d=n.create_slot(a,s,s[15],H),c=d||J(s),m=s[16].title,g=n.create_slot(m,s,s[15],v),u=g||Q(s),_=s[16].rightButton,w=n.create_slot(_,s,s[15],B),f=w||V(s);return{c(){t=n.element("div"),c&&c.c(),e=n.space(),u&&u.c(),l=n.space(),f&&f.c(),n.attr(t,"class","CashierHeader")},m(o,h){n.insert(o,t,h),c&&c.m(t,null),n.append(t,e),u&&u.m(t,null),n.append(t,l),f&&f.m(t,null),s[17](t),i=!0},p(o,[h]){d?d.p&&(!i||h&32768)&&n.update_slot_base(d,a,o,o[15],i?n.get_slot_changes(a,o[15],h,K):n.get_all_dirty_from_scope(o[15]),H):c&&c.p&&(!i||h&2)&&c.p(o,i?h:-1),g?g.p&&(!i||h&32768)&&n.update_slot_base(g,m,o,o[15],i?n.get_slot_changes(m,o[15],h,Z):n.get_all_dirty_from_scope(o[15]),v):u&&u.p&&(!i||h&20)&&u.p(o,i?h:-1),w?w.p&&(!i||h&32768)&&n.update_slot_base(w,_,o,o[15],i?n.get_slot_changes(_,o[15],h,Y):n.get_all_dirty_from_scope(o[15]),B):f&&f.p&&(!i||h&8)&&f.p(o,i?h:-1)},i(o){i||(n.transition_in(c,o),n.transition_in(u,o),n.transition_in(f,o),i=!0)},o(o){n.transition_out(c,o),n.transition_out(u,o),n.transition_out(f,o),i=!1},d(o){o&&n.detach(t),c&&c.d(o),u&&u.d(o),f&&f.d(o),s[17](null)}}}function $(s,t,e){let l;n.component_subscribe(s,n.$format,r=>e(4,l=r));let{$$slots:i={},$$scope:a}=t,{clientstyling:d=""}=t,{clientstylingurl:c=""}=t,{translationurl:m=""}=t,{showbackbutton:g=""}=t,{title:u="header.general"}=t,{lang:_="en"}=t,{showclosebutton:w=""}=t,{mbsource:f=""}=t,o,h,p=!1,C,y=!1;const E=()=>{fetch(m).then(r=>r.json()).then(r=>{Object.keys(r).forEach(S=>{k(S,r[S])})}).catch(r=>{console.log(r)})};Object.keys(L).forEach(r=>{k(r,L[r])});const O=()=>{q(_)},N=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},U=()=>{window.postMessage({type:"BackCashier"},window.location.href)},z=()=>{e(1,p=!!g&&g!=="false")},D=()=>{e(3,y=!!w&&w!=="false")},x=()=>{e(2,C=u||"header.general")};n.onMount(()=>()=>{});function P(r){n.binding_callbacks[r?"unshift":"push"](()=>{o=r,e(0,o)})}return s.$$set=r=>{"clientstyling"in r&&e(7,d=r.clientstyling),"clientstylingurl"in r&&e(8,c=r.clientstylingurl),"translationurl"in r&&e(9,m=r.translationurl),"showbackbutton"in r&&e(10,g=r.showbackbutton),"title"in r&&e(11,u=r.title),"lang"in r&&e(12,_=r.lang),"showclosebutton"in r&&e(13,w=r.showclosebutton),"mbsource"in r&&e(14,f=r.mbsource),"$$scope"in r&&e(15,a=r.$$scope)},s.$$.update=()=>{s.$$.dirty&4096&&_&&O(),s.$$.dirty&6144&&_&&u&&x(),s.$$.dirty&129&&d&&o&&R(o,d),s.$$.dirty&257&&c&&o&&A(o,c),s.$$.dirty&16385&&f&&o&&F(o,`${f}.Style`,h),s.$$.dirty&4608&&_&&m&&E(),s.$$.dirty&1024&&g&&z(),s.$$.dirty&8192&&w&&D()},[o,p,C,y,l,N,U,d,c,m,g,u,_,w,f,a,i,P]}class j extends n.SvelteComponent{constructor(t){super(),n.init$1(this,t,$,X,n.safe_not_equal,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},W)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),n.flush()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),n.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),n.flush()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),n.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}}n.create_custom_element(j,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);const tt=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));exports.CashierHeader_ce=tt;exports.setClientStyling=R;exports.setClientStylingURL=A;exports.setStreamStyling=F;
|