@everymatrix/cashier-method-details 1.45.3 → 1.45.5
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{CashierMethodDetails-C4PD_IWn.cjs → CashierMethodDetails-BYvlumgg.cjs} +2 -2
- package/components/{CashierMethodDetails-Bf-5bGxo.js → CashierMethodDetails-CoLJgvjQ.js} +6 -4
- package/components/CashierNotifications-CkuynzyL.cjs +1 -0
- package/components/{CashierNotifications-BhCyEcyg.js → CashierNotifications-DUaec3Zg.js} +6 -6
- package/components/{CashierReceiptPage-CWW92liL.js → CashierReceiptPage-BbBZku3l.js} +1 -1
- package/components/{CashierReceiptPage-BVJ9-Fkt.cjs → CashierReceiptPage-lw2wwZ2Y.cjs} +1 -1
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/package.json +7 -7
- package/components/CashierNotifications-FlAVIynI.cjs +0 -1
@@ -112,7 +112,7 @@ if (typeof window != "undefined") {
|
|
112
112
|
}
|
113
113
|
};
|
114
114
|
};
|
115
|
-
customElements.define = t(customElements.define), import("./CashierNotifications-
|
115
|
+
customElements.define = t(customElements.define), import("./CashierNotifications-DUaec3Zg.js").then(({ default: n }) => {
|
116
116
|
!customElements.get("cashier-notifications") && customElements.define("cashier-notifications", n.element);
|
117
117
|
});
|
118
118
|
}
|
@@ -160,7 +160,7 @@ if (typeof window != "undefined") {
|
|
160
160
|
}
|
161
161
|
};
|
162
162
|
};
|
163
|
-
customElements.define = t(customElements.define), import("./CashierReceiptPage-
|
163
|
+
customElements.define = t(customElements.define), import("./CashierReceiptPage-BbBZku3l.js").then(({ default: n }) => {
|
164
164
|
!customElements.get("cashier-receipt-page") && customElements.define("cashier-receipt-page", n.element);
|
165
165
|
});
|
166
166
|
}
|
@@ -7516,7 +7516,8 @@ function Ma(t, n, e) {
|
|
7516
7516
|
body: JSON.stringify({
|
7517
7517
|
PaymentMethodName: X,
|
7518
7518
|
Currency: K,
|
7519
|
-
XPaymentSessionToken: T
|
7519
|
+
XPaymentSessionToken: T,
|
7520
|
+
Tags: { UserAgent: window.navigator.userAgent }
|
7520
7521
|
})
|
7521
7522
|
};
|
7522
7523
|
fetch(y, G).then((Ee) => Ee.json()).then((Ee) => {
|
@@ -7608,7 +7609,8 @@ function Ma(t, n, e) {
|
|
7608
7609
|
Currency: K,
|
7609
7610
|
CustomFields: C
|
7610
7611
|
},
|
7611
|
-
Account: {}
|
7612
|
+
Account: {},
|
7613
|
+
Tags: { UserAgent: window.navigator.userAgent }
|
7612
7614
|
})
|
7613
7615
|
};
|
7614
7616
|
fetch(o, J).then((G) => G.json()).then((G) => {
|
@@ -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-
|
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 =
|
9
|
+
t = h("div"), s = h("span"), r = y(
|
10
10
|
/*text*/
|
11
11
|
n[0]
|
12
|
-
), u = z(), l =
|
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((
|
62
|
-
b.innerHTML =
|
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-
|
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);
|