@everymatrix/cashier-page 1.52.1 → 1.52.3

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.
@@ -1,5 +1,5 @@
1
- import { S as Ce, b as _e, f as D, c as Se, a as Ae, d as Oe, g as w, j as P, I as q, k as _, n as Y, v as S, w as Me, K as G, h as O, E as C, M as Be, l as k, A as R, y as Te, z as Le, C as qe } from "./CashierConfirmModal-Bho8FqJK.js";
2
- import { a as Fe, i as Ie, $ as xe, b as ze } from "./CashierError-B6UnQRtt.js";
1
+ import { S as Ce, b as _e, f as D, c as Se, a as Ae, d as Oe, g as w, j as V, I as M, k as _, n as Y, v as S, w as Me, K as G, h as O, E as C, M as Be, l as k, A as R, y as Te, z as Le, C as qe } from "./CashierConfirmModal-Bho8FqJK.js";
2
+ import { a as Fe, i as Ie, $ as ze, b as xe } from "./CashierError-B6UnQRtt.js";
3
3
  import { d as Z, u as Ee } from "./CashierMethodDetails-KqmAeZHJ.js";
4
4
  function J(t, i) {
5
5
  Fe(t, i);
@@ -7,7 +7,7 @@ function J(t, i) {
7
7
  function Ue(t) {
8
8
  Ie({
9
9
  fallbackLocale: "en"
10
- }), xe.set(t);
10
+ }), ze.set(t);
11
11
  }
12
12
  const X = {
13
13
  en: {
@@ -77,112 +77,112 @@ if (typeof window != "undefined") {
77
77
  }
78
78
  };
79
79
  };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-DlhKKfRC.js").then(({ default: i }) => {
80
+ customElements.define = t(customElements.define), import("./CashierVideoModal-CtEksV6T.js").then(({ default: i }) => {
81
81
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
82
  });
83
83
  }
