@everymatrix/cashier-method-details 1.74.8 → 1.74.10

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 (36) hide show
  1. package/components/{CashierConfirmModal-mBbcNR6k.js → CashierConfirmModal-BWIW81mB.js} +91 -91
  2. package/components/{CashierConfirmModal-CptRwG7E.cjs → CashierConfirmModal-BpvE1Wx6.cjs} +1 -1
  3. package/components/{CashierConfirmModal-DHQhXBLq.js → CashierConfirmModal-DMfIxlzo.js} +52 -52
  4. package/components/{CashierError-F-JdF-yR.js → CashierError-B0qGY6Wi.js} +845 -843
  5. package/components/CashierError-CUhtZvcE.cjs +18 -0
  6. package/components/{CashierError-CxC9JUxE.js → CashierError-DoZe5cfh.js} +844 -842
  7. package/components/{CashierMethodDetails-BYUtOrl-.cjs → CashierMethodDetails-BfH-RbrN.cjs} +5 -5
  8. package/components/{CashierMethodDetails-CFo6ZuQl.js → CashierMethodDetails-CjC76kcH.js} +498 -514
  9. package/components/{CashierMethodDetails-DLTg6RpP.js → CashierMethodDetails-dvMrG2uJ.js} +507 -523
  10. package/components/{CashierNotifications-BdfHI3lV.js → CashierNotifications-BcL2GzJF.js} +7 -7
  11. package/components/{CashierNotifications-Dt9Itbd7.cjs → CashierNotifications-CXmrjPcN.cjs} +1 -1
  12. package/components/{CashierNotifications-mhxDKO1J.js → CashierNotifications-DFrPFNQu.js} +7 -7
  13. package/components/{CashierReceiptPage-L8-ZgSVM.cjs → CashierReceiptPage-Bwu64AsC.cjs} +1 -1
  14. package/components/{CashierReceiptPage-CrP-r8ja.js → CashierReceiptPage-D2PHvmZG.js} +7 -7
  15. package/components/{CashierReceiptPage-CfgCGXm-.js → CashierReceiptPage-ccQMDo3k.js} +7 -7
  16. package/components/{CashierSpinner-DBOsp-ou.cjs → CashierSpinner-C74evWKy.cjs} +1 -1
  17. package/components/{CashierSpinner-BjBxLMiY.js → CashierSpinner-CfotkcDR.js} +8 -8
  18. package/components/{CashierSpinner-Rar1657O.js → CashierSpinner-tQuxlMdI.js} +8 -8
  19. package/es2015/cashier-method-details.cjs +1 -1
  20. package/es2015/cashier-method-details.js +1 -1
  21. package/esnext/cashier-method-details.js +1 -1
  22. package/package.json +1 -1
  23. package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
  24. package/stencil/{index-97d17652-DJqGt8q2.js → index-97d17652-C7V2DWFg.js} +147 -147
  25. package/stencil/{index-97d17652-BD-QREJe.js → index-97d17652-DIpvPU9H.js} +151 -151
  26. package/stencil/{ui-image-BW8AeEVd.js → ui-image-CYuYAlOX.js} +1 -1
  27. package/stencil/{ui-image-CX3MBBZL.js → ui-image-D3_FGUyo.js} +1 -1
  28. package/stencil/{ui-image-BMiZteNE.cjs → ui-image-DJWD4G-S.cjs} +1 -1
  29. package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
  30. package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
  31. package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
  32. package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-CzFe50WB.js} +2 -2
  33. package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
  34. package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-z5LhXZY2.js} +2 -2
  35. package/components/CashierError-DnIbQhz-.cjs +0 -18
  36. package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
@@ -37,14 +37,14 @@ function xt(t, e) {
37
37
  t
38
38
  );
39
39
  }
