@everymatrix/cashier-page 1.53.12 → 1.54.0

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 (33) hide show
  1. package/components/CashierConfirmModal-BWwXFa2X.js +1052 -0
  2. package/components/CashierConfirmModal-DvPjAtJP.cjs +4 -0
  3. package/components/{CashierError-CNghn61_.js → CashierError-DNpUb5Mm.js} +16 -16
  4. package/components/CashierError-Dmdtq5Bw.cjs +5 -0
  5. package/components/CashierHeader-CQUqVL_i.cjs +1 -0
  6. package/components/{CashierHeader-Cukt_6q5.js → CashierHeader-jyno14ok.js} +2 -2
  7. package/components/{CashierIframeRedirect-CfOyb27d.js → CashierIframeRedirect-Cz4tv7-x.js} +6 -6
  8. package/components/CashierIframeRedirect-D-OfVohj.cjs +1 -0
  9. package/components/CashierMethodDetails-CBOh1gd0.cjs +18 -0
  10. package/components/{CashierMethodDetails-BIl7Is4q.js → CashierMethodDetails-DhPcp2tp.js} +1535 -1521
  11. package/components/CashierMethodsList-BXQ8slk2.cjs +1 -0
  12. package/components/{CashierMethodsList-sDyTLsi_.js → CashierMethodsList-tNPWey2d.js} +175 -164
  13. package/components/{CashierModal-BvsZYr3E.js → CashierModal-BZinftgA.js} +1 -1
  14. package/components/CashierModal-FVpPS0Cg.cjs +1 -0
  15. package/components/CashierNotifications-Dt9rQ2vt.cjs +1 -0
  16. package/components/{CashierNotifications-DLiOLPVS.js → CashierNotifications-VNlsq9BM.js} +1 -1
  17. package/components/{CashierPage-ChYGXNFh.js → CashierPage-Ci16qWoB.js} +16 -16
  18. package/components/CashierPage-_uE0Wp1v.cjs +1 -0
  19. package/components/{CashierReceiptPage-BnZNWRHD.js → CashierReceiptPage-BrSqthh1.js} +109 -108
  20. package/components/CashierReceiptPage-khlZnWa5.cjs +1 -0
  21. package/components/{CashierSessionExpirationModal-m8mfQG7I.js → CashierSessionExpirationModal-BaJ2BLlM.js} +64 -64
  22. package/components/CashierSessionExpirationModal-Ynzjj3_r.cjs +2 -0
  23. package/components/CashierSpinner-6i7TRj04.cjs +1 -0
  24. package/components/{CashierSpinner-BGK4UpXs.js → CashierSpinner-DLOGBpHm.js} +1 -1
  25. package/components/{CashierVerifications-ghULlvRf.js → CashierVerifications-CAlJv-1M.js} +149 -145
  26. package/components/CashierVerifications-KeQfHgf0.cjs +1 -0
  27. package/components/{CashierVideoModal-CIyp7q0i.js → CashierVideoModal-CdG4dnYx.js} +1 -1
  28. package/components/CashierVideoModal-Cgjg5Mzz.cjs +1 -0
  29. package/es2015/cashier-page.cjs +1 -0
  30. package/es2015/cashier-page.js +16 -0
  31. package/package.json +17 -12
  32. package/components/CashierConfirmModal-bl1anpXG.js +0 -1015
  33. package/esnext/cashier-page.js +0 -14
