@everymatrix/cashier-page 1.72.1 → 1.73.0

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.
Files changed (87) hide show
  1. package/components/{CashierConfirmModal-4RYp7Eiq.js → CashierConfirmModal-BCk4hvRj.js} +3 -3
  2. package/components/{CashierConfirmModal-untxGhsx.js → CashierConfirmModal-DXlKhIue.js} +3 -3
  3. package/components/{CashierError-Zu3Whx-d.js → CashierError-BydkW7s_.js} +2 -2
  4. package/components/{CashierError-DfpdiheS.cjs → CashierError-Dpt_Z7yL.cjs} +1 -1
  5. package/components/{CashierError-yts9rF-i.js → CashierError-Dz_HsnJl.js} +2 -2
  6. package/components/{CashierHeader-BX6LLGb8.js → CashierHeader-86wrgmgP.js} +2 -2
  7. package/components/{CashierHeader-B9cdsOYh.cjs → CashierHeader-BXKYku0i.cjs} +1 -1
  8. package/components/{CashierHeader-C9V5_NVw.js → CashierHeader-DtS_U-De.js} +2 -2
  9. package/components/CashierIframeRedirect-BARMuRTc.cjs +1 -0
  10. package/components/CashierIframeRedirect-CmqcfGcT.js +429 -0
  11. package/components/CashierIframeRedirect-Xzpx4Rjk.js +429 -0
  12. package/components/CashierMethodDetails-Cf6KUGlj.cjs +99 -0
  13. package/components/{CashierMethodDetails-BC_DBHGl.js → CashierMethodDetails-DaUlJ18Q.js} +3452 -2899
  14. package/components/{CashierMethodDetails-ziDw_Jnc.js → CashierMethodDetails-oVkmdGDk.js} +3543 -2990
  15. package/components/CashierMethodsList-BKtn4kYZ.js +859 -0
  16. package/components/CashierMethodsList-BmNbGD7c.cjs +1 -0
  17. package/components/{CashierMethodsList-BSyNYqdF.js → CashierMethodsList-bnXzA9E8.js} +397 -402
  18. package/components/CashierModal-B4b12-Am.js +229 -0
  19. package/components/CashierModal-C-yyjQ8m.cjs +1 -0
  20. package/components/CashierModal-DCgiaC4V.js +229 -0
  21. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BZCaBrRm.js} +1 -1
  22. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CWqwdi55.js} +1 -1
  23. package/components/{CashierPage-eEYSJ1Ow.js → CashierPage-BhUYgsyn.js} +628 -475
  24. package/components/CashierPage-K6Sfcy3_.cjs +1 -0
  25. package/components/{CashierPage-TiCjNJq3.js → CashierPage-qGww6KeO.js} +629 -476
  26. package/components/CashierReceiptPage-B5GxOKJ9.cjs +1 -0
  27. package/components/CashierReceiptPage-BePAYhQV.js +1451 -0
  28. package/components/CashierReceiptPage-Hvc3tNuq.js +1453 -0
  29. package/components/CashierSessionExpirationModal-BCKPn-ln.cjs +2 -0
  30. package/components/CashierSessionExpirationModal-C24hf-_h.js +1205 -0
  31. package/components/CashierSessionExpirationModal-DfMX7unr.js +1205 -0
  32. package/components/CashierSpinner-BdeNFm1c.js +79 -0
  33. package/components/CashierSpinner-COjPdCUV.js +79 -0
  34. package/components/CashierSpinner-CpkB8Zoj.cjs +1 -0
  35. package/components/CashierTransactionHistory-BgDq7hN9.js +614 -0
  36. package/components/CashierTransactionHistory-BtkomNSc.js +614 -0
  37. package/components/CashierTransactionHistory-siYwxijY.cjs +1 -0
  38. package/components/{CashierVerifications-7iTWQJHM.js → CashierVerifications-7QimQj7T.js} +324 -277
  39. package/components/CashierVerifications-CjEiYZ7G.cjs +1 -0
  40. package/components/{CashierVerifications-DMXkMmMm.js → CashierVerifications-tYl7M23B.js} +332 -285
  41. package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-CM_ySf75.js} +91 -94
  42. package/components/CashierVideoModal-CZSRGjh-.cjs +1 -0
  43. package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-D4tXmX3D.js} +91 -94
  44. package/es2015/cashier-page.cjs +1 -1
  45. package/es2015/cashier-page.js +1 -1
  46. package/esnext/cashier-page.js +1 -1
  47. package/package.json +1 -1
  48. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  49. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  50. package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
  51. package/stencil/index-b2193545-BoSqyMpB.js +519 -0
  52. package/stencil/index-b2193545-D4dOaNlR.js +503 -0
  53. package/stencil/{ui-image-C7s6Uvn5.js → ui-image-BWJXFWH1.js} +1 -1
  54. package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-ByEXiBzx.cjs} +1 -1
  55. package/stencil/{ui-image-CHeV8e9p.js → ui-image-DIEeZy5u.js} +1 -1
  56. package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
  57. package/stencil/ui-skeleton-9boHSjtG.js +29 -0
  58. package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
  59. package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
  60. package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
  61. package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
  62. package/components/CashierIframeRedirect-3Ttb1Wdk.js +0 -378
  63. package/components/CashierIframeRedirect-BIMJNSib.js +0 -378
  64. package/components/CashierIframeRedirect-NF0DKl7A.cjs +0 -1
  65. package/components/CashierMethodDetails-BprYcCjn.cjs +0 -84
  66. package/components/CashierMethodsList-B_95Nh79.js +0 -864
  67. package/components/CashierMethodsList-DYPLv5X8.cjs +0 -1
  68. package/components/CashierModal-BrwIBn9a.js +0 -232
  69. package/components/CashierModal-BuM2Yq-y.cjs +0 -1
  70. package/components/CashierModal-ZfKvGxFq.js +0 -232
  71. package/components/CashierPage-CLnWIWI0.cjs +0 -1
  72. package/components/CashierReceiptPage-B_Pn8b0K.cjs +0 -1
  73. package/components/CashierReceiptPage-CCt-NEa3.js +0 -1174
  74. package/components/CashierReceiptPage-XKvPw6Kc.js +0 -1172
  75. package/components/CashierSessionExpirationModal-BTK1_Bln.js +0 -1208
  76. package/components/CashierSessionExpirationModal-CH6Jq1b5.js +0 -1208
  77. package/components/CashierSessionExpirationModal-NsD2ZKK4.cjs +0 -2
  78. package/components/CashierSpinner-BAfTKICK.js +0 -71
  79. package/components/CashierSpinner-BhmndmKG.cjs +0 -1
  80. package/components/CashierSpinner-y6HodxHT.js +0 -71
  81. package/components/CashierTransactionHistory-CAZZIa-n.js +0 -569
  82. package/components/CashierTransactionHistory-CSbp2Y4-.js +0 -569
  83. package/components/CashierTransactionHistory-DeOc9EpW.cjs +0 -1
  84. package/components/CashierVerifications-CWGsoL5R.cjs +0 -1
  85. package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
  86. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  87. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
