@everymatrix/cashier-method-details 1.45.5 → 1.45.7
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{CashierConfirmModal-Dw8BnUfp.js → CashierConfirmModal-BMW4zSn1.js} +136 -170
- package/components/CashierConfirmModal-BihPvQBJ.cjs +4 -0
- package/components/{CashierError-ClzxZoH7.cjs → CashierError-D6oq8-CP.cjs} +1 -1
- package/components/{CashierError-B_iMgTfr.js → CashierError-gARTV8-m.js} +1 -1
- package/components/{CashierHeader-BU_vM2lH.cjs → CashierHeader-BsMg5hLV.cjs} +1 -1
- package/components/{CashierHeader-VE5z702l.js → CashierHeader-yroTHP8Z.js} +2 -2
- package/components/{CashierIframeRedirect-DSYHz0IC.cjs → CashierIframeRedirect-BVX_GPxi.cjs} +1 -1
- package/components/{CashierIframeRedirect-CUdjcENK.js → CashierIframeRedirect-J3YBaaqC.js} +57 -65
- package/components/{CashierMethodDetails-BYvlumgg.cjs → CashierMethodDetails-BA_zrJUt.cjs} +3 -3
- package/components/{CashierMethodDetails-CoLJgvjQ.js → CashierMethodDetails-CwK4FlNt.js} +585 -573
- package/components/{CashierModal-BInN_GEx.js → CashierModal-B8UzDwRR.js} +16 -16
- package/components/{CashierModal-9BGQdqOF.cjs → CashierModal-DhSF7r-z.cjs} +1 -1
- package/components/{CashierNotifications-DUaec3Zg.js → CashierNotifications-DKp7tXLX.js} +16 -23
- package/components/CashierNotifications-YYL3Z0mZ.cjs +1 -0
- package/components/{CashierReceiptPage-BbBZku3l.js → CashierReceiptPage--wA7aLAd.js} +23 -23
- package/components/{CashierReceiptPage-lw2wwZ2Y.cjs → CashierReceiptPage-Bb2A4Vm-.cjs} +1 -1
- package/components/{CashierSpinner-DUwdQyI3.cjs → CashierSpinner-CsQIAFM9.cjs} +1 -1
- package/components/{CashierSpinner-DREUPtXI.js → CashierSpinner-Lm8ZCB8I.js} +1 -1
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/package.json +7 -7
- package/components/CashierConfirmModal-BsoB5fQM.cjs +0 -4
- package/components/CashierNotifications-CkuynzyL.cjs +0 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
function S(n, { delay: t = 0, duration: e = 400, easing: i =
|
1
|
+
import { Q as F, S as U, b as D, f as g, c as G, a as N, d as Q, x as A, k as L, t as m, p, q as I, v as H, G as J, e as K, g as y, j as h, F as M, l as v, R as O, u as P, m as V, o as X, T as k, B as Y, C as x } from "./CashierConfirmModal-BMW4zSn1.js";
|
2
|
+
function S(n, { delay: t = 0, duration: e = 400, easing: i = F } = {}) {
|
3
3
|
const o = +getComputedStyle(n).opacity;
|
4
4
|
return {
|
5
5
|
delay: t,
|
@@ -9,7 +9,7 @@ function S(n, { delay: t = 0, duration: e = 400, easing: i = q } = {}) {
|
|
9
9
|
};
|
10
10
|
}
|
11
11
|
function Z(n) {
|
12
|
-
|
12
|
+
Q(n, "svelte-pil2bm", "*,*::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(--mmw--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(--mmw--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}}");
|
13
13
|
}
|
14
14
|
const $ = (n) => ({}), z = (n) => ({});
|
15
15
|
function E(n) {
|
@@ -17,7 +17,7 @@ function E(n) {
|
|
17
17
|
const f = (
|
18
18
|
/*#slots*/
|
19
19
|
n[9].content
|
20
|
-
), r =
|
20
|
+
), r = K(
|
21
21
|
f,
|
22
22
|
n,
|
23
23
|
/*$$scope*/
|
@@ -32,7 +32,7 @@ function E(n) {
|
|
32
32
|
)), h(t, "part", "CustomStylingContainer");
|
33
33
|
},
|
34
34
|
m(a, c) {
|
35
|
-
|
35
|
+
L(a, t, c), v(t, e), v(e, i), r && r.m(i, null), n[10](e), o = O(
|
36
36
|
e,
|
37
37
|
/*div1_elementresize_handler*/
|
38
38
|
n[11].bind(e)
|
@@ -40,7 +40,7 @@ function E(n) {
|
|
40
40
|
},
|
41
41
|
p(a, c) {
|
42
42
|
n = a, r && r.p && (!d || c & /*$$scope*/
|
43
|
-
256) &&
|
43
|
+
256) && P(
|
44
44
|
r,
|
45
45
|
f,
|
46
46
|
n,
|
@@ -80,7 +80,7 @@ function E(n) {
|
|
80
80
|
)), l.run(0)), d = !1;
|
81
81
|
},
|
82
82
|
d(a) {
|
83
|
-
a &&
|
83
|
+
a && H(t), r && r.d(a), n[10](null), o(), a && l && l.end(), n[12](null);
|
84
84
|
}
|
85
85
|
};
|
86
86
|
}
|
@@ -91,17 +91,17 @@ function tt(n) {
|
|
91
91
|
);
|
92
92
|
return {
|
93
93
|
c() {
|
94
|
-
i && i.c(), t =
|
94
|
+
i && i.c(), t = A();
|
95
95
|
},
|
96
96
|
m(o, l) {
|
97
|
-
i && i.m(o, l),
|
97
|
+
i && i.m(o, l), L(o, t, l), e = !0;
|
98
98
|
},
|
99
99
|
p(o, [l]) {
|
100
100
|
/*show*/
|
101
101
|
o[5] ? i ? (i.p(o, l), l & /*show*/
|
102
102
|
32 && m(i, 1)) : (i = E(o), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (Y(), p(i, 1, 1, () => {
|
103
103
|
i = null;
|
104
|
-
}),
|
104
|
+
}), I());
|
105
105
|
},
|
106
106
|
i(o) {
|
107
107
|
e || (m(i), e = !0);
|
@@ -110,7 +110,7 @@ function tt(n) {
|
|
110
110
|
p(i), e = !1;
|
111
111
|
},
|
112
112
|
d(o) {
|
113
|
-
o &&
|
113
|
+
o && H(t), i && i.d(o);
|
114
114
|
}
|
115
115
|
};
|
116
116
|
}
|
@@ -134,7 +134,7 @@ function et(n, t, e) {
|
|
134
134
|
);
|
135
135
|
});
|
136
136
|
};
|
137
|
-
|
137
|
+
J(() => (window.addEventListener("message", b, !1), () => {
|
138
138
|
window.removeEventListener("message", b);
|
139
139
|
}));
|
140
140
|
function j(s) {
|
@@ -145,7 +145,7 @@ function et(n, t, e) {
|
|
145
145
|
function R() {
|
146
146
|
r = this.clientWidth, a = this.clientHeight, e(0, r), e(1, a);
|
147
147
|
}
|
148
|
-
function
|
148
|
+
function q(s) {
|
149
149
|
x[s ? "unshift" : "push"](() => {
|
150
150
|
u = s, e(3, u);
|
151
151
|
});
|
@@ -169,12 +169,12 @@ function et(n, t, e) {
|
|
169
169
|
i,
|
170
170
|
j,
|
171
171
|
R,
|
172
|
-
|
172
|
+
q
|
173
173
|
];
|
174
174
|
}
|
175
|
-
class nt extends
|
175
|
+
class nt extends U {
|
176
176
|
constructor(t) {
|
177
|
-
super(),
|
177
|
+
super(), D(
|
178
178
|
this,
|
179
179
|
t,
|
180
180
|
et,
|
@@ -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-BihPvQBJ.cjs");function y(i,{delay:e=0,duration:n=400,easing:l=t.identity}={}){const s=+getComputedStyle(i).opacity;return{delay:e,duration:n,easing:l,css:r=>`opacity: ${r*s}`}}function E(i){t.append_styles(i,"svelte-pil2bm","*,*::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(--mmw--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(--mmw--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 L=i=>({}),p=i=>({});function b(i){let e,n,l,s,r,c;const h=i[9].content,d=t.create_slot(h,i,i[8],p);return{c(){e=t.element("div"),n=t.element("div"),l=t.element("div"),d&&d.c(),t.attr(l,"class","ModalContainer"),t.attr(l,"part","ModalContainer"),t.attr(n,"class","ModalWindow"),t.attr(n,"part","ModalWindow"),t.attr(n,"id","Modal"),t.add_render_callback(()=>i[11].call(n)),t.attr(e,"part","CustomStylingContainer")},m(a,u){t.insert(a,e,u),t.append(e,n),t.append(n,l),d&&d.m(l,null),i[10](n),s=t.add_iframe_resize_listener(n,i[11].bind(n)),i[12](e),c=!0},p(a,u){i=a,d&&d.p&&(!c||u&256)&&t.update_slot_base(d,h,i,i[8],c?t.get_slot_changes(h,i[8],u,L):t.get_all_dirty_from_scope(i[8]),p)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(r||(r=t.create_bidirectional_transition(n,y,i[2],!0)),r.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(r||(r=t.create_bidirectional_transition(n,y,i[2],!1)),r.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),i[10](null),s(),a&&r&&r.end(),i[12](null)}}}function H(i){let e,n,l=i[5]&&b(i);return{c(){l&&l.c(),e=t.empty()},m(s,r){l&&l.m(s,r),t.insert(s,e,r),n=!0},p(s,[r]){s[5]?l?(l.p(s,r),r&32&&t.transition_in(l,1)):(l=b(s),l.c(),t.transition_in(l,1),l.m(e.parentNode,e)):l&&(t.group_outros(),t.transition_out(l,1,1,()=>{l=null}),t.check_outros())},i(s){n||(t.transition_in(l),n=!0)},o(s){t.transition_out(l),n=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function W(i,e,n){let{$$slots:l={},$$scope:s}=e,{clientstyling:r=""}=e,{clientstylingurl:c=""}=e,{duration:h=200}=e,{width:d}=e,{height:a}=e,u,f,g=!1;const C=()=>{n(5,g=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},m=o=>{o.data.type=="ShowCashierModal"&&(n(5,g=!0),window.postMessage({type:"DisableScroll"},window.location.href)),o.data.type=="HideCashierModal"&&C()},v=()=>{let o=document.createElement("style");o.innerHTML=r,f.appendChild(o)},k=()=>{let o=new URL(c),w=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{w.innerHTML=_,setTimeout(()=>{f.appendChild(w)},1)})};t.onMount(()=>(window.addEventListener("message",m,!1),()=>{window.removeEventListener("message",m)}));function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(4,u)})}function x(){d=this.clientWidth,a=this.clientHeight,n(0,d),n(1,a)}function z(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,n(3,f)})}return i.$$set=o=>{"clientstyling"in o&&n(6,r=o.clientstyling),"clientstylingurl"in o&&n(7,c=o.clientstylingurl),"duration"in o&&n(2,h=o.duration),"width"in o&&n(0,d=o.width),"height"in o&&n(1,a=o.height),"$$scope"in o&&n(8,s=o.$$scope)},i.$$.update=()=>{i.$$.dirty&72&&r&&f&&v(),i.$$.dirty&136&&c&&f&&k()},[d,a,h,f,u,g,r,c,s,l,S,x,z]}class M extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,H,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},E)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}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(M,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);exports.default=M;
|
@@ -1,21 +1,21 @@
|
|
1
|
-
import { S as
|
2
|
-
function
|
1
|
+
import { S as C, b as v, f as d, c as _, a as k, d as N, g as h, y as b, h as z, j as S, k as E, l as f, A as L, z as p, n as x, v as M, C as T } from "./CashierConfirmModal-BMW4zSn1.js";
|
2
|
+
function H(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
5
|
function R(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 = b(
|
10
10
|
/*text*/
|
11
11
|
n[0]
|
12
|
-
), u = z(), l = h("button"), a =
|
12
|
+
), u = z(), l = h("button"), a = b(
|
13
13
|
/*button*/
|
14
14
|
n[1]
|
15
|
-
),
|
15
|
+
), S(t, "class", "CashierNotifications");
|
16
16
|
},
|
17
17
|
m(o, c) {
|
18
|
-
|
18
|
+
E(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = L(
|
19
19
|
l,
|
20
20
|
"click",
|
21
21
|
/*notificationClick*/
|
@@ -38,37 +38,30 @@ function R(n) {
|
|
38
38
|
i: x,
|
39
39
|
o: x,
|
40
40
|
d(o) {
|
41
|
-
o &&
|
41
|
+
o && M(t), n[6](null), i = !1, m();
|
42
42
|
}
|
43
43
|
};
|
44
44
|
}
|
45
45
|
function U(n, t, s) {
|
46
46
|
let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
|
47
47
|
const m = () => {
|
48
|
-
|
49
|
-
"notificationButtonClick",
|
50
|
-
{
|
51
|
-
bubbles: !0,
|
52
|
-
cancelable: !0,
|
53
|
-
composed: !0
|
54
|
-
}
|
55
|
-
));
|
48
|
+
window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
|
56
49
|
}, o = () => {
|
57
50
|
let e = document.createElement("style");
|
58
51
|
e.innerHTML = l, i.appendChild(e);
|
59
52
|
}, c = () => {
|
60
|
-
let e = new URL(a),
|
53
|
+
let e = new URL(a), y = document.createElement("style");
|
61
54
|
fetch(e.href).then((g) => g.text()).then((g) => {
|
62
|
-
|
55
|
+
y.innerHTML = g, setTimeout(
|
63
56
|
() => {
|
64
|
-
i.appendChild(
|
57
|
+
i.appendChild(y);
|
65
58
|
},
|
66
59
|
1
|
67
60
|
);
|
68
61
|
});
|
69
62
|
};
|
70
|
-
function
|
71
|
-
|
63
|
+
function w(e) {
|
64
|
+
T[e ? "unshift" : "push"](() => {
|
72
65
|
i = e, s(2, i);
|
73
66
|
});
|
74
67
|
}
|
@@ -85,10 +78,10 @@ function U(n, t, s) {
|
|
85
78
|
m,
|
86
79
|
l,
|
87
80
|
a,
|
88
|
-
|
81
|
+
w
|
89
82
|
];
|
90
83
|
}
|
91
|
-
class j extends
|
84
|
+
class j extends C {
|
92
85
|
constructor(t) {
|
93
86
|
super(), v(
|
94
87
|
this,
|
@@ -102,7 +95,7 @@ class j extends w {
|
|
102
95
|
clientstyling: 4,
|
103
96
|
clientstylingurl: 5
|
104
97
|
},
|
105
|
-
|
98
|
+
H
|
106
99
|
);
|
107
100
|
}
|
108
101
|
get text() {
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BihPvQBJ.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,6 +1,6 @@
|
|
1
|
-
import { S as Be, b as Ee, f as B, c as
|
2
|
-
import { d as ce, u as De } from "./CashierMethodDetails-
|
3
|
-
import { a as Ge, i as xe, $ as Ue, b as Ce } from "./CashierError-
|
1
|
+
import { S as Be, b as Ee, f as B, c as Le, a as Ze, d as Me, g as z, h as E, D as x, j as a, l as p, k as d, n as K, v as u, w as we, H as Re, C as ie, E as M, y as w, A as I, z as R, J as le, x as Qe, L as Se } from "./CashierConfirmModal-BMW4zSn1.js";
|
2
|
+
import { d as ce, u as De } from "./CashierMethodDetails-CwK4FlNt.js";
|
3
|
+
import { a as Ge, i as xe, $ as Ue, b as Ce } from "./CashierError-gARTV8-m.js";
|
4
4
|
function oe(A, e) {
|
5
5
|
Ge(A, e);
|
6
6
|
}
|
@@ -326,7 +326,7 @@ function $e(A) {
|
|
326
326
|
};
|
327
327
|
}
|
328
328
|
function en(A) {
|
329
|
-
let e, n, t, f, l, c, v, o, s, g,
|
329
|
+
let e, n, t, f, l, c, v, o, s, g, L, X, m, b, Q, S, D, U, T, G, C = (
|
330
330
|
/*$_*/
|
331
331
|
A[18]("close") + ""
|
332
332
|
), N, F, Y, j = (
|
@@ -349,7 +349,7 @@ function en(A) {
|
|
349
349
|
e = z("div"), j && j.c(), n = E(), h && h.c(), t = E(), f = z("div"), l = z("img"), v = E(), o = z("div"), s = z("h2"), g = w(
|
350
350
|
/*title*/
|
351
351
|
A[12]
|
352
|
-
),
|
352
|
+
), L = E(), X = z("div"), m = w(
|
353
353
|
/*subTitle*/
|
354
354
|
A[11]
|
355
355
|
), b = E(), Q = z("div"), S = w(
|
@@ -359,7 +359,7 @@ function en(A) {
|
|
359
359
|
A[14]) || a(l, "src", c), a(l, "class", "StatusLogo"), a(s, "class", "Title"), a(X, "class", "SubTitle"), a(o, "class", "TitleWrapper"), a(f, "class", "ReceiptWrapper"), a(Q, "class", "Text"), a(G, "class", "PrimaryButton");
|
360
360
|
},
|
361
361
|
m(r, P) {
|
362
|
-
d(r, e, P), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, P), d(r, f, P), p(f, l), p(f, v), p(f, o), p(o, s), p(s, g), p(o,
|
362
|
+
d(r, e, P), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, P), d(r, f, P), p(f, l), p(f, v), p(f, o), p(o, s), p(s, g), p(o, L), p(o, X), p(X, m), d(r, b, P), d(r, Q, P), p(Q, S), d(r, D, P), H && H.m(r, P), d(r, U, P), J && J.m(r, P), d(r, T, P), d(r, G, P), p(G, N), F || (Y = I(
|
363
363
|
G,
|
364
364
|
"click",
|
365
365
|
/*closeReceipt*/
|
@@ -413,7 +413,7 @@ function ve(A) {
|
|
413
413
|
m[3] ? tn : nn
|
414
414
|
);
|
415
415
|
}
|
416
|
-
let
|
416
|
+
let L = g(A), X = L(A);
|
417
417
|
return {
|
418
418
|
c() {
|
419
419
|
e = z("div"), X.c(), n = E(), t = z("span"), l = w(f), c = E(), v = z("span"), s = w(o), a(e, "slot", "icon"), a(t, "slot", "title"), a(t, "class", "CashierErrorTitle"), a(v, "slot", "text"), a(v, "class", "CashierErrorText");
|
@@ -422,7 +422,7 @@ function ve(A) {
|
|
422
422
|
d(m, e, b), X.m(e, null), d(m, n, b), d(m, t, b), p(t, l), d(m, c, b), d(m, v, b), p(v, s);
|
423
423
|
},
|
424
424
|
p(m, b) {
|
425
|
-
|
425
|
+
L === (L = g(m)) && X ? X.p(m, b) : (X.d(1), X = L(m), X && (X.c(), X.m(e, null))), b[0] & /*$_*/
|
426
426
|
262144 && f !== (f = /*$_*/
|
427
427
|
m[18]("receipt.maintenance.title") + "") && R(l, f), b[0] & /*$_*/
|
428
428
|
262144 && o !== (o = /*$_*/
|
@@ -780,7 +780,7 @@ let an = "https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js", s
|
|
780
780
|
function vn(A, e, n) {
|
781
781
|
let t;
|
782
782
|
we(A, Ce, (i) => n(18, t = i)), ce.extend(De);
|
783
|
-
let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: v = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: g = "false" } = e, { translationurl:
|
783
|
+
let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: v = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: g = "false" } = e, { translationurl: L } = e, { assetsurl: X = "" } = e, { customerid: m } = e, { transactionid: b } = e, { clientstyling: Q = "" } = e, { clientstylingurl: S = "" } = e;
|
784
784
|
var D;
|
785
785
|
(function(i) {
|
786
786
|
i.Success = "Success", i.Maintenance = "Maintenance";
|
@@ -802,9 +802,9 @@ function vn(A, e, n) {
|
|
802
802
|
(function(i) {
|
803
803
|
i.Unknown = "Unknown", i.Text = "Text", i.Boolean = "Boolean", i.Number = "Number", i.Money = "Money", i.DateTime = "DateTime", i.Lookup = "Lookup", i.IpAddress = "IpAddress", i.Date = "Date", i.Time = "Time", i.LookupCollection = "LookupCollection", i.Hidden = "Hidden", i.Label = "Label", i.Password = "Password", i.Link = "Link", i.Image = "Image", i.Html = "Html", i.QRCode = "QR";
|
804
804
|
})(T || (T = {}));
|
805
|
-
const G = (i, [y,
|
805
|
+
const G = (i, [y, Z]) => [
|
806
806
|
...i,
|
807
|
-
...Array.isArray(y) ? [...y.map((k) => [k,
|
807
|
+
...Array.isArray(y) ? [...y.map((k) => [k, Z])] : [[y, Z]]
|
808
808
|
], C = new Map([
|
809
809
|
[["Unknown", 0], T.Unknown],
|
810
810
|
[["Text", 1], T.Text],
|
@@ -829,11 +829,11 @@ function vn(A, e, n) {
|
|
829
829
|
const pe = () => {
|
830
830
|
Fe(c);
|
831
831
|
}, Je = () => {
|
832
|
-
let i =
|
832
|
+
let i = L;
|
833
833
|
if (i)
|
834
834
|
return fetch(i).then((y) => y.json()).then((y) => {
|
835
|
-
Object.keys(y).forEach((
|
836
|
-
oe(
|
835
|
+
Object.keys(y).forEach((Z) => {
|
836
|
+
oe(Z, y[Z]);
|
837
837
|
});
|
838
838
|
}).catch((y) => {
|
839
839
|
});
|
@@ -846,8 +846,8 @@ function vn(A, e, n) {
|
|
846
846
|
i.innerHTML = Q, J.appendChild(i);
|
847
847
|
}, Xe = () => {
|
848
848
|
let i = new URL(S), y = document.createElement("style");
|
849
|
-
fetch(i.href).then((
|
850
|
-
y.innerHTML =
|
849
|
+
fetch(i.href).then((Z) => Z.text()).then((Z) => {
|
850
|
+
y.innerHTML = Z, setTimeout(
|
851
851
|
() => {
|
852
852
|
J.appendChild(y);
|
853
853
|
},
|
@@ -874,12 +874,12 @@ function vn(A, e, n) {
|
|
874
874
|
}, Ne = () => {
|
875
875
|
const i = new URL(`${f}/v1/player/${m}/payment/GetPaymentInfo`), y = new Headers();
|
876
876
|
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("X-SessionId", `${l}`), y.append("X-Client-Request-Timestamp", ce.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
877
|
-
const
|
877
|
+
const Z = {
|
878
878
|
method: "POST",
|
879
879
|
headers: y,
|
880
880
|
body: JSON.stringify({ TransactionCode: b })
|
881
881
|
};
|
882
|
-
fetch(i,
|
882
|
+
fetch(i, Z).then((k) => k.json()).then((k) => {
|
883
883
|
var ne, te, fe, Ae;
|
884
884
|
if (k.ResponseCode !== D.Success) {
|
885
885
|
n(16, P = k.ResponseCode), n(17, V = o.toLowerCase() === "false" || !o), ye();
|
@@ -937,18 +937,18 @@ function vn(A, e, n) {
|
|
937
937
|
});
|
938
938
|
}
|
939
939
|
return A.$$set = (i) => {
|
940
|
-
"endpoint" in i && n(22, f = i.endpoint), "session" in i && n(23, l = i.session), "lang" in i && n(24, c = i.lang), "local" in i && n(25, v = i.local), "showerrors" in i && n(26, o = i.showerrors), "showclosebutton" in i && n(0, s = i.showclosebutton), "showcontactbutton" in i && n(1, g = i.showcontactbutton), "translationurl" in i && n(2,
|
940
|
+
"endpoint" in i && n(22, f = i.endpoint), "session" in i && n(23, l = i.session), "lang" in i && n(24, c = i.lang), "local" in i && n(25, v = i.local), "showerrors" in i && n(26, o = i.showerrors), "showclosebutton" in i && n(0, s = i.showclosebutton), "showcontactbutton" in i && n(1, g = i.showcontactbutton), "translationurl" in i && n(2, L = i.translationurl), "assetsurl" in i && n(3, X = i.assetsurl), "customerid" in i && n(27, m = i.customerid), "transactionid" in i && n(28, b = i.transactionid), "clientstyling" in i && n(4, Q = i.clientstyling), "clientstylingurl" in i && n(5, S = i.clientstylingurl);
|
941
941
|
}, A.$$.update = () => {
|
942
942
|
A.$$.dirty[0] & /*endpoint, session, customerid, transactionid, showerrors*/
|
943
943
|
482344960 && f && l && m && b && o && Ne(), A.$$.dirty[0] & /*lang*/
|
944
944
|
16777216 && c && pe(), A.$$.dirty[0] & /*lang, translationurl*/
|
945
|
-
16777220 && c &&
|
945
|
+
16777220 && c && L && Je(), A.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
946
946
|
80 && Q && J && ge(), A.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
947
947
|
96 && S && J && Xe();
|
948
948
|
}, [
|
949
949
|
s,
|
950
950
|
g,
|
951
|
-
|
951
|
+
L,
|
952
952
|
X,
|
953
953
|
Q,
|
954
954
|
S,
|
@@ -987,7 +987,7 @@ class un extends Be {
|
|
987
987
|
e,
|
988
988
|
vn,
|
989
989
|
rn,
|
990
|
-
|
990
|
+
Ze,
|
991
991
|
{
|
992
992
|
endpoint: 22,
|
993
993
|
session: 23,
|
@@ -1086,7 +1086,7 @@ class un extends Be {
|
|
1086
1086
|
this.$$set({ clientstylingurl: e }), B();
|
1087
1087
|
}
|
1088
1088
|
}
|
1089
|
-
|
1089
|
+
Le(un, { endpoint: {}, session: {}, lang: {}, local: {}, showerrors: {}, showclosebutton: {}, showcontactbutton: {}, translationurl: {}, assetsurl: {}, customerid: {}, transactionid: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
1090
1090
|
export {
|
1091
1091
|
un as default
|
1092
1092
|
};
|