@everymatrix/cashier-page 1.75.0 → 1.75.1

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 (94) hide show
  1. package/components/{CashierError-BIqFaX3H.js → CashierError-C-zeMshr.js} +1967 -1077
  2. package/components/{CashierError-BWuNinWy.js → CashierError-DW5fJt8u.js} +1938 -1085
  3. package/components/CashierError-Do2yNrqx.cjs +8 -0
  4. package/components/{CashierHeader-CXaZ-6Ua.js → CashierHeader-BvRhx3QL.js} +61 -62
  5. package/components/{CashierHeader-Ca2cghIW.js → CashierHeader-DO8Jda8y.js} +62 -63
  6. package/components/CashierHeader-b4lqjMMD.cjs +1 -0
  7. package/components/{CashierIframeRedirect-ChyzshIQ.js → CashierIframeRedirect-BeOg9j9R.js} +54 -55
  8. package/components/{CashierIframeRedirect-7GBPLJHr.js → CashierIframeRedirect-DaYR4ZSu.js} +48 -49
  9. package/components/CashierIframeRedirect-tAMQ7K0U.cjs +1 -0
  10. package/components/{CashierMethodDetails-BuRbRo-R.js → CashierMethodDetails-3jy1FDno.js} +3537 -2932
  11. package/components/CashierMethodDetails-BccXMt8_.cjs +99 -0
  12. package/components/{CashierMethodDetails-CEFupmfP.js → CashierMethodDetails-D1Rbykqx.js} +3510 -2904
  13. package/components/{CashierMethodsList-BqmFmDOC.js → CashierMethodsList-B2qR503A.js} +84 -85
  14. package/components/CashierMethodsList-CscGn4Gv.cjs +1 -0
  15. package/components/{CashierMethodsList-CB_m5hK-.js → CashierMethodsList-LrhQVCu_.js} +91 -92
  16. package/components/{CashierModal-Bh6E-PDS.js → CashierModal-BU4NlVMY.js} +36 -36
  17. package/components/CashierModal-CVXS5J4T.cjs +1 -0
  18. package/components/{CashierModal-CTayVmDw.js → CashierModal-DvL5giYo.js} +31 -31
  19. package/components/{CashierNotifications-CM4Cti_x.js → CashierNotifications-BD7efj1m.js} +20 -20
  20. package/components/CashierNotifications-BRJ9mXv_.cjs +1 -0
  21. package/components/{CashierNotifications-77FpsD4N.js → CashierNotifications-CUz6gwXF.js} +19 -19
  22. package/components/CashierPage-BbXHTH84.cjs +1 -0
  23. package/components/{CashierPage-Dq-XwH-T.js → CashierPage-CW6lgArf.js} +971 -874
  24. package/components/{CashierPage-B90j2bUX.js → CashierPage-Db8ZicVP.js} +971 -874
  25. package/components/{CashierReceiptPage-BsBy8_a9.js → CashierReceiptPage-Br9U1RfK.js} +95 -96
  26. package/components/{CashierReceiptPage-TGTe-vYp.js → CashierReceiptPage-CBbzq7O6.js} +118 -119
  27. package/components/CashierReceiptPage-Cf5pCh8Z.cjs +1 -0
  28. package/components/{CashierSessionExpirationModal-D7u1LLSa.js → CashierSessionExpirationModal-B8lZyvQF.js} +52 -62
  29. package/components/{CashierSessionExpirationModal-Bwks132l.js → CashierSessionExpirationModal-BZLQ4F3T.js} +52 -62
  30. package/components/CashierSessionExpirationModal-CqZBSAuZ.cjs +2 -0
  31. package/components/CashierSpinner-B3kDZ7DD.cjs +1 -0
  32. package/components/{CashierSpinner-sEBjrLfs.js → CashierSpinner-CWDfPPKy.js} +14 -14
  33. package/components/{CashierSpinner-C6RPqoHx.js → CashierSpinner-u67Lmpn1.js} +16 -16
  34. package/components/{CashierTransactionHistory-DiONlMGi.js → CashierTransactionHistory-BmG7XPkF.js} +141 -142
  35. package/components/{CashierTransactionHistory-CkMKi6Fz.js → CashierTransactionHistory-C81J2b3z.js} +178 -179
  36. package/components/CashierTransactionHistory-DVJeMS7y.cjs +1 -0
  37. package/components/{CashierVerifications-B63zidU5.js → CashierVerifications-BluIxyAW.js} +40 -41
  38. package/components/{CashierVerifications-DkUcWYyo.js → CashierVerifications-DMMGPuTt.js} +49 -50
  39. package/components/CashierVerifications-DbTUG014.cjs +1 -0
  40. package/components/{TxnStatusIcon-Bqtf3sG3.js → TxnStatusIcon-DK8gf5Ec.js} +21 -21
  41. package/components/{TxnStatusIcon-fiVxFVX_.js → TxnStatusIcon-Degz9oJQ.js} +25 -25
  42. package/components/TxnStatusIcon-DlBt7swO.cjs +1 -0
  43. package/components/{TxnTypeIcons-CA9VDuG4.js → TxnTypeIcons-Cjawm9IS.js} +14 -14
  44. package/components/TxnTypeIcons-DH1CxqvE.cjs +1 -0
  45. package/components/{TxnTypeIcons-DMjccElF.js → TxnTypeIcons-DdfELKt3.js} +14 -14
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/stencil/index-97d17652--F7PvMq9.js +542 -0
  51. package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
  52. package/stencil/index-97d17652-CCFHkzJw.js +558 -0
  53. package/stencil/index-b2193545-BoSqyMpB.js +519 -0
  54. package/stencil/index-b2193545-D4dOaNlR.js +503 -0
  55. package/stencil/index-b2193545-DGHOe8n4.cjs +1 -0
  56. package/stencil/{ui-image-4dZyD9yF.js → ui-image-BWJXFWH1.js} +1 -1
  57. package/stencil/{ui-image-CER01gdl.cjs → ui-image-ByEXiBzx.cjs} +1 -1
  58. package/stencil/{ui-image-6u7OR3Eo.js → ui-image-DIEeZy5u.js} +1 -1
  59. package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
  60. package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
  61. package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
  62. package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-Bm97-wkj.js} +2 -2
  63. package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
  64. package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-qO3reSlr.js} +2 -2
  65. package/stencil/{ui-skeleton-BTr272EW.js → ui-skeleton-4-zrLsIW.js} +2 -2
  66. package/stencil/{ui-skeleton-P4PO_42z.js → ui-skeleton-9boHSjtG.js} +2 -2
  67. package/stencil/{ui-skeleton-gIFE_2eg.cjs → ui-skeleton-DgAs7VA3.cjs} +1 -1
  68. package/stencil/{ui-skeleton-ae35c6f2-BIdXBK8D.js → ui-skeleton-ae35c6f2-8tYGV8SR.js} +1 -1
  69. package/stencil/{ui-skeleton-ae35c6f2-D-MGUxCy.cjs → ui-skeleton-ae35c6f2-DLHrpWJM.cjs} +1 -1
  70. package/stencil/{ui-skeleton-ae35c6f2-C7WHUwAT.js → ui-skeleton-ae35c6f2-IN_dPA5_.js} +1 -1
  71. package/components/CashierConfirmModal-Dx60VYf6.js +0 -1165
  72. package/components/CashierConfirmModal-irSMDzV_.cjs +0 -4
  73. package/components/CashierConfirmModal-rwhmlwC5.js +0 -1128
  74. package/components/CashierError-CORG04aE.cjs +0 -18
  75. package/components/CashierHeader-Dl6r6hK0.cjs +0 -1
  76. package/components/CashierIframeRedirect-BjLvrvKL.cjs +0 -1
  77. package/components/CashierMethodDetails-DxYPk7Br.cjs +0 -86
  78. package/components/CashierMethodsList-BI_GHUxf.cjs +0 -1
  79. package/components/CashierModal-BwVWBmwZ.cjs +0 -1
  80. package/components/CashierNotifications-YOOhP2yz.cjs +0 -1
  81. package/components/CashierPage-Bi90dl_Y.cjs +0 -1
  82. package/components/CashierReceiptPage-C-5P1j5e.cjs +0 -1
  83. package/components/CashierSessionExpirationModal-lqr-I0nF.cjs +0 -2
  84. package/components/CashierSpinner-BhE9RAhI.cjs +0 -1
  85. package/components/CashierTransactionHistory-BSO5XGtr.cjs +0 -1
  86. package/components/CashierVerifications-J6r2bd7v.cjs +0 -1
  87. package/components/TxnStatusIcon-C9hNDByt.cjs +0 -1
  88. package/components/TxnTypeIcons-D6ZYjaVc.cjs +0 -1
  89. package/stencil/index-97d17652-BD-QREJe.js +0 -558
  90. package/stencil/index-97d17652-DJqGt8q2.js +0 -542
  91. package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
  92. package/stencil/index-b2193545-BhpttWPO.cjs +0 -1
  93. package/stencil/index-b2193545-DWKmtYUG.js +0 -503
  94. package/stencil/index-b2193545-Dfy4Cgny.js +0 -519
