@everymatrix/cashier-method-details 1.45.0 → 1.45.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/components/CashierConfirmModal-BsoB5fQM.cjs +4 -0
  2. package/components/{CashierConfirmModal-B-t1-wAt.js → CashierConfirmModal-Dw8BnUfp.js} +168 -168
  3. package/components/{CashierError-DaumM6Zr.js → CashierError-B_iMgTfr.js} +28 -27
  4. package/components/CashierError-ClzxZoH7.cjs +5 -0
  5. package/components/CashierHeader-BU_vM2lH.cjs +1 -0
  6. package/components/CashierHeader-VE5z702l.js +360 -0
  7. package/components/{CashierIframeRedirect-Bilctj-5.js → CashierIframeRedirect-CUdjcENK.js} +72 -73
  8. package/components/CashierIframeRedirect-DSYHz0IC.cjs +1 -0
  9. package/components/{CashierMethodDetails-CJU3RjOA.js → CashierMethodDetails-Bf-5bGxo.js} +1647 -1621
  10. package/components/CashierMethodDetails-C4PD_IWn.cjs +18 -0
  11. package/components/CashierModal-9BGQdqOF.cjs +1 -0
  12. package/components/CashierModal-BInN_GEx.js +227 -0
  13. package/components/CashierNotifications-BhCyEcyg.js +136 -0
  14. package/components/CashierNotifications-FlAVIynI.cjs +1 -0
  15. package/components/CashierReceiptPage-BVJ9-Fkt.cjs +1 -0
  16. package/components/{CashierReceiptPage-DT7FhfRz.js → CashierReceiptPage-CWW92liL.js} +242 -243
  17. package/components/CashierSpinner-DREUPtXI.js +71 -0
  18. package/components/CashierSpinner-DUwdQyI3.cjs +1 -0
  19. package/es2015/cashier-method-details.cjs +1 -1
  20. package/es2015/cashier-method-details.js +1 -1
  21. package/package.json +2 -2
  22. package/components/CashierConfirmModal-O8Y6vOPF.cjs +0 -4
  23. package/components/CashierError-CnDiY61e.cjs +0 -5
  24. package/components/CashierHeader-4ARwc1sM.cjs +0 -1
  25. package/components/CashierHeader-CYcLko5g.js +0 -361
  26. package/components/CashierIframeRedirect-BOPLcueW.cjs +0 -1
  27. package/components/CashierMethodDetails-7O4DrJHq.cjs +0 -18
  28. package/components/CashierModal-CdNYc0Aj.js +0 -220
  29. package/components/CashierModal-DjXj2L6b.cjs +0 -1
  30. package/components/CashierNotifications-BVX2JvTh.cjs +0 -1
  31. package/components/CashierNotifications-DOgyzpyH.js +0 -136
  32. package/components/CashierReceiptPage-D9_BjYHP.cjs +0 -1
  33. package/components/CashierSpinner-BUe-mWNE.js +0 -71
  34. package/components/CashierSpinner-C7awkOxo.cjs +0 -1