84
84
  function Re(t) {
85
- Oe(t, "svelte-3l7kfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}");
85
+ Oe(t, "svelte-1flpaov", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
86
86
  }
87
87
  function Q(t, i, r) {
88
88
  const s = t.slice();
89
89
  return s[49] = i[r], s[51] = r, s;
90
90
  }
91
91
  function $(t) {
92
- let i, r, s, c, f = G(
92
+ let i, r, s, l, f = G(
93
93
  /*displayMessages*/
94
94
  t[4]
95
95
  ), d = [];
96
- for (let n = 0; n < f.length; n += 1)
97
- d[n] = ie(Q(t, f, n));
98
- let u = (
96
+ for (let a = 0; a < f.length; a += 1)
97
+ d[a] = ie(Q(t, f, a));
98
+ let h = (
99
99
  /*videoExists*/
100
100
  t[7] && te(t)
101
101
  );
102
102
  return {
103
103
  c() {
104
104
  i = w("div");
105
- for (let n = 0; n < d.length; n += 1)
106
- d[n].c();
107
- r = O(), u && u.c(), s = O(), c = w("cashier-video-modal"), P(i, "class", "CashierVerificationsWrapper"), C(
108
- c,
105
+ for (let a = 0; a < d.length; a += 1)
106
+ d[a].c();
107
+ r = O(), h && h.c(), s = O(), l = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), C(
108
+ l,
109
109
  "clientstylingurl",
110
110
  /*clientstylingurl*/
111
111
  t[1]
112
112
  ), C(
113
- c,
113
+ l,
114
114
  "clientstyling",
115
115
  /*clientstyling*/
116
116
  t[0]
117
117
  ), C(
118
- c,
118
+ l,
119
119
  "ismobileview",
120
120
  /*ismobileview*/
121
121
  t[2]
122
122
  ), C(
123
- c,
123
+ l,
124
124
  "videosrc",
125
125
  /*videoSrc*/
126
126
  t[8]
127
127
  );
128
128
  },
129
- m(n, h) {
130
- _(n, i, h);
131
- for (let a = 0; a < d.length; a += 1)
132
- d[a] && d[a].m(i, null);
133
- _(n, r, h), u && u.m(n, h), _(n, s, h), _(n, c, h);
129
+ m(a, u) {
130
+ _(a, i, u);
131
+ for (let n = 0; n < d.length; n += 1)
132
+ d[n] && d[n].m(i, null);
133
+ _(a, r, u), h && h.m(a, u), _(a, s, u), _(a, l, u);
134
134
  },
135
- p(n, h) {
136
- if (h[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
135
+ p(a, u) {
136
+ if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
137
137
  1072) {
138
138
  f = G(
139
139
  /*displayMessages*/
140
- n[4]
140
+ a[4]
141
141
  );
142
- let a;
143
- for (a = 0; a < f.length; a += 1) {
144
- const y = Q(n, f, a);
145
- d[a] ? d[a].p(y, h) : (d[a] = ie(y), d[a].c(), d[a].m(i, null));
142
+ let n;
143
+ for (n = 0; n < f.length; n += 1) {
144
+ const y = Q(a, f, n);
145
+ d[n] ? d[n].p(y, u) : (d[n] = ie(y), d[n].c(), d[n].m(i, null));
146
146
  }
147
- for (; a < d.length; a += 1)
148
- d[a].d(1);
147
+ for (; n < d.length; n += 1)
148
+ d[n].d(1);
149
149
  d.length = f.length;
150
150
  }
151
151
  /*videoExists*/
152
- n[7] ? u ? u.p(n, h) : (u = te(n), u.c(), u.m(s.parentNode, s)) : u && (u.d(1), u = null), h[0] & /*clientstylingurl*/
152
+ a[7] ? h ? h.p(a, u) : (h = te(a), h.c(), h.m(s.parentNode, s)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
153
153
  2 && C(
154
- c,
154
+ l,
155
155
  "clientstylingurl",
156
156
  /*clientstylingurl*/
157
- n[1]
158
- ), h[0] & /*clientstyling*/
157
+ a[1]
158
+ ), u[0] & /*clientstyling*/
159
159
  1 && C(
160
- c,
160
+ l,
161
161
  "clientstyling",
162
162
  /*clientstyling*/
163
- n[0]
164
- ), h[0] & /*ismobileview*/
163
+ a[0]
164
+ ), u[0] & /*ismobileview*/
165
165
  4 && C(
166
- c,
166
+ l,
167
167
  "ismobileview",
168
168
  /*ismobileview*/
169
- n[2]
170
- ), h[0] & /*videoSrc*/
169
+ a[2]
170
+ ), u[0] & /*videoSrc*/
171
171
  256 && C(
172
- c,
172
+ l,
173
173
  "videosrc",
174
174
  /*videoSrc*/
175
- n[8]
175
+ a[8]
176
176
  );
177
177
  },
178
- d(n) {
179
- n && (S(i), S(r), S(s), S(c)), Be(d, n), u && u.d(n);
178
+ d(a) {
179
+ a && (S(i), S(r), S(s), S(l)), Be(d, a), h && h.d(a);
180
180
  }
181
181
  };
182
182
  }
183
183
  function ee(t) {
184
184
  let i, r, s;
185
- function c(...f) {
185
+ function l(...f) {
186
186
  return (
187
187
  /*click_handler*/
188
188
  t[18](
@@ -194,10 +194,10 @@ function ee(t) {
194
194
  }
195
195
  return {
196
196
  c() {
197
- i = w("span"), i.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', P(i, "class", "CashierVerificationChevron");
197
+ i = w("span"), i.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', V(i, "class", "CashierVerificationChevron");
198
198
  },
199
199
  m(f, d) {
200
- _(f, i, d), r || (s = R(i, "click", c), r = !0);
200
+ _(f, i, d), r || (s = R(i, "click", l), r = !0);
201
201
  },
202
202
  p(f, d) {
203
203
  t = f;
@@ -208,10 +208,10 @@ function ee(t) {
208
208
  };
209
209
  }
210
210
  function ie(t) {
211
- let i, r, s, c, f = (
211
+ let i, r, s, l, f = (
212
212
  /*message*/
213
213
  t[49] + ""
214
- ), d, u, n, h, a = (
214
+ ), d, h, a, u, n = (
215
215
  /*displayMessages*/
216
216
  t[4].length > 1 && /*index*/
217
217
  t[51] === 0 && ee(t)
@@ -228,23 +228,23 @@ function ie(t) {
228
228
  }
229
229
  return {
230
230
  c() {
231
- i = w("div"), r = w("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', s = O(), c = w("p"), d = O(), a && a.c(), u = O(), P(r, "class", "IconVerification"), P(c, "class", "text"), P(i, "class", "CashierVerificationMessage"), q(
231
+ i = w("div"), r = w("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', s = O(), l = w("p"), d = O(), n && n.c(), h = O(), V(r, "class", "IconVerification"), V(l, "class", "text"), V(i, "class", "CashierVerificationMessage"), M(
232
232
  i,
233
233
  "ShowAll",
234
234
  /*allVerificationsVisible*/
235
235
  t[5]
236
236
  );
237
237
  },
238
- m(p, b) {
239
- _(p, i, b), k(i, r), k(i, s), k(i, c), c.innerHTML = f, k(i, d), a && a.m(i, null), k(i, u), n || (h = R(i, "click", y), n = !0);
238
+ m(p, P) {
239
+ _(p, i, P), k(i, r), k(i, s), k(i, l), l.innerHTML = f, k(i, d), n && n.m(i, null), k(i, h), a || (u = R(i, "click", y), a = !0);
240
240
  },
241
- p(p, b) {
242
- t = p, b[0] & /*displayMessages*/
241
+ p(p, P) {
242
+ t = p, P[0] & /*displayMessages*/
243
243
  16 && f !== (f = /*message*/
244
- t[49] + "") && (c.innerHTML = f), /*displayMessages*/
244
+ t[49] + "") && (l.innerHTML = f), /*displayMessages*/
245
245
  t[4].length > 1 && /*index*/
246
- t[51] === 0 ? a ? a.p(t, b) : (a = ee(t), a.c(), a.m(i, u)) : a && (a.d(1), a = null), b[0] & /*allVerificationsVisible*/
247
- 32 && q(
246
+ t[51] === 0 ? n ? n.p(t, P) : (n = ee(t), n.c(), n.m(i, h)) : n && (n.d(1), n = null), P[0] & /*allVerificationsVisible*/
247
+ 32 && M(
248
248
  i,
249
249
  "ShowAll",
250
250
  /*allVerificationsVisible*/
@@ -252,34 +252,45 @@ function ie(t) {
252
252
  );
253
253
  },
254
254
  d(p) {
255
- p && S(i), a && a.d(), n = !1, h();
255
+ p && S(i), n && n.d(), a = !1, u();
256
256
  }
257
257
  };
258
258
  }
259
259
  function te(t) {
260
- let i, r, s, c, f = (
260
+ let i, r, s, l, f = (
261
261
  /*$_*/
262
262
  t[9]("verification.video.how-to") + ""
263
- ), d, u, n;
263
+ ), d, h, a;
264
264
  return {
265
265
  c() {
266
- i = w("div"), r = w("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', s = O(), c = w("div"), d = Te(f), P(r, "class", "IconVideo"), P(c, "class", "CashierVerificationVideoLink"), P(i, "class", "CashierVerificationVideo");
266
+ i = w("div"), r = w("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', s = O(), l = w("div"), d = Te(f), V(r, "class", "IconVideo"), V(l, "class", "CashierVerificationVideoLink"), M(
267
+ l,
268
+ "CashierVerificationVideoLinkDesktop",
269
+ /*desktopView*/
270
+ t[6]
271
+ ), V(i, "class", "CashierVerificationVideo");
267
272
  },
268
- m(h, a) {
269
- _(h, i, a), k(i, r), k(i, s), k(i, c), k(c, d), u || (n = R(
270
- c,
273
+ m(u, n) {
274
+ _(u, i, n), k(i, r), k(i, s), k(i, l), k(l, d), h || (a = R(
275
+ l,
271
276
  "click",
272
277
  /*click_handler_2*/
273
278
  t[20]
274
- ), u = !0);
279
+ ), h = !0);
275
280
  },
276
- p(h, a) {
277
- a[0] & /*$_*/
281
+ p(u, n) {
282
+ n[0] & /*$_*/
278
283
  512 && f !== (f = /*$_*/
279
- h[9]("verification.video.how-to") + "") && Le(d, f);
284
+ u[9]("verification.video.how-to") + "") && Le(d, f), n[0] & /*desktopView*/
285
+ 64 && M(
286
+ l,
287
+ "CashierVerificationVideoLinkDesktop",
288
+ /*desktopView*/
289
+ u[6]
290
+ );
280
291
  },
281
- d(h) {
282
- h && S(i), u = !1, n();
292
+ d(u) {
293
+ u && S(i), h = !1, a();
283
294
  }
284
295
  };
285
296
  }
@@ -290,20 +301,20 @@ function je(t) {
290
301
  );
291
302
  return {
292
303
  c() {
293
- i = w("div"), r && r.c(), P(i, "class", "CashierVerifications"), q(
304
+ i = w("div"), r && r.c(), V(i, "class", "CashierVerifications"), M(
294
305
  i,
295
306
  "CashierVerificationsDesktop",
296
307
  /*desktopView*/
297
308
  t[6]
298
309
  );
299
310
  },
300
- m(s, c) {
301
- _(s, i, c), r && r.m(i, null), t[21](i);
311
+ m(s, l) {
312
+ _(s, i, l), r && r.m(i, null), t[21](i);
302
313
  },
303
- p(s, c) {
314
+ p(s, l) {
304
315
  /*displayMessages*/
305
- s[4] ? r ? r.p(s, c) : (r = $(s), r.c(), r.m(i, null)) : r && (r.d(1), r = null), c[0] & /*desktopView*/
306
- 64 && q(
316
+ s[4] ? r ? r.p(s, l) : (r = $(s), r.c(), r.m(i, null)) : r && (r.d(1), r = null), l[0] & /*desktopView*/
317
+ 64 && M(
307
318
  i,
308
319
  "CashierVerificationsDesktop",
309
320
  /*desktopView*/
@@ -320,12 +331,12 @@ function je(t) {
320
331
  const He = "verification_explanation_video_widgets.MP4";
321
332
  function Ne(t, i, r) {
322
333
  let s;
323
- Me(t, ze, (e) => r(9, s = e)), Z.extend(Ee);
324
- let { endpoint: c } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, { clientstyling: u = "" } = i, { clientstylingurl: n = "" } = i, { session: h = "" } = i, { customerid: a = "" } = i, { ismobileview: y = "" } = i, p, b = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), T, L, F, I = !0, H = !0, x = !1, z = "";
325
- var M;
334
+ Me(t, xe, (e) => r(9, s = e)), Z.extend(Ee);
335
+ let { endpoint: l } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, { clientstyling: h = "" } = i, { clientstylingurl: a = "" } = i, { session: u = "" } = i, { customerid: n = "" } = i, { ismobileview: y = "" } = i, p, P = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), L, q, F, I = !0, H = !0, z = !1, x = "";
336
+ var B;
326
337
  (function(e) {
327
338
  e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
328
- })(M || (M = {}));
339
+ })(B || (B = {}));
329
340
  var E;
330
341
  (function(e) {
331
342
  e.Requested = "Requested";
@@ -334,10 +345,10 @@ function Ne(t, i, r) {
334
345
  (function(e) {
335
346
  e.Unknown = "Unknown", e.Unverified = "Unverified", e.InProgress = "InProgress", e.Failed = "Failed", e.Verified = "Verified", e.Referred = "Referred", e.True = "True", e.False = "False", e.AwaitingForResponse = "AwaitingForResponse";
336
347
  })(g || (g = {}));
337
- var B;
348
+ var T;
338
349
  (function(e) {
339
350
  e.Unknown = "Unknown", e.Documents = "Documents", e.Age = "Age", e.Pep = "Pep", e.Sanction = "Sanction", e.Aml = "Aml", e.ProofOfAddress = "ProofOfAddress", e.SourceOfWealth = "SourceOfWealth", e.SocialMedia = "SocialMedia", e.Biometric = "Biometric";
340
- })(B || (B = {}));
351
+ })(T || (T = {}));
341
352
  const re = [
342
353
  g.InProgress,
343
354
  g.Referred,
@@ -346,8 +357,8 @@ function Ne(t, i, r) {
346
357
  let e = d;
347
358
  if (e)
348
359
  return fetch(e).then((o) => o.json()).then((o) => {
349
- Object.keys(o).forEach((l) => {
350
- J(l, o[l]);
360
+ Object.keys(o).forEach((c) => {
361
+ J(c, o[c]);
351
362
  });
352
363
  }).catch((o) => {
353
364
  console.log(o);
@@ -360,11 +371,11 @@ function Ne(t, i, r) {
360
371
  Ue(f);
361
372
  }, ne = () => {
362
373
  let e = document.createElement("style");
363
- e.innerHTML = u, p.appendChild(e);
374
+ e.innerHTML = h, p.appendChild(e);
364
375
  }, ae = () => {
365
- let e = new URL(n), o = document.createElement("style");
366
- fetch(e.href).then((l) => l.text()).then((l) => {
367
- o.innerHTML = l, setTimeout(
376
+ let e = new URL(a), o = document.createElement("style");
377
+ fetch(e.href).then((c) => c.text()).then((c) => {
378
+ o.innerHTML = c, setTimeout(
368
379
  () => {
369
380
  p.appendChild(o);
370
381
  },
@@ -375,9 +386,9 @@ function Ne(t, i, r) {
375
386
  const { merchantId: e, customerId: o } = ce();
376
387
  if (!e)
377
388
  return;
378
- const l = new URL(`${c}/v1/player/verification/GetKYCStatus`), m = new Headers();
389
+ const c = new URL(`${l}/v1/player/verification/GetKYCStatus`), m = new Headers();
379
390
  m.append("accept", "application/json"), m.append("Content-Type", "application/json"), m.append("X-Client-Request-Timestamp", Z.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
380
- const V = {
391
+ const b = {
381
392
  method: "POST",
382
393
  headers: m,
383
394
  body: JSON.stringify({
@@ -387,23 +398,23 @@ function Ne(t, i, r) {
387
398
  AllParameters: !1
388
399
  })
389
400
  };
390
- fetch(l, V).then((A) => A.json()).then((A) => {
391
- r(17, L = A.StaticCdnUrl + "/cashier/operator-assets/" + e), T = fe(A.Verifications), T.VerificationStatuses.forEach((v) => {
392
- v.VerificationUrlType !== "Widget" && b.add(v.Vendor);
401
+ fetch(c, b).then((A) => A.json()).then((A) => {
402
+ r(17, q = A.StaticCdnUrl + "/cashier/operator-assets/" + e), L = fe(A.Verifications), L.VerificationStatuses.forEach((v) => {
403
+ v.VerificationUrlType !== "Widget" && P.add(v.Vendor);
393
404
  }), r(4, F = K());
394
405
  });
395
406
  }, ce = () => {
396
- let e = h.split(".")[1];
407
+ let e = u.split(".")[1];
397
408
  if (e) {
398
409
  let o = JSON.parse(atob(e));
399
410
  return {
400
411
  merchantId: o == null ? void 0 : o.mid,
401
- customerId: `${o == null ? void 0 : o.mid}~${a}`
412
+ customerId: `${o == null ? void 0 : o.mid}~${n}`
402
413
  };
403
414
  }
404
415
  return { merchantId: null, customerId: null };
405
416
  }, fe = (e) => {
406
- var l;
417
+ var c;
407
418
  if (!e || !e.length)
408
419
  return {
409
420
  VerificationSummaryStatus: g.Unverified,
@@ -414,34 +425,34 @@ function Ne(t, i, r) {
414
425
  const m = de(o);
415
426
  return {
416
427
  VerificationSummaryStatus: m.Status,
417
- VerificationUrl: (l = m.Flags) == null ? void 0 : l.DeferredUrlKey,
428
+ VerificationUrl: (c = m.Flags) == null ? void 0 : c.DeferredUrlKey,
418
429
  VerificationStatuses: N(o, m.Status)
419
430
  };
420
431
  } else
421
432
  return {
422
- VerificationSummaryStatus: e.some((V) => V.Status === g.Failed) ? g.Failed : g.Verified,
433
+ VerificationSummaryStatus: e.some((b) => b.Status === g.Failed) ? g.Failed : g.Verified,
423
434
  VerificationStatuses: N(e, [g.Failed])
424
435
  };
425
436
  }, de = (e) => e.reduce(
426
- (o, l) => o ? new Date(o) < new Date(l) ? l : o : l,
437
+ (o, c) => o ? new Date(o) < new Date(c) ? c : o : c,
427
438
  0
428
- ), N = (e, o) => e.filter((l) => o.includes(l.Status)).map((l) => {
429
- var m, V;
439
+ ), N = (e, o) => e.filter((c) => o.includes(c.Status)).map((c) => {
440
+ var m, b;
430
441
  return {
431
- Type: l.Type,
432
- Vendor: l.VendorName,
433
- VerificationDocuments: l.Documents ? [...Object.values(l.Documents)] : [],
434
- VerificationUrlType: (m = l.Flags) == null ? void 0 : m.DeferredUrlTypeKey,
435
- VerificationUrl: (V = l.Flags) == null ? void 0 : V.DeferredUrlKey
442
+ Type: c.Type,
443
+ Vendor: c.VendorName,
444
+ VerificationDocuments: c.Documents ? [...Object.values(c.Documents)] : [],
445
+ VerificationUrlType: (m = c.Flags) == null ? void 0 : m.DeferredUrlTypeKey,
446
+ VerificationUrl: (b = c.Flags) == null ? void 0 : b.DeferredUrlKey
436
447
  };
437
448
  }), ue = (e) => e.filter((o) => re.includes(o.Status) ? o.Flags && o.Flags.DeferredUrlKey || he(o) || me(o) : !1), he = (e) => {
438
- const o = e.Documents && e.VendorName === M.Manual, l = Object.values(e.Documents).some((m) => m.Status === E.Requested);
439
- return o && l;
440
- }, me = (e) => e.VendorName === M.ShuftiPro && e.Status === g.Referred, K = () => {
441
- switch (T.VerificationSummaryStatus) {
449
+ const o = e.Documents && e.VendorName === B.Manual, c = Object.values(e.Documents).some((m) => m.Status === E.Requested);
450
+ return o && c;
451
+ }, me = (e) => e.VendorName === B.ShuftiPro && e.Status === g.Referred, K = () => {
452
+ switch (L.VerificationSummaryStatus) {
442
453
  case g.InProgress:
443
454
  const e = [];
444
- return b.forEach((o) => {
455
+ return P.forEach((o) => {
445
456
  e.push(pe(o));
446
457
  }), e;
447
458
  case g.Referred:
@@ -450,31 +461,31 @@ function Ne(t, i, r) {
450
461
  return [s("verification.message.failed")];
451
462
  }
452
463
  }, pe = (e) => {
453
- const o = T.VerificationStatuses.filter((l) => l.Vendor === e);
454
- if (e === M.ShuftiPro)
464
+ const o = L.VerificationStatuses.filter((c) => c.Vendor === e);
465
+ if (e === B.ShuftiPro)
455
466
  return ge(o);
456
467
  {
457
- const l = s("verification.idenfy.link-name"), m = {
458
- link: `<a href="${o[0].VerificationUrl}" target="_blank">${l}</a>`
468
+ const c = s("verification.idenfy.link-name"), m = {
469
+ link: `<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`
459
470
  };
460
471
  return s("verification.idenfy.in-progress", { values: m });
461
472
  }
462
473
  }, ge = (e) => {
463
- const o = [], l = {}, m = [
464
- B.Biometric,
465
- B.Documents,
466
- B.ProofOfAddress
474
+ const o = [], c = {}, m = [
475
+ T.Biometric,
476
+ T.Documents,
477
+ T.ProofOfAddress
467
478
  ];
468
479
  e.forEach((v) => {
469
- m.includes(v.Type) && (o.push(v.Type), l[v.Type] = ve(v, we(v.Type)));
480
+ m.includes(v.Type) && (o.push(v.Type), c[v.Type] = ve(v, we(v.Type)));
470
481
  });
471
- let V = o.every((v) => j.has(v)), A = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
472
- return V ? s("verification.shuftipro.validations-started") : s(A, { values: l });
482
+ let b = o.every((v) => j.has(v)), A = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
483
+ return b ? s("verification.shuftipro.validations-started") : s(A, { values: c });
473
484
  }, ve = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, we = (e) => s(`verification.shuftipro.link-name.${e}`), U = (e, o) => {
474
485
  if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
475
486
  if (e.target.closest(".verificationLink")) {
476
- const l = e.target.className.split(" ")[1];
477
- j.add(l), r(4, F = K());
487
+ const c = e.target.className.split(" ")[1];
488
+ j.add(c), r(4, F = K());
478
489
  }
479
490
  return;
480
491
  }
@@ -482,55 +493,55 @@ function Ne(t, i, r) {
482
493
  }, ye = () => {
483
494
  r(6, H = y === "false");
484
495
  }, ke = () => {
485
- r(8, z = L + "/" + f + "/" + He);
496
+ r(8, x = q + "/" + f + "/" + He);
486
497
  try {
487
- fetch(z, { method: "HEAD" }).then((e) => {
488
- r(7, x = e.ok);
498
+ fetch(x, { method: "HEAD" }).then((e) => {
499
+ r(7, z = e.ok);
489
500
  });
490
501
  } catch (e) {
491
- r(7, x = !1);
502
+ r(7, z = !1);
492
503
  }
493
504
  }, W = () => {
494
505
  window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
495
- }, Pe = (e, o) => U(o, e), be = (e, o) => U(o, e), Ve = () => W();
506
+ }, Ve = (e, o) => U(o, e), Pe = (e, o) => U(o, e), be = () => W();
496
507
  function De(e) {
497
508
  qe[e ? "unshift" : "push"](() => {
498
509
  p = e, r(3, p);
499
510
  });
500
511
  }
501
512
  return t.$$set = (e) => {
502
- "endpoint" in e && r(12, c = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, d = e.translationurl), "clientstyling" in e && r(0, u = e.clientstyling), "clientstylingurl" in e && r(1, n = e.clientstylingurl), "session" in e && r(15, h = e.session), "customerid" in e && r(16, a = e.customerid), "ismobileview" in e && r(2, y = e.ismobileview);
513
+ "endpoint" in e && r(12, l = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, d = e.translationurl), "clientstyling" in e && r(0, h = e.clientstyling), "clientstylingurl" in e && r(1, a = e.clientstylingurl), "session" in e && r(15, u = e.session), "customerid" in e && r(16, n = e.customerid), "ismobileview" in e && r(2, y = e.ismobileview);
503
514
  }, t.$$.update = () => {
504
515
  t.$$.dirty[0] & /*lang*/
505
516
  8192 && f && se(), t.$$.dirty[0] & /*endpoint, session*/
506
- 36864 && c && h && le(), t.$$.dirty[0] & /*translationurl*/
517
+ 36864 && l && u && le(), t.$$.dirty[0] & /*translationurl*/
507
518
  16384 && d && oe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
508
- 9 && u && p && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
509
- 10 && n && p && ae(), t.$$.dirty[0] & /*ismobileview*/
519
+ 9 && h && p && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
520
+ 10 && a && p && ae(), t.$$.dirty[0] & /*ismobileview*/
510
521
  4 && y && ye(), t.$$.dirty[0] & /*staticCdnUrl*/
511
- 131072 && L && ke();
522
+ 131072 && q && ke();
512
523
  }, [
513
- u,
514
- n,
524
+ h,
525
+ a,
515
526
  y,
516
527
  p,
517
528
  F,
518
529
  I,
519
530
  H,
520
- x,
521
531
  z,
532
+ x,
522
533
  s,
523
534
  U,
524
535
  W,
525
- c,
536
+ l,
526
537
  f,
527
538
  d,
528
- h,
529
- a,
530
- L,
539
+ u,
540
+ n,
541
+ q,
542
+ Ve,
531
543
  Pe,
532
544
  be,
533
- Ve,
534
545
  De
535
546
  ];
536
547
  }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-KmRU3Mgr.cjs");function M(n){e.append_styles(n,"svelte-1nj5tcr",".CashierVideoWrapper{position:fixed;width:100%;height:calc(100% - 55px);left:0;top:55px;z-index:5;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:calc(100% - 110px);top:110px}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}")}function C(n){let t,i,l,r,o,f,p,c=!n[2]&&m(n),s=n[2]&&w(n);return{c(){t=e.element("div"),c&&c.c(),i=e.space(),l=e.element("div"),s&&s.c(),r=e.space(),o=e.element("video"),f=e.element("source"),e.src_url_equal(f.src,p=n[0])||e.attr(f,"src",p),o.autoplay=!0,o.controls=!0,e.attr(o,"controlslist","nodownload"),e.attr(o,"disablepictureinpicture",""),e.attr(l,"class","CashierVideo"),e.attr(t,"class","CashierVideoWrapper"),e.attr(t,"part","CustomStylingContainer"),e.toggle_class(t,"CashierVideoWrapperDesktop",n[2])},m(d,u){e.insert(d,t,u),c&&c.m(t,null),e.append(t,i),e.append(t,l),s&&s.m(l,null),e.append(l,r),e.append(l,o),e.append(o,f),n[10](t)},p(d,u){d[2]?c&&(c.d(1),c=null):c?c.p(d,u):(c=m(d),c.c(),c.m(t,i)),d[2]?s?s.p(d,u):(s=w(d),s.c(),s.m(l,r)):s&&(s.d(1),s=null),u&1&&!e.src_url_equal(f.src,p=d[0])&&e.attr(f,"src",p),u&4&&e.toggle_class(t,"CashierVideoWrapperDesktop",d[2])},d(d){d&&e.detach(t),c&&c.d(),s&&s.d(),n[10](null)}}}function m(n){let t,i,l,r,o;return{c(){t=e.element("div"),i=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"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"),e.attr(l,"fill","#111111"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","13"),e.attr(i,"height","13"),e.attr(i,"viewBox","0 0 13 13"),e.attr(i,"fill","none"),e.attr(t,"class","CashierVideoHeader")},m(f,p){e.insert(f,t,p),e.append(t,i),e.append(i,l),r||(o=e.listen(i,"click",n[8]),r=!0)},p:e.noop,d(f){f&&e.detach(t),r=!1,o()}}}function w(n){let t,i,l,r;return{c(){t=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"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"),e.attr(i,"fill","#111111"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"width","13"),e.attr(t,"height","13"),e.attr(t,"viewBox","0 0 13 13"),e.attr(t,"fill","none")},m(o,f){e.insert(o,t,f),e.append(t,i),l||(r=e.listen(t,"click",n[9]),l=!0)},p:e.noop,d(o){o&&e.detach(t),l=!1,r()}}}function x(n){let t,i=n[3]&&C(n);return{c(){i&&i.c(),t=e.empty()},m(l,r){i&&i.m(l,r),e.insert(l,t,r)},p(l,[r]){l[3]?i?i.p(l,r):(i=C(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),i&&i.d(l)}}}function S(n,t,i){let{clientstyling:l=""}=t,{clientstylingurl:r=""}=t,{ismobileview:o}=t,{videosrc:f}=t,p=!0,c=!1,s;const d=()=>{i(3,c=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},u=a=>{a.data.type=="ShowCashierVideoModal"&&(i(3,c=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},_=()=>{i(2,p=o==="false")},y=()=>{let a=document.createElement("style");a.innerHTML=l,s.appendChild(a)},L=()=>{let a=new URL(r),g=document.createElement("style");fetch(a.href).then(h=>h.text()).then(h=>{g.innerHTML=h,setTimeout(()=>{s.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)}));const b=()=>d(),k=()=>d();function V(a){e.binding_callbacks[a?"unshift":"push"](()=>{s=a,i(1,s)})}return n.$$set=a=>{"clientstyling"in a&&i(5,l=a.clientstyling),"clientstylingurl"in a&&i(6,r=a.clientstylingurl),"ismobileview"in a&&i(7,o=a.ismobileview),"videosrc"in a&&i(0,f=a.videosrc)},n.$$.update=()=>{n.$$.dirty&128&&o&&_(),n.$$.dirty&34&&l&&s&&y(),n.$$.dirty&66&&r&&s&&L()},[f,s,p,c,d,l,r,o,b,k,V]}class v extends e.SvelteComponent{constructor(t){super(),e.init(this,t,S,x,e.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},M)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),e.flush()}}e.create_custom_element(v,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=v;