@@ -1,5 +1,4 @@
1
- import { S as N, b as q, f as b, c as U, a as Z, d as F, g as p, h as E, I as a, H as S, j as w, k as v, l as _, D as H, n as L, v as k, x as G, y as P, z as J, F as K, G as Q } from "./CashierConfirmModal-Dx60VYf6.js";
2
- import { a as V, i as W, $ as X } from "./CashierError-BIqFaX3H.js";
1
+ import { a as q, i as N, $ as U, S as Z, b as F, s as G, f as b, c as P, y as L, e as k, F as a, G as S, o as w, k as v, l as _, z as H, m as p, n as E, q as J, x as K, A as Q, B as V, C as W, D as X } from "./CashierError-C-zeMshr.js";
3
2
  if (typeof window != "undefined") {
4
3
  let i = function(e) {
5
4
  return function(...t) {
@@ -12,33 +11,17 @@ if (typeof window != "undefined") {
12
11
  }
13
12
  };
14
13
  };
15
- customElements.define = i(customElements.define), import("./CashierHeader-Ca2cghIW.js").then(({ default: e }) => {
14
+ customElements.define = i(customElements.define), import("./CashierHeader-BvRhx3QL.js").then(({ default: e }) => {
16
15
  !customElements.get("cashier-header") && customElements.define("cashier-header", e.element);
17
16
  });
18
17
  }
19
- if (typeof window != "undefined") {
20
- let i = function(e) {
21
- return function(...t) {
22
- try {
23
- return e.apply(this, t);
24
- } catch (n) {
25
- if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
26
- return !1;
27
- throw n;
28
- }
29
- };
30
- };
31
- customElements.define = i(customElements.define), import("./CashierSpinner-C6RPqoHx.js").then(({ default: e }) => {
32
- !customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
33
- });
34
- }
35
18
  function R(i, e) {
36
- V(i, e);
19
+ q(i, e);
37
20
  }
38
21
  function Y(i) {
39
- W({
22
+ N({
40
23
  fallbackLocale: "en"
41
- }), X.set(i);
24
+ }), U.set(i);
42
25
  }
43
26
  const D = {
44
27
  en: {
@@ -57,8 +40,24 @@ const D = {
57
40
  redirectHeader: "Deposit redirect"
58
41
  }
59
42
  };
43
+ if (typeof window != "undefined") {
44
+ let i = function(e) {
45
+ return function(...t) {
46
+ try {
47
+ return e.apply(this, t);
48
+ } catch (n) {
49
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
50
+ return !1;
51
+ throw n;
52
+ }
53
+ };
54
+ };
55
+ customElements.define = i(customElements.define), import("./CashierSpinner-u67Lmpn1.js").then(({ default: e }) => {
56
+ !customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
57
+ });
58
+ }
60
59
  function x(i) {
61
- F(i, "svelte-wuv80u", ".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--emw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--emw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
60
+ P(i, "svelte-wuv80u", ".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--emw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--emw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
62
61
  }
63
62
  function I(i) {
64
63
  let e, t, n;
@@ -80,7 +79,7 @@ function I(i) {
80
79
  }
81
80
  };
82
81
  }
83
- function j(i) {
82
+ function O(i) {
84
83
  let e, t, n;
85
84
  return {
86
85
  c() {
@@ -100,7 +99,7 @@ function j(i) {
100
99
  }
101
100
  };
102
101
  }
103
- function O(i) {
102
+ function T(i) {
104
103
  let e;
105
104
  return {
106
105
  c() {
@@ -151,13 +150,13 @@ function O(i) {
151
150
  };
152
151
  }
153
152
  function $(i) {
154
- let e, t, n, f, h, m, d, g, y, o = !!/*showbackbutton*/
153
+ let e, t, n, f, h, m, d, g, C, o = !!/*showbackbutton*/
155
154
  i[3] && /*showbackbutton*/
156
155
  i[3] !== "false" && I(i), r = (!/*showbackbutton*/
157
156
  i[3] || /*showbackbutton*/
158
- i[3] === "false") && j(i), c = (
157
+ i[3] === "false") && O(i), c = (
159
158
  /*isLoading*/
160
- i[9] && O(i)
159
+ i[9] && T(i)
161
160
  );
162
161
  return {
163
162
  c() {
@@ -200,7 +199,7 @@ function $(i) {
200
199
  i[1]) || w(m, "src", d), w(m, "frameborder", "0"), w(e, "class", "CashierRedirectIframe");
201
200
  },
202
201
  m(l, u) {
203
- v(l, e, u), _(e, t), o && o.m(t, null), _(t, n), r && r.m(t, null), _(e, f), c && c.m(e, null), _(e, h), _(e, m), i[13](e), g || (y = H(
202
+ v(l, e, u), _(e, t), o && o.m(t, null), _(t, n), r && r.m(t, null), _(e, f), c && c.m(e, null), _(e, h), _(e, m), i[13](e), g || (C = H(
204
203
  m,
205
204
  "load",
206
205
  /*load_handler*/
@@ -212,7 +211,7 @@ function $(i) {
212
211
  l[3] && /*showbackbutton*/
213
212
  l[3] !== "false" ? o ? o.p(l, u) : (o = I(l), o.c(), o.m(t, n)) : o && (o.d(1), o = null), !/*showbackbutton*/
214
213
  l[3] || /*showbackbutton*/
215
- l[3] === "false" ? r ? r.p(l, u) : (r = j(l), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u & /*lang*/
214
+ l[3] === "false" ? r ? r.p(l, u) : (r = O(l), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u & /*lang*/
216
215
  1 && a(
217
216
  t,
218
217
  "lang",
@@ -255,28 +254,28 @@ function $(i) {
255
254
  /*mbsource*/
256
255
  l[4]
257
256
  ), /*isLoading*/
258
- l[9] ? c ? c.p(l, u) : (c = O(l), c.c(), c.m(e, h)) : c && (c.d(1), c = null), u & /*iframeurl*/
257
+ l[9] ? c ? c.p(l, u) : (c = T(l), c.c(), c.m(e, h)) : c && (c.d(1), c = null), u & /*iframeurl*/
259
258
  2 && !S(m.src, d = /*iframeurl*/
260
259
  l[1]) && w(m, "src", d);
261
260
  },
262
261
  i: L,
263
262
  o: L,
264
263
  d(l) {
265
- l && k(e), o && o.d(), r && r.d(), c && c.d(), i[13](null), g = !1, y();
264
+ l && k(e), o && o.d(), r && r.d(), c && c.d(), i[13](null), g = !1, C();
266
265
  }
267
266
  };
268
267
  }
269
268
  function ee(i, e, t) {
270
- let { lang: n = "en" } = e, { iframeurl: f } = e, { translationurl: h = "" } = e, { showbackbutton: m = "" } = e, { mbsource: d } = e, { clientstyling: g } = e, { clientstylingurl: y } = e, { title: o = "" } = e, r, c = !0;
269
+ let { lang: n = "en" } = e, { iframeurl: f } = e, { translationurl: h = "" } = e, { showbackbutton: m = "" } = e, { mbsource: d } = e, { clientstyling: g } = e, { clientstylingurl: C } = e, { title: o = "" } = e, r, c = !0;
271
270
  const l = () => {
272
271
  let s = h;
273
272
  if (s)
274
- return fetch(s).then((C) => C.json()).then((C) => {
275
- Object.keys(C).forEach((M) => {
276
- R(M, C[M]);
273
+ return fetch(s).then((y) => y.json()).then((y) => {
274
+ Object.keys(y).forEach((M) => {
275
+ R(M, y[M]);
277
276
  });
278
- }).catch((C) => {
279
- console.log(C);
277
+ }).catch((y) => {
278
+ console.log(y);
280
279
  });
281
280
  };
282
281
  Object.keys(D).forEach((s) => {
@@ -284,12 +283,12 @@ function ee(i, e, t) {
284
283
  });
285
284
  const u = () => {
286
285
  Y(n);
287
- }, T = () => {
286
+ }, j = () => {
288
287
  window.postMessage({ type: "CloseIframe" }, window.location.href);
289
288
  }, B = (s) => {
290
289
  s.target.src && t(9, c = !1);
291
290
  };
292
- G(() => () => {
291
+ J(() => () => {
293
292
  });
294
293
  const z = (s) => B(s);
295
294
  function A(s) {
@@ -298,14 +297,14 @@ function ee(i, e, t) {
298
297
  });
299
298
  }
300
299
  return i.$$set = (s) => {
301
- "lang" in s && t(0, n = s.lang), "iframeurl" in s && t(1, f = s.iframeurl), "translationurl" in s && t(2, h = s.translationurl), "showbackbutton" in s && t(3, m = s.showbackbutton), "mbsource" in s && t(4, d = s.mbsource), "clientstyling" in s && t(5, g = s.clientstyling), "clientstylingurl" in s && t(6, y = s.clientstylingurl), "title" in s && t(7, o = s.title);
300
+ "lang" in s && t(0, n = s.lang), "iframeurl" in s && t(1, f = s.iframeurl), "translationurl" in s && t(2, h = s.translationurl), "showbackbutton" in s && t(3, m = s.showbackbutton), "mbsource" in s && t(4, d = s.mbsource), "clientstyling" in s && t(5, g = s.clientstyling), "clientstylingurl" in s && t(6, C = s.clientstylingurl), "title" in s && t(7, o = s.title);
302
301
  }, i.$$.update = () => {
303
302
  i.$$.dirty & /*lang*/
304
303
  1 && n && u(), i.$$.dirty & /*translationurl*/
305
304
  4 && h && l(), i.$$.dirty & /*clientstyling, customStylingContainer*/
306
305
  288 && g && r && Q(r, g), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
307
- 320 && y && r && P(r, y), i.$$.dirty & /*mbsource, customStylingContainer*/
308
- 272 && d && r && J(r, `${d}.Style`);
306
+ 320 && C && r && V(r, C), i.$$.dirty & /*mbsource, customStylingContainer*/
307
+ 272 && d && r && W(r, `${d}.Style`);
309
308
  }, [
310
309
  n,
311
310
  f,
@@ -313,24 +312,24 @@ function ee(i, e, t) {
313
312
  m,
314
313
  d,
315
314
  g,
316
- y,
315
+ C,
317
316
  o,
318
317
  r,
319
318
  c,
320
- T,
319
+ j,
321
320
  B,
322
321
  z,
323
322
  A
324
323
  ];
325
324
  }
326
- class te extends N {
325
+ class te extends Z {
327
326
  constructor(e) {
328
- super(), q(
327
+ super(), F(
329
328
  this,
330
329
  e,
331
330
  ee,
332
331
  $,
333
- Z,
332
+ G,
334
333
  {
335
334
  lang: 0,
336
335
  iframeurl: 1,
@@ -393,7 +392,7 @@ class te extends N {
393
392
  this.$$set({ title: e }), b();
394
393
  }
395
394
  }
396
- U(te, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
395
+ X(te, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
397
396
  export {
398
397
  te as default
399
398
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierError-Do2yNrqx.cjs");if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-b4lqjMMD.cjs")).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}function C(i,t){e.addMessages(i,t)}function B(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const p={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"},"en-us":{redirectHeader:"Deposit redirect"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-B3kDZ7DD.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}function R(i){e.append_styles(i,"svelte-wuv80u",".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--emw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--emw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}function L(i){let t,n,s;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',e.attr(t,"slot","leftButton"),e.attr(t,"class","CashierHeaderLeftButton")},m(f,m){e.insert(f,t,m),n||(s=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,s()}}}function v(i){let t,n,s;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',e.attr(t,"slot","rightButton"),e.attr(t,"class","CashierHeaderRightButton")},m(f,m){e.insert(f,t,m),n||(s=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,s()}}}function k(i){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",i[6]),e.set_custom_element_data(t,"clientstyling",i[5]),e.set_custom_element_data(t,"mbsource",i[4])},m(n,s){e.insert(n,t,s)},p(n,s){s&64&&e.set_custom_element_data(t,"clientstylingurl",n[6]),s&32&&e.set_custom_element_data(t,"clientstyling",n[5]),s&16&&e.set_custom_element_data(t,"mbsource",n[4])},d(n){n&&e.detach(t)}}}function q(i){let t,n,s,f,m,d,h,g,_,o=!!i[3]&&i[3]!=="false"&&L(i),a=(!i[3]||i[3]==="false")&&v(i),u=i[9]&&k(i);return{c(){t=e.element("div"),n=e.element("cashier-header"),o&&o.c(),s=e.space(),a&&a.c(),f=e.space(),u&&u.c(),m=e.space(),d=e.element("iframe"),e.set_custom_element_data(n,"lang",i[0]),e.set_custom_element_data(n,"translationurl",i[2]),e.set_custom_element_data(n,"title",i[7]),e.set_custom_element_data(n,"showbackbutton",i[3]),e.set_custom_element_data(n,"clientstylingurl",i[6]),e.set_custom_element_data(n,"clientstyling",i[5]),e.set_custom_element_data(n,"mbsource",i[4]),e.src_url_equal(d.src,h=i[1])||e.attr(d,"src",h),e.attr(d,"frameborder","0"),e.attr(t,"class","CashierRedirectIframe")},m(r,c){e.insert(r,t,c),e.append(t,n),o&&o.m(n,null),e.append(n,s),a&&a.m(n,null),e.append(t,f),u&&u.m(t,null),e.append(t,m),e.append(t,d),i[13](t),g||(_=e.listen(d,"load",i[12]),g=!0)},p(r,[c]){r[3]&&r[3]!=="false"?o?o.p(r,c):(o=L(r),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,c):(a=v(r),a.c(),a.m(n,null)):a&&(a.d(1),a=null),c&1&&e.set_custom_element_data(n,"lang",r[0]),c&4&&e.set_custom_element_data(n,"translationurl",r[2]),c&128&&e.set_custom_element_data(n,"title",r[7]),c&8&&e.set_custom_element_data(n,"showbackbutton",r[3]),c&64&&e.set_custom_element_data(n,"clientstylingurl",r[6]),c&32&&e.set_custom_element_data(n,"clientstyling",r[5]),c&16&&e.set_custom_element_data(n,"mbsource",r[4]),r[9]?u?u.p(r,c):(u=k(r),u.c(),u.m(t,m)):u&&(u.d(1),u=null),c&2&&!e.src_url_equal(d.src,h=r[1])&&e.attr(d,"src",h)},i:e.noop,o:e.noop,d(r){r&&e.detach(t),o&&o.d(),a&&a.d(),u&&u.d(),i[13](null),g=!1,_()}}}function D(i,t,n){let{lang:s="en"}=t,{iframeurl:f}=t,{translationurl:m=""}=t,{showbackbutton:d=""}=t,{mbsource:h}=t,{clientstyling:g}=t,{clientstylingurl:_}=t,{title:o=""}=t,a,u=!0;const r=()=>{let l=m;if(l)return fetch(l).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{C(y,b[y])})}).catch(b=>{console.log(b)})};Object.keys(p).forEach(l=>{C(l,p[l])});const c=()=>{B(s)},H=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},w=l=>{l.target.src&&n(9,u=!1)};e.onMount(()=>()=>{});const M=l=>w(l);function S(l){e.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(8,a)})}return i.$$set=l=>{"lang"in l&&n(0,s=l.lang),"iframeurl"in l&&n(1,f=l.iframeurl),"translationurl"in l&&n(2,m=l.translationurl),"showbackbutton"in l&&n(3,d=l.showbackbutton),"mbsource"in l&&n(4,h=l.mbsource),"clientstyling"in l&&n(5,g=l.clientstyling),"clientstylingurl"in l&&n(6,_=l.clientstylingurl),"title"in l&&n(7,o=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&c(),i.$$.dirty&4&&m&&r(),i.$$.dirty&288&&g&&a&&e.setClientStyling(a,g),i.$$.dirty&320&&_&&a&&e.setClientStylingURL(a,_),i.$$.dirty&272&&h&&a&&e.setStreamStyling(a,`${h}.Style`)},[s,f,m,d,h,g,_,o,a,u,H,w,M,S]}class E extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,D,q,e.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,mbsource:4,clientstyling:5,clientstylingurl:6,title:7},R)}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(t){this.$$set({iframeurl:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(t){this.$$set({showbackbutton:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get title(){return this.$$.ctx[7]}set title(t){this.$$set({title:t}),e.flush()}}e.create_custom_element(E,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},mbsource:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=E;