@everymatrix/cashier-page 1.77.4 → 1.77.6
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.
- package/components/{CashierError-BEEnpeVH.cjs → CashierError-85r_lbiV.cjs} +4 -4
- package/components/{CashierError-BuW5dJfP.js → CashierError-CteHkwfB.js} +471 -489
- package/components/{CashierError-BL7OTzSK.js → CashierError-In4OzIIA.js} +623 -641
- package/components/{CashierHeader-FDYsDrpF.js → CashierHeader-BeeK80Nf.js} +73 -73
- package/components/{CashierHeader-CkyrZZ8s.js → CashierHeader-DGh4L4vF.js} +74 -74
- package/components/CashierHeader-bssm74cT.cjs +1 -0
- package/components/{CashierIframeRedirect-Db-zgjwP.cjs → CashierIframeRedirect-B2PCgM3_.cjs} +1 -1
- package/components/{CashierIframeRedirect-CmdPA_aZ.js → CashierIframeRedirect-CWs1zVlC.js} +3 -3
- package/components/{CashierIframeRedirect-wlE_YN39.js → CashierIframeRedirect-tRttmemn.js} +3 -3
- package/components/{CashierMethodDetails-B7K0CIlB.cjs → CashierMethodDetails-0UiFXxGB.cjs} +5 -5
- package/components/{CashierMethodDetails-BSBqkHNa.js → CashierMethodDetails-CXghdR2g.js} +127 -127
- package/components/{CashierMethodDetails-C7dG4t8m.js → CashierMethodDetails-tCy-EPwr.js} +127 -127
- package/components/{CashierMethodsList-FNgy0d7U.js → CashierMethodsList-CoALKisj.js} +239 -239
- package/components/{CashierMethodsList-gPmctW-Q.js → CashierMethodsList-D-nRx8wu.js} +256 -256
- package/components/CashierMethodsList-D5XG8usA.cjs +1 -0
- package/components/{CashierModal-BAzO-8NU.js → CashierModal-C49IE2Ol.js} +32 -32
- package/components/{CashierModal-vCh-dC6Q.cjs → CashierModal-CQu7VSLY.cjs} +1 -1
- package/components/{CashierModal-CIWk9EpH.js → CashierModal-CZVHRmZu.js} +36 -36
- package/components/{CashierNotifications-Bgf97-ym.cjs → CashierNotifications-CX0e5h0X.cjs} +1 -1
- package/components/{CashierNotifications-BhA-DfA9.js → CashierNotifications-Cdscp8qT.js} +1 -1
- package/components/{CashierNotifications-CfzNxd6q.js → CashierNotifications-DmdtMYZ2.js} +1 -1
- package/components/{CashierPage-D8YY3wAI.js → CashierPage-CGIvMHE7.js} +577 -595
- package/components/CashierPage-D9oKaypy.cjs +1 -0
- package/components/{CashierPage-DbHvX6nI.js → CashierPage-DlXd_cZV.js} +586 -604
- package/components/{CashierReceiptPage-BzjCwk2b.js → CashierReceiptPage-BlcpLLCo.js} +3 -3
- package/components/{CashierReceiptPage-A1MYfWGW.js → CashierReceiptPage-Bv6emon7.js} +3 -3
- package/components/{CashierReceiptPage-CQyluI1J.cjs → CashierReceiptPage-DE_LkOm4.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-CtakjuI_.js → CashierSessionExpirationModal-3Uya7xVh.js} +444 -462
- package/components/CashierSessionExpirationModal-5KkgklG1.cjs +2 -0
- package/components/{CashierSessionExpirationModal-YWIpKzje.js → CashierSessionExpirationModal-Dxm2K4pN.js} +402 -420
- package/components/{CashierSpinner-DXrTfpLq.js → CashierSpinner-Cz3Wh-IF.js} +1 -1
- package/components/{CashierSpinner-DTztqXMW.cjs → CashierSpinner-DWl8E_o4.cjs} +1 -1
- package/components/{CashierSpinner-CAqB2_pw.js → CashierSpinner-lg9LHAJP.js} +1 -1
- package/components/CashierTransactionHistory-B02OAEKa.js +1305 -0
- package/components/CashierTransactionHistory-BjR4_or_.cjs +1 -0
- package/components/CashierTransactionHistory-CXDAkYHG.js +1305 -0
- package/components/CashierVerifications-BaE9KdGs.js +612 -0
- package/components/CashierVerifications-M462VMAt.cjs +1 -0
- package/components/CashierVerifications-c1_MVNTC.js +608 -0
- package/components/{TxnStatusIcon-Dapc6xhT.cjs → TxnStatusIcon-CTlOyy_y.cjs} +1 -1
- package/components/{TxnStatusIcon-ClddwA7r.js → TxnStatusIcon-DAlixEXq.js} +1 -1
- package/components/{TxnStatusIcon-DPmmaKoK.js → TxnStatusIcon-rx3aknw5.js} +1 -1
- package/components/{TxnTypeIcons-w8LBVBiN.cjs → TxnTypeIcons-CBrT37yr.cjs} +1 -1
- package/components/{TxnTypeIcons-CEcfPpqm.js → TxnTypeIcons-Dvyjxf9B.js} +1 -1
- package/components/{TxnTypeIcons-CWojIltL.js → TxnTypeIcons-xUx3dWMd.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-256b7d4e-7jcaQ7rC.js +543 -0
- package/stencil/index-256b7d4e-BnoVkrXr.cjs +1 -0
- package/stencil/index-256b7d4e-CSg5Fmgt.js +559 -0
- package/stencil/ui-image-8975d115-BIwRmPA-.cjs +1 -0
- package/stencil/ui-image-8975d115-C8pJTCfZ.js +71 -0
- package/stencil/ui-image-8975d115-DxO6YS6C.js +71 -0
- package/stencil/{ui-image-e4W3SkhP.js → ui-image-B0TLi195.js} +1 -1
- package/stencil/{ui-image-C0iABVS5.cjs → ui-image-CLll1WRz.cjs} +1 -1
- package/stencil/{ui-image-BRBJSkg1.js → ui-image-CayMADxC.js} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-CXGY1IY3.cjs} +1 -1
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-DwuycSdC.js} +2 -2
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-rhY_9uoo.js} +2 -2
- package/components/CashierHeader-D5eAmyvG.cjs +0 -1
- package/components/CashierMethodsList-pakwpTY2.cjs +0 -1
- package/components/CashierPage-DcwM8mwG.cjs +0 -1
- package/components/CashierSessionExpirationModal-Bh3jmXl_.cjs +0 -2
- package/components/CashierTransactionHistory-U9Il8eZb.js +0 -1305
- package/components/CashierTransactionHistory-Y1g5hagc.js +0 -1305
- package/components/CashierTransactionHistory-c_0mTjNo.cjs +0 -1
- package/components/CashierVerifications-BA7PsePr.js +0 -608
- package/components/CashierVerifications-BTvFySIg.js +0 -604
- package/components/CashierVerifications-BlWTY2gh.cjs +0 -1
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
- package/stencil/ui-image-2ff23cd5-BHGIWJop.cjs +0 -1
- package/stencil/ui-image-2ff23cd5-D0rXudCW.js +0 -86
- package/stencil/ui-image-2ff23cd5-DCLQ0SIO.js +0 -86
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { r as n, h as t, H as r, g as a } from "./index-242ac81a-BqeIndhr.js";
|
|
2
|
-
const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = h, d = class {
|
|
3
|
-
constructor(e) {
|
|
4
|
-
n(this, e), this.hasStarted = !1, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
|
5
|
-
}
|
|
6
|
-
onSrcChange() {
|
|
7
|
-
this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
8
|
-
}
|
|
9
|
-
onLoadingChange(e, i) {
|
|
10
|
-
e !== i && (this.cleanupObserver(), this.detachImgHandlers(), e === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
|
|
11
|
-
}
|
|
12
|
-
componentDidLoad() {
|
|
13
|
-
this.loading !== "eager" && this.setupObserver();
|
|
14
|
-
}
|
|
15
|
-
disconnectedCallback() {
|
|
16
|
-
this.cleanupObserver(), this.detachImgHandlers();
|
|
17
|
-
}
|
|
18
|
-
canUseIO() {
|
|
19
|
-
return typeof window != "undefined" && "IntersectionObserver" in window;
|
|
20
|
-
}
|
|
21
|
-
setupObserver() {
|
|
22
|
-
if (this.loading !== "eager") {
|
|
23
|
-
if (!this.canUseIO()) {
|
|
24
|
-
this.beginLoad();
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
this.io = new IntersectionObserver((e) => {
|
|
28
|
-
var i;
|
|
29
|
-
for (const s of e)
|
|
30
|
-
if (s.isIntersecting) {
|
|
31
|
-
this.beginLoad(), (i = this.io) === null || i === void 0 || i.unobserve(s.target), this.cleanupObserver();
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
cleanupObserver() {
|
|
38
|
-
var e;
|
|
39
|
-
(e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
|
|
40
|
-
}
|
|
41
|
-
wireOnceHandlers() {
|
|
42
|
-
this.imgEl && (this.detachImgHandlers(), this._onLoad = () => {
|
|
43
|
-
var e;
|
|
44
|
-
this.currentSrc && (!((e = this.imgEl) === null || e === void 0) && e.currentSrc) && !this.imgEl.currentSrc.includes(this.currentSrc) || (this.imgLoaded = !0);
|
|
45
|
-
}, this._onError = () => {
|
|
46
|
-
console.error("Load image failed:", this.src);
|
|
47
|
-
}, this.imgEl.addEventListener("load", this._onLoad, { once: !0 }), this.imgEl.addEventListener("error", this._onError, { once: !0 }));
|
|
48
|
-
}
|
|
49
|
-
detachImgHandlers() {
|
|
50
|
-
this.imgEl && (this._onLoad && this.imgEl.removeEventListener("load", this._onLoad), this._onError && this.imgEl.removeEventListener("error", this._onError), this._onLoad = void 0, this._onError = void 0);
|
|
51
|
-
}
|
|
52
|
-
beginLoad() {
|
|
53
|
-
if (!this.hasStarted && this.imgEl && this.src) {
|
|
54
|
-
if (this.hasStarted = !0, this.wireOnceHandlers(), this.imgEl.complete && this.imgEl.naturalWidth > 0) {
|
|
55
|
-
this.imgLoaded = !0;
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
this.currentSrc = this.src, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
get showSkeleton() {
|
|
62
|
-
return this.loading !== "eager" && !this.imgLoaded;
|
|
63
|
-
}
|
|
64
|
-
renderEager() {
|
|
65
|
-
return t(r, { class: "HostContainer" }, t("img", { src: this.src, decoding: "async", style: this.styles, class: "UiContainer Visible", alt: this.alt, width: this.width, height: this.height, loading: "eager" }));
|
|
66
|
-
}
|
|
67
|
-
renderLazy() {
|
|
68
|
-
return t(r, { class: "HostContainer", "aria-busy": this.imgLoaded ? "false" : "true" }, this.showSkeleton && t("ui-skeleton", { class: "UiContainer", structure: "image", width: "100%", height: "100%" }), t("img", { ref: (e) => this.imgEl = e, src: void 0, decoding: "async", style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
69
|
-
}
|
|
70
|
-
render() {
|
|
71
|
-
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
|
72
|
-
}
|
|
73
|
-
get el() {
|
|
74
|
-
return a(this);
|
|
75
|
-
}
|
|
76
|
-
static get watchers() {
|
|
77
|
-
return {
|
|
78
|
-
src: ["onSrcChange"],
|
|
79
|
-
loading: ["onLoadingChange"]
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
d.style = o;
|
|
84
|
-
export {
|
|
85
|
-
d as U
|
|
86
|
-
};
|