@everymatrix/cashier-method-details 1.76.1 → 1.76.4
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/CashierError-BrL5CAOl.js +4630 -0
- package/components/CashierError-Ct47Rqvt.js +4593 -0
- package/components/CashierError-DqG41odi.cjs +8 -0
- package/components/{CashierMethodDetails--CQadYoV.js → CashierMethodDetails-CbrOmOCe.js} +2827 -2650
- package/components/{CashierMethodDetails-Bps9glx5.js → CashierMethodDetails-D01hFlpN.js} +2881 -2704
- package/components/CashierMethodDetails-F_t0ClIg.cjs +99 -0
- package/components/CashierModal-DVQJ9P-j.cjs +1 -0
- package/components/{CashierModal-CtTizWVI.js → CashierModal-IWswoSQa.js} +47 -47
- package/components/{CashierModal-Dpm8pcBd.js → CashierModal-TGUCkbyQ.js} +47 -47
- package/components/{CashierNotifications-iIg1hdLO.js → CashierNotifications-Bg9zyIhP.js} +11 -11
- package/components/{CashierNotifications-B19UyWB7.js → CashierNotifications-CcvLHszW.js} +11 -11
- package/components/{CashierNotifications-C358JdVE.cjs → CashierNotifications-DOJFHpXL.cjs} +1 -1
- package/components/CashierReceiptPage-BTrjEt7P.cjs +1 -0
- package/components/CashierReceiptPage-CEHlpRZd.js +1653 -0
- package/components/CashierReceiptPage-CstRy1Kd.js +1655 -0
- package/components/{CashierSpinner-D6w9HhBu.cjs → CashierSpinner-DCqiXAYk.cjs} +1 -1
- package/components/{CashierSpinner-C3Q_cGtV.js → CashierSpinner-DO7iikrx.js} +19 -19
- package/components/{CashierSpinner-C8SwPqgZ.js → CashierSpinner-DT2gT_0p.js} +19 -19
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/esnext/cashier-method-details.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/{ui-image-BMiZteNE.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-CX3MBBZL.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-BW8AeEVd.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CashierError-Btzeut3h.js +0 -4621
- package/components/CashierError-C9aAlABk.cjs +0 -21
- package/components/CashierError-DzTzgQqG.js +0 -4658
- package/components/CashierMethodDetails-DgndTvmg.cjs +0 -86
- package/components/CashierModal-DSjFUdi5.cjs +0 -1
- package/components/CashierReceiptPage-BPo_mDTr.js +0 -1622
- package/components/CashierReceiptPage-CV5LsWM8.cjs +0 -1
- package/components/CashierReceiptPage-bgOaVFGv.js +0 -1620
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierError-DqG41odi.cjs");function b(i,{delay:e=0,duration:n=400,easing:s=t.identity}={}){const l=+getComputedStyle(i).opacity;return{delay:e,duration:n,easing:s,css:a=>`opacity: ${a*l}`}}function L(i){t.append_styles(i,"svelte-2w7akv","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@container (max-width: 475px){#Modal{display:grid;place-items:center start;grid-template-rows:minmax(10vh, 1fr) auto minmax(5vh, 1fr)}.ModalContainer{grid-row:2;max-width:90%;max-height:80vh;overflow-y:auto;margin:auto}}")}const M=i=>({}),C=i=>({});function v(i){let e,n,s,l,a,g,h,w,c,d,f,_;const m=i[12].content,o=t.create_slot(m,i,i[11],C);return{c(){e=t.element("div"),n=t.element("div"),s=t.element("div"),l=t.svg_element("svg"),a=t.svg_element("path"),g=t.space(),o&&o.c(),t.attr(a,"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"),t.attr(a,"fill","#111111"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","13"),t.attr(l,"height","13"),t.attr(l,"viewBox","0 0 13 13"),t.attr(l,"fill","none"),t.attr(l,"class","CloseButton"),t.attr(s,"class","ModalContainer"),t.attr(s,"style",h=i[3]==="true"?"height: 70%":"height: auto"),t.attr(n,"id","Modal"),t.add_render_callback(()=>i[14].call(n))},m(u,y){t.insert(u,e,y),t.append(e,n),t.append(n,s),t.append(s,l),t.append(l,a),t.append(s,g),o&&o.m(s,null),i[13](n),w=t.add_iframe_resize_listener(n,i[14].bind(n)),i[15](e),d=!0,f||(_=t.listen(l,"click",i[7]),f=!0)},p(u,y){i=u,o&&o.p&&(!d||y&2048)&&t.update_slot_base(o,m,i,i[11],d?t.get_slot_changes(m,i[11],y,M):t.get_all_dirty_from_scope(i[11]),C),(!d||y&8&&h!==(h=i[3]==="true"?"height: 70%":"height: auto"))&&t.attr(s,"style",h)},i(u){d||(t.transition_in(o,u),u&&t.add_render_callback(()=>{d&&(c||(c=t.create_bidirectional_transition(n,b,i[4],!0)),c.run(1))}),d=!0)},o(u){t.transition_out(o,u),u&&(c||(c=t.create_bidirectional_transition(n,b,i[4],!1)),c.run(0)),d=!1},d(u){u&&t.detach(e),o&&o.d(u),i[13](null),w(),u&&c&&c.end(),i[15](null),f=!1,_()}}}function S(i){let e,n,s=i[2]==="true"&&v(i);return{c(){s&&s.c(),e=t.empty()},m(l,a){s&&s.m(l,a),t.insert(l,e,a),n=!0},p(l,[a]){l[2]==="true"?s?(s.p(l,a),a&4&&t.transition_in(s,1)):(s=v(l),s.c(),t.transition_in(s,1),s.m(e.parentNode,e)):s&&(t.group_outros(),t.transition_out(s,1,1,()=>{s=null}),t.check_outros())},i(l){n||(t.transition_in(s),n=!0)},o(l){t.transition_out(s),n=!1},d(l){l&&t.detach(e),s&&s.d(l)}}}function z(i,e,n){let{$$slots:s={},$$scope:l}=e,{mbsource:a}=e,{clientstyling:g}=e,{clientstylingurl:h}=e,{show:w}=e,{isvideo:c=""}=e,{duration:d=200}=e,{width:f}=e,{height:_}=e,m,o;const u=()=>{window.postMessage({type:"CloseModal"},window.location.href)};t.onMount(()=>()=>{});function y(r){t.binding_callbacks[r?"unshift":"push"](()=>{m=r,n(6,m)})}function x(){f=this.clientWidth,_=this.clientHeight,n(0,f),n(1,_)}function k(r){t.binding_callbacks[r?"unshift":"push"](()=>{o=r,n(5,o)})}return i.$$set=r=>{"mbsource"in r&&n(8,a=r.mbsource),"clientstyling"in r&&n(9,g=r.clientstyling),"clientstylingurl"in r&&n(10,h=r.clientstylingurl),"show"in r&&n(2,w=r.show),"isvideo"in r&&n(3,c=r.isvideo),"duration"in r&&n(4,d=r.duration),"width"in r&&n(0,f=r.width),"height"in r&&n(1,_=r.height),"$$scope"in r&&n(11,l=r.$$scope)},i.$$.update=()=>{i.$$.dirty&544&&g&&o&&t.setClientStyling(o,g),i.$$.dirty&1056&&h&&o&&t.setClientStylingURL(o,h),i.$$.dirty&288&&a&&o&&t.setStreamStyling(o,`${a}.Style`)},[f,_,w,c,d,o,m,u,a,g,h,l,s,y,x,k]}class p extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,z,S,t.safe_not_equal,{mbsource:8,clientstyling:9,clientstylingurl:10,show:2,isvideo:3,duration:4,width:0,height:1},L)}get mbsource(){return this.$$.ctx[8]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get show(){return this.$$.ctx[2]}set show(e){this.$$set({show:e}),t.flush()}get isvideo(){return this.$$.ctx[3]}set isvideo(e){this.$$set({isvideo:e}),t.flush()}get duration(){return this.$$.ctx[4]}set duration(e){this.$$set({duration:e}),t.flush()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),t.flush()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),t.flush()}}t.create_custom_element(p,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},isvideo:{},duration:{},width:{},height:{}},["content"],[],!0);exports.default=p;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
function z(e, { delay: t = 0, duration: i = 400, easing: n =
|
1
|
+
import { P as W, S as Z, b as E, s as H, f as g, e as J, j as q, Q as L, R as v, T as O, U as P, l as N, x as Q, v as T, V, W as M, h as k, X, Y, Z as A, t as u, m as C, _ as D, o as F, q as x, J as p, r as G, C as S, M as I, N as K, O as $, d as tt } from "./CashierError-BrL5CAOl.js";
|
2
|
+
function z(e, { delay: t = 0, duration: i = 400, easing: n = W } = {}) {
|
3
3
|
const s = +getComputedStyle(e).opacity;
|
4
4
|
return {
|
5
5
|
delay: t,
|
@@ -9,16 +9,16 @@ function z(e, { delay: t = 0, duration: i = 400, easing: n = A } = {}) {
|
|
9
9
|
};
|
10
10
|
}
|
11
11
|
function et(e) {
|
12
|
-
|
12
|
+
J(e, "svelte-2w7akv", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@container (max-width: 475px){#Modal{display:grid;place-items:center start;grid-template-rows:minmax(10vh, 1fr) auto minmax(5vh, 1fr)}.ModalContainer{grid-row:2;max-width:90%;max-height:80vh;overflow-y:auto;margin:auto}}");
|
13
13
|
}
|
14
14
|
const it = (e) => ({}), j = (e) => ({});
|
15
15
|
function B(e) {
|
16
|
-
let t, i, n, s, r, m, h,
|
17
|
-
const
|
16
|
+
let t, i, n, s, r, m, h, b, c, d, f, _;
|
17
|
+
const w = (
|
18
18
|
/*#slots*/
|
19
19
|
e[12].content
|
20
|
-
), o =
|
21
|
-
|
20
|
+
), o = V(
|
21
|
+
w,
|
22
22
|
e,
|
23
23
|
/*$$scope*/
|
24
24
|
e[11],
|
@@ -26,50 +26,50 @@ function B(e) {
|
|
26
26
|
);
|
27
27
|
return {
|
28
28
|
c() {
|
29
|
-
t = x("div"), i = x("div"), n = x("div"), s =
|
29
|
+
t = x("div"), i = x("div"), n = x("div"), s = p("svg"), r = p("path"), m = G(), o && o.c(), u(r, "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"), u(r, "fill", "#111111"), u(s, "xmlns", "http://www.w3.org/2000/svg"), u(s, "width", "13"), u(s, "height", "13"), u(s, "viewBox", "0 0 13 13"), u(s, "fill", "none"), u(s, "class", "CloseButton"), u(n, "class", "ModalContainer"), u(n, "style", h = /*isvideo*/
|
30
30
|
e[3] === "true" ? "height: 70%" : "height: auto"), u(i, "id", "Modal"), k(() => (
|
31
31
|
/*div1_elementresize_handler*/
|
32
32
|
e[14].call(i)
|
33
33
|
));
|
34
34
|
},
|
35
|
-
m(a,
|
36
|
-
|
35
|
+
m(a, y) {
|
36
|
+
N(a, t, y), C(t, i), C(i, n), C(n, s), C(s, r), C(n, m), o && o.m(n, null), e[13](i), b = D(
|
37
37
|
i,
|
38
38
|
/*div1_elementresize_handler*/
|
39
39
|
e[14].bind(i)
|
40
|
-
), e[15](t), d = !0, f || (_ =
|
40
|
+
), e[15](t), d = !0, f || (_ = F(
|
41
41
|
s,
|
42
42
|
"click",
|
43
43
|
/*closeModal*/
|
44
44
|
e[7]
|
45
45
|
), f = !0);
|
46
46
|
},
|
47
|
-
p(a,
|
48
|
-
e = a, o && o.p && (!d ||
|
49
|
-
2048) &&
|
47
|
+
p(a, y) {
|
48
|
+
e = a, o && o.p && (!d || y & /*$$scope*/
|
49
|
+
2048) && X(
|
50
50
|
o,
|
51
|
-
|
51
|
+
w,
|
52
52
|
e,
|
53
53
|
/*$$scope*/
|
54
54
|
e[11],
|
55
|
-
d ?
|
56
|
-
|
55
|
+
d ? A(
|
56
|
+
w,
|
57
57
|
/*$$scope*/
|
58
58
|
e[11],
|
59
|
-
|
59
|
+
y,
|
60
60
|
it
|
61
|
-
) :
|
61
|
+
) : Y(
|
62
62
|
/*$$scope*/
|
63
63
|
e[11]
|
64
64
|
),
|
65
65
|
j
|
66
|
-
), (!d ||
|
66
|
+
), (!d || y & /*isvideo*/
|
67
67
|
8 && h !== (h = /*isvideo*/
|
68
68
|
e[3] === "true" ? "height: 70%" : "height: auto")) && u(n, "style", h);
|
69
69
|
},
|
70
70
|
i(a) {
|
71
71
|
d || (v(o, a), a && k(() => {
|
72
|
-
d && (c || (c =
|
72
|
+
d && (c || (c = M(
|
73
73
|
i,
|
74
74
|
z,
|
75
75
|
/*duration*/
|
@@ -79,7 +79,7 @@ function B(e) {
|
|
79
79
|
}), d = !0);
|
80
80
|
},
|
81
81
|
o(a) {
|
82
|
-
L(o, a), a && (c || (c =
|
82
|
+
L(o, a), a && (c || (c = M(
|
83
83
|
i,
|
84
84
|
z,
|
85
85
|
/*duration*/
|
@@ -88,7 +88,7 @@ function B(e) {
|
|
88
88
|
)), c.run(0)), d = !1;
|
89
89
|
},
|
90
90
|
d(a) {
|
91
|
-
a &&
|
91
|
+
a && q(t), o && o.d(a), e[13](null), b(), a && c && c.end(), e[15](null), f = !1, _();
|
92
92
|
}
|
93
93
|
};
|
94
94
|
}
|
@@ -102,14 +102,14 @@ function nt(e) {
|
|
102
102
|
n && n.c(), t = Q();
|
103
103
|
},
|
104
104
|
m(s, r) {
|
105
|
-
n && n.m(s, r),
|
105
|
+
n && n.m(s, r), N(s, t, r), i = !0;
|
106
106
|
},
|
107
107
|
p(s, [r]) {
|
108
108
|
/*show*/
|
109
109
|
s[2] === "true" ? n ? (n.p(s, r), r & /*show*/
|
110
|
-
4 && v(n, 1)) : (n = B(s), n.c(), v(n, 1), n.m(t.parentNode, t)) : n && (
|
110
|
+
4 && v(n, 1)) : (n = B(s), n.c(), v(n, 1), n.m(t.parentNode, t)) : n && (O(), L(n, 1, 1, () => {
|
111
111
|
n = null;
|
112
|
-
}),
|
112
|
+
}), P());
|
113
113
|
},
|
114
114
|
i(s) {
|
115
115
|
i || (v(n), i = !0);
|
@@ -118,64 +118,64 @@ function nt(e) {
|
|
118
118
|
L(n), i = !1;
|
119
119
|
},
|
120
120
|
d(s) {
|
121
|
-
s &&
|
121
|
+
s && q(t), n && n.d(s);
|
122
122
|
}
|
123
123
|
};
|
124
124
|
}
|
125
125
|
function st(e, t, i) {
|
126
|
-
let { $$slots: n = {}, $$scope: s } = t, { mbsource: r } = t, { clientstyling: m } = t, { clientstylingurl: h } = t, { show:
|
126
|
+
let { $$slots: n = {}, $$scope: s } = t, { mbsource: r } = t, { clientstyling: m } = t, { clientstylingurl: h } = t, { show: b } = t, { isvideo: c = "" } = t, { duration: d = 200 } = t, { width: f } = t, { height: _ } = t, w, o;
|
127
127
|
const a = () => {
|
128
128
|
window.postMessage({ type: "CloseModal" }, window.location.href);
|
129
129
|
};
|
130
130
|
T(() => () => {
|
131
131
|
});
|
132
|
-
function
|
133
|
-
|
134
|
-
|
132
|
+
function y(l) {
|
133
|
+
S[l ? "unshift" : "push"](() => {
|
134
|
+
w = l, i(6, w);
|
135
135
|
});
|
136
136
|
}
|
137
|
-
function
|
137
|
+
function R() {
|
138
138
|
f = this.clientWidth, _ = this.clientHeight, i(0, f), i(1, _);
|
139
139
|
}
|
140
|
-
function
|
141
|
-
|
140
|
+
function U(l) {
|
141
|
+
S[l ? "unshift" : "push"](() => {
|
142
142
|
o = l, i(5, o);
|
143
143
|
});
|
144
144
|
}
|
145
145
|
return e.$$set = (l) => {
|
146
|
-
"mbsource" in l && i(8, r = l.mbsource), "clientstyling" in l && i(9, m = l.clientstyling), "clientstylingurl" in l && i(10, h = l.clientstylingurl), "show" in l && i(2,
|
146
|
+
"mbsource" in l && i(8, r = l.mbsource), "clientstyling" in l && i(9, m = l.clientstyling), "clientstylingurl" in l && i(10, h = l.clientstylingurl), "show" in l && i(2, b = l.show), "isvideo" in l && i(3, c = l.isvideo), "duration" in l && i(4, d = l.duration), "width" in l && i(0, f = l.width), "height" in l && i(1, _ = l.height), "$$scope" in l && i(11, s = l.$$scope);
|
147
147
|
}, e.$$.update = () => {
|
148
148
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
149
|
-
544 && m && o &&
|
150
|
-
1056 && h && o &&
|
151
|
-
288 && r && o &&
|
149
|
+
544 && m && o && I(o, m), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
150
|
+
1056 && h && o && K(o, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
151
|
+
288 && r && o && $(o, `${r}.Style`);
|
152
152
|
}, [
|
153
153
|
f,
|
154
154
|
_,
|
155
|
-
|
155
|
+
b,
|
156
156
|
c,
|
157
157
|
d,
|
158
158
|
o,
|
159
|
-
|
159
|
+
w,
|
160
160
|
a,
|
161
161
|
r,
|
162
162
|
m,
|
163
163
|
h,
|
164
164
|
s,
|
165
165
|
n,
|
166
|
-
|
167
|
-
|
168
|
-
|
166
|
+
y,
|
167
|
+
R,
|
168
|
+
U
|
169
169
|
];
|
170
170
|
}
|
171
|
-
class lt extends
|
171
|
+
class lt extends Z {
|
172
172
|
constructor(t) {
|
173
|
-
super(),
|
173
|
+
super(), E(
|
174
174
|
this,
|
175
175
|
t,
|
176
176
|
st,
|
177
177
|
nt,
|
178
|
-
|
178
|
+
H,
|
179
179
|
{
|
180
180
|
mbsource: 8,
|
181
181
|
clientstyling: 9,
|
@@ -238,7 +238,7 @@ class lt extends E {
|
|
238
238
|
this.$$set({ height: t }), g();
|
239
239
|
}
|
240
240
|
}
|
241
|
-
|
241
|
+
tt(lt, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, isvideo: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
242
242
|
export {
|
243
243
|
lt as default
|
244
244
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
function z(e, { delay: t = 0, duration: i = 400, easing: n =
|
1
|
+
import { P as W, S as Z, d as E, s as H, f as g, e as J, j as q, Q as L, R as v, T as O, U as P, l as N, x as Q, v as T, V, W as M, h as k, X, Y, Z as A, t as u, m as C, _ as D, o as F, q as x, J as p, r as G, C as S, M as I, N as K, O as $, b as tt } from "./CashierError-Ct47Rqvt.js";
|
2
|
+
function z(e, { delay: t = 0, duration: i = 400, easing: n = W } = {}) {
|
3
3
|
const s = +getComputedStyle(e).opacity;
|
4
4
|
return {
|
5
5
|
delay: t,
|
@@ -9,16 +9,16 @@ function z(e, { delay: t = 0, duration: i = 400, easing: n = A } = {}) {
|
|
9
9
|
};
|
10
10
|
}
|
11
11
|
function et(e) {
|
12
|
-
|
12
|
+
J(e, "svelte-2w7akv", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@container (max-width: 475px){#Modal{display:grid;place-items:center start;grid-template-rows:minmax(10vh, 1fr) auto minmax(5vh, 1fr)}.ModalContainer{grid-row:2;max-width:90%;max-height:80vh;overflow-y:auto;margin:auto}}");
|
13
13
|
}
|
14
14
|
const it = (e) => ({}), j = (e) => ({});
|
15
15
|
function B(e) {
|
16
|
-
let t, i, n, s, r, m, h,
|
17
|
-
const
|
16
|
+
let t, i, n, s, r, m, h, b, c, d, f, _;
|
17
|
+
const w = (
|
18
18
|
/*#slots*/
|
19
19
|
e[12].content
|
20
|
-
), o =
|
21
|
-
|
20
|
+
), o = V(
|
21
|
+
w,
|
22
22
|
e,
|
23
23
|
/*$$scope*/
|
24
24
|
e[11],
|
@@ -26,50 +26,50 @@ function B(e) {
|
|
26
26
|
);
|
27
27
|
return {
|
28
28
|
c() {
|
29
|
-
t = x("div"), i = x("div"), n = x("div"), s =
|
29
|
+
t = x("div"), i = x("div"), n = x("div"), s = p("svg"), r = p("path"), m = G(), o && o.c(), u(r, "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"), u(r, "fill", "#111111"), u(s, "xmlns", "http://www.w3.org/2000/svg"), u(s, "width", "13"), u(s, "height", "13"), u(s, "viewBox", "0 0 13 13"), u(s, "fill", "none"), u(s, "class", "CloseButton"), u(n, "class", "ModalContainer"), u(n, "style", h = /*isvideo*/
|
30
30
|
e[3] === "true" ? "height: 70%" : "height: auto"), u(i, "id", "Modal"), k(() => (
|
31
31
|
/*div1_elementresize_handler*/
|
32
32
|
e[14].call(i)
|
33
33
|
));
|
34
34
|
},
|
35
|
-
m(a,
|
36
|
-
|
35
|
+
m(a, y) {
|
36
|
+
N(a, t, y), C(t, i), C(i, n), C(n, s), C(s, r), C(n, m), o && o.m(n, null), e[13](i), b = D(
|
37
37
|
i,
|
38
38
|
/*div1_elementresize_handler*/
|
39
39
|
e[14].bind(i)
|
40
|
-
), e[15](t), d = !0, f || (_ =
|
40
|
+
), e[15](t), d = !0, f || (_ = F(
|
41
41
|
s,
|
42
42
|
"click",
|
43
43
|
/*closeModal*/
|
44
44
|
e[7]
|
45
45
|
), f = !0);
|
46
46
|
},
|
47
|
-
p(a,
|
48
|
-
e = a, o && o.p && (!d ||
|
49
|
-
2048) &&
|
47
|
+
p(a, y) {
|
48
|
+
e = a, o && o.p && (!d || y & /*$$scope*/
|
49
|
+
2048) && X(
|
50
50
|
o,
|
51
|
-
|
51
|
+
w,
|
52
52
|
e,
|
53
53
|
/*$$scope*/
|
54
54
|
e[11],
|
55
|
-
d ?
|
56
|
-
|
55
|
+
d ? A(
|
56
|
+
w,
|
57
57
|
/*$$scope*/
|
58
58
|
e[11],
|
59
|
-
|
59
|
+
y,
|
60
60
|
it
|
61
|
-
) :
|
61
|
+
) : Y(
|
62
62
|
/*$$scope*/
|
63
63
|
e[11]
|
64
64
|
),
|
65
65
|
j
|
66
|
-
), (!d ||
|
66
|
+
), (!d || y & /*isvideo*/
|
67
67
|
8 && h !== (h = /*isvideo*/
|
68
68
|
e[3] === "true" ? "height: 70%" : "height: auto")) && u(n, "style", h);
|
69
69
|
},
|
70
70
|
i(a) {
|
71
71
|
d || (v(o, a), a && k(() => {
|
72
|
-
d && (c || (c =
|
72
|
+
d && (c || (c = M(
|
73
73
|
i,
|
74
74
|
z,
|
75
75
|
/*duration*/
|
@@ -79,7 +79,7 @@ function B(e) {
|
|
79
79
|
}), d = !0);
|
80
80
|
},
|
81
81
|
o(a) {
|
82
|
-
L(o, a), a && (c || (c =
|
82
|
+
L(o, a), a && (c || (c = M(
|
83
83
|
i,
|
84
84
|
z,
|
85
85
|
/*duration*/
|
@@ -88,7 +88,7 @@ function B(e) {
|
|
88
88
|
)), c.run(0)), d = !1;
|
89
89
|
},
|
90
90
|
d(a) {
|
91
|
-
a &&
|
91
|
+
a && q(t), o && o.d(a), e[13](null), b(), a && c && c.end(), e[15](null), f = !1, _();
|
92
92
|
}
|
93
93
|
};
|
94
94
|
}
|
@@ -102,14 +102,14 @@ function nt(e) {
|
|
102
102
|
n && n.c(), t = Q();
|
103
103
|
},
|
104
104
|
m(s, r) {
|
105
|
-
n && n.m(s, r),
|
105
|
+
n && n.m(s, r), N(s, t, r), i = !0;
|
106
106
|
},
|
107
107
|
p(s, [r]) {
|
108
108
|
/*show*/
|
109
109
|
s[2] === "true" ? n ? (n.p(s, r), r & /*show*/
|
110
|
-
4 && v(n, 1)) : (n = B(s), n.c(), v(n, 1), n.m(t.parentNode, t)) : n && (
|
110
|
+
4 && v(n, 1)) : (n = B(s), n.c(), v(n, 1), n.m(t.parentNode, t)) : n && (O(), L(n, 1, 1, () => {
|
111
111
|
n = null;
|
112
|
-
}),
|
112
|
+
}), P());
|
113
113
|
},
|
114
114
|
i(s) {
|
115
115
|
i || (v(n), i = !0);
|
@@ -118,64 +118,64 @@ function nt(e) {
|
|
118
118
|
L(n), i = !1;
|
119
119
|
},
|
120
120
|
d(s) {
|
121
|
-
s &&
|
121
|
+
s && q(t), n && n.d(s);
|
122
122
|
}
|
123
123
|
};
|
124
124
|
}
|
125
125
|
function st(e, t, i) {
|
126
|
-
let { $$slots: n = {}, $$scope: s } = t, { mbsource: r } = t, { clientstyling: m } = t, { clientstylingurl: h } = t, { show:
|
126
|
+
let { $$slots: n = {}, $$scope: s } = t, { mbsource: r } = t, { clientstyling: m } = t, { clientstylingurl: h } = t, { show: b } = t, { isvideo: c = "" } = t, { duration: d = 200 } = t, { width: f } = t, { height: _ } = t, w, o;
|
127
127
|
const a = () => {
|
128
128
|
window.postMessage({ type: "CloseModal" }, window.location.href);
|
129
129
|
};
|
130
130
|
T(() => () => {
|
131
131
|
});
|
132
|
-
function
|
133
|
-
|
134
|
-
|
132
|
+
function y(l) {
|
133
|
+
S[l ? "unshift" : "push"](() => {
|
134
|
+
w = l, i(6, w);
|
135
135
|
});
|
136
136
|
}
|
137
|
-
function
|
137
|
+
function R() {
|
138
138
|
f = this.clientWidth, _ = this.clientHeight, i(0, f), i(1, _);
|
139
139
|
}
|
140
|
-
function
|
141
|
-
|
140
|
+
function U(l) {
|
141
|
+
S[l ? "unshift" : "push"](() => {
|
142
142
|
o = l, i(5, o);
|
143
143
|
});
|
144
144
|
}
|
145
145
|
return e.$$set = (l) => {
|
146
|
-
"mbsource" in l && i(8, r = l.mbsource), "clientstyling" in l && i(9, m = l.clientstyling), "clientstylingurl" in l && i(10, h = l.clientstylingurl), "show" in l && i(2,
|
146
|
+
"mbsource" in l && i(8, r = l.mbsource), "clientstyling" in l && i(9, m = l.clientstyling), "clientstylingurl" in l && i(10, h = l.clientstylingurl), "show" in l && i(2, b = l.show), "isvideo" in l && i(3, c = l.isvideo), "duration" in l && i(4, d = l.duration), "width" in l && i(0, f = l.width), "height" in l && i(1, _ = l.height), "$$scope" in l && i(11, s = l.$$scope);
|
147
147
|
}, e.$$.update = () => {
|
148
148
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
149
|
-
544 && m && o &&
|
150
|
-
1056 && h && o &&
|
151
|
-
288 && r && o &&
|
149
|
+
544 && m && o && I(o, m), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
150
|
+
1056 && h && o && K(o, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
151
|
+
288 && r && o && $(o, `${r}.Style`);
|
152
152
|
}, [
|
153
153
|
f,
|
154
154
|
_,
|
155
|
-
|
155
|
+
b,
|
156
156
|
c,
|
157
157
|
d,
|
158
158
|
o,
|
159
|
-
|
159
|
+
w,
|
160
160
|
a,
|
161
161
|
r,
|
162
162
|
m,
|
163
163
|
h,
|
164
164
|
s,
|
165
165
|
n,
|
166
|
-
|
167
|
-
|
168
|
-
|
166
|
+
y,
|
167
|
+
R,
|
168
|
+
U
|
169
169
|
];
|
170
170
|
}
|
171
|
-
class lt extends
|
171
|
+
class lt extends Z {
|
172
172
|
constructor(t) {
|
173
|
-
super(),
|
173
|
+
super(), E(
|
174
174
|
this,
|
175
175
|
t,
|
176
176
|
st,
|
177
177
|
nt,
|
178
|
-
|
178
|
+
H,
|
179
179
|
{
|
180
180
|
mbsource: 8,
|
181
181
|
clientstyling: 9,
|
@@ -238,7 +238,7 @@ class lt extends E {
|
|
238
238
|
this.$$set({ height: t }), g();
|
239
239
|
}
|
240
240
|
}
|
241
|
-
|
241
|
+
tt(lt, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, isvideo: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
242
242
|
export {
|
243
243
|
lt as default
|
244
244
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { S as C,
|
1
|
+
import { S as C, b as v, s as _, f as d, e as N, n as b, j as k, y as p, l as z, m as f, o as S, q as h, z as x, r as E, t as L, C as M, d as T } from "./CashierError-BrL5CAOl.js";
|
2
2
|
function q(n) {
|
3
3
|
N(n, "svelte-ags340", ".CashierNotifications{position:absolute;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}");
|
4
4
|
}
|
@@ -6,16 +6,16 @@ function H(n) {
|
|
6
6
|
let t, s, r, u, l, a, i, m;
|
7
7
|
return {
|
8
8
|
c() {
|
9
|
-
t = h("div"), s = h("span"), r =
|
9
|
+
t = h("div"), s = h("span"), r = x(
|
10
10
|
/*text*/
|
11
11
|
n[0]
|
12
|
-
), u =
|
12
|
+
), u = E(), l = h("button"), a = x(
|
13
13
|
/*button*/
|
14
14
|
n[1]
|
15
|
-
),
|
15
|
+
), L(t, "class", "CashierNotifications");
|
16
16
|
},
|
17
17
|
m(o, c) {
|
18
|
-
|
18
|
+
z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = S(
|
19
19
|
l,
|
20
20
|
"click",
|
21
21
|
/*notificationClick*/
|
@@ -35,10 +35,10 @@ function H(n) {
|
|
35
35
|
o[1]
|
36
36
|
);
|
37
37
|
},
|
38
|
-
i:
|
39
|
-
o:
|
38
|
+
i: b,
|
39
|
+
o: b,
|
40
40
|
d(o) {
|
41
|
-
o &&
|
41
|
+
o && k(t), n[6](null), i = !1, m();
|
42
42
|
}
|
43
43
|
};
|
44
44
|
}
|
@@ -61,7 +61,7 @@ function R(n, t, s) {
|
|
61
61
|
});
|
62
62
|
};
|
63
63
|
function w(e) {
|
64
|
-
|
64
|
+
M[e ? "unshift" : "push"](() => {
|
65
65
|
i = e, s(2, i);
|
66
66
|
});
|
67
67
|
}
|
@@ -88,7 +88,7 @@ class U extends C {
|
|
88
88
|
t,
|
89
89
|
R,
|
90
90
|
H,
|
91
|
-
|
91
|
+
_,
|
92
92
|
{
|
93
93
|
text: 0,
|
94
94
|
button: 1,
|
@@ -123,7 +123,7 @@ class U extends C {
|
|
123
123
|
this.$$set({ clientstylingurl: t }), d();
|
124
124
|
}
|
125
125
|
}
|
126
|
-
|
126
|
+
T(U, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
127
127
|
export {
|
128
128
|
U as default
|
129
129
|
};
|
@@ -1,21 +1,21 @@
|
|
1
|
-
import { S as C,
|
1
|
+
import { S as C, d as v, f as d, s as _, b as N, e as k, n as b, j as z, y as p, l as S, m as f, o as E, q as h, z as x, r as L, t as M, C as T } from "./CashierError-Ct47Rqvt.js";
|
2
2
|
function q(n) {
|
3
|
-
|
3
|
+
k(n, "svelte-ags340", ".CashierNotifications{position:absolute;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}");
|
4
4
|
}
|
5
5
|
function H(n) {
|
6
6
|
let t, s, r, u, l, a, i, m;
|
7
7
|
return {
|
8
8
|
c() {
|
9
|
-
t = h("div"), s = h("span"), r =
|
9
|
+
t = h("div"), s = h("span"), r = x(
|
10
10
|
/*text*/
|
11
11
|
n[0]
|
12
|
-
), u =
|
12
|
+
), u = L(), l = h("button"), a = x(
|
13
13
|
/*button*/
|
14
14
|
n[1]
|
15
|
-
),
|
15
|
+
), M(t, "class", "CashierNotifications");
|
16
16
|
},
|
17
17
|
m(o, c) {
|
18
|
-
S(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m =
|
18
|
+
S(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = E(
|
19
19
|
l,
|
20
20
|
"click",
|
21
21
|
/*notificationClick*/
|
@@ -35,10 +35,10 @@ function H(n) {
|
|
35
35
|
o[1]
|
36
36
|
);
|
37
37
|
},
|
38
|
-
i:
|
39
|
-
o:
|
38
|
+
i: b,
|
39
|
+
o: b,
|
40
40
|
d(o) {
|
41
|
-
o &&
|
41
|
+
o && z(t), n[6](null), i = !1, m();
|
42
42
|
}
|
43
43
|
};
|
44
44
|
}
|
@@ -88,7 +88,7 @@ class U extends C {
|
|
88
88
|
t,
|
89
89
|
R,
|
90
90
|
H,
|
91
|
-
|
91
|
+
_,
|
92
92
|
{
|
93
93
|
text: 0,
|
94
94
|
button: 1,
|
@@ -123,7 +123,7 @@ class U extends C {
|
|
123
123
|
this.$$set({ clientstylingurl: t }), d();
|
124
124
|
}
|
125
125
|
}
|
126
|
-
|
126
|
+
N(U, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
127
127
|
export {
|
128
128
|
U as default
|
129
129
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierError-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierError-DqG41odi.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;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 b(i){let e,s,c,f,o,r,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),r=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(a,u){t.insert(a,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,r),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(a,[u]){u&1&&t.set_data(c,a[0]),u&2&&t.set_data(r,a[1])},i:t.noop,o:t.noop,d(a){a&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:r=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},a=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(r),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,r=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&a(),i.$$.dirty&36&&r&&l&&u()},[c,f,l,d,o,r,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
|