@everymatrix/cashier-page 1.98.7 → 1.98.9

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 (63) hide show
  1. package/components/{CashierCarousel-CLl1dEO0.js → CashierCarousel-BzdUV7XF.js} +160 -136
  2. package/components/{CashierCarousel-jiScaw1m.js → CashierCarousel-FFsdS-lS.js} +166 -142
  3. package/components/CashierCarousel-zmZZjXPR.cjs +1 -0
  4. package/components/{CashierError-BgzGU74G.js → CashierError-DM9cHWYk.js} +282 -178
  5. package/components/{CashierError-nb2MHtLH.cjs → CashierError-DtmAFp4L.cjs} +1 -1
  6. package/components/{CashierError-ulLnVgQF.js → CashierError-R9QTGjHi.js} +282 -178
  7. package/components/{CashierHeader-DEksQqYQ.js → CashierHeader-BGa8_twf.js} +144 -130
  8. package/components/{CashierHeader-jQ2-E617.js → CashierHeader-BoWdCzOy.js} +144 -130
  9. package/components/CashierHeader-DL7CeVPX.cjs +1 -0
  10. package/components/{CashierIframeRedirect-BUy5m6fN.js → CashierIframeRedirect-BGDgKj5q.js} +38 -32
  11. package/components/{CashierIframeRedirect-CyY79191.js → CashierIframeRedirect-ByL4GN6L.js} +38 -32
  12. package/components/CashierIframeRedirect-DwOnILP1.cjs +1 -0
  13. package/components/{CashierMethodDetails-DmHKHr2M.cjs → CashierMethodDetails-CMadBp5s.cjs} +4 -4
  14. package/components/{CashierMethodDetails-BHGrCcE3.js → CashierMethodDetails-DgFi6GOg.js} +1345 -1149
  15. package/components/{CashierMethodDetails-B-klrcoA.js → CashierMethodDetails-DwAKidqM.js} +1500 -1304
  16. package/components/{CashierMethodsList-u11i0SYf.js → CashierMethodsList-B0Y7Ov2y.js} +136 -112
  17. package/components/CashierMethodsList-BKSWzfhx.cjs +1 -0
  18. package/components/{CashierMethodsList-KXr3hScy.js → CashierMethodsList-BttlgP8I.js} +152 -128
  19. package/components/{CashierModal-Ke9TZX5s.js → CashierModal-BAqyZ3yN.js} +2 -2
  20. package/components/{CashierModal-4iF9ylQT.js → CashierModal-CTEreymk.js} +2 -2
  21. package/components/{CashierModal-CcawnfUI.cjs → CashierModal-DYiiDdjF.cjs} +1 -1
  22. package/components/{CashierNotifications-DquKOU8w.js → CashierNotifications-5vMGexnB.js} +1 -1
  23. package/components/{CashierNotifications-CY2B13Wf.js → CashierNotifications-C9DAtUCd.js} +1 -1
  24. package/components/{CashierNotifications-wQG099OX.cjs → CashierNotifications-DeciL3hL.cjs} +1 -1
  25. package/components/{CashierPage-895aolw0.js → CashierPage-Cyh00U_t.js} +1216 -1118
  26. package/components/{CashierPage-DEYpTaJv.cjs → CashierPage-Datx6Ztd.cjs} +6 -6
  27. package/components/{CashierPage-Bz6JgmrH.js → CashierPage-DmSMSwFD.js} +712 -614
  28. package/components/{CashierReceiptPage-CGcmTBRp.js → CashierReceiptPage-2QLgzHKu.js} +486 -302
  29. package/components/{CashierReceiptPage-BCh5OfiT.cjs → CashierReceiptPage-CljAf_RX.cjs} +2 -2
  30. package/components/{CashierReceiptPage-DNsdCwQQ.js → CashierReceiptPage-zipsq7HA.js} +483 -299
  31. package/components/{CashierSessionExpirationModal-i5NfYzNE.js → CashierSessionExpirationModal-BHUuaz3G.js} +141 -125
  32. package/components/CashierSessionExpirationModal-BhdcM6-i.cjs +2 -0
  33. package/components/{CashierSessionExpirationModal-IfrOHdOp.js → CashierSessionExpirationModal-CPiyWnR6.js} +141 -125
  34. package/components/{CashierSpinner-bOYmQpsr.js → CashierSpinner-CfN6GP0k.js} +2 -2
  35. package/components/{CashierSpinner-CKdmXXKt.cjs → CashierSpinner-DK9MV_jW.cjs} +1 -1
  36. package/components/{CashierSpinner-C9Ra-0IT.js → CashierSpinner-DlmmgiCp.js} +2 -2
  37. package/components/{CashierStepUp-B3Ph1OSf.js → CashierStepUp-D4IutqnI.js} +397 -351
  38. package/components/{CashierStepUp-CKae09kD.js → CashierStepUp-DBkCHzU6.js} +371 -325
  39. package/components/CashierStepUp-f6d-L0Pv.cjs +1 -0
  40. package/components/{CashierTransactionHistory-_uQpfmaM.js → CashierTransactionHistory-Bfx6cEFg.js} +522 -472
  41. package/components/{CashierTransactionHistory-DkPMVofl.js → CashierTransactionHistory-BmgU4GU7.js} +494 -444
  42. package/components/CashierTransactionHistory-Bxd87eQt.cjs +1 -0
  43. package/components/CashierVerifications-B-u47VhR.cjs +1 -0
  44. package/components/{CashierVerifications-CA42knBf.js → CashierVerifications-Bi_7cW9r.js} +256 -210
  45. package/components/{CashierVerifications-C3vBxGTw.js → CashierVerifications-UTO3n0Ei.js} +245 -199
  46. package/components/{TxnStatusIcon-T3_oGTiJ.js → TxnStatusIcon-CDynHfdT.js} +1 -1
  47. package/components/{TxnStatusIcon-_ohfqibs.js → TxnStatusIcon-XWXNjZi6.js} +1 -1
  48. package/components/{TxnStatusIcon-ObLzHWKw.cjs → TxnStatusIcon-xNz_TX3o.cjs} +1 -1
  49. package/components/{TxnTypeIcons-DhQNGQt2.js → TxnTypeIcons-Bui9VGqk.js} +1 -1
  50. package/components/{TxnTypeIcons-gD4j8VCB.js → TxnTypeIcons-D0YhmAk8.js} +1 -1
  51. package/components/{TxnTypeIcons-mX1zqVBL.cjs → TxnTypeIcons-D3xjja9q.cjs} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +1 -1
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierCarousel-Dh5Q3q4o.cjs +0 -1
  57. package/components/CashierHeader-DA_ReO25.cjs +0 -1
  58. package/components/CashierIframeRedirect-CB1_eaMN.cjs +0 -1
  59. package/components/CashierMethodsList-BvOniQPF.cjs +0 -1
  60. package/components/CashierSessionExpirationModal-CIrMZkSD.cjs +0 -2
  61. package/components/CashierStepUp-DIQ9DrxX.cjs +0 -1
  62. package/components/CashierTransactionHistory-Bkqw8dMT.cjs +0 -1
  63. package/components/CashierVerifications-BZPBsrmc.cjs +0 -1
