@everymatrix/cashier-page 1.77.5 → 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-Cwc-x7-n.cjs → CashierError-85r_lbiV.cjs} +1 -1
- package/components/{CashierError-BfI-dhBA.js → CashierError-CteHkwfB.js} +1 -1
- package/components/{CashierError-BpHmWAV4.js → CashierError-In4OzIIA.js} +1 -1
- package/components/{CashierHeader-Dg0BUudB.js → CashierHeader-BeeK80Nf.js} +1 -1
- package/components/{CashierHeader-gXrzXYdb.js → CashierHeader-DGh4L4vF.js} +1 -1
- package/components/{CashierHeader-BmFnfiuo.cjs → CashierHeader-bssm74cT.cjs} +1 -1
- package/components/{CashierIframeRedirect-yYx9jiwQ.cjs → CashierIframeRedirect-B2PCgM3_.cjs} +1 -1
- package/components/{CashierIframeRedirect-CK8r-ttq.js → CashierIframeRedirect-CWs1zVlC.js} +3 -3
- package/components/{CashierIframeRedirect-B2qLdGXs.js → CashierIframeRedirect-tRttmemn.js} +3 -3
- package/components/{CashierMethodDetails-C8Aujapw.cjs → CashierMethodDetails-0UiFXxGB.cjs} +3 -3
- package/components/{CashierMethodDetails-DUoeeyvh.js → CashierMethodDetails-CXghdR2g.js} +6 -6
- package/components/{CashierMethodDetails-CMJ3AZ1w.js → CashierMethodDetails-tCy-EPwr.js} +6 -6
- package/components/{CashierMethodsList-Dg2r9AfY.js → CashierMethodsList-CoALKisj.js} +2 -2
- package/components/{CashierMethodsList-CGzThcle.js → CashierMethodsList-D-nRx8wu.js} +2 -2
- package/components/{CashierMethodsList-CPkX_Quy.cjs → CashierMethodsList-D5XG8usA.cjs} +1 -1
- package/components/{CashierModal-DPu1DYOz.js → CashierModal-C49IE2Ol.js} +1 -1
- package/components/{CashierModal-ChQ4v8zb.cjs → CashierModal-CQu7VSLY.cjs} +1 -1
- package/components/{CashierModal-BH_3F3zD.js → CashierModal-CZVHRmZu.js} +1 -1
- package/components/{CashierNotifications-CvyXyy3e.cjs → CashierNotifications-CX0e5h0X.cjs} +1 -1
- package/components/{CashierNotifications-DJkU9Qld.js → CashierNotifications-Cdscp8qT.js} +1 -1
- package/components/{CashierNotifications-DalsZ-_b.js → CashierNotifications-DmdtMYZ2.js} +1 -1
- package/components/{CashierPage-BPE6GQlI.js → CashierPage-CGIvMHE7.js} +10 -10
- package/components/{CashierPage-BE-30dWS.cjs → CashierPage-D9oKaypy.cjs} +1 -1
- package/components/{CashierPage-VLpP-BiO.js → CashierPage-DlXd_cZV.js} +10 -10
- package/components/{CashierReceiptPage-DFrIxtqP.js → CashierReceiptPage-BlcpLLCo.js} +3 -3
- package/components/{CashierReceiptPage-BBA-8TRN.js → CashierReceiptPage-Bv6emon7.js} +3 -3
- package/components/{CashierReceiptPage-CO3ZVCdS.cjs → CashierReceiptPage-DE_LkOm4.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-BD8QkE1D.js → CashierSessionExpirationModal-3Uya7xVh.js} +3 -3
- package/components/{CashierSessionExpirationModal-IPLl_Pgb.cjs → CashierSessionExpirationModal-5KkgklG1.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-DXyum0E9.js → CashierSessionExpirationModal-Dxm2K4pN.js} +3 -3
- package/components/{CashierSpinner-ApTRgAwC.js → CashierSpinner-Cz3Wh-IF.js} +1 -1
- package/components/{CashierSpinner-DLi9367a.cjs → CashierSpinner-DWl8E_o4.cjs} +1 -1
- package/components/{CashierSpinner-BtqGjC-Z.js → CashierSpinner-lg9LHAJP.js} +1 -1
- package/components/{CashierTransactionHistory-iszMiNkq.js → CashierTransactionHistory-B02OAEKa.js} +6 -6
- package/components/{CashierTransactionHistory-DUK3EI4M.cjs → CashierTransactionHistory-BjR4_or_.cjs} +1 -1
- package/components/{CashierTransactionHistory-B6b6N-V8.js → CashierTransactionHistory-CXDAkYHG.js} +6 -6
- package/components/{CashierVerifications-BeUxv_g0.js → CashierVerifications-BaE9KdGs.js} +2 -2
- package/components/{CashierVerifications-D71jldwG.cjs → CashierVerifications-M462VMAt.cjs} +1 -1
- package/components/{CashierVerifications-C2--15rP.js → CashierVerifications-c1_MVNTC.js} +2 -2
- package/components/{TxnStatusIcon-Q02UYwzX.cjs → TxnStatusIcon-CTlOyy_y.cjs} +1 -1
- package/components/{TxnStatusIcon-DLRJaQNz.js → TxnStatusIcon-DAlixEXq.js} +1 -1
- package/components/{TxnStatusIcon-B464k5IP.js → TxnStatusIcon-rx3aknw5.js} +1 -1
- package/components/{TxnTypeIcons-BfcVtJl5.cjs → TxnTypeIcons-CBrT37yr.cjs} +1 -1
- package/components/{TxnTypeIcons-Ct2XFW1C.js → TxnTypeIcons-Dvyjxf9B.js} +1 -1
- package/components/{TxnTypeIcons-DROxy56q.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/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
|
-
};
|