@everymatrix/cashier-page-cashpoint 1.0.21 → 1.0.24
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--kSiiwKG.cjs +1 -0
- package/components/CashierCarousel-CCyhUhmy.js +743 -0
- package/components/CashierCarousel-CMzkIDF-.js +743 -0
- package/components/CashierCarousel-CZqaMcrV.js +746 -0
- package/components/CashierCarousel-D7fMpkUJ.cjs +1 -0
- package/components/CashierCarousel-DBK2VpnK.cjs +1 -0
- package/components/CashierCarousel-DoPYGuSl.js +743 -0
- package/components/CashierCarousel-dGxcNMUS.js +746 -0
- package/components/CashierCarousel-pVh8HYUg.js +746 -0
- package/components/CashierError-BMmW6acL.js +1021 -0
- package/components/CashierError-BjWP97sw.js +1021 -0
- package/components/CashierError-BwWcUCVV.js +1021 -0
- package/components/CashierError-Do9o97Xf.js +1021 -0
- package/components/CashierError-DwHtr7xj.cjs +1 -0
- package/components/CashierError-WnZJe0P0.cjs +1 -0
- package/components/CashierError-fOJnSfzL.js +1021 -0
- package/components/CashierError-n8TahoV6.cjs +1 -0
- package/components/CashierError-p82eQG6N.js +1021 -0
- package/components/CashierHeader--OMo5Gr9.cjs +1 -0
- package/components/CashierHeader-BH8wCZex.cjs +1 -0
- package/components/CashierHeader-BjccIhOC.js +491 -0
- package/components/CashierHeader-CIgrvyki.js +491 -0
- package/components/CashierHeader-CJtumTqS.js +491 -0
- package/components/CashierHeader-DAXcoUNj.js +491 -0
- package/components/CashierHeader-D_ZJTcXT.js +491 -0
- package/components/CashierHeader-kHe1dAwO.cjs +1 -0
- package/components/CashierHeader-ogcZRVDG.js +491 -0
- package/components/CashierIframeRedirect-BDWEiZ-v.cjs +1 -0
- package/components/CashierIframeRedirect-BNgEazkO.js +393 -0
- package/components/CashierIframeRedirect-BY3ghtpI.js +393 -0
- package/components/CashierIframeRedirect-Cwo2FoXj.js +393 -0
- package/components/CashierIframeRedirect-DEY-p7MM.js +393 -0
- package/components/CashierIframeRedirect-DdP5D4YL.cjs +1 -0
- package/components/CashierIframeRedirect-qWeIUqAw.js +393 -0
- package/components/CashierIframeRedirect-tgbxbQx_.cjs +1 -0
- package/components/CashierIframeRedirect-vog7U2Hi.js +393 -0
- package/components/CashierMethodDetailsCashpoint-9vuUairg.js +13476 -0
- package/components/CashierMethodDetailsCashpoint-B7DD4PIv.js +13393 -0
- package/components/CashierMethodDetailsCashpoint-BRvzOdlv.js +13559 -0
- package/components/CashierMethodDetailsCashpoint-BbXzsVMW.js +13476 -0
- package/components/CashierMethodDetailsCashpoint-BgOkdvmX.js +13559 -0
- package/components/CashierMethodDetailsCashpoint-C7LqbKf0.js +13475 -0
- package/components/CashierMethodDetailsCashpoint-Ch7lX93F.cjs +248 -0
- package/components/CashierMethodDetailsCashpoint-DZSG6jxN.cjs +248 -0
- package/components/CashierMethodDetailsCashpoint-lg1YKeWT.cjs +248 -0
- package/components/CashierMethodsList-B1X2Mqpo.cjs +1 -0
- package/components/CashierMethodsList-BJzsnkCZ.js +1168 -0
- package/components/CashierMethodsList-BcoupLUw.js +1168 -0
- package/components/CashierMethodsList-C07VCJ1J.js +1168 -0
- package/components/CashierMethodsList-C44W7azS.js +1182 -0
- package/components/CashierMethodsList-D9kerA__.js +1182 -0
- package/components/CashierMethodsList-DJTyresp.cjs +1 -0
- package/components/CashierMethodsList-DMD8_MO_.cjs +1 -0
- package/components/CashierMethodsList-D_Um1xYN.js +1182 -0
- package/components/CashierModal-BFUuHzfG.cjs +1 -0
- package/components/CashierModal-BIswl9jW.js +402 -0
- package/components/CashierModal-BbXV5e5Q.js +386 -0
- package/components/CashierModal-BgaSVIba.cjs +1 -0
- package/components/CashierModal-CDd68Jh6.js +386 -0
- package/components/CashierModal-CVEg1kUj.js +402 -0
- package/components/CashierModal-D7Tj9T96.cjs +1 -0
- package/components/CashierModal-QfEXMn51.js +402 -0
- package/components/CashierModal-TOEEGIVU.js +386 -0
- package/components/CashierNotifications-B-IpdVow.js +129 -0
- package/components/CashierNotifications-BP1DbJA9.js +129 -0
- package/components/CashierNotifications-Bd1pNHsn.js +129 -0
- package/components/CashierNotifications-BfD-J_s6.js +129 -0
- package/components/CashierNotifications-C6ALWhqd.js +129 -0
- package/components/CashierNotifications-DGLUgBDr.cjs +1 -0
- package/components/CashierNotifications-DSNVrDu6.js +129 -0
- package/components/CashierNotifications-DSmrDDfB.cjs +1 -0
- package/components/CashierNotifications-D__cUaW6.cjs +1 -0
- package/components/CashierPageCashpoint-2AFefn8x.cjs +23 -0
- package/components/CashierPageCashpoint-B3XNSXIw.js +10686 -0
- package/components/CashierPageCashpoint-BBIa92vs.js +10694 -0
- package/components/CashierPageCashpoint-BvHHPFhA.cjs +23 -0
- package/components/CashierPageCashpoint-CPZkgRrS.cjs +23 -0
- package/components/CashierPageCashpoint-CckzONlp.js +10739 -0
- package/components/CashierPageCashpoint-Di39yCdh.js +10641 -0
- package/components/CashierPageCashpoint-Es3-yro7.js +10686 -0
- package/components/CashierPageCashpoint-pofzCpVm.js +10739 -0
- package/components/CashierReceiptPageCashpoint-CO7j2_6_.cjs +89 -0
- package/components/CashierReceiptPageCashpoint-DNnI6V4f.js +2444 -0
- package/components/CashierReceiptPageCashpoint-DORCYPXF.cjs +89 -0
- package/components/CashierReceiptPageCashpoint-DXrM8RlV.js +2464 -0
- package/components/CashierReceiptPageCashpoint-DcqX7SRR.js +2464 -0
- package/components/CashierReceiptPageCashpoint-LjO8XuPC.js +2444 -0
- package/components/CashierReceiptPageCashpoint-OfTkmNxJ.cjs +89 -0
- package/components/CashierReceiptPageCashpoint-kYcssF5c.js +2443 -0
- package/components/CashierReceiptPageCashpoint-vtSIZsmH.js +2463 -0
- package/components/CashierSessionExpirationModal-0Wbd9hwu.cjs +2 -0
- package/components/CashierSessionExpirationModal-3YubNfCk.js +1228 -0
- package/components/CashierSessionExpirationModal-BQMUZSyf.cjs +2 -0
- package/components/CashierSessionExpirationModal-CKfxIVMx.js +1228 -0
- package/components/CashierSessionExpirationModal-Co5DxvWk.cjs +2 -0
- package/components/CashierSessionExpirationModal-CwVOTAEP.js +1228 -0
- package/components/CashierSessionExpirationModal-Dc0b6HE5.js +1228 -0
- package/components/CashierSessionExpirationModal-DcGkuoRB.js +1228 -0
- package/components/CashierSessionExpirationModal-OtJmfEif.js +1228 -0
- package/components/CashierSpinner-8YBcpeLw.js +79 -0
- package/components/CashierSpinner-B3_aF59q.cjs +1 -0
- package/components/CashierSpinner-BlScStld.js +79 -0
- package/components/CashierSpinner-C0jBwE_Q.cjs +1 -0
- package/components/CashierSpinner-CXU1xqIg.js +79 -0
- package/components/CashierSpinner-Cp0T0CiG.js +79 -0
- package/components/CashierSpinner-DZAFqP4c.js +79 -0
- package/components/CashierSpinner-DernnisZ.cjs +1 -0
- package/components/CashierSpinner-WsmHk7vU.js +79 -0
- package/components/CashierStepUpCashpoint-B09xh-FO.js +1358 -0
- package/components/CashierStepUpCashpoint-B1LDUYjY.js +1358 -0
- package/components/CashierStepUpCashpoint-BpLzWQJh.js +1398 -0
- package/components/CashierStepUpCashpoint-CK7HGDT3.cjs +1 -0
- package/components/CashierStepUpCashpoint-CZryGHy9.js +1358 -0
- package/components/CashierStepUpCashpoint-CapB8a5H.js +1398 -0
- package/components/CashierStepUpCashpoint-CdXvg9u1.js +1398 -0
- package/components/CashierStepUpCashpoint-DIi1gpwo.cjs +1 -0
- package/components/CashierStepUpCashpoint-z0GpGHav.cjs +1 -0
- package/components/CashierTransactionHistory-BJ9ByWLS.js +1475 -0
- package/components/CashierTransactionHistory-BOo0nlZI.js +1475 -0
- package/components/CashierTransactionHistory-BVpDxp7z.cjs +1 -0
- package/components/CashierTransactionHistory-CRNgvNIv.js +1475 -0
- package/components/CashierTransactionHistory-Ca4H7gug.cjs +1 -0
- package/components/CashierTransactionHistory-CfsHZB-A.js +1475 -0
- package/components/CashierTransactionHistory-DKASRt_6.js +1475 -0
- package/components/CashierTransactionHistory-DzuPMFTh.cjs +1 -0
- package/components/CashierTransactionHistory-ta9XB9cq.js +1475 -0
- package/components/CashierVerifications-01BYVWzI.js +753 -0
- package/components/CashierVerifications-7M1BVyS0.js +757 -0
- package/components/CashierVerifications-ByIu-9B-.cjs +1 -0
- package/components/CashierVerifications-D1OGTMgK.js +757 -0
- package/components/CashierVerifications-D8vpE1ve.js +753 -0
- package/components/CashierVerifications-DY9wVd4M.cjs +1 -0
- package/components/CashierVerifications-DfXvd1aL.cjs +1 -0
- package/components/CashierVerifications-DjiY8qA4.js +753 -0
- package/components/CashierVerifications-RRJHn_g_.js +757 -0
- package/components/CashierVerificationsCashpoint-BddkLwYl.js +440 -0
- package/components/CashierVerificationsCashpoint-Cp_EcA1c.cjs +1 -0
- package/components/CashierVerificationsCashpoint-D2NQduOt.js +440 -0
- package/components/CashierVerificationsCashpoint-DQIUPpTU.js +440 -0
- package/components/CashierVerificationsCashpoint-DZe7be4u.js +440 -0
- package/components/CashierVerificationsCashpoint-DaBHk495.js +440 -0
- package/components/CashierVerificationsCashpoint-DcJ7K837.js +440 -0
- package/components/CashierVerificationsCashpoint-Dgb2SQ_M.cjs +1 -0
- package/components/CashierVerificationsCashpoint-epqAccum.cjs +1 -0
- package/components/TxnStatusIcon-BCKPH5fS.cjs +1 -0
- package/components/TxnStatusIcon-CP5IFL4E.js +142 -0
- package/components/TxnStatusIcon-D3sM-T5E.js +142 -0
- package/components/TxnStatusIcon-DZBLj0wb.cjs +1 -0
- package/components/TxnStatusIcon-DvwkZ3aG.js +142 -0
- package/components/TxnStatusIcon-DytuKz9u.js +142 -0
- package/components/TxnStatusIcon-N2EoLlbT.js +142 -0
- package/components/TxnStatusIcon-TD7J_Hse.cjs +1 -0
- package/components/TxnStatusIcon-hRWmZQFd.js +142 -0
- package/components/TxnTypeIcons-C3ldDYhP.js +101 -0
- package/components/TxnTypeIcons-D8K-OAE-.js +101 -0
- package/components/TxnTypeIcons-DAF7zi1Q.js +101 -0
- package/components/TxnTypeIcons-DQHsg80c.js +101 -0
- package/components/TxnTypeIcons-DbMCJJ-C.cjs +1 -0
- package/components/TxnTypeIcons-Zj03JnWR.js +101 -0
- package/components/TxnTypeIcons-p4tBlpLK.cjs +1 -0
- package/components/TxnTypeIcons-v9U37F58.js +101 -0
- package/components/TxnTypeIcons-yLvO0fyb.cjs +1 -0
- package/es2015/cashier-page-cashpoint.cjs +1 -1
- package/es2015/cashier-page-cashpoint.js +1 -1
- package/esnext/cashier-page-cashpoint.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { S as C, b as v, s as _, f as d, d as N, z as b, g as k, w as p, l as z, m as f, A as S, n as h, x, o as E, p as L, y as M, c as T } from "./CashierPageCashpoint-Di39yCdh.js";
|
|
2
|
+
function H(n) {
|
|
3
|
+
N(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
4
|
+
}
|
|
5
|
+
function R(n) {
|
|
6
|
+
let t, s, r, u, l, a, i, m;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
t = h("div"), s = h("span"), r = x(
|
|
10
|
+
/*text*/
|
|
11
|
+
n[0]
|
|
12
|
+
), u = E(), l = h("button"), a = x(
|
|
13
|
+
/*button*/
|
|
14
|
+
n[1]
|
|
15
|
+
), L(t, "class", "CashierNotifications");
|
|
16
|
+
},
|
|
17
|
+
m(o, c) {
|
|
18
|
+
z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = S(
|
|
19
|
+
l,
|
|
20
|
+
"click",
|
|
21
|
+
/*notificationClick*/
|
|
22
|
+
n[3]
|
|
23
|
+
), i = !0);
|
|
24
|
+
},
|
|
25
|
+
p(o, [c]) {
|
|
26
|
+
c & /*text*/
|
|
27
|
+
1 && p(
|
|
28
|
+
r,
|
|
29
|
+
/*text*/
|
|
30
|
+
o[0]
|
|
31
|
+
), c & /*button*/
|
|
32
|
+
2 && p(
|
|
33
|
+
a,
|
|
34
|
+
/*button*/
|
|
35
|
+
o[1]
|
|
36
|
+
);
|
|
37
|
+
},
|
|
38
|
+
i: b,
|
|
39
|
+
o: b,
|
|
40
|
+
d(o) {
|
|
41
|
+
o && k(t), n[6](null), i = !1, m();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function U(n, t, s) {
|
|
46
|
+
let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
|
|
47
|
+
const m = () => {
|
|
48
|
+
window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
|
|
49
|
+
}, o = () => {
|
|
50
|
+
let e = document.createElement("style");
|
|
51
|
+
e.innerHTML = l, i.appendChild(e);
|
|
52
|
+
}, c = () => {
|
|
53
|
+
let e = new URL(a), y = document.createElement("style");
|
|
54
|
+
fetch(e.href).then((g) => g.text()).then((g) => {
|
|
55
|
+
y.innerHTML = g, setTimeout(
|
|
56
|
+
() => {
|
|
57
|
+
i.appendChild(y);
|
|
58
|
+
},
|
|
59
|
+
1
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
function w(e) {
|
|
64
|
+
M[e ? "unshift" : "push"](() => {
|
|
65
|
+
i = e, s(2, i);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return n.$$set = (e) => {
|
|
69
|
+
"text" in e && s(0, r = e.text), "button" in e && s(1, u = e.button), "clientstyling" in e && s(4, l = e.clientstyling), "clientstylingurl" in e && s(5, a = e.clientstylingurl);
|
|
70
|
+
}, n.$$.update = () => {
|
|
71
|
+
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
72
|
+
20 && l && i && o(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
73
|
+
36 && a && i && c();
|
|
74
|
+
}, [
|
|
75
|
+
r,
|
|
76
|
+
u,
|
|
77
|
+
i,
|
|
78
|
+
m,
|
|
79
|
+
l,
|
|
80
|
+
a,
|
|
81
|
+
w
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
class q extends C {
|
|
85
|
+
constructor(t) {
|
|
86
|
+
super(), v(
|
|
87
|
+
this,
|
|
88
|
+
t,
|
|
89
|
+
U,
|
|
90
|
+
R,
|
|
91
|
+
_,
|
|
92
|
+
{
|
|
93
|
+
text: 0,
|
|
94
|
+
button: 1,
|
|
95
|
+
clientstyling: 4,
|
|
96
|
+
clientstylingurl: 5
|
|
97
|
+
},
|
|
98
|
+
H
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
get text() {
|
|
102
|
+
return this.$$.ctx[0];
|
|
103
|
+
}
|
|
104
|
+
set text(t) {
|
|
105
|
+
this.$$set({ text: t }), d();
|
|
106
|
+
}
|
|
107
|
+
get button() {
|
|
108
|
+
return this.$$.ctx[1];
|
|
109
|
+
}
|
|
110
|
+
set button(t) {
|
|
111
|
+
this.$$set({ button: t }), d();
|
|
112
|
+
}
|
|
113
|
+
get clientstyling() {
|
|
114
|
+
return this.$$.ctx[4];
|
|
115
|
+
}
|
|
116
|
+
set clientstyling(t) {
|
|
117
|
+
this.$$set({ clientstyling: t }), d();
|
|
118
|
+
}
|
|
119
|
+
get clientstylingurl() {
|
|
120
|
+
return this.$$.ctx[5];
|
|
121
|
+
}
|
|
122
|
+
set clientstylingurl(t) {
|
|
123
|
+
this.$$set({ clientstylingurl: t }), d();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
T(q, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
127
|
+
export {
|
|
128
|
+
q as default
|
|
129
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { S as C, b as v, s as _, f as d, c as k, y as b, e as N, v as p, k as z, l as f, z as S, m as h, w as x, n as E, o as L, x as M, A as T } from "./CashierPageCashpoint-pofzCpVm.js";
|
|
2
|
+
function H(n) {
|
|
3
|
+
k(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
4
|
+
}
|
|
5
|
+
function R(n) {
|
|
6
|
+
let t, s, r, u, l, a, i, m;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
t = h("div"), s = h("span"), r = x(
|
|
10
|
+
/*text*/
|
|
11
|
+
n[0]
|
|
12
|
+
), u = E(), l = h("button"), a = x(
|
|
13
|
+
/*button*/
|
|
14
|
+
n[1]
|
|
15
|
+
), L(t, "class", "CashierNotifications");
|
|
16
|
+
},
|
|
17
|
+
m(o, c) {
|
|
18
|
+
z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = S(
|
|
19
|
+
l,
|
|
20
|
+
"click",
|
|
21
|
+
/*notificationClick*/
|
|
22
|
+
n[3]
|
|
23
|
+
), i = !0);
|
|
24
|
+
},
|
|
25
|
+
p(o, [c]) {
|
|
26
|
+
c & /*text*/
|
|
27
|
+
1 && p(
|
|
28
|
+
r,
|
|
29
|
+
/*text*/
|
|
30
|
+
o[0]
|
|
31
|
+
), c & /*button*/
|
|
32
|
+
2 && p(
|
|
33
|
+
a,
|
|
34
|
+
/*button*/
|
|
35
|
+
o[1]
|
|
36
|
+
);
|
|
37
|
+
},
|
|
38
|
+
i: b,
|
|
39
|
+
o: b,
|
|
40
|
+
d(o) {
|
|
41
|
+
o && N(t), n[6](null), i = !1, m();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function U(n, t, s) {
|
|
46
|
+
let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
|
|
47
|
+
const m = () => {
|
|
48
|
+
window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
|
|
49
|
+
}, o = () => {
|
|
50
|
+
let e = document.createElement("style");
|
|
51
|
+
e.innerHTML = l, i.appendChild(e);
|
|
52
|
+
}, c = () => {
|
|
53
|
+
let e = new URL(a), y = document.createElement("style");
|
|
54
|
+
fetch(e.href).then((g) => g.text()).then((g) => {
|
|
55
|
+
y.innerHTML = g, setTimeout(
|
|
56
|
+
() => {
|
|
57
|
+
i.appendChild(y);
|
|
58
|
+
},
|
|
59
|
+
1
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
function w(e) {
|
|
64
|
+
M[e ? "unshift" : "push"](() => {
|
|
65
|
+
i = e, s(2, i);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return n.$$set = (e) => {
|
|
69
|
+
"text" in e && s(0, r = e.text), "button" in e && s(1, u = e.button), "clientstyling" in e && s(4, l = e.clientstyling), "clientstylingurl" in e && s(5, a = e.clientstylingurl);
|
|
70
|
+
}, n.$$.update = () => {
|
|
71
|
+
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
72
|
+
20 && l && i && o(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
73
|
+
36 && a && i && c();
|
|
74
|
+
}, [
|
|
75
|
+
r,
|
|
76
|
+
u,
|
|
77
|
+
i,
|
|
78
|
+
m,
|
|
79
|
+
l,
|
|
80
|
+
a,
|
|
81
|
+
w
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
class q extends C {
|
|
85
|
+
constructor(t) {
|
|
86
|
+
super(), v(
|
|
87
|
+
this,
|
|
88
|
+
t,
|
|
89
|
+
U,
|
|
90
|
+
R,
|
|
91
|
+
_,
|
|
92
|
+
{
|
|
93
|
+
text: 0,
|
|
94
|
+
button: 1,
|
|
95
|
+
clientstyling: 4,
|
|
96
|
+
clientstylingurl: 5
|
|
97
|
+
},
|
|
98
|
+
H
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
get text() {
|
|
102
|
+
return this.$$.ctx[0];
|
|
103
|
+
}
|
|
104
|
+
set text(t) {
|
|
105
|
+
this.$$set({ text: t }), d();
|
|
106
|
+
}
|
|
107
|
+
get button() {
|
|
108
|
+
return this.$$.ctx[1];
|
|
109
|
+
}
|
|
110
|
+
set button(t) {
|
|
111
|
+
this.$$set({ button: t }), d();
|
|
112
|
+
}
|
|
113
|
+
get clientstyling() {
|
|
114
|
+
return this.$$.ctx[4];
|
|
115
|
+
}
|
|
116
|
+
set clientstyling(t) {
|
|
117
|
+
this.$$set({ clientstyling: t }), d();
|
|
118
|
+
}
|
|
119
|
+
get clientstylingurl() {
|
|
120
|
+
return this.$$.ctx[5];
|
|
121
|
+
}
|
|
122
|
+
set clientstylingurl(t) {
|
|
123
|
+
this.$$set({ clientstylingurl: t }), d();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
T(q, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
127
|
+
export {
|
|
128
|
+
q as default
|
|
129
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { S as C, b as v, s as _, f as d, d as N, z as b, g as k, w as p, l as z, m as f, A as S, n as h, x, o as E, p as L, y as M, c as T } from "./CashierPageCashpoint-B3XNSXIw.js";
|
|
2
|
+
function H(n) {
|
|
3
|
+
N(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
4
|
+
}
|
|
5
|
+
function R(n) {
|
|
6
|
+
let t, s, r, u, l, a, i, m;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
t = h("div"), s = h("span"), r = x(
|
|
10
|
+
/*text*/
|
|
11
|
+
n[0]
|
|
12
|
+
), u = E(), l = h("button"), a = x(
|
|
13
|
+
/*button*/
|
|
14
|
+
n[1]
|
|
15
|
+
), L(t, "class", "CashierNotifications");
|
|
16
|
+
},
|
|
17
|
+
m(o, c) {
|
|
18
|
+
z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = S(
|
|
19
|
+
l,
|
|
20
|
+
"click",
|
|
21
|
+
/*notificationClick*/
|
|
22
|
+
n[3]
|
|
23
|
+
), i = !0);
|
|
24
|
+
},
|
|
25
|
+
p(o, [c]) {
|
|
26
|
+
c & /*text*/
|
|
27
|
+
1 && p(
|
|
28
|
+
r,
|
|
29
|
+
/*text*/
|
|
30
|
+
o[0]
|
|
31
|
+
), c & /*button*/
|
|
32
|
+
2 && p(
|
|
33
|
+
a,
|
|
34
|
+
/*button*/
|
|
35
|
+
o[1]
|
|
36
|
+
);
|
|
37
|
+
},
|
|
38
|
+
i: b,
|
|
39
|
+
o: b,
|
|
40
|
+
d(o) {
|
|
41
|
+
o && k(t), n[6](null), i = !1, m();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function U(n, t, s) {
|
|
46
|
+
let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
|
|
47
|
+
const m = () => {
|
|
48
|
+
window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
|
|
49
|
+
}, o = () => {
|
|
50
|
+
let e = document.createElement("style");
|
|
51
|
+
e.innerHTML = l, i.appendChild(e);
|
|
52
|
+
}, c = () => {
|
|
53
|
+
let e = new URL(a), y = document.createElement("style");
|
|
54
|
+
fetch(e.href).then((g) => g.text()).then((g) => {
|
|
55
|
+
y.innerHTML = g, setTimeout(
|
|
56
|
+
() => {
|
|
57
|
+
i.appendChild(y);
|
|
58
|
+
},
|
|
59
|
+
1
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
function w(e) {
|
|
64
|
+
M[e ? "unshift" : "push"](() => {
|
|
65
|
+
i = e, s(2, i);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return n.$$set = (e) => {
|
|
69
|
+
"text" in e && s(0, r = e.text), "button" in e && s(1, u = e.button), "clientstyling" in e && s(4, l = e.clientstyling), "clientstylingurl" in e && s(5, a = e.clientstylingurl);
|
|
70
|
+
}, n.$$.update = () => {
|
|
71
|
+
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
72
|
+
20 && l && i && o(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
73
|
+
36 && a && i && c();
|
|
74
|
+
}, [
|
|
75
|
+
r,
|
|
76
|
+
u,
|
|
77
|
+
i,
|
|
78
|
+
m,
|
|
79
|
+
l,
|
|
80
|
+
a,
|
|
81
|
+
w
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
class q extends C {
|
|
85
|
+
constructor(t) {
|
|
86
|
+
super(), v(
|
|
87
|
+
this,
|
|
88
|
+
t,
|
|
89
|
+
U,
|
|
90
|
+
R,
|
|
91
|
+
_,
|
|
92
|
+
{
|
|
93
|
+
text: 0,
|
|
94
|
+
button: 1,
|
|
95
|
+
clientstyling: 4,
|
|
96
|
+
clientstylingurl: 5
|
|
97
|
+
},
|
|
98
|
+
H
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
get text() {
|
|
102
|
+
return this.$$.ctx[0];
|
|
103
|
+
}
|
|
104
|
+
set text(t) {
|
|
105
|
+
this.$$set({ text: t }), d();
|
|
106
|
+
}
|
|
107
|
+
get button() {
|
|
108
|
+
return this.$$.ctx[1];
|
|
109
|
+
}
|
|
110
|
+
set button(t) {
|
|
111
|
+
this.$$set({ button: t }), d();
|
|
112
|
+
}
|
|
113
|
+
get clientstyling() {
|
|
114
|
+
return this.$$.ctx[4];
|
|
115
|
+
}
|
|
116
|
+
set clientstyling(t) {
|
|
117
|
+
this.$$set({ clientstyling: t }), d();
|
|
118
|
+
}
|
|
119
|
+
get clientstylingurl() {
|
|
120
|
+
return this.$$.ctx[5];
|
|
121
|
+
}
|
|
122
|
+
set clientstylingurl(t) {
|
|
123
|
+
this.$$set({ clientstylingurl: t }), d();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
T(q, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
127
|
+
export {
|
|
128
|
+
q as default
|
|
129
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierPageCashpoint-2AFefn8x.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button: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()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { S as C, b as v, s as _, f as d, c as k, y as b, e as N, v as p, k as z, l as f, z as S, m as h, w as x, n as E, o as L, x as M, A as T } from "./CashierPageCashpoint-CckzONlp.js";
|
|
2
|
+
function H(n) {
|
|
3
|
+
k(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
4
|
+
}
|
|
5
|
+
function R(n) {
|
|
6
|
+
let t, s, r, u, l, a, i, m;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
t = h("div"), s = h("span"), r = x(
|
|
10
|
+
/*text*/
|
|
11
|
+
n[0]
|
|
12
|
+
), u = E(), l = h("button"), a = x(
|
|
13
|
+
/*button*/
|
|
14
|
+
n[1]
|
|
15
|
+
), L(t, "class", "CashierNotifications");
|
|
16
|
+
},
|
|
17
|
+
m(o, c) {
|
|
18
|
+
z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = S(
|
|
19
|
+
l,
|
|
20
|
+
"click",
|
|
21
|
+
/*notificationClick*/
|
|
22
|
+
n[3]
|
|
23
|
+
), i = !0);
|
|
24
|
+
},
|
|
25
|
+
p(o, [c]) {
|
|
26
|
+
c & /*text*/
|
|
27
|
+
1 && p(
|
|
28
|
+
r,
|
|
29
|
+
/*text*/
|
|
30
|
+
o[0]
|
|
31
|
+
), c & /*button*/
|
|
32
|
+
2 && p(
|
|
33
|
+
a,
|
|
34
|
+
/*button*/
|
|
35
|
+
o[1]
|
|
36
|
+
);
|
|
37
|
+
},
|
|
38
|
+
i: b,
|
|
39
|
+
o: b,
|
|
40
|
+
d(o) {
|
|
41
|
+
o && N(t), n[6](null), i = !1, m();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function U(n, t, s) {
|
|
46
|
+
let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
|
|
47
|
+
const m = () => {
|
|
48
|
+
window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
|
|
49
|
+
}, o = () => {
|
|
50
|
+
let e = document.createElement("style");
|
|
51
|
+
e.innerHTML = l, i.appendChild(e);
|
|
52
|
+
}, c = () => {
|
|
53
|
+
let e = new URL(a), y = document.createElement("style");
|
|
54
|
+
fetch(e.href).then((g) => g.text()).then((g) => {
|
|
55
|
+
y.innerHTML = g, setTimeout(
|
|
56
|
+
() => {
|
|
57
|
+
i.appendChild(y);
|
|
58
|
+
},
|
|
59
|
+
1
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
function w(e) {
|
|
64
|
+
M[e ? "unshift" : "push"](() => {
|
|
65
|
+
i = e, s(2, i);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return n.$$set = (e) => {
|
|
69
|
+
"text" in e && s(0, r = e.text), "button" in e && s(1, u = e.button), "clientstyling" in e && s(4, l = e.clientstyling), "clientstylingurl" in e && s(5, a = e.clientstylingurl);
|
|
70
|
+
}, n.$$.update = () => {
|
|
71
|
+
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
72
|
+
20 && l && i && o(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
73
|
+
36 && a && i && c();
|
|
74
|
+
}, [
|
|
75
|
+
r,
|
|
76
|
+
u,
|
|
77
|
+
i,
|
|
78
|
+
m,
|
|
79
|
+
l,
|
|
80
|
+
a,
|
|
81
|
+
w
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
class q extends C {
|
|
85
|
+
constructor(t) {
|
|
86
|
+
super(), v(
|
|
87
|
+
this,
|
|
88
|
+
t,
|
|
89
|
+
U,
|
|
90
|
+
R,
|
|
91
|
+
_,
|
|
92
|
+
{
|
|
93
|
+
text: 0,
|
|
94
|
+
button: 1,
|
|
95
|
+
clientstyling: 4,
|
|
96
|
+
clientstylingurl: 5
|
|
97
|
+
},
|
|
98
|
+
H
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
get text() {
|
|
102
|
+
return this.$$.ctx[0];
|
|
103
|
+
}
|
|
104
|
+
set text(t) {
|
|
105
|
+
this.$$set({ text: t }), d();
|
|
106
|
+
}
|
|
107
|
+
get button() {
|
|
108
|
+
return this.$$.ctx[1];
|
|
109
|
+
}
|
|
110
|
+
set button(t) {
|
|
111
|
+
this.$$set({ button: t }), d();
|
|
112
|
+
}
|
|
113
|
+
get clientstyling() {
|
|
114
|
+
return this.$$.ctx[4];
|
|
115
|
+
}
|
|
116
|
+
set clientstyling(t) {
|
|
117
|
+
this.$$set({ clientstyling: t }), d();
|
|
118
|
+
}
|
|
119
|
+
get clientstylingurl() {
|
|
120
|
+
return this.$$.ctx[5];
|
|
121
|
+
}
|
|
122
|
+
set clientstylingurl(t) {
|
|
123
|
+
this.$$set({ clientstylingurl: t }), d();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
T(q, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
127
|
+
export {
|
|
128
|
+
q as default
|
|
129
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierPageCashpoint-CPZkgRrS.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button: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()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierPageCashpoint-BvHHPFhA.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button: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()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
|