@everymatrix/cashier-verifications 1.74.1 → 1.74.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.
@@ -0,0 +1,654 @@
1
+ import { _ as j, a as M, b as V, c as g, S as oe, i as se, f as w, d as ue, s as ce, e as le, g as ae, h as L, n as E, j as k, o as fe, k as _, l as A, m as U, p as f, t as B, q as m, r as x, u as Q, v as de, w as he, x as pe, y as be } from "./CashierVerifications-BWymI-rg.js";
2
+ function v(r) {
3
+ return typeof r == "function";
4
+ }
5
+ function X(r) {
6
+ var t = function(i) {
7
+ Error.call(i), i.stack = new Error().stack;
8
+ }, e = r(t);
9
+ return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
10
+ }
11
+ var T = X(function(r) {
12
+ return function(e) {
13
+ r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
14
+ ` + e.map(function(i, n) {
15
+ return n + 1 + ") " + i.toString();
16
+ }).join(`
17
+ `) : "", this.name = "UnsubscriptionError", this.errors = e;
18
+ };
19
+ });
20
+ function I(r, t) {
21
+ if (r) {
22
+ var e = r.indexOf(t);
23
+ 0 <= e && r.splice(e, 1);
24
+ }
25
+ }
26
+ var O = function() {
27
+ function r(t) {
28
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
29
+ }
30
+ return r.prototype.unsubscribe = function() {
31
+ var t, e, i, n, o;
32
+ if (!this.closed) {
33
+ this.closed = !0;
34
+ var s = this._parentage;
35
+ if (s)
36
+ if (this._parentage = null, Array.isArray(s))
37
+ try {
38
+ for (var u = j(s), c = u.next(); !c.done; c = u.next()) {
39
+ var l = c.value;
40
+ l.remove(this);
41
+ }
42
+ } catch (p) {
43
+ t = { error: p };
44
+ } finally {
45
+ try {
46
+ c && !c.done && (e = u.return) && e.call(u);
47
+ } finally {
48
+ if (t)
49
+ throw t.error;
50
+ }
51
+ }
52
+ else
53
+ s.remove(this);
54
+ var a = this.initialTeardown;
55
+ if (v(a))
56
+ try {
57
+ a();
58
+ } catch (p) {
59
+ o = p instanceof T ? p.errors : [p];
60
+ }
61
+ var d = this._finalizers;
62
+ if (d) {
63
+ this._finalizers = null;
64
+ try {
65
+ for (var b = j(d), y = b.next(); !y.done; y = b.next()) {
66
+ var P = y.value;
67
+ try {
68
+ z(P);
69
+ } catch (p) {
70
+ o = o != null ? o : [], p instanceof T ? o = M(M([], V(o)), V(p.errors)) : o.push(p);
71
+ }
72
+ }
73
+ } catch (p) {
74
+ i = { error: p };
75
+ } finally {
76
+ try {
77
+ y && !y.done && (n = b.return) && n.call(b);
78
+ } finally {
79
+ if (i)
80
+ throw i.error;
81
+ }
82
+ }
83
+ }
84
+ if (o)
85
+ throw new T(o);
86
+ }
87
+ }, r.prototype.add = function(t) {
88
+ var e;
89
+ if (t && t !== this)
90
+ if (this.closed)
91
+ z(t);
92
+ else {
93
+ if (t instanceof r) {
94
+ if (t.closed || t._hasParent(this))
95
+ return;
96
+ t._addParent(this);
97
+ }
98
+ (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
99
+ }
100
+ }, r.prototype._hasParent = function(t) {
101
+ var e = this._parentage;
102
+ return e === t || Array.isArray(e) && e.includes(t);
103
+ }, r.prototype._addParent = function(t) {
104
+ var e = this._parentage;
105
+ this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
106
+ }, r.prototype._removeParent = function(t) {
107
+ var e = this._parentage;
108
+ e === t ? this._parentage = null : Array.isArray(e) && I(e, t);
109
+ }, r.prototype.remove = function(t) {
110
+ var e = this._finalizers;
111
+ e && I(e, t), t instanceof r && t._removeParent(this);
112
+ }, r.EMPTY = function() {
113
+ var t = new r();
114
+ return t.closed = !0, t;
115
+ }(), r;
116
+ }(), N = O.EMPTY;
117
+ function $(r) {
118
+ return r instanceof O || r && "closed" in r && v(r.remove) && v(r.add) && v(r.unsubscribe);
119
+ }
120
+ function z(r) {
121
+ v(r) ? r() : r.unsubscribe();
122
+ }
123
+ var ve = {
124
+ onUnhandledError: null,
125
+ onStoppedNotification: null,
126
+ Promise: void 0,
127
+ useDeprecatedSynchronousErrorHandling: !1,
128
+ useDeprecatedNextContext: !1
129
+ }, ye = {
130
+ setTimeout: function(r, t) {
131
+ for (var e = [], i = 2; i < arguments.length; i++)
132
+ e[i - 2] = arguments[i];
133
+ return setTimeout.apply(void 0, M([r, t], V(e)));
134
+ },
135
+ clearTimeout: function(r) {
136
+ return clearTimeout(r);
137
+ },
138
+ delegate: void 0
139
+ };
140
+ function me(r) {
141
+ ye.setTimeout(function() {
142
+ throw r;
143
+ });
144
+ }
145
+ function D() {
146
+ }
147
+ function C(r) {
148
+ r();
149
+ }
150
+ var ee = function(r) {
151
+ g(t, r);
152
+ function t(e) {
153
+ var i = r.call(this) || this;
154
+ return i.isStopped = !1, e ? (i.destination = e, $(e) && e.add(i)) : i.destination = ge, i;
155
+ }
156
+ return t.create = function(e, i, n) {
157
+ return new W(e, i, n);
158
+ }, t.prototype.next = function(e) {
159
+ this.isStopped || this._next(e);
160
+ }, t.prototype.error = function(e) {
161
+ this.isStopped || (this.isStopped = !0, this._error(e));
162
+ }, t.prototype.complete = function() {
163
+ this.isStopped || (this.isStopped = !0, this._complete());
164
+ }, t.prototype.unsubscribe = function() {
165
+ this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
166
+ }, t.prototype._next = function(e) {
167
+ this.destination.next(e);
168
+ }, t.prototype._error = function(e) {
169
+ try {
170
+ this.destination.error(e);
171
+ } finally {
172
+ this.unsubscribe();
173
+ }
174
+ }, t.prototype._complete = function() {
175
+ try {
176
+ this.destination.complete();
177
+ } finally {
178
+ this.unsubscribe();
179
+ }
180
+ }, t;
181
+ }(O), we = function() {
182
+ function r(t) {
183
+ this.partialObserver = t;
184
+ }
185
+ return r.prototype.next = function(t) {
186
+ var e = this.partialObserver;
187
+ if (e.next)
188
+ try {
189
+ e.next(t);
190
+ } catch (i) {
191
+ S(i);
192
+ }
193
+ }, r.prototype.error = function(t) {
194
+ var e = this.partialObserver;
195
+ if (e.error)
196
+ try {
197
+ e.error(t);
198
+ } catch (i) {
199
+ S(i);
200
+ }
201
+ else
202
+ S(t);
203
+ }, r.prototype.complete = function() {
204
+ var t = this.partialObserver;
205
+ if (t.complete)
206
+ try {
207
+ t.complete();
208
+ } catch (e) {
209
+ S(e);
210
+ }
211
+ }, r;
212
+ }(), W = function(r) {
213
+ g(t, r);
214
+ function t(e, i, n) {
215
+ var o = r.call(this) || this, s;
216
+ return v(e) || !e ? s = {
217
+ next: e != null ? e : void 0,
218
+ error: i != null ? i : void 0,
219
+ complete: n != null ? n : void 0
220
+ } : s = e, o.destination = new we(s), o;
221
+ }
222
+ return t;
223
+ }(ee);
224
+ function S(r) {
225
+ me(r);
226
+ }
227
+ function _e(r) {
228
+ throw r;
229
+ }
230
+ var ge = {
231
+ closed: !0,
232
+ next: D,
233
+ error: _e,
234
+ complete: D
235
+ }, Se = function() {
236
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
237
+ }();
238
+ function Ce(r) {
239
+ return r;
240
+ }
241
+ function Ee(r) {
242
+ return r.length === 0 ? Ce : r.length === 1 ? r[0] : function(e) {
243
+ return r.reduce(function(i, n) {
244
+ return n(i);
245
+ }, e);
246
+ };
247
+ }
248
+ var H = function() {
249
+ function r(t) {
250
+ t && (this._subscribe = t);
251
+ }
252
+ return r.prototype.lift = function(t) {
253
+ var e = new r();
254
+ return e.source = this, e.operator = t, e;
255
+ }, r.prototype.subscribe = function(t, e, i) {
256
+ var n = this, o = Le(t) ? t : new W(t, e, i);
257
+ return C(function() {
258
+ var s = n, u = s.operator, c = s.source;
259
+ o.add(u ? u.call(o, c) : c ? n._subscribe(o) : n._trySubscribe(o));
260
+ }), o;
261
+ }, r.prototype._trySubscribe = function(t) {
262
+ try {
263
+ return this._subscribe(t);
264
+ } catch (e) {
265
+ t.error(e);
266
+ }
267
+ }, r.prototype.forEach = function(t, e) {
268
+ var i = this;
269
+ return e = R(e), new e(function(n, o) {
270
+ var s = new W({
271
+ next: function(u) {
272
+ try {
273
+ t(u);
274
+ } catch (c) {
275
+ o(c), s.unsubscribe();
276
+ }
277
+ },
278
+ error: o,
279
+ complete: n
280
+ });
281
+ i.subscribe(s);
282
+ });
283
+ }, r.prototype._subscribe = function(t) {
284
+ var e;
285
+ return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
286
+ }, r.prototype[Se] = function() {
287
+ return this;
288
+ }, r.prototype.pipe = function() {
289
+ for (var t = [], e = 0; e < arguments.length; e++)
290
+ t[e] = arguments[e];
291
+ return Ee(t)(this);
292
+ }, r.prototype.toPromise = function(t) {
293
+ var e = this;
294
+ return t = R(t), new t(function(i, n) {
295
+ var o;
296
+ e.subscribe(function(s) {
297
+ return o = s;
298
+ }, function(s) {
299
+ return n(s);
300
+ }, function() {
301
+ return i(o);
302
+ });
303
+ });
304
+ }, r.create = function(t) {
305
+ return new r(t);
306
+ }, r;
307
+ }();
308
+ function R(r) {
309
+ var t;
310
+ return (t = r != null ? r : ve.Promise) !== null && t !== void 0 ? t : Promise;
311
+ }
312
+ function xe(r) {
313
+ return r && v(r.next) && v(r.error) && v(r.complete);
314
+ }
315
+ function Le(r) {
316
+ return r && r instanceof ee || xe(r) && $(r);
317
+ }
318
+ var ke = X(function(r) {
319
+ return function() {
320
+ r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
321
+ };
322
+ }), te = function(r) {
323
+ g(t, r);
324
+ function t() {
325
+ var e = r.call(this) || this;
326
+ return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
327
+ }
328
+ return t.prototype.lift = function(e) {
329
+ var i = new F(this, this);
330
+ return i.operator = e, i;
331
+ }, t.prototype._throwIfClosed = function() {
332
+ if (this.closed)
333
+ throw new ke();
334
+ }, t.prototype.next = function(e) {
335
+ var i = this;
336
+ C(function() {
337
+ var n, o;
338
+ if (i._throwIfClosed(), !i.isStopped) {
339
+ i.currentObservers || (i.currentObservers = Array.from(i.observers));
340
+ try {
341
+ for (var s = j(i.currentObservers), u = s.next(); !u.done; u = s.next()) {
342
+ var c = u.value;
343
+ c.next(e);
344
+ }
345
+ } catch (l) {
346
+ n = { error: l };
347
+ } finally {
348
+ try {
349
+ u && !u.done && (o = s.return) && o.call(s);
350
+ } finally {
351
+ if (n)
352
+ throw n.error;
353
+ }
354
+ }
355
+ }
356
+ });
357
+ }, t.prototype.error = function(e) {
358
+ var i = this;
359
+ C(function() {
360
+ if (i._throwIfClosed(), !i.isStopped) {
361
+ i.hasError = i.isStopped = !0, i.thrownError = e;
362
+ for (var n = i.observers; n.length; )
363
+ n.shift().error(e);
364
+ }
365
+ });
366
+ }, t.prototype.complete = function() {
367
+ var e = this;
368
+ C(function() {
369
+ if (e._throwIfClosed(), !e.isStopped) {
370
+ e.isStopped = !0;
371
+ for (var i = e.observers; i.length; )
372
+ i.shift().complete();
373
+ }
374
+ });
375
+ }, t.prototype.unsubscribe = function() {
376
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
377
+ }, Object.defineProperty(t.prototype, "observed", {
378
+ get: function() {
379
+ var e;
380
+ return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
381
+ },
382
+ enumerable: !1,
383
+ configurable: !0
384
+ }), t.prototype._trySubscribe = function(e) {
385
+ return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
386
+ }, t.prototype._subscribe = function(e) {
387
+ return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
388
+ }, t.prototype._innerSubscribe = function(e) {
389
+ var i = this, n = this, o = n.hasError, s = n.isStopped, u = n.observers;
390
+ return o || s ? N : (this.currentObservers = null, u.push(e), new O(function() {
391
+ i.currentObservers = null, I(u, e);
392
+ }));
393
+ }, t.prototype._checkFinalizedStatuses = function(e) {
394
+ var i = this, n = i.hasError, o = i.thrownError, s = i.isStopped;
395
+ n ? e.error(o) : s && e.complete();
396
+ }, t.prototype.asObservable = function() {
397
+ var e = new H();
398
+ return e.source = this, e;
399
+ }, t.create = function(e, i) {
400
+ return new F(e, i);
401
+ }, t;
402
+ }(H), F = function(r) {
403
+ g(t, r);
404
+ function t(e, i) {
405
+ var n = r.call(this) || this;
406
+ return n.destination = e, n.source = i, n;
407
+ }
408
+ return t.prototype.next = function(e) {
409
+ var i, n;
410
+ (n = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || n === void 0 || n.call(i, e);
411
+ }, t.prototype.error = function(e) {
412
+ var i, n;
413
+ (n = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || n === void 0 || n.call(i, e);
414
+ }, t.prototype.complete = function() {
415
+ var e, i;
416
+ (i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
417
+ }, t.prototype._subscribe = function(e) {
418
+ var i, n;
419
+ return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && n !== void 0 ? n : N;
420
+ }, t;
421
+ }(te), re = {
422
+ now: function() {
423
+ return (re.delegate || Date).now();
424
+ },
425
+ delegate: void 0
426
+ }, Oe = function(r) {
427
+ g(t, r);
428
+ function t(e, i, n) {
429
+ e === void 0 && (e = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = re);
430
+ var o = r.call(this) || this;
431
+ return o._bufferSize = e, o._windowTime = i, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = i === 1 / 0, o._bufferSize = Math.max(1, e), o._windowTime = Math.max(1, i), o;
432
+ }
433
+ return t.prototype.next = function(e) {
434
+ var i = this, n = i.isStopped, o = i._buffer, s = i._infiniteTimeWindow, u = i._timestampProvider, c = i._windowTime;
435
+ n || (o.push(e), !s && o.push(u.now() + c)), this._trimBuffer(), r.prototype.next.call(this, e);
436
+ }, t.prototype._subscribe = function(e) {
437
+ this._throwIfClosed(), this._trimBuffer();
438
+ for (var i = this._innerSubscribe(e), n = this, o = n._infiniteTimeWindow, s = n._buffer, u = s.slice(), c = 0; c < u.length && !e.closed; c += o ? 1 : 2)
439
+ e.next(u[c]);
440
+ return this._checkFinalizedStatuses(e), i;
441
+ }, t.prototype._trimBuffer = function() {
442
+ var e = this, i = e._bufferSize, n = e._timestampProvider, o = e._buffer, s = e._infiniteTimeWindow, u = (s ? 1 : 2) * i;
443
+ if (i < 1 / 0 && u < o.length && o.splice(0, o.length - u), !s) {
444
+ for (var c = n.now(), l = 0, a = 1; a < o.length && o[a] <= c; a += 2)
445
+ l = a;
446
+ l && o.splice(0, l + 1);
447
+ }
448
+ }, t;
449
+ }(te);
450
+ const Y = [], q = {}, Pe = (r, t = 0) => {
451
+ if (Y.indexOf(r) == -1) {
452
+ const e = new Oe(t);
453
+ q[r] = e, Y.push(r);
454
+ }
455
+ return q[r];
456
+ };
457
+ window.emWidgets = { topic: Pe };
458
+ const Z = (r) => !!(r.toLowerCase().match(/android/i) || r.toLowerCase().match(/blackberry|bb/i) || r.toLowerCase().match(/iphone|ipad|ipod/i) || r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
459
+ function Te(r) {
460
+ le(r, "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}");
461
+ }
462
+ function G(r) {
463
+ let t, e, i, n, o, s, u, c = !/*desktopView*/
464
+ r[2] && J(r), l = (
465
+ /*desktopView*/
466
+ r[2] && K(r)
467
+ );
468
+ return {
469
+ c() {
470
+ t = _("div"), c && c.c(), e = A(), i = _("div"), l && l.c(), n = A(), o = _("video"), s = _("source"), U(s.src, u = /*videosrc*/
471
+ r[0]) || f(s, "src", u), o.autoplay = !0, o.controls = !0, f(o, "controlslist", "nodownload"), f(o, "disablepictureinpicture", ""), f(i, "class", "CashierVideo"), f(t, "class", "CashierVideoWrapper"), B(
472
+ t,
473
+ "CashierVideoWrapperDesktop",
474
+ /*desktopView*/
475
+ r[2]
476
+ );
477
+ },
478
+ m(a, d) {
479
+ L(a, t, d), c && c.m(t, null), m(t, e), m(t, i), l && l.m(i, null), m(i, n), m(i, o), m(o, s), r[11](t);
480
+ },
481
+ p(a, d) {
482
+ /*desktopView*/
483
+ a[2] ? c && (c.d(1), c = null) : c ? c.p(a, d) : (c = J(a), c.c(), c.m(t, e)), /*desktopView*/
484
+ a[2] ? l ? l.p(a, d) : (l = K(a), l.c(), l.m(i, n)) : l && (l.d(1), l = null), d & /*videosrc*/
485
+ 1 && !U(s.src, u = /*videosrc*/
486
+ a[0]) && f(s, "src", u), d & /*desktopView*/
487
+ 4 && B(
488
+ t,
489
+ "CashierVideoWrapperDesktop",
490
+ /*desktopView*/
491
+ a[2]
492
+ );
493
+ },
494
+ d(a) {
495
+ a && k(t), c && c.d(), l && l.d(), r[11](null);
496
+ }
497
+ };
498
+ }
499
+ function J(r) {
500
+ let t, e, i, n, o;
501
+ return {
502
+ c() {
503
+ t = _("div"), e = x("svg"), i = x("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(e, "xmlns", "http://www.w3.org/2000/svg"), f(e, "width", "13"), f(e, "height", "13"), f(e, "viewBox", "0 0 13 13"), f(e, "fill", "none"), f(t, "class", "CashierVideoHeader");
504
+ },
505
+ m(s, u) {
506
+ L(s, t, u), m(t, e), m(e, i), n || (o = Q(
507
+ e,
508
+ "click",
509
+ /*click_handler*/
510
+ r[9]
511
+ ), n = !0);
512
+ },
513
+ p: E,
514
+ d(s) {
515
+ s && k(t), n = !1, o();
516
+ }
517
+ };
518
+ }
519
+ function K(r) {
520
+ let t, e, i, n;
521
+ return {
522
+ c() {
523
+ t = x("svg"), e = x("path"), f(e, "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(e, "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");
524
+ },
525
+ m(o, s) {
526
+ L(o, t, s), m(t, e), i || (n = Q(
527
+ t,
528
+ "click",
529
+ /*click_handler_1*/
530
+ r[10]
531
+ ), i = !0);
532
+ },
533
+ p: E,
534
+ d(o) {
535
+ o && k(t), i = !1, n();
536
+ }
537
+ };
538
+ }
539
+ function je(r) {
540
+ let t, e = (
541
+ /*show*/
542
+ r[3] && G(r)
543
+ );
544
+ return {
545
+ c() {
546
+ e && e.c(), t = ae();
547
+ },
548
+ m(i, n) {
549
+ e && e.m(i, n), L(i, t, n);
550
+ },
551
+ p(i, [n]) {
552
+ /*show*/
553
+ i[3] ? e ? e.p(i, n) : (e = G(i), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
554
+ },
555
+ i: E,
556
+ o: E,
557
+ d(i) {
558
+ i && k(t), e && e.d(i);
559
+ }
560
+ };
561
+ }
562
+ function Me(r, t, e) {
563
+ let { clientstyling: i = "" } = t, { clientstylingurl: n = "" } = t, { ismobileview: o } = t, { videosrc: s } = t, { mbsource: u = "" } = t, c = window.navigator.userAgent, l = !0, a = !1, d;
564
+ const b = () => {
565
+ e(3, a = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
566
+ }, y = (h) => {
567
+ h.data.type == "ShowCashierVideoModal" && (e(3, a = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), h.data.type == "HideCashierVideoModal" && b();
568
+ }, P = () => {
569
+ e(2, l = !Z(c));
570
+ };
571
+ fe(() => (window.addEventListener("message", y, !1), () => {
572
+ window.removeEventListener("message", y);
573
+ }));
574
+ const p = () => b(), ie = () => b();
575
+ function ne(h) {
576
+ de[h ? "unshift" : "push"](() => {
577
+ d = h, e(1, d);
578
+ });
579
+ }
580
+ return r.$$set = (h) => {
581
+ "clientstyling" in h && e(5, i = h.clientstyling), "clientstylingurl" in h && e(6, n = h.clientstylingurl), "ismobileview" in h && e(7, o = h.ismobileview), "videosrc" in h && e(0, s = h.videosrc), "mbsource" in h && e(8, u = h.mbsource);
582
+ }, r.$$.update = () => {
583
+ r.$$.dirty & /*clientstyling, customStylingContainer*/
584
+ 34 && i && d && he(d, i), r.$$.dirty & /*clientstylingurl, customStylingContainer*/
585
+ 66 && n && d && pe(d, n), r.$$.dirty & /*mbsource, customStylingContainer*/
586
+ 258 && u && d && be(d, `${u}.Style`);
587
+ }, Z(c) && P(), [
588
+ s,
589
+ d,
590
+ l,
591
+ a,
592
+ b,
593
+ i,
594
+ n,
595
+ o,
596
+ u,
597
+ p,
598
+ ie,
599
+ ne
600
+ ];
601
+ }
602
+ class Ve extends oe {
603
+ constructor(t) {
604
+ super(), se(
605
+ this,
606
+ t,
607
+ Me,
608
+ je,
609
+ ce,
610
+ {
611
+ clientstyling: 5,
612
+ clientstylingurl: 6,
613
+ ismobileview: 7,
614
+ videosrc: 0,
615
+ mbsource: 8
616
+ },
617
+ Te
618
+ );
619
+ }
620
+ get clientstyling() {
621
+ return this.$$.ctx[5];
622
+ }
623
+ set clientstyling(t) {
624
+ this.$$set({ clientstyling: t }), w();
625
+ }
626
+ get clientstylingurl() {
627
+ return this.$$.ctx[6];
628
+ }
629
+ set clientstylingurl(t) {
630
+ this.$$set({ clientstylingurl: t }), w();
631
+ }
632
+ get ismobileview() {
633
+ return this.$$.ctx[7];
634
+ }
635
+ set ismobileview(t) {
636
+ this.$$set({ ismobileview: t }), w();
637
+ }
638
+ get videosrc() {
639
+ return this.$$.ctx[0];
640
+ }
641
+ set videosrc(t) {
642
+ this.$$set({ videosrc: t }), w();
643
+ }
644
+ get mbsource() {
645
+ return this.$$.ctx[8];
646
+ }
647
+ set mbsource(t) {
648
+ this.$$set({ mbsource: t }), w();
649
+ }
650
+ }
651
+ ue(Ve, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {}, mbsource: {} }, [], [], !0);
652
+ export {
653
+ Ve as default
654
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./CashierVerifications-D5u6_Riu.cjs");function v(r){return typeof r=="function"}function W(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var S=W(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(i,o){return o+1+") "+i.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function C(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var w=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,o,s;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var l=n.__values(u),a=l.next();!a.done;a=l.next()){var c=a.value;c.remove(this)}}catch(h){t={error:h}}finally{try{a&&!a.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}else u.remove(this);var f=this.initialTeardown;if(v(f))try{f()}catch(h){s=h instanceof S?h.errors:[h]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var b=n.__values(d),y=b.next();!y.done;y=b.next()){var g=y.value;try{E(g)}catch(h){s=s!=null?s:[],h instanceof S?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(h.errors)):s.push(h)}}}catch(h){i={error:h}}finally{try{y&&!y.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}}if(s)throw new S(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)E(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&C(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&C(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),U=w.EMPTY;function B(r){return r instanceof w||r&&"closed"in r&&v(r.remove)&&v(r.add)&&v(r.unsubscribe)}function E(r){v(r)?r():r.unsubscribe()}var Y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Z={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,n.__spreadArray([r,t],n.__read(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function G(r){Z.setTimeout(function(){throw r})}function L(){}function _(r){r()}var z=function(r){n.__extends(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,B(e)&&e.add(i)):i.destination=Q,i}return t.create=function(e,i,o){return new x(e,i,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(w),J=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){m(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){m(i)}else m(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){m(e)}},r}(),x=function(r){n.__extends(t,r);function t(e,i,o){var s=r.call(this)||this,u;return v(e)||!e?u={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:u=e,s.destination=new J(u),s}return t}(z);function m(r){G(r)}function K(r){throw r}var Q={closed:!0,next:L,error:K,complete:L},X=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function N(r){return r}function $(r){return r.length===0?N:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var O=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=te(t)?t:new x(t,e,i);return _(function(){var u=o,l=u.operator,a=u.source;s.add(l?l.call(s,a):a?o._subscribe(s):o._trySubscribe(s))}),s},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=k(e),new e(function(o,s){var u=new x({next:function(l){try{t(l)}catch(a){s(a),u.unsubscribe()}},error:s,complete:o});i.subscribe(u)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[X]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return $(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=k(t),new t(function(i,o){var s;e.subscribe(function(u){return s=u},function(u){return o(u)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function k(r){var t;return(t=r!=null?r:Y.Promise)!==null&&t!==void 0?t:Promise}function ee(r){return r&&v(r.next)&&v(r.error)&&v(r.complete)}function te(r){return r&&r instanceof z||ee(r)&&B(r)}var re=W(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),D=function(r){n.__extends(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new P(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new re},t.prototype.next=function(e){var i=this;_(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=n.__values(i.currentObservers),l=u.next();!l.done;l=u.next()){var a=l.value;a.next(e)}}catch(c){o={error:c}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;_(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;_(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,o=this,s=o.hasError,u=o.isStopped,l=o.observers;return s||u?U:(this.currentObservers=null,l.push(e),new w(function(){i.currentObservers=null,C(l,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,u=i.isStopped;o?e.error(s):u&&e.complete()},t.prototype.asObservable=function(){var e=new O;return e.source=this,e},t.create=function(e,i){return new P(e,i)},t}(O),P=function(r){n.__extends(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:U},t}(D),H={now:function(){return(H.delegate||Date).now()},delegate:void 0},ie=function(r){n.__extends(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=H);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,u=i._infiniteTimeWindow,l=i._timestampProvider,a=i._windowTime;o||(s.push(e),!u&&s.push(l.now()+a)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,u=o._buffer,l=u.slice(),a=0;a<l.length&&!e.closed;a+=s?1:2)e.next(l[a]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,u=e._infiniteTimeWindow,l=(u?1:2)*i;if(i<1/0&&l<s.length&&s.splice(0,s.length-l),!u){for(var a=o.now(),c=0,f=1;f<s.length&&s[f]<=a;f+=2)c=f;c&&s.splice(0,c+1)}},t}(D);const T=[],j={},ne=(r,t=0)=>{if(T.indexOf(r)==-1){const e=new ie(t);j[r]=e,T.push(r)}return j[r]};window.emWidgets={topic:ne};const M=r=>!!(r.toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function oe(r){n.append_styles(r,"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 V(r){let t,e,i,o,s,u,l,a=!r[2]&&I(r),c=r[2]&&A(r);return{c(){t=n.element("div"),a&&a.c(),e=n.space(),i=n.element("div"),c&&c.c(),o=n.space(),s=n.element("video"),u=n.element("source"),n.src_url_equal(u.src,l=r[0])||n.attr(u,"src",l),s.autoplay=!0,s.controls=!0,n.attr(s,"controlslist","nodownload"),n.attr(s,"disablepictureinpicture",""),n.attr(i,"class","CashierVideo"),n.attr(t,"class","CashierVideoWrapper"),n.toggle_class(t,"CashierVideoWrapperDesktop",r[2])},m(f,d){n.insert(f,t,d),a&&a.m(t,null),n.append(t,e),n.append(t,i),c&&c.m(i,null),n.append(i,o),n.append(i,s),n.append(s,u),r[11](t)},p(f,d){f[2]?a&&(a.d(1),a=null):a?a.p(f,d):(a=I(f),a.c(),a.m(t,e)),f[2]?c?c.p(f,d):(c=A(f),c.c(),c.m(i,o)):c&&(c.d(1),c=null),d&1&&!n.src_url_equal(u.src,l=f[0])&&n.attr(u,"src",l),d&4&&n.toggle_class(t,"CashierVideoWrapperDesktop",f[2])},d(f){f&&n.detach(t),a&&a.d(),c&&c.d(),r[11](null)}}}function I(r){let t,e,i,o,s;return{c(){t=n.element("div"),e=n.svg_element("svg"),i=n.svg_element("path"),n.attr(i,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),n.attr(i,"fill","#111111"),n.attr(e,"xmlns","http://www.w3.org/2000/svg"),n.attr(e,"width","13"),n.attr(e,"height","13"),n.attr(e,"viewBox","0 0 13 13"),n.attr(e,"fill","none"),n.attr(t,"class","CashierVideoHeader")},m(u,l){n.insert(u,t,l),n.append(t,e),n.append(e,i),o||(s=n.listen(e,"click",r[9]),o=!0)},p:n.noop,d(u){u&&n.detach(t),o=!1,s()}}}function A(r){let t,e,i,o;return{c(){t=n.svg_element("svg"),e=n.svg_element("path"),n.attr(e,"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"),n.attr(e,"fill","#111111"),n.attr(t,"xmlns","http://www.w3.org/2000/svg"),n.attr(t,"width","13"),n.attr(t,"height","13"),n.attr(t,"viewBox","0 0 13 13"),n.attr(t,"fill","none")},m(s,u){n.insert(s,t,u),n.append(t,e),i||(o=n.listen(t,"click",r[10]),i=!0)},p:n.noop,d(s){s&&n.detach(t),i=!1,o()}}}function se(r){let t,e=r[3]&&V(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,[o]){i[3]?e?e.p(i,o):(e=V(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:n.noop,o:n.noop,d(i){i&&n.detach(t),e&&e.d(i)}}}function ue(r,t,e){let{clientstyling:i=""}=t,{clientstylingurl:o=""}=t,{ismobileview:s}=t,{videosrc:u}=t,{mbsource:l=""}=t,a=window.navigator.userAgent,c=!0,f=!1,d;const b=()=>{e(3,f=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},y=p=>{p.data.type=="ShowCashierVideoModal"&&(e(3,f=!0),window.postMessage({type:"DisableScroll"},window.location.href)),p.data.type=="HideCashierVideoModal"&&b()},g=()=>{e(2,c=!M(a))};n.onMount(()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));const h=()=>b(),F=()=>b();function q(p){n.binding_callbacks[p?"unshift":"push"](()=>{d=p,e(1,d)})}return r.$$set=p=>{"clientstyling"in p&&e(5,i=p.clientstyling),"clientstylingurl"in p&&e(6,o=p.clientstylingurl),"ismobileview"in p&&e(7,s=p.ismobileview),"videosrc"in p&&e(0,u=p.videosrc),"mbsource"in p&&e(8,l=p.mbsource)},r.$$.update=()=>{r.$$.dirty&34&&i&&d&&n.setClientStyling(d,i),r.$$.dirty&66&&o&&d&&n.setClientStylingURL(d,o),r.$$.dirty&258&&l&&d&&n.setStreamStyling(d,`${l}.Style`)},M(a)&&g(),[u,d,c,f,b,i,o,s,l,h,F,q]}class R extends n.SvelteComponent{constructor(t){super(),n.init(this,t,ue,se,n.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0,mbsource:8},oe)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),n.flush()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),n.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}}n.create_custom_element(R,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{},mbsource:{}},[],[],!0);exports.default=R;