@everymatrix/cashier-page 1.54.6 → 1.54.8
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-bl1anpXG.js → CashierConfirmModal-Bop0eOiK.js} +57 -57
- package/components/CashierConfirmModal-KmRU3Mgr.cjs +4 -0
- package/components/CashierConfirmModal-T9FhMxP2.js +1052 -0
- package/components/CashierError-CjhQG79n.js +3764 -0
- package/components/CashierError-Dx4LFH3W.cjs +5 -0
- package/components/{CashierError-CNghn61_.js → CashierError-guAFhbld.js} +497 -501
- package/components/{CashierHeader-Cukt_6q5.js → CashierHeader-CqGPO-Fk.js} +81 -81
- package/components/CashierHeader-D3hGyEcT.js +401 -0
- package/components/CashierHeader-Y_xPFrm_.cjs +1 -0
- package/components/CashierIframeRedirect-BoqcRUMr.js +378 -0
- package/components/CashierIframeRedirect-C2c1nHdX.cjs +1 -0
- package/components/{CashierIframeRedirect-CfOyb27d.js → CashierIframeRedirect-tBrZ72pm.js} +33 -33
- package/components/CashierMethodDetails-DDyg0dkw.cjs +18 -0
- package/components/{CashierMethodDetails-BIl7Is4q.js → CashierMethodDetails-Dsx6mHYI.js} +63 -63
- package/components/CashierMethodDetails-PDt60MQR.js +8164 -0
- package/components/CashierMethodsList-BOR1hHRu.js +667 -0
- package/components/CashierMethodsList-DTBsyc8x.cjs +1 -0
- package/components/{CashierMethodsList-sDyTLsi_.js → CashierMethodsList-xC6EsOBa.js} +76 -76
- package/components/CashierModal-CZ_PAOXO.js +232 -0
- package/components/{CashierModal-BvsZYr3E.js → CashierModal-DnFkgCZP.js} +31 -31
- package/components/CashierModal-FkJdngyj.cjs +1 -0
- package/components/{CashierNotifications-DLiOLPVS.js → CashierNotifications-BCI1m1DC.js} +18 -18
- package/components/CashierNotifications-BJzRxOV_.cjs +1 -0
- package/components/CashierNotifications-u0zBDLtX.js +129 -0
- package/components/CashierPage-B4oBQHo8.cjs +1 -0
- package/components/{CashierPage-DuY9O8Ns.js → CashierPage-BOqzOu5f.js} +75 -75
- package/components/CashierPage-_JwIM1m3.js +1998 -0
- package/components/CashierReceiptPage-DguMfgJk.cjs +1 -0
- package/components/CashierReceiptPage-Dp9crOnz.js +1156 -0
- package/components/{CashierReceiptPage-BnZNWRHD.js → CashierReceiptPage-YWmVmYmI.js} +76 -76
- package/components/CashierSessionExpirationModal-C4AvaTH-.cjs +2 -0
- package/components/{CashierSessionExpirationModal-m8mfQG7I.js → CashierSessionExpirationModal-D0BRhJB-.js} +234 -243
- package/components/CashierSessionExpirationModal-cVtdVVp6.js +1172 -0
- package/components/CashierSpinner-BjkjegeG.js +71 -0
- package/components/{CashierSpinner-BGK4UpXs.js → CashierSpinner-C4PbqmeQ.js} +25 -25
- package/components/CashierSpinner-CySOWnIQ.cjs +1 -0
- package/components/CashierVerifications-C-55D-Ds.cjs +1 -0
- package/components/{CashierVerifications-DmvaTrGy.js → CashierVerifications-CRhSDc6g.js} +26 -26
- package/components/CashierVerifications-Cr6kxmHD.js +628 -0
- package/components/CashierVideoModal-BWI2U3UH.cjs +1 -0
- package/components/CashierVideoModal-CEfQgtP6.js +202 -0
- package/components/{CashierVideoModal-B_7nq_8u.js → CashierVideoModal-CeguehvU.js} +33 -33
- package/es2015/cashier-page.cjs +1 -0
- package/es2015/cashier-page.js +16 -0
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
|
@@ -104,7 +104,7 @@ const ue = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis :
|
|
|
104
104
|
// @ts-ignore Node typings have this
|
|
105
105
|
global
|
|
106
106
|
);
|
|
107
|
-
function
|
|
107
|
+
function C(t, e) {
|
|
108
108
|
t.appendChild(e);
|
|
109
109
|
}
|
|
110
110
|
function At(t, e, n) {
|
|
@@ -128,7 +128,7 @@ function Nt(t) {
|
|
|
128
128
|
return e.textContent = "/* empty */", bt(ot(t), e), e.sheet;
|
|
129
129
|
}
|
|
130
130
|
function bt(t, e) {
|
|
131
|
-
return
|
|
131
|
+
return C(
|
|
132
132
|
/** @type {Document} */
|
|
133
133
|
t.head || t,
|
|
134
134
|
e
|
|
@@ -220,7 +220,7 @@ function ye(t, e) {
|
|
|
220
220
|
}
|
|
221
221
|
)) : (s.src = "about:blank", s.onload = () => {
|
|
222
222
|
r = V(s.contentWindow, "resize", e), e();
|
|
223
|
-
}),
|
|
223
|
+
}), C(t, s), () => {
|
|
224
224
|
(i || r && s.contentWindow) && r(), N(s);
|
|
225
225
|
};
|
|
226
226
|
}
|
|
@@ -420,12 +420,12 @@ function Me(t, e, n, s) {
|
|
|
420
420
|
easing: m = Et,
|
|
421
421
|
tick: M = k,
|
|
422
422
|
css: E
|
|
423
|
-
} = r || Jt,
|
|
423
|
+
} = r || Jt, b = {
|
|
424
424
|
start: Ot() + h,
|
|
425
425
|
b: d
|
|
426
426
|
};
|
|
427
|
-
d || (
|
|
428
|
-
t.inert, t.inert = !0)), o || u ? u =
|
|
427
|
+
d || (b.group = v, v.r += 1), "inert" in t && (d ? p !== void 0 && (t.inert = p) : (p = /** @type {HTMLElement} */
|
|
428
|
+
t.inert, t.inert = !0)), o || u ? u = b : (E && ($(), c = ut(t, l, d, g, h, m, E)), d && M(0, 1), o = y(b, g), Q(() => tt(t, d, "start")), St((a) => {
|
|
429
429
|
if (u && a > u.start && (o = y(u, g), u = null, tt(t, o.b, "start"), E && ($(), c = ut(
|
|
430
430
|
t,
|
|
431
431
|
l,
|
|
@@ -438,8 +438,8 @@ function Me(t, e, n, s) {
|
|
|
438
438
|
if (a >= o.end)
|
|
439
439
|
M(l = o.b, 1 - l), tt(t, o.b, "end"), u || (o.b ? $() : --o.group.r || L(o.group.c)), o = null;
|
|
440
440
|
else if (a >= o.start) {
|
|
441
|
-
const
|
|
442
|
-
l = o.a + o.d * m(
|
|
441
|
+
const w = a - o.start;
|
|
442
|
+
l = o.a + o.d * m(w / o.duration), M(l, 1 - l);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
return !!(o || u);
|
|
@@ -745,7 +745,7 @@ function oe(t) {
|
|
|
745
745
|
e = at("svg"), n = at("path"), _(n, "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, "fill", "#111111"), _(e, "xmlns", "http://www.w3.org/2000/svg"), _(e, "width", "13"), _(e, "height", "20"), _(e, "viewBox", "0 0 13 13"), _(e, "fill", "none");
|
|
746
746
|
},
|
|
747
747
|
m(s, i) {
|
|
748
|
-
rt(s, e, i),
|
|
748
|
+
rt(s, e, i), C(e, n);
|
|
749
749
|
},
|
|
750
750
|
p: k,
|
|
751
751
|
d(s) {
|
|
@@ -791,13 +791,13 @@ function re(t) {
|
|
|
791
791
|
/*$$scope*/
|
|
792
792
|
t[5],
|
|
793
793
|
dt
|
|
794
|
-
),
|
|
794
|
+
), b = E || oe();
|
|
795
795
|
return {
|
|
796
796
|
c() {
|
|
797
|
-
e = x("div"), n = x("div"), s = x("div"), f && f.c(), i = X(), h && h.c(), r = X(), l = x("span"), m && m.c(), o = X(), u = x("span"),
|
|
797
|
+
e = x("div"), n = x("div"), s = x("div"), f && f.c(), i = X(), h && h.c(), r = X(), l = x("span"), m && m.c(), o = X(), u = x("span"), b && b.c(), _(l, "class", "ModalOkBtn"), _(l, "role", "button"), _(u, "class", "ModalCloseBtn"), _(u, "role", "button"), _(s, "class", "CashierModalContainer"), _(s, "part", "CashierModalContainer"), _(n, "class", "CashierModalWindow"), _(n, "part", "CashierModalWindow"), _(n, "id", "Modal"), _(e, "part", "CustomStylingContainer");
|
|
798
798
|
},
|
|
799
|
-
m(a,
|
|
800
|
-
rt(a, e,
|
|
799
|
+
m(a, w) {
|
|
800
|
+
rt(a, e, w), C(e, n), C(n, s), f && f.m(s, null), C(s, i), h && h.m(s, null), C(s, r), C(s, l), m && m.m(l, null), C(s, o), C(s, u), b && b.m(u, null), t[7](e), c = !0, p || ($ = [
|
|
801
801
|
V(
|
|
802
802
|
l,
|
|
803
803
|
"click",
|
|
@@ -812,8 +812,8 @@ function re(t) {
|
|
|
812
812
|
)
|
|
813
813
|
], p = !0);
|
|
814
814
|
},
|
|
815
|
-
p(a, [
|
|
816
|
-
f && f.p && (!c ||
|
|
815
|
+
p(a, [w]) {
|
|
816
|
+
f && f.p && (!c || w & /*$$scope*/
|
|
817
817
|
32) && H(
|
|
818
818
|
f,
|
|
819
819
|
y,
|
|
@@ -824,14 +824,14 @@ function re(t) {
|
|
|
824
824
|
y,
|
|
825
825
|
/*$$scope*/
|
|
826
826
|
a[5],
|
|
827
|
-
|
|
827
|
+
w,
|
|
828
828
|
ie
|
|
829
829
|
) : I(
|
|
830
830
|
/*$$scope*/
|
|
831
831
|
a[5]
|
|
832
832
|
),
|
|
833
833
|
_t
|
|
834
|
-
), h && h.p && (!c ||
|
|
834
|
+
), h && h.p && (!c || w & /*$$scope*/
|
|
835
835
|
32) && H(
|
|
836
836
|
h,
|
|
837
837
|
d,
|
|
@@ -842,14 +842,14 @@ function re(t) {
|
|
|
842
842
|
d,
|
|
843
843
|
/*$$scope*/
|
|
844
844
|
a[5],
|
|
845
|
-
|
|
845
|
+
w,
|
|
846
846
|
se
|
|
847
847
|
) : I(
|
|
848
848
|
/*$$scope*/
|
|
849
849
|
a[5]
|
|
850
850
|
),
|
|
851
851
|
$t
|
|
852
|
-
), m && m.p && (!c ||
|
|
852
|
+
), m && m.p && (!c || w & /*$$scope*/
|
|
853
853
|
32) && H(
|
|
854
854
|
m,
|
|
855
855
|
g,
|
|
@@ -860,14 +860,14 @@ function re(t) {
|
|
|
860
860
|
g,
|
|
861
861
|
/*$$scope*/
|
|
862
862
|
a[5],
|
|
863
|
-
|
|
863
|
+
w,
|
|
864
864
|
ne
|
|
865
865
|
) : I(
|
|
866
866
|
/*$$scope*/
|
|
867
867
|
a[5]
|
|
868
868
|
),
|
|
869
869
|
ht
|
|
870
|
-
), E && E.p && (!c ||
|
|
870
|
+
), E && E.p && (!c || w & /*$$scope*/
|
|
871
871
|
32) && H(
|
|
872
872
|
E,
|
|
873
873
|
M,
|
|
@@ -878,7 +878,7 @@ function re(t) {
|
|
|
878
878
|
M,
|
|
879
879
|
/*$$scope*/
|
|
880
880
|
a[5],
|
|
881
|
-
|
|
881
|
+
w,
|
|
882
882
|
ee
|
|
883
883
|
) : I(
|
|
884
884
|
/*$$scope*/
|
|
@@ -888,13 +888,13 @@ function re(t) {
|
|
|
888
888
|
);
|
|
889
889
|
},
|
|
890
890
|
i(a) {
|
|
891
|
-
c || (z(f, a), z(h, a), z(m, a), z(
|
|
891
|
+
c || (z(f, a), z(h, a), z(m, a), z(b, a), c = !0);
|
|
892
892
|
},
|
|
893
893
|
o(a) {
|
|
894
|
-
F(f, a), F(h, a), F(m, a), F(
|
|
894
|
+
F(f, a), F(h, a), F(m, a), F(b, a), c = !1;
|
|
895
895
|
},
|
|
896
896
|
d(a) {
|
|
897
|
-
a && N(e), f && f.d(a), h && h.d(a), m && m.d(a),
|
|
897
|
+
a && N(e), f && f.d(a), h && h.d(a), m && m.d(a), b && b.d(a), t[7](null), p = !1, L($);
|
|
898
898
|
}
|
|
899
899
|
};
|
|
900
900
|
}
|
|
@@ -964,52 +964,52 @@ const Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
964
964
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
965
965
|
export {
|
|
966
966
|
V as A,
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
967
|
+
ce as B,
|
|
968
|
+
ve as C,
|
|
969
|
+
Zt as D,
|
|
970
970
|
$e as E,
|
|
971
971
|
Q as F,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
972
|
+
ue as G,
|
|
973
|
+
we as H,
|
|
974
|
+
_e as I,
|
|
975
|
+
be as J,
|
|
976
976
|
ke as K,
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
977
|
+
fe as L,
|
|
978
|
+
he as M,
|
|
979
|
+
at as N,
|
|
980
|
+
pe as O,
|
|
981
981
|
ge as P,
|
|
982
982
|
xe as Q,
|
|
983
983
|
Et as R,
|
|
984
984
|
Xt as S,
|
|
985
|
-
|
|
986
|
-
|
|
985
|
+
Me as T,
|
|
986
|
+
ye as U,
|
|
987
987
|
Ce as V,
|
|
988
988
|
Le as W,
|
|
989
|
-
|
|
989
|
+
jt as a,
|
|
990
990
|
Qt as b,
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
991
|
+
At as c,
|
|
992
|
+
D as d,
|
|
993
|
+
N as e,
|
|
994
994
|
Z as f,
|
|
995
|
-
|
|
996
|
-
|
|
995
|
+
z as g,
|
|
996
|
+
I as h,
|
|
997
997
|
st as i,
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
998
|
+
W as j,
|
|
999
|
+
Ee as k,
|
|
1000
|
+
rt as l,
|
|
1001
|
+
C as m,
|
|
1002
1002
|
k as n,
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1003
|
+
x as o,
|
|
1004
|
+
X as p,
|
|
1005
|
+
_ as q,
|
|
1006
1006
|
L as r,
|
|
1007
|
-
|
|
1008
|
-
|
|
1007
|
+
kt as s,
|
|
1008
|
+
F as t,
|
|
1009
1009
|
H as u,
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1010
|
+
ae as v,
|
|
1011
|
+
de as w,
|
|
1012
|
+
me as x,
|
|
1013
1013
|
wt as y,
|
|
1014
|
-
|
|
1014
|
+
et as z
|
|
1015
1015
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";var Dt=Object.defineProperty,Rt=Object.defineProperties;var Wt=Object.getOwnPropertyDescriptors;var dt=Object.getOwnPropertySymbols;var qt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var it=(t,e,n)=>e in t?Dt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ht=(t,e)=>{for(var n in e||(e={}))qt.call(e,n)&&it(t,n,e[n]);if(dt)for(var n of dt(e))Ht.call(e,n)&&it(t,n,e[n]);return t},_t=(t,e)=>Rt(t,Wt(e));var C=(t,e,n)=>it(t,typeof e!="symbol"?e+"":e,n);var $t=(t,e,n)=>new Promise((i,r)=>{var s=u=>{try{o(n.next(u))}catch(c){r(c)}},l=u=>{try{o(n.throw(u))}catch(c){r(c)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,l);o((n=n.apply(t,e)).next())});function k(){}const xt=t=>t;function It(t,e){for(const n in e)t[n]=e[n];return t}function vt(t){return t()}function mt(){return Object.create(null)}function L(t){t.forEach(vt)}function et(t){return typeof t=="function"}function Et(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let V;function Ft(t,e){return t===e?!0:(V||(V=document.createElement("a")),V.href=e,t===V.href)}function Ut(t){return Object.keys(t).length===0}function Mt(t,...e){if(t==null){for(const i of e)i(void 0);return k}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Jt(t,e,n){t.$$.on_destroy.push(Mt(e,n))}function T(t,e,n,i){if(t){const r=kt(t,e,n,i);return t[0](r)}}function kt(t,e,n,i){return t[1]&&i?It(n.ctx.slice(),t[1](i(e))):n.ctx}function D(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const s=[],l=Math.max(e.dirty.length,r.length);for(let o=0;o<l;o+=1)s[o]=e.dirty[o]|r[o];return s}return e.dirty|r}return e.dirty}function R(t,e,n,i,r,s){if(r){const l=kt(e,n,i,s);t.p(l,r)}}function W(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}const Lt=typeof window!="undefined";let Vt=Lt?()=>window.performance.now():()=>Date.now(),ct=Lt?t=>requestAnimationFrame(t):k;const N=new Set;function jt(t){N.forEach(e=>{e.c(t)||(N.delete(e),e.f())}),N.size!==0&&ct(jt)}function Zt(t){let e;return N.size===0&&ct(jt),{promise:new Promise(n=>{N.add(e={c:t,f:n})}),abort(){N.delete(e)}}}const Gt=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function x(t,e){t.appendChild(e)}function Ot(t,e,n){const i=ut(t);if(!i.getElementById(e)){const r=v("style");r.id=e,r.textContent=n,St(i,r)}}function ut(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Kt(t){const e=v("style");return e.textContent="/* empty */",St(ut(t),e),e.sheet}function St(t,e){return x(t.head||t,e),e.sheet}function nt(t,e,n){t.insertBefore(e,n||null)}function O(t){t.parentNode&&t.parentNode.removeChild(t)}function Qt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function v(t){return document.createElement(t)}function rt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function at(t){return document.createTextNode(t)}function G(){return at(" ")}function Xt(){return at("")}function I(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Yt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function $(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function te(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:$(t,e,n)}function ee(t){return t===""?null:+t}function ne(t){return Array.from(t.childNodes)}function ie(t,e){e=""+e,t.data!==e&&(t.data=e)}function se(t,e){t.value=e==null?"":e}function oe(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}let Z;function re(){if(Z===void 0){Z=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){Z=!0}}return Z}function le(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const i=v("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const r=re();let s;return r?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=I(window,"message",l=>{l.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{s=I(i.contentWindow,"resize",e),e()}),x(t,i),()=>{(r||s&&i.contentWindow)&&s(),O(i)}}function ce(t,e,n){t.classList.toggle(e,!!n)}function At(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function ue(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}const X=new Map;let Y=0;function ae(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function fe(t,e){const n={stylesheet:Kt(e),rules:{}};return X.set(t,n),n}function pt(t,e,n,i,r,s,l,o=0){const u=16.666/i;let c=`{
|
|
2
|
+
`;for(let g=0;g<=1;g+=u){const m=e+(n-e)*s(g);c+=g*100+`%{${l(m,1-m)}}
|
|
3
|
+
`}const p=c+`100% {${l(n,1-n)}}
|
|
4
|
+
}`,_=`__svelte_${ae(p)}_${o}`,y=ut(t),{stylesheet:f,rules:d}=X.get(y)||fe(y,t);d[_]||(d[_]=!0,f.insertRule(`@keyframes ${_} ${p}`,f.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${_} ${i}ms linear ${r}ms 1 both`,Y+=1,_}function de(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),r=n.length-i.length;r&&(t.style.animation=i.join(", "),Y-=r,Y||he())}function he(){ct(()=>{Y||(X.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&O(e)}),X.clear())})}let F;function H(t){F=t}function ft(){if(!F)throw new Error("Function called outside component initialization");return F}function _e(t){ft().$$.on_mount.push(t)}function $e(t){ft().$$.on_destroy.push(t)}function me(){const t=ft();return(e,n,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[e];if(r){const s=At(e,n,{cancelable:i});return r.slice().forEach(l=>{l.call(t,s)}),!s.defaultPrevented}return!0}}const A=[],tt=[];let P=[];const gt=[],pe=Promise.resolve();let lt=!1;function ge(){lt||(lt=!0,pe.then(J))}function U(t){P.push(t)}const st=new Set;let S=0;function J(){if(S!==0)return;const t=F;do{try{for(;S<A.length;){const e=A[S];S++,H(e),ye(e.$$)}}catch(e){throw A.length=0,S=0,e}for(H(null),A.length=0,S=0;tt.length;)tt.pop()();for(let e=0;e<P.length;e+=1){const n=P[e];st.has(n)||(st.add(n),n())}P.length=0}while(A.length);for(;gt.length;)gt.pop()();lt=!1,st.clear(),H(t)}function ye(t){if(t.fragment!==null){t.update(),L(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(U)}}function be(t){const e=[],n=[];P.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),P=e}let B;function we(){return B||(B=Promise.resolve(),B.then(()=>{B=null})),B}function ot(t,e,n){t.dispatchEvent(At(`${e?"intro":"outro"}${n}`))}const K=new Set;let E;function Ce(){E={r:0,c:[],p:E}}function xe(){E.r||L(E.c),E=E.p}function z(t,e){t&&t.i&&(K.delete(t),t.i(e))}function q(t,e,n,i){if(t&&t.o){if(K.has(t))return;K.add(t),E.c.push(()=>{K.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const ve={duration:0};function Ee(t,e,n,i){let s=e(t,n,{direction:"both"}),l=i?0:1,o=null,u=null,c=null,p;function _(){c&&de(t,c)}function y(d,h){const g=d.b-l;return h*=Math.abs(g),{a:l,b:d.b,d:g,duration:h,start:d.start,end:d.start+h,group:d.group}}function f(d){const{delay:h=0,duration:g=300,easing:m=xt,tick:j=k,css:M}=s||ve,b={start:Vt()+h,b:d};d||(b.group=E,E.r+=1),"inert"in t&&(d?p!==void 0&&(t.inert=p):(p=t.inert,t.inert=!0)),o||u?u=b:(M&&(_(),c=pt(t,l,d,g,h,m,M)),d&&j(0,1),o=y(b,g),U(()=>ot(t,d,"start")),Zt(a=>{if(u&&a>u.start&&(o=y(u,g),u=null,ot(t,o.b,"start"),M&&(_(),c=pt(t,l,o.b,o.duration,0,m,s.css))),o){if(a>=o.end)j(l=o.b,1-l),ot(t,o.b,"end"),u||(o.b?_():--o.group.r||L(o.group.c)),o=null;else if(a>=o.start){const w=a-o.start;l=o.a+o.d*m(w/o.duration),j(l,1-l)}}return!!(o||u)}))}return{run(d){et(s)?we().then(()=>{s=s({direction:d?"in":"out"}),f(d)}):f(d)},end(){_(),o=u=null}}}function Me(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function ke(t,e,n){const{fragment:i,after_update:r}=t.$$;i&&i.m(e,n),U(()=>{const s=t.$$.on_mount.map(vt).filter(et);t.$$.on_destroy?t.$$.on_destroy.push(...s):L(s),t.$$.on_mount=[]}),r.forEach(U)}function Le(t,e){const n=t.$$;n.fragment!==null&&(be(n.after_update),L(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function je(t,e){t.$$.dirty[0]===-1&&(A.push(t),ge(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function zt(t,e,n,i,r,s,l=null,o=[-1]){const u=F;H(t);const c=t.$$={fragment:null,ctx:[],props:s,update:k,not_equal:r,bound:mt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:mt(),dirty:o,skip_bound:!1,root:e.target||u.$$.root};l&&l(c.root);let p=!1;if(c.ctx=n?n(t,e.props||{},(_,y,...f)=>{const d=f.length?f[0]:y;return c.ctx&&r(c.ctx[_],c.ctx[_]=d)&&(!c.skip_bound&&c.bound[_]&&c.bound[_](d),p&&je(t,_)),y}):[],c.update(),p=!0,L(c.before_update),c.fragment=i?i(c.ctx):!1,e.target){if(e.hydrate){const _=ne(e.target);c.fragment&&c.fragment.l(_),_.forEach(O)}else c.fragment&&c.fragment.c();e.intro&&z(t.$$.fragment),ke(t,e.target,e.anchor),J()}H(u)}let Nt;typeof HTMLElement=="function"&&(Nt=class extends HTMLElement{constructor(e,n,i){super();C(this,"$$ctor");C(this,"$$s");C(this,"$$c");C(this,"$$cn",!1);C(this,"$$d",{});C(this,"$$r",!1);C(this,"$$p_d",{});C(this,"$$l",{});C(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(e,n,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const r=this.$$c.$on(e,n);this.$$l_u.set(n,r)}super.addEventListener(e,n,i)}removeEventListener(e,n,i){if(super.removeEventListener(e,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return $t(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let l;return{c:function(){l=v("slot"),s!=="default"&&$(l,"name",s)},m:function(c,p){nt(c,l,p)},d:function(c){c&&O(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ue(this);for(const s of this.$$s)s in i&&(n[s]=[e(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Q(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(ht({},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=Q(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 o=this.$$c.$on(s,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(e,n,i){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Q(e,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function Q(t,e,n,i){var s;const r=(s=n[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Pt(t,e,n,i,r,s){let l=class extends Nt{constructor(){super(t,n,r),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(o=>(e[o].attribute||o).toLowerCase())}};return Object.keys(e).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=Q(o,u,e),this.$$d[o]=u,(c=this.$$c)==null||c.$set({[o]:u})}})}),i.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),t.element=l,l}class Bt{constructor(){C(this,"$$");C(this,"$$set")}$destroy(){Le(this,1),this.$destroy=k}$on(e,n){if(!et(n))return k;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!Ut(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Oe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oe);function Se(t){Ot(t,"svelte-1m890h5","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;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-background, rgba(0, 0, 0, 0.1))}.CashierModalContainer{width:500px;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;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}")}const Ae=t=>({}),yt=t=>({}),ze=t=>({}),bt=t=>({}),Ne=t=>({}),wt=t=>({class:"CashierModalText"}),Pe=t=>({}),Ct=t=>({class:"CashierModalTitle"});function Be(t){let e,n;return{c(){e=rt("svg"),n=rt("path"),$(n,"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,"fill","#111111"),$(e,"xmlns","http://www.w3.org/2000/svg"),$(e,"width","13"),$(e,"height","20"),$(e,"viewBox","0 0 13 13"),$(e,"fill","none")},m(i,r){nt(i,e,r),x(e,n)},p:k,d(i){i&&O(e)}}}function Te(t){let e,n,i,r,s,l,o,u,c,p,_;const y=t[6].title,f=T(y,t,t[5],Ct),d=t[6].text,h=T(d,t,t[5],wt),g=t[6].confirm,m=T(g,t,t[5],bt),j=t[6].close,M=T(j,t,t[5],yt),b=M||Be();return{c(){e=v("div"),n=v("div"),i=v("div"),f&&f.c(),r=G(),h&&h.c(),s=G(),l=v("span"),m&&m.c(),o=G(),u=v("span"),b&&b.c(),$(l,"class","ModalOkBtn"),$(l,"role","button"),$(u,"class","ModalCloseBtn"),$(u,"role","button"),$(i,"class","CashierModalContainer"),$(i,"part","CashierModalContainer"),$(n,"class","CashierModalWindow"),$(n,"part","CashierModalWindow"),$(n,"id","Modal"),$(e,"part","CustomStylingContainer")},m(a,w){nt(a,e,w),x(e,n),x(n,i),f&&f.m(i,null),x(i,r),h&&h.m(i,null),x(i,s),x(i,l),m&&m.m(l,null),x(i,o),x(i,u),b&&b.m(u,null),t[7](e),c=!0,p||(_=[I(l,"click",t[2]),I(u,"click",t[1])],p=!0)},p(a,[w]){f&&f.p&&(!c||w&32)&&R(f,y,a,a[5],c?D(y,a[5],w,Pe):W(a[5]),Ct),h&&h.p&&(!c||w&32)&&R(h,d,a,a[5],c?D(d,a[5],w,Ne):W(a[5]),wt),m&&m.p&&(!c||w&32)&&R(m,g,a,a[5],c?D(g,a[5],w,ze):W(a[5]),bt),M&&M.p&&(!c||w&32)&&R(M,j,a,a[5],c?D(j,a[5],w,Ae):W(a[5]),yt)},i(a){c||(z(f,a),z(h,a),z(m,a),z(b,a),c=!0)},o(a){q(f,a),q(h,a),q(m,a),q(b,a),c=!1},d(a){a&&O(e),f&&f.d(a),h&&h.d(a),m&&m.d(a),b&&b.d(a),t[7](null),p=!1,L(_)}}}function De(t,e,n){let{$$slots:i={},$$scope:r}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,o;const u=()=>{window.postMessage({type:"CloseModal"},window.location.href)},c=()=>{window.postMessage({type:"ConfirmModal"},window.location.href),u()},p=()=>{let f=document.createElement("style");f.innerHTML=s,o.appendChild(f)},_=()=>{let f=new URL(l),d=document.createElement("style");fetch(f.href).then(h=>h.text()).then(h=>{d.innerHTML=h,setTimeout(()=>{o.appendChild(d)},1)})};function y(f){tt[f?"unshift":"push"](()=>{o=f,n(0,o)})}return t.$$set=f=>{"clientstyling"in f&&n(3,s=f.clientstyling),"clientstylingurl"in f&&n(4,l=f.clientstylingurl),"$$scope"in f&&n(5,r=f.$$scope)},t.$$.update=()=>{t.$$.dirty&9&&s&&o&&p(),t.$$.dirty&17&&l&&o&&_()},[o,u,c,s,l,r,i,y]}class Tt extends Bt{constructor(e){super(),zt(this,e,De,Te,Et,{clientstyling:3,clientstylingurl:4},Se)}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),J()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),J()}}Pt(Tt,{clientstyling:{},clientstylingurl:{}},["title","text","confirm","close"],[],!0);const Re=Object.freeze(Object.defineProperty({__proto__:null,default:Tt},Symbol.toStringTag,{value:"Module"}));exports.CashierConfirmModal_ce=Re;exports.SvelteComponent=Bt;exports.add_iframe_resize_listener=le;exports.add_render_callback=U;exports.append=x;exports.append_styles=Ot;exports.attr=$;exports.binding_callbacks=tt;exports.check_outros=xe;exports.component_subscribe=Jt;exports.createEventDispatcher=me;exports.create_bidirectional_transition=Ee;exports.create_custom_element=Pt;exports.create_slot=T;exports.destroy_each=Qt;exports.detach=O;exports.element=v;exports.empty=Xt;exports.ensure_array_like=Me;exports.flush=J;exports.get_all_dirty_from_scope=W;exports.get_slot_changes=D;exports.globals=Gt;exports.group_outros=Ce;exports.identity=xt;exports.init=zt;exports.insert=nt;exports.is_function=et;exports.listen=I;exports.noop=k;exports.onDestroy=$e;exports.onMount=_e;exports.prevent_default=Yt;exports.run_all=L;exports.safe_not_equal=Et;exports.set_custom_element_data=te;exports.set_data=ie;exports.set_input_value=se;exports.set_style=oe;exports.space=G;exports.src_url_equal=Ft;exports.subscribe=Mt;exports.svg_element=rt;exports.text=at;exports.to_number=ee;exports.toggle_class=ce;exports.transition_in=z;exports.transition_out=q;exports.update_slot_base=R;
|