@@ -0,0 +1,229 @@
1
+ import { Q as O, S as R, b as T, s as A, f as g, c as D, e as j, t as b, g as m, k as F, l as G, m as E, x as N, F as P, d as Q, R as M, G as C, u as U, h as I, j as J, o as S, T as K, p as y, v as h, A as v, E as V } from "./CashierConfirmModal-BCk4hvRj.js";
2
+ import { s as X, a as Y, b as Z } from "./CashierIframeRedirect-CmqcfGcT.js";
3
+ function k(i, { delay: t = 0, duration: e = 400, easing: n = O } = {}) {
4
+ const r = +getComputedStyle(i).opacity;
5
+ return {
6
+ delay: t,
7
+ duration: e,
8
+ easing: n,
9
+ css: (o) => `opacity: ${o * r}`
10
+ };
11
+ }
12
+ function $(i) {
13
+ D(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
+ }
15
+ const tt = (i) => ({}), x = (i) => ({});
16
+ function z(i) {
17
+ let t, e, n, r, o, d;
18
+ const f = (
19
+ /*#slots*/
20
+ i[10].content
21
+ ), a = Q(
22
+ f,
23
+ i,
24
+ /*$$scope*/
25
+ i[9],
26
+ x
27
+ );
28
+ return {
29
+ c() {
30
+ t = y("div"), e = y("div"), n = y("div"), a && a.c(), h(n, "class", "ModalContainer"), h(n, "part", "ModalContainer"), h(e, "class", "ModalWindow"), h(e, "part", "ModalWindow"), h(e, "id", "Modal"), C(() => (
31
+ /*div1_elementresize_handler*/
32
+ i[12].call(e)
33
+ )), h(t, "part", "CustomStylingContainer");
34
+ },
35
+ m(l, c) {
36
+ E(l, t, c), S(t, e), S(e, n), a && a.m(n, null), i[11](e), r = K(
37
+ e,
38
+ /*div1_elementresize_handler*/
39
+ i[12].bind(e)
40
+ ), i[13](t), d = !0;
41
+ },
42
+ p(l, c) {
43
+ i = l, a && a.p && (!d || c & /*$$scope*/
44
+ 512) && U(
45
+ a,
46
+ f,
47
+ i,
48
+ /*$$scope*/
49
+ i[9],
50
+ d ? J(
51
+ f,
52
+ /*$$scope*/
53
+ i[9],
54
+ c,
55
+ tt
56
+ ) : I(
57
+ /*$$scope*/
58
+ i[9]
59
+ ),
60
+ x
61
+ );
62
+ },
63
+ i(l) {
64
+ d || (m(a, l), l && C(() => {
65
+ d && (o || (o = M(
66
+ e,
67
+ k,
68
+ /*duration*/
69
+ i[2],
70
+ !0
71
+ )), o.run(1));
72
+ }), d = !0);
73
+ },
74
+ o(l) {
75
+ b(a, l), l && (o || (o = M(
76
+ e,
77
+ k,
78
+ /*duration*/
79
+ i[2],
80
+ !1
81
+ )), o.run(0)), d = !1;
82
+ },
83
+ d(l) {
84
+ l && j(t), a && a.d(l), i[11](null), r(), l && o && o.end(), i[13](null);
85
+ }
86
+ };
87
+ }
88
+ function et(i) {
89
+ let t, e, n = (
90
+ /*show*/
91
+ i[5] && z(i)
92
+ );
93
+ return {
94
+ c() {
95
+ n && n.c(), t = N();
96
+ },
97
+ m(r, o) {
98
+ n && n.m(r, o), E(r, t, o), e = !0;
99
+ },
100
+ p(r, [o]) {
101
+ /*show*/
102
+ 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 && (F(), b(n, 1, 1, () => {
104
+ n = null;
105
+ }), G());
106
+ },
107
+ i(r) {
108
+ e || (m(n), e = !0);
109
+ },
110
+ o(r) {
111
+ b(n), e = !1;
112
+ },
113
+ d(r) {
114
+ r && j(t), n && n.d(r);
115
+ }
116
+ };
117
+ }
118
+ function it(i, t, e) {
119
+ 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 B = () => {
121
+ e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
122
+ }, p = (s) => {
123
+ s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && B();
124
+ };
125
+ P(() => (window.addEventListener("message", p, !1), () => {
126
+ window.removeEventListener("message", p);
127
+ }));
128
+ function H(s) {
129
+ v[s ? "unshift" : "push"](() => {
130
+ _ = s, e(4, _);
131
+ });
132
+ }
133
+ function L() {
134
+ l = this.clientWidth, c = this.clientHeight, e(0, l), e(1, c);
135
+ }
136
+ function q(s) {
137
+ v[s ? "unshift" : "push"](() => {
138
+ u = s, e(3, u);
139
+ });
140
+ }
141
+ return i.$$set = (s) => {
142
+ "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
+ }, i.$$.update = () => {
144
+ i.$$.dirty & /*clientstyling, customStylingContainer*/
145
+ 136 && d && u && X(u, d), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
146
+ 264 && f && u && Y(u, f), i.$$.dirty & /*mbsource, customStylingContainer*/
147
+ 72 && o && u && Z(u, `${o}.Style`);
148
+ }, [
149
+ l,
150
+ c,
151
+ a,
152
+ u,
153
+ _,
154
+ w,
155
+ o,
156
+ d,
157
+ f,
158
+ r,
159
+ n,
160
+ H,
161
+ L,
162
+ q
163
+ ];
164
+ }
165
+ class W extends R {
166
+ constructor(t) {
167
+ super(), T(
168
+ this,
169
+ t,
170
+ it,
171
+ et,
172
+ A,
173
+ {
174
+ mbsource: 6,
175
+ clientstyling: 7,
176
+ clientstylingurl: 8,
177
+ duration: 2,
178
+ width: 0,
179
+ height: 1
180
+ },
181
+ $
182
+ );
183
+ }
184
+ get mbsource() {
185
+ return this.$$.ctx[6];
186
+ }
187
+ set mbsource(t) {
188
+ this.$$set({ mbsource: t }), g();
189
+ }
190
+ get clientstyling() {
191
+ return this.$$.ctx[7];
192
+ }
193
+ set clientstyling(t) {
194
+ this.$$set({ clientstyling: t }), g();
195
+ }
196
+ get clientstylingurl() {
197
+ return this.$$.ctx[8];
198
+ }
199
+ set clientstylingurl(t) {
200
+ this.$$set({ clientstylingurl: t }), g();
201
+ }
202
+ get duration() {
203
+ return this.$$.ctx[2];
204
+ }
205
+ set duration(t) {
206
+ this.$$set({ duration: t }), g();
207
+ }
208
+ get width() {
209
+ return this.$$.ctx[0];
210
+ }
211
+ set width(t) {
212
+ this.$$set({ width: t }), g();
213
+ }
214
+ get height() {
215
+ return this.$$.ctx[1];
216
+ }
217
+ set height(t) {
218
+ this.$$set({ height: t }), g();
219
+ }
220
+ }
221
+ V(W, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
222
+ const ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
+ __proto__: null,
224
+ default: W
225
+ }, Symbol.toStringTag, { value: "Module" }));
226
+ export {
227
+ ot as C,
228
+ k as f
229
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./CashierConfirmModal-DMmJumcl.cjs"),m=require("./CashierIframeRedirect-BARMuRTc.cjs");function w(n,{delay:e=0,duration:i=400,easing:r=t.identity}={}){const l=+getComputedStyle(n).opacity;return{delay:e,duration:i,easing:r,css:s=>`opacity: ${s*l}`}}function x(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 z=n=>({}),b=n=>({});function p(n){let e,i,r,l,s,c;const h=n[10].content,d=t.create_slot(h,n,n[9],b);return{c(){e=t.element("div"),i=t.element("div"),r=t.element("div"),d&&d.c(),t.attr(r,"class","ModalContainer"),t.attr(r,"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,r),d&&d.m(r,null),n[11](i),l=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,z):t.get_all_dirty_from_scope(n[9]),b)},i(a){c||(t.transition_in(d,a),a&&t.add_render_callback(()=>{c&&(s||(s=t.create_bidirectional_transition(i,w,n[2],!0)),s.run(1))}),c=!0)},o(a){t.transition_out(d,a),a&&(s||(s=t.create_bidirectional_transition(i,w,n[2],!1)),s.run(0)),c=!1},d(a){a&&t.detach(e),d&&d.d(a),n[11](null),l(),a&&s&&s.end(),n[13](null)}}}function W(n){let e,i,r=n[5]&&p(n);return{c(){r&&r.c(),e=t.empty()},m(l,s){r&&r.m(l,s),t.insert(l,e,s),i=!0},p(l,[s]){l[5]?r?(r.p(l,s),s&32&&t.transition_in(r,1)):(r=p(l),r.c(),t.transition_in(r,1),r.m(e.parentNode,e)):r&&(t.group_outros(),t.transition_out(r,1,1,()=>{r=null}),t.check_outros())},i(l){i||(t.transition_in(r),i=!0)},o(l){t.transition_out(r),i=!1},d(l){l&&t.detach(e),r&&r.d(l)}}}function j(n,e,i){let{$$slots:r={},$$scope:l}=e,{mbsource:s}=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)},y=o=>{o.data.type=="ShowCashierModal"&&(i(5,_=!0),window.postMessage({type:"DisableScroll"},window.location.href)),o.data.type=="HideCashierModal"&&M()};t.onMount(()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{g=o,i(4,g)})}function k(){a=this.clientWidth,u=this.clientHeight,i(0,a),i(1,u)}function v(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,i(3,f)})}return n.$$set=o=>{"mbsource"in o&&i(6,s=o.mbsource),"clientstyling"in o&&i(7,c=o.clientstyling),"clientstylingurl"in o&&i(8,h=o.clientstylingurl),"duration"in o&&i(2,d=o.duration),"width"in o&&i(0,a=o.width),"height"in o&&i(1,u=o.height),"$$scope"in o&&i(9,l=o.$$scope)},n.$$.update=()=>{n.$$.dirty&136&&c&&f&&m.setClientStyling(f,c),n.$$.dirty&264&&h&&f&&m.setClientStylingURL(f,h),n.$$.dirty&72&&s&&f&&m.setStreamStyling(f,`${s}.Style`)},[a,u,d,f,g,_,s,c,h,l,r,S,k,v]}class C extends t.SvelteComponent{constructor(e){super(),t.init(this,e,j,W,t.safe_not_equal,{mbsource:6,clientstyling:7,clientstylingurl:8,duration:2,width:0,height:1},x)}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(C,{mbsource:{},clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["content"],[],!0);const q=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=q;exports.fade=w;
@@ -0,0 +1,229 @@
1
+ import { Q as D, S as O, b as R, s as T, f as g, c as F, e as j, t as b, g as m, D as G, k as N, l as E, w as P, F as Q, d as U, R as M, G as C, u as A, h as I, j as J, m as S, T as K, o as y, q as h, z as v, E as V } from "./CashierConfirmModal-DXlKhIue.js";
2
+ import { s as X, a as Y, b as Z } from "./CashierIframeRedirect-Xzpx4Rjk.js";
3
+ function k(i, { delay: t = 0, duration: e = 400, easing: n = D } = {}) {
4
+ const r = +getComputedStyle(i).opacity;
5
+ return {
6
+ delay: t,
7
+ duration: e,
8
+ easing: n,
9
+ css: (o) => `opacity: ${o * r}`
10
+ };
11
+ }
12
+ function $(i) {
13
+ F(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
+ }
15
+ const tt = (i) => ({}), x = (i) => ({});
16
+ function z(i) {
17
+ let t, e, n, r, o, d;
18
+ const f = (
19
+ /*#slots*/
20
+ i[10].content
21
+ ), a = U(
22
+ f,
23
+ i,
24
+ /*$$scope*/
25
+ i[9],
26
+ x
27
+ );
28
+ return {
29
+ c() {
30
+ t = y("div"), e = y("div"), n = y("div"), a && a.c(), h(n, "class", "ModalContainer"), h(n, "part", "ModalContainer"), h(e, "class", "ModalWindow"), h(e, "part", "ModalWindow"), h(e, "id", "Modal"), C(() => (
31
+ /*div1_elementresize_handler*/
32
+ i[12].call(e)
33
+ )), h(t, "part", "CustomStylingContainer");
34
+ },
35
+ m(l, c) {
36
+ E(l, t, c), S(t, e), S(e, n), a && a.m(n, null), i[11](e), r = K(
37
+ e,
38
+ /*div1_elementresize_handler*/
39
+ i[12].bind(e)
40
+ ), i[13](t), d = !0;
41
+ },
42
+ p(l, c) {
43
+ i = l, a && a.p && (!d || c & /*$$scope*/
44
+ 512) && A(
45
+ a,
46
+ f,
47
+ i,
48
+ /*$$scope*/
49
+ i[9],
50
+ d ? J(
51
+ f,
52
+ /*$$scope*/
53
+ i[9],
54
+ c,
55
+ tt
56
+ ) : I(
57
+ /*$$scope*/
58
+ i[9]
59
+ ),
60
+ x
61
+ );
62
+ },
63
+ i(l) {
64
+ d || (m(a, l), l && C(() => {
65
+ d && (o || (o = M(
66
+ e,
67
+ k,
68
+ /*duration*/
69
+ i[2],
70
+ !0
71
+ )), o.run(1));
72
+ }), d = !0);
73
+ },
74
+ o(l) {
75
+ b(a, l), l && (o || (o = M(
76
+ e,
77
+ k,
78
+ /*duration*/
79
+ i[2],
80
+ !1
81
+ )), o.run(0)), d = !1;
82
+ },
83
+ d(l) {
84
+ l && j(t), a && a.d(l), i[11](null), r(), l && o && o.end(), i[13](null);
85
+ }
86
+ };
87
+ }
88
+ function et(i) {
89
+ let t, e, n = (
90
+ /*show*/
91
+ i[5] && z(i)
92
+ );
93
+ return {
94
+ c() {
95
+ n && n.c(), t = P();
96
+ },
97
+ m(r, o) {
98
+ n && n.m(r, o), E(r, t, o), e = !0;
99
+ },
100
+ p(r, [o]) {
101
+ /*show*/
102
+ 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 && (G(), b(n, 1, 1, () => {
104
+ n = null;
105
+ }), N());
106
+ },
107
+ i(r) {
108
+ e || (m(n), e = !0);
109
+ },
110
+ o(r) {
111
+ b(n), e = !1;
112
+ },
113
+ d(r) {
114
+ r && j(t), n && n.d(r);
115
+ }
116
+ };
117
+ }
118
+ function it(i, t, e) {
119
+ 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 q = () => {
121
+ e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
122
+ }, p = (s) => {
123
+ s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && q();
124
+ };
125
+ Q(() => (window.addEventListener("message", p, !1), () => {
126
+ window.removeEventListener("message", p);
127
+ }));
128
+ function B(s) {
129
+ v[s ? "unshift" : "push"](() => {
130
+ _ = s, e(4, _);
131
+ });
132
+ }
133
+ function H() {
134
+ l = this.clientWidth, c = this.clientHeight, e(0, l), e(1, c);
135
+ }
136
+ function L(s) {
137
+ v[s ? "unshift" : "push"](() => {
138
+ u = s, e(3, u);
139
+ });
140
+ }
141
+ return i.$$set = (s) => {
142
+ "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
+ }, i.$$.update = () => {
144
+ i.$$.dirty & /*clientstyling, customStylingContainer*/
145
+ 136 && d && u && X(u, d), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
146
+ 264 && f && u && Y(u, f), i.$$.dirty & /*mbsource, customStylingContainer*/
147
+ 72 && o && u && Z(u, `${o}.Style`);
148
+ }, [
149
+ l,
150
+ c,
151
+ a,
152
+ u,
153
+ _,
154
+ w,
155
+ o,
156
+ d,
157
+ f,
158
+ r,
159
+ n,
160
+ B,
161
+ H,
162
+ L
163
+ ];
164
+ }
165
+ class W extends O {
166
+ constructor(t) {
167
+ super(), R(
168
+ this,
169
+ t,
170
+ it,
171
+ et,
172
+ T,
173
+ {
174
+ mbsource: 6,
175
+ clientstyling: 7,
176
+ clientstylingurl: 8,
177
+ duration: 2,
178
+ width: 0,
179
+ height: 1
180
+ },
181
+ $
182
+ );
183
+ }
184
+ get mbsource() {
185
+ return this.$$.ctx[6];
186
+ }
187
+ set mbsource(t) {
188
+ this.$$set({ mbsource: t }), g();
189
+ }
190
+ get clientstyling() {
191
+ return this.$$.ctx[7];
192
+ }
193
+ set clientstyling(t) {
194
+ this.$$set({ clientstyling: t }), g();
195
+ }
196
+ get clientstylingurl() {
197
+ return this.$$.ctx[8];
198
+ }
199
+ set clientstylingurl(t) {
200
+ this.$$set({ clientstylingurl: t }), g();
201
+ }
202
+ get duration() {
203
+ return this.$$.ctx[2];
204
+ }
205
+ set duration(t) {
206
+ this.$$set({ duration: t }), g();
207
+ }
208
+ get width() {
209
+ return this.$$.ctx[0];
210
+ }
211
+ set width(t) {
212
+ this.$$set({ width: t }), g();
213
+ }
214
+ get height() {
215
+ return this.$$.ctx[1];
216
+ }
217
+ set height(t) {
218
+ this.$$set({ height: t }), g();
219
+ }
220
+ }
221
+ V(W, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
222
+ const ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
+ __proto__: null,
224
+ default: W
225
+ }, Symbol.toStringTag, { value: "Module" }));
226
+ export {
227
+ ot as C,
228
+ k as f
229
+ };
@@ -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, x as p, l as z, m as f, A as E, o as h, y as x, p as S, q as L, z as M, E as T } from "./CashierConfirmModal-untxGhsx.js";
1
+ import { S as C, b as v, s as _, f as d, c as N, n as b, e as k, x as p, l as z, m as f, A as E, o as h, y as x, p as S, q as L, z as M, E as T } from "./CashierConfirmModal-DXlKhIue.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
  }
@@ -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, m as z, o as f, B as E, p as h, z as x, q as S, v as L, A as M, E as T } from "./CashierConfirmModal-4RYp7Eiq.js";
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, m as z, o as f, B as E, p as h, z as x, q as S, v as L, A as M, E as T } from "./CashierConfirmModal-BCk4hvRj.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
  }