@@ -1,15 +1,27 @@
1
- import { S as Se, b as Ce, f as v, c as Ee, a as Te, d as Ae, h as S, x as Ne, k as j, n as ne, v as z, w as xe, Q as Pe, G as De, g as p, E as f, K as ie, j as w, l as c, M as Fe, y as x, D as le, I as oe, A as ee, z as P, r as Oe, C as Ue } from "./CashierConfirmModal-bl1anpXG.js";
2
- import { a as je, i as ze, $ as He, b as Re } from "./CashierError-CNghn61_.js";
3
- import { d as re, u as We } from "./CashierMethodDetails-BIl7Is4q.js";
4
- function ae(t, e) {
5
- je(t, e);
1
+ var Ae = Object.defineProperty, Ne = Object.defineProperties;
2
+ var xe = Object.getOwnPropertyDescriptors;
3
+ var le = Object.getOwnPropertySymbols;
4
+ var Pe = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
5
+ var oe = (t, e, s) => e in t ? Ae(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ee = (t, e) => {
6
+ for (var s in e || (e = {}))
7
+ Pe.call(e, s) && oe(t, s, e[s]);
8
+ if (le)
9
+ for (var s of le(e))
10
+ De.call(e, s) && oe(t, s, e[s]);
11
+ return t;
12
+ }, te = (t, e) => Ne(t, xe(e));
13
+ import { S as Fe, b as Oe, f as v, c as Ue, a as je, d as ze, h as S, x as He, k as j, n as re, v as z, w as Re, Q as We, G as Be, g as p, E as f, K as ae, j as w, l as c, M as Ie, y as x, D as ce, I as me, A as se, z as P, r as qe, C as Ge } from "./CashierConfirmModal-BWwXFa2X.js";
14
+ import { a as Ye, i as Je, $ as Ve, b as Xe } from "./CashierError-DNpUb5Mm.js";
15
+ import { d as ue, u as Ke } from "./CashierMethodDetails-DhPcp2tp.js";
16
+ function de(t, e) {
17
+ Ye(t, e);
6
18
  }
7
- function Be(t) {
8
- ze({
19
+ function Qe(t) {
20
+ Je({
9
21
  fallbackLocale: "en"
10
- }), He.set(t);
22
+ }), Ve.set(t);
11
23
  }
12
- const ce = {
24
+ const he = {
13
25
  en: {
14
26
  generalMin: "Min",
15
27
  generalMax: "Max",
@@ -39,14 +51,14 @@ const ce = {
39
51
  showLess: "SHOW LESS"
40
52
  }
41
53
  };
42
- function Ie(t) {
43
- Ae(t, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
54
+ function Ze(t) {
55
+ ze(t, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
44
56
  }
45
- function me(t, e, n) {
57
+ function fe(t, e, s) {
46
58
  const a = t.slice();
47
- return a[47] = e[n], a[49] = n, a;
59
+ return a[47] = e[s], a[49] = s, a;
48
60
  }
49
- function ue(t) {
61
+ function ge(t) {
50
62
  let e;
51
63
  return {
52
64
  c() {
@@ -62,95 +74,95 @@ function ue(t) {
62
74
  t[3]
63
75
  );
64
76
  },
65
- m(n, a) {
66
- j(n, e, a);
77
+ m(s, a) {
78
+ j(s, e, a);
67
79
  },
68
- p(n, a) {
80
+ p(s, a) {
69
81
  a[0] & /*clientstylingurl*/
70
82
  16 && f(
71
83
  e,
72
84
  "clientstylingurl",
73
85
  /*clientstylingurl*/
74
- n[4]
86
+ s[4]
75
87
  ), a[0] & /*clientstyling*/
76
88
  8 && f(
77
89
  e,
78
90
  "clientstyling",
79
91
  /*clientstyling*/
80
- n[3]
92
+ s[3]
81
93
  );
82
94
  },
83
- d(n) {
84
- n && z(e);
95
+ d(s) {
96
+ s && z(e);
85
97
  }
86
98
  };
87
99
  }
88
- function de(t) {
89
- let e, n, a, o = ie(
100
+ function we(t) {
101
+ let e, s, a, o = ae(
90
102
  /*paymentMethodsToShow*/
91
103
  t[8]
92
104
  ), i = [];
93
105
  for (let l = 0; l < o.length; l += 1)
94
- i[l] = he(me(t, o, l));
106
+ i[l] = pe(fe(t, o, l));
95
107
  let r = (
96
108
  /*methodsButtonToggleText*/
97
- t[7] && fe(t)
109
+ t[7] && ye(t)
98
110
  );
99
111
  return {
100
112
  c() {
101
- e = p("div"), n = p("div");
113
+ e = p("div"), s = p("div");
102
114
  for (let l = 0; l < i.length; l += 1)
103
115
  i[l].c();
104
- a = S(), r && r.c(), w(n, "class", "CashierMethodList"), w(e, "class", "CashierMethodListWidget");
116
+ a = S(), r && r.c(), w(s, "class", "CashierMethodList"), w(e, "class", "CashierMethodListWidget");
105
117
  },
106
118
  m(l, m) {
107
- j(l, e, m), c(e, n);
119
+ j(l, e, m), c(e, s);
108
120
  for (let u = 0; u < i.length; u += 1)
109
- i[u] && i[u].m(n, null);
121
+ i[u] && i[u].m(s, null);
110
122
  c(e, a), r && r.m(e, null), t[26](e);
111
123
  },
112
124
  p(l, m) {
113
125
  if (m[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
114
126
  57664) {
115
- o = ie(
127
+ o = ae(
116
128
  /*paymentMethodsToShow*/
117
129
  l[8]
118
130
  );
119
131
  let u;
120
132
  for (u = 0; u < o.length; u += 1) {
121
- const C = me(l, o, u);
122
- i[u] ? i[u].p(C, m) : (i[u] = he(C), i[u].c(), i[u].m(n, null));
133
+ const C = fe(l, o, u);
134
+ i[u] ? i[u].p(C, m) : (i[u] = pe(C), i[u].c(), i[u].m(s, null));
123
135
  }
124
136
  for (; u < i.length; u += 1)
125
137
  i[u].d(1);
126
138
  i.length = o.length;
127
139
  }
128
140
  /*methodsButtonToggleText*/
129
- l[7] ? r ? r.p(l, m) : (r = fe(l), r.c(), r.m(e, null)) : r && (r.d(1), r = null);
141
+ l[7] ? r ? r.p(l, m) : (r = ye(l), r.c(), r.m(e, null)) : r && (r.d(1), r = null);
130
142
  },
131
143
  d(l) {
132
- l && z(e), Fe(i, l), r && r.d(), t[26](null);
144
+ l && z(e), Ie(i, l), r && r.d(), t[26](null);
133
145
  }
134
146
  };
135
147
  }
136
- function he(t) {
137
- let e, n, a, o, i, r, l, m, u = (
148
+ function pe(t) {
149
+ let e, s, a, o, i, r, l, m, u = (
138
150
  /*payMeth*/
139
151
  (t[47].Label || /*payMeth*/
140
152
  t[47].Name) + ""
141
153
  ), C, E, _, y, A = (
142
154
  /*$_*/
143
155
  t[13]("generalMin") + ""
144
- ), D, b, M = (
156
+ ), D, b, L = (
145
157
  /*formatter*/
146
158
  t[14].format(
147
159
  /*payMeth*/
148
160
  t[47].DisplayCurrency.MinAmountLimit
149
161
  ) + ""
150
- ), N, F, L = (
162
+ ), N, F, M = (
151
163
  /*payMeth*/
152
164
  t[47].DisplayCurrency.Name + ""
153
- ), H, J, k, R = (
165
+ ), H, V, k, R = (
154
166
  /*$_*/
155
167
  t[13]("generalMax") + ""
156
168
  ), W, B, O = (
@@ -159,11 +171,11 @@ function he(t) {
159
171
  /*payMeth*/
160
172
  t[47].DisplayCurrency.MaxAmountLimit
161
173
  ) + ""
162
- ), G, V, I = (
174
+ ), Y, X, I = (
163
175
  /*payMeth*/
164
176
  t[47].DisplayCurrency.Name + ""
165
- ), Y, X, q, K;
166
- function Q() {
177
+ ), J, K, q, Q;
178
+ function Z() {
167
179
  return (
168
180
  /*click_handler*/
169
181
  t[24](
@@ -174,9 +186,9 @@ function he(t) {
174
186
  }
175
187
  return {
176
188
  c() {
177
- e = p("div"), n = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C = x(u), E = S(), _ = p("div"), y = p("span"), D = x(A), b = S(), N = x(M), F = S(), H = x(L), J = S(), k = p("span"), W = x(R), B = S(), G = x(O), V = S(), Y = x(I), X = S(), le(a.src, o = /*payMeth*/
189
+ e = p("div"), s = p("div"), a = p("img"), r = S(), l = p("div"), m = p("span"), C = x(u), E = S(), _ = p("div"), y = p("span"), D = x(A), b = S(), N = x(L), F = S(), H = x(M), V = S(), k = p("span"), W = x(R), B = S(), Y = x(O), X = S(), J = x(I), K = S(), ce(a.src, o = /*payMeth*/
178
190
  t[47].LogoUrl) || w(a, "src", o), w(a, "alt", i = /*payMeth*/
179
- t[47].Label), w(n, "class", "MethodLogo"), w(l, "class", "MethodTitle"), w(y, "class", "Limits"), w(k, "class", "Limits"), w(_, "class", "MethodLimits"), w(e, "class", "SelectorWrapper"), oe(
191
+ t[47].Label), w(s, "class", "MethodLogo"), w(l, "class", "MethodTitle"), w(y, "class", "Limits"), w(k, "class", "Limits"), w(_, "class", "MethodLimits"), w(e, "class", "SelectorWrapper"), me(
180
192
  e,
181
193
  "checked",
182
194
  /*selectedPaymentMethod*/
@@ -185,14 +197,14 @@ function he(t) {
185
197
  );
186
198
  },
187
199
  m(U, g) {
188
- j(U, e, g), c(e, n), c(n, a), c(e, r), c(e, l), c(l, m), c(m, C), c(e, E), c(e, _), c(_, y), c(y, D), c(y, b), c(y, N), c(y, F), c(y, H), c(_, J), c(_, k), c(k, W), c(k, B), c(k, G), c(k, V), c(k, Y), c(e, X), q || (K = [
189
- ee(e, "click", Q),
190
- ee(e, "keyup", Ge)
200
+ j(U, e, g), c(e, s), c(s, a), c(e, r), c(e, l), c(l, m), c(m, C), c(e, E), c(e, _), c(_, y), c(y, D), c(y, b), c(y, N), c(y, F), c(y, H), c(_, V), c(_, k), c(k, W), c(k, B), c(k, Y), c(k, X), c(k, J), c(e, K), q || (Q = [
201
+ se(e, "click", Z),
202
+ se(e, "keyup", et)
191
203
  ], q = !0);
192
204
  },
193
205
  p(U, g) {
194
206
  t = U, g[0] & /*paymentMethodsToShow*/
195
- 256 && !le(a.src, o = /*payMeth*/
207
+ 256 && !ce(a.src, o = /*payMeth*/
196
208
  t[47].LogoUrl) && w(a, "src", o), g[0] & /*paymentMethodsToShow*/
197
209
  256 && i !== (i = /*payMeth*/
198
210
  t[47].Label) && w(a, "alt", i), g[0] & /*paymentMethodsToShow*/
@@ -201,23 +213,23 @@ function he(t) {
201
213
  t[47].Name) + "") && P(C, u), g[0] & /*$_*/
202
214
  8192 && A !== (A = /*$_*/
203
215
  t[13]("generalMin") + "") && P(D, A), g[0] & /*paymentMethodsToShow*/
204
- 256 && M !== (M = /*formatter*/
216
+ 256 && L !== (L = /*formatter*/
205
217
  t[14].format(
206
218
  /*payMeth*/
207
219
  t[47].DisplayCurrency.MinAmountLimit
208
- ) + "") && P(N, M), g[0] & /*paymentMethodsToShow*/
209
- 256 && L !== (L = /*payMeth*/
210
- t[47].DisplayCurrency.Name + "") && P(H, L), g[0] & /*$_*/
220
+ ) + "") && P(N, L), g[0] & /*paymentMethodsToShow*/
221
+ 256 && M !== (M = /*payMeth*/
222
+ t[47].DisplayCurrency.Name + "") && P(H, M), g[0] & /*$_*/
211
223
  8192 && R !== (R = /*$_*/
212
224
  t[13]("generalMax") + "") && P(W, R), g[0] & /*paymentMethodsToShow*/
213
225
  256 && O !== (O = /*formatter*/
214
226
  t[14].format(
215
227
  /*payMeth*/
216
228
  t[47].DisplayCurrency.MaxAmountLimit
217
- ) + "") && P(G, O), g[0] & /*paymentMethodsToShow*/
229
+ ) + "") && P(Y, O), g[0] & /*paymentMethodsToShow*/
218
230
  256 && I !== (I = /*payMeth*/
219
- t[47].DisplayCurrency.Name + "") && P(Y, I), g[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
220
- 320 && oe(
231
+ t[47].DisplayCurrency.Name + "") && P(J, I), g[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
232
+ 320 && me(
221
233
  e,
222
234
  "checked",
223
235
  /*selectedPaymentMethod*/
@@ -226,21 +238,21 @@ function he(t) {
226
238
  );
227
239
  },
228
240
  d(U) {
229
- U && z(e), q = !1, Oe(K);
241
+ U && z(e), q = !1, qe(Q);
230
242
  }
231
243
  };
232
244
  }
233
- function fe(t) {
234
- let e, n, a, o;
245
+ function ye(t) {
246
+ let e, s, a, o;
235
247
  return {
236
248
  c() {
237
- e = p("div"), n = x(
249
+ e = p("div"), s = x(
238
250
  /*methodsButtonToggleText*/
239
251
  t[7]
240
252
  ), w(e, "class", "ShowAllButton");
241
253
  },
242
254
  m(i, r) {
243
- j(i, e, r), c(e, n), a || (o = ee(
255
+ j(i, e, r), c(e, s), a || (o = se(
244
256
  e,
245
257
  "click",
246
258
  /*click_handler_1*/
@@ -250,7 +262,7 @@ function fe(t) {
250
262
  p(i, r) {
251
263
  r[0] & /*methodsButtonToggleText*/
252
264
  128 && P(
253
- n,
265
+ s,
254
266
  /*methodsButtonToggleText*/
255
267
  i[7]
256
268
  );
@@ -260,14 +272,14 @@ function fe(t) {
260
272
  }
261
273
  };
262
274
  }
263
- function ge(t) {
264
- let e, n, a;
275
+ function be(t) {
276
+ let e, s, a;
265
277
  return {
266
278
  c() {
267
- e = p("cashier-error"), n = p("span"), a = x(
279
+ e = p("cashier-error"), s = p("span"), a = x(
268
280
  /*errorMessage*/
269
281
  t[10]
270
- ), w(n, "slot", "text"), f(
282
+ ), w(s, "slot", "text"), f(
271
283
  e,
272
284
  "lang",
273
285
  /*lang*/
@@ -295,7 +307,7 @@ function ge(t) {
295
307
  ), f(e, "hidebuttons", "true");
296
308
  },
297
309
  m(o, i) {
298
- j(o, e, i), c(e, n), c(n, a);
310
+ j(o, e, i), c(e, s), c(s, a);
299
311
  },
300
312
  p(o, i) {
301
313
  i[0] & /*errorMessage*/
@@ -340,69 +352,69 @@ function ge(t) {
340
352
  }
341
353
  };
342
354
  }
343
- function qe(t) {
344
- let e, n, a, o = (
355
+ function $e(t) {
356
+ let e, s, a, o = (
345
357
  /*showSpinner*/
346
- t[12] && ue(t)
358
+ t[12] && ge(t)
347
359
  ), i = (
348
360
  /*showMethodsList*/
349
361
  (t[9] || /*desktopView*/
350
- t[11]) && de(t)
362
+ t[11]) && we(t)
351
363
  ), r = (
352
364
  /*errorMessage*/
353
- t[10] && ge(t)
365
+ t[10] && be(t)
354
366
  );
355
367
  return {
356
368
  c() {
357
- o && o.c(), e = S(), i && i.c(), n = S(), r && r.c(), a = Ne();
369
+ o && o.c(), e = S(), i && i.c(), s = S(), r && r.c(), a = He();
358
370
  },
359
371
  m(l, m) {
360
- o && o.m(l, m), j(l, e, m), i && i.m(l, m), j(l, n, m), r && r.m(l, m), j(l, a, m);
372
+ o && o.m(l, m), j(l, e, m), i && i.m(l, m), j(l, s, m), r && r.m(l, m), j(l, a, m);
361
373
  },
362
374
  p(l, m) {
363
375
  /*showSpinner*/
364
- l[12] ? o ? o.p(l, m) : (o = ue(l), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*showMethodsList*/
376
+ l[12] ? o ? o.p(l, m) : (o = ge(l), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*showMethodsList*/
365
377
  l[9] || /*desktopView*/
366
- l[11] ? i ? i.p(l, m) : (i = de(l), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null), /*errorMessage*/
367
- l[10] ? r ? r.p(l, m) : (r = ge(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
378
+ l[11] ? i ? i.p(l, m) : (i = we(l), i.c(), i.m(s.parentNode, s)) : i && (i.d(1), i = null), /*errorMessage*/
379
+ l[10] ? r ? r.p(l, m) : (r = be(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
368
380
  },
369
- i: ne,
370
- o: ne,
381
+ i: re,
382
+ o: re,
371
383
  d(l) {
372
- l && (z(e), z(n), z(a)), o && o.d(l), i && i.d(l), r && r.d(l);
384
+ l && (z(e), z(s), z(a)), o && o.d(l), i && i.d(l), r && r.d(l);
373
385
  }
374
386
  };
375
387
  }
376
- const Ge = () => {
388
+ const et = () => {
377
389
  };
378
- function Ye(t, e, n) {
390
+ function tt(t, e, s) {
379
391
  let a;
380
- xe(t, Re, (s) => n(13, a = s)), re.extend(We);
381
- let { lang: o = "en" } = e, { local: i = "en-US" } = e, { endpoint: r } = e, { session: l } = e, { customerid: m } = e, { assetsurl: u } = e, { currency: C } = e, { numberofmethodsshown: E } = e, { translationurl: _ = "" } = e, { clientstyling: y = "" } = e, { clientstylingurl: A = "" } = e, { ismobileview: D } = e, b = [], M, N, F = "", L = [], H = !0, J = new Intl.NumberFormat(i, { minimumFractionDigits: 2 }), k = "", R, W = !0, B = !1;
392
+ Re(t, Xe, (n) => s(13, a = n)), ue.extend(Ke);
393
+ let { lang: o = "en" } = e, { local: i = "en-US" } = e, { endpoint: r } = e, { session: l } = e, { customerid: m } = e, { assetsurl: u } = e, { currency: C } = e, { numberofmethodsshown: E } = e, { translationurl: _ = "" } = e, { clientstyling: y = "" } = e, { clientstylingurl: A = "" } = e, { ismobileview: D } = e, b = [], L, N, F = "", M = [], H = !0, V = new Intl.NumberFormat(i, { minimumFractionDigits: 2 }), k = "", R, W = !0, B = !1;
382
394
  var O;
383
- (function(s) {
384
- s.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", s.Success = "Success", s.JwtTokenError = "JwtTokenError";
385
- })(O || (O = {})), Pe();
386
- const G = () => {
387
- let s = _;
388
- if (s)
389
- return fetch(s).then((d) => d.json()).then((d) => {
395
+ (function(n) {
396
+ n.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", n.Success = "Success", n.JwtTokenError = "JwtTokenError";
397
+ })(O || (O = {})), We();
398
+ const Y = () => {
399
+ let n = _;
400
+ if (n)
401
+ return fetch(n).then((d) => d.json()).then((d) => {
390
402
  Object.keys(d).forEach((T) => {
391
- ae(T, d[T]);
403
+ de(T, d[T]);
392
404
  });
393
405
  }).catch((d) => {
394
406
  console.log(d);
395
407
  });
396
408
  };
397
- Object.keys(ce).forEach((s) => {
398
- ae(s, ce[s]);
409
+ Object.keys(he).forEach((n) => {
410
+ de(n, he[n]);
399
411
  });
400
- const V = () => {
401
- Be(o);
412
+ const X = () => {
413
+ Qe(o);
402
414
  }, I = () => {
403
- n(12, B = !0);
404
- const s = new URL(`${r}/v1/player/${m}/payment/GetPaymentMetadata`), d = new Headers();
405
- d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-Client-Request-Timestamp", re.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
415
+ s(12, B = !0);
416
+ const n = new URL(`${r}/v1/player/${m}/payment/GetPaymentMetadata`), d = new Headers();
417
+ d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-Client-Request-Timestamp", ue.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
406
418
  const T = {
407
419
  method: "POST",
408
420
  headers: d,
@@ -412,16 +424,17 @@ function Ye(t, e, n) {
412
424
  Tags: { UserAgent: window.navigator.userAgent }
413
425
  })
414
426
  };
415
- fetch(s, T).then((h) => h.json()).then((h) => {
427
+ fetch(n, T).then((h) => h.json()).then((h) => {
428
+ var G;
416
429
  if (h.error) {
417
- n(10, k = h.error);
430
+ s(10, k = h.error);
418
431
  return;
419
432
  }
420
433
  if (h.ResponseCode !== O.Success) {
421
- R = h.ResponseCode, K();
434
+ R = h.ResponseCode, Q();
422
435
  return;
423
436
  }
424
- b = h.PaymentMethods?.Ordering ? Y(h) : X(h), n(7, F = E && +E > 0 && b.length > +E ? a("showAll") : ""), n(8, L = F ? b.slice(0, +E) : b), window.postMessage(
437
+ b = (G = h.PaymentMethods) != null && G.Ordering ? J(h) : K(h), s(7, F = E && +E > 0 && b.length > +E ? a("showAll") : ""), s(8, M = F ? b.slice(0, +E) : b), window.postMessage(
425
438
  {
426
439
  type: "StartSessionCountdown",
427
440
  paymentMethodName: b[0].Name,
@@ -429,33 +442,31 @@ function Ye(t, e, n) {
429
442
  },
430
443
  window.location.href
431
444
  );
432
- }).finally(() => n(12, B = !1));
433
- }, Y = (s) => {
445
+ }).finally(() => s(12, B = !1));
446
+ }, J = (n) => {
434
447
  const d = [];
435
- return s.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((T) => {
436
- const h = s.PaymentMethods.PaymentMethods.find((Z) => Z.Name === T);
448
+ return n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((T) => {
449
+ const h = n.PaymentMethods.PaymentMethods.find((G) => G.Name === T);
437
450
  if (h) {
438
- const Z = h?.Logos.find(($) => $.LogoType === "Desktop") || {}, ke = h?.Logos.find(($) => $.LogoType === "Mobile") || {}, se = W ? Z : ke;
439
- d.push({
440
- ...h,
441
- LogoUrl: se.LogoUrl ? `https:${se.LogoUrl}` : ""
442
- });
451
+ const G = (h == null ? void 0 : h.Logos.find(($) => $.LogoType === "Desktop")) || {}, Te = (h == null ? void 0 : h.Logos.find(($) => $.LogoType === "Mobile")) || {}, ie = W ? G : Te;
452
+ d.push(te(ee({}, h), {
453
+ LogoUrl: ie.LogoUrl ? `https:${ie.LogoUrl}` : ""
454
+ }));
443
455
  }
444
456
  }), d;
445
- }, X = (s) => s.PaymentMethods.PaymentMethods.map((d) => ({
446
- ...d,
457
+ }, K = (n) => n.PaymentMethods.PaymentMethods.map((d) => te(ee({}, d), {
447
458
  LogoUrl: d.Logos && d.Logos.length && d.Logos[0].LogoUrl ? `https:${d.Logos[0].LogoUrl}` : ""
448
- })), q = (s) => {
449
- n(6, N = s.Name), window.postMessage({ type: "SelectPayMeth", details: s }, window.location.href), dispatchEvent(new CustomEvent(
459
+ })), q = (n) => {
460
+ s(6, N = n.Name), window.postMessage({ type: "SelectPayMeth", details: n }, window.location.href), dispatchEvent(new CustomEvent(
450
461
  "selectPayMeth",
451
462
  {
452
- detail: s,
463
+ detail: n,
453
464
  bubbles: !0,
454
465
  cancelable: !0,
455
466
  composed: !0
456
467
  }
457
468
  ));
458
- }, K = () => {
469
+ }, Q = () => {
459
470
  window.postMessage(
460
471
  {
461
472
  type: "ErrorResponseCode",
@@ -463,27 +474,27 @@ function Ye(t, e, n) {
463
474
  },
464
475
  window.location.href
465
476
  );
466
- }, Q = () => {
467
- n(11, W = D === "false");
477
+ }, Z = () => {
478
+ s(11, W = D === "false");
468
479
  }, U = () => {
469
- L == b ? we() : g();
480
+ M == b ? Le() : g();
470
481
  }, g = () => {
471
- n(8, L = b), n(7, F = a("showLess"));
472
- }, we = () => {
473
- n(8, L = b.slice(0, +E)), N && !L.find((s) => s.Name === N) && L.splice(0, 0, b.find((s) => s.Name === N)), n(7, F = a("showAll"));
474
- }, pe = () => {
475
- n(9, H = !0);
476
- }, ye = (s) => {
477
- n(9, H = !s.hideMethodsList);
478
- }, be = () => {
479
- let s = document.createElement("style");
480
- s.innerHTML = y, M.appendChild(s);
482
+ s(8, M = b), s(7, F = a("showLess"));
483
+ }, Le = () => {
484
+ s(8, M = b.slice(0, +E)), N && !M.find((n) => n.Name === N) && M.splice(0, 0, b.find((n) => n.Name === N)), s(7, F = a("showAll"));
481
485
  }, Me = () => {
482
- let s = new URL(A), d = document.createElement("style");
483
- fetch(s.href).then((T) => T.text()).then((T) => {
486
+ s(9, H = !0);
487
+ }, ve = (n) => {
488
+ s(9, H = !n.hideMethodsList);
489
+ }, _e = () => {
490
+ let n = document.createElement("style");
491
+ n.innerHTML = y, L.appendChild(n);
492
+ }, ke = () => {
493
+ let n = new URL(A), d = document.createElement("style");
494
+ fetch(n.href).then((T) => T.text()).then((T) => {
484
495
  d.innerHTML = T, setTimeout(
485
496
  () => {
486
- M.appendChild(d);
497
+ L.appendChild(d);
487
498
  },
488
499
  1
489
500
  ), setTimeout(
@@ -493,50 +504,50 @@ function Ye(t, e, n) {
493
504
  );
494
505
  });
495
506
  };
496
- De(() => (window.addEventListener("message", te, !1), () => {
497
- window.removeEventListener("message", te, !1);
507
+ Be(() => (window.addEventListener("message", ne, !1), () => {
508
+ window.removeEventListener("message", ne, !1);
498
509
  }));
499
- const te = (s) => {
500
- switch (s.data.type) {
510
+ const ne = (n) => {
511
+ switch (n.data.type) {
501
512
  case "BackToMethodList":
502
- pe();
513
+ Me();
503
514
  break;
504
515
  case "HideMethodsList":
505
- ye(s.data.details);
516
+ ve(n.data.details);
506
517
  break;
507
518
  }
508
- }, Le = (s) => q(s), ve = () => U();
509
- function _e(s) {
510
- Ue[s ? "unshift" : "push"](() => {
511
- M = s, n(5, M);
519
+ }, Se = (n) => q(n), Ce = () => U();
520
+ function Ee(n) {
521
+ Ge[n ? "unshift" : "push"](() => {
522
+ L = n, s(5, L);
512
523
  });
513
524
  }
514
- return t.$$set = (s) => {
515
- "lang" in s && n(0, o = s.lang), "local" in s && n(17, i = s.local), "endpoint" in s && n(18, r = s.endpoint), "session" in s && n(19, l = s.session), "customerid" in s && n(20, m = s.customerid), "assetsurl" in s && n(1, u = s.assetsurl), "currency" in s && n(21, C = s.currency), "numberofmethodsshown" in s && n(22, E = s.numberofmethodsshown), "translationurl" in s && n(2, _ = s.translationurl), "clientstyling" in s && n(3, y = s.clientstyling), "clientstylingurl" in s && n(4, A = s.clientstylingurl), "ismobileview" in s && n(23, D = s.ismobileview);
525
+ return t.$$set = (n) => {
526
+ "lang" in n && s(0, o = n.lang), "local" in n && s(17, i = n.local), "endpoint" in n && s(18, r = n.endpoint), "session" in n && s(19, l = n.session), "customerid" in n && s(20, m = n.customerid), "assetsurl" in n && s(1, u = n.assetsurl), "currency" in n && s(21, C = n.currency), "numberofmethodsshown" in n && s(22, E = n.numberofmethodsshown), "translationurl" in n && s(2, _ = n.translationurl), "clientstyling" in n && s(3, y = n.clientstyling), "clientstylingurl" in n && s(4, A = n.clientstylingurl), "ismobileview" in n && s(23, D = n.ismobileview);
516
527
  }, t.$$.update = () => {
517
528
  t.$$.dirty[0] & /*endpoint, session, customerid*/
518
529
  1835008 && r && l && m && I(), t.$$.dirty[0] & /*lang*/
519
- 1 && o && V(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
520
- 40 && y && M && be(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
521
- 48 && A && M && Me(), t.$$.dirty[0] & /*ismobileview*/
522
- 8388608 && D && Q(), t.$$.dirty[0] & /*lang, translationurl*/
523
- 5 && o && _ && G();
530
+ 1 && o && X(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
531
+ 40 && y && L && _e(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
532
+ 48 && A && L && ke(), t.$$.dirty[0] & /*ismobileview*/
533
+ 8388608 && D && Z(), t.$$.dirty[0] & /*lang, translationurl*/
534
+ 5 && o && _ && Y();
524
535
  }, [
525
536
  o,
526
537
  u,
527
538
  _,
528
539
  y,
529
540
  A,
530
- M,
541
+ L,
531
542
  N,
532
543
  F,
533
- L,
544
+ M,
534
545
  H,
535
546
  k,
536
547
  W,
537
548
  B,
538
549
  a,
539
- J,
550
+ V,
540
551
  q,
541
552
  U,
542
553
  i,
@@ -546,19 +557,19 @@ function Ye(t, e, n) {
546
557
  C,
547
558
  E,
548
559
  D,
549
- Le,
550
- ve,
551
- _e
560
+ Se,
561
+ Ce,
562
+ Ee
552
563
  ];
553
564
  }
554
- class Je extends Se {
565
+ class st extends Fe {
555
566
  constructor(e) {
556
- super(), Ce(
567
+ super(), Oe(
557
568
  this,
558
569
  e,
559
- Ye,
560
- qe,
561
- Te,
570
+ tt,
571
+ $e,
572
+ je,
562
573
  {
563
574
  lang: 0,
564
575
  local: 17,
@@ -573,7 +584,7 @@ class Je extends Se {
573
584
  clientstylingurl: 4,
574
585
  ismobileview: 23
575
586
  },
576
- Ie,
587
+ Ze,
577
588
  [-1, -1]
578
589
  );
579
590
  }
@@ -650,7 +661,7 @@ class Je extends Se {
650
661
  this.$$set({ ismobileview: e }), v();
651
662
  }
652
663
  }
653
- Ee(Je, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
664
+ Ue(st, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
654
665
  export {
655
- Je as default
666
+ st as default
656
667
  };