@everymatrix/cashier-video-modal 1.63.2 → 1.64.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.
@@ -3,7 +3,7 @@ function g() {
3
3
  function F(e) {
4
4
  return e();
5
5
  }
6
- function D() {
6
+ function z() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function j(e) {
@@ -15,9 +15,9 @@ function J(e) {
15
15
  function tt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- let V;
19
- function z(e, t) {
20
- return e === t ? !0 : (V || (V = document.createElement("a")), V.href = t, e === V.href);
18
+ let S;
19
+ function D(e, t) {
20
+ return e === t ? !0 : (S || (S = document.createElement("a")), S.href = t, e === S.href);
21
21
  }
22
22
  function et(e) {
23
23
  return Object.keys(e).length === 0;
@@ -103,7 +103,7 @@ function ct() {
103
103
  function ut(e) {
104
104
  ct().$$.on_mount.push(e);
105
105
  }
106
- const m = [], A = [];
106
+ const p = [], A = [];
107
107
  let b = [];
108
108
  const W = [], ft = /* @__PURE__ */ Promise.resolve();
109
109
  let H = !1;
@@ -114,28 +114,28 @@ function B(e) {
114
114
  b.push(e);
115
115
  }
116
116
  const O = /* @__PURE__ */ new Set();
117
- let p = 0;
117
+ let m = 0;
118
118
  function w() {
119
- if (p !== 0)
119
+ if (m !== 0)
120
120
  return;
121
121
  const e = v;
122
122
  do {
123
123
  try {
124
- for (; p < m.length; ) {
125
- const t = m[p];
126
- p++, C(t), at(t.$$);
124
+ for (; m < p.length; ) {
125
+ const t = p[m];
126
+ m++, C(t), at(t.$$);
127
127
  }
128
128
  } catch (t) {
129
- throw m.length = 0, p = 0, t;
129
+ throw p.length = 0, m = 0, t;
130
130
  }
131
- for (C(null), m.length = 0, p = 0; A.length; )
131
+ for (C(null), p.length = 0, m = 0; A.length; )
132
132
  A.pop()();
133
133
  for (let t = 0; t < b.length; t += 1) {
134
134
  const n = b[t];
135
135
  O.has(n) || (O.add(n), n());
136
136
  }
137
137
  b.length = 0;
138
- } while (m.length);
138
+ } while (p.length);
139
139
  for (; W.length; )
140
140
  W.pop()();
141
141
  H = !1, O.clear(), C(e);
@@ -162,12 +162,12 @@ function gt(e, t, n) {
162
162
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : j(o), e.$$.on_mount = [];
163
163
  }), i.forEach(B);
164
164
  }
165
- function pt(e, t) {
165
+ function mt(e, t) {
166
166
  const n = e.$$;
167
167
  n.fragment !== null && (ht(n.after_update), j(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
168
168
  }
169
- function mt(e, t) {
170
- e.$$.dirty[0] === -1 && (m.push(e), dt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
169
+ function pt(e, t) {
170
+ e.$$.dirty[0] === -1 && (p.push(e), dt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
171
171
  }
172
172
  function wt(e, t, n, s, i, o, u = null, c = [-1]) {
173
173
  const l = v;
@@ -179,7 +179,7 @@ function wt(e, t, n, s, i, o, u = null, c = [-1]) {
179
179
  props: o,
180
180
  update: g,
181
181
  not_equal: i,
182
- bound: D(),
182
+ bound: z(),
183
183
  // lifecycle
184
184
  on_mount: [],
185
185
  on_destroy: [],
@@ -188,7 +188,7 @@ function wt(e, t, n, s, i, o, u = null, c = [-1]) {
188
188
  after_update: [],
189
189
  context: new Map(t.context || (l ? l.$$.context : [])),
190
190
  // everything else
191
- callbacks: D(),
191
+ callbacks: z(),
192
192
  dirty: c,
193
193
  skip_bound: !1,
194
194
  root: t.target || l.$$.root
@@ -197,7 +197,7 @@ function wt(e, t, n, s, i, o, u = null, c = [-1]) {
197
197
  let d = !1;
198
198
  if (r.ctx = n ? n(e, t.props || {}, (h, k, ...x) => {
199
199
  const E = x.length ? x[0] : k;
200
- return r.ctx && i(r.ctx[h], r.ctx[h] = E) && (!r.skip_bound && r.bound[h] && r.bound[h](E), d && mt(e, h)), k;
200
+ return r.ctx && i(r.ctx[h], r.ctx[h] = E) && (!r.skip_bound && r.bound[h] && r.bound[h](E), d && pt(e, h)), k;
201
201
  }) : [], r.update(), d = !0, j(r.before_update), r.fragment = s ? s(r.ctx) : !1, t.target) {
202
202
  if (t.hydrate) {
203
203
  const h = ot(t.target);
@@ -273,7 +273,7 @@ typeof HTMLElement == "function" && (K = class extends HTMLElement {
273
273
  i in n && (t[i] = [e(i)]);
274
274
  for (const i of this.attributes) {
275
275
  const o = this.$$g_p(i.name);
276
- o in this.$$d || (this.$$d[o] = S(o, i.value, this.$$p_d, "toProp"));
276
+ o in this.$$d || (this.$$d[o] = V(o, i.value, this.$$p_d, "toProp"));
277
277
  }
278
278
  for (const i in this.$$p_d)
279
279
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -291,7 +291,7 @@ typeof HTMLElement == "function" && (K = class extends HTMLElement {
291
291
  this.$$r = !0;
292
292
  for (const i in this.$$p_d)
293
293
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
294
- const o = S(
294
+ const o = V(
295
295
  i,
296
296
  this.$$d[i],
297
297
  this.$$p_d,
@@ -313,7 +313,7 @@ typeof HTMLElement == "function" && (K = class extends HTMLElement {
313
313
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
314
314
  // and setting attributes through setAttribute etc, this is helpful
315
315
  attributeChangedCallback(e, t, n) {
316
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = S(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
316
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = V(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
317
317
  }
318
318
  disconnectedCallback() {
319
319
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (K = class extends HTMLElement {
326
326
  ) || e;
327
327
  }
328
328
  });
329
- function S(e, t, n, s) {
329
+ function V(e, t, n, s) {
330
330
  const i = n[e]?.type;
331
331
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
332
332
  return t;
@@ -372,7 +372,7 @@ function bt(e, t, n, s, i, o) {
372
372
  return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
373
373
  },
374
374
  set(l) {
375
- l = S(c, l, t), this.$$d[c] = l, this.$$c?.$set({ [c]: l });
375
+ l = V(c, l, t), this.$$d[c] = l, this.$$c?.$set({ [c]: l });
376
376
  }
377
377
  });
378
378
  }), s.forEach((c) => {
@@ -403,7 +403,7 @@ class yt {
403
403
  $$set = void 0;
404
404
  /** @returns {void} */
405
405
  $destroy() {
406
- pt(this, 1), this.$destroy = g;
406
+ mt(this, 1), this.$destroy = g;
407
407
  }
408
408
  /**
409
409
  * @template {Extract<keyof Events, string>} K
@@ -431,7 +431,7 @@ class yt {
431
431
  const Ct = "4";
432
432
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ct);
433
433
  function vt(e) {
434
- nt(e, "svelte-kll10v", ".CashierVideoWrapper{position:absolute;width:100%;height:500px;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:700px}.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}");
434
+ nt(e, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.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}");
435
435
  }
436
436
  function I(e) {
437
437
  let t, n, s, i, o, u, c, l = !/*desktopView*/
@@ -441,7 +441,7 @@ function I(e) {
441
441
  );
442
442
  return {
443
443
  c() {
444
- t = _("div"), l && l.c(), n = R(), s = _("div"), r && r.c(), i = R(), o = _("video"), u = _("source"), z(u.src, c = /*videosrc*/
444
+ t = _("div"), l && l.c(), n = R(), s = _("div"), r && r.c(), i = R(), o = _("video"), u = _("source"), D(u.src, c = /*videosrc*/
445
445
  e[0]) || f(u, "src", c), o.autoplay = !0, o.controls = !0, f(o, "controlslist", "nodownload"), f(o, "disablepictureinpicture", ""), f(s, "class", "CashierVideo"), f(t, "class", "CashierVideoWrapper"), f(t, "part", "CustomStylingContainer"), T(
446
446
  t,
447
447
  "CashierVideoWrapperDesktop",
@@ -456,7 +456,7 @@ function I(e) {
456
456
  /*desktopView*/
457
457
  d[2] ? l && (l.d(1), l = null) : l ? l.p(d, h) : (l = U(d), l.c(), l.m(t, n)), /*desktopView*/
458
458
  d[2] ? r ? r.p(d, h) : (r = q(d), r.c(), r.m(s, i)) : r && (r.d(1), r = null), h & /*videosrc*/
459
- 1 && !z(u.src, c = /*videosrc*/
459
+ 1 && !D(u.src, c = /*videosrc*/
460
460
  d[0]) && f(u, "src", c), h & /*desktopView*/
461
461
  4 && T(
462
462
  t,
@@ -27,7 +27,7 @@ var I = (e, t, n) => new Promise((i, r) => {
27
27
  }, u = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, c);
28
28
  u((n = n.apply(e, t)).next());
29
29
  });
30
- function p() {
30
+ function m() {
31
31
  }
32
32
  function X(e) {
33
33
  return e();
@@ -44,9 +44,9 @@ function Y(e) {
44
44
  function dt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- let S;
47
+ let V;
48
48
  function q(e, t) {
49
- return e === t ? !0 : (S || (S = document.createElement("a")), S.href = t, e === S.href);
49
+ return e === t ? !0 : (V || (V = document.createElement("a")), V.href = t, e === V.href);
50
50
  }
51
51
  function at(e) {
52
52
  return Object.keys(e).length === 0;
@@ -105,13 +105,13 @@ function et(e, t, n, i) {
105
105
  function f(e, t, n) {
106
106
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
107
107
  }
108
- function pt(e) {
108
+ function mt(e) {
109
109
  return Array.from(e.childNodes);
110
110
  }
111
111
  function J(e, t, n) {
112
112
  e.classList.toggle(t, !!n);
113
113
  }
114
- function mt(e) {
114
+ function pt(e) {
115
115
  const t = {};
116
116
  return e.childNodes.forEach(
117
117
  /** @param {Element} node */
@@ -139,25 +139,25 @@ let P = !1;
139
139
  function Ct() {
140
140
  P || (P = !0, yt.then(b));
141
141
  }
142
- function D(e) {
142
+ function z(e) {
143
143
  y.push(e);
144
144
  }
145
145
  const H = /* @__PURE__ */ new Set();
146
- let m = 0;
146
+ let p = 0;
147
147
  function b() {
148
- if (m !== 0)
148
+ if (p !== 0)
149
149
  return;
150
150
  const e = L;
151
151
  do {
152
152
  try {
153
- for (; m < w.length; ) {
154
- const t = w[m];
155
- m++, v(t), vt(t.$$);
153
+ for (; p < w.length; ) {
154
+ const t = w[p];
155
+ p++, v(t), vt(t.$$);
156
156
  }
157
157
  } catch (t) {
158
- throw w.length = 0, m = 0, t;
158
+ throw w.length = 0, p = 0, t;
159
159
  }
160
- for (v(null), w.length = 0, m = 0; B.length; )
160
+ for (v(null), w.length = 0, p = 0; B.length; )
161
161
  B.pop()();
162
162
  for (let t = 0; t < y.length; t += 1) {
163
163
  const n = y[t];
@@ -173,7 +173,7 @@ function vt(e) {
173
173
  if (e.fragment !== null) {
174
174
  e.update(), N(e.before_update);
175
175
  const t = e.dirty;
176
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(D);
176
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(z);
177
177
  }
178
178
  }
179
179
  function Lt(e) {
@@ -186,16 +186,16 @@ function xt(e, t) {
186
186
  }
187
187
  function Et(e, t, n) {
188
188
  const { fragment: i, after_update: r } = e.$$;
189
- i && i.m(t, n), D(() => {
189
+ i && i.m(t, n), z(() => {
190
190
  const s = e.$$.on_mount.map(X).filter(Y);
191
191
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : N(s), e.$$.on_mount = [];
192
- }), r.forEach(D);
192
+ }), r.forEach(z);
193
193
  }
194
- function Vt(e, t) {
194
+ function St(e, t) {
195
195
  const n = e.$$;
196
196
  n.fragment !== null && (Lt(n.after_update), N(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
197
197
  }
198
- function St(e, t) {
198
+ function Vt(e, t) {
199
199
  e.$$.dirty[0] === -1 && (w.push(e), Ct(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
200
200
  }
201
201
  function Mt(e, t, n, i, r, s, c = null, u = [-1]) {
@@ -206,7 +206,7 @@ function Mt(e, t, n, i, r, s, c = null, u = [-1]) {
206
206
  ctx: [],
207
207
  // state
208
208
  props: s,
209
- update: p,
209
+ update: m,
210
210
  not_equal: r,
211
211
  bound: U(),
212
212
  // lifecycle
@@ -225,11 +225,11 @@ function Mt(e, t, n, i, r, s, c = null, u = [-1]) {
225
225
  c && c(o.root);
226
226
  let d = !1;
227
227
  if (o.ctx = n ? n(e, t.props || {}, (h, x, ...E) => {
228
- const V = E.length ? E[0] : x;
229
- return o.ctx && r(o.ctx[h], o.ctx[h] = V) && (!o.skip_bound && o.bound[h] && o.bound[h](V), d && St(e, h)), x;
228
+ const S = E.length ? E[0] : x;
229
+ return o.ctx && r(o.ctx[h], o.ctx[h] = S) && (!o.skip_bound && o.bound[h] && o.bound[h](S), d && Vt(e, h)), x;
230
230
  }) : [], o.update(), d = !0, N(o.before_update), o.fragment = i ? i(o.ctx) : !1, t.target) {
231
231
  if (t.hydrate) {
232
- const h = pt(t.target);
232
+ const h = mt(t.target);
233
233
  o.fragment && o.fragment.l(h), h.forEach(C);
234
234
  } else
235
235
  o.fragment && o.fragment.c();
@@ -299,7 +299,7 @@ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
299
299
  };
300
300
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
301
301
  return;
302
- const n = {}, i = mt(this);
302
+ const n = {}, i = pt(this);
303
303
  for (const s of this.$$s)
304
304
  s in i && (n[s] = [t(s)]);
305
305
  for (const s of this.attributes) {
@@ -440,7 +440,7 @@ class Nt {
440
440
  }
441
441
  /** @returns {void} */
442
442
  $destroy() {
443
- Vt(this, 1), this.$destroy = p;
443
+ St(this, 1), this.$destroy = m;
444
444
  }
445
445
  /**
446
446
  * @template {Extract<keyof Events, string>} K
@@ -450,7 +450,7 @@ class Nt {
450
450
  */
451
451
  $on(t, n) {
452
452
  if (!Y(n))
453
- return p;
453
+ return m;
454
454
  const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
455
455
  return i.push(n), () => {
456
456
  const r = i.indexOf(n);
@@ -468,7 +468,7 @@ class Nt {
468
468
  const Ot = "4";
469
469
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ot);
470
470
  function At(e) {
471
- ht(e, "svelte-kll10v", ".CashierVideoWrapper{position:absolute;width:100%;height:500px;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:700px}.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}");
471
+ ht(e, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.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}");
472
472
  }
473
473
  function G(e) {
474
474
  let t, n, i, r, s, c, u, l = !/*desktopView*/
@@ -521,7 +521,7 @@ function K(e) {
521
521
  e[8]
522
522
  ), r = !0);
523
523
  },
524
- p,
524
+ p: m,
525
525
  d(c) {
526
526
  c && C(t), r = !1, s();
527
527
  }
@@ -541,7 +541,7 @@ function Q(e) {
541
541
  e[9]
542
542
  ), i = !0);
543
543
  },
544
- p,
544
+ p: m,
545
545
  d(s) {
546
546
  s && C(t), i = !1, r();
547
547
  }
@@ -563,8 +563,8 @@ function Ht(e) {
563
563
  /*show*/
564
564
  i[3] ? n ? n.p(i, r) : (n = G(i), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
565
565
  },
566
- i: p,
567
- o: p,
566
+ i: m,
567
+ o: m,
568
568
  d(i) {
569
569
  i && C(t), n && n.d(i);
570
570
  }
@@ -581,12 +581,12 @@ function Bt(e, t, n) {
581
581
  }, E = () => {
582
582
  let a = document.createElement("style");
583
583
  a.innerHTML = i, o.appendChild(a);
584
- }, V = () => {
585
- let a = new URL(r), z = document.createElement("style");
584
+ }, S = () => {
585
+ let a = new URL(r), D = document.createElement("style");
586
586
  fetch(a.href).then((O) => O.text()).then((O) => {
587
- z.innerHTML = O, setTimeout(
587
+ D.innerHTML = O, setTimeout(
588
588
  () => {
589
- o.appendChild(z);
589
+ o.appendChild(D);
590
590
  },
591
591
  1
592
592
  );
@@ -607,7 +607,7 @@ function Bt(e, t, n) {
607
607
  e.$$.dirty & /*ismobileview*/
608
608
  128 && s && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
609
609
  34 && i && o && E(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
610
- 66 && r && o && V();
610
+ 66 && r && o && S();
611
611
  }, [
612
612
  c,
613
613
  o,
@@ -0,0 +1 @@
1
+ "use strict";var lt=Object.defineProperty,ct=Object.defineProperties;var ut=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var A=(e,t,n)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))ft.call(t,n)&&A(e,n,t[n]);if(D)for(var n of D(t))dt.call(t,n)&&A(e,n,t[n]);return e},W=(e,t)=>ct(e,ut(t));var $=(e,t,n)=>(A(e,typeof t!="symbol"?t+"":t,n),n);var I=(e,t,n)=>new Promise((i,r)=>{var s=l=>{try{u(n.next(l))}catch(o){r(o)}},c=l=>{try{u(n.throw(l))}catch(o){r(o)}},u=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(){}function X(e){return e()}function U(){return Object.create(null)}function O(e){e.forEach(X)}function Y(e){return typeof e=="function"}function at(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let M;function q(e,t){return e===t?!0:(M||(M=document.createElement("a")),M.href=t,e===M.href)}function ht(e){return Object.keys(e).length===0}function _(e,t){e.appendChild(t)}function $t(e,t,n){const i=_t(e);if(!i.getElementById(t)){const r=g("style");r.id=t,r.textContent=n,gt(i,r)}}function _t(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function gt(e,t){return _(e.head||e,t),t.sheet}function k(e,t,n){e.insertBefore(t,n||null)}function C(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e){return document.createElement(e)}function j(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function tt(e){return document.createTextNode(e)}function F(){return tt(" ")}function mt(){return tt("")}function et(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function f(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function pt(e){return Array.from(e.childNodes)}function J(e,t,n){e.classList.toggle(t,!!n)}function bt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let L;function v(e){L=e}function wt(){if(!L)throw new Error("Function called outside component initialization");return L}function yt(e){wt().$$.on_mount.push(e)}const b=[],P=[];let y=[];const Z=[],Ct=Promise.resolve();let B=!1;function vt(){B||(B=!0,Ct.then(w))}function T(e){y.push(e)}const H=new Set;let p=0;function w(){if(p!==0)return;const e=L;do{try{for(;p<b.length;){const t=b[p];p++,v(t),Lt(t.$$)}}catch(t){throw b.length=0,p=0,t}for(v(null),b.length=0,p=0;P.length;)P.pop()();for(let t=0;t<y.length;t+=1){const n=y[t];H.has(n)||(H.add(n),n())}y.length=0}while(b.length);for(;Z.length;)Z.pop()();B=!1,H.clear(),v(e)}function Lt(e){if(e.fragment!==null){e.update(),O(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(T)}}function kt(e){const t=[],n=[];y.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),y=t}const xt=new Set;function Et(e,t){e&&e.i&&(xt.delete(e),e.i(t))}function St(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),T(()=>{const s=e.$$.on_mount.map(X).filter(Y);e.$$.on_destroy?e.$$.on_destroy.push(...s):O(s),e.$$.on_mount=[]}),r.forEach(T)}function Mt(e,t){const n=e.$$;n.fragment!==null&&(kt(n.after_update),O(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Vt(e,t){e.$$.dirty[0]===-1&&(b.push(e),vt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function jt(e,t,n,i,r,s,c=null,u=[-1]){const l=L;v(e);const o=e.$$={fragment:null,ctx:[],props:s,update:m,not_equal:r,bound:U(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:U(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};c&&c(o.root);let d=!1;if(o.ctx=n?n(e,t.props||{},(h,x,...E)=>{const S=E.length?E[0]:x;return o.ctx&&r(o.ctx[h],o.ctx[h]=S)&&(!o.skip_bound&&o.bound[h]&&o.bound[h](S),d&&Vt(e,h)),x}):[],o.update(),d=!0,O(o.before_update),o.fragment=i?i(o.ctx):!1,t.target){if(t.hydrate){const h=pt(t.target);o.fragment&&o.fragment.l(h),h.forEach(C)}else o.fragment&&o.fragment.c();t.intro&&Et(e.$$.fragment),St(e,t.target,t.anchor),w()}v(l)}let nt;typeof HTMLElement=="function"&&(nt=class extends HTMLElement{constructor(t,n,i){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return I(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let c;return{c:function(){c=g("slot"),s!=="default"&&f(c,"name",s)},m:function(o,d){k(o,c,d)},d:function(o){o&&C(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=bt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=V(c,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:W(R({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=V(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=V(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function V(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ot(e,t,n,i,r,s){let c=class extends nt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var o;l=V(u,l,t),this.$$d[u]=l,(o=this.$$c)==null||o.$set({[u]:l})}})}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=c,c}class Nt{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){Mt(this,1),this.$destroy=m}$on(t,n){if(!Y(n))return m;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!ht(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);function Ht(e){$t(e,"svelte-1d17c9c",".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.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 G(e){let t,n,i,r,s,c,u,l=!e[2]&&K(e),o=e[2]&&Q(e);return{c(){t=g("div"),l&&l.c(),n=F(),i=g("div"),o&&o.c(),r=F(),s=g("video"),c=g("source"),q(c.src,u=e[0])||f(c,"src",u),s.autoplay=!0,s.controls=!0,f(s,"controlslist","nodownload"),f(s,"disablepictureinpicture",""),f(i,"class","CashierVideo"),f(t,"class","CashierVideoWrapper"),f(t,"part","CustomStylingContainer"),J(t,"CashierVideoWrapperDesktop",e[2])},m(d,h){k(d,t,h),l&&l.m(t,null),_(t,n),_(t,i),o&&o.m(i,null),_(i,r),_(i,s),_(s,c),e[10](t)},p(d,h){d[2]?l&&(l.d(1),l=null):l?l.p(d,h):(l=K(d),l.c(),l.m(t,n)),d[2]?o?o.p(d,h):(o=Q(d),o.c(),o.m(i,r)):o&&(o.d(1),o=null),h&1&&!q(c.src,u=d[0])&&f(c,"src",u),h&4&&J(t,"CashierVideoWrapperDesktop",d[2])},d(d){d&&C(t),l&&l.d(),o&&o.d(),e[10](null)}}}function K(e){let t,n,i,r,s;return{c(){t=g("div"),n=j("svg"),i=j("path"),f(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"),f(i,"fill","#111111"),f(n,"xmlns","http://www.w3.org/2000/svg"),f(n,"width","13"),f(n,"height","13"),f(n,"viewBox","0 0 13 13"),f(n,"fill","none"),f(t,"class","CashierVideoHeader")},m(c,u){k(c,t,u),_(t,n),_(n,i),r||(s=et(n,"click",e[8]),r=!0)},p:m,d(c){c&&C(t),r=!1,s()}}}function Q(e){let t,n,i,r;return{c(){t=j("svg"),n=j("path"),f(n,"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"),f(n,"fill","#111111"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(t,"width","13"),f(t,"height","13"),f(t,"viewBox","0 0 13 13"),f(t,"fill","none")},m(s,c){k(s,t,c),_(t,n),i||(r=et(t,"click",e[9]),i=!0)},p:m,d(s){s&&C(t),i=!1,r()}}}function Pt(e){let t,n=e[3]&&G(e);return{c(){n&&n.c(),t=mt()},m(i,r){n&&n.m(i,r),k(i,t,r)},p(i,[r]){i[3]?n?n.p(i,r):(n=G(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:m,o:m,d(i){i&&C(t),n&&n.d(i)}}}function Bt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:r=""}=t,{ismobileview:s}=t,{videosrc:c}=t,u=!0,l=!1,o;const d=()=>{n(3,l=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},h=a=>{a.data.type=="ShowCashierVideoModal"&&(n(3,l=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},x=()=>{n(2,u=s==="false")},E=()=>{let a=document.createElement("style");a.innerHTML=i,o.appendChild(a)},S=()=>{let a=new URL(r),z=document.createElement("style");fetch(a.href).then(N=>N.text()).then(N=>{z.innerHTML=N,setTimeout(()=>{o.appendChild(z)},1)})};yt(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));const st=()=>d(),rt=()=>d();function ot(a){P[a?"unshift":"push"](()=>{o=a,n(1,o)})}return e.$$set=a=>{"clientstyling"in a&&n(5,i=a.clientstyling),"clientstylingurl"in a&&n(6,r=a.clientstylingurl),"ismobileview"in a&&n(7,s=a.ismobileview),"videosrc"in a&&n(0,c=a.videosrc)},e.$$.update=()=>{e.$$.dirty&128&&s&&x(),e.$$.dirty&34&&i&&o&&E(),e.$$.dirty&66&&r&&o&&S()},[c,o,u,l,d,i,r,s,st,rt,ot]}class it extends Nt{constructor(t){super(),jt(this,t,Bt,Pt,at,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},Ht)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),w()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),w()}}Ot(it,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=it;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierVideoModal-HDtLfKpT.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierVideoModal-DeAuF8sH.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierVideoModal-BvyG5gdW.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierVideoModal-DWMWqRmM.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierVideoModal-BoxPk4aU.js";
1
+ import { C as n } from "../components/CashierVideoModal-BROjf5hp.js";
2
2
  function i(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-video-modal",
3
- "version": "1.63.2",
3
+ "version": "1.64.0",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-video-modal.cjs",
6
6
  "module": "esnext/cashier-video-modal.js",
@@ -1 +0,0 @@
1
- "use strict";var lt=Object.defineProperty,ct=Object.defineProperties;var ut=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var A=(e,t,n)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))ft.call(t,n)&&A(e,n,t[n]);if(z)for(var n of z(t))dt.call(t,n)&&A(e,n,t[n]);return e},W=(e,t)=>ct(e,ut(t));var $=(e,t,n)=>(A(e,typeof t!="symbol"?t+"":t,n),n);var I=(e,t,n)=>new Promise((i,r)=>{var s=l=>{try{u(n.next(l))}catch(o){r(o)}},c=l=>{try{u(n.throw(l))}catch(o){r(o)}},u=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function p(){}function X(e){return e()}function U(){return Object.create(null)}function O(e){e.forEach(X)}function Y(e){return typeof e=="function"}function at(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let V;function q(e,t){return e===t?!0:(V||(V=document.createElement("a")),V.href=t,e===V.href)}function ht(e){return Object.keys(e).length===0}function g(e,t){e.appendChild(t)}function $t(e,t,n){const i=gt(e);if(!i.getElementById(t)){const r=_("style");r.id=t,r.textContent=n,_t(i,r)}}function gt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _t(e,t){return g(e.head||e,t),t.sheet}function k(e,t,n){e.insertBefore(t,n||null)}function C(e){e.parentNode&&e.parentNode.removeChild(e)}function _(e){return document.createElement(e)}function j(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function tt(e){return document.createTextNode(e)}function F(){return tt(" ")}function pt(){return tt("")}function et(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function f(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function mt(e){return Array.from(e.childNodes)}function J(e,t,n){e.classList.toggle(t,!!n)}function bt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let L;function v(e){L=e}function wt(){if(!L)throw new Error("Function called outside component initialization");return L}function yt(e){wt().$$.on_mount.push(e)}const b=[],P=[];let y=[];const Z=[],Ct=Promise.resolve();let B=!1;function vt(){B||(B=!0,Ct.then(w))}function D(e){y.push(e)}const H=new Set;let m=0;function w(){if(m!==0)return;const e=L;do{try{for(;m<b.length;){const t=b[m];m++,v(t),Lt(t.$$)}}catch(t){throw b.length=0,m=0,t}for(v(null),b.length=0,m=0;P.length;)P.pop()();for(let t=0;t<y.length;t+=1){const n=y[t];H.has(n)||(H.add(n),n())}y.length=0}while(b.length);for(;Z.length;)Z.pop()();B=!1,H.clear(),v(e)}function Lt(e){if(e.fragment!==null){e.update(),O(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(D)}}function kt(e){const t=[],n=[];y.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),y=t}const xt=new Set;function Et(e,t){e&&e.i&&(xt.delete(e),e.i(t))}function St(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),D(()=>{const s=e.$$.on_mount.map(X).filter(Y);e.$$.on_destroy?e.$$.on_destroy.push(...s):O(s),e.$$.on_mount=[]}),r.forEach(D)}function Vt(e,t){const n=e.$$;n.fragment!==null&&(kt(n.after_update),O(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Mt(e,t){e.$$.dirty[0]===-1&&(b.push(e),vt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function jt(e,t,n,i,r,s,c=null,u=[-1]){const l=L;v(e);const o=e.$$={fragment:null,ctx:[],props:s,update:p,not_equal:r,bound:U(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:U(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};c&&c(o.root);let d=!1;if(o.ctx=n?n(e,t.props||{},(h,x,...E)=>{const S=E.length?E[0]:x;return o.ctx&&r(o.ctx[h],o.ctx[h]=S)&&(!o.skip_bound&&o.bound[h]&&o.bound[h](S),d&&Mt(e,h)),x}):[],o.update(),d=!0,O(o.before_update),o.fragment=i?i(o.ctx):!1,t.target){if(t.hydrate){const h=mt(t.target);o.fragment&&o.fragment.l(h),h.forEach(C)}else o.fragment&&o.fragment.c();t.intro&&Et(e.$$.fragment),St(e,t.target,t.anchor),w()}v(l)}let nt;typeof HTMLElement=="function"&&(nt=class extends HTMLElement{constructor(t,n,i){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return I(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let c;return{c:function(){c=_("slot"),s!=="default"&&f(c,"name",s)},m:function(o,d){k(o,c,d)},d:function(o){o&&C(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=bt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=M(c,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:W(R({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=M(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=M(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function M(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ot(e,t,n,i,r,s){let c=class extends nt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var o;l=M(u,l,t),this.$$d[u]=l,(o=this.$$c)==null||o.$set({[u]:l})}})}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=c,c}class Nt{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){Vt(this,1),this.$destroy=p}$on(t,n){if(!Y(n))return p;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!ht(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);function Ht(e){$t(e,"svelte-kll10v",".CashierVideoWrapper{position:absolute;width:100%;height:500px;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:700px}.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 G(e){let t,n,i,r,s,c,u,l=!e[2]&&K(e),o=e[2]&&Q(e);return{c(){t=_("div"),l&&l.c(),n=F(),i=_("div"),o&&o.c(),r=F(),s=_("video"),c=_("source"),q(c.src,u=e[0])||f(c,"src",u),s.autoplay=!0,s.controls=!0,f(s,"controlslist","nodownload"),f(s,"disablepictureinpicture",""),f(i,"class","CashierVideo"),f(t,"class","CashierVideoWrapper"),f(t,"part","CustomStylingContainer"),J(t,"CashierVideoWrapperDesktop",e[2])},m(d,h){k(d,t,h),l&&l.m(t,null),g(t,n),g(t,i),o&&o.m(i,null),g(i,r),g(i,s),g(s,c),e[10](t)},p(d,h){d[2]?l&&(l.d(1),l=null):l?l.p(d,h):(l=K(d),l.c(),l.m(t,n)),d[2]?o?o.p(d,h):(o=Q(d),o.c(),o.m(i,r)):o&&(o.d(1),o=null),h&1&&!q(c.src,u=d[0])&&f(c,"src",u),h&4&&J(t,"CashierVideoWrapperDesktop",d[2])},d(d){d&&C(t),l&&l.d(),o&&o.d(),e[10](null)}}}function K(e){let t,n,i,r,s;return{c(){t=_("div"),n=j("svg"),i=j("path"),f(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"),f(i,"fill","#111111"),f(n,"xmlns","http://www.w3.org/2000/svg"),f(n,"width","13"),f(n,"height","13"),f(n,"viewBox","0 0 13 13"),f(n,"fill","none"),f(t,"class","CashierVideoHeader")},m(c,u){k(c,t,u),g(t,n),g(n,i),r||(s=et(n,"click",e[8]),r=!0)},p,d(c){c&&C(t),r=!1,s()}}}function Q(e){let t,n,i,r;return{c(){t=j("svg"),n=j("path"),f(n,"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"),f(n,"fill","#111111"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(t,"width","13"),f(t,"height","13"),f(t,"viewBox","0 0 13 13"),f(t,"fill","none")},m(s,c){k(s,t,c),g(t,n),i||(r=et(t,"click",e[9]),i=!0)},p,d(s){s&&C(t),i=!1,r()}}}function Pt(e){let t,n=e[3]&&G(e);return{c(){n&&n.c(),t=pt()},m(i,r){n&&n.m(i,r),k(i,t,r)},p(i,[r]){i[3]?n?n.p(i,r):(n=G(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:p,o:p,d(i){i&&C(t),n&&n.d(i)}}}function Bt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:r=""}=t,{ismobileview:s}=t,{videosrc:c}=t,u=!0,l=!1,o;const d=()=>{n(3,l=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},h=a=>{a.data.type=="ShowCashierVideoModal"&&(n(3,l=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},x=()=>{n(2,u=s==="false")},E=()=>{let a=document.createElement("style");a.innerHTML=i,o.appendChild(a)},S=()=>{let a=new URL(r),T=document.createElement("style");fetch(a.href).then(N=>N.text()).then(N=>{T.innerHTML=N,setTimeout(()=>{o.appendChild(T)},1)})};yt(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));const st=()=>d(),rt=()=>d();function ot(a){P[a?"unshift":"push"](()=>{o=a,n(1,o)})}return e.$$set=a=>{"clientstyling"in a&&n(5,i=a.clientstyling),"clientstylingurl"in a&&n(6,r=a.clientstylingurl),"ismobileview"in a&&n(7,s=a.ismobileview),"videosrc"in a&&n(0,c=a.videosrc)},e.$$.update=()=>{e.$$.dirty&128&&s&&x(),e.$$.dirty&34&&i&&o&&E(),e.$$.dirty&66&&r&&o&&S()},[c,o,u,l,d,i,r,s,st,rt,ot]}class it extends Nt{constructor(t){super(),jt(this,t,Bt,Pt,at,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},Ht)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),w()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),w()}}Ot(it,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=it;