@everymatrix/cashier-verifications 1.52.2 → 1.52.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierVerifications-CzlFnRY3.js → CashierVerifications-C0AVUPTF.js} +243 -231
- package/components/{CashierVerifications-BZm37mXz.cjs → CashierVerifications-C2dYV8Km.cjs} +3 -3
- package/components/CashierVideoModal-D0zHNTJv.cjs +1 -0
- package/components/{CashierVideoModal-ZVGTUU-8.js → CashierVideoModal-kYAQNcsM.js} +61 -50
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +1 -1
- package/package.json +1 -1
- package/components/CashierVideoModal-CV8uIf5-.cjs +0 -1
|
@@ -1,30 +1,41 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { S as T, i as B, f as C, c as R, s as U, a as Z, e as F, b as v, n as m, d as _, o as N, g, h as b, j as k, k as n, t as V, l as p, m as w, p as H, q as A } from "./CashierVerifications-C0AVUPTF.js";
|
|
2
|
+
function G(s) {
|
|
3
|
+
Z(s, "svelte-1nj5tcr", ".CashierVideoWrapper{position:fixed;width:100%;height:calc(100% - 55px);left:0;top:55px;z-index:5;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoWrapperDesktop{height:calc(100% - 110px);top:110px}.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}");
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function x(s) {
|
|
6
6
|
let e, i, t, o, r, f, u, c = !/*desktopView*/
|
|
7
7
|
s[2] && M(s), l = (
|
|
8
8
|
/*desktopView*/
|
|
9
|
-
s[2] &&
|
|
9
|
+
s[2] && S(s)
|
|
10
10
|
);
|
|
11
11
|
return {
|
|
12
12
|
c() {
|
|
13
|
-
e =
|
|
14
|
-
s[0]) || n(f, "src", u), r.autoplay = !0, r.controls = !0, n(r, "controlslist", "nodownload"), n(r, "disablepictureinpicture", ""), n(t, "class", "CashierVideo"), n(e, "class", "CashierVideoWrapper"), n(e, "part", "CustomStylingContainer")
|
|
13
|
+
e = g("div"), c && c.c(), i = b(), t = g("div"), l && l.c(), o = b(), r = g("video"), f = g("source"), k(f.src, u = /*videosrc*/
|
|
14
|
+
s[0]) || n(f, "src", u), r.autoplay = !0, r.controls = !0, n(r, "controlslist", "nodownload"), n(r, "disablepictureinpicture", ""), n(t, "class", "CashierVideo"), n(e, "class", "CashierVideoWrapper"), n(e, "part", "CustomStylingContainer"), V(
|
|
15
|
+
e,
|
|
16
|
+
"CashierVideoWrapperDesktop",
|
|
17
|
+
/*desktopView*/
|
|
18
|
+
s[2]
|
|
19
|
+
);
|
|
15
20
|
},
|
|
16
21
|
m(d, h) {
|
|
17
|
-
v(d, e, h), c && c.m(e, null),
|
|
22
|
+
v(d, e, h), c && c.m(e, null), p(e, i), p(e, t), l && l.m(t, null), p(t, o), p(t, r), p(r, f), s[10](e);
|
|
18
23
|
},
|
|
19
24
|
p(d, h) {
|
|
20
25
|
/*desktopView*/
|
|
21
26
|
d[2] ? c && (c.d(1), c = null) : c ? c.p(d, h) : (c = M(d), c.c(), c.m(e, i)), /*desktopView*/
|
|
22
|
-
d[2] ? l ? l.p(d, h) : (l =
|
|
27
|
+
d[2] ? l ? l.p(d, h) : (l = S(d), l.c(), l.m(t, o)) : l && (l.d(1), l = null), h & /*videosrc*/
|
|
23
28
|
1 && !k(f.src, u = /*videosrc*/
|
|
24
|
-
d[0]) && n(f, "src", u)
|
|
29
|
+
d[0]) && n(f, "src", u), h & /*desktopView*/
|
|
30
|
+
4 && V(
|
|
31
|
+
e,
|
|
32
|
+
"CashierVideoWrapperDesktop",
|
|
33
|
+
/*desktopView*/
|
|
34
|
+
d[2]
|
|
35
|
+
);
|
|
25
36
|
},
|
|
26
37
|
d(d) {
|
|
27
|
-
d &&
|
|
38
|
+
d && _(e), c && c.d(), l && l.d(), s[10](null);
|
|
28
39
|
}
|
|
29
40
|
};
|
|
30
41
|
}
|
|
@@ -32,80 +43,80 @@ function M(s) {
|
|
|
32
43
|
let e, i, t, o, r;
|
|
33
44
|
return {
|
|
34
45
|
c() {
|
|
35
|
-
e =
|
|
46
|
+
e = g("div"), i = w("svg"), t = w("path"), n(t, "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(t, "fill", "#111111"), n(i, "xmlns", "http://www.w3.org/2000/svg"), n(i, "width", "13"), n(i, "height", "13"), n(i, "viewBox", "0 0 13 13"), n(i, "fill", "none"), n(e, "class", "CashierVideoHeader");
|
|
36
47
|
},
|
|
37
48
|
m(f, u) {
|
|
38
|
-
v(f, e, u),
|
|
49
|
+
v(f, e, u), p(e, i), p(i, t), o || (r = H(
|
|
39
50
|
i,
|
|
40
51
|
"click",
|
|
41
52
|
/*click_handler*/
|
|
42
53
|
s[8]
|
|
43
54
|
), o = !0);
|
|
44
55
|
},
|
|
45
|
-
p,
|
|
56
|
+
p: m,
|
|
46
57
|
d(f) {
|
|
47
|
-
f &&
|
|
58
|
+
f && _(e), o = !1, r();
|
|
48
59
|
}
|
|
49
60
|
};
|
|
50
61
|
}
|
|
51
|
-
function
|
|
62
|
+
function S(s) {
|
|
52
63
|
let e, i, t, o;
|
|
53
64
|
return {
|
|
54
65
|
c() {
|
|
55
66
|
e = w("svg"), i = w("path"), n(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(i, "fill", "#111111"), n(e, "xmlns", "http://www.w3.org/2000/svg"), n(e, "width", "13"), n(e, "height", "13"), n(e, "viewBox", "0 0 13 13"), n(e, "fill", "none");
|
|
56
67
|
},
|
|
57
68
|
m(r, f) {
|
|
58
|
-
v(r, e, f),
|
|
69
|
+
v(r, e, f), p(e, i), t || (o = H(
|
|
59
70
|
e,
|
|
60
71
|
"click",
|
|
61
72
|
/*click_handler_1*/
|
|
62
73
|
s[9]
|
|
63
74
|
), t = !0);
|
|
64
75
|
},
|
|
65
|
-
p,
|
|
76
|
+
p: m,
|
|
66
77
|
d(r) {
|
|
67
|
-
r &&
|
|
78
|
+
r && _(e), t = !1, o();
|
|
68
79
|
}
|
|
69
80
|
};
|
|
70
81
|
}
|
|
71
|
-
function
|
|
82
|
+
function I(s) {
|
|
72
83
|
let e, i = (
|
|
73
84
|
/*show*/
|
|
74
|
-
s[3] &&
|
|
85
|
+
s[3] && x(s)
|
|
75
86
|
);
|
|
76
87
|
return {
|
|
77
88
|
c() {
|
|
78
|
-
i && i.c(), e =
|
|
89
|
+
i && i.c(), e = F();
|
|
79
90
|
},
|
|
80
91
|
m(t, o) {
|
|
81
92
|
i && i.m(t, o), v(t, e, o);
|
|
82
93
|
},
|
|
83
94
|
p(t, [o]) {
|
|
84
95
|
/*show*/
|
|
85
|
-
t[3] ? i ? i.p(t, o) : (i =
|
|
96
|
+
t[3] ? i ? i.p(t, o) : (i = x(t), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
86
97
|
},
|
|
87
|
-
i:
|
|
88
|
-
o:
|
|
98
|
+
i: m,
|
|
99
|
+
o: m,
|
|
89
100
|
d(t) {
|
|
90
|
-
t &&
|
|
101
|
+
t && _(e), i && i.d(t);
|
|
91
102
|
}
|
|
92
103
|
};
|
|
93
104
|
}
|
|
94
|
-
function
|
|
105
|
+
function J(s, e, i) {
|
|
95
106
|
let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: r } = e, { videosrc: f } = e, u = !0, c = !1, l;
|
|
96
107
|
const d = () => {
|
|
97
108
|
i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
98
109
|
}, h = (a) => {
|
|
99
110
|
a.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
|
|
100
|
-
}, H = () => {
|
|
101
|
-
i(2, u = r === "false");
|
|
102
111
|
}, z = () => {
|
|
112
|
+
i(2, u = r === "false");
|
|
113
|
+
}, D = () => {
|
|
103
114
|
let a = document.createElement("style");
|
|
104
115
|
a.innerHTML = t, l.appendChild(a);
|
|
105
116
|
}, E = () => {
|
|
106
117
|
let a = new URL(o), L = document.createElement("style");
|
|
107
|
-
fetch(a.href).then((
|
|
108
|
-
L.innerHTML =
|
|
118
|
+
fetch(a.href).then((y) => y.text()).then((y) => {
|
|
119
|
+
L.innerHTML = y, setTimeout(
|
|
109
120
|
() => {
|
|
110
121
|
l.appendChild(L);
|
|
111
122
|
},
|
|
@@ -113,12 +124,12 @@ function I(s, e, i) {
|
|
|
113
124
|
);
|
|
114
125
|
});
|
|
115
126
|
};
|
|
116
|
-
|
|
127
|
+
N(() => (window.addEventListener("message", h, !1), () => {
|
|
117
128
|
window.removeEventListener("message", h);
|
|
118
129
|
}));
|
|
119
|
-
const
|
|
120
|
-
function
|
|
121
|
-
|
|
130
|
+
const W = () => d(), j = () => d();
|
|
131
|
+
function q(a) {
|
|
132
|
+
A[a ? "unshift" : "push"](() => {
|
|
122
133
|
l = a, i(1, l);
|
|
123
134
|
});
|
|
124
135
|
}
|
|
@@ -126,8 +137,8 @@ function I(s, e, i) {
|
|
|
126
137
|
"clientstyling" in a && i(5, t = a.clientstyling), "clientstylingurl" in a && i(6, o = a.clientstylingurl), "ismobileview" in a && i(7, r = a.ismobileview), "videosrc" in a && i(0, f = a.videosrc);
|
|
127
138
|
}, s.$$.update = () => {
|
|
128
139
|
s.$$.dirty & /*ismobileview*/
|
|
129
|
-
128 && r &&
|
|
130
|
-
34 && t && l &&
|
|
140
|
+
128 && r && z(), s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
141
|
+
34 && t && l && D(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
131
142
|
66 && o && l && E();
|
|
132
143
|
}, [
|
|
133
144
|
f,
|
|
@@ -138,18 +149,18 @@ function I(s, e, i) {
|
|
|
138
149
|
t,
|
|
139
150
|
o,
|
|
140
151
|
r,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
152
|
+
W,
|
|
153
|
+
j,
|
|
154
|
+
q
|
|
144
155
|
];
|
|
145
156
|
}
|
|
146
|
-
class
|
|
157
|
+
class K extends T {
|
|
147
158
|
constructor(e) {
|
|
148
|
-
super(),
|
|
159
|
+
super(), B(
|
|
149
160
|
this,
|
|
150
161
|
e,
|
|
162
|
+
J,
|
|
151
163
|
I,
|
|
152
|
-
G,
|
|
153
164
|
U,
|
|
154
165
|
{
|
|
155
166
|
clientstyling: 5,
|
|
@@ -157,35 +168,35 @@ class J extends B {
|
|
|
157
168
|
ismobileview: 7,
|
|
158
169
|
videosrc: 0
|
|
159
170
|
},
|
|
160
|
-
|
|
171
|
+
G
|
|
161
172
|
);
|
|
162
173
|
}
|
|
163
174
|
get clientstyling() {
|
|
164
175
|
return this.$$.ctx[5];
|
|
165
176
|
}
|
|
166
177
|
set clientstyling(e) {
|
|
167
|
-
this.$$set({ clientstyling: e }),
|
|
178
|
+
this.$$set({ clientstyling: e }), C();
|
|
168
179
|
}
|
|
169
180
|
get clientstylingurl() {
|
|
170
181
|
return this.$$.ctx[6];
|
|
171
182
|
}
|
|
172
183
|
set clientstylingurl(e) {
|
|
173
|
-
this.$$set({ clientstylingurl: e }),
|
|
184
|
+
this.$$set({ clientstylingurl: e }), C();
|
|
174
185
|
}
|
|
175
186
|
get ismobileview() {
|
|
176
187
|
return this.$$.ctx[7];
|
|
177
188
|
}
|
|
178
189
|
set ismobileview(e) {
|
|
179
|
-
this.$$set({ ismobileview: e }),
|
|
190
|
+
this.$$set({ ismobileview: e }), C();
|
|
180
191
|
}
|
|
181
192
|
get videosrc() {
|
|
182
193
|
return this.$$.ctx[0];
|
|
183
194
|
}
|
|
184
195
|
set videosrc(e) {
|
|
185
|
-
this.$$set({ videosrc: e }),
|
|
196
|
+
this.$$set({ videosrc: e }), C();
|
|
186
197
|
}
|
|
187
198
|
}
|
|
188
|
-
R(
|
|
199
|
+
R(K, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
|
|
189
200
|
export {
|
|
190
|
-
|
|
201
|
+
K as default
|
|
191
202
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("../components/CashierVerifications-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("../components/CashierVerifications-C2dYV8Km.cjs")).then(e=>e.CashierVerifications_ce).then(({default:e})=>{!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierVerifications-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierVerifications-C0AVUPTF.js").then((e) => e.C).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("cashier-verifications") && customElements.define("cashier-verifications", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierVerifications-BZm37mXz.cjs");function M(n){e.append_styles(n,"svelte-crbnq2",".CashierVideoWrapper{position:fixed;width:100%;height:100%;left:0;top:0;z-index:5;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 m(n){let t,i,l,r,o,f,u,c=!n[2]&&C(n),s=n[2]&&w(n);return{c(){t=e.element("div"),c&&c.c(),i=e.space(),l=e.element("div"),s&&s.c(),r=e.space(),o=e.element("video"),f=e.element("source"),e.src_url_equal(f.src,u=n[0])||e.attr(f,"src",u),o.autoplay=!0,o.controls=!0,e.attr(o,"controlslist","nodownload"),e.attr(o,"disablepictureinpicture",""),e.attr(l,"class","CashierVideo"),e.attr(t,"class","CashierVideoWrapper"),e.attr(t,"part","CustomStylingContainer")},m(d,h){e.insert(d,t,h),c&&c.m(t,null),e.append(t,i),e.append(t,l),s&&s.m(l,null),e.append(l,r),e.append(l,o),e.append(o,f),n[10](t)},p(d,h){d[2]?c&&(c.d(1),c=null):c?c.p(d,h):(c=C(d),c.c(),c.m(t,i)),d[2]?s?s.p(d,h):(s=w(d),s.c(),s.m(l,r)):s&&(s.d(1),s=null),h&1&&!e.src_url_equal(f.src,u=d[0])&&e.attr(f,"src",u)},d(d){d&&e.detach(t),c&&c.d(),s&&s.d(),n[10](null)}}}function C(n){let t,i,l,r,o;return{c(){t=e.element("div"),i=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"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"),e.attr(l,"fill","#111111"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","13"),e.attr(i,"height","13"),e.attr(i,"viewBox","0 0 13 13"),e.attr(i,"fill","none"),e.attr(t,"class","CashierVideoHeader")},m(f,u){e.insert(f,t,u),e.append(t,i),e.append(i,l),r||(o=e.listen(i,"click",n[8]),r=!0)},p:e.noop,d(f){f&&e.detach(t),r=!1,o()}}}function w(n){let t,i,l,r;return{c(){t=e.svg_element("svg"),i=e.svg_element("path"),e.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"),e.attr(i,"fill","#111111"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"width","13"),e.attr(t,"height","13"),e.attr(t,"viewBox","0 0 13 13"),e.attr(t,"fill","none")},m(o,f){e.insert(o,t,f),e.append(t,i),l||(r=e.listen(t,"click",n[9]),l=!0)},p:e.noop,d(o){o&&e.detach(t),l=!1,r()}}}function S(n){let t,i=n[3]&&m(n);return{c(){i&&i.c(),t=e.empty()},m(l,r){i&&i.m(l,r),e.insert(l,t,r)},p(l,[r]){l[3]?i?i.p(l,r):(i=m(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),i&&i.d(l)}}}function x(n,t,i){let{clientstyling:l=""}=t,{clientstylingurl:r=""}=t,{ismobileview:o}=t,{videosrc:f}=t,u=!0,c=!1,s;const d=()=>{i(3,c=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},h=a=>{a.data.type=="ShowCashierVideoModal"&&(i(3,c=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},_=()=>{i(2,u=o==="false")},y=()=>{let a=document.createElement("style");a.innerHTML=l,s.appendChild(a)},L=()=>{let a=new URL(r),g=document.createElement("style");fetch(a.href).then(p=>p.text()).then(p=>{g.innerHTML=p,setTimeout(()=>{s.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));const b=()=>d(),k=()=>d();function V(a){e.binding_callbacks[a?"unshift":"push"](()=>{s=a,i(1,s)})}return n.$$set=a=>{"clientstyling"in a&&i(5,l=a.clientstyling),"clientstylingurl"in a&&i(6,r=a.clientstylingurl),"ismobileview"in a&&i(7,o=a.ismobileview),"videosrc"in a&&i(0,f=a.videosrc)},n.$$.update=()=>{n.$$.dirty&128&&o&&_(),n.$$.dirty&34&&l&&s&&y(),n.$$.dirty&66&&r&&s&&L()},[f,s,u,c,d,l,r,o,b,k,V]}class v extends e.SvelteComponent{constructor(t){super(),e.init(this,t,x,S,e.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},M)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),e.flush()}}e.create_custom_element(v,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=v;
|