@@ -1,13 +1,13 @@
1
- import { a as tt, i as et, $ as st, S as nt, b as it, f as b, s as lt, c as ot, d as at, e as S, g as p, t as B, h as L, u as v, j as H, k as T, l as C, m as M, n as y, o as O, p as k, q as rt, r as ct, v as I, w as ut, x as ft, y as ht, z as q, A as G, B as dt } from "./CashierPage-Bz6JgmrH.js";
2
- function R(s, t) {
3
- tt(s, t);
1
+ import { a as ee, i as te, $ as se, S as ne, b as ie, f as b, s as le, c as oe, d as ae, e as S, g as p, t as B, h as L, u as v, j as H, k as T, l as C, m as M, n as y, o as F, p as k, q as re, r as ce, v as I, w as ue, x as fe, y as he, z as q, A as G, B as de } from "./CashierPage-DmSMSwFD.js";
2
+ function O(s, e) {
3
+ ee(s, e);
4
4
  }
5
- function gt(s) {
6
- et({
5
+ function ge(s) {
6
+ te({
7
7
  fallbackLocale: "en"
8
- }), st.set(s);
8
+ }), se.set(s);
9
9
  }
10
- const z = {
10
+ const R = {
11
11
  en: {
12
12
  header: {
13
13
  general: "Cashier",
@@ -49,53 +49,67 @@ const z = {
49
49
  deposit: "Storting",
50
50
  withdraw: "Opname"
51
51
  }
52
+ },
53
+ ru: {
54
+ header: {
55
+ general: "Касса",
56
+ deposit: "Депозит",
57
+ withdraw: "Вывод"
58
+ }
59
+ },
60
+ az: {
61
+ header: {
62
+ general: "Kassa",
63
+ deposit: "Depozit",
64
+ withdraw: "Çıxarış"
65
+ }
52
66
  }
53
67
  }, m = "__WIDGET_GLOBAL_STYLE_CACHE__";
54
- function wt(s, t) {
68
+ function we(s, e) {
55
69
  if (s) {
56
- const e = document.createElement("style");
57
- e.innerHTML = t, s.appendChild(e);
70
+ const t = document.createElement("style");
71
+ t.innerHTML = e, s.appendChild(t);
58
72
  }
59
73
  }
60
- function _t(s, t) {
61
- if (!s || !t)
74
+ function _e(s, e) {
75
+ if (!s || !e)
62
76
  return;
63
- const e = new URL(t);
64
- fetch(e.href).then((i) => i.text()).then((i) => {
77
+ const t = new URL(e);
78
+ fetch(t.href).then((i) => i.text()).then((i) => {
65
79
  const n = document.createElement("style");
66
80
  n.innerHTML = i, s && s.appendChild(n);
67
81
  }).catch((i) => {
68
82
  console.error("There was an error while trying to load client styling from URL", i);
69
83
  });
70
84
  }
71
- function bt(s, t, e, i = !1) {
85
+ function be(s, e, t, i = !1) {
72
86
  if (!window.emMessageBus)
73
87
  return;
74
88
  if (!("adoptedStyleSheets" in Document.prototype) || !i)
75
- return e = mt(s, t), e;
76
- window[m] || (window[m] = {}), e = pt(s, t);
77
- const a = e.unsubscribe.bind(e), h = () => {
78
- if (window[m][t]) {
79
- const r = window[m][t];
80
- r.refCount > 1 ? r.refCount = r.refCount - 1 : delete window[m][t];
89
+ return t = me(s, e), t;
90
+ window[m] || (window[m] = {}), t = pe(s, e);
91
+ const a = t.unsubscribe.bind(t), h = () => {
92
+ if (window[m][e]) {
93
+ const r = window[m][e];
94
+ r.refCount > 1 ? r.refCount = r.refCount - 1 : delete window[m][e];
81
95
  }
82
96
  a();
83
97
  };
84
- return e.unsubscribe = h, e;
98
+ return t.unsubscribe = h, t;
85
99
  }
86
- function mt(s, t) {
87
- const e = document.createElement("style");
88
- return window.emMessageBus.subscribe(t, (i) => {
89
- s && (e.innerHTML = i, s.appendChild(e));
100
+ function me(s, e) {
101
+ const t = document.createElement("style");
102
+ return window.emMessageBus.subscribe(e, (i) => {
103
+ s && (t.innerHTML = i, s.appendChild(t));
90
104
  });
91
105
  }
92
- function pt(s, t) {
93
- return window.emMessageBus.subscribe(t, (e) => {
106
+ function pe(s, e) {
107
+ return window.emMessageBus.subscribe(e, (t) => {
94
108
  if (!s)
95
109
  return;
96
110
  const i = s.getRootNode(), n = window[m];
97
- let a = n[t] && n[t].sheet;
98
- a ? n[t].refCount = n[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(e), n[t] = {
111
+ let a = n[e] && n[e].sheet;
112
+ a ? n[e].refCount = n[e].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(t), n[e] = {
99
113
  sheet: a,
100
114
  refCount: 1
101
115
  });
@@ -103,53 +117,53 @@ function pt(s, t) {
103
117
  h.includes(a) || (i.adoptedStyleSheets = [...h, a]);
104
118
  });
105
119
  }
106
- function Ct(s) {
107
- at(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)}");
120
+ function Ce(s) {
121
+ ae(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)}");
108
122
  }
109
- const yt = (s) => ({}), N = (s) => ({}), kt = (s) => ({}), U = (s) => ({}), St = (s) => ({}), x = (s) => ({});
123
+ const ye = (s) => ({}), x = (s) => ({}), ke = (s) => ({}), N = (s) => ({}), Se = (s) => ({}), U = (s) => ({});
110
124
  function D(s) {
111
- let t, e, i;
125
+ let e, t, i;
112
126
  return {
113
127
  c() {
114
- 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");
128
+ e = y("div"), e.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(e, "class", "CashierHeaderLeftButton");
115
129
  },
116
130
  m(n, a) {
117
- C(n, t, a), e || (i = G(
118
- t,
131
+ C(n, e, a), t || (i = G(
132
+ e,
119
133
  "click",
120
134
  /*back*/
121
135
  s[6]
122
- ), e = !0);
136
+ ), t = !0);
123
137
  },
124
138
  p: q,
125
139
  d(n) {
126
- n && p(t), e = !1, i();
140
+ n && p(e), t = !1, i();
127
141
  }
128
142
  };
129
143
  }
130
- function Bt(s) {
131
- let t, e = (
144
+ function Be(s) {
145
+ let e, t = (
132
146
  /*backButton*/
133
147
  s[1] && D(s)
134
148
  );
135
149
  return {
136
150
  c() {
137
- e && e.c(), t = I();
151
+ t && t.c(), e = I();
138
152
  },
139
153
  m(i, n) {
140
- e && e.m(i, n), C(i, t, n);
154
+ t && t.m(i, n), C(i, e, n);
141
155
  },
142
156
  p(i, n) {
143
157
  /*backButton*/
144
- i[1] ? e ? e.p(i, n) : (e = D(i), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
158
+ i[1] ? t ? t.p(i, n) : (t = D(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
145
159
  },
146
160
  d(i) {
147
- i && p(t), e && e.d(i);
161
+ i && p(e), t && t.d(i);
148
162
  }
149
163
  };
150
164
  }
151
- function Lt(s) {
152
- let t, e = (
165
+ function Le(s) {
166
+ let e, t = (
153
167
  /*$_*/
154
168
  s[4](
155
169
  /*titleText*/
@@ -158,67 +172,67 @@ function Lt(s) {
158
172
  ), i;
159
173
  return {
160
174
  c() {
161
- t = y("span"), i = ft(e), k(t, "class", "CashierHeaderTitle");
175
+ e = y("span"), i = fe(t), k(e, "class", "CashierHeaderTitle");
162
176
  },
163
177
  m(n, a) {
164
- C(n, t, a), M(t, i);
178
+ C(n, e, a), M(e, i);
165
179
  },
166
180
  p(n, a) {
167
181
  a & /*$_, titleText*/
168
- 20 && e !== (e = /*$_*/
182
+ 20 && t !== (t = /*$_*/
169
183
  n[4](
170
184
  /*titleText*/
171
185
  n[2]
172
- ) + "") && ut(i, e);
186
+ ) + "") && ue(i, t);
173
187
  },
174
188
  d(n) {
175
- n && p(t);
189
+ n && p(e);
176
190
  }
177
191
  };
178
192
  }
179
193
  function K(s) {
180
- let t, e, i;
194
+ let e, t, i;
181
195
  return {
182
196
  c() {
183
- 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");
197
+ e = y("span"), e.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(e, "class", "CashierHeaderRightButton");
184
198
  },
185
199
  m(n, a) {
186
- C(n, t, a), e || (i = G(
187
- t,
200
+ C(n, e, a), t || (i = G(
201
+ e,
188
202
  "click",
189
203
  /*close*/
190
204
  s[5]
191
- ), e = !0);
205
+ ), t = !0);
192
206
  },
193
207
  p: q,
194
208
  d(n) {
195
- n && p(t), e = !1, i();
209
+ n && p(e), t = !1, i();
196
210
  }
197
211
  };
198
212
  }
199
- function vt(s) {
200
- let t, e = (
213
+ function ve(s) {
214
+ let e, t = (
201
215
  /*closeButton*/
202
216
  s[3] && K(s)
203
217
  );
204
218
  return {
205
219
  c() {
206
- e && e.c(), t = I();
220
+ t && t.c(), e = I();
207
221
  },
208
222
  m(i, n) {
209
- e && e.m(i, n), C(i, t, n);
223
+ t && t.m(i, n), C(i, e, n);
210
224
  },
211
225
  p(i, n) {
212
226
  /*closeButton*/
213
- i[3] ? e ? e.p(i, n) : (e = K(i), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
227
+ i[3] ? t ? t.p(i, n) : (t = K(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
214
228
  },
215
229
  d(i) {
216
- i && p(t), e && e.d(i);
230
+ i && p(e), t && t.d(i);
217
231
  }
218
232
  };
219
233
  }
220
- function Ht(s) {
221
- let t, e, i, n;
234
+ function He(s) {
235
+ let e, t, i, n;
222
236
  const a = (
223
237
  /*#slots*/
224
238
  s[16].leftButton
@@ -227,8 +241,8 @@ function Ht(s) {
227
241
  s,
228
242
  /*$$scope*/
229
243
  s[15],
230
- x
231
- ), r = h || Bt(s), _ = (
244
+ U
245
+ ), r = h || Be(s), _ = (
232
246
  /*#slots*/
233
247
  s[16].title
234
248
  ), d = S(
@@ -236,8 +250,8 @@ function Ht(s) {
236
250
  s,
237
251
  /*$$scope*/
238
252
  s[15],
239
- U
240
- ), c = d || Lt(s), g = (
253
+ N
254
+ ), c = d || Le(s), g = (
241
255
  /*#slots*/
242
256
  s[16].rightButton
243
257
  ), w = S(
@@ -245,14 +259,14 @@ function Ht(s) {
245
259
  s,
246
260
  /*$$scope*/
247
261
  s[15],
248
- N
249
- ), u = w || vt(s);
262
+ x
263
+ ), u = w || ve(s);
250
264
  return {
251
265
  c() {
252
- t = y("div"), r && r.c(), e = O(), c && c.c(), i = O(), u && u.c(), k(t, "class", "CashierHeader");
266
+ e = y("div"), r && r.c(), t = F(), c && c.c(), i = F(), u && u.c(), k(e, "class", "CashierHeader");
253
267
  },
254
268
  m(l, f) {
255
- 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;
269
+ C(l, e, f), r && r.m(e, null), M(e, t), c && c.m(e, null), M(e, i), u && u.m(e, null), s[17](e), n = !0;
256
270
  },
257
271
  p(l, [f]) {
258
272
  h ? h.p && (!n || f & /*$$scope*/
@@ -267,12 +281,12 @@ function Ht(s) {
267
281
  /*$$scope*/
268
282
  l[15],
269
283
  f,
270
- St
284
+ Se
271
285
  ) : H(
272
286
  /*$$scope*/
273
287
  l[15]
274
288
  ),
275
- x
289
+ U
276
290
  ) : r && r.p && (!n || f & /*backButton*/
277
291
  2) && r.p(l, n ? f : -1), d ? d.p && (!n || f & /*$$scope*/
278
292
  32768) && v(
@@ -286,12 +300,12 @@ function Ht(s) {
286
300
  /*$$scope*/
287
301
  l[15],
288
302
  f,
289
- kt
303
+ ke
290
304
  ) : H(
291
305
  /*$$scope*/
292
306
  l[15]
293
307
  ),
294
- U
308
+ N
295
309
  ) : c && c.p && (!n || f & /*$_, titleText*/
296
310
  20) && c.p(l, n ? f : -1), w ? w.p && (!n || f & /*$$scope*/
297
311
  32768) && v(
@@ -305,12 +319,12 @@ function Ht(s) {
305
319
  /*$$scope*/
306
320
  l[15],
307
321
  f,
308
- yt
322
+ ye
309
323
  ) : H(
310
324
  /*$$scope*/
311
325
  l[15]
312
326
  ),
313
- N
327
+ x
314
328
  ) : u && u.p && (!n || f & /*closeButton*/
315
329
  8) && u.p(l, n ? f : -1);
316
330
  },
@@ -321,63 +335,63 @@ function Ht(s) {
321
335
  B(r, l), B(c, l), B(u, l), n = !1;
322
336
  },
323
337
  d(l) {
324
- l && p(t), r && r.d(l), c && c.d(l), u && u.d(l), s[17](null);
338
+ l && p(e), r && r.d(l), c && c.d(l), u && u.d(l), s[17](null);
325
339
  }
326
340
  };
327
341
  }
328
- function Tt(s, t, e) {
342
+ function Te(s, e, t) {
329
343
  let i;
330
- rt(s, dt, (o) => e(4, i = o));
331
- 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, E = !1;
344
+ re(s, de, (o) => t(4, i = o));
345
+ let { $$slots: n = {}, $$scope: a } = e, { clientstyling: h = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: _ = "" } = e, { showbackbutton: d = "" } = e, { title: c = "header.general" } = e, { lang: g = "en" } = e, { showclosebutton: w = "" } = e, { mbsource: u = "" } = e, l, f, A = !1, z, j = !1;
332
346
  const W = () => {
333
347
  fetch(_).then((o) => o.json()).then((o) => {
334
- Object.keys(o).forEach((F) => {
335
- R(F, o[F]);
348
+ Object.keys(o).forEach((E) => {
349
+ O(E, o[E]);
336
350
  });
337
351
  }).catch((o) => {
338
352
  console.log(o);
339
353
  });
340
354
  };
341
- Object.keys(z).forEach((o) => {
342
- R(o, z[o]);
355
+ Object.keys(R).forEach((o) => {
356
+ O(o, R[o]);
343
357
  });
344
358
  const Y = () => {
345
- gt(g);
359
+ ge(g);
346
360
  }, Z = () => {
347
361
  window.postMessage({ type: "CloseCashier" }, window.location.href);
348
362
  }, J = () => {
349
363
  window.postMessage({ type: "BackCashier" }, window.location.href);
350
364
  }, Q = () => {
351
- e(1, A = !!d && d !== "false");
365
+ t(1, A = !!d && d !== "false");
352
366
  }, V = () => {
353
- e(3, E = !!w && w !== "false");
367
+ t(3, j = !!w && w !== "false");
354
368
  }, X = () => {
355
- e(2, j = c || "header.general");
369
+ t(2, z = c || "header.general");
356
370
  };
357
- ct(() => () => {
371
+ ce(() => () => {
358
372
  });
359
373
  function $(o) {
360
- ht[o ? "unshift" : "push"](() => {
361
- l = o, e(0, l);
374
+ he[o ? "unshift" : "push"](() => {
375
+ l = o, t(0, l);
362
376
  });
363
377
  }
364
378
  return s.$$set = (o) => {
365
- "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);
379
+ "clientstyling" in o && t(7, h = o.clientstyling), "clientstylingurl" in o && t(8, r = o.clientstylingurl), "translationurl" in o && t(9, _ = o.translationurl), "showbackbutton" in o && t(10, d = o.showbackbutton), "title" in o && t(11, c = o.title), "lang" in o && t(12, g = o.lang), "showclosebutton" in o && t(13, w = o.showclosebutton), "mbsource" in o && t(14, u = o.mbsource), "$$scope" in o && t(15, a = o.$$scope);
366
380
  }, s.$$.update = () => {
367
381
  s.$$.dirty & /*lang*/
368
382
  4096 && g && Y(), s.$$.dirty & /*lang, title*/
369
383
  6144 && g && c && X(), s.$$.dirty & /*clientstyling, customStylingContainer*/
370
- 129 && h && l && wt(l, h), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
371
- 257 && r && l && _t(l, r), s.$$.dirty & /*mbsource, customStylingContainer*/
372
- 16385 && u && l && bt(l, `${u}.Style`, f), s.$$.dirty & /*lang, translationurl*/
384
+ 129 && h && l && we(l, h), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
385
+ 257 && r && l && _e(l, r), s.$$.dirty & /*mbsource, customStylingContainer*/
386
+ 16385 && u && l && be(l, `${u}.Style`, f), s.$$.dirty & /*lang, translationurl*/
373
387
  4608 && g && _ && W(), s.$$.dirty & /*showbackbutton*/
374
388
  1024 && d && Q(), s.$$.dirty & /*showclosebutton*/
375
389
  8192 && w && V();
376
390
  }, [
377
391
  l,
378
392
  A,
393
+ z,
379
394
  j,
380
- E,
381
395
  i,
382
396
  Z,
383
397
  J,
@@ -394,14 +408,14 @@ function Tt(s, t, e) {
394
408
  $
395
409
  ];
396
410
  }
397
- class P extends nt {
398
- constructor(t) {
399
- super(), it(
411
+ class P extends ne {
412
+ constructor(e) {
413
+ super(), ie(
400
414
  this,
401
- t,
402
- Tt,
403
- Ht,
404
- lt,
415
+ e,
416
+ Te,
417
+ He,
418
+ le,
405
419
  {
406
420
  clientstyling: 7,
407
421
  clientstylingurl: 8,
@@ -412,66 +426,66 @@ class P extends nt {
412
426
  showclosebutton: 13,
413
427
  mbsource: 14
414
428
  },
415
- Ct
429
+ Ce
416
430
  );
417
431
  }
418
432
  get clientstyling() {
419
433
  return this.$$.ctx[7];
420
434
  }
421
- set clientstyling(t) {
422
- this.$$set({ clientstyling: t }), b();
435
+ set clientstyling(e) {
436
+ this.$$set({ clientstyling: e }), b();
423
437
  }
424
438
  get clientstylingurl() {
425
439
  return this.$$.ctx[8];
426
440
  }
427
- set clientstylingurl(t) {
428
- this.$$set({ clientstylingurl: t }), b();
441
+ set clientstylingurl(e) {
442
+ this.$$set({ clientstylingurl: e }), b();
429
443
  }
430
444
  get translationurl() {
431
445
  return this.$$.ctx[9];
432
446
  }
433
- set translationurl(t) {
434
- this.$$set({ translationurl: t }), b();
447
+ set translationurl(e) {
448
+ this.$$set({ translationurl: e }), b();
435
449
  }
436
450
  get showbackbutton() {
437
451
  return this.$$.ctx[10];
438
452
  }
439
- set showbackbutton(t) {
440
- this.$$set({ showbackbutton: t }), b();
453
+ set showbackbutton(e) {
454
+ this.$$set({ showbackbutton: e }), b();
441
455
  }
442
456
  get title() {
443
457
  return this.$$.ctx[11];
444
458
  }
445
- set title(t) {
446
- this.$$set({ title: t }), b();
459
+ set title(e) {
460
+ this.$$set({ title: e }), b();
447
461
  }
448
462
  get lang() {
449
463
  return this.$$.ctx[12];
450
464
  }
451
- set lang(t) {
452
- this.$$set({ lang: t }), b();
465
+ set lang(e) {
466
+ this.$$set({ lang: e }), b();
453
467
  }
454
468
  get showclosebutton() {
455
469
  return this.$$.ctx[13];
456
470
  }
457
- set showclosebutton(t) {
458
- this.$$set({ showclosebutton: t }), b();
471
+ set showclosebutton(e) {
472
+ this.$$set({ showclosebutton: e }), b();
459
473
  }
460
474
  get mbsource() {
461
475
  return this.$$.ctx[14];
462
476
  }
463
- set mbsource(t) {
464
- this.$$set({ mbsource: t }), b();
477
+ set mbsource(e) {
478
+ this.$$set({ mbsource: e }), b();
465
479
  }
466
480
  }
467
- ot(P, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
468
- const At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
481
+ oe(P, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
482
+ const Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
469
483
  __proto__: null,
470
484
  default: P
471
485
  }, Symbol.toStringTag, { value: "Module" }));
472
486
  export {
473
- At as C,
474
- _t as a,
475
- bt as b,
476
- wt as s
487
+ Ae as C,
488
+ _e as a,
489
+ be as b,
490
+ we as s
477
491
  };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./CashierPage-Datx6Ztd.cjs");function k(s,e){n.addMessages(s,e)}function I(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"}},da:{header:{general:"Kasse",deposit:"Indbetaling",withdraw:"Udbetaling"}},de:{header:{general:"Kasse",deposit:"Einzahlung",withdraw:"Auszahlung"}},nl:{header:{general:"Kassa",deposit:"Storting",withdraw:"Opname"}},ru:{header:{general:"Касса",deposit:"Депозит",withdraw:"Вывод"}},az:{header:{general:"Kassa",deposit:"Depozit",withdraw:"Çıxarış"}}},b="__WIDGET_GLOBAL_STYLE_CACHE__";function A(s,e){if(s){const t=document.createElement("style");t.innerHTML=e,s.appendChild(t)}}function R(s,e){if(!s||!e)return;const t=new URL(e);fetch(t.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 z(s,e,t,l=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!l)return t=P(s,e),t;window[b]||(window[b]={}),t=q(s,e);const a=t.unsubscribe.bind(t),d=()=>{if(window[b][e]){const c=window[b][e];c.refCount>1?c.refCount=c.refCount-1:delete window[b][e]}a()};return t.unsubscribe=d,t}function P(s,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,l=>{s&&(t.innerHTML=l,s.appendChild(t))})}function q(s,e){return window.emMessageBus.subscribe(e,t=>{if(!s)return;const l=s.getRootNode(),i=window[b];let a=i[e]&&i[e].sheet;a?i[e].refCount=i[e].refCount+1:(a=new CSSStyleSheet,a.replaceSync(t),i[e]={sheet:a,refCount:1});const d=l.adoptedStyleSheets||[];d.includes(a)||(l.adoptedStyleSheets=[...d,a])})}function G(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 W=s=>({}),B=s=>({}),Y=s=>({}),v=s=>({}),Z=s=>({}),H=s=>({});function T(s){let e,t,l;return{c(){e=n.element("div"),e.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(e,"class","CashierHeaderLeftButton")},m(i,a){n.insert(i,e,a),t||(l=n.listen(e,"click",s[6]),t=!0)},p:n.noop,d(i){i&&n.detach(e),t=!1,l()}}}function J(s){let e,t=s[1]&&T(s);return{c(){t&&t.c(),e=n.empty()},m(l,i){t&&t.m(l,i),n.insert(l,e,i)},p(l,i){l[1]?t?t.p(l,i):(t=T(l),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(l){l&&n.detach(e),t&&t.d(l)}}}function Q(s){let e,t=s[4](s[2])+"",l;return{c(){e=n.element("span"),l=n.text(t),n.attr(e,"class","CashierHeaderTitle")},m(i,a){n.insert(i,e,a),n.append(e,l)},p(i,a){a&20&&t!==(t=i[4](i[2])+"")&&n.set_data(l,t)},d(i){i&&n.detach(e)}}}function M(s){let e,t,l;return{c(){e=n.element("span"),e.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(e,"class","CashierHeaderRightButton")},m(i,a){n.insert(i,e,a),t||(l=n.listen(e,"click",s[5]),t=!0)},p:n.noop,d(i){i&&n.detach(e),t=!1,l()}}}function V(s){let e,t=s[3]&&M(s);return{c(){t&&t.c(),e=n.empty()},m(l,i){t&&t.m(l,i),n.insert(l,e,i)},p(l,i){l[3]?t?t.p(l,i):(t=M(l),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(l){l&&n.detach(e),t&&t.d(l)}}}function X(s){let e,t,l,i;const a=s[16].leftButton,d=n.create_slot(a,s,s[15],H),c=d||J(s),p=s[16].title,g=n.create_slot(p,s,s[15],v),u=g||Q(s),_=s[16].rightButton,w=n.create_slot(_,s,s[15],B),h=w||V(s);return{c(){e=n.element("div"),c&&c.c(),t=n.space(),u&&u.c(),l=n.space(),h&&h.c(),n.attr(e,"class","CashierHeader")},m(o,f){n.insert(o,e,f),c&&c.m(e,null),n.append(e,t),u&&u.m(e,null),n.append(e,l),h&&h.m(e,null),s[17](e),i=!0},p(o,[f]){d?d.p&&(!i||f&32768)&&n.update_slot_base(d,a,o,o[15],i?n.get_slot_changes(a,o[15],f,Z):n.get_all_dirty_from_scope(o[15]),H):c&&c.p&&(!i||f&2)&&c.p(o,i?f:-1),g?g.p&&(!i||f&32768)&&n.update_slot_base(g,p,o,o[15],i?n.get_slot_changes(p,o[15],f,Y):n.get_all_dirty_from_scope(o[15]),v):u&&u.p&&(!i||f&20)&&u.p(o,i?f:-1),w?w.p&&(!i||f&32768)&&n.update_slot_base(w,_,o,o[15],i?n.get_slot_changes(_,o[15],f,W):n.get_all_dirty_from_scope(o[15]),B):h&&h.p&&(!i||f&8)&&h.p(o,i?f:-1)},i(o){i||(n.transition_in(c,o),n.transition_in(u,o),n.transition_in(h,o),i=!0)},o(o){n.transition_out(c,o),n.transition_out(u,o),n.transition_out(h,o),i=!1},d(o){o&&n.detach(e),c&&c.d(o),u&&u.d(o),h&&h.d(o),s[17](null)}}}function $(s,e,t){let l;n.component_subscribe(s,n.$format,r=>t(4,l=r));let{$$slots:i={},$$scope:a}=e,{clientstyling:d=""}=e,{clientstylingurl:c=""}=e,{translationurl:p=""}=e,{showbackbutton:g=""}=e,{title:u="header.general"}=e,{lang:_="en"}=e,{showclosebutton:w=""}=e,{mbsource:h=""}=e,o,f,m=!1,C,y=!1;const F=()=>{fetch(p).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=()=>{I(_)},j=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},U=()=>{window.postMessage({type:"BackCashier"},window.location.href)},N=()=>{t(1,m=!!g&&g!=="false")},D=()=>{t(3,y=!!w&&w!=="false")},K=()=>{t(2,C=u||"header.general")};n.onMount(()=>()=>{});function x(r){n.binding_callbacks[r?"unshift":"push"](()=>{o=r,t(0,o)})}return s.$$set=r=>{"clientstyling"in r&&t(7,d=r.clientstyling),"clientstylingurl"in r&&t(8,c=r.clientstylingurl),"translationurl"in r&&t(9,p=r.translationurl),"showbackbutton"in r&&t(10,g=r.showbackbutton),"title"in r&&t(11,u=r.title),"lang"in r&&t(12,_=r.lang),"showclosebutton"in r&&t(13,w=r.showclosebutton),"mbsource"in r&&t(14,h=r.mbsource),"$$scope"in r&&t(15,a=r.$$scope)},s.$$.update=()=>{s.$$.dirty&4096&&_&&O(),s.$$.dirty&6144&&_&&u&&K(),s.$$.dirty&129&&d&&o&&A(o,d),s.$$.dirty&257&&c&&o&&R(o,c),s.$$.dirty&16385&&h&&o&&z(o,`${h}.Style`,f),s.$$.dirty&4608&&_&&p&&F(),s.$$.dirty&1024&&g&&N(),s.$$.dirty&8192&&w&&D()},[o,m,C,y,l,j,U,d,c,p,g,u,_,w,h,a,i,x]}class E extends n.SvelteComponent{constructor(e){super(),n.init$1(this,e,$,X,n.safe_not_equal,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},G)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),n.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),n.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),n.flush()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(e){this.$$set({showbackbutton:e}),n.flush()}get title(){return this.$$.ctx[11]}set title(e){this.$$set({title:e}),n.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),n.flush()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(e){this.$$set({showclosebutton:e}),n.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(e){this.$$set({mbsource:e}),n.flush()}}n.create_custom_element(E,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);const ee=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"}));exports.CashierHeader_ce=ee;exports.setClientStyling=A;exports.setClientStylingURL=R;exports.setStreamStyling=z;