@everymatrix/cashier-notifications 1.45.0 → 1.45.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/{CashierNotifications-D9d550hN.js → CashierNotifications-D3njET7P.js} +135 -135
- package/components/CashierNotifications-DrX61RaD.cjs +1 -0
- package/es2015/cashier-notifications.cjs +1 -1
- package/es2015/cashier-notifications.js +1 -1
- package/package.json +2 -2
- package/components/CashierNotifications-BEYK4VOa.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
1
|
+
var q = Object.defineProperty, G = Object.defineProperties;
|
|
2
2
|
var K = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var B = Object.getOwnPropertySymbols;
|
|
4
4
|
var Q = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var N = (e, t, n) => t in e ? q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, M = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
Q.call(t, n) &&
|
|
7
|
+
Q.call(t, n) && N(e, n, t[n]);
|
|
8
8
|
if (B)
|
|
9
9
|
for (var n of B(t))
|
|
10
|
-
W.call(t, n) &&
|
|
10
|
+
W.call(t, n) && N(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, R = (e, t) => G(e, K(t));
|
|
13
|
-
var a = (e, t, n) =>
|
|
14
|
-
var T = (e, t, n) => new Promise((
|
|
15
|
-
var
|
|
13
|
+
var a = (e, t, n) => N(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var T = (e, t, n) => new Promise((s, r) => {
|
|
15
|
+
var i = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
c(n.next(u));
|
|
18
18
|
} catch (o) {
|
|
@@ -24,18 +24,18 @@ var T = (e, t, n) => new Promise((i, r) => {
|
|
|
24
24
|
} catch (o) {
|
|
25
25
|
r(o);
|
|
26
26
|
}
|
|
27
|
-
}, c = (u) => u.done ?
|
|
27
|
+
}, c = (u) => u.done ? s(u.value) : Promise.resolve(u.value).then(i, l);
|
|
28
28
|
c((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function C() {
|
|
31
31
|
}
|
|
32
32
|
function U(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function z() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function k(e) {
|
|
39
39
|
e.forEach(U);
|
|
40
40
|
}
|
|
41
41
|
function D(e) {
|
|
@@ -51,10 +51,10 @@ function _(e, t) {
|
|
|
51
51
|
e.appendChild(t);
|
|
52
52
|
}
|
|
53
53
|
function Z(e, t, n) {
|
|
54
|
-
const
|
|
55
|
-
if (!
|
|
54
|
+
const s = tt(e);
|
|
55
|
+
if (!s.getElementById(t)) {
|
|
56
56
|
const r = w("style");
|
|
57
|
-
r.id = t, r.textContent = n, et(
|
|
57
|
+
r.id = t, r.textContent = n, et(s, r);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function tt(e) {
|
|
@@ -88,16 +88,16 @@ function L(e) {
|
|
|
88
88
|
function nt() {
|
|
89
89
|
return L(" ");
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return e.addEventListener(t, n,
|
|
91
|
+
function it(e, t, n, s) {
|
|
92
|
+
return e.addEventListener(t, n, s), () => e.removeEventListener(t, n, s);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function V(e, t, n) {
|
|
95
95
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function st(e) {
|
|
98
98
|
return Array.from(e.childNodes);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function H(e, t) {
|
|
101
101
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
102
102
|
t);
|
|
103
103
|
}
|
|
@@ -114,17 +114,17 @@ let P;
|
|
|
114
114
|
function x(e) {
|
|
115
115
|
P = e;
|
|
116
116
|
}
|
|
117
|
-
const g = [],
|
|
118
|
-
let
|
|
117
|
+
const g = [], O = [];
|
|
118
|
+
let p = [];
|
|
119
119
|
const I = [], ot = /* @__PURE__ */ Promise.resolve();
|
|
120
|
-
let
|
|
120
|
+
let j = !1;
|
|
121
121
|
function ct() {
|
|
122
|
-
|
|
122
|
+
j || (j = !0, ot.then(b));
|
|
123
123
|
}
|
|
124
124
|
function S(e) {
|
|
125
|
-
|
|
125
|
+
p.push(e);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const v = /* @__PURE__ */ new Set();
|
|
128
128
|
let m = 0;
|
|
129
129
|
function b() {
|
|
130
130
|
if (m !== 0)
|
|
@@ -139,57 +139,57 @@ function b() {
|
|
|
139
139
|
} catch (t) {
|
|
140
140
|
throw g.length = 0, m = 0, t;
|
|
141
141
|
}
|
|
142
|
-
for (x(null), g.length = 0, m = 0;
|
|
143
|
-
for (let t = 0; t <
|
|
144
|
-
const n =
|
|
145
|
-
|
|
142
|
+
for (x(null), g.length = 0, m = 0; O.length; ) O.pop()();
|
|
143
|
+
for (let t = 0; t < p.length; t += 1) {
|
|
144
|
+
const n = p[t];
|
|
145
|
+
v.has(n) || (v.add(n), n());
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
p.length = 0;
|
|
148
148
|
} while (g.length);
|
|
149
149
|
for (; I.length; )
|
|
150
150
|
I.pop()();
|
|
151
|
-
|
|
151
|
+
j = !1, v.clear(), x(e);
|
|
152
152
|
}
|
|
153
153
|
function lt(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
|
-
e.update(),
|
|
155
|
+
e.update(), k(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
157
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(S);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function ut(e) {
|
|
161
161
|
const t = [], n = [];
|
|
162
|
-
|
|
162
|
+
p.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), p = t;
|
|
163
163
|
}
|
|
164
164
|
const ft = /* @__PURE__ */ new Set();
|
|
165
165
|
function at(e, t) {
|
|
166
166
|
e && e.i && (ft.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
const { fragment:
|
|
170
|
-
|
|
171
|
-
const
|
|
172
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
168
|
+
function $t(e, t, n) {
|
|
169
|
+
const { fragment: s, after_update: r } = e.$$;
|
|
170
|
+
s && s.m(t, n), S(() => {
|
|
171
|
+
const i = e.$$.on_mount.map(U).filter(D);
|
|
172
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...i) : k(i), e.$$.on_mount = [];
|
|
173
173
|
}), r.forEach(S);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function ht(e, t) {
|
|
176
176
|
const n = e.$$;
|
|
177
|
-
n.fragment !== null && (ut(n.after_update),
|
|
177
|
+
n.fragment !== null && (ut(n.after_update), k(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function dt(e, t) {
|
|
180
180
|
e.$$.dirty[0] === -1 && (g.push(e), ct(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function mt(e, t, n,
|
|
182
|
+
function mt(e, t, n, s, r, i, l = null, c = [-1]) {
|
|
183
183
|
const u = P;
|
|
184
184
|
x(e);
|
|
185
185
|
const o = e.$$ = {
|
|
186
186
|
fragment: null,
|
|
187
187
|
ctx: [],
|
|
188
188
|
// state
|
|
189
|
-
props:
|
|
190
|
-
update:
|
|
189
|
+
props: i,
|
|
190
|
+
update: C,
|
|
191
191
|
not_equal: r,
|
|
192
|
-
bound:
|
|
192
|
+
bound: z(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,29 +198,29 @@ function mt(e, t, n, i, r, s, l = null, c = [-1]) {
|
|
|
198
198
|
after_update: [],
|
|
199
199
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
200
200
|
// everything else
|
|
201
|
-
callbacks:
|
|
201
|
+
callbacks: z(),
|
|
202
202
|
dirty: c,
|
|
203
203
|
skip_bound: !1,
|
|
204
204
|
root: t.target || u.$$.root
|
|
205
205
|
};
|
|
206
206
|
l && l(o.root);
|
|
207
|
-
let
|
|
208
|
-
if (o.ctx = n ? n(e, t.props || {}, (
|
|
209
|
-
const
|
|
210
|
-
return o.ctx && r(o.ctx[
|
|
211
|
-
}) : [], o.update(),
|
|
207
|
+
let $ = !1;
|
|
208
|
+
if (o.ctx = n ? n(e, t.props || {}, (h, f, ...y) => {
|
|
209
|
+
const d = y.length ? y[0] : f;
|
|
210
|
+
return o.ctx && r(o.ctx[h], o.ctx[h] = d) && (!o.skip_bound && o.bound[h] && o.bound[h](d), $ && dt(e, h)), f;
|
|
211
|
+
}) : [], o.update(), $ = !0, k(o.before_update), o.fragment = s ? s(o.ctx) : !1, t.target) {
|
|
212
212
|
if (t.hydrate) {
|
|
213
|
-
const
|
|
214
|
-
o.fragment && o.fragment.l(
|
|
213
|
+
const h = st(t.target);
|
|
214
|
+
o.fragment && o.fragment.l(h), h.forEach(A);
|
|
215
215
|
} else
|
|
216
216
|
o.fragment && o.fragment.c();
|
|
217
|
-
t.intro && at(e.$$.fragment),
|
|
217
|
+
t.intro && at(e.$$.fragment), $t(e, t.target, t.anchor), b();
|
|
218
218
|
}
|
|
219
219
|
x(u);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
222
|
-
typeof HTMLElement == "function" && (
|
|
223
|
-
constructor(t, n,
|
|
221
|
+
let F;
|
|
222
|
+
typeof HTMLElement == "function" && (F = class extends HTMLElement {
|
|
223
|
+
constructor(t, n, s) {
|
|
224
224
|
super();
|
|
225
225
|
/** The Svelte component constructor */
|
|
226
226
|
a(this, "$$ctor");
|
|
@@ -240,17 +240,17 @@ typeof HTMLElement == "function" && (V = class extends HTMLElement {
|
|
|
240
240
|
a(this, "$$l", {});
|
|
241
241
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
242
242
|
a(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
243
|
-
this.$$ctor = t, this.$$s = n,
|
|
243
|
+
this.$$ctor = t, this.$$s = n, s && this.attachShadow({ mode: "open" });
|
|
244
244
|
}
|
|
245
|
-
addEventListener(t, n,
|
|
245
|
+
addEventListener(t, n, s) {
|
|
246
246
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
247
247
|
const r = this.$$c.$on(t, n);
|
|
248
248
|
this.$$l_u.set(n, r);
|
|
249
249
|
}
|
|
250
|
-
super.addEventListener(t, n,
|
|
250
|
+
super.addEventListener(t, n, s);
|
|
251
251
|
}
|
|
252
|
-
removeEventListener(t, n,
|
|
253
|
-
if (super.removeEventListener(t, n,
|
|
252
|
+
removeEventListener(t, n, s) {
|
|
253
|
+
if (super.removeEventListener(t, n, s), this.$$c) {
|
|
254
254
|
const r = this.$$l_u.get(n);
|
|
255
255
|
r && (r(), this.$$l_u.delete(n));
|
|
256
256
|
}
|
|
@@ -258,19 +258,19 @@ typeof HTMLElement == "function" && (V = class extends HTMLElement {
|
|
|
258
258
|
connectedCallback() {
|
|
259
259
|
return T(this, null, function* () {
|
|
260
260
|
if (this.$$cn = !0, !this.$$c) {
|
|
261
|
-
let t = function(
|
|
261
|
+
let t = function(i) {
|
|
262
262
|
return () => {
|
|
263
263
|
let l;
|
|
264
264
|
return {
|
|
265
265
|
c: function() {
|
|
266
|
-
l = w("slot"),
|
|
266
|
+
l = w("slot"), i !== "default" && V(l, "name", i);
|
|
267
267
|
},
|
|
268
268
|
/**
|
|
269
269
|
* @param {HTMLElement} target
|
|
270
270
|
* @param {HTMLElement} [anchor]
|
|
271
271
|
*/
|
|
272
|
-
m: function(o,
|
|
273
|
-
J(o, l,
|
|
272
|
+
m: function(o, $) {
|
|
273
|
+
J(o, l, $);
|
|
274
274
|
},
|
|
275
275
|
d: function(o) {
|
|
276
276
|
o && A(l);
|
|
@@ -280,15 +280,15 @@ typeof HTMLElement == "function" && (V = class extends HTMLElement {
|
|
|
280
280
|
};
|
|
281
281
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
282
282
|
return;
|
|
283
|
-
const n = {},
|
|
284
|
-
for (const
|
|
285
|
-
|
|
286
|
-
for (const
|
|
287
|
-
const l = this.$$g_p(
|
|
288
|
-
l in this.$$d || (this.$$d[l] =
|
|
283
|
+
const n = {}, s = rt(this);
|
|
284
|
+
for (const i of this.$$s)
|
|
285
|
+
i in s && (n[i] = [t(i)]);
|
|
286
|
+
for (const i of this.attributes) {
|
|
287
|
+
const l = this.$$g_p(i.name);
|
|
288
|
+
l in this.$$d || (this.$$d[l] = E(l, i.value, this.$$p_d, "toProp"));
|
|
289
289
|
}
|
|
290
|
-
for (const
|
|
291
|
-
!(
|
|
290
|
+
for (const i in this.$$p_d)
|
|
291
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
292
292
|
this.$$c = new this.$$ctor({
|
|
293
293
|
target: this.shadowRoot || this,
|
|
294
294
|
props: R(M({}, this.$$d), {
|
|
@@ -300,22 +300,22 @@ typeof HTMLElement == "function" && (V = class extends HTMLElement {
|
|
|
300
300
|
});
|
|
301
301
|
const r = () => {
|
|
302
302
|
this.$$r = !0;
|
|
303
|
-
for (const
|
|
304
|
-
if (this.$$d[
|
|
305
|
-
const l =
|
|
306
|
-
|
|
307
|
-
this.$$d[
|
|
303
|
+
for (const i in this.$$p_d)
|
|
304
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
305
|
+
const l = E(
|
|
306
|
+
i,
|
|
307
|
+
this.$$d[i],
|
|
308
308
|
this.$$p_d,
|
|
309
309
|
"toAttribute"
|
|
310
310
|
);
|
|
311
|
-
l == null ? this.removeAttribute(this.$$p_d[
|
|
311
|
+
l == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, l);
|
|
312
312
|
}
|
|
313
313
|
this.$$r = !1;
|
|
314
314
|
};
|
|
315
315
|
this.$$c.$$.after_update.push(r), r();
|
|
316
|
-
for (const
|
|
317
|
-
for (const l of this.$$l[
|
|
318
|
-
const c = this.$$c.$on(
|
|
316
|
+
for (const i in this.$$l)
|
|
317
|
+
for (const l of this.$$l[i]) {
|
|
318
|
+
const c = this.$$c.$on(i, l);
|
|
319
319
|
this.$$l_u.set(l, c);
|
|
320
320
|
}
|
|
321
321
|
this.$$l = {};
|
|
@@ -324,9 +324,9 @@ typeof HTMLElement == "function" && (V = class extends HTMLElement {
|
|
|
324
324
|
}
|
|
325
325
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
326
326
|
// and setting attributes through setAttribute etc, this is helpful
|
|
327
|
-
attributeChangedCallback(t, n,
|
|
327
|
+
attributeChangedCallback(t, n, s) {
|
|
328
328
|
var r;
|
|
329
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
329
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = E(t, s, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
|
|
330
330
|
}
|
|
331
331
|
disconnectedCallback() {
|
|
332
332
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -339,12 +339,12 @@ typeof HTMLElement == "function" && (V = class extends HTMLElement {
|
|
|
339
339
|
) || t;
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
|
-
function
|
|
343
|
-
var
|
|
344
|
-
const r = (
|
|
345
|
-
if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
342
|
+
function E(e, t, n, s) {
|
|
343
|
+
var i;
|
|
344
|
+
const r = (i = n[e]) == null ? void 0 : i.type;
|
|
345
|
+
if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
|
|
346
346
|
return t;
|
|
347
|
-
if (
|
|
347
|
+
if (s === "toAttribute")
|
|
348
348
|
switch (r) {
|
|
349
349
|
case "Object":
|
|
350
350
|
case "Array":
|
|
@@ -369,8 +369,8 @@ function C(e, t, n, i) {
|
|
|
369
369
|
return t;
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
function _t(e, t, n,
|
|
373
|
-
let l = class extends
|
|
372
|
+
function _t(e, t, n, s, r, i) {
|
|
373
|
+
let l = class extends F {
|
|
374
374
|
constructor() {
|
|
375
375
|
super(e, n, r), this.$$p_d = t;
|
|
376
376
|
}
|
|
@@ -387,10 +387,10 @@ function _t(e, t, n, i, r, s) {
|
|
|
387
387
|
},
|
|
388
388
|
set(u) {
|
|
389
389
|
var o;
|
|
390
|
-
u =
|
|
390
|
+
u = E(c, u, t), this.$$d[c] = u, (o = this.$$c) == null || o.$set({ [c]: u });
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
|
-
}),
|
|
393
|
+
}), s.forEach((c) => {
|
|
394
394
|
Object.defineProperty(l.prototype, c, {
|
|
395
395
|
get() {
|
|
396
396
|
var u;
|
|
@@ -421,7 +421,7 @@ class gt {
|
|
|
421
421
|
}
|
|
422
422
|
/** @returns {void} */
|
|
423
423
|
$destroy() {
|
|
424
|
-
|
|
424
|
+
ht(this, 1), this.$destroy = C;
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
427
427
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -431,11 +431,11 @@ class gt {
|
|
|
431
431
|
*/
|
|
432
432
|
$on(t, n) {
|
|
433
433
|
if (!D(n))
|
|
434
|
-
return
|
|
435
|
-
const
|
|
436
|
-
return
|
|
437
|
-
const r =
|
|
438
|
-
r !== -1 &&
|
|
434
|
+
return C;
|
|
435
|
+
const s = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
436
|
+
return s.push(n), () => {
|
|
437
|
+
const r = s.indexOf(n);
|
|
438
|
+
r !== -1 && s.splice(r, 1);
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
@@ -448,51 +448,51 @@ class gt {
|
|
|
448
448
|
}
|
|
449
449
|
const bt = "4";
|
|
450
450
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(bt);
|
|
451
|
-
function yt(e) {
|
|
452
|
-
Z(e, "svelte-1d9ojqw", ".CashierNotifications.svelte-1d9ojqw.svelte-1d9ojqw{position:fixed;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications.svelte-1d9ojqw span.svelte-1d9ojqw,.CashierNotifications.svelte-1d9ojqw button.svelte-1d9ojqw{font-family:inherit;border:none;font-variant:normal}.CashierNotifications.svelte-1d9ojqw span.svelte-1d9ojqw{line-height:normal}.CashierNotifications.svelte-1d9ojqw button.svelte-1d9ojqw{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
453
|
-
}
|
|
454
451
|
function pt(e) {
|
|
455
|
-
|
|
452
|
+
Z(e, "svelte-1cfukt5", ".CashierNotifications{position:fixed;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
453
|
+
}
|
|
454
|
+
function yt(e) {
|
|
455
|
+
let t, n, s, r, i, l, c, u;
|
|
456
456
|
return {
|
|
457
457
|
c() {
|
|
458
|
-
t = w("div"), n = w("span"),
|
|
458
|
+
t = w("div"), n = w("span"), s = L(
|
|
459
459
|
/*text*/
|
|
460
460
|
e[0]
|
|
461
|
-
), r = nt(),
|
|
461
|
+
), r = nt(), i = w("button"), l = L(
|
|
462
462
|
/*button*/
|
|
463
463
|
e[1]
|
|
464
|
-
),
|
|
464
|
+
), V(t, "class", "CashierNotifications");
|
|
465
465
|
},
|
|
466
|
-
m(o,
|
|
467
|
-
J(o, t,
|
|
468
|
-
|
|
466
|
+
m(o, $) {
|
|
467
|
+
J(o, t, $), _(t, n), _(n, s), _(t, r), _(t, i), _(i, l), e[6](t), c || (u = it(
|
|
468
|
+
i,
|
|
469
469
|
"click",
|
|
470
470
|
/*notificationClick*/
|
|
471
471
|
e[3]
|
|
472
472
|
), c = !0);
|
|
473
473
|
},
|
|
474
|
-
p(o, [
|
|
475
|
-
|
|
476
|
-
1 &&
|
|
477
|
-
|
|
474
|
+
p(o, [$]) {
|
|
475
|
+
$ & /*text*/
|
|
476
|
+
1 && H(
|
|
477
|
+
s,
|
|
478
478
|
/*text*/
|
|
479
479
|
o[0]
|
|
480
|
-
),
|
|
481
|
-
2 &&
|
|
480
|
+
), $ & /*button*/
|
|
481
|
+
2 && H(
|
|
482
482
|
l,
|
|
483
483
|
/*button*/
|
|
484
484
|
o[1]
|
|
485
485
|
);
|
|
486
486
|
},
|
|
487
|
-
i:
|
|
488
|
-
o:
|
|
487
|
+
i: C,
|
|
488
|
+
o: C,
|
|
489
489
|
d(o) {
|
|
490
490
|
o && A(t), e[6](null), c = !1, u();
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
494
|
function wt(e, t, n) {
|
|
495
|
-
let { text:
|
|
495
|
+
let { text: s } = t, { button: r } = t, { clientstyling: i = "" } = t, { clientstylingurl: l = "" } = t, c;
|
|
496
496
|
const u = () => {
|
|
497
497
|
dispatchEvent(new CustomEvent(
|
|
498
498
|
"notificationButtonClick",
|
|
@@ -504,37 +504,37 @@ function wt(e, t, n) {
|
|
|
504
504
|
));
|
|
505
505
|
}, o = () => {
|
|
506
506
|
let f = document.createElement("style");
|
|
507
|
-
f.innerHTML =
|
|
508
|
-
},
|
|
509
|
-
let f = new URL(l),
|
|
510
|
-
fetch(f.href).then((
|
|
511
|
-
|
|
507
|
+
f.innerHTML = i, c.appendChild(f);
|
|
508
|
+
}, $ = () => {
|
|
509
|
+
let f = new URL(l), y = document.createElement("style");
|
|
510
|
+
fetch(f.href).then((d) => d.text()).then((d) => {
|
|
511
|
+
y.innerHTML = d, setTimeout(
|
|
512
512
|
() => {
|
|
513
|
-
c.appendChild(
|
|
513
|
+
c.appendChild(y);
|
|
514
514
|
},
|
|
515
515
|
1
|
|
516
516
|
);
|
|
517
517
|
});
|
|
518
518
|
};
|
|
519
|
-
function
|
|
520
|
-
|
|
519
|
+
function h(f) {
|
|
520
|
+
O[f ? "unshift" : "push"](() => {
|
|
521
521
|
c = f, n(2, c);
|
|
522
522
|
});
|
|
523
523
|
}
|
|
524
524
|
return e.$$set = (f) => {
|
|
525
|
-
"text" in f && n(0,
|
|
525
|
+
"text" in f && n(0, s = f.text), "button" in f && n(1, r = f.button), "clientstyling" in f && n(4, i = f.clientstyling), "clientstylingurl" in f && n(5, l = f.clientstylingurl);
|
|
526
526
|
}, e.$$.update = () => {
|
|
527
527
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
528
|
-
20 &&
|
|
529
|
-
36 && l && c &&
|
|
528
|
+
20 && i && c && o(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
529
|
+
36 && l && c && $();
|
|
530
530
|
}, [
|
|
531
|
-
|
|
531
|
+
s,
|
|
532
532
|
r,
|
|
533
533
|
c,
|
|
534
534
|
u,
|
|
535
|
-
|
|
535
|
+
i,
|
|
536
536
|
l,
|
|
537
|
-
|
|
537
|
+
h
|
|
538
538
|
];
|
|
539
539
|
}
|
|
540
540
|
class xt extends gt {
|
|
@@ -543,7 +543,7 @@ class xt extends gt {
|
|
|
543
543
|
this,
|
|
544
544
|
t,
|
|
545
545
|
wt,
|
|
546
|
-
|
|
546
|
+
yt,
|
|
547
547
|
X,
|
|
548
548
|
{
|
|
549
549
|
text: 0,
|
|
@@ -551,7 +551,7 @@ class xt extends gt {
|
|
|
551
551
|
clientstyling: 4,
|
|
552
552
|
clientstylingurl: 5
|
|
553
553
|
},
|
|
554
|
-
|
|
554
|
+
pt
|
|
555
555
|
);
|
|
556
556
|
}
|
|
557
557
|
get text() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var G=Object.defineProperty,K=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var v=(e,t,n)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&v(e,n,t[n]);if(B)for(var n of B(t))X.call(t,n)&&v(e,n,t[n]);return e},T=(e,t)=>K(e,Q(t));var a=(e,t,n)=>v(e,typeof t!="symbol"?t+"":t,n);var R=(e,t,n)=>new Promise((s,r)=>{var i=u=>{try{c(n.next(u))}catch(o){r(o)}},l=u=>{try{c(n.throw(u))}catch(o){r(o)}},c=u=>u.done?s(u.value):Promise.resolve(u.value).then(i,l);c((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function C(){}function U(e){return e()}function z(){return Object.create(null)}function k(e){e.forEach(U)}function D(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Z(e){return Object.keys(e).length===0}function _(e,t){e.appendChild(t)}function tt(e,t,n){const s=et(e);if(!s.getElementById(t)){const r=w("style");r.id=t,r.textContent=n,nt(s,r)}}function et(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function nt(e,t){return _(e.head||e,t),t.sheet}function J(e,t,n){e.insertBefore(t,n||null)}function A(e){e.parentNode&&e.parentNode.removeChild(e)}function w(e){return document.createElement(e)}function L(e){return document.createTextNode(e)}function it(){return L(" ")}function st(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function V(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function rt(e){return Array.from(e.childNodes)}function H(e,t){t=""+t,e.data!==t&&(e.data=t)}function ot(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let P;function x(e){P=e}const g=[],O=[];let y=[];const I=[],ct=Promise.resolve();let j=!1;function lt(){j||(j=!0,ct.then(b))}function S(e){y.push(e)}const N=new Set;let m=0;function b(){if(m!==0)return;const e=P;do{try{for(;m<g.length;){const t=g[m];m++,x(t),ut(t.$$)}}catch(t){throw g.length=0,m=0,t}for(x(null),g.length=0,m=0;O.length;)O.pop()();for(let t=0;t<y.length;t+=1){const n=y[t];N.has(n)||(N.add(n),n())}y.length=0}while(g.length);for(;I.length;)I.pop()();j=!1,N.clear(),x(e)}function ut(e){if(e.fragment!==null){e.update(),k(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(S)}}function ft(e){const t=[],n=[];y.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),y=t}const at=new Set;function $t(e,t){e&&e.i&&(at.delete(e),e.i(t))}function dt(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),S(()=>{const i=e.$$.on_mount.map(U).filter(D);e.$$.on_destroy?e.$$.on_destroy.push(...i):k(i),e.$$.on_mount=[]}),r.forEach(S)}function ht(e,t){const n=e.$$;n.fragment!==null&&(ft(n.after_update),k(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function mt(e,t){e.$$.dirty[0]===-1&&(g.push(e),lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function _t(e,t,n,s,r,i,l=null,c=[-1]){const u=P;x(e);const o=e.$$={fragment:null,ctx:[],props:i,update:C,not_equal:r,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:z(),dirty:c,skip_bound:!1,root:t.target||u.$$.root};l&&l(o.root);let $=!1;if(o.ctx=n?n(e,t.props||{},(d,f,...p)=>{const h=p.length?p[0]:f;return o.ctx&&r(o.ctx[d],o.ctx[d]=h)&&(!o.skip_bound&&o.bound[d]&&o.bound[d](h),$&&mt(e,d)),f}):[],o.update(),$=!0,k(o.before_update),o.fragment=s?s(o.ctx):!1,t.target){if(t.hydrate){const d=rt(t.target);o.fragment&&o.fragment.l(d),d.forEach(A)}else o.fragment&&o.fragment.c();t.intro&&$t(e.$$.fragment),dt(e,t.target,t.anchor),b()}x(u)}let F;typeof HTMLElement=="function"&&(F=class extends HTMLElement{constructor(t,n,s){super();a(this,"$$ctor");a(this,"$$s");a(this,"$$c");a(this,"$$cn",!1);a(this,"$$d",{});a(this,"$$r",!1);a(this,"$$p_d",{});a(this,"$$l",{});a(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){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,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return R(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let l;return{c:function(){l=w("slot"),i!=="default"&&V(l,"name",i)},m:function(o,$){J(o,l,$)},d:function(o){o&&A(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=ot(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const l=this.$$g_p(i.name);l in this.$$d||(this.$$d[l]=E(l,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:T(M({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const l=E(i,this.$$d[i],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const l of this.$$l[i]){const c=this.$$c.$on(i,l);this.$$l_u.set(l,c)}this.$$l={}}})}attributeChangedCallback(t,n,s){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=E(t,s,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 E(e,t,n,s){var i;const r=(i=n[e])==null?void 0:i.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="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 gt(e,t,n,s,r,i){let l=class extends F{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(l.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(u){var o;u=E(c,u,t),this.$$d[c]=u,(o=this.$$c)==null||o.$set({[c]:u})}})}),s.forEach(c=>{Object.defineProperty(l.prototype,c,{get(){var u;return(u=this.$$c)==null?void 0:u[c]}})}),e.element=l,l}class bt{constructor(){a(this,"$$");a(this,"$$set")}$destroy(){ht(this,1),this.$destroy=C}$on(t,n){if(!D(n))return C;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1)}}$set(t){this.$$set&&!Z(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const yt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yt);function pt(e){tt(e,"svelte-1cfukt5",".CashierNotifications{position:fixed;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function wt(e){let t,n,s,r,i,l,c,u;return{c(){t=w("div"),n=w("span"),s=L(e[0]),r=it(),i=w("button"),l=L(e[1]),V(t,"class","CashierNotifications")},m(o,$){J(o,t,$),_(t,n),_(n,s),_(t,r),_(t,i),_(i,l),e[6](t),c||(u=st(i,"click",e[3]),c=!0)},p(o,[$]){$&1&&H(s,o[0]),$&2&&H(l,o[1])},i:C,o:C,d(o){o&&A(t),e[6](null),c=!1,u()}}}function xt(e,t,n){let{text:s}=t,{button:r}=t,{clientstyling:i=""}=t,{clientstylingurl:l=""}=t,c;const u=()=>{dispatchEvent(new CustomEvent("notificationButtonClick",{bubbles:!0,cancelable:!0,composed:!0}))},o=()=>{let f=document.createElement("style");f.innerHTML=i,c.appendChild(f)},$=()=>{let f=new URL(l),p=document.createElement("style");fetch(f.href).then(h=>h.text()).then(h=>{p.innerHTML=h,setTimeout(()=>{c.appendChild(p)},1)})};function d(f){O[f?"unshift":"push"](()=>{c=f,n(2,c)})}return e.$$set=f=>{"text"in f&&n(0,s=f.text),"button"in f&&n(1,r=f.button),"clientstyling"in f&&n(4,i=f.clientstyling),"clientstylingurl"in f&&n(5,l=f.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&20&&i&&c&&o(),e.$$.dirty&36&&l&&c&&$()},[s,r,c,u,i,l,d]}class q extends bt{constructor(t){super(),_t(this,t,xt,wt,Y,{text:0,button:1,clientstyling:4,clientstylingurl:5},pt)}get text(){return this.$$.ctx[0]}set text(t){this.$$set({text:t}),b()}get button(){return this.$$.ctx[1]}set button(t){this.$$set({button:t}),b()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),b()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),b()}}gt(q,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=q;
|
|
@@ -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/CashierNotifications-
|
|
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/CashierNotifications-DrX61RaD.cjs")).then(({default:t})=>{!customElements.get("cashier-notifications")&&customElements.define("cashier-notifications",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierNotifications-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierNotifications-D3njET7P.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-notifications") && customElements.define("cashier-notifications", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/cashier-notifications",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/cashier-notifications.cjs",
|
|
6
6
|
"module": "es2015/cashier-notifications.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"./es2015/cashier-notifications.cjs": "./es2015/cashier-notifications.cjs"
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
"files": [
|
|
15
15
|
"es2015/",
|
|
16
16
|
"components"
|
|
17
17
|
],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var G=Object.defineProperty,K=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var k=(e,t,n)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&k(e,n,t[n]);if(B)for(var n of B(t))X.call(t,n)&&k(e,n,t[n]);return e},T=(e,t)=>K(e,Q(t));var a=(e,t,n)=>k(e,typeof t!="symbol"?t+"":t,n);var R=(e,t,n)=>new Promise((i,r)=>{var s=u=>{try{c(n.next(u))}catch(o){r(o)}},l=u=>{try{c(n.throw(u))}catch(o){r(o)}},c=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,l);c((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function v(){}function U(e){return e()}function H(){return Object.create(null)}function E(e){e.forEach(U)}function D(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Z(e){return Object.keys(e).length===0}function _(e,t){e.appendChild(t)}function tt(e,t,n){const i=et(e);if(!i.getElementById(t)){const r=w("style");r.id=t,r.textContent=n,nt(i,r)}}function et(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function nt(e,t){return _(e.head||e,t),t.sheet}function J(e,t,n){e.insertBefore(t,n||null)}function A(e){e.parentNode&&e.parentNode.removeChild(e)}function w(e){return document.createElement(e)}function L(e){return document.createTextNode(e)}function st(){return L(" ")}function it(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function j(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function rt(e){return Array.from(e.childNodes)}function z(e,t){t=""+t,e.data!==t&&(e.data=t)}function ot(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let P;function x(e){P=e}const g=[],O=[];let y=[];const I=[],ct=Promise.resolve();let q=!1;function lt(){q||(q=!0,ct.then(b))}function S(e){y.push(e)}const N=new Set;let m=0;function b(){if(m!==0)return;const e=P;do{try{for(;m<g.length;){const t=g[m];m++,x(t),ut(t.$$)}}catch(t){throw g.length=0,m=0,t}for(x(null),g.length=0,m=0;O.length;)O.pop()();for(let t=0;t<y.length;t+=1){const n=y[t];N.has(n)||(N.add(n),n())}y.length=0}while(g.length);for(;I.length;)I.pop()();q=!1,N.clear(),x(e)}function ut(e){if(e.fragment!==null){e.update(),E(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(S)}}function ft(e){const t=[],n=[];y.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),y=t}const at=new Set;function dt(e,t){e&&e.i&&(at.delete(e),e.i(t))}function $t(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),S(()=>{const s=e.$$.on_mount.map(U).filter(D);e.$$.on_destroy?e.$$.on_destroy.push(...s):E(s),e.$$.on_mount=[]}),r.forEach(S)}function ht(e,t){const n=e.$$;n.fragment!==null&&(ft(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function mt(e,t){e.$$.dirty[0]===-1&&(g.push(e),lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function _t(e,t,n,i,r,s,l=null,c=[-1]){const u=P;x(e);const o=e.$$={fragment:null,ctx:[],props:s,update:v,not_equal:r,bound:H(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:H(),dirty:c,skip_bound:!1,root:t.target||u.$$.root};l&&l(o.root);let d=!1;if(o.ctx=n?n(e,t.props||{},($,f,...p)=>{const h=p.length?p[0]:f;return o.ctx&&r(o.ctx[$],o.ctx[$]=h)&&(!o.skip_bound&&o.bound[$]&&o.bound[$](h),d&&mt(e,$)),f}):[],o.update(),d=!0,E(o.before_update),o.fragment=i?i(o.ctx):!1,t.target){if(t.hydrate){const $=rt(t.target);o.fragment&&o.fragment.l($),$.forEach(A)}else o.fragment&&o.fragment.c();t.intro&&dt(e.$$.fragment),$t(e,t.target,t.anchor),b()}x(u)}let V;typeof HTMLElement=="function"&&(V=class extends HTMLElement{constructor(t,n,i){super();a(this,"$$ctor");a(this,"$$s");a(this,"$$c");a(this,"$$cn",!1);a(this,"$$d",{});a(this,"$$r",!1);a(this,"$$p_d",{});a(this,"$$l",{});a(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 R(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let l;return{c:function(){l=w("slot"),s!=="default"&&j(l,"name",s)},m:function(o,d){J(o,l,d)},d:function(o){o&&A(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ot(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=C(l,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:T(M({},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 l=C(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=C(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 C(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 gt(e,t,n,i,r,s){let l=class extends V{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(l.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(u){var o;u=C(c,u,t),this.$$d[c]=u,(o=this.$$c)==null||o.$set({[c]:u})}})}),i.forEach(c=>{Object.defineProperty(l.prototype,c,{get(){var u;return(u=this.$$c)==null?void 0:u[c]}})}),e.element=l,l}class bt{constructor(){a(this,"$$");a(this,"$$set")}$destroy(){ht(this,1),this.$destroy=v}$on(t,n){if(!D(n))return v;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&&!Z(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const yt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yt);function pt(e){tt(e,"svelte-1d9ojqw",".CashierNotifications.svelte-1d9ojqw.svelte-1d9ojqw{position:fixed;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications.svelte-1d9ojqw span.svelte-1d9ojqw,.CashierNotifications.svelte-1d9ojqw button.svelte-1d9ojqw{font-family:inherit;border:none;font-variant:normal}.CashierNotifications.svelte-1d9ojqw span.svelte-1d9ojqw{line-height:normal}.CashierNotifications.svelte-1d9ojqw button.svelte-1d9ojqw{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function wt(e){let t,n,i,r,s,l,c,u;return{c(){t=w("div"),n=w("span"),i=L(e[0]),r=st(),s=w("button"),l=L(e[1]),j(n,"class","svelte-1d9ojqw"),j(s,"class","svelte-1d9ojqw"),j(t,"class","CashierNotifications svelte-1d9ojqw")},m(o,d){J(o,t,d),_(t,n),_(n,i),_(t,r),_(t,s),_(s,l),e[6](t),c||(u=it(s,"click",e[3]),c=!0)},p(o,[d]){d&1&&z(i,o[0]),d&2&&z(l,o[1])},i:v,o:v,d(o){o&&A(t),e[6](null),c=!1,u()}}}function xt(e,t,n){let{text:i}=t,{button:r}=t,{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,c;const u=()=>{dispatchEvent(new CustomEvent("notificationButtonClick",{bubbles:!0,cancelable:!0,composed:!0}))},o=()=>{let f=document.createElement("style");f.innerHTML=s,c.appendChild(f)},d=()=>{let f=new URL(l),p=document.createElement("style");fetch(f.href).then(h=>h.text()).then(h=>{p.innerHTML=h,setTimeout(()=>{c.appendChild(p)},1)})};function $(f){O[f?"unshift":"push"](()=>{c=f,n(2,c)})}return e.$$set=f=>{"text"in f&&n(0,i=f.text),"button"in f&&n(1,r=f.button),"clientstyling"in f&&n(4,s=f.clientstyling),"clientstylingurl"in f&&n(5,l=f.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&20&&s&&c&&o(),e.$$.dirty&36&&l&&c&&d()},[i,r,c,u,s,l,$]}class F extends bt{constructor(t){super(),_t(this,t,xt,wt,Y,{text:0,button:1,clientstyling:4,clientstylingurl:5},pt)}get text(){return this.$$.ctx[0]}set text(t){this.$$set({text:t}),b()}get button(){return this.$$.ctx[1]}set button(t){this.$$set({button:t}),b()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),b()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),b()}}gt(F,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=F;
|