@everymatrix/casino-page-nd 1.77.12 → 1.77.14
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/{CasinoCalendar-Bb4l6GHP.cjs → CasinoCalendar-CMBPy1pJ.cjs} +1 -1
- package/components/{CasinoCalendar-DEsVuhHv.js → CasinoCalendar-CVV5rh8D.js} +2 -2
- package/components/{CasinoCalendar-C-Gc1XNl.js → CasinoCalendar-Dvq0s7Wu.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-DC-cdq2S.js → CasinoCalendarDailyDetails-Ce8DWjpV.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-BoCRu-0B.cjs → CasinoCalendarDailyDetails-DexFgNfS.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-Bshm9kom.js → CasinoCalendarDailyDetails-DoK91rza.js} +2 -2
- package/components/{CasinoCalendarDailyItem-C1rbVbBh.js → CasinoCalendarDailyItem-D15k2m1h.js} +2 -2
- package/components/{CasinoCalendarDailyItem-C8BZA5cO.cjs → CasinoCalendarDailyItem-DJzXrKrB.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-DRr0UMFE.js → CasinoCalendarDailyItem-DYvCgZu8.js} +2 -2
- package/components/{CasinoCollectionsProviders-Cm4t95De.js → CasinoCollectionsProviders-CME6A3fn.js} +1 -1
- package/components/{CasinoCollectionsProviders-D368qYjr.cjs → CasinoCollectionsProviders-DBJEOSOQ.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-WotINE7k.js → CasinoCollectionsProviders-m_2jJqD9.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-Bmc8bU-z.cjs → CasinoFavoritesSectionNd-DYqPUw83.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-C6-yWARI.js → CasinoFavoritesSectionNd-ItqNIJiO.js} +2 -2
- package/components/{CasinoFavoritesSectionNd-BHQmqNMq.js → CasinoFavoritesSectionNd-j_x4BbVA.js} +2 -2
- package/components/{CasinoFilter-BLnnmGTk.js → CasinoFilter-B9UcHS3B.js} +1 -1
- package/components/{CasinoFilter-BwMaB48o.js → CasinoFilter-BM39VdLR.js} +1 -1
- package/components/{CasinoFilter-BuWKwvsk.cjs → CasinoFilter-fiig0zZL.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-B7QZJgR3.js → CasinoGameThumbnailNd-C7lIhRfO.js} +2 -2
- package/components/{CasinoGameThumbnailNd-CRMtNXgh.cjs → CasinoGameThumbnailNd-D68XOPSp.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-DUu2pPcA.js → CasinoGameThumbnailNd-D7d7Ut2W.js} +2 -2
- package/components/{CasinoGamesCategorySectionNd-Cvc4BjLD.cjs → CasinoGamesCategorySectionNd-BCSPbWos.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-BakkXDI1.js → CasinoGamesCategorySectionNd-DDxD9nUf.js} +5 -5
- package/components/{CasinoGamesCategorySectionNd-D6Iusrpm.js → CasinoGamesCategorySectionNd-DMwVq9fp.js} +5 -5
- package/components/{CasinoJackpotBanner-CxWwqwA3.cjs → CasinoJackpotBanner-BftiHhI-.cjs} +1 -1
- package/components/{CasinoJackpotBanner-C4sBhHV3.js → CasinoJackpotBanner-Ct4mMod2.js} +2 -2
- package/components/{CasinoJackpotBanner-CaCQ3A3V.js → CasinoJackpotBanner-OnXeUt0G.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-BO_cHPi2.js → CasinoLastPlayedSectionNd-BHODuapK.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-BOR2Eq4i.js → CasinoLastPlayedSectionNd-C3GzrdJm.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-CjJkmOSu.cjs → CasinoLastPlayedSectionNd-CeZMPmWd.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-b29WKWdf.js → CasinoMostPlayedSectionNd-D-baP__d.js} +2 -2
- package/components/{CasinoMostPlayedSectionNd-DxGy0grX.cjs → CasinoMostPlayedSectionNd-D4e0bYIb.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-Ccjm8g_T.js → CasinoMostPlayedSectionNd-Dd_xRXHP.js} +2 -2
- package/components/{CasinoMyGamesNd-CtlFOZ-P.js → CasinoMyGamesNd-Cx16hjrw.js} +4 -4
- package/components/{CasinoMyGamesNd-ml5JKzhP.cjs → CasinoMyGamesNd-DP1Glj8A.cjs} +1 -1
- package/components/{CasinoMyGamesNd-BvWBib45.js → CasinoMyGamesNd-DtO8BLgo.js} +4 -4
- package/components/{CasinoPageNd-P616JQl8.cjs → CasinoPageNd-Bmo2CfLy.cjs} +1 -1
- package/components/{CasinoPageNd-nu9HqX-v.js → CasinoPageNd-CDCuJS2u.js} +11 -11
- package/components/{CasinoPageNd-CFfTnbWK.js → CasinoPageNd-CR4OQ5Yf.js} +11 -11
- package/components/{CasinoRandomGame-nW4hfNCL.cjs → CasinoRandomGame-CtrV5Zq9.cjs} +1 -1
- package/components/{CasinoRandomGame-CROz9-qb.js → CasinoRandomGame-D9uI-0HJ.js} +1 -1
- package/components/{CasinoRandomGame-iLAl8PT1.js → CasinoRandomGame-DfVbawNf.js} +1 -1
- package/components/{CasinoSearchNd-JCbnWDoT.js → CasinoSearchNd-C7dhVLGA.js} +3 -3
- package/components/{CasinoSearchNd-U73g-0SV.js → CasinoSearchNd-DFkU61c3.js} +3 -3
- package/components/{CasinoSearchNd-D3Rlb42i.cjs → CasinoSearchNd-uyln5p8b.cjs} +1 -1
- package/components/{CasinoSort-Ce1vDL8z.cjs → CasinoSort-BsXOeI0C.cjs} +1 -1
- package/components/{CasinoSort-DOkmQroL.js → CasinoSort-CTN72s-D.js} +1 -1
- package/components/{CasinoSort-CTlEjsW6.js → CasinoSort-V3aduIWF.js} +1 -1
- package/components/{CasinoWinners-C_u9lTEZ.js → CasinoWinners-4USyKpC3.js} +2 -2
- package/components/{CasinoWinners-Bgxj-WaT.cjs → CasinoWinners-BDry1zn1.cjs} +1 -1
- package/components/{CasinoWinners-BnOaeWod.js → CasinoWinners-ClkBsJkH.js} +2 -2
- package/components/{GeneralAnimationLoading-Bid-JpR1.js → GeneralAnimationLoading-2pIa3WZ2.js} +1 -1
- package/components/{GeneralAnimationLoading-DIbb8v9O.js → GeneralAnimationLoading-B9CgzrHo.js} +1 -1
- package/components/{GeneralAnimationLoading-CMpO5woq.cjs → GeneralAnimationLoading-BIa2hgIm.cjs} +1 -1
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/lazy/{casino-calendar-Cs0jFzFd.js → casino-calendar-BnA6moNu.js} +1 -1
- package/lazy/{casino-calendar-CsNsKiZY.js → casino-calendar-CCjyf9sY.js} +1 -1
- package/lazy/{casino-calendar-YkbDV8u-.cjs → casino-calendar-DouPWVGN.cjs} +1 -1
- package/lazy/{casino-calendar-daily-details-245QLr11.js → casino-calendar-daily-details-4_z9E4ve.js} +1 -1
- package/lazy/{casino-calendar-daily-details-YbqHTfeW.js → casino-calendar-daily-details-C0P3w-fs.js} +1 -1
- package/lazy/{casino-calendar-daily-details-CPtlx4kW.cjs → casino-calendar-daily-details-Dt4FF_n8.cjs} +1 -1
- package/lazy/{casino-calendar-daily-item-D_hB5GRk.cjs → casino-calendar-daily-item-BWcR9mep.cjs} +1 -1
- package/lazy/{casino-calendar-daily-item-C-eqWtT0.js → casino-calendar-daily-item-CUVB-kY4.js} +1 -1
- package/lazy/{casino-calendar-daily-item-DU29B-S3.js → casino-calendar-daily-item-DMKoFR_q.js} +1 -1
- package/lazy/{casino-collections-providers-qcRdTKtX.js → casino-collections-providers-BXXUgv8B.js} +1 -1
- package/lazy/{casino-collections-providers-DI96GWu-.cjs → casino-collections-providers-DXotDGWT.cjs} +1 -1
- package/lazy/{casino-collections-providers-C2NqfsDL.js → casino-collections-providers-DatVbMye.js} +1 -1
- package/lazy/{casino-favorites-section-nd-DZU8aHmE.js → casino-favorites-section-nd-B0h-6KZs.js} +1 -1
- package/lazy/{casino-favorites-section-nd-C7X_c8WA.js → casino-favorites-section-nd-G1k_nAvZ.js} +1 -1
- package/lazy/{casino-favorites-section-nd-8jwugjME.cjs → casino-favorites-section-nd-rZSCGLz9.cjs} +1 -1
- package/lazy/{casino-filter-DbcMmIk_.cjs → casino-filter-B2xf5U69.cjs} +1 -1
- package/lazy/{casino-filter-BeEmgxog.js → casino-filter-CZ82Hcqj.js} +1 -1
- package/lazy/{casino-filter-D8PJSlUz.js → casino-filter-M72JDTfo.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-CpwMV7LL.js → casino-game-thumbnail-nd-BpRhDG4C.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-PGdD0_IP.cjs → casino-game-thumbnail-nd-KF_zrMzM.cjs} +1 -1
- package/lazy/{casino-game-thumbnail-nd-fVN7s9p3.js → casino-game-thumbnail-nd-W3ayXj8t.js} +1 -1
- package/lazy/{casino-games-category-section-nd-Dn1t4CWy.js → casino-games-category-section-nd-BUgUwG4O.js} +1 -1
- package/lazy/{casino-games-category-section-nd-Df9BEdvf.js → casino-games-category-section-nd-BVdBFwwD.js} +1 -1
- package/lazy/{casino-games-category-section-nd-BYmjd6dL.cjs → casino-games-category-section-nd-Cp7zYNK8.cjs} +1 -1
- package/lazy/{casino-jackpot-banner-ByR6Zc1f.cjs → casino-jackpot-banner-BdLavtLx.cjs} +1 -1
- package/lazy/{casino-jackpot-banner-BIiv6bjj.js → casino-jackpot-banner-DZQ5Wi9n.js} +1 -1
- package/lazy/{casino-jackpot-banner-DJd6KJQi.js → casino-jackpot-banner-wv7HsxL_.js} +1 -1
- package/lazy/{casino-last-played-section-nd-BTB6t4OE.js → casino-last-played-section-nd-CjK9WO3Y.js} +1 -1
- package/lazy/{casino-last-played-section-nd-gmnR5s4s.js → casino-last-played-section-nd-CqwSv5ck.js} +1 -1
- package/lazy/{casino-last-played-section-nd-CqjHRwIW.cjs → casino-last-played-section-nd-yCd6eEHJ.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-vVzJCBeu.cjs → casino-most-played-section-nd-BJW9_1tW.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-BEVPSN6I.js → casino-most-played-section-nd-C94lFpEP.js} +1 -1
- package/lazy/{casino-most-played-section-nd-DmOXcjq2.js → casino-most-played-section-nd-DBUtrDqy.js} +1 -1
- package/lazy/{casino-my-games-nd-DX5-KSYG.js → casino-my-games-nd-CKKAEy87.js} +1 -1
- package/lazy/{casino-my-games-nd-CCZzTLyG.cjs → casino-my-games-nd-CweGRZVj.cjs} +1 -1
- package/lazy/{casino-my-games-nd-DdFHsoU1.js → casino-my-games-nd-D2yactb5.js} +1 -1
- package/lazy/casino-play-random-game-6lpggPdG.js +577 -0
- package/lazy/casino-play-random-game-DJtnASHn.cjs +1 -0
- package/lazy/casino-play-random-game-pSLEGfAB.js +561 -0
- package/lazy/{casino-random-game-CymQ57Gq.js → casino-random-game-BNjDmcBR.js} +1 -1
- package/lazy/{casino-random-game-Czlq0-VB.cjs → casino-random-game-DoOoACUd.cjs} +1 -1
- package/lazy/{casino-random-game-Bo0vfYPH.js → casino-random-game-v4cKTQdE.js} +1 -1
- package/lazy/{casino-search-nd-BED9H3PW.cjs → casino-search-nd-Bcnszmji.cjs} +1 -1
- package/lazy/{casino-search-nd-B7hwSaEk.js → casino-search-nd-D2EHW2L0.js} +1 -1
- package/lazy/{casino-search-nd-DFwBI4Qk.js → casino-search-nd-DOVyBHa7.js} +1 -1
- package/lazy/{casino-sort-CmEYuC2P.cjs → casino-sort--VUnkatZ.cjs} +1 -1
- package/lazy/{casino-sort-BCOB6Jg-.js → casino-sort-BI4VLIYM.js} +1 -1
- package/lazy/{casino-sort-Co6zKDLB.js → casino-sort-CA7YDNNV.js} +1 -1
- package/lazy/{casino-winners-DC4QNFs1.cjs → casino-winners-Bqmcvrcd.cjs} +1 -1
- package/lazy/{casino-winners-SfAP5xJr.js → casino-winners-Cxdl38To.js} +1 -1
- package/lazy/{casino-winners-CMCXuPK3.js → casino-winners-_unUTW-I.js} +1 -1
- package/lazy/{general-animation-loading-DQ36UHLN.cjs → general-animation-loading-B8SfjdID.cjs} +1 -1
- package/lazy/{general-animation-loading-DMjUl0Rz.js → general-animation-loading-XGVRNffx.js} +1 -1
- package/lazy/{general-animation-loading-DOvLyO6h.js → general-animation-loading-mNCrvpE1.js} +1 -1
- package/lazy/{ui-image-Gj7rJvHi.js → ui-image-6OZUScHT.js} +104 -105
- package/lazy/ui-image-BTer2Blj.cjs +1 -0
- package/lazy/{ui-image-DN4m37SE.js → ui-image-DrfhaZQK.js} +101 -102
- package/package.json +1 -1
- package/stencil/casino-play-random-game-BX2tki3v.cjs +1 -0
- package/stencil/casino-play-random-game-BvFOgOx2.js +11 -0
- package/stencil/casino-play-random-game-DXUvivEt.js +29 -0
- package/stencil/{casino-play-random-game_3-FMiWkeIB.js → casino-play-random-game_2-DLQ8WMsx.js} +62 -146
- package/stencil/{casino-play-random-game_3-DOusVAh7.cjs → casino-play-random-game_2-Mc_EMhs0.cjs} +3 -3
- package/stencil/{casino-play-random-game_3-COuR8an7.js → casino-play-random-game_2-X7gDHQuf.js} +62 -146
- package/stencil/ui-image-BSbeFMrw.js +25 -0
- package/stencil/ui-image-D0QGiLPH.js +7 -0
- package/stencil/ui-image-_R7s8yZ5.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-D0uYqQgN.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-DL2Udm8K.js +39 -0
- package/stencil/ui-image-b7b48fe5-Dp3Q6FzO.js +39 -0
- package/stencil/{ui-image_2-CG9gShl1.js → ui-image_2-1wLfOSXS.js} +2 -2
- package/stencil/{ui-image_2-D6Y1TRww.cjs → ui-image_2-CU1S4WDO.cjs} +1 -1
- package/stencil/{ui-image_2-DA8s2q6a.js → ui-image_2-zG8MepJB.js} +2 -2
- package/lazy/casino-play-random-game-DXY5a1vd.js +0 -566
- package/lazy/casino-play-random-game-DsvAa0pU.cjs +0 -1
- package/lazy/casino-play-random-game-Dx7GeDg-.js +0 -582
- package/lazy/ui-image-Bfp60xra.cjs +0 -1
- package/stencil/casino-play-random-game-C5MTrbms.js +0 -11
- package/stencil/casino-play-random-game-D6quvMHY.cjs +0 -1
- package/stencil/casino-play-random-game-fHX7Vj4m.js +0 -29
- package/stencil/ui-image-B1gnYL7S.js +0 -7
- package/stencil/ui-image-BfKM3Qq_.js +0 -25
- package/stencil/ui-image-Dv6GC1lm.cjs +0 -1
- package/stencil/ui-image-ae115205-CrezTJRy.js +0 -81
- package/stencil/ui-image-ae115205-D6AaeZwA.js +0 -81
- package/stencil/ui-image-ae115205-QubhRQ2C.cjs +0 -1
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var s = (r, a, e) => new Promise((g, n) => {
|
|
2
|
-
var m = (t) => {
|
|
3
|
-
try {
|
|
4
|
-
i(e.next(t));
|
|
5
|
-
} catch (o) {
|
|
6
|
-
n(o);
|
|
7
|
-
}
|
|
8
|
-
}, u = (t) => {
|
|
9
|
-
try {
|
|
10
|
-
i(e.throw(t));
|
|
11
|
-
} catch (o) {
|
|
12
|
-
n(o);
|
|
13
|
-
}
|
|
14
|
-
}, i = (t) => t.done ? g(t.value) : Promise.resolve(t.value).then(m, u);
|
|
15
|
-
i((e = e.apply(r, a)).next());
|
|
16
|
-
});
|
|
17
|
-
import { b as c, p as l } from "../lazy/ui-image-Gj7rJvHi.js";
|
|
18
|
-
import { a as d } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
19
|
-
var h = () => {
|
|
20
|
-
const r = import.meta.url, a = {};
|
|
21
|
-
return r !== "" && (a.resourcesUrl = new URL(".", r).href), l(a);
|
|
22
|
-
};
|
|
23
|
-
h().then((r) => s(void 0, null, function* () {
|
|
24
|
-
return yield d(), c([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], loading: [1], imgLoaded: [32] }, null, { src: ["onSrcChange"], loading: ["onLoadingChange"] }], [0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1] }, null, { structure: ["handleStructureChange"] }]]]], r);
|
|
25
|
-
}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var c=(t,r,i)=>new Promise((g,s)=>{var m=e=>{try{n(i.next(e))}catch(a){s(a)}},d=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?g(e.value):Promise.resolve(e.value).then(m,d);n((i=i.apply(t,r)).next())});const u=require("../lazy/ui-image-Bfp60xra.cjs"),l=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/ui-image-Dv6GC1lm.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),u.promiseResolve(r)};h().then(t=>c(exports,null,function*(){return yield l.globalScripts$1(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],loading:[1],imgLoaded:[32]},null,{src:["onSrcChange"],loading:["onLoadingChange"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],t)}));
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { r as n, h as t, H as r, g as a } from "../lazy/ui-image-Gj7rJvHi.js";
|
|
2
|
-
const o = ".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}", d = o, h = class {
|
|
3
|
-
constructor(i) {
|
|
4
|
-
n(this, i), this._onLoad = () => {
|
|
5
|
-
this.imgLoaded = !0;
|
|
6
|
-
}, 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;
|
|
7
|
-
}
|
|
8
|
-
onSrcChange() {
|
|
9
|
-
this.loading !== "eager" && (this.imgLoaded = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
10
|
-
}
|
|
11
|
-
onLoadingChange(i, e) {
|
|
12
|
-
i !== e && (this.cleanupObserver(), i === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
|
|
13
|
-
}
|
|
14
|
-
componentDidLoad() {
|
|
15
|
-
this.loading !== "eager" && this.setupObserver();
|
|
16
|
-
}
|
|
17
|
-
disconnectedCallback() {
|
|
18
|
-
this.cleanupObserver(), this.imgEl && (this.imgEl.src = "");
|
|
19
|
-
}
|
|
20
|
-
canUseIO() {
|
|
21
|
-
return typeof window != "undefined" && "IntersectionObserver" in window;
|
|
22
|
-
}
|
|
23
|
-
setupObserver() {
|
|
24
|
-
if (this.loading !== "eager") {
|
|
25
|
-
if (!this.canUseIO()) {
|
|
26
|
-
this.beginLoad();
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
this.io = new IntersectionObserver((i) => {
|
|
30
|
-
var e;
|
|
31
|
-
for (const s of i)
|
|
32
|
-
if (s.isIntersecting) {
|
|
33
|
-
this.beginLoad(), (e = this.io) === null || e === void 0 || e.unobserve(s.target), this.cleanupObserver();
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
cleanupObserver() {
|
|
40
|
-
var i;
|
|
41
|
-
(i = this.io) === null || i === void 0 || i.disconnect(), this.io = void 0;
|
|
42
|
-
}
|
|
43
|
-
beginLoad() {
|
|
44
|
-
this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
45
|
-
}
|
|
46
|
-
preloadAndSetSrc() {
|
|
47
|
-
if (!this.src || !this.imgEl)
|
|
48
|
-
return;
|
|
49
|
-
const i = new Image();
|
|
50
|
-
i.onload = () => {
|
|
51
|
-
this.imgEl && (this.imgEl.src = i.src, this.imgLoaded = !0);
|
|
52
|
-
}, i.onerror = () => {
|
|
53
|
-
this.imgEl && (this.imgEl.src = this.src);
|
|
54
|
-
}, i.src = this.src;
|
|
55
|
-
}
|
|
56
|
-
get showSkeleton() {
|
|
57
|
-
return this.loading !== "eager" && !this.imgLoaded;
|
|
58
|
-
}
|
|
59
|
-
renderEager() {
|
|
60
|
-
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" }));
|
|
61
|
-
}
|
|
62
|
-
renderLazy() {
|
|
63
|
-
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: (i) => this.imgEl = i, src: void 0, decoding: "async", style: this.styles, onLoad: this._onLoad, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
|
67
|
-
}
|
|
68
|
-
get el() {
|
|
69
|
-
return a(this);
|
|
70
|
-
}
|
|
71
|
-
static get watchers() {
|
|
72
|
-
return {
|
|
73
|
-
src: ["onSrcChange"],
|
|
74
|
-
loading: ["onLoadingChange"]
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
h.style = d;
|
|
79
|
-
export {
|
|
80
|
-
h as U
|
|
81
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { r as n, h as t, H as r, g as a } from "../lazy/ui-image-DN4m37SE.js";
|
|
2
|
-
const o = ".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}", d = o, h = class {
|
|
3
|
-
constructor(i) {
|
|
4
|
-
n(this, i), this._onLoad = () => {
|
|
5
|
-
this.imgLoaded = !0;
|
|
6
|
-
}, 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;
|
|
7
|
-
}
|
|
8
|
-
onSrcChange() {
|
|
9
|
-
this.loading !== "eager" && (this.imgLoaded = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
10
|
-
}
|
|
11
|
-
onLoadingChange(i, e) {
|
|
12
|
-
i !== e && (this.cleanupObserver(), i === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
|
|
13
|
-
}
|
|
14
|
-
componentDidLoad() {
|
|
15
|
-
this.loading !== "eager" && this.setupObserver();
|
|
16
|
-
}
|
|
17
|
-
disconnectedCallback() {
|
|
18
|
-
this.cleanupObserver(), this.imgEl && (this.imgEl.src = "");
|
|
19
|
-
}
|
|
20
|
-
canUseIO() {
|
|
21
|
-
return typeof window < "u" && "IntersectionObserver" in window;
|
|
22
|
-
}
|
|
23
|
-
setupObserver() {
|
|
24
|
-
if (this.loading !== "eager") {
|
|
25
|
-
if (!this.canUseIO()) {
|
|
26
|
-
this.beginLoad();
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
this.io = new IntersectionObserver((i) => {
|
|
30
|
-
var e;
|
|
31
|
-
for (const s of i)
|
|
32
|
-
if (s.isIntersecting) {
|
|
33
|
-
this.beginLoad(), (e = this.io) === null || e === void 0 || e.unobserve(s.target), this.cleanupObserver();
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
cleanupObserver() {
|
|
40
|
-
var i;
|
|
41
|
-
(i = this.io) === null || i === void 0 || i.disconnect(), this.io = void 0;
|
|
42
|
-
}
|
|
43
|
-
beginLoad() {
|
|
44
|
-
this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
45
|
-
}
|
|
46
|
-
preloadAndSetSrc() {
|
|
47
|
-
if (!this.src || !this.imgEl)
|
|
48
|
-
return;
|
|
49
|
-
const i = new Image();
|
|
50
|
-
i.onload = () => {
|
|
51
|
-
this.imgEl && (this.imgEl.src = i.src, this.imgLoaded = !0);
|
|
52
|
-
}, i.onerror = () => {
|
|
53
|
-
this.imgEl && (this.imgEl.src = this.src);
|
|
54
|
-
}, i.src = this.src;
|
|
55
|
-
}
|
|
56
|
-
get showSkeleton() {
|
|
57
|
-
return this.loading !== "eager" && !this.imgLoaded;
|
|
58
|
-
}
|
|
59
|
-
renderEager() {
|
|
60
|
-
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" }));
|
|
61
|
-
}
|
|
62
|
-
renderLazy() {
|
|
63
|
-
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: (i) => this.imgEl = i, src: void 0, decoding: "async", style: this.styles, onLoad: this._onLoad, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
|
67
|
-
}
|
|
68
|
-
get el() {
|
|
69
|
-
return a(this);
|
|
70
|
-
}
|
|
71
|
-
static get watchers() {
|
|
72
|
-
return {
|
|
73
|
-
src: ["onSrcChange"],
|
|
74
|
-
loading: ["onLoadingChange"]
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
h.style = d;
|
|
79
|
-
export {
|
|
80
|
-
h as U
|
|
81
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("../lazy/ui-image-Bfp60xra.cjs"),n=".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}",a=n,r=class{constructor(i){e.registerInstance(this,i),this._onLoad=()=>{this.imgLoaded=!0},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}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(i,t){i!==t&&(this.cleanupObserver(),i==="eager"?this.imgEl&&this.src&&(this.imgEl.src=this.src):(this.imgLoaded=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.imgEl&&(this.imgEl.src="")}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(i=>{var t;for(const s of i)if(s.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(s.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var i;(i=this.io)===null||i===void 0||i.disconnect(),this.io=void 0}beginLoad(){this.preloadAndSetSrc(),this.imgEl&&this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0)}preloadAndSetSrc(){if(!this.src||!this.imgEl)return;const i=new Image;i.onload=()=>{this.imgEl&&(this.imgEl.src=i.src,this.imgLoaded=!0)},i.onerror=()=>{this.imgEl&&(this.imgEl.src=this.src)},i.src=this.src}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return e.h(e.Host,{class:"HostContainer"},e.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return e.h(e.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&e.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),e.h("img",{ref:i=>this.imgEl=i,src:void 0,decoding:"async",style:this.styles,onLoad:this._onLoad,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return e.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};r.style=a;exports.UiImage=r;
|