@everymatrix/cashier-method-details 1.54.6 → 1.54.9

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 (31) hide show
  1. package/components/CashierConfirmModal-BeEK5pGj.cjs +4 -0
  2. package/components/CashierConfirmModal-C4oTmnti.js +1029 -0
  3. package/components/{CashierConfirmModal-agjo7360.js → CashierConfirmModal-DX30udCt.js} +57 -57
  4. package/components/CashierError-CHTIdJFG.cjs +5 -0
  5. package/components/CashierError-DK-FE2t4.js +3764 -0
  6. package/components/{CashierError-MwSUmltg.js → CashierError-dKzawjGf.js} +496 -500
  7. package/components/{CashierHeader-t-mKIY-_.js → CashierHeader-CcCfgKKj.js} +82 -82
  8. package/components/CashierHeader-UXnGiPlG.cjs +1 -0
  9. package/components/CashierHeader-cbMs-Ax4.js +401 -0
  10. package/components/{CashierIframeRedirect-OvWRLGOx.js → CashierIframeRedirect-9hpAaFQR.js} +30 -30
  11. package/components/CashierIframeRedirect-OEVjAXWH.cjs +1 -0
  12. package/components/CashierIframeRedirect-pJRalaIp.js +378 -0
  13. package/components/{CashierMethodDetails-BcnSmVkq.js → CashierMethodDetails-1_TyHFFC.js} +273 -273
  14. package/components/CashierMethodDetails-B04izHcR.js +8164 -0
  15. package/components/CashierMethodDetails-BPNoH4th.cjs +18 -0
  16. package/components/{CashierModal-ClIRlRW4.js → CashierModal-DYzmydyY.js} +27 -27
  17. package/components/CashierModal-Dh8HuQn-.cjs +1 -0
  18. package/components/CashierModal-nl-2Ol6U.js +227 -0
  19. package/components/CashierNotifications-C2D2LjK6.cjs +1 -0
  20. package/components/{CashierNotifications-Ip7CfQWs.js → CashierNotifications-DE6lzn06.js} +19 -19
  21. package/components/CashierNotifications-DH1lz02f.js +129 -0
  22. package/components/{CashierReceiptPage-CIlcvMvB.js → CashierReceiptPage-Br7iOxYZ.js} +76 -76
  23. package/components/CashierReceiptPage-C24qQTyI.cjs +1 -0
  24. package/components/CashierReceiptPage-Zd1wX42u.js +1156 -0
  25. package/components/CashierSpinner-BYRAyXQ3.cjs +1 -0
  26. package/components/{CashierSpinner-DjTQcN-x.js → CashierSpinner-DG1S-dlx.js} +25 -25
  27. package/components/CashierSpinner-DRAwOlC0.js +71 -0
  28. package/es2015/cashier-method-details.cjs +1 -0
  29. package/es2015/cashier-method-details.js +16 -0
  30. package/esnext/cashier-method-details.js +1 -1
  31. package/package.json +1 -1
