@everymatrix/cashier-page 1.73.0 → 1.73.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/{CashierConfirmModal-BCk4hvRj.js → CashierConfirmModal-Bl65cs4j.js} +505 -470
- package/components/CashierConfirmModal-Dbth1Vwp.cjs +4 -0
- package/components/{CashierConfirmModal-DXlKhIue.js → CashierConfirmModal-DiJy6WCC.js} +359 -324
- package/components/CashierError-CUi7dlhw.cjs +5 -0
- package/components/CashierError-DT8XXsZb.js +3798 -0
- package/components/CashierError-sabBjpnx.js +3798 -0
- package/components/{CashierHeader-DtS_U-De.js → CashierHeader-B_TbzRzY.js} +181 -184
- package/components/CashierHeader-C87PEbuI.cjs +1 -0
- package/components/{CashierHeader-86wrgmgP.js → CashierHeader-CRNLSN-X.js} +182 -185
- package/components/{CashierIframeRedirect-Xzpx4Rjk.js → CashierIframeRedirect-DcI_fdtE.js} +79 -109
- package/components/CashierIframeRedirect-q6Z4Yxd2.cjs +1 -0
- package/components/{CashierIframeRedirect-CmqcfGcT.js → CashierIframeRedirect-zBfOGfH0.js} +79 -109
- package/components/{CashierMethodDetails-oVkmdGDk.js → CashierMethodDetails-BSFTmQGh.js} +985 -999
- package/components/{CashierMethodDetails-Cf6KUGlj.cjs → CashierMethodDetails-Bn2T2uqA.cjs} +6 -6
- package/components/{CashierMethodDetails-DaUlJ18Q.js → CashierMethodDetails-Dw38VRXT.js} +977 -991
- package/components/{CashierMethodsList-bnXzA9E8.js → CashierMethodsList-BoxBSxdg.js} +372 -392
- package/components/CashierMethodsList-BraJmcfY.cjs +1 -0
- package/components/{CashierMethodsList-BKtn4kYZ.js → CashierMethodsList-DpB8OQgM.js} +354 -374
- package/components/CashierModal-BUzTqeZq.cjs +1 -0
- package/components/{CashierModal-B4b12-Am.js → CashierModal-C9DRbWKa.js} +24 -25
- package/components/{CashierModal-DCgiaC4V.js → CashierModal-l0r5lSbV.js} +28 -29
- package/components/{CashierNotifications-CWqwdi55.js → CashierNotifications-BRaPHw0O.js} +3 -3
- package/components/{CashierNotifications-BLJS7gpv.cjs → CashierNotifications-BrGm-gyx.cjs} +1 -1
- package/components/{CashierNotifications-BZCaBrRm.js → CashierNotifications-C60PYJS0.js} +9 -9
- package/components/{CashierPage-K6Sfcy3_.cjs → CashierPage-9Ld9PtFx.cjs} +1 -1
- package/components/{CashierPage-qGww6KeO.js → CashierPage-DPeHCblC.js} +617 -533
- package/components/{CashierPage-BhUYgsyn.js → CashierPage-Kr04tUC9.js} +612 -528
- package/components/{CashierReceiptPage-Hvc3tNuq.js → CashierReceiptPage-BJsytdmQ.js} +47 -47
- package/components/{CashierReceiptPage-BePAYhQV.js → CashierReceiptPage-D8xJxpP4.js} +47 -47
- package/components/CashierReceiptPage-Y3xANFuN.cjs +1 -0
- package/components/CashierSessionExpirationModal-B5KZiMN1.cjs +2 -0
- package/components/{CashierSessionExpirationModal-DfMX7unr.js → CashierSessionExpirationModal-CLmExJ5_.js} +13 -14
- package/components/{CashierSessionExpirationModal-C24hf-_h.js → CashierSessionExpirationModal-COQu8IVr.js} +13 -14
- package/components/{CashierSpinner-BdeNFm1c.js → CashierSpinner-CC_b-bLQ.js} +10 -11
- package/components/{CashierSpinner-COjPdCUV.js → CashierSpinner-DGvxbV84.js} +6 -7
- package/components/CashierSpinner-Dek1XIlD.cjs +1 -0
- package/components/{CashierTransactionHistory-BtkomNSc.js → CashierTransactionHistory-BtCGDpsh.js} +83 -84
- package/components/{CashierTransactionHistory-BgDq7hN9.js → CashierTransactionHistory-_dzkXj9B.js} +69 -70
- package/components/CashierTransactionHistory-yWcSzIDX.cjs +1 -0
- package/components/{CashierVerifications-7QimQj7T.js → CashierVerifications-CFZOQaUC.js} +31 -32
- package/components/CashierVerifications-Deeuh5dM.cjs +1 -0
- package/components/{CashierVerifications-tYl7M23B.js → CashierVerifications-df_pAaWn.js} +31 -32
- package/components/CashierVideoModal-BVDx9GT8.cjs +1 -0
- package/components/{CashierVideoModal-D4tXmX3D.js → CashierVideoModal-C4pk_kaX.js} +28 -29
- package/components/{CashierVideoModal-CM_ySf75.js → CashierVideoModal-DfOU6IDE.js} +35 -36
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierConfirmModal-DMmJumcl.cjs +0 -4
- package/components/CashierError-BydkW7s_.js +0 -3800
- package/components/CashierError-Dpt_Z7yL.cjs +0 -5
- package/components/CashierError-Dz_HsnJl.js +0 -3800
- package/components/CashierHeader-BXKYku0i.cjs +0 -1
- package/components/CashierIframeRedirect-BARMuRTc.cjs +0 -1
- package/components/CashierMethodsList-BmNbGD7c.cjs +0 -1
- package/components/CashierModal-C-yyjQ8m.cjs +0 -1
- package/components/CashierReceiptPage-B5GxOKJ9.cjs +0 -1
- package/components/CashierSessionExpirationModal-BCKPn-ln.cjs +0 -2
- package/components/CashierSpinner-CpkB8Zoj.cjs +0 -1
- package/components/CashierTransactionHistory-siYwxijY.cjs +0 -1
- package/components/CashierVerifications-CjEiYZ7G.cjs +0 -1
- package/components/CashierVideoModal-CZSRGjh-.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./CashierConfirmModal-Dbth1Vwp.cjs");function m(n,{delay:e=0,duration:i=400,easing:o=t.identity}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:i,easing:o,css:l=>`opacity: ${l*s}`}}function v(n){t.append_styles(n,"svelte-xb5pyq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}")}const x=n=>({}),y=n=>({});function b(n){let e,i,o,s,l,c;const h=n[10].content,d=t.create_slot(h,n,n[9],y);return{c(){e=t.element("div"),i=t.element("div"),o=t.element("div"),d&&d.c(),t.attr(o,"class","ModalContainer"),t.attr(o,"part","ModalContainer"),t.attr(i,"class","ModalWindow"),t.attr(i,"part","ModalWindow"),t.attr(i,"id","Modal"),t.add_render_callback(()=>n[12].call(i)),t.attr(e,"part","CustomStylingContainer")},m(a,u){t.insert(a,e,u),t.append(e,i),t.append(i,o),d&&d.m(o,null),n[11](i),s=t.add_iframe_resize_listener(i,n[12].bind(i)),n[13](e),c=!0},p(a,u){n=a,d&&d.p&&(!c||u&512)&&t.update_slot_base(d,h,n,n[9],c?t.get_slot_changes(h,n[9],u,x):t.get_all_dirty_from_scope(n[9]),y)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(l||(l=t.create_bidirectional_transition(i,m,n[2],!0)),l.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(l||(l=t.create_bidirectional_transition(i,m,n[2],!1)),l.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),n[11](null),s(),a&&l&&l.end(),n[13](null)}}}function z(n){let e,i,o=n[5]&&b(n);return{c(){o&&o.c(),e=t.empty()},m(s,l){o&&o.m(s,l),t.insert(s,e,l),i=!0},p(s,[l]){s[5]?o?(o.p(s,l),l&32&&t.transition_in(o,1)):(o=b(s),o.c(),t.transition_in(o,1),o.m(e.parentNode,e)):o&&(t.group_outros(),t.transition_out(o,1,1,()=>{o=null}),t.check_outros())},i(s){i||(t.transition_in(o),i=!0)},o(s){t.transition_out(o),i=!1},d(s){s&&t.detach(e),o&&o.d(s)}}}function W(n,e,i){let{$$slots:o={},$$scope:s}=e,{mbsource:l}=e,{clientstyling:c}=e,{clientstylingurl:h}=e,{duration:d=200}=e,{width:a}=e,{height:u}=e,g,f,_=!1;const M=()=>{i(5,_=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},w=r=>{r.data.type=="ShowCashierModal"&&(i(5,_=!0),window.postMessage({type:"DisableScroll"},window.location.href)),r.data.type=="HideCashierModal"&&M()};t.onMount(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)}));function C(r){t.binding_callbacks[r?"unshift":"push"](()=>{g=r,i(4,g)})}function S(){a=this.clientWidth,u=this.clientHeight,i(0,a),i(1,u)}function k(r){t.binding_callbacks[r?"unshift":"push"](()=>{f=r,i(3,f)})}return n.$$set=r=>{"mbsource"in r&&i(6,l=r.mbsource),"clientstyling"in r&&i(7,c=r.clientstyling),"clientstylingurl"in r&&i(8,h=r.clientstylingurl),"duration"in r&&i(2,d=r.duration),"width"in r&&i(0,a=r.width),"height"in r&&i(1,u=r.height),"$$scope"in r&&i(9,s=r.$$scope)},n.$$.update=()=>{n.$$.dirty&136&&c&&f&&t.setClientStyling(f,c),n.$$.dirty&264&&h&&f&&t.setClientStylingURL(f,h),n.$$.dirty&72&&l&&f&&t.setStreamStyling(f,`${l}.Style`)},[a,u,d,f,g,_,l,c,h,s,o,C,S,k]}class p extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,z,t.safe_not_equal,{mbsource:6,clientstyling:7,clientstylingurl:8,duration:2,width:0,height:1},v)}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get duration(){return this.$$.ctx[2]}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:{},duration:{},width:{},height:{}},["content"],[],!0);const j=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=j;exports.fade=m;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as X, a as Y, b as Z } from "./CashierIframeRedirect-CmqcfGcT.js";
|
|
1
|
+
import { U as O, S as U, b as D, s as F, f as g, c as G, e as W, t as b, g as m, k as I, l as J, m as j, y as N, x as P, d as R, V as M, J as C, u as T, h as V, j as A, o as S, W as K, p as y, v as h, B as v, F as Q, G as X, H as Y, I as Z } from "./CashierConfirmModal-Bl65cs4j.js";
|
|
3
2
|
function k(i, { delay: t = 0, duration: e = 400, easing: n = O } = {}) {
|
|
4
3
|
const r = +getComputedStyle(i).opacity;
|
|
5
4
|
return {
|
|
@@ -10,7 +9,7 @@ function k(i, { delay: t = 0, duration: e = 400, easing: n = O } = {}) {
|
|
|
10
9
|
};
|
|
11
10
|
}
|
|
12
11
|
function $(i) {
|
|
13
|
-
|
|
12
|
+
G(i, "svelte-xb5pyq", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:400px}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}");
|
|
14
13
|
}
|
|
15
14
|
const tt = (i) => ({}), x = (i) => ({});
|
|
16
15
|
function z(i) {
|
|
@@ -18,7 +17,7 @@ function z(i) {
|
|
|
18
17
|
const f = (
|
|
19
18
|
/*#slots*/
|
|
20
19
|
i[10].content
|
|
21
|
-
), a =
|
|
20
|
+
), a = R(
|
|
22
21
|
f,
|
|
23
22
|
i,
|
|
24
23
|
/*$$scope*/
|
|
@@ -33,7 +32,7 @@ function z(i) {
|
|
|
33
32
|
)), h(t, "part", "CustomStylingContainer");
|
|
34
33
|
},
|
|
35
34
|
m(l, c) {
|
|
36
|
-
|
|
35
|
+
j(l, t, c), S(t, e), S(e, n), a && a.m(n, null), i[11](e), r = K(
|
|
37
36
|
e,
|
|
38
37
|
/*div1_elementresize_handler*/
|
|
39
38
|
i[12].bind(e)
|
|
@@ -41,19 +40,19 @@ function z(i) {
|
|
|
41
40
|
},
|
|
42
41
|
p(l, c) {
|
|
43
42
|
i = l, a && a.p && (!d || c & /*$$scope*/
|
|
44
|
-
512) &&
|
|
43
|
+
512) && T(
|
|
45
44
|
a,
|
|
46
45
|
f,
|
|
47
46
|
i,
|
|
48
47
|
/*$$scope*/
|
|
49
48
|
i[9],
|
|
50
|
-
d ?
|
|
49
|
+
d ? A(
|
|
51
50
|
f,
|
|
52
51
|
/*$$scope*/
|
|
53
52
|
i[9],
|
|
54
53
|
c,
|
|
55
54
|
tt
|
|
56
|
-
) :
|
|
55
|
+
) : V(
|
|
57
56
|
/*$$scope*/
|
|
58
57
|
i[9]
|
|
59
58
|
),
|
|
@@ -81,7 +80,7 @@ function z(i) {
|
|
|
81
80
|
)), o.run(0)), d = !1;
|
|
82
81
|
},
|
|
83
82
|
d(l) {
|
|
84
|
-
l &&
|
|
83
|
+
l && W(t), a && a.d(l), i[11](null), r(), l && o && o.end(), i[13](null);
|
|
85
84
|
}
|
|
86
85
|
};
|
|
87
86
|
}
|
|
@@ -95,14 +94,14 @@ function et(i) {
|
|
|
95
94
|
n && n.c(), t = N();
|
|
96
95
|
},
|
|
97
96
|
m(r, o) {
|
|
98
|
-
n && n.m(r, o),
|
|
97
|
+
n && n.m(r, o), j(r, t, o), e = !0;
|
|
99
98
|
},
|
|
100
99
|
p(r, [o]) {
|
|
101
100
|
/*show*/
|
|
102
101
|
r[5] ? n ? (n.p(r, o), o & /*show*/
|
|
103
|
-
32 && m(n, 1)) : (n = z(r), n.c(), m(n, 1), n.m(t.parentNode, t)) : n && (
|
|
102
|
+
32 && m(n, 1)) : (n = z(r), n.c(), m(n, 1), n.m(t.parentNode, t)) : n && (I(), b(n, 1, 1, () => {
|
|
104
103
|
n = null;
|
|
105
|
-
}),
|
|
104
|
+
}), J());
|
|
106
105
|
},
|
|
107
106
|
i(r) {
|
|
108
107
|
e || (m(n), e = !0);
|
|
@@ -111,16 +110,16 @@ function et(i) {
|
|
|
111
110
|
b(n), e = !1;
|
|
112
111
|
},
|
|
113
112
|
d(r) {
|
|
114
|
-
r &&
|
|
113
|
+
r && W(t), n && n.d(r);
|
|
115
114
|
}
|
|
116
115
|
};
|
|
117
116
|
}
|
|
118
117
|
function it(i, t, e) {
|
|
119
118
|
let { $$slots: n = {}, $$scope: r } = t, { mbsource: o } = t, { clientstyling: d } = t, { clientstylingurl: f } = t, { duration: a = 200 } = t, { width: l } = t, { height: c } = t, _, u, w = !1;
|
|
120
|
-
const
|
|
119
|
+
const E = () => {
|
|
121
120
|
e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
122
121
|
}, p = (s) => {
|
|
123
|
-
s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" &&
|
|
122
|
+
s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && E();
|
|
124
123
|
};
|
|
125
124
|
P(() => (window.addEventListener("message", p, !1), () => {
|
|
126
125
|
window.removeEventListener("message", p);
|
|
@@ -142,9 +141,9 @@ function it(i, t, e) {
|
|
|
142
141
|
"mbsource" in s && e(6, o = s.mbsource), "clientstyling" in s && e(7, d = s.clientstyling), "clientstylingurl" in s && e(8, f = s.clientstylingurl), "duration" in s && e(2, a = s.duration), "width" in s && e(0, l = s.width), "height" in s && e(1, c = s.height), "$$scope" in s && e(9, r = s.$$scope);
|
|
143
142
|
}, i.$$.update = () => {
|
|
144
143
|
i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
145
|
-
136 && d && u &&
|
|
146
|
-
264 && f && u &&
|
|
147
|
-
72 && o && u &&
|
|
144
|
+
136 && d && u && Q(u, d), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
145
|
+
264 && f && u && X(u, f), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
146
|
+
72 && o && u && Y(u, `${o}.Style`);
|
|
148
147
|
}, [
|
|
149
148
|
l,
|
|
150
149
|
c,
|
|
@@ -162,14 +161,14 @@ function it(i, t, e) {
|
|
|
162
161
|
q
|
|
163
162
|
];
|
|
164
163
|
}
|
|
165
|
-
class
|
|
164
|
+
class B extends U {
|
|
166
165
|
constructor(t) {
|
|
167
|
-
super(),
|
|
166
|
+
super(), D(
|
|
168
167
|
this,
|
|
169
168
|
t,
|
|
170
169
|
it,
|
|
171
170
|
et,
|
|
172
|
-
|
|
171
|
+
F,
|
|
173
172
|
{
|
|
174
173
|
mbsource: 6,
|
|
175
174
|
clientstyling: 7,
|
|
@@ -218,12 +217,12 @@ class W extends R {
|
|
|
218
217
|
this.$$set({ height: t }), g();
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
|
-
|
|
222
|
-
const
|
|
220
|
+
Z(B, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
221
|
+
const st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
223
222
|
__proto__: null,
|
|
224
|
-
default:
|
|
223
|
+
default: B
|
|
225
224
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
226
225
|
export {
|
|
227
|
-
|
|
226
|
+
st as C,
|
|
228
227
|
k as f
|
|
229
228
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
function k(i, { delay: t = 0, duration: e = 400, easing: n = D } = {}) {
|
|
1
|
+
import { U as O, S as U, b as A, s as D, f as g, c as F, e as W, t as b, g as m, E as G, k as I, l as j, x as J, w as N, d as P, V as M, J as C, u as R, h as T, j as V, m as S, W as K, o as y, q as h, A as v, F as Q, G as X, H as Y, I as Z } from "./CashierConfirmModal-DiJy6WCC.js";
|
|
2
|
+
function k(i, { delay: t = 0, duration: e = 400, easing: n = O } = {}) {
|
|
4
3
|
const r = +getComputedStyle(i).opacity;
|
|
5
4
|
return {
|
|
6
5
|
delay: t,
|
|
@@ -18,7 +17,7 @@ function z(i) {
|
|
|
18
17
|
const f = (
|
|
19
18
|
/*#slots*/
|
|
20
19
|
i[10].content
|
|
21
|
-
), a =
|
|
20
|
+
), a = P(
|
|
22
21
|
f,
|
|
23
22
|
i,
|
|
24
23
|
/*$$scope*/
|
|
@@ -33,7 +32,7 @@ function z(i) {
|
|
|
33
32
|
)), h(t, "part", "CustomStylingContainer");
|
|
34
33
|
},
|
|
35
34
|
m(l, c) {
|
|
36
|
-
|
|
35
|
+
j(l, t, c), S(t, e), S(e, n), a && a.m(n, null), i[11](e), r = K(
|
|
37
36
|
e,
|
|
38
37
|
/*div1_elementresize_handler*/
|
|
39
38
|
i[12].bind(e)
|
|
@@ -41,19 +40,19 @@ function z(i) {
|
|
|
41
40
|
},
|
|
42
41
|
p(l, c) {
|
|
43
42
|
i = l, a && a.p && (!d || c & /*$$scope*/
|
|
44
|
-
512) &&
|
|
43
|
+
512) && R(
|
|
45
44
|
a,
|
|
46
45
|
f,
|
|
47
46
|
i,
|
|
48
47
|
/*$$scope*/
|
|
49
48
|
i[9],
|
|
50
|
-
d ?
|
|
49
|
+
d ? V(
|
|
51
50
|
f,
|
|
52
51
|
/*$$scope*/
|
|
53
52
|
i[9],
|
|
54
53
|
c,
|
|
55
54
|
tt
|
|
56
|
-
) :
|
|
55
|
+
) : T(
|
|
57
56
|
/*$$scope*/
|
|
58
57
|
i[9]
|
|
59
58
|
),
|
|
@@ -81,7 +80,7 @@ function z(i) {
|
|
|
81
80
|
)), o.run(0)), d = !1;
|
|
82
81
|
},
|
|
83
82
|
d(l) {
|
|
84
|
-
l &&
|
|
83
|
+
l && W(t), a && a.d(l), i[11](null), r(), l && o && o.end(), i[13](null);
|
|
85
84
|
}
|
|
86
85
|
};
|
|
87
86
|
}
|
|
@@ -92,17 +91,17 @@ function et(i) {
|
|
|
92
91
|
);
|
|
93
92
|
return {
|
|
94
93
|
c() {
|
|
95
|
-
n && n.c(), t =
|
|
94
|
+
n && n.c(), t = J();
|
|
96
95
|
},
|
|
97
96
|
m(r, o) {
|
|
98
|
-
n && n.m(r, o),
|
|
97
|
+
n && n.m(r, o), j(r, t, o), e = !0;
|
|
99
98
|
},
|
|
100
99
|
p(r, [o]) {
|
|
101
100
|
/*show*/
|
|
102
101
|
r[5] ? n ? (n.p(r, o), o & /*show*/
|
|
103
102
|
32 && m(n, 1)) : (n = z(r), n.c(), m(n, 1), n.m(t.parentNode, t)) : n && (G(), b(n, 1, 1, () => {
|
|
104
103
|
n = null;
|
|
105
|
-
}),
|
|
104
|
+
}), I());
|
|
106
105
|
},
|
|
107
106
|
i(r) {
|
|
108
107
|
e || (m(n), e = !0);
|
|
@@ -111,26 +110,26 @@ function et(i) {
|
|
|
111
110
|
b(n), e = !1;
|
|
112
111
|
},
|
|
113
112
|
d(r) {
|
|
114
|
-
r &&
|
|
113
|
+
r && W(t), n && n.d(r);
|
|
115
114
|
}
|
|
116
115
|
};
|
|
117
116
|
}
|
|
118
117
|
function it(i, t, e) {
|
|
119
118
|
let { $$slots: n = {}, $$scope: r } = t, { mbsource: o } = t, { clientstyling: d } = t, { clientstylingurl: f } = t, { duration: a = 200 } = t, { width: l } = t, { height: c } = t, _, u, w = !1;
|
|
120
|
-
const
|
|
119
|
+
const H = () => {
|
|
121
120
|
e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
122
121
|
}, p = (s) => {
|
|
123
|
-
s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" &&
|
|
122
|
+
s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && H();
|
|
124
123
|
};
|
|
125
|
-
|
|
124
|
+
N(() => (window.addEventListener("message", p, !1), () => {
|
|
126
125
|
window.removeEventListener("message", p);
|
|
127
126
|
}));
|
|
128
|
-
function
|
|
127
|
+
function q(s) {
|
|
129
128
|
v[s ? "unshift" : "push"](() => {
|
|
130
129
|
_ = s, e(4, _);
|
|
131
130
|
});
|
|
132
131
|
}
|
|
133
|
-
function
|
|
132
|
+
function B() {
|
|
134
133
|
l = this.clientWidth, c = this.clientHeight, e(0, l), e(1, c);
|
|
135
134
|
}
|
|
136
135
|
function L(s) {
|
|
@@ -142,9 +141,9 @@ function it(i, t, e) {
|
|
|
142
141
|
"mbsource" in s && e(6, o = s.mbsource), "clientstyling" in s && e(7, d = s.clientstyling), "clientstylingurl" in s && e(8, f = s.clientstylingurl), "duration" in s && e(2, a = s.duration), "width" in s && e(0, l = s.width), "height" in s && e(1, c = s.height), "$$scope" in s && e(9, r = s.$$scope);
|
|
143
142
|
}, i.$$.update = () => {
|
|
144
143
|
i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
145
|
-
136 && d && u &&
|
|
146
|
-
264 && f && u &&
|
|
147
|
-
72 && o && u &&
|
|
144
|
+
136 && d && u && Q(u, d), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
145
|
+
264 && f && u && X(u, f), i.$$.dirty & /*mbsource, customStylingContainer*/
|
|
146
|
+
72 && o && u && Y(u, `${o}.Style`);
|
|
148
147
|
}, [
|
|
149
148
|
l,
|
|
150
149
|
c,
|
|
@@ -157,19 +156,19 @@ function it(i, t, e) {
|
|
|
157
156
|
f,
|
|
158
157
|
r,
|
|
159
158
|
n,
|
|
159
|
+
q,
|
|
160
160
|
B,
|
|
161
|
-
H,
|
|
162
161
|
L
|
|
163
162
|
];
|
|
164
163
|
}
|
|
165
|
-
class
|
|
164
|
+
class E extends U {
|
|
166
165
|
constructor(t) {
|
|
167
|
-
super(),
|
|
166
|
+
super(), A(
|
|
168
167
|
this,
|
|
169
168
|
t,
|
|
170
169
|
it,
|
|
171
170
|
et,
|
|
172
|
-
|
|
171
|
+
D,
|
|
173
172
|
{
|
|
174
173
|
mbsource: 6,
|
|
175
174
|
clientstyling: 7,
|
|
@@ -218,12 +217,12 @@ class W extends O {
|
|
|
218
217
|
this.$$set({ height: t }), g();
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
|
-
|
|
222
|
-
const
|
|
220
|
+
Z(E, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
|
|
221
|
+
const st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
223
222
|
__proto__: null,
|
|
224
|
-
default:
|
|
223
|
+
default: E
|
|
225
224
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
226
225
|
export {
|
|
227
|
-
|
|
226
|
+
st as C,
|
|
228
227
|
k as f
|
|
229
228
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, y as p,
|
|
1
|
+
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, y as p, l as z, m as f, B as S, o as h, z as x, p as E, q as L, A as M, I as T } from "./CashierConfirmModal-DiJy6WCC.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
|
}
|
|
@@ -9,13 +9,13 @@ function B(n) {
|
|
|
9
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
|
-
z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m =
|
|
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*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-Dbth1Vwp.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,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&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:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),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,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init(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;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k,
|
|
1
|
+
import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, z as p, m as z, o as f, C as S, p as h, A as x, q as E, v as L, B as M, I as T } from "./CashierConfirmModal-Bl65cs4j.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
|
}
|
|
5
|
-
function
|
|
5
|
+
function B(n) {
|
|
6
6
|
let t, s, r, u, l, a, i, m;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
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
|
-
z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m =
|
|
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*/
|
|
@@ -42,7 +42,7 @@ function H(n) {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function H(n, t, s) {
|
|
46
46
|
let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
|
|
47
47
|
const m = () => {
|
|
48
48
|
window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
|
|
@@ -81,13 +81,13 @@ function R(n, t, s) {
|
|
|
81
81
|
w
|
|
82
82
|
];
|
|
83
83
|
}
|
|
84
|
-
class
|
|
84
|
+
class R extends C {
|
|
85
85
|
constructor(t) {
|
|
86
86
|
super(), v(
|
|
87
87
|
this,
|
|
88
88
|
t,
|
|
89
|
-
R,
|
|
90
89
|
H,
|
|
90
|
+
B,
|
|
91
91
|
_,
|
|
92
92
|
{
|
|
93
93
|
text: 0,
|
|
@@ -123,7 +123,7 @@ class U extends C {
|
|
|
123
123
|
this.$$set({ clientstylingurl: t }), d();
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
T(
|
|
126
|
+
T(R, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
127
127
|
export {
|
|
128
|
-
|
|
128
|
+
R as default
|
|
129
129
|
};
|