@everymatrix/cashier-verifications 1.86.4 → 1.86.6

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.
@@ -46,7 +46,7 @@ function rt() {
46
46
  function F(e) {
47
47
  e.forEach($t);
48
48
  }
49
- function bt(e) {
49
+ function wt(e) {
50
50
  return typeof e == "function";
51
51
  }
52
52
  function At(e, t) {
@@ -69,11 +69,11 @@ function me(e, t, n) {
69
69
  }
70
70
  function lt(e, t, n, i) {
71
71
  if (e) {
72
- const s = wt(e, t, n, i);
72
+ const s = bt(e, t, n, i);
73
73
  return e[0](s);
74
74
  }
75
75
  }
76
- function wt(e, t, n, i) {
76
+ function bt(e, t, n, i) {
77
77
  return e[1] && i ? Ht(n.ctx.slice(), e[1](i(t))) : n.ctx;
78
78
  }
79
79
  function ct(e, t, n, i) {
@@ -93,7 +93,7 @@ function ct(e, t, n, i) {
93
93
  }
94
94
  function at(e, t, n, i, s, o) {
95
95
  if (s) {
96
- const r = wt(t, n, i, o);
96
+ const r = bt(t, n, i, o);
97
97
  e.p(r, s);
98
98
  }
99
99
  }
@@ -106,7 +106,7 @@ function dt(e) {
106
106
  }
107
107
  return -1;
108
108
  }
109
- function w(e, t) {
109
+ function b(e, t) {
110
110
  e.appendChild(t);
111
111
  }
112
112
  function Nt(e, t, n) {
@@ -127,7 +127,7 @@ function Wt(e) {
127
127
  ) : e.ownerDocument;
128
128
  }
129
129
  function Pt(e, t) {
130
- return w(
130
+ return b(
131
131
  /** @type {Document} */
132
132
  e.head || e,
133
133
  t
@@ -202,7 +202,7 @@ function Yt(e, t) {
202
202
  }
203
203
  )) : (i.src = "about:blank", i.onload = () => {
204
204
  o = et(i.contentWindow, "resize", t), t();
205
- }), w(e, i), () => {
205
+ }), b(e, i), () => {
206
206
  (s || o && i.contentWindow) && o(), O(i);
207
207
  };
208
208
  }
@@ -313,7 +313,7 @@ function $e(e) {
313
313
  function Qt(e, t, n) {
314
314
  const { fragment: i, after_update: s } = e.$$;
315
315
  i && i.m(t, n), Z(() => {
316
- const o = e.$$.on_mount.map($t).filter(bt);
316
+ const o = e.$$.on_mount.map($t).filter(wt);
317
317
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : F(o), e.$$.on_mount = [];
318
318
  }), s.forEach(Z);
319
319
  }
@@ -351,8 +351,8 @@ function ee(e, t, n, i, s, o, r = null, c = [-1]) {
351
351
  r && r(l.root);
352
352
  let v = !1;
353
353
  if (l.ctx = n ? n(e, t.props || {}, (p, k, ..._) => {
354
- const b = _.length ? _[0] : k;
355
- return l.ctx && s(l.ctx[p], l.ctx[p] = b) && (!l.skip_bound && l.bound[p] && l.bound[p](b), v && te(e, p)), k;
354
+ const w = _.length ? _[0] : k;
355
+ return l.ctx && s(l.ctx[p], l.ctx[p] = w) && (!l.skip_bound && l.bound[p] && l.bound[p](w), v && te(e, p)), k;
356
356
  }) : [], l.update(), v = !0, F(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
357
357
  if (t.hydrate) {
358
358
  const p = Ft(t.target);
@@ -575,7 +575,7 @@ class ie {
575
575
  * @returns {() => void}
576
576
  */
577
577
  $on(t, n) {
578
- if (!bt(n))
578
+ if (!wt(n))
579
579
  return q;
580
580
  const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
581
581
  return i.push(n), () => {
@@ -623,7 +623,7 @@ function ce(e) {
623
623
  }
624
624
  const ae = (e) => ({}), ht = (e) => ({}), de = (e) => ({}), mt = (e) => ({});
625
625
  function gt(e) {
626
- let t, n, i, s, o, r, c, d, l, v, p, k, _, b, m, f, j, h = (
626
+ let t, n, i, s, o, r, c, d, l, v, p, k, _, w, m, f, j, h = (
627
627
  /*modaltype*/
628
628
  (e[3] == "error" || /*modaltype*/
629
629
  e[3] == "bonusDescription") && pt()
@@ -675,7 +675,7 @@ function gt(e) {
675
675
  ));
676
676
  },
677
677
  m(u, L) {
678
- D(u, t, L), w(t, n), w(n, i), w(i, s), h && h.m(s, null), w(s, o), w(s, r), y && y.m(r, null), w(i, c), w(i, d), w(d, l), w(l, v), w(n, p), g && g.m(n, null), w(n, k), w(n, _), x && x.m(_, null), e[15](_), e[16](n), e[17](t), b = Yt(
678
+ D(u, t, L), b(t, n), b(n, i), b(i, s), h && h.m(s, null), b(s, o), b(s, r), y && y.m(r, null), b(i, c), b(i, d), b(d, l), b(l, v), b(n, p), g && g.m(n, null), b(n, k), b(n, _), x && x.m(_, null), e[15](_), e[16](n), e[17](t), w = Yt(
679
679
  t,
680
680
  /*div6_elementresize_handler*/
681
681
  e[18].bind(t)
@@ -753,7 +753,7 @@ function gt(e) {
753
753
  G(y, u), G(x, u), m = !1;
754
754
  },
755
755
  d(u) {
756
- u && O(t), h && h.d(), y && y.d(u), g && g.d(), x && x.d(u), e[15](null), e[16](null), e[17](null), b(), f = !1, j();
756
+ u && O(t), h && h.d(), y && y.d(u), g && g.d(), x && x.d(u), e[15](null), e[16](null), e[17](null), w(), f = !1, j();
757
757
  }
758
758
  };
759
759
  }
@@ -816,9 +816,9 @@ function ue(e) {
816
816
  };
817
817
  }
818
818
  function fe(e, t, n) {
819
- let { $$slots: i = {}, $$scope: s } = t, { mbsource: o } = t, { clientstyling: r } = t, { clientstylingurl: c } = t, { show: d } = t, { modaltype: l = "" } = t, { isloading: v = "false" } = t, { width: p } = t, { height: k } = t, _, b, m, f, j = !1, h, S;
819
+ let { $$slots: i = {}, $$scope: s } = t, { mbsource: o } = t, { clientstyling: r } = t, { clientstylingurl: c } = t, { show: d } = t, { modaltype: l = "" } = t, { isloading: v = "false" } = t, { width: p } = t, { height: k } = t, _, w, m, f, j = !1, h, S;
820
820
  const y = () => {
821
- h && clearTimeout(h), _ && (_.classList.add("closing"), h = setTimeout(
821
+ h && clearTimeout(h), _ && (_.classList.add("closing"), window.dispatchEvent(new CustomEvent("manualClosePopup")), h = setTimeout(
822
822
  () => {
823
823
  window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
824
824
  },
@@ -873,7 +873,7 @@ function fe(e, t, n) {
873
873
  }
874
874
  function Mt(a) {
875
875
  I[a ? "unshift" : "push"](() => {
876
- b = a, n(5, b);
876
+ w = a, n(5, w);
877
877
  });
878
878
  }
879
879
  return e.$$set = (a) => {
@@ -883,16 +883,16 @@ function fe(e, t, n) {
883
883
  16 && v && X().then(() => {
884
884
  g();
885
885
  }), e.$$.dirty & /*clientstyling, customStylingContainer*/
886
- 2080 && r && b && oe(b, r), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
887
- 4128 && c && b && re(b, c), e.$$.dirty & /*mbsource, customStylingContainer*/
888
- 1056 && o && b && le(b, `${o}.Style`);
886
+ 2080 && r && w && oe(w, r), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
887
+ 4128 && c && w && re(w, c), e.$$.dirty & /*mbsource, customStylingContainer*/
888
+ 1056 && o && w && le(w, `${o}.Style`);
889
889
  }, [
890
890
  p,
891
891
  k,
892
892
  d,
893
893
  l,
894
894
  v,
895
- b,
895
+ w,
896
896
  _,
897
897
  m,
898
898
  f,
@@ -980,40 +980,40 @@ class vt extends ie {
980
980
  }
981
981
  }
982
982
  ne(vt, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, isloading: {}, width: {}, height: {} }, ["title", "content"], [], !0);
983
- const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
983
+ const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
984
984
  __proto__: null,
985
985
  default: vt
986
986
  }, Symbol.toStringTag, { value: "Module" }));
987
987
  export {
988
- et as A,
989
- _e as B,
990
- ge as C,
991
- be as D,
988
+ oe as A,
989
+ re as B,
990
+ le as C,
991
+ we as D,
992
992
  ie as S,
993
- At as a,
993
+ Bt as a,
994
994
  ee as b,
995
995
  ne as c,
996
996
  Nt as d,
997
- C as e,
997
+ O as e,
998
998
  E as f,
999
- $ as g,
1000
- D as h,
1001
- bt as i,
1002
- O as j,
999
+ D as g,
1000
+ C as h,
1001
+ wt as i,
1002
+ $ as j,
1003
1003
  me as k,
1004
- le as l,
1005
- I as m,
1004
+ I as l,
1005
+ pe as m,
1006
1006
  q as n,
1007
1007
  Vt as o,
1008
- oe as p,
1009
- re as q,
1008
+ $e as p,
1009
+ ge as q,
1010
1010
  F as r,
1011
- Bt as s,
1011
+ At as s,
1012
1012
  z as t,
1013
- pe as u,
1014
- $e as v,
1015
- ut as w,
1016
- Y as x,
1017
- Rt as y,
1018
- w as z
1013
+ _e as u,
1014
+ b as v,
1015
+ et as w,
1016
+ ut as x,
1017
+ Y as y,
1018
+ Rt as z
1019
1019
  };
@@ -77,7 +77,7 @@ function st(t) {
77
77
  }
78
78
  return -1;
79
79
  }
80
- function b(t, e) {
80
+ function w(t, e) {
81
81
  t.appendChild(e);
82
82
  }
83
83
  function Lt(t, e, n) {
@@ -98,7 +98,7 @@ function Et(t) {
98
98
  ) : t.ownerDocument;
99
99
  }
100
100
  function St(t, e) {
101
- return b(
101
+ return w(
102
102
  /** @type {Document} */
103
103
  t.head || t,
104
104
  e
@@ -173,7 +173,7 @@ function zt(t, e) {
173
173
  }
174
174
  )) : (i.src = "about:blank", i.onload = () => {
175
175
  o = Q(i.contentWindow, "resize", e), e();
176
- }), b(t, i), () => {
176
+ }), w(t, i), () => {
177
177
  (s || o && i.contentWindow) && o(), T(i);
178
178
  };
179
179
  }
@@ -594,7 +594,7 @@ function at(t) {
594
594
  const E = (
595
595
  /*#slots*/
596
596
  t[14].title
597
- ), w = et(
597
+ ), b = et(
598
598
  E,
599
599
  t,
600
600
  /*$$scope*/
@@ -617,7 +617,7 @@ function at(t) {
617
617
  );
618
618
  return {
619
619
  c() {
620
- e = C("div"), n = C("div"), i = C("div"), s = C("div"), h && h.c(), o = D(), d = C("div"), w && w.c(), l = D(), f = C("div"), c = ot("svg"), k = ot("path"), _ = D(), g && g.c(), v = D(), p = C("div"), x && x.c(), $(d, "class", "TitleText"), $(s, "class", "ModalTitle"), $(k, "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"), $(c, "xmlns", "http://www.w3.org/2000/svg"), $(c, "viewBox", "0 0 13 13"), $(c, "fill", "none"), $(c, "class", "CloseButton"), $(f, "class", "ModalCloseIcon"), $(i, "class", "ModalHeader"), $(p, "class", "ModalContentWrapper"), j(
620
+ e = C("div"), n = C("div"), i = C("div"), s = C("div"), h && h.c(), o = D(), d = C("div"), b && b.c(), l = D(), f = C("div"), c = ot("svg"), k = ot("path"), _ = D(), g && g.c(), v = D(), p = C("div"), x && x.c(), $(d, "class", "TitleText"), $(s, "class", "ModalTitle"), $(k, "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"), $(c, "xmlns", "http://www.w3.org/2000/svg"), $(c, "viewBox", "0 0 13 13"), $(c, "fill", "none"), $(c, "class", "CloseButton"), $(f, "class", "ModalCloseIcon"), $(i, "class", "ModalHeader"), $(p, "class", "ModalContentWrapper"), j(
621
621
  p,
622
622
  "hidden",
623
623
  /*isloading*/
@@ -638,7 +638,7 @@ function at(t) {
638
638
  ));
639
639
  },
640
640
  m(a, M) {
641
- F(a, e, M), b(e, n), b(n, i), b(i, s), h && h.m(s, null), b(s, o), b(s, d), w && w.m(d, null), b(i, l), b(i, f), b(f, c), b(c, k), b(n, _), g && g.m(n, null), b(n, v), b(n, p), x && x.m(p, null), t[15](p), t[16](n), t[17](e), y = zt(
641
+ F(a, e, M), w(e, n), w(n, i), w(i, s), h && h.m(s, null), w(s, o), w(s, d), b && b.m(d, null), w(i, l), w(i, f), w(f, c), w(c, k), w(n, _), g && g.m(n, null), w(n, v), w(n, p), x && x.m(p, null), t[15](p), t[16](n), t[17](e), y = zt(
642
642
  e,
643
643
  /*div6_elementresize_handler*/
644
644
  t[18].bind(e)
@@ -652,9 +652,9 @@ function at(t) {
652
652
  p(a, M) {
653
653
  /*modaltype*/
654
654
  a[3] == "error" || /*modaltype*/
655
- a[3] == "bonusDescription" ? h || (h = dt(), h.c(), h.m(s, o)) : h && (h.d(1), h = null), w && w.p && (!m || M & /*$$scope*/
655
+ a[3] == "bonusDescription" ? h || (h = dt(), h.c(), h.m(s, o)) : h && (h.d(1), h = null), b && b.p && (!m || M & /*$$scope*/
656
656
  8192) && it(
657
- w,
657
+ b,
658
658
  E,
659
659
  a,
660
660
  /*$$scope*/
@@ -710,13 +710,13 @@ function at(t) {
710
710
  );
711
711
  },
712
712
  i(a) {
713
- m || (B(w, a), B(x, a), m = !0);
713
+ m || (B(b, a), B(x, a), m = !0);
714
714
  },
715
715
  o(a) {
716
- Z(w, a), Z(x, a), m = !1;
716
+ Z(b, a), Z(x, a), m = !1;
717
717
  },
718
718
  d(a) {
719
- a && T(e), h && h.d(), w && w.d(a), g && g.d(), x && x.d(a), t[15](null), t[16](null), t[17](null), y(), u = !1, O();
719
+ a && T(e), h && h.d(), b && b.d(a), g && g.d(), x && x.d(a), t[15](null), t[16](null), t[17](null), y(), u = !1, O();
720
720
  }
721
721
  };
722
722
  }
@@ -780,8 +780,8 @@ function te(t) {
780
780
  }
781
781
  function ee(t, e, n) {
782
782
  let { $$slots: i = {}, $$scope: s } = e, { mbsource: o } = e, { clientstyling: d } = e, { clientstylingurl: l } = e, { show: f } = e, { modaltype: c = "" } = e, { isloading: k = "false" } = e, { width: _ } = e, { height: v } = e, p, y, m, u, O = !1, h, E;
783
- const w = () => {
784
- h && clearTimeout(h), p && (p.classList.add("closing"), h = setTimeout(
783
+ const b = () => {
784
+ h && clearTimeout(h), p && (p.classList.add("closing"), window.dispatchEvent(new CustomEvent("manualClosePopup")), h = setTimeout(
785
785
  () => {
786
786
  window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
787
787
  },
@@ -791,10 +791,10 @@ function ee(t, e, n) {
791
791
  if (!u || !m || O)
792
792
  return;
793
793
  E && clearTimeout(h), O = !0;
794
- const r = u.offsetWidth, bt = u.offsetHeight;
795
- n(8, u.style.width = `${r}px`, u), n(8, u.style.height = `${bt}px`, u), u.offsetHeight, await G();
796
- const wt = m.scrollHeight, xt = m.scrollWidth;
797
- n(8, u.style.width = `${xt}px`, u), n(8, u.style.height = `${wt}px`, u), E = setTimeout(
794
+ const r = u.offsetWidth, wt = u.offsetHeight;
795
+ n(8, u.style.width = `${r}px`, u), n(8, u.style.height = `${wt}px`, u), u.offsetHeight, await G();
796
+ const bt = m.scrollHeight, xt = m.scrollWidth;
797
+ n(8, u.style.width = `${xt}px`, u), n(8, u.style.height = `${bt}px`, u), E = setTimeout(
798
798
  () => {
799
799
  u && (n(8, u.style.width = "auto", u), n(8, u.style.height = "auto", u)), O = !1;
800
800
  },
@@ -859,7 +859,7 @@ function ee(t, e, n) {
859
859
  p,
860
860
  m,
861
861
  u,
862
- w,
862
+ b,
863
863
  o,
864
864
  d,
865
865
  l,
@@ -948,35 +948,35 @@ const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
948
948
  default: $t
949
949
  }, Symbol.toStringTag, { value: "Module" }));
950
950
  export {
951
- Q as A,
952
- oe as B,
953
- ie as C,
951
+ qt as A,
952
+ Zt as B,
953
+ Gt as C,
954
954
  le as D,
955
955
  Jt as S,
956
- vt as a,
956
+ kt as a,
957
957
  Yt as b,
958
958
  Ut as c,
959
959
  Lt as d,
960
- C as e,
960
+ T as e,
961
961
  L as f,
962
- $ as g,
963
- F as h,
962
+ F as g,
963
+ C as h,
964
964
  ht as i,
965
- T as j,
965
+ $ as j,
966
966
  ne as k,
967
- Gt as l,
968
- A as m,
967
+ A as l,
968
+ se as m,
969
969
  V as n,
970
970
  It as o,
971
- qt as p,
972
- Zt as q,
971
+ re as p,
972
+ ie as q,
973
973
  R as r,
974
- kt as s,
974
+ vt as s,
975
975
  j as t,
976
- se as u,
977
- re as v,
978
- ot as w,
979
- D as x,
980
- Tt as y,
981
- b as z
976
+ oe as u,
977
+ w as v,
978
+ Q as w,
979
+ ot as x,
980
+ D as y,
981
+ Tt as z
982
982
  };
@@ -1 +1 @@
1
- "use strict";var Pt=Object.defineProperty,Rt=Object.defineProperties;var Ft=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var Q=(e,t,n)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rt=(e,t)=>{for(var n in t||(t={}))Dt.call(t,n)&&Q(e,n,t[n]);if(st)for(var n of st(t))Ut.call(t,n)&&Q(e,n,t[n]);return e},lt=(e,t)=>Rt(e,Ft(t));var M=(e,t,n)=>(Q(e,typeof t!="symbol"?t+"":t,n),n);var X=(e,t,n)=>new Promise((i,o)=>{var s=d=>{try{c(n.next(d))}catch(l){o(l)}},r=d=>{try{c(n.throw(d))}catch(l){o(l)}},c=d=>d.done?i(d.value):Promise.resolve(d.value).then(s,r);c((n=n.apply(e,t)).next())});function U(){}function Yt(e,t){for(const n in t)e[n]=t[n];return e}function bt(e){return e()}function ct(){return Object.create(null)}function B(e){e.forEach(bt)}function ot(e){return typeof e=="function"}function yt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Jt(e){return Object.keys(e).length===0}function wt(e,...t){if(e==null){for(const i of t)i(void 0);return U}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Vt(e,t,n){e.$$.on_destroy.push(wt(t,n))}function at(e,t,n,i){if(e){const o=xt(e,t,n,i);return e[0](o)}}function xt(e,t,n,i){return e[1]&&i?Yt(n.ctx.slice(),e[1](i(t))):n.ctx}function dt(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(t.dirty===void 0)return o;if(typeof o=="object"){const s=[],r=Math.max(t.dirty.length,o.length);for(let c=0;c<r;c+=1)s[c]=t.dirty[c]|o[c];return s}return t.dirty|o}return t.dirty}function ut(e,t,n,i,o,s){if(o){const r=xt(t,n,i,s);e.p(r,o)}}function ft(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function y(e,t){e.appendChild(t)}function Ct(e,t,n){const i=qt(e);if(!i.getElementById(t)){const o=w("style");o.id=t,o.textContent=n,Zt(i,o)}}function qt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Zt(e,t){return y(e.head||e,t),t.sheet}function P(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function Gt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function w(e){return document.createElement(e)}function nt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function vt(e){return document.createTextNode(e)}function F(){return vt(" ")}function Z(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function _(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Kt(e,t,n){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:_(e,t,n)}function Qt(e){return Array.from(e.childNodes)}function Xt(e,t){t=""+t,e.data!==t&&(e.data=t)}let J;function te(){if(J===void 0){J=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){J=!0}}return J}function ee(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=w("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const o=te();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=Z(window,"message",r=>{r.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=Z(i.contentWindow,"resize",t),t()}),y(e,i),()=>{(o||s&&i.contentWindow)&&s(),S(i)}}function O(e,t,n){e.classList.toggle(t,!!n)}function ne(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let Y;function D(e){Y=e}function ie(){if(!Y)throw new Error("Function called outside component initialization");return Y}function Mt(e){ie().$$.on_mount.push(e)}const I=[],j=[];let N=[];const ht=[],kt=Promise.resolve();let it=!1;function Lt(){it||(it=!0,kt.then(E))}function tt(){return Lt(),kt}function G(e){N.push(e)}const et=new Set;let A=0;function E(){if(A!==0)return;const e=Y;do{try{for(;A<I.length;){const t=I[A];A++,D(t),oe(t.$$)}}catch(t){throw I.length=0,A=0,t}for(D(null),I.length=0,A=0;j.length;)j.pop()();for(let t=0;t<N.length;t+=1){const n=N[t];et.has(n)||(et.add(n),n())}N.length=0}while(I.length);for(;ht.length;)ht.pop()();it=!1,et.clear(),D(e)}function oe(e){if(e.fragment!==null){e.update(),B(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(G)}}function se(e){const t=[],n=[];N.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),N=t}const V=new Set;let z;function re(){z={r:0,c:[],p:z}}function le(){z.r||B(z.c),z=z.p}function W(e,t){e&&e.i&&(V.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(V.has(e))return;V.add(e),z.c.push(()=>{V.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function ce(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ae(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),G(()=>{const s=e.$$.on_mount.map(bt).filter(ot);e.$$.on_destroy?e.$$.on_destroy.push(...s):B(s),e.$$.on_mount=[]}),o.forEach(G)}function de(e,t){const n=e.$$;n.fragment!==null&&(se(n.after_update),B(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){e.$$.dirty[0]===-1&&(I.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Et(e,t,n,i,o,s,r=null,c=[-1]){const d=Y;D(e);const l=e.$$={fragment:null,ctx:[],props:s,update:U,not_equal:o,bound:ct(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:ct(),dirty:c,skip_bound:!1,root:t.target||d.$$.root};r&&r(l.root);let v=!1;if(l.ctx=n?n(e,t.props||{},(p,k,...$)=>{const b=$.length?$[0]:k;return l.ctx&&o(l.ctx[p],l.ctx[p]=b)&&(!l.skip_bound&&l.bound[p]&&l.bound[p](b),v&&ue(e,p)),k}):[],l.update(),v=!0,B(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=Qt(t.target);l.fragment&&l.fragment.l(p),p.forEach(S)}else l.fragment&&l.fragment.c();t.intro&&W(e.$$.fragment),ae(e,t.target,t.anchor),E()}D(d)}let St;typeof HTMLElement=="function"&&(St=class extends HTMLElement{constructor(t,n,i){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return X(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=w("slot"),s!=="default"&&_(r,"name",s)},m:function(l,v){P(l,r,v)},d:function(l){l&&S(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ne(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=q(r,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:lt(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const r=q(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const r of this.$$l[s]){const c=this.$$c.$on(s,r);this.$$l_u.set(r,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=q(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function q(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Tt(e,t,n,i,o,s){let r=class extends St{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(r.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(d){var l;d=q(c,d,t),this.$$d[c]=d,(l=this.$$c)==null||l.$set({[c]:d})}})}),i.forEach(c=>{Object.defineProperty(r.prototype,c,{get(){var d;return(d=this.$$c)==null?void 0:d[c]}})}),e.element=r,r}class Ot{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){de(this,1),this.$destroy=U}$on(t,n){if(!ot(n))return U;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!Jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fe);function jt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function zt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Ht(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function he(e){Ct(e,"svelte-vlp16o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const me=e=>({}),mt=e=>({}),ge=e=>({}),gt=e=>({});function _t(e){let t,n,i,o,s,r,c,d,l,v,p,k,$,b,m,f,H,h=(e[3]=="error"||e[3]=="bonusDescription")&&pt();const T=e[14].title,x=at(T,e,e[13],gt);let g=e[4]==="true"&&$t();const R=e[14].content,C=at(R,e,e[13],mt);return{c(){t=w("div"),n=w("div"),i=w("div"),o=w("div"),h&&h.c(),s=F(),r=w("div"),x&&x.c(),c=F(),d=w("div"),l=nt("svg"),v=nt("path"),p=F(),g&&g.c(),k=F(),$=w("div"),C&&C.c(),_(r,"class","TitleText"),_(o,"class","ModalTitle"),_(v,"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"),_(l,"xmlns","http://www.w3.org/2000/svg"),_(l,"viewBox","0 0 13 13"),_(l,"fill","none"),_(l,"class","CloseButton"),_(d,"class","ModalCloseIcon"),_(i,"class","ModalHeader"),_($,"class","ModalContentWrapper"),O($,"hidden",e[4]==="true"),_(n,"class","ModalContainer"),O(n,"video-mode",e[3]==="video"),O(n,"twofa-mode",e[3]==="2fa"),_(t,"id","Modal"),G(()=>e[18].call(t))},m(u,L){P(u,t,L),y(t,n),y(n,i),y(i,o),h&&h.m(o,null),y(o,s),y(o,r),x&&x.m(r,null),y(i,c),y(i,d),y(d,l),y(l,v),y(n,p),g&&g.m(n,null),y(n,k),y(n,$),C&&C.m($,null),e[15]($),e[16](n),e[17](t),b=ee(t,e[18].bind(t)),m=!0,f||(H=Z(l,"click",e[9]),f=!0)},p(u,L){u[3]=="error"||u[3]=="bonusDescription"?h||(h=pt(),h.c(),h.m(o,s)):h&&(h.d(1),h=null),x&&x.p&&(!m||L&8192)&&ut(x,T,u,u[13],m?dt(T,u[13],L,ge):ft(u[13]),gt),u[4]==="true"?g||(g=$t(),g.c(),g.m(n,k)):g&&(g.d(1),g=null),C&&C.p&&(!m||L&8192)&&ut(C,R,u,u[13],m?dt(R,u[13],L,me):ft(u[13]),mt),(!m||L&16)&&O($,"hidden",u[4]==="true"),(!m||L&8)&&O(n,"video-mode",u[3]==="video"),(!m||L&8)&&O(n,"twofa-mode",u[3]==="2fa")},i(u){m||(W(x,u),W(C,u),m=!0)},o(u){K(x,u),K(C,u),m=!1},d(u){u&&S(t),h&&h.d(),x&&x.d(u),g&&g.d(),C&&C.d(u),e[15](null),e[16](null),e[17](null),b(),f=!1,H()}}}function pt(e){let t;return{c(){t=w("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',_(t,"class","WarningIcon")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function $t(e){let t;return{c(){t=w("div"),t.innerHTML='<div class="ModalLoader"></div>',_(t,"class","ModalLoadingOverlay")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function _e(e){let t,n,i=e[2]==="true"&&_t(e);return{c(){t=w("div"),i&&i.c()},m(o,s){P(o,t,s),i&&i.m(t,null),e[19](t),n=!0},p(o,[s]){o[2]==="true"?i?(i.p(o,s),s&4&&W(i,1)):(i=_t(o),i.c(),W(i,1),i.m(t,null)):i&&(re(),K(i,1,1,()=>{i=null}),le())},i(o){n||(W(i),n=!0)},o(o){K(i),n=!1},d(o){o&&S(t),i&&i.d(),e[19](null)}}}function pe(e,t,n){let{$$slots:i={},$$scope:o}=t,{mbsource:s}=t,{clientstyling:r}=t,{clientstylingurl:c}=t,{show:d}=t,{modaltype:l=""}=t,{isloading:v="false"}=t,{width:p}=t,{height:k}=t,$,b,m,f,H=!1,h,T;const x=()=>{h&&clearTimeout(h),$&&($.classList.add("closing"),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},g=()=>X(this,null,function*(){if(!f||!m||H)return;T&&clearTimeout(h),H=!0;const a=f.offsetWidth,Nt=f.offsetHeight;n(8,f.style.width=`${a}px`,f),n(8,f.style.height=`${Nt}px`,f),f.offsetHeight,yield tt();const Wt=m.scrollHeight,Bt=m.scrollWidth;n(8,f.style.width=`${Bt}px`,f),n(8,f.style.height=`${Wt}px`,f),T=setTimeout(()=>{f&&(n(8,f.style.width="auto",f),n(8,f.style.height="auto",f)),H=!1},300)});Mt(()=>{if(tt().then(()=>{g()}),m){const a=new ResizeObserver(()=>{g()});return a.observe(m),()=>{a.disconnect()}}return()=>{h&&clearTimeout(h),T&&clearTimeout(h)}});function R(a){j[a?"unshift":"push"](()=>{m=a,n(7,m)})}function C(a){j[a?"unshift":"push"](()=>{f=a,n(8,f)})}function u(a){j[a?"unshift":"push"](()=>{$=a,n(6,$)})}function L(){p=this.clientWidth,k=this.clientHeight,n(0,p),n(1,k)}function It(a){j[a?"unshift":"push"](()=>{b=a,n(5,b)})}return e.$$set=a=>{"mbsource"in a&&n(10,s=a.mbsource),"clientstyling"in a&&n(11,r=a.clientstyling),"clientstylingurl"in a&&n(12,c=a.clientstylingurl),"show"in a&&n(2,d=a.show),"modaltype"in a&&n(3,l=a.modaltype),"isloading"in a&&n(4,v=a.isloading),"width"in a&&n(0,p=a.width),"height"in a&&n(1,k=a.height),"$$scope"in a&&n(13,o=a.$$scope)},e.$$.update=()=>{e.$$.dirty&16&&v&&tt().then(()=>{g()}),e.$$.dirty&2080&&r&&b&&jt(b,r),e.$$.dirty&4128&&c&&b&&zt(b,c),e.$$.dirty&1056&&s&&b&&Ht(b,`${s}.Style`)},[p,k,d,l,v,b,$,m,f,x,s,r,c,o,i,R,C,u,L,It]}class At extends Ot{constructor(t){super(),Et(this,t,pe,_e,yt,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},he)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),E()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),E()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),E()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading:t}),E()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),E()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),E()}}Tt(At,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);const $e=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=$e;exports.SvelteComponent=Ot;exports.append=y;exports.append_styles=Ct;exports.attr=_;exports.binding_callbacks=j;exports.component_subscribe=Vt;exports.create_custom_element=Tt;exports.destroy_each=Gt;exports.detach=S;exports.element=w;exports.ensure_array_like=ce;exports.flush=E;exports.init=Et;exports.insert=P;exports.is_function=ot;exports.listen=Z;exports.noop=U;exports.onMount=Mt;exports.run_all=B;exports.safe_not_equal=yt;exports.setClientStyling=jt;exports.setClientStylingURL=zt;exports.setStreamStyling=Ht;exports.set_custom_element_data=Kt;exports.set_data=Xt;exports.space=F;exports.subscribe=wt;exports.svg_element=nt;exports.text=vt;exports.toggle_class=O;
1
+ "use strict";var Pt=Object.defineProperty,Rt=Object.defineProperties;var Ft=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var Q=(e,t,n)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rt=(e,t)=>{for(var n in t||(t={}))Dt.call(t,n)&&Q(e,n,t[n]);if(st)for(var n of st(t))Ut.call(t,n)&&Q(e,n,t[n]);return e},lt=(e,t)=>Rt(e,Ft(t));var M=(e,t,n)=>(Q(e,typeof t!="symbol"?t+"":t,n),n);var X=(e,t,n)=>new Promise((i,o)=>{var s=d=>{try{c(n.next(d))}catch(l){o(l)}},r=d=>{try{c(n.throw(d))}catch(l){o(l)}},c=d=>d.done?i(d.value):Promise.resolve(d.value).then(s,r);c((n=n.apply(e,t)).next())});function U(){}function Yt(e,t){for(const n in t)e[n]=t[n];return e}function bt(e){return e()}function ct(){return Object.create(null)}function B(e){e.forEach(bt)}function ot(e){return typeof e=="function"}function yt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Jt(e){return Object.keys(e).length===0}function wt(e,...t){if(e==null){for(const i of t)i(void 0);return U}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Vt(e,t,n){e.$$.on_destroy.push(wt(t,n))}function at(e,t,n,i){if(e){const o=xt(e,t,n,i);return e[0](o)}}function xt(e,t,n,i){return e[1]&&i?Yt(n.ctx.slice(),e[1](i(t))):n.ctx}function dt(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(t.dirty===void 0)return o;if(typeof o=="object"){const s=[],r=Math.max(t.dirty.length,o.length);for(let c=0;c<r;c+=1)s[c]=t.dirty[c]|o[c];return s}return t.dirty|o}return t.dirty}function ut(e,t,n,i,o,s){if(o){const r=xt(t,n,i,s);e.p(r,o)}}function ft(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function y(e,t){e.appendChild(t)}function Ct(e,t,n){const i=qt(e);if(!i.getElementById(t)){const o=w("style");o.id=t,o.textContent=n,Zt(i,o)}}function qt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Zt(e,t){return y(e.head||e,t),t.sheet}function P(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function Gt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function w(e){return document.createElement(e)}function nt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function vt(e){return document.createTextNode(e)}function F(){return vt(" ")}function Z(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function _(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Kt(e,t,n){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:_(e,t,n)}function Qt(e){return Array.from(e.childNodes)}function Xt(e,t){t=""+t,e.data!==t&&(e.data=t)}let J;function te(){if(J===void 0){J=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){J=!0}}return J}function ee(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const i=w("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const o=te();let s;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=Z(window,"message",r=>{r.source===i.contentWindow&&t()})):(i.src="about:blank",i.onload=()=>{s=Z(i.contentWindow,"resize",t),t()}),y(e,i),()=>{(o||s&&i.contentWindow)&&s(),S(i)}}function O(e,t,n){e.classList.toggle(t,!!n)}function ne(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let Y;function D(e){Y=e}function ie(){if(!Y)throw new Error("Function called outside component initialization");return Y}function Mt(e){ie().$$.on_mount.push(e)}const I=[],j=[];let N=[];const ht=[],kt=Promise.resolve();let it=!1;function Lt(){it||(it=!0,kt.then(E))}function tt(){return Lt(),kt}function G(e){N.push(e)}const et=new Set;let A=0;function E(){if(A!==0)return;const e=Y;do{try{for(;A<I.length;){const t=I[A];A++,D(t),oe(t.$$)}}catch(t){throw I.length=0,A=0,t}for(D(null),I.length=0,A=0;j.length;)j.pop()();for(let t=0;t<N.length;t+=1){const n=N[t];et.has(n)||(et.add(n),n())}N.length=0}while(I.length);for(;ht.length;)ht.pop()();it=!1,et.clear(),D(e)}function oe(e){if(e.fragment!==null){e.update(),B(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(G)}}function se(e){const t=[],n=[];N.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),N=t}const V=new Set;let z;function re(){z={r:0,c:[],p:z}}function le(){z.r||B(z.c),z=z.p}function W(e,t){e&&e.i&&(V.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(V.has(e))return;V.add(e),z.c.push(()=>{V.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function ce(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ae(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),G(()=>{const s=e.$$.on_mount.map(bt).filter(ot);e.$$.on_destroy?e.$$.on_destroy.push(...s):B(s),e.$$.on_mount=[]}),o.forEach(G)}function de(e,t){const n=e.$$;n.fragment!==null&&(se(n.after_update),B(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){e.$$.dirty[0]===-1&&(I.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Et(e,t,n,i,o,s,r=null,c=[-1]){const d=Y;D(e);const l=e.$$={fragment:null,ctx:[],props:s,update:U,not_equal:o,bound:ct(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:ct(),dirty:c,skip_bound:!1,root:t.target||d.$$.root};r&&r(l.root);let v=!1;if(l.ctx=n?n(e,t.props||{},(p,k,...$)=>{const b=$.length?$[0]:k;return l.ctx&&o(l.ctx[p],l.ctx[p]=b)&&(!l.skip_bound&&l.bound[p]&&l.bound[p](b),v&&ue(e,p)),k}):[],l.update(),v=!0,B(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=Qt(t.target);l.fragment&&l.fragment.l(p),p.forEach(S)}else l.fragment&&l.fragment.c();t.intro&&W(e.$$.fragment),ae(e,t.target,t.anchor),E()}D(d)}let St;typeof HTMLElement=="function"&&(St=class extends HTMLElement{constructor(t,n,i){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return X(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=w("slot"),s!=="default"&&_(r,"name",s)},m:function(l,v){P(l,r,v)},d:function(l){l&&S(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ne(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=q(r,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:lt(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const r=q(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const r of this.$$l[s]){const c=this.$$c.$on(s,r);this.$$l_u.set(r,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=q(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function q(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Tt(e,t,n,i,o,s){let r=class extends St{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(r.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(d){var l;d=q(c,d,t),this.$$d[c]=d,(l=this.$$c)==null||l.$set({[c]:d})}})}),i.forEach(c=>{Object.defineProperty(r.prototype,c,{get(){var d;return(d=this.$$c)==null?void 0:d[c]}})}),e.element=r,r}class Ot{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){de(this,1),this.$destroy=U}$on(t,n){if(!ot(n))return U;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!Jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fe);function jt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function zt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Ht(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function he(e){Ct(e,"svelte-vlp16o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const me=e=>({}),mt=e=>({}),ge=e=>({}),gt=e=>({});function _t(e){let t,n,i,o,s,r,c,d,l,v,p,k,$,b,m,f,H,h=(e[3]=="error"||e[3]=="bonusDescription")&&pt();const T=e[14].title,x=at(T,e,e[13],gt);let g=e[4]==="true"&&$t();const R=e[14].content,C=at(R,e,e[13],mt);return{c(){t=w("div"),n=w("div"),i=w("div"),o=w("div"),h&&h.c(),s=F(),r=w("div"),x&&x.c(),c=F(),d=w("div"),l=nt("svg"),v=nt("path"),p=F(),g&&g.c(),k=F(),$=w("div"),C&&C.c(),_(r,"class","TitleText"),_(o,"class","ModalTitle"),_(v,"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"),_(l,"xmlns","http://www.w3.org/2000/svg"),_(l,"viewBox","0 0 13 13"),_(l,"fill","none"),_(l,"class","CloseButton"),_(d,"class","ModalCloseIcon"),_(i,"class","ModalHeader"),_($,"class","ModalContentWrapper"),O($,"hidden",e[4]==="true"),_(n,"class","ModalContainer"),O(n,"video-mode",e[3]==="video"),O(n,"twofa-mode",e[3]==="2fa"),_(t,"id","Modal"),G(()=>e[18].call(t))},m(u,L){P(u,t,L),y(t,n),y(n,i),y(i,o),h&&h.m(o,null),y(o,s),y(o,r),x&&x.m(r,null),y(i,c),y(i,d),y(d,l),y(l,v),y(n,p),g&&g.m(n,null),y(n,k),y(n,$),C&&C.m($,null),e[15]($),e[16](n),e[17](t),b=ee(t,e[18].bind(t)),m=!0,f||(H=Z(l,"click",e[9]),f=!0)},p(u,L){u[3]=="error"||u[3]=="bonusDescription"?h||(h=pt(),h.c(),h.m(o,s)):h&&(h.d(1),h=null),x&&x.p&&(!m||L&8192)&&ut(x,T,u,u[13],m?dt(T,u[13],L,ge):ft(u[13]),gt),u[4]==="true"?g||(g=$t(),g.c(),g.m(n,k)):g&&(g.d(1),g=null),C&&C.p&&(!m||L&8192)&&ut(C,R,u,u[13],m?dt(R,u[13],L,me):ft(u[13]),mt),(!m||L&16)&&O($,"hidden",u[4]==="true"),(!m||L&8)&&O(n,"video-mode",u[3]==="video"),(!m||L&8)&&O(n,"twofa-mode",u[3]==="2fa")},i(u){m||(W(x,u),W(C,u),m=!0)},o(u){K(x,u),K(C,u),m=!1},d(u){u&&S(t),h&&h.d(),x&&x.d(u),g&&g.d(),C&&C.d(u),e[15](null),e[16](null),e[17](null),b(),f=!1,H()}}}function pt(e){let t;return{c(){t=w("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',_(t,"class","WarningIcon")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function $t(e){let t;return{c(){t=w("div"),t.innerHTML='<div class="ModalLoader"></div>',_(t,"class","ModalLoadingOverlay")},m(n,i){P(n,t,i)},d(n){n&&S(t)}}}function _e(e){let t,n,i=e[2]==="true"&&_t(e);return{c(){t=w("div"),i&&i.c()},m(o,s){P(o,t,s),i&&i.m(t,null),e[19](t),n=!0},p(o,[s]){o[2]==="true"?i?(i.p(o,s),s&4&&W(i,1)):(i=_t(o),i.c(),W(i,1),i.m(t,null)):i&&(re(),K(i,1,1,()=>{i=null}),le())},i(o){n||(W(i),n=!0)},o(o){K(i),n=!1},d(o){o&&S(t),i&&i.d(),e[19](null)}}}function pe(e,t,n){let{$$slots:i={},$$scope:o}=t,{mbsource:s}=t,{clientstyling:r}=t,{clientstylingurl:c}=t,{show:d}=t,{modaltype:l=""}=t,{isloading:v="false"}=t,{width:p}=t,{height:k}=t,$,b,m,f,H=!1,h,T;const x=()=>{h&&clearTimeout(h),$&&($.classList.add("closing"),window.dispatchEvent(new CustomEvent("manualClosePopup")),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},g=()=>X(this,null,function*(){if(!f||!m||H)return;T&&clearTimeout(h),H=!0;const a=f.offsetWidth,Nt=f.offsetHeight;n(8,f.style.width=`${a}px`,f),n(8,f.style.height=`${Nt}px`,f),f.offsetHeight,yield tt();const Wt=m.scrollHeight,Bt=m.scrollWidth;n(8,f.style.width=`${Bt}px`,f),n(8,f.style.height=`${Wt}px`,f),T=setTimeout(()=>{f&&(n(8,f.style.width="auto",f),n(8,f.style.height="auto",f)),H=!1},300)});Mt(()=>{if(tt().then(()=>{g()}),m){const a=new ResizeObserver(()=>{g()});return a.observe(m),()=>{a.disconnect()}}return()=>{h&&clearTimeout(h),T&&clearTimeout(h)}});function R(a){j[a?"unshift":"push"](()=>{m=a,n(7,m)})}function C(a){j[a?"unshift":"push"](()=>{f=a,n(8,f)})}function u(a){j[a?"unshift":"push"](()=>{$=a,n(6,$)})}function L(){p=this.clientWidth,k=this.clientHeight,n(0,p),n(1,k)}function It(a){j[a?"unshift":"push"](()=>{b=a,n(5,b)})}return e.$$set=a=>{"mbsource"in a&&n(10,s=a.mbsource),"clientstyling"in a&&n(11,r=a.clientstyling),"clientstylingurl"in a&&n(12,c=a.clientstylingurl),"show"in a&&n(2,d=a.show),"modaltype"in a&&n(3,l=a.modaltype),"isloading"in a&&n(4,v=a.isloading),"width"in a&&n(0,p=a.width),"height"in a&&n(1,k=a.height),"$$scope"in a&&n(13,o=a.$$scope)},e.$$.update=()=>{e.$$.dirty&16&&v&&tt().then(()=>{g()}),e.$$.dirty&2080&&r&&b&&jt(b,r),e.$$.dirty&4128&&c&&b&&zt(b,c),e.$$.dirty&1056&&s&&b&&Ht(b,`${s}.Style`)},[p,k,d,l,v,b,$,m,f,x,s,r,c,o,i,R,C,u,L,It]}class At extends Ot{constructor(t){super(),Et(this,t,pe,_e,yt,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},he)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),E()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),E()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),E()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading:t}),E()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),E()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),E()}}Tt(At,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);const $e=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=$e;exports.SvelteComponent=Ot;exports.append=y;exports.append_styles=Ct;exports.attr=_;exports.binding_callbacks=j;exports.component_subscribe=Vt;exports.create_custom_element=Tt;exports.destroy_each=Gt;exports.detach=S;exports.element=w;exports.ensure_array_like=ce;exports.flush=E;exports.init=Et;exports.insert=P;exports.is_function=ot;exports.listen=Z;exports.noop=U;exports.onMount=Mt;exports.run_all=B;exports.safe_not_equal=yt;exports.setClientStyling=jt;exports.setClientStylingURL=zt;exports.setStreamStyling=Ht;exports.set_custom_element_data=Kt;exports.set_data=Xt;exports.space=F;exports.subscribe=wt;exports.svg_element=nt;exports.text=vt;exports.toggle_class=O;