@@ -1,4 +1,4 @@
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-agjo7360.js";
1
+ import { Q as F, S as U, b as q, s as A, f as g, c as N, e as H, t as p, g as m, k as Q, l as G, m as L, x as I, H as J, d as K, R as C, F as v, u as O, h as P, j as V, o as k, T as X, p as y, v as h, A as x, D as Y } from "./CashierConfirmModal-DX30udCt.js";
2
2
  function S(n, { delay: t = 0, duration: e = 400, easing: i = F } = {}) {
3
3
  const o = +getComputedStyle(n).opacity;
4
4
  return {
@@ -9,7 +9,7 @@ function S(n, { delay: t = 0, duration: e = 400, easing: i = F } = {}) {
9
9
  };
10
10
  }
11
11
  function Z(n) {
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}}");
12
+ N(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) {
@@ -26,13 +26,13 @@ function E(n) {
26
26
  );
27
27
  return {
28
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(() => (
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"), v(() => (
30
30
  /*div1_elementresize_handler*/
31
31
  n[11].call(e)
32
32
  )), h(t, "part", "CustomStylingContainer");
33
33
  },
34
34
  m(a, c) {
35
- L(a, t, c), v(t, e), v(e, i), r && r.m(i, null), n[10](e), o = O(
35
+ L(a, t, c), k(t, e), k(e, i), r && r.m(i, null), n[10](e), o = X(
36
36
  e,
37
37
  /*div1_elementresize_handler*/
38
38
  n[11].bind(e)
@@ -40,19 +40,19 @@ function E(n) {
40
40
  },
41
41
  p(a, c) {
42
42
  n = a, r && r.p && (!d || c & /*$$scope*/
43
- 256) && P(
43
+ 256) && O(
44
44
  r,
45
45
  f,
46
46
  n,
47
47
  /*$$scope*/
48
48
  n[8],
49
- d ? X(
49
+ d ? V(
50
50
  f,
51
51
  /*$$scope*/
52
52
  n[8],
53
53
  c,
54
54
  $
55
- ) : V(
55
+ ) : P(
56
56
  /*$$scope*/
57
57
  n[8]
58
58
  ),
@@ -60,8 +60,8 @@ function E(n) {
60
60
  );
61
61
  },
62
62
  i(a) {
63
- d || (m(r, a), a && M(() => {
64
- d && (l || (l = k(
63
+ d || (m(r, a), a && v(() => {
64
+ d && (l || (l = C(
65
65
  e,
66
66
  S,
67
67
  /*duration*/
@@ -71,7 +71,7 @@ function E(n) {
71
71
  }), d = !0);
72
72
  },
73
73
  o(a) {
74
- p(r, a), a && (l || (l = k(
74
+ p(r, a), a && (l || (l = C(
75
75
  e,
76
76
  S,
77
77
  /*duration*/
@@ -91,7 +91,7 @@ function tt(n) {
91
91
  );
92
92
  return {
93
93
  c() {
94
- i && i.c(), t = A();
94
+ i && i.c(), t = I();
95
95
  },
96
96
  m(o, l) {
97
97
  i && i.m(o, l), L(o, t, l), e = !0;
@@ -99,9 +99,9 @@ function tt(n) {
99
99
  p(o, [l]) {
100
100
  /*show*/
101
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, () => {
102
+ 32 && m(i, 1)) : (i = E(o), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (Q(), p(i, 1, 1, () => {
103
103
  i = null;
104
- }), I());
104
+ }), G());
105
105
  },
106
106
  i(o) {
107
107
  e || (m(i), e = !0);
@@ -120,15 +120,15 @@ function et(n, t, e) {
120
120
  e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
121
121
  }, b = (s) => {
122
122
  s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && W();
123
- }, B = () => {
123
+ }, T = () => {
124
124
  let s = document.createElement("style");
125
125
  s.innerHTML = l, u.appendChild(s);
126
- }, T = () => {
127
- let s = new URL(d), C = document.createElement("style");
126
+ }, j = () => {
127
+ let s = new URL(d), M = document.createElement("style");
128
128
  fetch(s.href).then((_) => _.text()).then((_) => {
129
- C.innerHTML = _, setTimeout(
129
+ M.innerHTML = _, setTimeout(
130
130
  () => {
131
- u.appendChild(C);
131
+ u.appendChild(M);
132
132
  },
133
133
  1
134
134
  );
@@ -137,7 +137,7 @@ function et(n, t, e) {
137
137
  J(() => (window.addEventListener("message", b, !1), () => {
138
138
  window.removeEventListener("message", b);
139
139
  }));
140
- function j(s) {
140
+ function B(s) {
141
141
  x[s ? "unshift" : "push"](() => {
142
142
  c = s, e(4, c);
143
143
  });
@@ -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 q(s) {
148
+ function D(s) {
149
149
  x[s ? "unshift" : "push"](() => {
150
150
  u = s, e(3, u);
151
151
  });
@@ -154,8 +154,8 @@ function et(n, t, e) {
154
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
155
  }, n.$$.update = () => {
156
156
  n.$$.dirty & /*clientstyling, customStylingContainer*/
157
- 72 && l && u && B(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
158
- 136 && d && u && T();
157
+ 72 && l && u && T(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
158
+ 136 && d && u && j();
159
159
  }, [
160
160
  r,
161
161
  a,
@@ -167,19 +167,19 @@ function et(n, t, e) {
167
167
  d,
168
168
  o,
169
169
  i,
170
- j,
170
+ B,
171
171
  R,
172
- q
172
+ D
173
173
  ];
174
174
  }
175
175
  class nt extends U {
176
176
  constructor(t) {
177
- super(), D(
177
+ super(), q(
178
178
  this,
179
179
  t,
180
180
  et,
181
181
  tt,
182
- N,
182
+ A,
183
183
  {
184
184
  clientstyling: 6,
185
185
  clientstylingurl: 7,
@@ -221,7 +221,7 @@ class nt extends U {
221
221
  this.$$set({ height: t }), g();
222
222
  }
223
223
  }
224
- G(nt, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
224
+ Y(nt, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
225
225
  export {
226
226
  nt as default
227
227
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BeEK5pGj.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;
@@ -0,0 +1,227 @@
1
+ import { Q as F, S as U, b as q, s as A, f as g, c as N, e as H, t as p, g as m, k as Q, l as G, m as L, x as I, H as J, d as K, R as C, F as v, u as O, h as P, j as V, o as k, T as X, p as y, v as h, A as x, D as Y } from "./CashierConfirmModal-C4oTmnti.js";
2
+ function S(n, { delay: t = 0, duration: e = 400, easing: i = F } = {}) {
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
+ N(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 = K(
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"), v(() => (
30
+ /*div1_elementresize_handler*/
31
+ n[11].call(e)
32
+ )), h(t, "part", "CustomStylingContainer");
33
+ },
34
+ m(a, c) {
35
+ L(a, t, c), k(t, e), k(e, i), r && r.m(i, null), n[10](e), o = X(
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) && O(
44
+ r,
45
+ f,
46
+ n,
47
+ /*$$scope*/
48
+ n[8],
49
+ d ? V(
50
+ f,
51
+ /*$$scope*/
52
+ n[8],
53
+ c,
54
+ $
55
+ ) : P(
56
+ /*$$scope*/
57
+ n[8]
58
+ ),
59
+ z
60
+ );
61
+ },
62
+ i(a) {
63
+ d || (m(r, a), a && v(() => {
64
+ d && (l || (l = C(
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 = C(
75
+ e,
76
+ S,
77
+ /*duration*/
78
+ n[2],
79
+ !1
80
+ )), l.run(0)), d = !1;
81
+ },
82
+ d(a) {
83
+ a && H(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), L(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 && (Q(), p(i, 1, 1, () => {
103
+ i = null;
104
+ }), G());
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 && H(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
+ }, T = () => {
124
+ let s = document.createElement("style");
125
+ s.innerHTML = l, u.appendChild(s);
126
+ }, j = () => {
127
+ let s = new URL(d), M = document.createElement("style");
128
+ fetch(s.href).then((_) => _.text()).then((_) => {
129
+ M.innerHTML = _, setTimeout(
130
+ () => {
131
+ u.appendChild(M);
132
+ },
133
+ 1
134
+ );
135
+ });
136
+ };
137
+ J(() => (window.addEventListener("message", b, !1), () => {
138
+ window.removeEventListener("message", b);
139
+ }));
140
+ function B(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 D(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 && T(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
158
+ 136 && d && u && j();
159
+ }, [
160
+ r,
161
+ a,
162
+ f,
163
+ u,
164
+ c,
165
+ w,
166
+ l,
167
+ d,
168
+ o,
169
+ i,
170
+ B,
171
+ R,
172
+ D
173
+ ];
174
+ }
175
+ class nt extends U {
176
+ constructor(t) {
177
+ super(), q(
178
+ this,
179
+ t,
180
+ et,
181
+ tt,
182
+ A,
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
+ Y(nt, { clientstyling: {}, clientstylingurl: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
225
+ export {
226
+ nt as default
227
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BeEK5pGj.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
@@ -1,21 +1,21 @@
1
- import { S as C, b as v, 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-agjo7360.js";
2
- function H(n) {
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 S, p as h, z as x, q as E, v as L, A as M, D as T } from "./CashierConfirmModal-C4oTmnti.js";
2
+ function q(n) {
3
3
  N(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
4
4
  }
5
- function R(n) {
5
+ function B(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 = b(
9
+ t = h("div"), s = h("span"), r = x(
10
10
  /*text*/
11
11
  n[0]
12
- ), u = z(), l = h("button"), a = b(
12
+ ), u = E(), l = h("button"), a = x(
13
13
  /*button*/
14
14
  n[1]
15
- ), S(t, "class", "CashierNotifications");
15
+ ), L(t, "class", "CashierNotifications");
16
16
  },
17
17
  m(o, c) {
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(
18
+ z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = S(
19
19
  l,
20
20
  "click",
21
21
  /*notificationClick*/
@@ -35,14 +35,14 @@ function R(n) {
35
35
  o[1]
36
36
  );
37
37
  },
38
- i: x,
39
- o: x,
38
+ i: b,
39
+ o: b,
40
40
  d(o) {
41
- o && M(t), n[6](null), i = !1, m();
41
+ o && k(t), n[6](null), i = !1, m();
42
42
  }
43
43
  };
44
44
  }
45
- function U(n, t, s) {
45
+ function H(n, t, s) {
46
46
  let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
47
47
  const m = () => {
48
48
  window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
@@ -61,7 +61,7 @@ function U(n, t, s) {
61
61
  });
62
62
  };
63
63
  function w(e) {
64
- T[e ? "unshift" : "push"](() => {
64
+ M[e ? "unshift" : "push"](() => {
65
65
  i = e, s(2, i);
66
66
  });
67
67
  }
@@ -81,21 +81,21 @@ function U(n, t, s) {
81
81
  w
82
82
  ];
83
83
  }
84
- class j extends C {
84
+ class R extends C {
85
85
  constructor(t) {
86
86
  super(), v(
87
87
  this,
88
88
  t,
89
- U,
90
- R,
91
- k,
89
+ H,
90
+ B,
91
+ _,
92
92
  {
93
93
  text: 0,
94
94
  button: 1,
95
95
  clientstyling: 4,
96
96
  clientstylingurl: 5
97
97
  },
98
- H
98
+ q
99
99
  );
100
100
  }
101
101
  get text() {
@@ -123,7 +123,7 @@ class j extends C {
123
123
  this.$$set({ clientstylingurl: t }), d();
124
124
  }
125
125
  }
126
- _(j, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
126
+ T(R, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
127
127
  export {
128
- j as default
128
+ R as default
129
129
  };
@@ -0,0 +1,129 @@
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 S, p as h, z as x, q as E, v as L, A as M, D as T } from "./CashierConfirmModal-DX30udCt.js";
2
+ function q(n) {
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
+ }
5
+ function B(n) {
6
+ let t, s, r, u, l, a, i, m;
7
+ return {
8
+ c() {
9
+ t = h("div"), s = h("span"), r = x(
10
+ /*text*/
11
+ n[0]
12
+ ), u = E(), l = h("button"), a = x(
13
+ /*button*/
14
+ n[1]
15
+ ), L(t, "class", "CashierNotifications");
16
+ },
17
+ m(o, c) {
18
+ z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = S(
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: b,
39
+ o: b,
40
+ d(o) {
41
+ o && k(t), n[6](null), i = !1, m();
42
+ }
43
+ };
44
+ }
45
+ function H(n, t, s) {
46
+ let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
47
+ const m = () => {
48
+ window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
49
+ }, o = () => {
50
+ let e = document.createElement("style");
51
+ e.innerHTML = l, i.appendChild(e);
52
+ }, c = () => {
53
+ let e = new URL(a), y = document.createElement("style");
54
+ fetch(e.href).then((g) => g.text()).then((g) => {
55
+ y.innerHTML = g, setTimeout(
56
+ () => {
57
+ i.appendChild(y);
58
+ },
59
+ 1
60
+ );
61
+ });
62
+ };
63
+ function w(e) {
64
+ M[e ? "unshift" : "push"](() => {
65
+ i = e, s(2, i);
66
+ });
67
+ }
68
+ return n.$$set = (e) => {
69
+ "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);
70
+ }, n.$$.update = () => {
71
+ n.$$.dirty & /*clientstyling, customStylingContainer*/
72
+ 20 && l && i && o(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
73
+ 36 && a && i && c();
74
+ }, [
75
+ r,
76
+ u,
77
+ i,
78
+ m,
79
+ l,
80
+ a,
81
+ w
82
+ ];
83
+ }
84
+ class R extends C {
85
+ constructor(t) {
86
+ super(), v(
87
+ this,
88
+ t,
89
+ H,
90
+ B,
91
+ _,
92
+ {
93
+ text: 0,
94
+ button: 1,
95
+ clientstyling: 4,
96
+ clientstylingurl: 5
97
+ },
98
+ q
99
+ );
100
+ }
101
+ get text() {
102
+ return this.$$.ctx[0];
103
+ }
104
+ set text(t) {
105
+ this.$$set({ text: t }), d();
106
+ }
107
+ get button() {
108
+ return this.$$.ctx[1];
109
+ }
110
+ set button(t) {
111
+ this.$$set({ button: t }), d();
112
+ }
113
+ get clientstyling() {
114
+ return this.$$.ctx[4];
115
+ }
116
+ set clientstyling(t) {
117
+ this.$$set({ clientstyling: t }), d();
118
+ }
119
+ get clientstylingurl() {
120
+ return this.$$.ctx[5];
121
+ }
122
+ set clientstylingurl(t) {
123
+ this.$$set({ clientstylingurl: t }), d();
124
+ }
125
+ }
126
+ T(R, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
127
+ export {
128
+ R as default
129
+ };