@everymatrix/cashier-page 1.74.6 → 1.74.7

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 (64) hide show
  1. package/components/{CashierConfirmModal-D6-yvknK.js → CashierConfirmModal-Dx60VYf6.js} +76 -76
  2. package/components/{CashierConfirmModal-C5Z0fFCo.cjs → CashierConfirmModal-irSMDzV_.cjs} +2 -2
  3. package/components/{CashierConfirmModal-DluW6utN.js → CashierConfirmModal-rwhmlwC5.js} +183 -183
  4. package/components/{CashierError-B_HILIqI.js → CashierError-BIqFaX3H.js} +1 -1
  5. package/components/{CashierError-CQ8ceQ8e.js → CashierError-BWuNinWy.js} +1 -1
  6. package/components/{CashierError-DZ5vqVXV.cjs → CashierError-CORG04aE.cjs} +1 -1
  7. package/components/{CashierHeader-CNyLXgin.js → CashierHeader-CXaZ-6Ua.js} +2 -2
  8. package/components/{CashierHeader-DW3Xs1f3.js → CashierHeader-Ca2cghIW.js} +2 -2
  9. package/components/{CashierHeader-Cjxrbu0V.cjs → CashierHeader-Dl6r6hK0.cjs} +1 -1
  10. package/components/{CashierIframeRedirect-IwNw_njq.js → CashierIframeRedirect-7GBPLJHr.js} +4 -4
  11. package/components/{CashierIframeRedirect-DU1GgNLD.cjs → CashierIframeRedirect-BjLvrvKL.cjs} +1 -1
  12. package/components/{CashierIframeRedirect-D81gVeBk.js → CashierIframeRedirect-ChyzshIQ.js} +4 -4
  13. package/components/{CashierMethodDetails-CfpOwAD9.js → CashierMethodDetails-BuRbRo-R.js} +1283 -1260
  14. package/components/{CashierMethodDetails-BI-MRKy-.js → CashierMethodDetails-CEFupmfP.js} +1173 -1150
  15. package/components/CashierMethodDetails-DxYPk7Br.cjs +86 -0
  16. package/components/{CashierMethodsList-CsOA_enM.cjs → CashierMethodsList-BI_GHUxf.cjs} +1 -1
  17. package/components/{CashierMethodsList-PU5P66EA.js → CashierMethodsList-BqmFmDOC.js} +3 -3
  18. package/components/{CashierMethodsList-CqVd20oA.js → CashierMethodsList-CB_m5hK-.js} +3 -3
  19. package/components/CashierModal-Bh6E-PDS.js +229 -0
  20. package/components/CashierModal-BwVWBmwZ.cjs +1 -0
  21. package/components/CashierModal-CTayVmDw.js +229 -0
  22. package/components/{CashierNotifications-CkXKlPIz.js → CashierNotifications-77FpsD4N.js} +1 -1
  23. package/components/{CashierNotifications-a3GpFzzw.js → CashierNotifications-CM4Cti_x.js} +1 -1
  24. package/components/{CashierNotifications-JBaW5ppf.cjs → CashierNotifications-YOOhP2yz.cjs} +1 -1
  25. package/components/{CashierPage-oKC2gyuD.js → CashierPage-B90j2bUX.js} +1133 -1124
  26. package/components/CashierPage-Bi90dl_Y.cjs +1 -0
  27. package/components/{CashierPage-CmBa1fJm.js → CashierPage-Dq-XwH-T.js} +1133 -1124
  28. package/components/{CashierReceiptPage-CZHo7bk4.js → CashierReceiptPage-BsBy8_a9.js} +213 -197
  29. package/components/{CashierReceiptPage-D1aUxYNu.cjs → CashierReceiptPage-C-5P1j5e.cjs} +1 -1
  30. package/components/{CashierReceiptPage-DKAwy-XO.js → CashierReceiptPage-TGTe-vYp.js} +211 -195
  31. package/components/{CashierSessionExpirationModal-B1ynET49.js → CashierSessionExpirationModal-Bwks132l.js} +46 -46
  32. package/components/{CashierSessionExpirationModal-CswZVz0A.js → CashierSessionExpirationModal-D7u1LLSa.js} +46 -46
  33. package/components/{CashierSessionExpirationModal-DztF8_bN.cjs → CashierSessionExpirationModal-lqr-I0nF.cjs} +2 -2
  34. package/components/{CashierSpinner-C0dfKfvc.cjs → CashierSpinner-BhE9RAhI.cjs} +1 -1
  35. package/components/{CashierSpinner-Pf85g3j2.js → CashierSpinner-C6RPqoHx.js} +1 -1
  36. package/components/{CashierSpinner-nZ-w8uRg.js → CashierSpinner-sEBjrLfs.js} +1 -1
  37. package/components/CashierTransactionHistory-BSO5XGtr.cjs +1 -0
  38. package/components/CashierTransactionHistory-CkMKi6Fz.js +1306 -0
  39. package/components/CashierTransactionHistory-DiONlMGi.js +1306 -0
  40. package/components/{CashierVerifications-DmMaSPNE.js → CashierVerifications-B63zidU5.js} +281 -351
  41. package/components/{CashierVerifications-CEYgwiGj.js → CashierVerifications-DkUcWYyo.js} +286 -356
  42. package/components/CashierVerifications-J6r2bd7v.cjs +1 -0
  43. package/components/{TxnStatusIcon-DIdoWxaS.js → TxnStatusIcon-Bqtf3sG3.js} +1 -1
  44. package/components/{TxnStatusIcon-Bk0oBxLN.cjs → TxnStatusIcon-C9hNDByt.cjs} +1 -1
  45. package/components/{TxnStatusIcon-DN0llRTe.js → TxnStatusIcon-fiVxFVX_.js} +1 -1
  46. package/components/{TxnTypeIcons-BPVFmF5k.js → TxnTypeIcons-CA9VDuG4.js} +1 -1
  47. package/components/{TxnTypeIcons-CVoF9ajj.cjs → TxnTypeIcons-D6ZYjaVc.cjs} +1 -1
  48. package/components/{TxnTypeIcons-BuQgMseI.js → TxnTypeIcons-DMjccElF.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/CashierMethodDetails-CijnX6lX.cjs +0 -86
  54. package/components/CashierModal-B4of2Oxh.js +0 -228
  55. package/components/CashierModal-CvWSs-3j.js +0 -228
  56. package/components/CashierModal-DSuBZJDR.cjs +0 -1
  57. package/components/CashierPage-BRFjfzR5.cjs +0 -1
  58. package/components/CashierTransactionHistory-BcgsMpUM.js +0 -1303
  59. package/components/CashierTransactionHistory-CLxBvVPx.cjs +0 -1
  60. package/components/CashierTransactionHistory-DSCunt4_.js +0 -1303
  61. package/components/CashierVerifications-CaQ-G815.cjs +0 -1
  62. package/components/CashierVideoModal-BAMzRbW4.js +0 -198
  63. package/components/CashierVideoModal-CqlPtM2X.js +0 -198
  64. package/components/CashierVideoModal-z4snZUdS.cjs +0 -1
@@ -0,0 +1,229 @@
1
+ import { U as q, S as U, b as A, f as g, c as F, a as G, d as H, A as J, k as S, t as m, p as w, q as L, v as j, x as N, y as P, z as R, e as T, g as y, j as b, J as p, l as x, V, u as D, m as I, o as K, W as v, E as Q, F as C, G as X } from "./CashierConfirmModal-rwhmlwC5.js";
2
+ function M(e, { delay: t = 0, duration: i = 400, easing: n = q } = {}) {
3
+ const o = +getComputedStyle(e).opacity;
4
+ return {
5
+ delay: t,
6
+ duration: i,
7
+ easing: n,
8
+ css: (r) => `opacity: ${r * o}`
9
+ };
10
+ }
11
+ function Y(e) {
12
+ H(e, "svelte-1cgf4b", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:1}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{width:500px;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:var(--emw--color-white, #fff);max-width:90%}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn .ModalCloseBtn{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}.ModalCloseBtn .ModalOkButton{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}");
13
+ }
14
+ const Z = (e) => ({}), k = (e) => ({});
15
+ function z(e) {
16
+ let t, i, n, o, r, c;
17
+ const f = (
18
+ /*#slots*/
19
+ e[10].content
20
+ ), a = T(
21
+ f,
22
+ e,
23
+ /*$$scope*/
24
+ e[9],
25
+ k
26
+ );
27
+ return {
28
+ c() {
29
+ t = y("div"), i = y("div"), n = y("div"), a && a.c(), b(n, "class", "ModalContainer"), b(i, "id", "Modal"), p(() => (
30
+ /*div1_elementresize_handler*/
31
+ e[12].call(i)
32
+ ));
33
+ },
34
+ m(l, d) {
35
+ S(l, t, d), x(t, i), x(i, n), a && a.m(n, null), e[11](i), o = V(
36
+ i,
37
+ /*div1_elementresize_handler*/
38
+ e[12].bind(i)
39
+ ), e[13](t), c = !0;
40
+ },
41
+ p(l, d) {
42
+ e = l, a && a.p && (!c || d & /*$$scope*/
43
+ 512) && D(
44
+ a,
45
+ f,
46
+ e,
47
+ /*$$scope*/
48
+ e[9],
49
+ c ? K(
50
+ f,
51
+ /*$$scope*/
52
+ e[9],
53
+ d,
54
+ Z
55
+ ) : I(
56
+ /*$$scope*/
57
+ e[9]
58
+ ),
59
+ k
60
+ );
61
+ },
62
+ i(l) {
63
+ c || (m(a, l), l && p(() => {
64
+ c && (r || (r = v(
65
+ i,
66
+ M,
67
+ /*duration*/
68
+ e[3],
69
+ !0
70
+ )), r.run(1));
71
+ }), c = !0);
72
+ },
73
+ o(l) {
74
+ w(a, l), l && (r || (r = v(
75
+ i,
76
+ M,
77
+ /*duration*/
78
+ e[3],
79
+ !1
80
+ )), r.run(0)), c = !1;
81
+ },
82
+ d(l) {
83
+ l && j(t), a && a.d(l), e[11](null), o(), l && r && r.end(), e[13](null);
84
+ }
85
+ };
86
+ }
87
+ function $(e) {
88
+ let t, i, n = (
89
+ /*show*/
90
+ e[2] === "true" && z(e)
91
+ );
92
+ return {
93
+ c() {
94
+ n && n.c(), t = J();
95
+ },
96
+ m(o, r) {
97
+ n && n.m(o, r), S(o, t, r), i = !0;
98
+ },
99
+ p(o, [r]) {
100
+ /*show*/
101
+ o[2] === "true" ? n ? (n.p(o, r), r & /*show*/
102
+ 4 && m(n, 1)) : (n = z(o), n.c(), m(n, 1), n.m(t.parentNode, t)) : n && (Q(), w(n, 1, 1, () => {
103
+ n = null;
104
+ }), L());
105
+ },
106
+ i(o) {
107
+ i || (m(n), i = !0);
108
+ },
109
+ o(o) {
110
+ w(n), i = !1;
111
+ },
112
+ d(o) {
113
+ o && j(t), n && n.d(o);
114
+ }
115
+ };
116
+ }
117
+ function tt(e, t, i) {
118
+ let { $$slots: n = {}, $$scope: o } = t, { mbsource: r } = t, { clientstyling: c } = t, { clientstylingurl: f } = t, { show: a } = t, { duration: l = 200 } = t, { width: d } = t, { height: h } = t, _, u;
119
+ N(() => () => {
120
+ });
121
+ function E(s) {
122
+ C[s ? "unshift" : "push"](() => {
123
+ _ = s, i(5, _);
124
+ });
125
+ }
126
+ function W() {
127
+ d = this.clientWidth, h = this.clientHeight, i(0, d), i(1, h);
128
+ }
129
+ function O(s) {
130
+ C[s ? "unshift" : "push"](() => {
131
+ u = s, i(4, u);
132
+ });
133
+ }
134
+ return e.$$set = (s) => {
135
+ "mbsource" in s && i(6, r = s.mbsource), "clientstyling" in s && i(7, c = s.clientstyling), "clientstylingurl" in s && i(8, f = s.clientstylingurl), "show" in s && i(2, a = s.show), "duration" in s && i(3, l = s.duration), "width" in s && i(0, d = s.width), "height" in s && i(1, h = s.height), "$$scope" in s && i(9, o = s.$$scope);
136
+ }, e.$$.update = () => {
137
+ e.$$.dirty & /*clientstyling, customStylingContainer*/
138
+ 144 && c && u && X(u, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
139
+ 272 && f && u && P(u, f), e.$$.dirty & /*mbsource, customStylingContainer*/
140
+ 80 && r && u && R(u, `${r}.Style`);
141
+ }, [
142
+ d,
143
+ h,
144
+ a,
145
+ l,
146
+ u,
147
+ _,
148
+ r,
149
+ c,
150
+ f,
151
+ o,
152
+ n,
153
+ E,
154
+ W,
155
+ O
156
+ ];
157
+ }
158
+ class B extends U {
159
+ constructor(t) {
160
+ super(), A(
161
+ this,
162
+ t,
163
+ tt,
164
+ $,
165
+ G,
166
+ {
167
+ mbsource: 6,
168
+ clientstyling: 7,
169
+ clientstylingurl: 8,
170
+ show: 2,
171
+ duration: 3,
172
+ width: 0,
173
+ height: 1
174
+ },
175
+ Y
176
+ );
177
+ }
178
+ get mbsource() {
179
+ return this.$$.ctx[6];
180
+ }
181
+ set mbsource(t) {
182
+ this.$$set({ mbsource: t }), g();
183
+ }
184
+ get clientstyling() {
185
+ return this.$$.ctx[7];
186
+ }
187
+ set clientstyling(t) {
188
+ this.$$set({ clientstyling: t }), g();
189
+ }
190
+ get clientstylingurl() {
191
+ return this.$$.ctx[8];
192
+ }
193
+ set clientstylingurl(t) {
194
+ this.$$set({ clientstylingurl: t }), g();
195
+ }
196
+ get show() {
197
+ return this.$$.ctx[2];
198
+ }
199
+ set show(t) {
200
+ this.$$set({ show: t }), g();
201
+ }
202
+ get duration() {
203
+ return this.$$.ctx[3];
204
+ }
205
+ set duration(t) {
206
+ this.$$set({ duration: t }), g();
207
+ }
208
+ get width() {
209
+ return this.$$.ctx[0];
210
+ }
211
+ set width(t) {
212
+ this.$$set({ width: t }), g();
213
+ }
214
+ get height() {
215
+ return this.$$.ctx[1];
216
+ }
217
+ set height(t) {
218
+ this.$$set({ height: t }), g();
219
+ }
220
+ }
221
+ F(B, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
222
+ const it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
+ __proto__: null,
224
+ default: B
225
+ }, Symbol.toStringTag, { value: "Module" }));
226
+ export {
227
+ it as C,
228
+ M as f
229
+ };
@@ -1,4 +1,4 @@
1
- import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, B as b, h as z, j as S, k as E, l as f, D as L, C as p, n as x, v as M, F as T } from "./CashierConfirmModal-DluW6utN.js";
1
+ import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, B as b, h as z, j as S, k as E, l as f, D as L, C as p, n as x, v as M, F as T } from "./CashierConfirmModal-Dx60VYf6.js";
2
2
  function B(n) {
3
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
4
  }
@@ -1,4 +1,4 @@
1
- import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, B as b, h as z, j as S, k as E, l as f, D as L, C as p, n as x, v as M, F as T } from "./CashierConfirmModal-D6-yvknK.js";
1
+ import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, B as b, h as z, j as S, k as E, l as f, D as L, C as p, n as x, v as M, F as T } from "./CashierConfirmModal-rwhmlwC5.js";
2
2
  function B(n) {
3
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
4
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-C5Z0fFCo.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(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("./CashierConfirmModal-irSMDzV_.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(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;