@@ -0,0 +1,227 @@
1
+ import { R as q, S as D, b as F, f as g, c as G, a as N, d as A, x as I, k as H, t as m, p, q as J, v as L, H as K, e as O, g as y, j as h, G as M, l as v, T as P, u as Q, m as V, o as X, U as k, B as Y, C as x } from "./CashierConfirmModal-Dw8BnUfp.js";
2
+ function S(n, { delay: t = 0, duration: e = 400, easing: i = q } = {}) {
3
+ const o = +getComputedStyle(n).opacity;
4
+ return {
5
+ delay: t,
6
+ duration: e,
7
+ easing: i,
8
+ css: (l) => `opacity: ${l * o}`
9
+ };
10
+ }
11
+ function Z(n) {
12
+ A(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
+ }
14
+ const $ = (n) => ({}), z = (n) => ({});
15
+ function E(n) {
16
+ let t, e, i, o, l, d;
17
+ const f = (
18
+ /*#slots*/
19
+ n[9].content
20
+ ), r = O(
21
+ f,
22
+ n,
23
+ /*$$scope*/
24
+ n[8],
25
+ z
26
+ );
27
+ return {
28
+ c() {
29
+ t = y("div"), e = y("div"), i = y("div"), r && r.c(), h(i, "class", "ModalContainer"), h(i, "part", "ModalContainer"), h(e, "class", "ModalWindow"), h(e, "part", "ModalWindow"), h(e, "id", "Modal"), M(() => (
30
+ /*div1_elementresize_handler*/
31
+ n[11].call(e)
32
+ )), h(t, "part", "CustomStylingContainer");
33
+ },
34
+ m(a, c) {
35
+ H(a, t, c), v(t, e), v(e, i), r && r.m(i, null), n[10](e), o = P(
36
+ e,
37
+ /*div1_elementresize_handler*/
38
+ n[11].bind(e)
39
+ ), n[12](t), d = !0;
40
+ },
41
+ p(a, c) {
42
+ n = a, r && r.p && (!d || c & /*$$scope*/
43
+ 256) && Q(
44
+ r,
45
+ f,
46
+ n,
47
+ /*$$scope*/
48
+ n[8],
49
+ d ? X(
50
+ f,
51
+ /*$$scope*/
52
+ n[8],
53
+ c,
54
+ $
55
+ ) : V(
56
+ /*$$scope*/
57
+ n[8]
58
+ ),
59
+ z
60
+ );
61
+ },
62
+ i(a) {
63
+ d || (m(r, a), a && M(() => {
64
+ d && (l || (l = k(
65
+ e,
66
+ S,
67
+ /*duration*/
68
+ n[2],
69
+ !0
70
+ )), l.run(1));
71
+ }), d = !0);
72
+ },
73
+ o(a) {
74
+ p(r, a), a && (l || (l = k(
75
+ e,
76
+ S,
77
+ /*duration*/
78
+ n[2],
79
+ !1
80
+ )), l.run(0)), d = !1;
81
+ },
82
+ d(a) {
83
+ a && L(t), r && r.d(a), n[10](null), o(), a && l && l.end(), n[12](null);
84
+ }
85
+ };
86
+ }
87
+ function tt(n) {
88
+ let t, e, i = (
89
+ /*show*/
90
+ n[5] && E(n)
91
+ );
92
+ return {
93
+ c() {
94
+ i && i.c(), t = I();
95
+ },
96
+ m(o, l) {
97
+ i && i.m(o, l), H(o, t, l), e = !0;
98
+ },
99
+ p(o, [l]) {
100
+ /*show*/
101
+ o[5] ? i ? (i.p(o, l), l & /*show*/
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
+ i = null;
104
+ }), J());
105
+ },
106
+ i(o) {
107
+ e || (m(i), e = !0);
108
+ },
109
+ o(o) {
110
+ p(i), e = !1;
111
+ },
112
+ d(o) {
113
+ o && L(t), i && i.d(o);
114
+ }
115
+ };
116
+ }
117
+ function et(n, t, e) {
118
+ let { $$slots: i = {}, $$scope: o } = t, { clientstyling: l = "" } = t, { clientstylingurl: d = "" } = t, { duration: f = 200 } = t, { width: r } = t, { height: a } = t, c, u, w = !1;
119
+ const W = () => {
120
+ e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
121
+ }, b = (s) => {
122
+ s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && W();
123
+ }, B = () => {
124
+ let s = document.createElement("style");
125
+ s.innerHTML = l, u.appendChild(s);
126
+ }, T = () => {
127
+ let s = new URL(d), C = document.createElement("style");
128
+ fetch(s.href).then((_) => _.text()).then((_) => {
129
+ C.innerHTML = _, setTimeout(
130
+ () => {
131
+ u.appendChild(C);
132
+ },
133
+ 1
134
+ );
135
+ });
136
+ };
137
+ K(() => (window.addEventListener("message", b, !1), () => {
138
+ window.removeEventListener("message", b);
139
+ }));
140
+ function j(s) {
141
+ x[s ? "unshift" : "push"](() => {
142
+ c = s, e(4, c);
143
+ });
144
+ }
145
+ function R() {
146
+ r = this.clientWidth, a = this.clientHeight, e(0, r), e(1, a);
147
+ }
148
+ function U(s) {
149
+ x[s ? "unshift" : "push"](() => {
150
+ u = s, e(3, u);
151
+ });
152
+ }
153
+ return n.$$set = (s) => {
154
+ "clientstyling" in s && e(6, l = s.clientstyling), "clientstylingurl" in s && e(7, d = s.clientstylingurl), "duration" in s && e(2, f = s.duration), "width" in s && e(0, r = s.width), "height" in s && e(1, a = s.height), "$$scope" in s && e(8, o = s.$$scope);
155
+ }, n.$$.update = () => {
156
+ n.$$.dirty & /*clientstyling, customStylingContainer*/
157
+ 72 && l && u && B(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
158
+ 136 && d && u && T();
159
+ }, [
160
+ r,
161
+ a,
162
+ f,
163
+ u,
164
+ c,
165
+ w,
166
+ l,
167
+ d,
168
+ o,
169
+ i,
170
+ j,
171
+ R,
172
+ U
173
+ ];
174
+ }
175
+ class nt extends D {
176
+ constructor(t) {
177
+ super(), F(
178
+ this,
179
+ t,
180
+ et,
181
+ tt,
182
+ N,
183
+ {
184
+ clientstyling: 6,
185
+ clientstylingurl: 7,
186
+ duration: 2,
187
+ width: 0,
188
+ height: 1
189
+ },
190
+ Z
191
+ );
192
+ }
193
+ get clientstyling() {
194
+ return this.$$.ctx[6];
195
+ }
196
+ set clientstyling(t) {
197
+ this.$$set({ clientstyling: t }), g();
198
+ }
199
+ get clientstylingurl() {
200
+ return this.$$.ctx[7];
201
+ }
202
+ set clientstylingurl(t) {
203
+ this.$$set({ clientstylingurl: t }), g();
204
+ }
205
+ get duration() {
206
+ return this.$$.ctx[2];
207
+ }
208
+ set duration(t) {
209
+ this.$$set({ duration: t }), g();
210
+ }
211
+ get width() {
212
+ return this.$$.ctx[0];
213
+ }
214
+ set width(t) {
215
+ this.$$set({ width: t }), g();
216
+ }
217
+ get height() {
218
+ return this.$$.ctx[1];
219
+ }
220
+ set height(t) {
221
+ this.$$set({ height: t }), g();
222
+ }
223
+ }
224
+ G(nt, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
225
+ export {
226
+ nt as default
227
+ };
@@ -0,0 +1,136 @@
1
+ import { S as w, b as v, f as d, c as _, a as k, d as N, g, y, h as z, j as E, k as S, l as f, A as L, z as p, n as x, v as T, C as H } from "./CashierConfirmModal-Dw8BnUfp.js";
2
+ function M(n) {
3
+ N(n, "svelte-1cfukt5", ".CashierNotifications{position:fixed;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
+ }
5
+ function R(n) {
6
+ let t, s, r, u, l, a, i, m;
7
+ return {
8
+ c() {
9
+ t = g("div"), s = g("span"), r = y(
10
+ /*text*/
11
+ n[0]
12
+ ), u = z(), l = g("button"), a = y(
13
+ /*button*/
14
+ n[1]
15
+ ), E(t, "class", "CashierNotifications");
16
+ },
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 = L(
19
+ l,
20
+ "click",
21
+ /*notificationClick*/
22
+ n[3]
23
+ ), i = !0);
24
+ },
25
+ p(o, [c]) {
26
+ c & /*text*/
27
+ 1 && p(
28
+ r,
29
+ /*text*/
30
+ o[0]
31
+ ), c & /*button*/
32
+ 2 && p(
33
+ a,
34
+ /*button*/
35
+ o[1]
36
+ );
37
+ },
38
+ i: x,
39
+ o: x,
40
+ d(o) {
41
+ o && T(t), n[6](null), i = !1, m();
42
+ }
43
+ };
44
+ }
45
+ function U(n, t, s) {
46
+ let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
47
+ const m = () => {
48
+ dispatchEvent(new CustomEvent(
49
+ "notificationButtonClick",
50
+ {
51
+ bubbles: !0,
52
+ cancelable: !0,
53
+ composed: !0
54
+ }
55
+ ));
56
+ }, o = () => {
57
+ let e = document.createElement("style");
58
+ e.innerHTML = l, i.appendChild(e);
59
+ }, c = () => {
60
+ let e = new URL(a), b = document.createElement("style");
61
+ fetch(e.href).then((h) => h.text()).then((h) => {
62
+ b.innerHTML = h, setTimeout(
63
+ () => {
64
+ i.appendChild(b);
65
+ },
66
+ 1
67
+ );
68
+ });
69
+ };
70
+ function C(e) {
71
+ H[e ? "unshift" : "push"](() => {
72
+ i = e, s(2, i);
73
+ });
74
+ }
75
+ return n.$$set = (e) => {
76
+ "text" in e && s(0, r = e.text), "button" in e && s(1, u = e.button), "clientstyling" in e && s(4, l = e.clientstyling), "clientstylingurl" in e && s(5, a = e.clientstylingurl);
77
+ }, n.$$.update = () => {
78
+ n.$$.dirty & /*clientstyling, customStylingContainer*/
79
+ 20 && l && i && o(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
80
+ 36 && a && i && c();
81
+ }, [
82
+ r,
83
+ u,
84
+ i,
85
+ m,
86
+ l,
87
+ a,
88
+ C
89
+ ];
90
+ }
91
+ class j extends w {
92
+ constructor(t) {
93
+ super(), v(
94
+ this,
95
+ t,
96
+ U,
97
+ R,
98
+ k,
99
+ {
100
+ text: 0,
101
+ button: 1,
102
+ clientstyling: 4,
103
+ clientstylingurl: 5
104
+ },
105
+ M
106
+ );
107
+ }
108
+ get text() {
109
+ return this.$$.ctx[0];
110
+ }
111
+ set text(t) {
112
+ this.$$set({ text: t }), d();
113
+ }
114
+ get button() {
115
+ return this.$$.ctx[1];
116
+ }
117
+ set button(t) {
118
+ this.$$set({ button: t }), d();
119
+ }
120
+ get clientstyling() {
121
+ return this.$$.ctx[4];
122
+ }
123
+ set clientstyling(t) {
124
+ this.$$set({ clientstyling: t }), d();
125
+ }
126
+ get clientstylingurl() {
127
+ return this.$$.ctx[5];
128
+ }
129
+ set clientstylingurl(t) {
130
+ this.$$set({ clientstylingurl: t }), d();
131
+ }
132
+ }
133
+ _(j, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
134
+ export {
135
+ j as default
136
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BsoB5fQM.cjs");function b(i){t.append_styles(i,"svelte-1cfukt5",".CashierNotifications{position:fixed;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 y(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=()=>{dispatchEvent(new CustomEvent("notificationButtonClick",{bubbles:!0,cancelable:!0,composed:!0}))},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(this,e,x,y,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},b)}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;