@everymatrix/cashier-page-nd 1.69.95 → 1.69.96

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.
Files changed (60) hide show
  1. package/components/{CashierCarousel-xeoHL478.js → CashierCarousel-BJBoHcOi.js} +606 -606
  2. package/components/{CashierCarousel-DAykqaK7.js → CashierCarousel-C-1lJxZx.js} +612 -612
  3. package/components/CashierCarousel-CnirEVww.cjs +23 -0
  4. package/components/{CashierError-BgmDWyZ2.js → CashierError-C-D4PFqm.js} +1 -1
  5. package/components/{CashierError-CC2chNNP.cjs → CashierError-C8U_KORa.cjs} +1 -1
  6. package/components/{CashierError-GK6LplyM.js → CashierError-DXtcdjdr.js} +1 -1
  7. package/components/{CashierHeader-D-WS4BCK.cjs → CashierHeader-B0zyFjC3.cjs} +1 -1
  8. package/components/{CashierHeader-BUTbV5ls.js → CashierHeader-BwAbSpJS.js} +1 -1
  9. package/components/{CashierHeader-jxw5REBs.js → CashierHeader-D_cWDFA7.js} +1 -1
  10. package/components/{CashierIframeRedirect-BFa8la1B.js → CashierIframeRedirect-B1BJpKCB.js} +3 -3
  11. package/components/{CashierIframeRedirect-DFHF2QxN.js → CashierIframeRedirect-BHjA770O.js} +3 -3
  12. package/components/{CashierIframeRedirect-CkF2udkG.cjs → CashierIframeRedirect-q6fWJWU-.cjs} +1 -1
  13. package/components/{CashierMethodDetails-C1JZ8Y7b.js → CashierMethodDetails-BOgl_IX1.js} +524 -524
  14. package/components/{CashierMethodDetails-CZUjywX6.js → CashierMethodDetails-CCf6IaU-.js} +504 -504
  15. package/components/{CashierMethodDetails-DrLQzFN-.cjs → CashierMethodDetails-Cq_ccC1E.cjs} +4 -4
  16. package/components/{CashierMethodsList-BsrYB5qD.js → CashierMethodsList-CZtLFkxq.js} +2 -2
  17. package/components/{CashierMethodsList-MCYslnJS.cjs → CashierMethodsList-hGTvnNKE.cjs} +1 -1
  18. package/components/{CashierMethodsList-PBswyJ2T.js → CashierMethodsList-pBTAlRCN.js} +2 -2
  19. package/components/CashierModal-BepKrwPc.cjs +1 -0
  20. package/components/CashierModal-Bezw_q_p.js +237 -0
  21. package/components/CashierModal-BkWWCFGy.js +237 -0
  22. package/components/{CashierNotifications-BabXSzpa.js → CashierNotifications-BKQ84v7D.js} +1 -1
  23. package/components/{CashierNotifications-c0R2lzkJ.js → CashierNotifications-BLOBfSE-.js} +1 -1
  24. package/components/{CashierNotifications-DzhVQr0v.cjs → CashierNotifications-BiaTO8zv.cjs} +1 -1
  25. package/components/{CashierPage-DL9PNUmp.js → CashierPage-BVogJQJz.js} +673 -610
  26. package/components/{CashierPage-wgMi88T4.js → CashierPage-C-qW-3WO.js} +672 -609
  27. package/components/CashierPage-_oClXFYx.cjs +1 -0
  28. package/components/{CashierReceiptPage-DPKnUdho.cjs → CashierReceiptPage-BY8iDo7k.cjs} +2 -2
  29. package/components/{CashierReceiptPage-BRyk7-x8.js → CashierReceiptPage-C4LnHWVS.js} +3 -3
  30. package/components/{CashierReceiptPage-Drubd_JK.js → CashierReceiptPage-pX5ZB8GS.js} +3 -3
  31. package/components/{CashierSessionExpirationModal--GStqbA0.js → CashierSessionExpirationModal-DCwaZyoe.js} +148 -135
  32. package/components/{CashierSessionExpirationModal-DbLYFUoI.js → CashierSessionExpirationModal-DROX_8ms.js} +173 -160
  33. package/components/CashierSessionExpirationModal-Diatc2g_.cjs +2 -0
  34. package/components/{CashierSpinner-BOv1Uv2R.js → CashierSpinner-B6hRv5UE.js} +1 -1
  35. package/components/{CashierSpinner-TZ4oRzbQ.js → CashierSpinner-D9V28sna.js} +1 -1
  36. package/components/{CashierSpinner-Bu3_RQVf.cjs → CashierSpinner-vepcrAEk.cjs} +1 -1
  37. package/components/CashierTransactionHistory-CkMYM-iN.cjs +1 -0
  38. package/components/{CashierTransactionHistory-CvNkQ1q9.js → CashierTransactionHistory-D8zsi5NJ.js} +27 -27
  39. package/components/{CashierTransactionHistory-D4lcvVf0.js → CashierTransactionHistory-DW8O1MRc.js} +27 -27
  40. package/components/CashierVerifications-Bk77XvWp.cjs +1 -0
  41. package/components/{CashierVerifications-BeZISELs.js → CashierVerifications-Clboalpm.js} +98 -98
  42. package/components/{CashierVerifications-CI7XZxhv.js → CashierVerifications-Ct9t3u-_.js} +128 -128
  43. package/components/{TxnStatusIcon-CSirdVWO.js → TxnStatusIcon-BbwRTWeF.js} +1 -1
  44. package/components/{TxnStatusIcon-pHNTYXan.cjs → TxnStatusIcon-DAT0GdaB.cjs} +1 -1
  45. package/components/{TxnStatusIcon-Dd3JJN8p.js → TxnStatusIcon-YMvAqmkU.js} +1 -1
  46. package/components/{TxnTypeIcons-B76CMssY.cjs → TxnTypeIcons-B9WBEMaU.cjs} +1 -1
  47. package/components/{TxnTypeIcons-BNxbLm76.js → TxnTypeIcons-CGI4ZYMR.js} +1 -1
  48. package/components/{TxnTypeIcons-DNPW1hkM.js → TxnTypeIcons-DaU-Md0s.js} +1 -1
  49. package/es2015/cashier-page.cjs +1 -1
  50. package/es2015/cashier-page.js +1 -1
  51. package/esnext/cashier-page.js +1 -1
  52. package/package.json +1 -1
  53. package/components/CashierCarousel-Dw1AX3mG.cjs +0 -23
  54. package/components/CashierModal-CgMUCRZH.js +0 -268
  55. package/components/CashierModal-DJjBfX7P.cjs +0 -1
  56. package/components/CashierModal-HnINXcY0.js +0 -268
  57. package/components/CashierPage-19-mT4Vd.cjs +0 -1
  58. package/components/CashierSessionExpirationModal-Ry280vYg.cjs +0 -2
  59. package/components/CashierTransactionHistory-DjciY8rT.cjs +0 -1
  60. package/components/CashierVerifications-BMVKuTGH.cjs +0 -1
