@everymatrix/cashier-video-modal 1.67.0 → 1.67.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.
- package/components/{CashierVideoModal-BROjf5hp.js → CashierVideoModal-BfMMUog5.js} +40 -40
- package/components/{CashierVideoModal-DWMWqRmM.js → CashierVideoModal-BvhpBaga.js} +55 -55
- package/components/CashierVideoModal-cOQ4clJX.cjs +1 -0
- package/es2015/cashier-video-modal.cjs +1 -1
- package/es2015/cashier-video-modal.js +1 -1
- package/esnext/cashier-video-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierVideoModal-DeAuF8sH.cjs +0 -1
|
@@ -82,7 +82,7 @@ function ot(e) {
|
|
|
82
82
|
function T(e, t, n) {
|
|
83
83
|
e.classList.toggle(t, !!n);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ct(e) {
|
|
86
86
|
const t = {};
|
|
87
87
|
return e.childNodes.forEach(
|
|
88
88
|
/** @param {Element} node */
|
|
@@ -95,13 +95,13 @@ let v;
|
|
|
95
95
|
function C(e) {
|
|
96
96
|
v = e;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function lt() {
|
|
99
99
|
if (!v)
|
|
100
100
|
throw new Error("Function called outside component initialization");
|
|
101
101
|
return v;
|
|
102
102
|
}
|
|
103
103
|
function ut(e) {
|
|
104
|
-
|
|
104
|
+
lt().$$.on_mount.push(e);
|
|
105
105
|
}
|
|
106
106
|
const p = [], A = [];
|
|
107
107
|
let b = [];
|
|
@@ -169,8 +169,8 @@ function mt(e, t) {
|
|
|
169
169
|
function pt(e, t) {
|
|
170
170
|
e.$$.dirty[0] === -1 && (p.push(e), dt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
171
171
|
}
|
|
172
|
-
function wt(e, t, n, s, i, o, u = null,
|
|
173
|
-
const
|
|
172
|
+
function wt(e, t, n, s, i, o, u = null, l = [-1]) {
|
|
173
|
+
const c = v;
|
|
174
174
|
C(e);
|
|
175
175
|
const r = e.$$ = {
|
|
176
176
|
fragment: null,
|
|
@@ -186,19 +186,19 @@ function wt(e, t, n, s, i, o, u = null, c = [-1]) {
|
|
|
186
186
|
on_disconnect: [],
|
|
187
187
|
before_update: [],
|
|
188
188
|
after_update: [],
|
|
189
|
-
context: new Map(t.context || (
|
|
189
|
+
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
190
190
|
// everything else
|
|
191
191
|
callbacks: z(),
|
|
192
|
-
dirty:
|
|
192
|
+
dirty: l,
|
|
193
193
|
skip_bound: !1,
|
|
194
|
-
root: t.target ||
|
|
194
|
+
root: t.target || c.$$.root
|
|
195
195
|
};
|
|
196
196
|
u && u(r.root);
|
|
197
197
|
let d = !1;
|
|
198
|
-
if (r.ctx = n
|
|
198
|
+
if (r.ctx = n(e, t.props || {}, (h, k, ...x) => {
|
|
199
199
|
const E = x.length ? x[0] : k;
|
|
200
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(r.ctx), t.target) {
|
|
202
202
|
if (t.hydrate) {
|
|
203
203
|
const h = ot(t.target);
|
|
204
204
|
r.fragment && r.fragment.l(h), h.forEach(y);
|
|
@@ -206,7 +206,7 @@ function wt(e, t, n, s, i, o, u = null, c = [-1]) {
|
|
|
206
206
|
r.fragment && r.fragment.c();
|
|
207
207
|
t.intro && _t(e.$$.fragment), gt(e, t.target, t.anchor), w();
|
|
208
208
|
}
|
|
209
|
-
C(
|
|
209
|
+
C(c);
|
|
210
210
|
}
|
|
211
211
|
let K;
|
|
212
212
|
typeof HTMLElement == "function" && (K = class extends HTMLElement {
|
|
@@ -257,18 +257,18 @@ typeof HTMLElement == "function" && (K = class extends HTMLElement {
|
|
|
257
257
|
* @param {HTMLElement} target
|
|
258
258
|
* @param {HTMLElement} [anchor]
|
|
259
259
|
*/
|
|
260
|
-
m: function(
|
|
261
|
-
L(
|
|
260
|
+
m: function(c, r) {
|
|
261
|
+
L(c, o, r);
|
|
262
262
|
},
|
|
263
|
-
d: function(
|
|
264
|
-
|
|
263
|
+
d: function(c) {
|
|
264
|
+
c && y(o);
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
269
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
270
270
|
return;
|
|
271
|
-
const t = {}, n =
|
|
271
|
+
const t = {}, n = ct(this);
|
|
272
272
|
for (const i of this.$$s)
|
|
273
273
|
i in n && (t[i] = [e(i)]);
|
|
274
274
|
for (const i of this.attributes) {
|
|
@@ -362,23 +362,23 @@ function bt(e, t, n, s, i, o) {
|
|
|
362
362
|
}
|
|
363
363
|
static get observedAttributes() {
|
|
364
364
|
return Object.keys(t).map(
|
|
365
|
-
(
|
|
365
|
+
(l) => (t[l].attribute || l).toLowerCase()
|
|
366
366
|
);
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
|
-
return Object.keys(t).forEach((
|
|
370
|
-
Object.defineProperty(u.prototype,
|
|
369
|
+
return Object.keys(t).forEach((l) => {
|
|
370
|
+
Object.defineProperty(u.prototype, l, {
|
|
371
371
|
get() {
|
|
372
|
-
return this.$$c &&
|
|
372
|
+
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
373
373
|
},
|
|
374
|
-
set(
|
|
375
|
-
|
|
374
|
+
set(c) {
|
|
375
|
+
c = V(l, c, t), this.$$d[l] = c, this.$$c?.$set({ [l]: c });
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
|
-
}), s.forEach((
|
|
379
|
-
Object.defineProperty(u.prototype,
|
|
378
|
+
}), s.forEach((l) => {
|
|
379
|
+
Object.defineProperty(u.prototype, l, {
|
|
380
380
|
get() {
|
|
381
|
-
return this.$$c?.[
|
|
381
|
+
return this.$$c?.[l];
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}), e.element = /** @type {any} */
|
|
@@ -434,15 +434,15 @@ function vt(e) {
|
|
|
434
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
|
-
let t, n, s, i, o, u,
|
|
437
|
+
let t, n, s, i, o, u, l, c = !/*desktopView*/
|
|
438
438
|
e[2] && U(e), r = (
|
|
439
439
|
/*desktopView*/
|
|
440
440
|
e[2] && q(e)
|
|
441
441
|
);
|
|
442
442
|
return {
|
|
443
443
|
c() {
|
|
444
|
-
t = _("div"),
|
|
445
|
-
e[0]) || f(u, "src",
|
|
444
|
+
t = _("div"), c && c.c(), n = R(), s = _("div"), r && r.c(), i = R(), o = _("video"), u = _("source"), D(u.src, l = /*videosrc*/
|
|
445
|
+
e[0]) || f(u, "src", l), 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",
|
|
448
448
|
/*desktopView*/
|
|
@@ -450,14 +450,14 @@ function I(e) {
|
|
|
450
450
|
);
|
|
451
451
|
},
|
|
452
452
|
m(d, h) {
|
|
453
|
-
L(d, t, h),
|
|
453
|
+
L(d, t, h), c && c.m(t, null), $(t, n), $(t, s), r && r.m(s, null), $(s, i), $(s, o), $(o, u), e[10](t);
|
|
454
454
|
},
|
|
455
455
|
p(d, h) {
|
|
456
456
|
/*desktopView*/
|
|
457
|
-
d[2] ?
|
|
457
|
+
d[2] ? c && (c.d(1), c = null) : c ? c.p(d, h) : (c = U(d), c.c(), c.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 && !D(u.src,
|
|
460
|
-
d[0]) && f(u, "src",
|
|
459
|
+
1 && !D(u.src, l = /*videosrc*/
|
|
460
|
+
d[0]) && f(u, "src", l), h & /*desktopView*/
|
|
461
461
|
4 && T(
|
|
462
462
|
t,
|
|
463
463
|
"CashierVideoWrapperDesktop",
|
|
@@ -466,7 +466,7 @@ function I(e) {
|
|
|
466
466
|
);
|
|
467
467
|
},
|
|
468
468
|
d(d) {
|
|
469
|
-
d && y(t),
|
|
469
|
+
d && y(t), c && c.d(), r && r.d(), e[10](null);
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
}
|
|
@@ -476,8 +476,8 @@ function U(e) {
|
|
|
476
476
|
c() {
|
|
477
477
|
t = _("div"), n = M("svg"), s = M("path"), f(s, "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(s, "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");
|
|
478
478
|
},
|
|
479
|
-
m(u,
|
|
480
|
-
L(u, t,
|
|
479
|
+
m(u, l) {
|
|
480
|
+
L(u, t, l), $(t, n), $(n, s), i || (o = G(
|
|
481
481
|
n,
|
|
482
482
|
"click",
|
|
483
483
|
/*click_handler*/
|
|
@@ -534,13 +534,13 @@ function Lt(e) {
|
|
|
534
534
|
};
|
|
535
535
|
}
|
|
536
536
|
function kt(e, t, n) {
|
|
537
|
-
let { clientstyling: s = "" } = t, { clientstylingurl: i = "" } = t, { ismobileview: o } = t, { videosrc: u } = t,
|
|
537
|
+
let { clientstyling: s = "" } = t, { clientstylingurl: i = "" } = t, { ismobileview: o } = t, { videosrc: u } = t, l = !0, c = !1, r;
|
|
538
538
|
const d = () => {
|
|
539
|
-
n(3,
|
|
539
|
+
n(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
540
540
|
}, h = (a) => {
|
|
541
|
-
a.data.type == "ShowCashierVideoModal" && (n(3,
|
|
541
|
+
a.data.type == "ShowCashierVideoModal" && (n(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
|
|
542
542
|
}, k = () => {
|
|
543
|
-
n(2,
|
|
543
|
+
n(2, l = o === "false");
|
|
544
544
|
}, x = () => {
|
|
545
545
|
let a = document.createElement("style");
|
|
546
546
|
a.innerHTML = s, r.appendChild(a);
|
|
@@ -574,8 +574,8 @@ function kt(e, t, n) {
|
|
|
574
574
|
}, [
|
|
575
575
|
u,
|
|
576
576
|
r,
|
|
577
|
-
c,
|
|
578
577
|
l,
|
|
578
|
+
c,
|
|
579
579
|
d,
|
|
580
580
|
s,
|
|
581
581
|
i,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var ot = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var ot = Object.defineProperty, ct = Object.defineProperties;
|
|
2
|
+
var lt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
4
|
var ut = Object.prototype.hasOwnProperty, ft = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var A = (e, t, n) => t in e ? ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, T = (e, t) => {
|
|
@@ -9,22 +9,22 @@ var A = (e, t, n) => t in e ? ot(e, t, { enumerable: !0, configurable: !0, writa
|
|
|
9
9
|
for (var n of R(t))
|
|
10
10
|
ft.call(t, n) && A(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, W = (e, t) =>
|
|
12
|
+
}, W = (e, t) => ct(e, lt(t));
|
|
13
13
|
var $ = (e, t, n) => (A(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var I = (e, t, n) => new Promise((i, r) => {
|
|
15
|
-
var s = (
|
|
15
|
+
var s = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
u(n.next(
|
|
17
|
+
u(n.next(c));
|
|
18
18
|
} catch (o) {
|
|
19
19
|
r(o);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, l = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
u(n.throw(
|
|
23
|
+
u(n.throw(c));
|
|
24
24
|
} catch (o) {
|
|
25
25
|
r(o);
|
|
26
26
|
}
|
|
27
|
-
}, u = (
|
|
27
|
+
}, u = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(s, l);
|
|
28
28
|
u((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function m() {
|
|
@@ -198,8 +198,8 @@ function St(e, t) {
|
|
|
198
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
|
-
function Mt(e, t, n, i, r, s,
|
|
202
|
-
const
|
|
201
|
+
function Mt(e, t, n, i, r, s, l = null, u = [-1]) {
|
|
202
|
+
const c = L;
|
|
203
203
|
v(e);
|
|
204
204
|
const o = e.$$ = {
|
|
205
205
|
fragment: null,
|
|
@@ -215,19 +215,19 @@ function Mt(e, t, n, i, r, s, c = null, u = [-1]) {
|
|
|
215
215
|
on_disconnect: [],
|
|
216
216
|
before_update: [],
|
|
217
217
|
after_update: [],
|
|
218
|
-
context: new Map(t.context || (
|
|
218
|
+
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
219
219
|
// everything else
|
|
220
220
|
callbacks: U(),
|
|
221
221
|
dirty: u,
|
|
222
222
|
skip_bound: !1,
|
|
223
|
-
root: t.target ||
|
|
223
|
+
root: t.target || c.$$.root
|
|
224
224
|
};
|
|
225
|
-
|
|
225
|
+
l && l(o.root);
|
|
226
226
|
let d = !1;
|
|
227
|
-
if (o.ctx = n
|
|
227
|
+
if (o.ctx = n(e, t.props || {}, (h, x, ...E) => {
|
|
228
228
|
const S = E.length ? E[0] : x;
|
|
229
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(o.ctx), t.target) {
|
|
231
231
|
if (t.hydrate) {
|
|
232
232
|
const h = mt(t.target);
|
|
233
233
|
o.fragment && o.fragment.l(h), h.forEach(C);
|
|
@@ -235,7 +235,7 @@ function Mt(e, t, n, i, r, s, c = null, u = [-1]) {
|
|
|
235
235
|
o.fragment && o.fragment.c();
|
|
236
236
|
t.intro && xt(e.$$.fragment), Et(e, t.target, t.anchor), b();
|
|
237
237
|
}
|
|
238
|
-
v(
|
|
238
|
+
v(c);
|
|
239
239
|
}
|
|
240
240
|
let nt;
|
|
241
241
|
typeof HTMLElement == "function" && (nt = class extends HTMLElement {
|
|
@@ -279,20 +279,20 @@ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
|
|
|
279
279
|
if (this.$$cn = !0, !this.$$c) {
|
|
280
280
|
let t = function(s) {
|
|
281
281
|
return () => {
|
|
282
|
-
let
|
|
282
|
+
let l;
|
|
283
283
|
return {
|
|
284
284
|
c: function() {
|
|
285
|
-
|
|
285
|
+
l = g("slot"), s !== "default" && f(l, "name", s);
|
|
286
286
|
},
|
|
287
287
|
/**
|
|
288
288
|
* @param {HTMLElement} target
|
|
289
289
|
* @param {HTMLElement} [anchor]
|
|
290
290
|
*/
|
|
291
291
|
m: function(o, d) {
|
|
292
|
-
k(o,
|
|
292
|
+
k(o, l, d);
|
|
293
293
|
},
|
|
294
294
|
d: function(o) {
|
|
295
|
-
o && C(
|
|
295
|
+
o && C(l);
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
};
|
|
@@ -303,8 +303,8 @@ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
|
|
|
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) {
|
|
306
|
-
const
|
|
307
|
-
|
|
306
|
+
const l = this.$$g_p(s.name);
|
|
307
|
+
l in this.$$d || (this.$$d[l] = M(l, s.value, this.$$p_d, "toProp"));
|
|
308
308
|
}
|
|
309
309
|
for (const s in this.$$p_d)
|
|
310
310
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -321,21 +321,21 @@ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
|
|
|
321
321
|
this.$$r = !0;
|
|
322
322
|
for (const s in this.$$p_d)
|
|
323
323
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
324
|
-
const
|
|
324
|
+
const l = M(
|
|
325
325
|
s,
|
|
326
326
|
this.$$d[s],
|
|
327
327
|
this.$$p_d,
|
|
328
328
|
"toAttribute"
|
|
329
329
|
);
|
|
330
|
-
|
|
330
|
+
l == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, l);
|
|
331
331
|
}
|
|
332
332
|
this.$$r = !1;
|
|
333
333
|
};
|
|
334
334
|
this.$$c.$$.after_update.push(r), r();
|
|
335
335
|
for (const s in this.$$l)
|
|
336
|
-
for (const
|
|
337
|
-
const u = this.$$c.$on(s,
|
|
338
|
-
this.$$l_u.set(
|
|
336
|
+
for (const l of this.$$l[s]) {
|
|
337
|
+
const u = this.$$c.$on(s, l);
|
|
338
|
+
this.$$l_u.set(l, u);
|
|
339
339
|
}
|
|
340
340
|
this.$$l = {};
|
|
341
341
|
}
|
|
@@ -389,7 +389,7 @@ function M(e, t, n, i) {
|
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
function jt(e, t, n, i, r, s) {
|
|
392
|
-
let
|
|
392
|
+
let l = class extends nt {
|
|
393
393
|
constructor() {
|
|
394
394
|
super(e, n, r), this.$$p_d = t;
|
|
395
395
|
}
|
|
@@ -400,24 +400,24 @@ function jt(e, t, n, i, r, s) {
|
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
402
|
return Object.keys(t).forEach((u) => {
|
|
403
|
-
Object.defineProperty(
|
|
403
|
+
Object.defineProperty(l.prototype, u, {
|
|
404
404
|
get() {
|
|
405
405
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
406
406
|
},
|
|
407
|
-
set(
|
|
407
|
+
set(c) {
|
|
408
408
|
var o;
|
|
409
|
-
|
|
409
|
+
c = M(u, c, t), this.$$d[u] = c, (o = this.$$c) == null || o.$set({ [u]: c });
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
}), i.forEach((u) => {
|
|
413
|
-
Object.defineProperty(
|
|
413
|
+
Object.defineProperty(l.prototype, u, {
|
|
414
414
|
get() {
|
|
415
|
-
var
|
|
416
|
-
return (
|
|
415
|
+
var c;
|
|
416
|
+
return (c = this.$$c) == null ? void 0 : c[u];
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
}), e.element = /** @type {any} */
|
|
420
|
-
|
|
420
|
+
l, l;
|
|
421
421
|
}
|
|
422
422
|
class Nt {
|
|
423
423
|
constructor() {
|
|
@@ -471,15 +471,15 @@ function At(e) {
|
|
|
471
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
|
-
let t, n, i, r, s,
|
|
474
|
+
let t, n, i, r, s, l, u, c = !/*desktopView*/
|
|
475
475
|
e[2] && K(e), o = (
|
|
476
476
|
/*desktopView*/
|
|
477
477
|
e[2] && Q(e)
|
|
478
478
|
);
|
|
479
479
|
return {
|
|
480
480
|
c() {
|
|
481
|
-
t = g("div"),
|
|
482
|
-
e[0]) || f(
|
|
481
|
+
t = g("div"), c && c.c(), n = F(), i = g("div"), o && o.c(), r = F(), s = g("video"), l = g("source"), q(l.src, u = /*videosrc*/
|
|
482
|
+
e[0]) || f(l, "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(
|
|
483
483
|
t,
|
|
484
484
|
"CashierVideoWrapperDesktop",
|
|
485
485
|
/*desktopView*/
|
|
@@ -487,14 +487,14 @@ function G(e) {
|
|
|
487
487
|
);
|
|
488
488
|
},
|
|
489
489
|
m(d, h) {
|
|
490
|
-
k(d, t, h),
|
|
490
|
+
k(d, t, h), c && c.m(t, null), _(t, n), _(t, i), o && o.m(i, null), _(i, r), _(i, s), _(s, l), e[10](t);
|
|
491
491
|
},
|
|
492
492
|
p(d, h) {
|
|
493
493
|
/*desktopView*/
|
|
494
|
-
d[2] ?
|
|
494
|
+
d[2] ? c && (c.d(1), c = null) : c ? c.p(d, h) : (c = K(d), c.c(), c.m(t, n)), /*desktopView*/
|
|
495
495
|
d[2] ? o ? o.p(d, h) : (o = Q(d), o.c(), o.m(i, r)) : o && (o.d(1), o = null), h & /*videosrc*/
|
|
496
|
-
1 && !q(
|
|
497
|
-
d[0]) && f(
|
|
496
|
+
1 && !q(l.src, u = /*videosrc*/
|
|
497
|
+
d[0]) && f(l, "src", u), h & /*desktopView*/
|
|
498
498
|
4 && J(
|
|
499
499
|
t,
|
|
500
500
|
"CashierVideoWrapperDesktop",
|
|
@@ -503,7 +503,7 @@ function G(e) {
|
|
|
503
503
|
);
|
|
504
504
|
},
|
|
505
505
|
d(d) {
|
|
506
|
-
d && C(t),
|
|
506
|
+
d && C(t), c && c.d(), o && o.d(), e[10](null);
|
|
507
507
|
}
|
|
508
508
|
};
|
|
509
509
|
}
|
|
@@ -513,8 +513,8 @@ function K(e) {
|
|
|
513
513
|
c() {
|
|
514
514
|
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");
|
|
515
515
|
},
|
|
516
|
-
m(
|
|
517
|
-
k(
|
|
516
|
+
m(l, u) {
|
|
517
|
+
k(l, t, u), _(t, n), _(n, i), r || (s = et(
|
|
518
518
|
n,
|
|
519
519
|
"click",
|
|
520
520
|
/*click_handler*/
|
|
@@ -522,8 +522,8 @@ function K(e) {
|
|
|
522
522
|
), r = !0);
|
|
523
523
|
},
|
|
524
524
|
p: m,
|
|
525
|
-
d(
|
|
526
|
-
|
|
525
|
+
d(l) {
|
|
526
|
+
l && C(t), r = !1, s();
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
}
|
|
@@ -533,8 +533,8 @@ function Q(e) {
|
|
|
533
533
|
c() {
|
|
534
534
|
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");
|
|
535
535
|
},
|
|
536
|
-
m(s,
|
|
537
|
-
k(s, t,
|
|
536
|
+
m(s, l) {
|
|
537
|
+
k(s, t, l), _(t, n), i || (r = et(
|
|
538
538
|
t,
|
|
539
539
|
"click",
|
|
540
540
|
/*click_handler_1*/
|
|
@@ -571,11 +571,11 @@ function Ht(e) {
|
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
573
|
function Bt(e, t, n) {
|
|
574
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: r = "" } = t, { ismobileview: s } = t, { videosrc:
|
|
574
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: r = "" } = t, { ismobileview: s } = t, { videosrc: l } = t, u = !0, c = !1, o;
|
|
575
575
|
const d = () => {
|
|
576
|
-
n(3,
|
|
576
|
+
n(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
577
577
|
}, h = (a) => {
|
|
578
|
-
a.data.type == "ShowCashierVideoModal" && (n(3,
|
|
578
|
+
a.data.type == "ShowCashierVideoModal" && (n(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
|
|
579
579
|
}, x = () => {
|
|
580
580
|
n(2, u = s === "false");
|
|
581
581
|
}, E = () => {
|
|
@@ -602,17 +602,17 @@ function Bt(e, t, n) {
|
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
604
|
return e.$$set = (a) => {
|
|
605
|
-
"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,
|
|
605
|
+
"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, l = a.videosrc);
|
|
606
606
|
}, e.$$.update = () => {
|
|
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
610
|
66 && r && o && S();
|
|
611
611
|
}, [
|
|
612
|
-
|
|
612
|
+
l,
|
|
613
613
|
o,
|
|
614
614
|
u,
|
|
615
|
-
|
|
615
|
+
c,
|
|
616
616
|
d,
|
|
617
617
|
i,
|
|
618
618
|
r,
|
|
@@ -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(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(o.ctx),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-
|
|
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-cOQ4clJX.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-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierVideoModal-BvhpBaga.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
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;
|