@everymatrix/cashier-verifications 1.74.0 → 1.74.2
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/{CashierVerifications-CNVgxinr.js → CashierVerifications-DcwRBRJJ.js} +756 -724
- package/components/CashierVerifications-NK1qxaYe.cjs +18 -0
- package/components/{CashierVerifications-BAf8u9ns.js → CashierVerifications-b9si2iM4.js} +830 -798
- package/components/CashierVideoModal-CHv6Z0oF.js +670 -0
- package/components/CashierVideoModal-CVLG3P4a.js +670 -0
- package/components/CashierVideoModal-Cn4oBCSn.cjs +3 -0
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +1 -1
- package/esnext/cashier-verifications.js +1 -1
- package/package.json +1 -1
- package/components/CashierVerifications-CxzuhF7y.cjs +0 -5
- package/components/CashierVideoModal-Bix664Mn.cjs +0 -16
- package/components/CashierVideoModal-CdjPH9oY.js +0 -719
- package/components/CashierVideoModal-Dna7BzOD.js +0 -719
|
@@ -0,0 +1,670 @@
|
|
|
1
|
+
import { _ as O, a as V, b as I, c as g, S as ue, i as ce, f as w, d as le, s as ae, e as fe, g as de, h as x, n as E, j as k, o as he, k as pe, l as be, m as _, p as U, q as B, r as f, t as D, u as m, v as L, w as X, x as ve, y as ye } from "./CashierVerifications-DcwRBRJJ.js";
|
|
2
|
+
function v(r) {
|
|
3
|
+
return typeof r == "function";
|
|
4
|
+
}
|
|
5
|
+
function N(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 j = N(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 W(r, t) {
|
|
21
|
+
if (r) {
|
|
22
|
+
var e = r.indexOf(t);
|
|
23
|
+
0 <= e && r.splice(e, 1);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
var P = 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 = O(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 j ? p.errors : [p];
|
|
60
|
+
}
|
|
61
|
+
var d = this._finalizers;
|
|
62
|
+
if (d) {
|
|
63
|
+
this._finalizers = null;
|
|
64
|
+
try {
|
|
65
|
+
for (var b = O(d), y = b.next(); !y.done; y = b.next()) {
|
|
66
|
+
var T = y.value;
|
|
67
|
+
try {
|
|
68
|
+
z(T);
|
|
69
|
+
} catch (p) {
|
|
70
|
+
o = o != null ? o : [], p instanceof j ? o = V(V([], I(o)), I(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 j(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) && W(e, t);
|
|
109
|
+
}, r.prototype.remove = function(t) {
|
|
110
|
+
var e = this._finalizers;
|
|
111
|
+
e && W(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
|
+
}(), $ = P.EMPTY;
|
|
117
|
+
function ee(r) {
|
|
118
|
+
return r instanceof P || 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 te = {
|
|
124
|
+
onUnhandledError: null,
|
|
125
|
+
onStoppedNotification: null,
|
|
126
|
+
Promise: void 0,
|
|
127
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
128
|
+
useDeprecatedNextContext: !1
|
|
129
|
+
}, me = {
|
|
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, V([r, t], I(e)));
|
|
134
|
+
},
|
|
135
|
+
clearTimeout: function(r) {
|
|
136
|
+
return clearTimeout(r);
|
|
137
|
+
},
|
|
138
|
+
delegate: void 0
|
|
139
|
+
};
|
|
140
|
+
function we(r) {
|
|
141
|
+
me.setTimeout(function() {
|
|
142
|
+
throw r;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function F() {
|
|
146
|
+
}
|
|
147
|
+
function C(r) {
|
|
148
|
+
r();
|
|
149
|
+
}
|
|
150
|
+
var re = 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, ee(e) && e.add(i)) : i.destination = Ce, i;
|
|
155
|
+
}
|
|
156
|
+
return t.create = function(e, i, n) {
|
|
157
|
+
return new A(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
|
+
}(P), _e = Function.prototype.bind;
|
|
182
|
+
function M(r, t) {
|
|
183
|
+
return _e.call(r, t);
|
|
184
|
+
}
|
|
185
|
+
var ge = function() {
|
|
186
|
+
function r(t) {
|
|
187
|
+
this.partialObserver = t;
|
|
188
|
+
}
|
|
189
|
+
return r.prototype.next = function(t) {
|
|
190
|
+
var e = this.partialObserver;
|
|
191
|
+
if (e.next)
|
|
192
|
+
try {
|
|
193
|
+
e.next(t);
|
|
194
|
+
} catch (i) {
|
|
195
|
+
S(i);
|
|
196
|
+
}
|
|
197
|
+
}, r.prototype.error = function(t) {
|
|
198
|
+
var e = this.partialObserver;
|
|
199
|
+
if (e.error)
|
|
200
|
+
try {
|
|
201
|
+
e.error(t);
|
|
202
|
+
} catch (i) {
|
|
203
|
+
S(i);
|
|
204
|
+
}
|
|
205
|
+
else
|
|
206
|
+
S(t);
|
|
207
|
+
}, r.prototype.complete = function() {
|
|
208
|
+
var t = this.partialObserver;
|
|
209
|
+
if (t.complete)
|
|
210
|
+
try {
|
|
211
|
+
t.complete();
|
|
212
|
+
} catch (e) {
|
|
213
|
+
S(e);
|
|
214
|
+
}
|
|
215
|
+
}, r;
|
|
216
|
+
}(), A = function(r) {
|
|
217
|
+
g(t, r);
|
|
218
|
+
function t(e, i, n) {
|
|
219
|
+
var o = r.call(this) || this, s;
|
|
220
|
+
if (v(e) || !e)
|
|
221
|
+
s = {
|
|
222
|
+
next: e != null ? e : void 0,
|
|
223
|
+
error: i != null ? i : void 0,
|
|
224
|
+
complete: n != null ? n : void 0
|
|
225
|
+
};
|
|
226
|
+
else {
|
|
227
|
+
var u;
|
|
228
|
+
o && te.useDeprecatedNextContext ? (u = Object.create(e), u.unsubscribe = function() {
|
|
229
|
+
return o.unsubscribe();
|
|
230
|
+
}, s = {
|
|
231
|
+
next: e.next && M(e.next, u),
|
|
232
|
+
error: e.error && M(e.error, u),
|
|
233
|
+
complete: e.complete && M(e.complete, u)
|
|
234
|
+
}) : s = e;
|
|
235
|
+
}
|
|
236
|
+
return o.destination = new ge(s), o;
|
|
237
|
+
}
|
|
238
|
+
return t;
|
|
239
|
+
}(re);
|
|
240
|
+
function S(r) {
|
|
241
|
+
we(r);
|
|
242
|
+
}
|
|
243
|
+
function Se(r) {
|
|
244
|
+
throw r;
|
|
245
|
+
}
|
|
246
|
+
var Ce = {
|
|
247
|
+
closed: !0,
|
|
248
|
+
next: F,
|
|
249
|
+
error: Se,
|
|
250
|
+
complete: F
|
|
251
|
+
}, Ee = function() {
|
|
252
|
+
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
253
|
+
}();
|
|
254
|
+
function Le(r) {
|
|
255
|
+
return r;
|
|
256
|
+
}
|
|
257
|
+
function xe(r) {
|
|
258
|
+
return r.length === 0 ? Le : r.length === 1 ? r[0] : function(e) {
|
|
259
|
+
return r.reduce(function(i, n) {
|
|
260
|
+
return n(i);
|
|
261
|
+
}, e);
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
var H = function() {
|
|
265
|
+
function r(t) {
|
|
266
|
+
t && (this._subscribe = t);
|
|
267
|
+
}
|
|
268
|
+
return r.prototype.lift = function(t) {
|
|
269
|
+
var e = new r();
|
|
270
|
+
return e.source = this, e.operator = t, e;
|
|
271
|
+
}, r.prototype.subscribe = function(t, e, i) {
|
|
272
|
+
var n = this, o = Pe(t) ? t : new A(t, e, i);
|
|
273
|
+
return C(function() {
|
|
274
|
+
var s = n, u = s.operator, c = s.source;
|
|
275
|
+
o.add(u ? u.call(o, c) : c ? n._subscribe(o) : n._trySubscribe(o));
|
|
276
|
+
}), o;
|
|
277
|
+
}, r.prototype._trySubscribe = function(t) {
|
|
278
|
+
try {
|
|
279
|
+
return this._subscribe(t);
|
|
280
|
+
} catch (e) {
|
|
281
|
+
t.error(e);
|
|
282
|
+
}
|
|
283
|
+
}, r.prototype.forEach = function(t, e) {
|
|
284
|
+
var i = this;
|
|
285
|
+
return e = R(e), new e(function(n, o) {
|
|
286
|
+
var s = new A({
|
|
287
|
+
next: function(u) {
|
|
288
|
+
try {
|
|
289
|
+
t(u);
|
|
290
|
+
} catch (c) {
|
|
291
|
+
o(c), s.unsubscribe();
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
error: o,
|
|
295
|
+
complete: n
|
|
296
|
+
});
|
|
297
|
+
i.subscribe(s);
|
|
298
|
+
});
|
|
299
|
+
}, r.prototype._subscribe = function(t) {
|
|
300
|
+
var e;
|
|
301
|
+
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
302
|
+
}, r.prototype[Ee] = function() {
|
|
303
|
+
return this;
|
|
304
|
+
}, r.prototype.pipe = function() {
|
|
305
|
+
for (var t = [], e = 0; e < arguments.length; e++)
|
|
306
|
+
t[e] = arguments[e];
|
|
307
|
+
return xe(t)(this);
|
|
308
|
+
}, r.prototype.toPromise = function(t) {
|
|
309
|
+
var e = this;
|
|
310
|
+
return t = R(t), new t(function(i, n) {
|
|
311
|
+
var o;
|
|
312
|
+
e.subscribe(function(s) {
|
|
313
|
+
return o = s;
|
|
314
|
+
}, function(s) {
|
|
315
|
+
return n(s);
|
|
316
|
+
}, function() {
|
|
317
|
+
return i(o);
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
}, r.create = function(t) {
|
|
321
|
+
return new r(t);
|
|
322
|
+
}, r;
|
|
323
|
+
}();
|
|
324
|
+
function R(r) {
|
|
325
|
+
var t;
|
|
326
|
+
return (t = r != null ? r : te.Promise) !== null && t !== void 0 ? t : Promise;
|
|
327
|
+
}
|
|
328
|
+
function ke(r) {
|
|
329
|
+
return r && v(r.next) && v(r.error) && v(r.complete);
|
|
330
|
+
}
|
|
331
|
+
function Pe(r) {
|
|
332
|
+
return r && r instanceof re || ke(r) && ee(r);
|
|
333
|
+
}
|
|
334
|
+
var Te = N(function(r) {
|
|
335
|
+
return function() {
|
|
336
|
+
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
337
|
+
};
|
|
338
|
+
}), ie = function(r) {
|
|
339
|
+
g(t, r);
|
|
340
|
+
function t() {
|
|
341
|
+
var e = r.call(this) || this;
|
|
342
|
+
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
343
|
+
}
|
|
344
|
+
return t.prototype.lift = function(e) {
|
|
345
|
+
var i = new Y(this, this);
|
|
346
|
+
return i.operator = e, i;
|
|
347
|
+
}, t.prototype._throwIfClosed = function() {
|
|
348
|
+
if (this.closed)
|
|
349
|
+
throw new Te();
|
|
350
|
+
}, t.prototype.next = function(e) {
|
|
351
|
+
var i = this;
|
|
352
|
+
C(function() {
|
|
353
|
+
var n, o;
|
|
354
|
+
if (i._throwIfClosed(), !i.isStopped) {
|
|
355
|
+
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
356
|
+
try {
|
|
357
|
+
for (var s = O(i.currentObservers), u = s.next(); !u.done; u = s.next()) {
|
|
358
|
+
var c = u.value;
|
|
359
|
+
c.next(e);
|
|
360
|
+
}
|
|
361
|
+
} catch (l) {
|
|
362
|
+
n = { error: l };
|
|
363
|
+
} finally {
|
|
364
|
+
try {
|
|
365
|
+
u && !u.done && (o = s.return) && o.call(s);
|
|
366
|
+
} finally {
|
|
367
|
+
if (n)
|
|
368
|
+
throw n.error;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
}, t.prototype.error = function(e) {
|
|
374
|
+
var i = this;
|
|
375
|
+
C(function() {
|
|
376
|
+
if (i._throwIfClosed(), !i.isStopped) {
|
|
377
|
+
i.hasError = i.isStopped = !0, i.thrownError = e;
|
|
378
|
+
for (var n = i.observers; n.length; )
|
|
379
|
+
n.shift().error(e);
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}, t.prototype.complete = function() {
|
|
383
|
+
var e = this;
|
|
384
|
+
C(function() {
|
|
385
|
+
if (e._throwIfClosed(), !e.isStopped) {
|
|
386
|
+
e.isStopped = !0;
|
|
387
|
+
for (var i = e.observers; i.length; )
|
|
388
|
+
i.shift().complete();
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
}, t.prototype.unsubscribe = function() {
|
|
392
|
+
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
393
|
+
}, Object.defineProperty(t.prototype, "observed", {
|
|
394
|
+
get: function() {
|
|
395
|
+
var e;
|
|
396
|
+
return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
|
|
397
|
+
},
|
|
398
|
+
enumerable: !1,
|
|
399
|
+
configurable: !0
|
|
400
|
+
}), t.prototype._trySubscribe = function(e) {
|
|
401
|
+
return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
|
|
402
|
+
}, t.prototype._subscribe = function(e) {
|
|
403
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
404
|
+
}, t.prototype._innerSubscribe = function(e) {
|
|
405
|
+
var i = this, n = this, o = n.hasError, s = n.isStopped, u = n.observers;
|
|
406
|
+
return o || s ? $ : (this.currentObservers = null, u.push(e), new P(function() {
|
|
407
|
+
i.currentObservers = null, W(u, e);
|
|
408
|
+
}));
|
|
409
|
+
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
410
|
+
var i = this, n = i.hasError, o = i.thrownError, s = i.isStopped;
|
|
411
|
+
n ? e.error(o) : s && e.complete();
|
|
412
|
+
}, t.prototype.asObservable = function() {
|
|
413
|
+
var e = new H();
|
|
414
|
+
return e.source = this, e;
|
|
415
|
+
}, t.create = function(e, i) {
|
|
416
|
+
return new Y(e, i);
|
|
417
|
+
}, t;
|
|
418
|
+
}(H), Y = function(r) {
|
|
419
|
+
g(t, r);
|
|
420
|
+
function t(e, i) {
|
|
421
|
+
var n = r.call(this) || this;
|
|
422
|
+
return n.destination = e, n.source = i, n;
|
|
423
|
+
}
|
|
424
|
+
return t.prototype.next = function(e) {
|
|
425
|
+
var i, n;
|
|
426
|
+
(n = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || n === void 0 || n.call(i, e);
|
|
427
|
+
}, t.prototype.error = function(e) {
|
|
428
|
+
var i, n;
|
|
429
|
+
(n = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || n === void 0 || n.call(i, e);
|
|
430
|
+
}, t.prototype.complete = function() {
|
|
431
|
+
var e, i;
|
|
432
|
+
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
|
433
|
+
}, t.prototype._subscribe = function(e) {
|
|
434
|
+
var i, n;
|
|
435
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && n !== void 0 ? n : $;
|
|
436
|
+
}, t;
|
|
437
|
+
}(ie), ne = {
|
|
438
|
+
now: function() {
|
|
439
|
+
return (ne.delegate || Date).now();
|
|
440
|
+
},
|
|
441
|
+
delegate: void 0
|
|
442
|
+
}, je = function(r) {
|
|
443
|
+
g(t, r);
|
|
444
|
+
function t(e, i, n) {
|
|
445
|
+
e === void 0 && (e = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = ne);
|
|
446
|
+
var o = r.call(this) || this;
|
|
447
|
+
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;
|
|
448
|
+
}
|
|
449
|
+
return t.prototype.next = function(e) {
|
|
450
|
+
var i = this, n = i.isStopped, o = i._buffer, s = i._infiniteTimeWindow, u = i._timestampProvider, c = i._windowTime;
|
|
451
|
+
n || (o.push(e), !s && o.push(u.now() + c)), this._trimBuffer(), r.prototype.next.call(this, e);
|
|
452
|
+
}, t.prototype._subscribe = function(e) {
|
|
453
|
+
this._throwIfClosed(), this._trimBuffer();
|
|
454
|
+
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)
|
|
455
|
+
e.next(u[c]);
|
|
456
|
+
return this._checkFinalizedStatuses(e), i;
|
|
457
|
+
}, t.prototype._trimBuffer = function() {
|
|
458
|
+
var e = this, i = e._bufferSize, n = e._timestampProvider, o = e._buffer, s = e._infiniteTimeWindow, u = (s ? 1 : 2) * i;
|
|
459
|
+
if (i < 1 / 0 && u < o.length && o.splice(0, o.length - u), !s) {
|
|
460
|
+
for (var c = n.now(), l = 0, a = 1; a < o.length && o[a] <= c; a += 2)
|
|
461
|
+
l = a;
|
|
462
|
+
l && o.splice(0, l + 1);
|
|
463
|
+
}
|
|
464
|
+
}, t;
|
|
465
|
+
}(ie);
|
|
466
|
+
const q = [], Z = {}, Me = (r, t = 0) => {
|
|
467
|
+
if (q.indexOf(r) == -1) {
|
|
468
|
+
const e = new je(t);
|
|
469
|
+
Z[r] = e, q.push(r);
|
|
470
|
+
}
|
|
471
|
+
return Z[r];
|
|
472
|
+
};
|
|
473
|
+
window.emWidgets = { topic: Me };
|
|
474
|
+
const G = (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));
|
|
475
|
+
function Oe(r) {
|
|
476
|
+
fe(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}");
|
|
477
|
+
}
|
|
478
|
+
function J(r) {
|
|
479
|
+
let t, e, i, n, o, s, u, c = !/*desktopView*/
|
|
480
|
+
r[2] && K(r), l = (
|
|
481
|
+
/*desktopView*/
|
|
482
|
+
r[2] && Q(r)
|
|
483
|
+
);
|
|
484
|
+
return {
|
|
485
|
+
c() {
|
|
486
|
+
t = _("div"), c && c.c(), e = U(), i = _("div"), l && l.c(), n = U(), o = _("video"), s = _("source"), B(s.src, u = /*videosrc*/
|
|
487
|
+
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"), D(
|
|
488
|
+
t,
|
|
489
|
+
"CashierVideoWrapperDesktop",
|
|
490
|
+
/*desktopView*/
|
|
491
|
+
r[2]
|
|
492
|
+
);
|
|
493
|
+
},
|
|
494
|
+
m(a, d) {
|
|
495
|
+
x(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);
|
|
496
|
+
},
|
|
497
|
+
p(a, d) {
|
|
498
|
+
/*desktopView*/
|
|
499
|
+
a[2] ? c && (c.d(1), c = null) : c ? c.p(a, d) : (c = K(a), c.c(), c.m(t, e)), /*desktopView*/
|
|
500
|
+
a[2] ? l ? l.p(a, d) : (l = Q(a), l.c(), l.m(i, n)) : l && (l.d(1), l = null), d & /*videosrc*/
|
|
501
|
+
1 && !B(s.src, u = /*videosrc*/
|
|
502
|
+
a[0]) && f(s, "src", u), d & /*desktopView*/
|
|
503
|
+
4 && D(
|
|
504
|
+
t,
|
|
505
|
+
"CashierVideoWrapperDesktop",
|
|
506
|
+
/*desktopView*/
|
|
507
|
+
a[2]
|
|
508
|
+
);
|
|
509
|
+
},
|
|
510
|
+
d(a) {
|
|
511
|
+
a && k(t), c && c.d(), l && l.d(), r[11](null);
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
function K(r) {
|
|
516
|
+
let t, e, i, n, o;
|
|
517
|
+
return {
|
|
518
|
+
c() {
|
|
519
|
+
t = _("div"), e = L("svg"), i = L("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");
|
|
520
|
+
},
|
|
521
|
+
m(s, u) {
|
|
522
|
+
x(s, t, u), m(t, e), m(e, i), n || (o = X(
|
|
523
|
+
e,
|
|
524
|
+
"click",
|
|
525
|
+
/*click_handler*/
|
|
526
|
+
r[9]
|
|
527
|
+
), n = !0);
|
|
528
|
+
},
|
|
529
|
+
p: E,
|
|
530
|
+
d(s) {
|
|
531
|
+
s && k(t), n = !1, o();
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
function Q(r) {
|
|
536
|
+
let t, e, i, n;
|
|
537
|
+
return {
|
|
538
|
+
c() {
|
|
539
|
+
t = L("svg"), e = L("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");
|
|
540
|
+
},
|
|
541
|
+
m(o, s) {
|
|
542
|
+
x(o, t, s), m(t, e), i || (n = X(
|
|
543
|
+
t,
|
|
544
|
+
"click",
|
|
545
|
+
/*click_handler_1*/
|
|
546
|
+
r[10]
|
|
547
|
+
), i = !0);
|
|
548
|
+
},
|
|
549
|
+
p: E,
|
|
550
|
+
d(o) {
|
|
551
|
+
o && k(t), i = !1, n();
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
function Ve(r) {
|
|
556
|
+
let t, e = (
|
|
557
|
+
/*show*/
|
|
558
|
+
r[3] && J(r)
|
|
559
|
+
);
|
|
560
|
+
return {
|
|
561
|
+
c() {
|
|
562
|
+
e && e.c(), t = de();
|
|
563
|
+
},
|
|
564
|
+
m(i, n) {
|
|
565
|
+
e && e.m(i, n), x(i, t, n);
|
|
566
|
+
},
|
|
567
|
+
p(i, [n]) {
|
|
568
|
+
/*show*/
|
|
569
|
+
i[3] ? e ? e.p(i, n) : (e = J(i), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
|
570
|
+
},
|
|
571
|
+
i: E,
|
|
572
|
+
o: E,
|
|
573
|
+
d(i) {
|
|
574
|
+
i && k(t), e && e.d(i);
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
function Ie(r, t, e) {
|
|
579
|
+
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;
|
|
580
|
+
const b = () => {
|
|
581
|
+
e(3, a = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
582
|
+
}, y = (h) => {
|
|
583
|
+
h.data.type == "ShowCashierVideoModal" && (e(3, a = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), h.data.type == "HideCashierVideoModal" && b();
|
|
584
|
+
}, T = () => {
|
|
585
|
+
e(2, l = !G(c));
|
|
586
|
+
};
|
|
587
|
+
he(() => (window.addEventListener("message", y, !1), () => {
|
|
588
|
+
window.removeEventListener("message", y);
|
|
589
|
+
}));
|
|
590
|
+
const p = () => b(), oe = () => b();
|
|
591
|
+
function se(h) {
|
|
592
|
+
ve[h ? "unshift" : "push"](() => {
|
|
593
|
+
d = h, e(1, d);
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
return r.$$set = (h) => {
|
|
597
|
+
"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);
|
|
598
|
+
}, r.$$.update = () => {
|
|
599
|
+
r.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
600
|
+
34 && i && d && ye(d, i), r.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
601
|
+
66 && n && d && pe(d, n), r.$$.dirty & /*mbsource, customStylingContainer*/
|
|
602
|
+
258 && u && d && be(d, `${u}.Style`);
|
|
603
|
+
}, G(c) && T(), [
|
|
604
|
+
s,
|
|
605
|
+
d,
|
|
606
|
+
l,
|
|
607
|
+
a,
|
|
608
|
+
b,
|
|
609
|
+
i,
|
|
610
|
+
n,
|
|
611
|
+
o,
|
|
612
|
+
u,
|
|
613
|
+
p,
|
|
614
|
+
oe,
|
|
615
|
+
se
|
|
616
|
+
];
|
|
617
|
+
}
|
|
618
|
+
class We extends ue {
|
|
619
|
+
constructor(t) {
|
|
620
|
+
super(), ce(
|
|
621
|
+
this,
|
|
622
|
+
t,
|
|
623
|
+
Ie,
|
|
624
|
+
Ve,
|
|
625
|
+
ae,
|
|
626
|
+
{
|
|
627
|
+
clientstyling: 5,
|
|
628
|
+
clientstylingurl: 6,
|
|
629
|
+
ismobileview: 7,
|
|
630
|
+
videosrc: 0,
|
|
631
|
+
mbsource: 8
|
|
632
|
+
},
|
|
633
|
+
Oe
|
|
634
|
+
);
|
|
635
|
+
}
|
|
636
|
+
get clientstyling() {
|
|
637
|
+
return this.$$.ctx[5];
|
|
638
|
+
}
|
|
639
|
+
set clientstyling(t) {
|
|
640
|
+
this.$$set({ clientstyling: t }), w();
|
|
641
|
+
}
|
|
642
|
+
get clientstylingurl() {
|
|
643
|
+
return this.$$.ctx[6];
|
|
644
|
+
}
|
|
645
|
+
set clientstylingurl(t) {
|
|
646
|
+
this.$$set({ clientstylingurl: t }), w();
|
|
647
|
+
}
|
|
648
|
+
get ismobileview() {
|
|
649
|
+
return this.$$.ctx[7];
|
|
650
|
+
}
|
|
651
|
+
set ismobileview(t) {
|
|
652
|
+
this.$$set({ ismobileview: t }), w();
|
|
653
|
+
}
|
|
654
|
+
get videosrc() {
|
|
655
|
+
return this.$$.ctx[0];
|
|
656
|
+
}
|
|
657
|
+
set videosrc(t) {
|
|
658
|
+
this.$$set({ videosrc: t }), w();
|
|
659
|
+
}
|
|
660
|
+
get mbsource() {
|
|
661
|
+
return this.$$.ctx[8];
|
|
662
|
+
}
|
|
663
|
+
set mbsource(t) {
|
|
664
|
+
this.$$set({ mbsource: t }), w();
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
le(We, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
668
|
+
export {
|
|
669
|
+
We as default
|
|
670
|
+
};
|