@everymatrix/cashier-method-details 1.45.2 → 1.45.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BsoB5fQM.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,11 +1,11 @@
1
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
2
  function S(n, { delay: t = 0, duration: e = 400, easing: i = q } = {}) {
3
- const l = +getComputedStyle(n).opacity;
3
+ const o = +getComputedStyle(n).opacity;
4
4
  return {
5
5
  delay: t,
6
6
  duration: e,
7
7
  easing: i,
8
- css: (o) => `opacity: ${o * l}`
8
+ css: (l) => `opacity: ${l * o}`
9
9
  };
10
10
  }
11
11
  function Z(n) {
@@ -13,7 +13,7 @@ function Z(n) {
13
13
  }
14
14
  const $ = (n) => ({}), z = (n) => ({});
15
15
  function E(n) {
16
- let t, e, i, l, o, d;
16
+ let t, e, i, o, l, d;
17
17
  const f = (
18
18
  /*#slots*/
19
19
  n[9].content
@@ -32,7 +32,7 @@ function E(n) {
32
32
  )), h(t, "part", "CustomStylingContainer");
33
33
  },
34
34
  m(a, c) {
35
- H(a, t, c), v(t, e), v(e, i), r && r.m(i, null), n[10](e), l = P(
35
+ H(a, t, c), v(t, e), v(e, i), r && r.m(i, null), n[10](e), o = P(
36
36
  e,
37
37
  /*div1_elementresize_handler*/
38
38
  n[11].bind(e)
@@ -61,20 +61,26 @@ function E(n) {
61
61
  },
62
62
  i(a) {
63
63
  d || (m(r, a), a && M(() => {
64
- d && (o || (o = k(e, S, { duration: (
64
+ d && (l || (l = k(
65
+ e,
66
+ S,
65
67
  /*duration*/
66
- n[2]
67
- ) }, !0)), o.run(1));
68
+ n[2],
69
+ !0
70
+ )), l.run(1));
68
71
  }), d = !0);
69
72
  },
70
73
  o(a) {
71
- p(r, a), a && (o || (o = k(e, S, { duration: (
74
+ p(r, a), a && (l || (l = k(
75
+ e,
76
+ S,
72
77
  /*duration*/
73
- n[2]
74
- ) }, !1)), o.run(0)), d = !1;
78
+ n[2],
79
+ !1
80
+ )), l.run(0)), d = !1;
75
81
  },
76
82
  d(a) {
77
- a && L(t), r && r.d(a), n[10](null), l(), a && o && o.end(), n[12](null);
83
+ a && L(t), r && r.d(a), n[10](null), o(), a && l && l.end(), n[12](null);
78
84
  }
79
85
  };
80
86
  }
@@ -87,36 +93,36 @@ function tt(n) {
87
93
  c() {
88
94
  i && i.c(), t = I();
89
95
  },
90
- m(l, o) {
91
- i && i.m(l, o), H(l, t, o), e = !0;
96
+ m(o, l) {
97
+ i && i.m(o, l), H(o, t, l), e = !0;
92
98
  },
93
- p(l, [o]) {
99
+ p(o, [l]) {
94
100
  /*show*/
95
- l[5] ? i ? (i.p(l, o), o & /*show*/
96
- 32 && m(i, 1)) : (i = E(l), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (Y(), p(i, 1, 1, () => {
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, () => {
97
103
  i = null;
98
104
  }), J());
99
105
  },
100
- i(l) {
106
+ i(o) {
101
107
  e || (m(i), e = !0);
102
108
  },
103
- o(l) {
109
+ o(o) {
104
110
  p(i), e = !1;
105
111
  },
106
- d(l) {
107
- l && L(t), i && i.d(l);
112
+ d(o) {
113
+ o && L(t), i && i.d(o);
108
114
  }
109
115
  };
110
116
  }
111
117
  function et(n, t, e) {
112
- let { $$slots: i = {}, $$scope: l } = t, { clientstyling: o = "" } = t, { clientstylingurl: d = "" } = t, { duration: f = 200 } = t, { width: r } = t, { height: a } = t, c, u, w = !1;
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;
113
119
  const W = () => {
114
120
  e(5, w = !1), window.postMessage({ type: "ClosedCashierModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
115
121
  }, b = (s) => {
116
122
  s.data.type == "ShowCashierModal" && (e(5, w = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), s.data.type == "HideCashierModal" && W();
117
123
  }, B = () => {
118
124
  let s = document.createElement("style");
119
- s.innerHTML = o, u.appendChild(s);
125
+ s.innerHTML = l, u.appendChild(s);
120
126
  }, T = () => {
121
127
  let s = new URL(d), C = document.createElement("style");
122
128
  fetch(s.href).then((_) => _.text()).then((_) => {
@@ -145,10 +151,10 @@ function et(n, t, e) {
145
151
  });
146
152
  }
147
153
  return n.$$set = (s) => {
148
- "clientstyling" in s && e(6, o = 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, l = s.$$scope);
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);
149
155
  }, n.$$.update = () => {
150
156
  n.$$.dirty & /*clientstyling, customStylingContainer*/
151
- 72 && o && u && B(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
157
+ 72 && l && u && B(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
152
158
  136 && d && u && T();
153
159
  }, [
154
160
  r,
@@ -157,9 +163,9 @@ function et(n, t, e) {
157
163
  u,
158
164
  c,
159
165
  w,
160
- o,
161
- d,
162
166
  l,
167
+ d,
168
+ o,
163
169
  i,
164
170
  j,
165
171
  R,
@@ -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-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 y(i){let e,s,c,f,o,a,l,m;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||(m=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,m()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const m=()=>{dispatchEvent(new CustomEvent("notificationButtonClick",{bubbles:!0,cancelable:!0,composed:!0}))},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(d=>d.text()).then(d=>{h.innerHTML=d,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,m,o,a,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;
@@ -1,15 +1,15 @@
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";
1
+ import { S as w, b as v, f as d, c as _, a as k, d as N, g as h, 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
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}");
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 = g("div"), s = g("span"), r = y(
9
+ t = h("div"), s = h("span"), r = y(
10
10
  /*text*/
11
11
  n[0]
12
- ), u = z(), l = g("button"), a = y(
12
+ ), u = z(), l = h("button"), a = y(
13
13
  /*button*/
14
14
  n[1]
15
15
  ), E(t, "class", "CashierNotifications");
@@ -58,8 +58,8 @@ function U(n, t, s) {
58
58
  e.innerHTML = l, i.appendChild(e);
59
59
  }, c = () => {
60
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(
61
+ fetch(e.href).then((g) => g.text()).then((g) => {
62
+ b.innerHTML = g, setTimeout(
63
63
  () => {
64
64
  i.appendChild(b);
65
65
  },
@@ -1,5 +1,5 @@
1
1
  import { S as Be, b as Ee, f as B, c as Ze, a as Le, 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, I as Re, C as ie, E as M, y as w, A as I, z as R, K as le, x as Qe, M as Se } from "./CashierConfirmModal-Dw8BnUfp.js";
2
- import { d as ce, u as De } from "./CashierMethodDetails-5wGvaaR0.js";
2
+ import { d as ce, u as De } from "./CashierMethodDetails-CoLJgvjQ.js";
3
3
  import { a as Ge, i as xe, $ as Ue, b as Ce } from "./CashierError-B_iMgTfr.js";
4
4
  function oe(A, e) {
5
5
  Ge(A, e);