@everymatrix/cashier-page 1.54.0 → 1.54.4

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