@everymatrix/cashier-method-details 1.45.0 → 1.45.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/components/CashierConfirmModal-BsoB5fQM.cjs +4 -0
  2. package/components/{CashierConfirmModal-B-t1-wAt.js → CashierConfirmModal-Dw8BnUfp.js} +168 -168
  3. package/components/{CashierError-DaumM6Zr.js → CashierError-B_iMgTfr.js} +28 -27
  4. package/components/CashierError-ClzxZoH7.cjs +5 -0
  5. package/components/CashierHeader-BU_vM2lH.cjs +1 -0
  6. package/components/CashierHeader-VE5z702l.js +360 -0
  7. package/components/{CashierIframeRedirect-Bilctj-5.js → CashierIframeRedirect-CUdjcENK.js} +72 -73
  8. package/components/CashierIframeRedirect-DSYHz0IC.cjs +1 -0
  9. package/components/{CashierMethodDetails-CJU3RjOA.js → CashierMethodDetails-5wGvaaR0.js} +674 -675
  10. package/components/CashierMethodDetails-DPowLei9.cjs +18 -0
  11. package/components/CashierModal-BFlGJozz.js +221 -0
  12. package/components/CashierModal-DljNagOg.cjs +1 -0
  13. package/components/CashierNotifications-BhCyEcyg.js +136 -0
  14. package/components/CashierNotifications-FlAVIynI.cjs +1 -0
  15. package/components/{CashierReceiptPage-DT7FhfRz.js → CashierReceiptPage-CY8dJVSv.js} +242 -243
  16. package/components/CashierReceiptPage-gWSm3RqW.cjs +1 -0
  17. package/components/CashierSpinner-DREUPtXI.js +71 -0
  18. package/components/CashierSpinner-DUwdQyI3.cjs +1 -0
  19. package/es2015/cashier-method-details.cjs +1 -1
  20. package/es2015/cashier-method-details.js +1 -1
  21. package/package.json +2 -2
  22. package/components/CashierConfirmModal-O8Y6vOPF.cjs +0 -4
  23. package/components/CashierError-CnDiY61e.cjs +0 -5
  24. package/components/CashierHeader-4ARwc1sM.cjs +0 -1
  25. package/components/CashierHeader-CYcLko5g.js +0 -361
  26. package/components/CashierIframeRedirect-BOPLcueW.cjs +0 -1
  27. package/components/CashierMethodDetails-7O4DrJHq.cjs +0 -18
  28. package/components/CashierModal-CdNYc0Aj.js +0 -220
  29. package/components/CashierModal-DjXj2L6b.cjs +0 -1
  30. package/components/CashierNotifications-BVX2JvTh.cjs +0 -1
  31. package/components/CashierNotifications-DOgyzpyH.js +0 -136
  32. package/components/CashierReceiptPage-D9_BjYHP.cjs +0 -1
  33. package/components/CashierSpinner-BUe-mWNE.js +0 -71
  34. package/components/CashierSpinner-C7awkOxo.cjs +0 -1
@@ -1,13 +1,12 @@
1
- import { S as U, b as q, f as w, c as F, a as Z, d as P, g as p, h as H, E as c, D as R, j as v, k, l as _, A as B, n as L, v as E, F as G, C as J } from "./CashierConfirmModal-B-t1-wAt.js";
2
- import { i as K, a as Q, $ as V } from "./CashierError-DaumM6Zr.js";
3
- K({
4
- fallbackLocale: "en"
5
- });
1
+ import { S as U, b as q, f as C, c as F, a as Z, d as P, g as y, h as H, E as c, D as R, j as w, k, l as L, A as B, n as v, v as E, F as G, C as J } from "./CashierConfirmModal-Dw8BnUfp.js";
2
+ import { a as K, i as Q, $ as V } from "./CashierError-B_iMgTfr.js";
6
3
  function T(i, e) {
7
- Q(i, e);
4
+ K(i, e);
8
5
  }
9
6
  function W(i) {
10
- V.set(i);
7
+ Q({
8
+ fallbackLocale: "en"
9
+ }), V.set(i);
11
10
  }