@@ -0,0 +1,237 @@
1
+ import { S as E, b as O, s as j, f as g, c as q, e as C, t as w, g as b, Z, _ as D, k as v, r as G, q as H, d as K, u as N, h as P, j as R, o as h, l as _, a0 as T, m as p, n as U, K as W, y as x, G as A, x as J, P as k, B as Q, C as V, D as X, E as Y } from "./CashierCarousel-C-1lJxZx.js";
2
+ function $(n) {
3
+ q(n, "svelte-naei31", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideScaleIn{from{opacity:0;transform:scale(0.9)}to{opacity:1;transform:scale(1)}}@keyframes modalSlideScaleOut{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.95)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:10;animation:modalFadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}#Modal.closing{animation:modalFadeOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191F;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);animation:modalSlideScaleIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)}#Modal.closing .ModalContainer{animation:modalSlideScaleOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #F9C405) 5%, var(--emw--color-black, #12191F) 65%)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalCloseIcon svg{width:11px;height:11px}.CloseButton{fill:var(--emw--color-primary);stroke:var(--emw--color-primary);cursor:pointer;transition:transform 0.2s ease}.CloseButton:hover{transform:scale(1.05)}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}');
4
+ }
5
+ const ee = (n) => ({}), M = (n) => ({});
6
+ function S(n) {
7
+ let e, t, i, s, a, m, d, r = (
8
+ /*modaltype*/
9
+ n[3] !== "error" && L(n)
10
+ );
11
+ const y = (
12
+ /*#slots*/
13
+ n[11].content
14
+ ), c = K(
15
+ y,
16
+ n,
17
+ /*$$scope*/
18
+ n[10],
19
+ M
20
+ );
21
+ return {
22
+ c() {
23
+ e = p("div"), t = p("div"), i = p("div"), r && r.c(), s = U(), c && c.c(), h(i, "class", "ModalContainer"), h(i, "style", a = /*modaltype*/
24
+ n[3] === "video" ? "height: 70%" : "height: auto"), h(t, "id", "Modal"), W(() => (
25
+ /*div1_elementresize_handler*/
26
+ n[13].call(t)
27
+ ));
28
+ },
29
+ m(o, u) {
30
+ v(o, e, u), _(e, t), _(t, i), r && r.m(i, null), _(i, s), c && c.m(i, null), n[12](t), m = T(
31
+ t,
32
+ /*div1_elementresize_handler*/
33
+ n[13].bind(t)
34
+ ), n[14](e), d = !0;
35
+ },
36
+ p(o, u) {
37
+ /*modaltype*/
38
+ o[3] !== "error" ? r ? r.p(o, u) : (r = L(o), r.c(), r.m(i, s)) : r && (r.d(1), r = null), c && c.p && (!d || u & /*$$scope*/
39
+ 1024) && N(
40
+ c,
41
+ y,
42
+ o,
43
+ /*$$scope*/
44
+ o[10],
45
+ d ? R(
46
+ y,
47
+ /*$$scope*/
48
+ o[10],
49
+ u,
50
+ ee
51
+ ) : P(
52
+ /*$$scope*/
53
+ o[10]
54
+ ),
55
+ M
56
+ ), (!d || u & /*modaltype*/
57
+ 8 && a !== (a = /*modaltype*/
58
+ o[3] === "video" ? "height: 70%" : "height: auto")) && h(i, "style", a);
59
+ },
60
+ i(o) {
61
+ d || (b(c, o), d = !0);
62
+ },
63
+ o(o) {
64
+ w(c, o), d = !1;
65
+ },
66
+ d(o) {
67
+ o && C(e), r && r.d(), c && c.d(o), n[12](null), m(), n[14](null);
68
+ }
69
+ };
70
+ }
71
+ function L(n) {
72
+ let e, t, i, s, a;
73
+ return {
74
+ c() {
75
+ e = p("div"), t = k("svg"), i = k("path"), h(i, "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"), h(t, "xmlns", "http://www.w3.org/2000/svg"), h(t, "viewBox", "0 0 13 13"), h(t, "fill", "none"), h(t, "class", "CloseButton"), h(e, "class", "ModalCloseIcon");
76
+ },
77
+ m(m, d) {
78
+ v(m, e, d), _(e, t), _(t, i), s || (a = J(
79
+ t,
80
+ "click",
81
+ /*closeModal*/
82
+ n[6]
83
+ ), s = !0);
84
+ },
85
+ p: A,
86
+ d(m) {
87
+ m && C(e), s = !1, a();
88
+ }
89
+ };
90
+ }
91
+ function te(n) {
92
+ let e, t, i = (
93
+ /*show*/
94
+ n[2] === "true" && S(n)
95
+ );
96
+ return {
97
+ c() {
98
+ i && i.c(), e = G();
99
+ },
100
+ m(s, a) {
101
+ i && i.m(s, a), v(s, e, a), t = !0;
102
+ },
103
+ p(s, [a]) {
104
+ /*show*/
105
+ s[2] === "true" ? i ? (i.p(s, a), a & /*show*/
106
+ 4 && b(i, 1)) : (i = S(s), i.c(), b(i, 1), i.m(e.parentNode, e)) : i && (Z(), w(i, 1, 1, () => {
107
+ i = null;
108
+ }), D());
109
+ },
110
+ i(s) {
111
+ t || (b(i), t = !0);
112
+ },
113
+ o(s) {
114
+ w(i), t = !1;
115
+ },
116
+ d(s) {
117
+ s && C(e), i && i.d(s);
118
+ }
119
+ };
120
+ }
121
+ function ie(n, e, t) {
122
+ let { $$slots: i = {}, $$scope: s } = e, { mbsource: a } = e, { clientstyling: m } = e, { clientstylingurl: d } = e, { show: r } = e, { modaltype: y = "" } = e, { width: c } = e, { height: o } = e, u, f;
123
+ const z = () => {
124
+ u && (u.classList.add("closing"), setTimeout(
125
+ () => {
126
+ window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
127
+ },
128
+ 300
129
+ ));
130
+ };
131
+ H(() => () => {
132
+ });
133
+ function I(l) {
134
+ x[l ? "unshift" : "push"](() => {
135
+ u = l, t(5, u);
136
+ });
137
+ }
138
+ function F() {
139
+ c = this.clientWidth, o = this.clientHeight, t(0, c), t(1, o);
140
+ }
141
+ function B(l) {
142
+ x[l ? "unshift" : "push"](() => {
143
+ f = l, t(4, f);
144
+ });
145
+ }
146
+ return n.$$set = (l) => {
147
+ "mbsource" in l && t(7, a = l.mbsource), "clientstyling" in l && t(8, m = l.clientstyling), "clientstylingurl" in l && t(9, d = l.clientstylingurl), "show" in l && t(2, r = l.show), "modaltype" in l && t(3, y = l.modaltype), "width" in l && t(0, c = l.width), "height" in l && t(1, o = l.height), "$$scope" in l && t(10, s = l.$$scope);
148
+ }, n.$$.update = () => {
149
+ n.$$.dirty & /*clientstyling, customStylingContainer*/
150
+ 272 && m && f && Q(f, m), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
151
+ 528 && d && f && V(f, d), n.$$.dirty & /*mbsource, customStylingContainer*/
152
+ 144 && a && f && X(f, `${a}.Style`);
153
+ }, [
154
+ c,
155
+ o,
156
+ r,
157
+ y,
158
+ f,
159
+ u,
160
+ z,
161
+ a,
162
+ m,
163
+ d,
164
+ s,
165
+ i,
166
+ I,
167
+ F,
168
+ B
169
+ ];
170
+ }
171
+ class ne extends E {
172
+ constructor(e) {
173
+ super(), O(
174
+ this,
175
+ e,
176
+ ie,
177
+ te,
178
+ j,
179
+ {
180
+ mbsource: 7,
181
+ clientstyling: 8,
182
+ clientstylingurl: 9,
183
+ show: 2,
184
+ modaltype: 3,
185
+ width: 0,
186
+ height: 1
187
+ },
188
+ $
189
+ );
190
+ }
191
+ get mbsource() {
192
+ return this.$$.ctx[7];
193
+ }
194
+ set mbsource(e) {
195
+ this.$$set({ mbsource: e }), g();
196
+ }
197
+ get clientstyling() {
198
+ return this.$$.ctx[8];
199
+ }
200
+ set clientstyling(e) {
201
+ this.$$set({ clientstyling: e }), g();
202
+ }
203
+ get clientstylingurl() {
204
+ return this.$$.ctx[9];
205
+ }
206
+ set clientstylingurl(e) {
207
+ this.$$set({ clientstylingurl: e }), g();
208
+ }
209
+ get show() {
210
+ return this.$$.ctx[2];
211
+ }
212
+ set show(e) {
213
+ this.$$set({ show: e }), g();
214
+ }
215
+ get modaltype() {
216
+ return this.$$.ctx[3];
217
+ }
218
+ set modaltype(e) {
219
+ this.$$set({ modaltype: e }), g();
220
+ }
221
+ get width() {
222
+ return this.$$.ctx[0];
223
+ }
224
+ set width(e) {
225
+ this.$$set({ width: e }), g();
226
+ }
227
+ get height() {
228
+ return this.$$.ctx[1];
229
+ }
230
+ set height(e) {
231
+ this.$$set({ height: e }), g();
232
+ }
233
+ }
234
+ Y(ne, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, width: {}, height: {} }, ["content"], [], !0);
235
+ export {
236
+ ne as default
237
+ };
@@ -1,4 +1,4 @@
1
- import { S as C, b as v, s as _, f as d, c as k, G as b, e as N, v as p, k as z, l as f, x as E, m as h, w as x, n as S, o as L, y as M, E as T } from "./CashierCarousel-DAykqaK7.js";
1
+ import { S as C, b as v, s as _, f as d, c as k, G as b, e as N, v as p, k as z, l as f, x as E, m as h, w as x, n as S, o as L, y as M, E as T } from "./CashierCarousel-BJBoHcOi.js";
2
2
  function H(n) {
3
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
4
  }
@@ -1,4 +1,4 @@
1
- import { S as C, b as v, s as _, f as d, c as k, G as b, e as N, v as p, k as z, l as f, x as E, m as h, w as x, n as S, o as L, y as M, E as T } from "./CashierCarousel-xeoHL478.js";
1
+ import { S as C, b as v, s as _, f as d, c as k, G as b, e as N, v as p, k as z, l as f, x as E, m as h, w as x, n as S, o as L, y as M, E as T } from "./CashierCarousel-C-1lJxZx.js";
2
2
  function H(n) {
3
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
4
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-Dw1AX3mG.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-CnirEVww.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;