40
- function at(t) {
40
+ function ft(t) {
41
41
  return t();
42
42
  }
43
43
  function st() {
44
44
  return /* @__PURE__ */ Object.create(null);
45
45
  }
46
- function j(t) {
47
- t.forEach(at);
46
+ function v(t) {
47
+ t.forEach(ft);
48
48
  }
49
49
  function dt(t) {
50
50
  return typeof t == "function";
@@ -120,7 +120,7 @@ function y(t, e) {
120
120
  function Et(t, e, n) {
121
121
  const s = vt(t);
122
122
  if (!s.getElementById(e)) {
123
- const i = x("style");
123
+ const i = w("style");
124
124
  i.id = e, i.textContent = n, jt(s, i);
125
125
  }
126
126
  }
@@ -151,7 +151,7 @@ function oe(t, e) {
151
151
  for (let n = 0; n < t.length; n += 1)
152
152
  t[n] && t[n].d(e);
153
153
  }
154
- function x(t) {
154
+ function w(t) {
155
155
  return document.createElement(t);
156
156
  }
157
157
  function it(t) {
@@ -187,11 +187,11 @@ function ue(t) {
187
187
  function kt(t) {
188
188
  return Array.from(t.childNodes);
189
189
  }
190
- function fe(t, e) {
190
+ function ae(t, e) {
191
191
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
192
192
  e);
193
193
  }
194
- function ae(t, e) {
194
+ function fe(t, e) {
195
195
  t.value = e == null ? "" : e;
196
196
  }
197
197
  function de(t, e, n, s) {
@@ -221,66 +221,66 @@ function St() {
221
221
  function Bt(t) {
222
222
  St().$$.on_mount.push(t);
223
223
  }
224
- const E = [], K = [];
225
- let v = [];
224
+ const M = [], K = [];
225
+ let E = [];
226
226
  const rt = [], Nt = /* @__PURE__ */ Promise.resolve();
227
227
  let Q = !1;
228
228
  function At() {
229
229
  Q || (Q = !0, Nt.then(S));
230
230
  }
231
231
  function Z(t) {
232
- v.push(t);
232
+ E.push(t);
233
233
  }
234
234
  const G = /* @__PURE__ */ new Set();
235
- let M = 0;
235
+ let L = 0;
236
236
  function S() {
237
- if (M !== 0)
237
+ if (L !== 0)
238
238
  return;
239
239
  const t = N;
240
240
  do {
241
241
  try {
242
- for (; M < E.length; ) {
243
- const e = E[M];
244
- M++, O(e), Tt(e.$$);
242
+ for (; L < M.length; ) {
243
+ const e = M[L];
244
+ L++, O(e), Tt(e.$$);
245
245
  }
246
246
  } catch (e) {
247
- throw E.length = 0, M = 0, e;
247
+ throw M.length = 0, L = 0, e;
248
248
  }
249
- for (O(null), E.length = 0, M = 0; K.length; )
249
+ for (O(null), M.length = 0, L = 0; K.length; )
250
250
  K.pop()();
251
- for (let e = 0; e < v.length; e += 1) {
252
- const n = v[e];
251
+ for (let e = 0; e < E.length; e += 1) {
252
+ const n = E[e];
253
253
  G.has(n) || (G.add(n), n());
254
254
  }
255
- v.length = 0;
256
- } while (E.length);
255
+ E.length = 0;
256
+ } while (M.length);
257
257
  for (; rt.length; )
258
258
  rt.pop()();
259
259
  Q = !1, G.clear(), O(t);
260
260
  }
261
261
  function Tt(t) {
262
262
  if (t.fragment !== null) {
263
- t.update(), j(t.before_update);
263
+ t.update(), v(t.before_update);
264
264
  const e = t.dirty;
265
265
  t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Z);
266
266
  }
267
267
  }
268
268
  function Pt(t) {
269
269
  const e = [], n = [];
270
- v.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), v = e;
270
+ E.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), E = e;
271
271
  }
272
272
  const D = /* @__PURE__ */ new Set();
273
- let C;
273
+ let x;
274
274
  function $e() {
275
- C = {
275
+ x = {
276
276
  r: 0,
277
277
  c: [],
278
- p: C
278
+ p: x
279
279
  // parent group
280
280
  };
281
281
  }
282
282
  function me() {
283
- C.r || j(C.c), C = C.p;
283
+ x.r || v(x.c), x = x.p;
284
284
  }
285
285
  function k(t, e) {
286
286
  t && t.i && (D.delete(t), t.i(e));
@@ -289,7 +289,7 @@ function U(t, e, n, s) {
289
289
  if (t && t.o) {
290
290
  if (D.has(t))
291
291
  return;
292
- D.add(t), C.c.push(() => {
292
+ D.add(t), x.c.push(() => {
293
293
  D.delete(t), s && (n && t.d(1), s());
294
294
  }), t.o(e);
295
295
  } else
@@ -301,16 +301,16 @@ function ge(t) {
301
301
  function zt(t, e, n) {
302
302
  const { fragment: s, after_update: i } = t.$$;
303
303
  s && s.m(e, n), Z(() => {
304
- const o = t.$$.on_mount.map(at).filter(dt);
305
- t.$$.on_destroy ? t.$$.on_destroy.push(...o) : j(o), t.$$.on_mount = [];
304
+ const o = t.$$.on_mount.map(ft).filter(dt);
305
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : v(o), t.$$.on_mount = [];
306
306
  }), i.forEach(Z);
307
307
  }
308
308
  function Rt(t, e) {
309
309
  const n = t.$$;
310
- n.fragment !== null && (Pt(n.after_update), j(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
310
+ n.fragment !== null && (Pt(n.after_update), v(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
311
311
  }
312
312
  function Ht(t, e) {
313
- t.$$.dirty[0] === -1 && (E.push(t), At(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
313
+ t.$$.dirty[0] === -1 && (M.push(t), At(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
314
314
  }
315
315
  function Ut(t, e, n, s, i, o, c = null, u = [-1]) {
316
316
  const l = N;
@@ -338,10 +338,10 @@ function Ut(t, e, n, s, i, o, c = null, u = [-1]) {
338
338
  };
339
339
  c && c(r.root);
340
340
  let p = !1;
341
- if (r.ctx = n ? n(t, e.props || {}, ($, a, ...h) => {
342
- const L = h.length ? h[0] : a;
343
- return r.ctx && i(r.ctx[$], r.ctx[$] = L) && (!r.skip_bound && r.bound[$] && r.bound[$](L), p && Ht(t, $)), a;
344
- }) : [], r.update(), p = !0, j(r.before_update), r.fragment = s ? s(r.ctx) : !1, e.target) {
341
+ if (r.ctx = n ? n(t, e.props || {}, ($, f, ...h) => {
342
+ const C = h.length ? h[0] : f;
343
+ return r.ctx && i(r.ctx[$], r.ctx[$] = C) && (!r.skip_bound && r.bound[$] && r.bound[$](C), p && Ht(t, $)), f;
344
+ }) : [], r.update(), p = !0, v(r.before_update), r.fragment = s ? s(r.ctx) : !1, e.target) {
345
345
  if (e.hydrate) {
346
346
  const $ = kt(e.target);
347
347
  r.fragment && r.fragment.l($), $.forEach(q);
@@ -396,7 +396,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
396
396
  let c;
397
397
  return {
398
398
  c: function() {
399
- c = x("slot"), o !== "default" && d(c, "name", o);
399
+ c = w("slot"), o !== "default" && d(c, "name", o);
400
400
  },
401
401
  /**
402
402
  * @param {HTMLElement} target
@@ -607,7 +607,7 @@ function Vt(t, e, n) {
607
607
  function Wt(t) {
608
608
  Et(t, "svelte-kug7b4", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.1))}.CashierModalContainer{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;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn{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{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}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}");
609
609
  }
610
- const Gt = (t) => ({}), ct = (t) => ({}), Kt = (t) => ({}), lt = (t) => ({}), Qt = (t) => ({}), ut = (t) => ({ class: "CashierModalText" }), Zt = (t) => ({}), ft = (t) => ({ class: "CashierModalTitle" });
610
+ const Gt = (t) => ({}), ct = (t) => ({}), Kt = (t) => ({}), lt = (t) => ({}), Qt = (t) => ({}), ut = (t) => ({ class: "CashierModalText" }), Zt = (t) => ({}), at = (t) => ({ class: "CashierModalTitle" });
611
611
  function Xt(t) {
612
612
  let e, n;
613
613
  return {
@@ -625,20 +625,20 @@ function Xt(t) {
625
625
  }
626
626
  function Yt(t) {
627
627
  let e, n, s, i, o, c, u, l, r, p, $;
628
- const a = (
628
+ const f = (
629
629
  /*#slots*/
630
630
  t[7].title
631
631
  ), h = P(
632
- a,
632
+ f,
633
633
  t,
634
634
  /*$$scope*/
635
635
  t[6],
636
- ft
637
- ), L = (
636
+ at
637
+ ), C = (
638
638
  /*#slots*/
639
639
  t[7].text
640
640
  ), g = P(
641
- L,
641
+ C,
642
642
  t,
643
643
  /*$$scope*/
644
644
  t[6],
@@ -661,13 +661,13 @@ function Yt(t) {
661
661
  /*$$scope*/
662
662
  t[6],
663
663
  ct
664
- ), w = A || Xt();
664
+ ), j = A || Xt();
665
665
  return {
666
666
  c() {
667
- e = x("div"), n = x("div"), s = x("div"), h && h.c(), i = W(), g && g.c(), o = W(), c = x("span"), _ && _.c(), u = W(), l = x("span"), w && w.c(), d(c, "class", "ModalOkBtn"), d(c, "role", "button"), d(l, "class", "ModalCloseBtn"), d(l, "role", "button"), d(s, "class", "CashierModalContainer"), d(n, "class", "CashierModalWindow"), d(n, "id", "Modal");
667
+ e = w("div"), n = w("div"), s = w("div"), h && h.c(), i = W(), g && g.c(), o = W(), c = w("span"), _ && _.c(), u = W(), l = w("span"), j.c(), d(c, "class", "ModalOkBtn"), d(c, "role", "button"), d(l, "class", "ModalCloseBtn"), d(l, "role", "button"), d(s, "class", "CashierModalContainer"), d(n, "class", "CashierModalWindow"), d(n, "id", "Modal");
668
668
  },
669
- m(f, b) {
670
- X(f, e, b), y(e, n), y(n, s), h && h.m(s, null), y(s, i), g && g.m(s, null), y(s, o), y(s, c), _ && _.m(c, null), y(s, u), y(s, l), w && w.m(l, null), t[8](e), r = !0, p || ($ = [
669
+ m(a, b) {
670
+ X(a, e, b), y(e, n), y(n, s), h && h.m(s, null), y(s, i), g && g.m(s, null), y(s, o), y(s, c), _ && _.m(c, null), y(s, u), y(s, l), j.m(l, null), t[8](e), r = !0, p || ($ = [
671
671
  ot(
672
672
  c,
673
673
  "click",
@@ -682,89 +682,89 @@ function Yt(t) {
682
682
  )
683
683
  ], p = !0);
684
684
  },
685
- p(f, [b]) {
685
+ p(a, [b]) {
686
686
  h && h.p && (!r || b & /*$$scope*/
687
687
  64) && R(
688
688
  h,
689
- a,
690
689
  f,
690
+ a,
691
691
  /*$$scope*/
692
- f[6],
692
+ a[6],
693
693
  r ? z(
694
- a,
694
+ f,
695
695
  /*$$scope*/
696
- f[6],
696
+ a[6],
697
697
  b,
698
698
  Zt
699
699
  ) : H(
700
700
  /*$$scope*/
701
- f[6]
701
+ a[6]
702
702
  ),
703
- ft
703
+ at
704
704
  ), g && g.p && (!r || b & /*$$scope*/
705
705
  64) && R(
706
706
  g,
707
- L,
708
- f,
707
+ C,
708
+ a,
709
709
  /*$$scope*/
710
- f[6],
710
+ a[6],
711
711
  r ? z(
712
- L,
712
+ C,
713
713
  /*$$scope*/
714
- f[6],
714
+ a[6],
715
715
  b,
716
716
  Qt
717
717
  ) : H(
718
718
  /*$$scope*/
719
- f[6]
719
+ a[6]
720
720
  ),
721
721
  ut
722
722
  ), _ && _.p && (!r || b & /*$$scope*/
723
723
  64) && R(
724
724
  _,
725
725
  F,
726
- f,
726
+ a,
727
727
  /*$$scope*/
728
- f[6],
728
+ a[6],
729
729
  r ? z(
730
730
  F,
731
731
  /*$$scope*/
732
- f[6],
732
+ a[6],
733
733
  b,
734
734
  Kt
735
735
  ) : H(
736
736
  /*$$scope*/
737
- f[6]
737
+ a[6]
738
738
  ),
739
739
  lt
740
740
  ), A && A.p && (!r || b & /*$$scope*/
741
741
  64) && R(
742
742
  A,
743
743
  J,
744
- f,
744
+ a,
745
745
  /*$$scope*/
746
- f[6],
746
+ a[6],
747
747
  r ? z(
748
748
  J,
749
749
  /*$$scope*/
750
- f[6],
750
+ a[6],
751
751
  b,
752
752
  Gt
753
753
  ) : H(
754
754
  /*$$scope*/
755
- f[6]
755
+ a[6]
756
756
  ),
757
757
  ct
758
758
  );
759
759
  },
760
- i(f) {
761
- r || (k(h, f), k(g, f), k(_, f), k(w, f), r = !0);
760
+ i(a) {
761
+ r || (k(h, a), k(g, a), k(_, a), k(j, a), r = !0);
762
762
  },
763
- o(f) {
764
- U(h, f), U(g, f), U(_, f), U(w, f), r = !1;
763
+ o(a) {
764
+ U(h, a), U(g, a), U(_, a), U(j, a), r = !1;
765
765
  },
766
- d(f) {
767
- f && q(e), h && h.d(f), g && g.d(f), _ && _.d(f), w && w.d(f), t[8](null), p = !1, j($);
766
+ d(a) {
767
+ a && q(e), h && h.d(a), g && g.d(a), _ && _.d(a), j.d(a), t[8](null), p = !1, v($);
768
768
  }
769
769
  };
770
770
  }
@@ -777,13 +777,13 @@ function te(t, e, n) {
777
777
  };
778
778
  Bt(() => () => {
779
779
  });
780
- function $(a) {
781
- K[a ? "unshift" : "push"](() => {
782
- l = a, n(0, l);
780
+ function $(f) {
781
+ K[f ? "unshift" : "push"](() => {
782
+ l = f, n(0, l);
783
783
  });
784
784
  }
785
- return t.$$set = (a) => {
786
- "clientstyling" in a && n(3, o = a.clientstyling), "clientstylingurl" in a && n(4, c = a.clientstylingurl), "mbsource" in a && n(5, u = a.mbsource), "$$scope" in a && n(6, i = a.$$scope);
785
+ return t.$$set = (f) => {
786
+ "clientstyling" in f && n(3, o = f.clientstyling), "clientstylingurl" in f && n(4, c = f.clientstylingurl), "mbsource" in f && n(5, u = f.mbsource), "$$scope" in f && n(6, i = f.$$scope);
787
787
  }, t.$$.update = () => {
788
788
  t.$$.dirty & /*clientstyling, customStylingContainer*/
789
789
  9 && o && l && Ft(l, o), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
@@ -842,13 +842,13 @@ const _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
842
842
  default: gt
843
843
  }, Symbol.toStringTag, { value: "Module" }));
844
844
  export {
845
- re as A,
846
- $t as B,
847
- fe as C,
848
- ot as D,
849
- $e as E,
850
- K as F,
851
- Ft as G,
845
+ ae as A,
846
+ ot as B,
847
+ $e as C,
848
+ K as D,
849
+ Ft as E,
850
+ Jt as F,
851
+ Vt as G,
852
852
  ne as H,
853
853
  le as I,
854
854
  Z as J,
@@ -858,7 +858,7 @@ export {
858
858
  ge as N,
859
859
  ce as O,
860
860
  oe as P,
861
- ae as Q,
861
+ fe as Q,
862
862
  it as R,
863
863
  It as S,
864
864
  de as T,
@@ -869,7 +869,7 @@ export {
869
869
  Et as d,
870
870
  P as e,
871
871
  S as f,
872
- x as g,
872
+ w as g,
873
873
  W as h,
874
874
  dt as i,
875
875
  d as j,
@@ -880,13 +880,13 @@ export {
880
880
  z as o,
881
881
  U as p,
882
882
  me as q,
883
- j as r,
883
+ v as r,
884
884
  Mt as s,
885
885
  k as t,
886
886
  R as u,
887
887
  q as v,
888
888
  se as w,
889
889
  Bt as x,
890
- Jt as y,
891
- Vt as z
890
+ re as y,
891
+ $t as z
892
892
  };
@@ -1 +1 @@
1
- "use strict";var Et=Object.defineProperty,St=Object.defineProperties;var kt=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable;var K=(t,e,n)=>e in t?Et(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,it=(t,e)=>{for(var n in e||(e={}))jt.call(e,n)&&K(t,n,e[n]);if(st)for(var n of st(e))Ot.call(e,n)&&K(t,n,e[n]);return t},ot=(t,e)=>St(t,kt(e));var $=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n);var rt=(t,e,n)=>new Promise((s,i)=>{var o=c=>{try{u(n.next(c))}catch(r){i(r)}},l=c=>{try{u(n.throw(c))}catch(r){i(r)}},u=c=>c.done?s(c.value):Promise.resolve(c.value).then(o,l);u((n=n.apply(t,e)).next())});function O(){}function Bt(t,e){for(const n in e)t[n]=e[n];return t}function ht(t){return t()}function lt(){return Object.create(null)}function M(t){t.forEach(ht)}function et(t){return typeof t=="function"}function _t(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let q;function Nt(t,e){return t===e?!0:(q||(q=document.createElement("a")),q.href=e,t===q.href)}function At(t){return Object.keys(t).length===0}function $t(t,...e){if(t==null){for(const s of e)s(void 0);return O}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Tt(t,e,n){t.$$.on_destroy.push($t(e,n))}function B(t,e,n,s){if(t){const i=mt(t,e,n,s);return t[0](i)}}function mt(t,e,n,s){return t[1]&&s?Bt(n.ctx.slice(),t[1](s(e))):n.ctx}function N(t,e,n,s){if(t[2]&&s){const i=t[2](s(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],l=Math.max(e.dirty.length,i.length);for(let u=0;u<l;u+=1)o[u]=e.dirty[u]|i[u];return o}return e.dirty|i}return e.dirty}function A(t,e,n,s,i,o){if(i){const l=mt(e,n,s,o);t.p(l,i)}}function T(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let s=0;s<n;s++)e[s]=-1;return e}return-1}const Pt=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function y(t,e){t.appendChild(e)}function gt(t,e,n){const s=Rt(t);if(!s.getElementById(e)){const i=C("style");i.id=e,i.textContent=n,zt(s,i)}}function Rt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function zt(t,e){return y(t.head||t,e),e.sheet}function W(t,e,n){t.insertBefore(e,n||null)}function H(t){t.parentNode&&t.parentNode.removeChild(t)}function Ht(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function C(t){return document.createElement(t)}function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function nt(t){return document.createTextNode(t)}function D(){return nt(" ")}function Ut(){return nt("")}function Y(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function qt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function d(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Dt(t,e,n){const s=e.toLowerCase();s in t?t[s]=typeof t[s]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:d(t,e,n)}function It(t){return t===""?null:+t}function Ft(t){return Array.from(t.childNodes)}function Jt(t,e){e=""+e,t.data!==e&&(t.data=e)}function Vt(t,e){t.value=e==null?"":e}function Wt(t,e,n,s){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function Zt(t,e,n){t.classList.toggle(e,!!n)}function Gt(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let z;function R(t){z=t}function Kt(){if(!z)throw new Error("Function called outside component initialization");return z}function pt(t){Kt().$$.on_mount.push(t)}const E=[],J=[];let k=[];const ct=[],Qt=Promise.resolve();let tt=!1;function Xt(){tt||(tt=!0,Qt.then(j))}function V(t){k.push(t)}const Q=new Set;let L=0;function j(){if(L!==0)return;const t=z;do{try{for(;L<E.length;){const e=E[L];L++,R(e),Yt(e.$$)}}catch(e){throw E.length=0,L=0,e}for(R(null),E.length=0,L=0;J.length;)J.pop()();for(let e=0;e<k.length;e+=1){const n=k[e];Q.has(n)||(Q.add(n),n())}k.length=0}while(E.length);for(;ct.length;)ct.pop()();tt=!1,Q.clear(),R(t)}function Yt(t){if(t.fragment!==null){t.update(),M(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(V)}}function te(t){const e=[],n=[];k.forEach(s=>t.indexOf(s)===-1?e.push(s):n.push(s)),n.forEach(s=>s()),k=e}const I=new Set;let x;function ee(){x={r:0,c:[],p:x}}function ne(){x.r||M(x.c),x=x.p}function S(t,e){t&&t.i&&(I.delete(t),t.i(e))}function P(t,e,n,s){if(t&&t.o){if(I.has(t))return;I.add(t),x.c.push(()=>{I.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}function se(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function ie(t,e,n){const{fragment:s,after_update:i}=t.$$;s&&s.m(e,n),V(()=>{const o=t.$$.on_mount.map(ht).filter(et);t.$$.on_destroy?t.$$.on_destroy.push(...o):M(o),t.$$.on_mount=[]}),i.forEach(V)}function oe(t,e){const n=t.$$;n.fragment!==null&&(te(n.after_update),M(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function re(t,e){t.$$.dirty[0]===-1&&(E.push(t),Xt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function bt(t,e,n,s,i,o,l=null,u=[-1]){const c=z;R(t);const r=t.$$={fragment:null,ctx:[],props:o,update:O,not_equal:i,bound:lt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:lt(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};l&&l(r.root);let p=!1;if(r.ctx=n?n(t,e.props||{},(_,a,...h)=>{const v=h.length?h[0]:a;return r.ctx&&i(r.ctx[_],r.ctx[_]=v)&&(!r.skip_bound&&r.bound[_]&&r.bound[_](v),p&&re(t,_)),a}):[],r.update(),p=!0,M(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){const _=Ft(e.target);r.fragment&&r.fragment.l(_),_.forEach(H)}else r.fragment&&r.fragment.c();e.intro&&S(t.$$.fragment),ie(t,e.target,e.anchor),j()}R(c)}let yt;typeof HTMLElement=="function"&&(yt=class extends HTMLElement{constructor(e,n,s){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(e,n,s){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const i=this.$$c.$on(e,n);this.$$l_u.set(n,i)}super.addEventListener(e,n,s)}removeEventListener(e,n,s){if(super.removeEventListener(e,n,s),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return rt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let l;return{c:function(){l=C("slot"),o!=="default"&&d(l,"name",o)},m:function(r,p){W(r,l,p)},d:function(r){r&&H(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=Gt(this);for(const o of this.$$s)o in s&&(n[o]=[e(o)]);for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=F(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ot(it({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const l=F(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const l of this.$$l[o]){const u=this.$$c.$on(o,l);this.$$l_u.set(l,u)}this.$$l={}}})}attributeChangedCallback(e,n,s){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=F(e,s,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function F(t,e,n,s){var o;const i=(o=n[t])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!s||!n[t])return e;if(s==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function wt(t,e,n,s,i,o){let l=class extends yt{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(u=>(e[u].attribute||u).toLowerCase())}};return Object.keys(e).forEach(u=>{Object.defineProperty(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var r;c=F(u,c,e),this.$$d[u]=c,(r=this.$$c)==null||r.$set({[u]:c})}})}),s.forEach(u=>{Object.defineProperty(l.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),t.element=l,l}class Ct{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){oe(this,1),this.$destroy=O}$on(e,n){if(!et(n))return O;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const i=s.indexOf(n);i!==-1&&s.splice(i,1)}}$set(e){this.$$set&&!At(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const le="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(le);function xt(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function Mt(t,e){const n=new URL(e);fetch(n.href).then(s=>s.text()).then(s=>{const i=document.createElement("style");i.innerHTML=s,t&&t.appendChild(i)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function vt(t,e,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(e,i=>{s.innerHTML=i,t&&t.appendChild(s)})}}function ce(t){gt(t,"svelte-kug7b4","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.1))}.CashierModalContainer{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;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn{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{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}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}")}const ue=t=>({}),ut=t=>({}),fe=t=>({}),ft=t=>({}),ae=t=>({}),at=t=>({class:"CashierModalText"}),de=t=>({}),dt=t=>({class:"CashierModalTitle"});function he(t){let e,n;return{c(){e=X("svg"),n=X("path"),d(n,"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"),d(n,"fill","#111111"),d(e,"xmlns","http://www.w3.org/2000/svg"),d(e,"width","13"),d(e,"height","20"),d(e,"viewBox","0 0 13 13"),d(e,"fill","none")},m(s,i){W(s,e,i),y(e,n)},p:O,d(s){s&&H(e)}}}function _e(t){let e,n,s,i,o,l,u,c,r,p,_;const a=t[7].title,h=B(a,t,t[6],dt),v=t[7].text,m=B(v,t,t[6],at),Z=t[7].confirm,g=B(Z,t,t[6],ft),G=t[7].close,U=B(G,t,t[6],ut),w=U||he();return{c(){e=C("div"),n=C("div"),s=C("div"),h&&h.c(),i=D(),m&&m.c(),o=D(),l=C("span"),g&&g.c(),u=D(),c=C("span"),w&&w.c(),d(l,"class","ModalOkBtn"),d(l,"role","button"),d(c,"class","ModalCloseBtn"),d(c,"role","button"),d(s,"class","CashierModalContainer"),d(n,"class","CashierModalWindow"),d(n,"id","Modal")},m(f,b){W(f,e,b),y(e,n),y(n,s),h&&h.m(s,null),y(s,i),m&&m.m(s,null),y(s,o),y(s,l),g&&g.m(l,null),y(s,u),y(s,c),w&&w.m(c,null),t[8](e),r=!0,p||(_=[Y(l,"click",t[2]),Y(c,"click",t[1])],p=!0)},p(f,[b]){h&&h.p&&(!r||b&64)&&A(h,a,f,f[6],r?N(a,f[6],b,de):T(f[6]),dt),m&&m.p&&(!r||b&64)&&A(m,v,f,f[6],r?N(v,f[6],b,ae):T(f[6]),at),g&&g.p&&(!r||b&64)&&A(g,Z,f,f[6],r?N(Z,f[6],b,fe):T(f[6]),ft),U&&U.p&&(!r||b&64)&&A(U,G,f,f[6],r?N(G,f[6],b,ue):T(f[6]),ut)},i(f){r||(S(h,f),S(m,f),S(g,f),S(w,f),r=!0)},o(f){P(h,f),P(m,f),P(g,f),P(w,f),r=!1},d(f){f&&H(e),h&&h.d(f),m&&m.d(f),g&&g.d(f),w&&w.d(f),t[8](null),p=!1,M(_)}}}function $e(t,e,n){let{$$slots:s={},$$scope:i}=e,{clientstyling:o=""}=e,{clientstylingurl:l=""}=e,{mbsource:u=""}=e,c;const r=()=>{window.postMessage({type:"CloseModal"},window.location.href)},p=()=>{window.postMessage({type:"ConfirmModal"},window.location.href),r()};pt(()=>()=>{});function _(a){J[a?"unshift":"push"](()=>{c=a,n(0,c)})}return t.$$set=a=>{"clientstyling"in a&&n(3,o=a.clientstyling),"clientstylingurl"in a&&n(4,l=a.clientstylingurl),"mbsource"in a&&n(5,u=a.mbsource),"$$scope"in a&&n(6,i=a.$$scope)},t.$$.update=()=>{t.$$.dirty&9&&o&&c&&xt(c,o),t.$$.dirty&17&&l&&c&&Mt(c,l),t.$$.dirty&33&&u&&c&&vt(c,`${u}.Style`)},[c,r,p,o,l,u,i,s,_]}class Lt extends Ct{constructor(e){super(),bt(this,e,$e,_e,_t,{clientstyling:3,clientstylingurl:4,mbsource:5},ce)}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),j()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),j()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),j()}}wt(Lt,{clientstyling:{},clientstylingurl:{},mbsource:{}},["title","text","confirm","close"],[],!0);const me=Object.freeze(Object.defineProperty({__proto__:null,default:Lt},Symbol.toStringTag,{value:"Module"}));exports.CashierConfirmModal_ce=me;exports.SvelteComponent=Ct;exports.add_render_callback=V;exports.append=y;exports.append_styles=gt;exports.attr=d;exports.binding_callbacks=J;exports.check_outros=ne;exports.component_subscribe=Tt;exports.create_custom_element=wt;exports.create_slot=B;exports.destroy_each=Ht;exports.detach=H;exports.element=C;exports.empty=Ut;exports.ensure_array_like=se;exports.flush=j;exports.get_all_dirty_from_scope=T;exports.get_slot_changes=N;exports.globals=Pt;exports.group_outros=ee;exports.init=bt;exports.insert=W;exports.is_function=et;exports.listen=Y;exports.noop=O;exports.onMount=pt;exports.prevent_default=qt;exports.run_all=M;exports.safe_not_equal=_t;exports.setClientStyling=xt;exports.setClientStylingURL=Mt;exports.setStreamStyling=vt;exports.set_custom_element_data=Dt;exports.set_data=Jt;exports.set_input_value=Vt;exports.set_style=Wt;exports.space=D;exports.src_url_equal=Nt;exports.subscribe=$t;exports.svg_element=X;exports.text=nt;exports.to_number=It;exports.toggle_class=Zt;exports.transition_in=S;exports.transition_out=P;exports.update_slot_base=A;
1
+ "use strict";var Et=Object.defineProperty,St=Object.defineProperties;var kt=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable;var K=(t,e,n)=>e in t?Et(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,it=(t,e)=>{for(var n in e||(e={}))jt.call(e,n)&&K(t,n,e[n]);if(st)for(var n of st(e))Ot.call(e,n)&&K(t,n,e[n]);return t},ot=(t,e)=>St(t,kt(e));var $=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n);var rt=(t,e,n)=>new Promise((s,i)=>{var o=c=>{try{u(n.next(c))}catch(r){i(r)}},l=c=>{try{u(n.throw(c))}catch(r){i(r)}},u=c=>c.done?s(c.value):Promise.resolve(c.value).then(o,l);u((n=n.apply(t,e)).next())});function j(){}function Bt(t,e){for(const n in e)t[n]=e[n];return t}function ht(t){return t()}function lt(){return Object.create(null)}function x(t){t.forEach(ht)}function et(t){return typeof t=="function"}function _t(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let q;function Nt(t,e){return t===e?!0:(q||(q=document.createElement("a")),q.href=e,t===q.href)}function At(t){return Object.keys(t).length===0}function $t(t,...e){if(t==null){for(const s of e)s(void 0);return j}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Tt(t,e,n){t.$$.on_destroy.push($t(e,n))}function B(t,e,n,s){if(t){const i=mt(t,e,n,s);return t[0](i)}}function mt(t,e,n,s){return t[1]&&s?Bt(n.ctx.slice(),t[1](s(e))):n.ctx}function N(t,e,n,s){if(t[2]&&s){const i=t[2](s(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],l=Math.max(e.dirty.length,i.length);for(let u=0;u<l;u+=1)o[u]=e.dirty[u]|i[u];return o}return e.dirty|i}return e.dirty}function A(t,e,n,s,i,o){if(i){const l=mt(e,n,s,o);t.p(l,i)}}function T(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let s=0;s<n;s++)e[s]=-1;return e}return-1}const Pt=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function y(t,e){t.appendChild(e)}function gt(t,e,n){const s=Rt(t);if(!s.getElementById(e)){const i=w("style");i.id=e,i.textContent=n,zt(s,i)}}function Rt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function zt(t,e){return y(t.head||t,e),e.sheet}function W(t,e,n){t.insertBefore(e,n||null)}function H(t){t.parentNode&&t.parentNode.removeChild(t)}function Ht(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function w(t){return document.createElement(t)}function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function nt(t){return document.createTextNode(t)}function D(){return nt(" ")}function Ut(){return nt("")}function Y(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function qt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function d(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Dt(t,e,n){const s=e.toLowerCase();s in t?t[s]=typeof t[s]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:d(t,e,n)}function It(t){return t===""?null:+t}function Ft(t){return Array.from(t.childNodes)}function Jt(t,e){e=""+e,t.data!==e&&(t.data=e)}function Vt(t,e){t.value=e==null?"":e}function Wt(t,e,n,s){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function Zt(t,e,n){t.classList.toggle(e,!!n)}function Gt(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let z;function R(t){z=t}function Kt(){if(!z)throw new Error("Function called outside component initialization");return z}function pt(t){Kt().$$.on_mount.push(t)}const L=[],J=[];let S=[];const ct=[],Qt=Promise.resolve();let tt=!1;function Xt(){tt||(tt=!0,Qt.then(k))}function V(t){S.push(t)}const Q=new Set;let v=0;function k(){if(v!==0)return;const t=z;do{try{for(;v<L.length;){const e=L[v];v++,R(e),Yt(e.$$)}}catch(e){throw L.length=0,v=0,e}for(R(null),L.length=0,v=0;J.length;)J.pop()();for(let e=0;e<S.length;e+=1){const n=S[e];Q.has(n)||(Q.add(n),n())}S.length=0}while(L.length);for(;ct.length;)ct.pop()();tt=!1,Q.clear(),R(t)}function Yt(t){if(t.fragment!==null){t.update(),x(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(V)}}function te(t){const e=[],n=[];S.forEach(s=>t.indexOf(s)===-1?e.push(s):n.push(s)),n.forEach(s=>s()),S=e}const I=new Set;let C;function ee(){C={r:0,c:[],p:C}}function ne(){C.r||x(C.c),C=C.p}function E(t,e){t&&t.i&&(I.delete(t),t.i(e))}function P(t,e,n,s){if(t&&t.o){if(I.has(t))return;I.add(t),C.c.push(()=>{I.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}function se(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function ie(t,e,n){const{fragment:s,after_update:i}=t.$$;s&&s.m(e,n),V(()=>{const o=t.$$.on_mount.map(ht).filter(et);t.$$.on_destroy?t.$$.on_destroy.push(...o):x(o),t.$$.on_mount=[]}),i.forEach(V)}function oe(t,e){const n=t.$$;n.fragment!==null&&(te(n.after_update),x(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function re(t,e){t.$$.dirty[0]===-1&&(L.push(t),Xt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function bt(t,e,n,s,i,o,l=null,u=[-1]){const c=z;R(t);const r=t.$$={fragment:null,ctx:[],props:o,update:j,not_equal:i,bound:lt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:lt(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};l&&l(r.root);let p=!1;if(r.ctx=n?n(t,e.props||{},(_,a,...h)=>{const M=h.length?h[0]:a;return r.ctx&&i(r.ctx[_],r.ctx[_]=M)&&(!r.skip_bound&&r.bound[_]&&r.bound[_](M),p&&re(t,_)),a}):[],r.update(),p=!0,x(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){const _=Ft(e.target);r.fragment&&r.fragment.l(_),_.forEach(H)}else r.fragment&&r.fragment.c();e.intro&&E(t.$$.fragment),ie(t,e.target,e.anchor),k()}R(c)}let yt;typeof HTMLElement=="function"&&(yt=class extends HTMLElement{constructor(e,n,s){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(e,n,s){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const i=this.$$c.$on(e,n);this.$$l_u.set(n,i)}super.addEventListener(e,n,s)}removeEventListener(e,n,s){if(super.removeEventListener(e,n,s),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return rt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let l;return{c:function(){l=w("slot"),o!=="default"&&d(l,"name",o)},m:function(r,p){W(r,l,p)},d:function(r){r&&H(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=Gt(this);for(const o of this.$$s)o in s&&(n[o]=[e(o)]);for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=F(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ot(it({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const l=F(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const l of this.$$l[o]){const u=this.$$c.$on(o,l);this.$$l_u.set(l,u)}this.$$l={}}})}attributeChangedCallback(e,n,s){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=F(e,s,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function F(t,e,n,s){var o;const i=(o=n[t])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!s||!n[t])return e;if(s==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function wt(t,e,n,s,i,o){let l=class extends yt{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(u=>(e[u].attribute||u).toLowerCase())}};return Object.keys(e).forEach(u=>{Object.defineProperty(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var r;c=F(u,c,e),this.$$d[u]=c,(r=this.$$c)==null||r.$set({[u]:c})}})}),s.forEach(u=>{Object.defineProperty(l.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),t.element=l,l}class Ct{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){oe(this,1),this.$destroy=j}$on(e,n){if(!et(n))return j;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const i=s.indexOf(n);i!==-1&&s.splice(i,1)}}$set(e){this.$$set&&!At(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const le="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(le);function xt(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function Mt(t,e){const n=new URL(e);fetch(n.href).then(s=>s.text()).then(s=>{const i=document.createElement("style");i.innerHTML=s,t&&t.appendChild(i)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function vt(t,e,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(e,i=>{s.innerHTML=i,t&&t.appendChild(s)})}}function ce(t){gt(t,"svelte-kug7b4","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.1))}.CashierModalContainer{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;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn{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{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}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}")}const ue=t=>({}),ut=t=>({}),fe=t=>({}),ft=t=>({}),ae=t=>({}),at=t=>({class:"CashierModalText"}),de=t=>({}),dt=t=>({class:"CashierModalTitle"});function he(t){let e,n;return{c(){e=X("svg"),n=X("path"),d(n,"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"),d(n,"fill","#111111"),d(e,"xmlns","http://www.w3.org/2000/svg"),d(e,"width","13"),d(e,"height","20"),d(e,"viewBox","0 0 13 13"),d(e,"fill","none")},m(s,i){W(s,e,i),y(e,n)},p:j,d(s){s&&H(e)}}}function _e(t){let e,n,s,i,o,l,u,c,r,p,_;const a=t[7].title,h=B(a,t,t[6],dt),M=t[7].text,m=B(M,t,t[6],at),Z=t[7].confirm,g=B(Z,t,t[6],ft),G=t[7].close,U=B(G,t,t[6],ut),O=U||he();return{c(){e=w("div"),n=w("div"),s=w("div"),h&&h.c(),i=D(),m&&m.c(),o=D(),l=w("span"),g&&g.c(),u=D(),c=w("span"),O.c(),d(l,"class","ModalOkBtn"),d(l,"role","button"),d(c,"class","ModalCloseBtn"),d(c,"role","button"),d(s,"class","CashierModalContainer"),d(n,"class","CashierModalWindow"),d(n,"id","Modal")},m(f,b){W(f,e,b),y(e,n),y(n,s),h&&h.m(s,null),y(s,i),m&&m.m(s,null),y(s,o),y(s,l),g&&g.m(l,null),y(s,u),y(s,c),O.m(c,null),t[8](e),r=!0,p||(_=[Y(l,"click",t[2]),Y(c,"click",t[1])],p=!0)},p(f,[b]){h&&h.p&&(!r||b&64)&&A(h,a,f,f[6],r?N(a,f[6],b,de):T(f[6]),dt),m&&m.p&&(!r||b&64)&&A(m,M,f,f[6],r?N(M,f[6],b,ae):T(f[6]),at),g&&g.p&&(!r||b&64)&&A(g,Z,f,f[6],r?N(Z,f[6],b,fe):T(f[6]),ft),U&&U.p&&(!r||b&64)&&A(U,G,f,f[6],r?N(G,f[6],b,ue):T(f[6]),ut)},i(f){r||(E(h,f),E(m,f),E(g,f),E(O,f),r=!0)},o(f){P(h,f),P(m,f),P(g,f),P(O,f),r=!1},d(f){f&&H(e),h&&h.d(f),m&&m.d(f),g&&g.d(f),O.d(f),t[8](null),p=!1,x(_)}}}function $e(t,e,n){let{$$slots:s={},$$scope:i}=e,{clientstyling:o=""}=e,{clientstylingurl:l=""}=e,{mbsource:u=""}=e,c;const r=()=>{window.postMessage({type:"CloseModal"},window.location.href)},p=()=>{window.postMessage({type:"ConfirmModal"},window.location.href),r()};pt(()=>()=>{});function _(a){J[a?"unshift":"push"](()=>{c=a,n(0,c)})}return t.$$set=a=>{"clientstyling"in a&&n(3,o=a.clientstyling),"clientstylingurl"in a&&n(4,l=a.clientstylingurl),"mbsource"in a&&n(5,u=a.mbsource),"$$scope"in a&&n(6,i=a.$$scope)},t.$$.update=()=>{t.$$.dirty&9&&o&&c&&xt(c,o),t.$$.dirty&17&&l&&c&&Mt(c,l),t.$$.dirty&33&&u&&c&&vt(c,`${u}.Style`)},[c,r,p,o,l,u,i,s,_]}class Lt extends Ct{constructor(e){super(),bt(this,e,$e,_e,_t,{clientstyling:3,clientstylingurl:4,mbsource:5},ce)}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),k()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),k()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),k()}}wt(Lt,{clientstyling:{},clientstylingurl:{},mbsource:{}},["title","text","confirm","close"],[],!0);const me=Object.freeze(Object.defineProperty({__proto__:null,default:Lt},Symbol.toStringTag,{value:"Module"}));exports.CashierConfirmModal_ce=me;exports.SvelteComponent=Ct;exports.add_render_callback=V;exports.append=y;exports.append_styles=gt;exports.attr=d;exports.binding_callbacks=J;exports.check_outros=ne;exports.component_subscribe=Tt;exports.create_custom_element=wt;exports.create_slot=B;exports.destroy_each=Ht;exports.detach=H;exports.element=w;exports.empty=Ut;exports.ensure_array_like=se;exports.flush=k;exports.get_all_dirty_from_scope=T;exports.get_slot_changes=N;exports.globals=Pt;exports.group_outros=ee;exports.init=bt;exports.insert=W;exports.is_function=et;exports.listen=Y;exports.noop=j;exports.onMount=pt;exports.prevent_default=qt;exports.run_all=x;exports.safe_not_equal=_t;exports.setClientStyling=xt;exports.setClientStylingURL=Mt;exports.setStreamStyling=vt;exports.set_custom_element_data=Dt;exports.set_data=Jt;exports.set_input_value=Vt;exports.set_style=Wt;exports.space=D;exports.src_url_equal=Nt;exports.subscribe=$t;exports.svg_element=X;exports.text=nt;exports.to_number=It;exports.toggle_class=Zt;exports.transition_in=E;exports.transition_out=P;exports.update_slot_base=A;