12
11
  const D = {
13
12
  en: {
@@ -28,14 +27,14 @@ if (typeof window != "undefined") {
28
27
  return function(...t) {
29
28
  try {
30
29
  return e.apply(this, t);
31
- } catch (n) {
32
- 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"))
30
+ } catch (l) {
31
+ if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
33
32
  return !1;
34
- throw n;
33
+ throw l;
35
34
  }
36
35
  };
37
36
  };
38
- customElements.define = i(customElements.define), import("./CashierHeader-CYcLko5g.js").then(({ default: e }) => {
37
+ customElements.define = i(customElements.define), import("./CashierHeader-VE5z702l.js").then(({ default: e }) => {
39
38
  !customElements.get("cashier-header") && customElements.define("cashier-header", e.element);
40
39
  });
41
40
  }
@@ -44,57 +43,57 @@ if (typeof window != "undefined") {
44
43
  return function(...t) {
45
44
  try {
46
45
  return e.apply(this, t);
47
- } catch (n) {
48
- 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"))
46
+ } catch (l) {
47
+ if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
49
48
  return !1;
50
- throw n;
49
+ throw l;
51
50
  }
52
51
  };
53
52
  };
54
- customElements.define = i(customElements.define), import("./CashierSpinner-BUe-mWNE.js").then(({ default: e }) => {
53
+ customElements.define = i(customElements.define), import("./CashierSpinner-DREUPtXI.js").then(({ default: e }) => {
55
54
  !customElements.get("cashier-spinner") && customElements.define("cashier-spinner", e.element);
56
55
  });
57
56
  }
58
57
  function X(i) {
59
- P(i, "svelte-ovvc53", ".CashierRedirectIframe.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{height:inherit;width:inherit}iframe.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{color:var(--mmw--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.svelte-ovvc53 svg.svelte-ovvc53 path.svelte-ovvc53{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton.svelte-ovvc53.svelte-ovvc53.svelte-ovvc53{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}");
58
+ P(i, "svelte-mxoveh", ".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--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(--mmw--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
59
  }
61
60
  function S(i) {
62
- let e, t, n;
61
+ let e, t, l;
63
62
  return {
64
63
  c() {
65
- e = p("div"), e.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" class="svelte-ovvc53"></path></svg>', v(e, "slot", "leftButton"), v(e, "class", "CashierHeaderLeftButton svelte-ovvc53");
64
+ e = y("div"), e.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>', w(e, "slot", "leftButton"), w(e, "class", "CashierHeaderLeftButton");
66
65
  },
67
66
  m(u, h) {
68
- k(u, e, h), t || (n = B(
67
+ k(u, e, h), t || (l = B(
69
68
  e,
70
69
  "click",
71
70
  /*close*/
72
71
  i[9]
73
72
  ), t = !0);
74
73
  },
75
- p: L,
74
+ p: v,
76
75
  d(u) {
77
- u && E(e), t = !1, n();
76
+ u && E(e), t = !1, l();
78
77
  }
79
78
  };
80
79
  }
81
80
  function j(i) {
82
- let e, t, n;
81
+ let e, t, l;
83
82
  return {
84
83
  c() {
85
- e = p("div"), e.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none" class="svelte-ovvc53"><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" class="svelte-ovvc53"></path></svg>', v(e, "slot", "rightButton"), v(e, "class", "CashierHeaderRightButton svelte-ovvc53");
84
+ e = y("div"), e.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>', w(e, "slot", "rightButton"), w(e, "class", "CashierHeaderRightButton");
86
85
  },
87
86
  m(u, h) {
88
- k(u, e, h), t || (n = B(
87
+ k(u, e, h), t || (l = B(
89
88
  e,
90
89
  "click",
91
90
  /*close*/
92
91
  i[9]
93
92
  ), t = !0);
94
93
  },
95
- p: L,
94
+ p: v,
96
95
  d(u) {
97
- u && E(e), t = !1, n();
96
+ u && E(e), t = !1, l();
98
97
  }
99
98
  };
100
99
  }
@@ -102,7 +101,7 @@ function I(i) {
102
101
  let e;
103
102
  return {
104
103
  c() {
105
- e = p("cashier-spinner"), c(
104
+ e = y("cashier-spinner"), c(
106
105
  e,
107
106
  "clientstylingurl",
108
107
  /*clientstylingurl*/
@@ -114,17 +113,17 @@ function I(i) {
114
113
  i[4]
115
114
  );
116
115
  },
117
- m(t, n) {
118
- k(t, e, n);
116
+ m(t, l) {
117
+ k(t, e, l);
119
118
  },
120
- p(t, n) {
121
- n & /*clientstylingurl*/
119
+ p(t, l) {
120
+ l & /*clientstylingurl*/
122
121
  32 && c(
123
122
  e,
124
123
  "clientstylingurl",
125
124
  /*clientstylingurl*/
126
125
  t[5]
127
- ), n & /*clientstyling*/
126
+ ), l & /*clientstyling*/
128
127
  16 && c(
129
128
  e,
130
129
  "clientstyling",
@@ -138,7 +137,7 @@ function I(i) {
138
137
  };
139
138
  }
140
139
  function Y(i) {
141
- let e, t, n, u, h, d, g, b, y, a = !!/*showbackbutton*/
140
+ let e, t, l, u, h, d, g, b, _, a = !!/*showbackbutton*/
142
141
  i[3] && /*showbackbutton*/
143
142
  i[3] !== "false" && S(i), r = (!/*showbackbutton*/
144
143
  i[3] || /*showbackbutton*/
@@ -148,7 +147,7 @@ function Y(i) {
148
147
  );
149
148
  return {
150
149
  c() {
151
- e = p("div"), t = p("cashier-header"), a && a.c(), n = H(), r && r.c(), u = H(), o && o.c(), h = H(), d = p("iframe"), c(
150
+ e = y("div"), t = y("cashier-header"), a && a.c(), l = H(), r && r.c(), u = H(), o && o.c(), h = H(), d = y("iframe"), c(
152
151
  t,
153
152
  "lang",
154
153
  /*lang*/
@@ -179,10 +178,10 @@ function Y(i) {
179
178
  /*clientstyling*/
180
179
  i[4]
181
180
  ), R(d.src, g = /*iframeurl*/
182
- i[1]) || v(d, "src", g), v(d, "frameborder", "0"), v(d, "class", "svelte-ovvc53"), v(e, "class", "CashierRedirectIframe svelte-ovvc53");
181
+ i[1]) || w(d, "src", g), w(d, "frameborder", "0"), w(e, "class", "CashierRedirectIframe");
183
182
  },
184
183
  m(s, f) {
185
- k(s, e, f), _(e, t), a && a.m(t, null), _(t, n), r && r.m(t, null), _(e, u), o && o.m(e, null), _(e, h), _(e, d), i[12](e), b || (y = B(
184
+ k(s, e, f), L(e, t), a && a.m(t, null), L(t, l), r && r.m(t, null), L(e, u), o && o.m(e, null), L(e, h), L(e, d), i[12](e), b || (_ = B(
186
185
  d,
187
186
  "load",
188
187
  /*load_handler*/
@@ -192,7 +191,7 @@ function Y(i) {
192
191
  p(s, [f]) {
193
192
  /*showbackbutton*/
194
193
  s[3] && /*showbackbutton*/
195
- s[3] !== "false" ? a ? a.p(s, f) : (a = S(s), a.c(), a.m(t, n)) : a && (a.d(1), a = null), !/*showbackbutton*/
194
+ s[3] !== "false" ? a ? a.p(s, f) : (a = S(s), a.c(), a.m(t, l)) : a && (a.d(1), a = null), !/*showbackbutton*/
196
195
  s[3] || /*showbackbutton*/
197
196
  s[3] === "false" ? r ? r.p(s, f) : (r = j(s), r.c(), r.m(t, null)) : r && (r.d(1), r = null), f & /*lang*/
198
197
  1 && c(
@@ -233,41 +232,41 @@ function Y(i) {
233
232
  ), /*isLoading*/
234
233
  s[8] ? o ? o.p(s, f) : (o = I(s), o.c(), o.m(e, h)) : o && (o.d(1), o = null), f & /*iframeurl*/
235
234
  2 && !R(d.src, g = /*iframeurl*/
236
- s[1]) && v(d, "src", g);
235
+ s[1]) && w(d, "src", g);
237
236
  },
238
- i: L,
239
- o: L,
237
+ i: v,
238
+ o: v,
240
239
  d(s) {
241
- s && E(e), a && a.d(), r && r.d(), o && o.d(), i[12](null), b = !1, y();
240
+ s && E(e), a && a.d(), r && r.d(), o && o.d(), i[12](null), b = !1, _();
242
241
  }
243
242
  };
244
243
  }
245
244
  function x(i, e, t) {
246
- let { lang: n = "en" } = e, { iframeurl: u } = e, { translationurl: h = "" } = e, { showbackbutton: d = "" } = e, { clientstyling: g = "" } = e, { clientstylingurl: b = "" } = e, { title: y = "" } = e, a = !0, r;
245
+ let { lang: l = "en" } = e, { iframeurl: u } = e, { translationurl: h = "" } = e, { showbackbutton: d = "" } = e, { clientstyling: g = "" } = e, { clientstylingurl: b = "" } = e, { title: _ = "" } = e, a = !0, r;
247
246
  G();
248
247
  const o = () => {
249
- let l = h;
250
- if (l)
251
- return fetch(l).then((m) => m.json()).then((m) => {
252
- Object.keys(m).forEach((C) => {
253
- T(C, m[C]);
248
+ let n = h;
249
+ if (n)
250
+ return fetch(n).then((m) => m.json()).then((m) => {
251
+ Object.keys(m).forEach((p) => {
252
+ T(p, m[p]);
254
253
  });
255
254
  }).catch((m) => {
256
255
  console.log(m);
257
256
  });
258
257
  };
259
- Object.keys(D).forEach((l) => {
260
- T(l, D[l]);
258
+ Object.keys(D).forEach((n) => {
259
+ T(n, D[n]);
261
260
  });
262
261
  const s = () => {
263
- W(n);
262
+ W(l);
264
263
  }, f = () => {
265
- let l = document.createElement("style");
266
- l.innerHTML = g, r.appendChild(l);
264
+ let n = document.createElement("style");
265
+ n.innerHTML = g, r.appendChild(n);
267
266
  }, O = () => {
268
- let l = new URL(b), m = document.createElement("style");
269
- fetch(l.href).then((C) => C.text()).then((C) => {
270
- m.innerHTML = C, setTimeout(
267
+ let n = new URL(b), m = document.createElement("style");
268
+ fetch(n.href).then((p) => p.text()).then((p) => {
269
+ m.innerHTML = p, setTimeout(
271
270
  () => {
272
271
  r.appendChild(m);
273
272
  },
@@ -283,30 +282,30 @@ function x(i, e, t) {
283
282
  composed: !0
284
283
  }
285
284
  ));
286
- }, M = (l) => {
287
- l.target.src && t(8, a = !1);
288
- }, z = (l) => M(l);
289
- function N(l) {
290
- J[l ? "unshift" : "push"](() => {
291
- r = l, t(7, r);
285
+ }, M = (n) => {
286
+ n.target.src && t(8, a = !1);
287
+ }, z = (n) => M(n);
288
+ function N(n) {
289
+ J[n ? "unshift" : "push"](() => {
290
+ r = n, t(7, r);
292
291
  });
293
292
  }
294
- return i.$$set = (l) => {
295
- "lang" in l && t(0, n = l.lang), "iframeurl" in l && t(1, u = l.iframeurl), "translationurl" in l && t(2, h = l.translationurl), "showbackbutton" in l && t(3, d = l.showbackbutton), "clientstyling" in l && t(4, g = l.clientstyling), "clientstylingurl" in l && t(5, b = l.clientstylingurl), "title" in l && t(6, y = l.title);
293
+ return i.$$set = (n) => {
294
+ "lang" in n && t(0, l = n.lang), "iframeurl" in n && t(1, u = n.iframeurl), "translationurl" in n && t(2, h = n.translationurl), "showbackbutton" in n && t(3, d = n.showbackbutton), "clientstyling" in n && t(4, g = n.clientstyling), "clientstylingurl" in n && t(5, b = n.clientstylingurl), "title" in n && t(6, _ = n.title);
296
295
  }, i.$$.update = () => {
297
296
  i.$$.dirty & /*lang*/
298
- 1 && n && s(), i.$$.dirty & /*translationurl*/
297
+ 1 && l && s(), i.$$.dirty & /*translationurl*/
299
298
  4 && h && o(), i.$$.dirty & /*clientstyling, customStylingContainer*/
300
299
  144 && g && r && f(), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
301
300
  160 && b && r && O();
302
301
  }, [
303
- n,
302
+ l,
304
303
  u,
305
304
  h,
306
305
  d,
307
306
  g,
308
307
  b,
309
- y,
308
+ _,
310
309
  r,
311
310
  a,
312
311
  A,
@@ -339,43 +338,43 @@ class $ extends U {
339
338
  return this.$$.ctx[0];
340
339
  }
341
340
  set lang(e) {
342
- this.$$set({ lang: e }), w();
341
+ this.$$set({ lang: e }), C();
343
342
  }
344
343
  get iframeurl() {
345
344
  return this.$$.ctx[1];
346
345
  }
347
346
  set iframeurl(e) {
348
- this.$$set({ iframeurl: e }), w();
347
+ this.$$set({ iframeurl: e }), C();
349
348
  }
350
349
  get translationurl() {
351
350
  return this.$$.ctx[2];
352
351
  }
353
352
  set translationurl(e) {
354
- this.$$set({ translationurl: e }), w();
353
+ this.$$set({ translationurl: e }), C();
355
354
  }
356
355
  get showbackbutton() {
357
356
  return this.$$.ctx[3];
358
357
  }
359
358
  set showbackbutton(e) {
360
- this.$$set({ showbackbutton: e }), w();
359
+ this.$$set({ showbackbutton: e }), C();
361
360
  }
362
361
  get clientstyling() {
363
362
  return this.$$.ctx[4];
364
363
  }
365
364
  set clientstyling(e) {
366
- this.$$set({ clientstyling: e }), w();
365
+ this.$$set({ clientstyling: e }), C();
367
366
  }
368
367
  get clientstylingurl() {
369
368
  return this.$$.ctx[5];
370
369
  }
371
370
  set clientstylingurl(e) {
372
- this.$$set({ clientstylingurl: e }), w();
371
+ this.$$set({ clientstylingurl: e }), C();
373
372
  }
374
373
  get title() {
375
374
  return this.$$.ctx[6];
376
375
  }
377
376
  set title(e) {
378
- this.$$set({ title: e }), w();
377
+ this.$$set({ title: e }), C();
379
378
  }
380
379
  }
381
380
  F($, { lang: {}, iframeurl: {}, translationurl: {}, showbackbutton: {}, clientstyling: {}, clientstylingurl: {}, title: {} }, [], [], !0);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BsoB5fQM.cjs"),C=require("./CashierError-ClzxZoH7.cjs");function y(i,e){C.addMessages(i,e)}function S(i){C.init({fallbackLocale:"en"}),C.$locale.set(i)}const v={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.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-BU_vM2lH.cjs")).then(({default:e})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",e.element)})}if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.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-DUwdQyI3.cjs")).then(({default:e})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",e.element)})}function q(i){t.append_styles(i,"svelte-mxoveh",".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--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(--mmw--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 e,n,s;return{c(){e=t.element("div"),e.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>',t.attr(e,"slot","leftButton"),t.attr(e,"class","CashierHeaderLeftButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function k(i){let e,n,s;return{c(){e=t.element("div"),e.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>',t.attr(e,"slot","rightButton"),t.attr(e,"class","CashierHeaderRightButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function E(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[5]),t.set_custom_element_data(e,"clientstyling",i[4])},m(n,s){t.insert(n,e,s)},p(n,s){s&32&&t.set_custom_element_data(e,"clientstylingurl",n[5]),s&16&&t.set_custom_element_data(e,"clientstyling",n[4])},d(n){n&&t.detach(e)}}}function D(i){let e,n,s,f,m,d,g,_,b,o=!!i[3]&&i[3]!=="false"&&L(i),a=(!i[3]||i[3]==="false")&&k(i),c=i[8]&&E(i);return{c(){e=t.element("div"),n=t.element("cashier-header"),o&&o.c(),s=t.space(),a&&a.c(),f=t.space(),c&&c.c(),m=t.space(),d=t.element("iframe"),t.set_custom_element_data(n,"lang",i[0]),t.set_custom_element_data(n,"translationurl",i[2]),t.set_custom_element_data(n,"title",i[6]),t.set_custom_element_data(n,"showbackbutton",i[3]),t.set_custom_element_data(n,"clientstylingurl",i[5]),t.set_custom_element_data(n,"clientstyling",i[4]),t.src_url_equal(d.src,g=i[1])||t.attr(d,"src",g),t.attr(d,"frameborder","0"),t.attr(e,"class","CashierRedirectIframe")},m(r,u){t.insert(r,e,u),t.append(e,n),o&&o.m(n,null),t.append(n,s),a&&a.m(n,null),t.append(e,f),c&&c.m(e,null),t.append(e,m),t.append(e,d),i[12](e),_||(b=t.listen(d,"load",i[11]),_=!0)},p(r,[u]){r[3]&&r[3]!=="false"?o?o.p(r,u):(o=L(r),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,u):(a=k(r),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u&1&&t.set_custom_element_data(n,"lang",r[0]),u&4&&t.set_custom_element_data(n,"translationurl",r[2]),u&64&&t.set_custom_element_data(n,"title",r[6]),u&8&&t.set_custom_element_data(n,"showbackbutton",r[3]),u&32&&t.set_custom_element_data(n,"clientstylingurl",r[5]),u&16&&t.set_custom_element_data(n,"clientstyling",r[4]),r[8]?c?c.p(r,u):(c=E(r),c.c(),c.m(e,m)):c&&(c.d(1),c=null),u&2&&!t.src_url_equal(d.src,g=r[1])&&t.attr(d,"src",g)},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o&&o.d(),a&&a.d(),c&&c.d(),i[12](null),_=!1,b()}}}function O(i,e,n){let{lang:s="en"}=e,{iframeurl:f}=e,{translationurl:m=""}=e,{showbackbutton:d=""}=e,{clientstyling:g=""}=e,{clientstylingurl:_=""}=e,{title:b=""}=e,o=!0,a;t.createEventDispatcher();const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{y(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(v).forEach(l=>{y(l,v[l])});const r=()=>{S(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},M=()=>{let l=new URL(_),h=document.createElement("style");fetch(l.href).then(p=>p.text()).then(p=>{h.innerHTML=p,setTimeout(()=>{a.appendChild(h)},1)})},B=()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},w=l=>{l.target.src&&n(8,o=!1)},R=l=>w(l);function T(l){t.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(7,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),"clientstyling"in l&&n(4,g=l.clientstyling),"clientstylingurl"in l&&n(5,_=l.clientstylingurl),"title"in l&&n(6,b=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&r(),i.$$.dirty&4&&m&&c(),i.$$.dirty&144&&g&&a&&u(),i.$$.dirty&160&&_&&a&&M()},[s,f,m,d,g,_,b,a,o,B,w,R,T]}class H extends t.SvelteComponent{constructor(e){super(),t.init(this,e,O,D,t.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},q)}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(e){this.$$set({iframeurl:e}),t.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get title(){return this.$$.ctx[6]}set title(e){this.$$set({title:e}),t.flush()}}t.create_custom_element(H,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=H;