@everymatrix/casino-header-controller 1.54.12 → 1.55.0
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/CasinoHamburgerMenu-C8-P7sF9.cjs +8 -0
- package/components/{CasinoHamburgerMenu-Dv3mR4gk.js → CasinoHamburgerMenu-E4O8Dx5o.js} +1239 -1157
- package/components/{CasinoHamburgerMenu-DrXD2QZ-.js → CasinoHamburgerMenu-JVY4ac8I.js} +975 -969
- package/components/{CasinoHeaderController-uM2BkEPQ.js → CasinoHeaderController-9s-CNvhj.js} +762 -700
- package/components/{CasinoHeaderController-EYxUFHlv.js → CasinoHeaderController-BVCLQUCq.js} +780 -718
- package/components/CasinoHeaderController-BZk18wxU.cjs +13 -0
- package/components/{CasinoSlider-BaotiKI5.cjs → CasinoSlider-DDycojG8.cjs} +1 -1
- package/components/{CasinoSlider-5-1p-Xbc.js → CasinoSlider-xu8jCpW1.js} +325 -328
- package/components/{CasinoSlider-Dm6jniCL.js → CasinoSlider-yMz4R8ed.js} +296 -299
- package/components/PlayerAccountBalanceModal-BVQlpIy4.cjs +13 -0
- package/components/{PlayerAccountBalanceModal-Cs1yCHOI.js → PlayerAccountBalanceModal-CcASksA3.js} +401 -405
- package/components/{PlayerAccountBalanceModal-B1_uQAVA.js → PlayerAccountBalanceModal-DG6GgVDp.js} +364 -368
- package/components/PlayerDeposit-C8ZPqrpV.cjs +1 -0
- package/components/{PlayerDeposit-B89_Vs9V.js → PlayerDeposit-CIarW5H1.js} +142 -146
- package/components/{PlayerDeposit-CNy9cvEy.js → PlayerDeposit-D9xpcJp9.js} +142 -146
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-657e7a14-BQuTIY5_.js +572 -0
- package/stencil/index-657e7a14-CDqZBTHG.cjs +1 -0
- package/stencil/index-657e7a14-fo2CD-e3.js +588 -0
- package/stencil/{user-deposit-withdrawal-CJUx01Ss.cjs → user-deposit-withdrawal-BCkoyv3i.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-5ly7Quf_.js → user-deposit-withdrawal-Dg3a3KkR.js} +24 -24
- package/stencil/{user-deposit-withdrawal-BEcaqAXR.js → user-deposit-withdrawal-gu9RDhoH.js} +24 -24
- package/components/CasinoHamburgerMenu-BGHo13mn.cjs +0 -8
- package/components/CasinoHeaderController-CfFUvcEO.cjs +0 -13
- package/components/PlayerAccountBalanceModal-B_7fcnxz.cjs +0 -13
- package/components/PlayerDeposit-DqZH75Dh.cjs +0 -1
- package/stencil/index-45f4006f-B0VyePmU.js +0 -638
- package/stencil/index-45f4006f-BYSN7Lmh.js +0 -654
- package/stencil/index-45f4006f-CT7q_gcU.cjs +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-BGHo13mn.cjs");function x(n,t){e.addMessages(n,t)}function A(n){e.$locale.set(n)}const L={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function W(n){e.append_styles(n,"svelte-lvm6lo","button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}")}function j(n){let t,a,l,r,c,m,p,h,f,o,s=n[4]("titleDeposit")+"",d,w,b;return{c(){t=e.element("div"),a=e.svg_element("svg"),l=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),p=e.svg_element("g"),h=e.svg_element("path"),f=e.space(),o=e.element("h2"),d=e.text(s),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(p,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(o,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(u,D){e.insert(u,t,D),e.append(t,a),e.append(a,l),e.append(l,r),e.append(r,c),e.append(a,m),e.append(m,p),e.append(p,h),e.append(t,f),e.append(t,o),e.append(o,d),w||(b=e.listen(t,"click",n[17]),w=!0)},p(u,D){D&16&&s!==(s=u[4]("titleDeposit")+"")&&e.set_data(d,s)},d(u){u&&e.detach(t),w=!1,b()}}}function z(n){let t,a,l;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,l=n[3])||e.attr(a,"src",l),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,l=r[3])&&e.attr(a,"src",l)},d(r){r&&e.detach(t)}}}function G(n){let t,a=n[4]("loading")+"",l;return{c(){t=e.element("p"),l=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,l)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function q(n){let t,a,l,r=n[4]("titleDeposit")+"",c,m,p=n[5]&&j(n);function h(s,d){return s[1]?G:z}let f=h(n),o=f(n);return{c(){t=e.element("div"),p&&p.c(),a=e.space(),l=e.element("h2"),c=e.text(r),m=e.space(),o.c(),e.attr(l,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,d){e.insert(s,t,d),p&&p.m(t,null),e.append(t,a),e.append(t,l),e.append(l,c),e.append(t,m),o.m(t,null),n[18](t)},p(s,[d]){s[5]&&p.p(s,d),d&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=h(s))&&o?o.p(s,d):(o.d(1),o=f(s),o&&(o.c(),o.m(t,null))),d&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),p&&p.d(),o.d(),n[18](null)}}}function N(n,t,a){let l,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:p=""}=t,{lang:h="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:o=""}=t,{clientstylingurl:s=""}=t,{translationurl:d=""}=t,{playercurrency:w=""}=t,{shortcashierenabled:b="false"}=t,u,D=window.navigator.userAgent,v=e.getDevice(D)!=="PC",M=!0,C,_=0,k="";const R=()=>{fetch(d).then(y=>y.json()).then(y=>{Object.keys(y).forEach(g=>{x(g,y[g])})}).catch(y=>{console.log(y)})};Object.keys(L).forEach(i=>{x(i,L[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},T=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,w=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,C=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},B=()=>{let i=new URL(`${c}/v1/player/${p}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",h),l&&i.searchParams.append("isShortCashier",b),f)switch(w){case"USD":_=.4;break;case"CDF":_=1e3;break}let y={method:"POST",headers:{"X-SessionId":m,currency:w||"EUR",amount:_,cashierMode:"Default",IsShortCashier:b,accept:"application/json"}};fetch(i.href,y).then(g=>g.json()).then(g=>{a(1,M=!1),a(3,k=g.CashierUrl)},g=>{console.error(g)})},H=()=>{A(h)},P=()=>{let i=document.createElement("style");i.innerHTML=o,u.appendChild(i)},U=()=>{let i=new URL(s),y=document.createElement("style");fetch(i.href).then(g=>g.text()).then(g=>{y.innerHTML=g,setTimeout(()=>{u.appendChild(y)},1)})};e.onMount(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)}));const F=()=>S();function I(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,a(0,u)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,p=i.playerid),"lang"in i&&a(11,h=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,o=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,d=i.translationurl),"playercurrency"in i&&a(7,w=i.playercurrency),"shortcashierenabled"in i&&a(16,b=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&h&&H(),n.$$.dirty&65536&&(l=b.toLocaleLowerCase()==="true"),n.$$.dirty&16385&&s&&u&&U(),n.$$.dirty&8193&&o&&u&&P(),n.$$.dirty&32768&&d&&R(),n.$$.dirty&69504&&m&&p&&c&&w&&h&&b&&B()},[u,M,C,k,r,v,S,w,c,m,p,h,f,o,s,d,b,F,I]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,q,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},W)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(t){this.$$set({playercurrency:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(E,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},shortcashierenabled:{}},[],[],!0);exports.default=E;
|
@@ -1,638 +0,0 @@
|
|
1
|
-
const yt = "user-deposit-withdrawal", G = (
|
2
|
-
/* user-deposit-withdrawal */
|
3
|
-
{ hydratedSelectorName: "hydrated", lazyLoad: !0, updatable: !0 }
|
4
|
-
);
|
5
|
-
var St = Object.defineProperty, Et = (t, e) => {
|
6
|
-
for (var n in e)
|
7
|
-
St(t, n, { get: e[n], enumerable: !0 });
|
8
|
-
}, kt = "http://www.w3.org/2000/svg", wt = "http://www.w3.org/1999/xhtml", Y = /* @__PURE__ */ new WeakMap(), k = (t) => Y.get(t), re = (t, e) => {
|
9
|
-
Y.set(e.$lazyInstance$ = t, e);
|
10
|
-
}, xt = (t, e) => {
|
11
|
-
const n = {
|
12
|
-
$flags$: 0,
|
13
|
-
$hostElement$: t,
|
14
|
-
$cmpMeta$: e,
|
15
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
16
|
-
};
|
17
|
-
return n.$onReadyPromise$ = new Promise((r) => n.$onReadyResolve$ = r), t["s-p"] = [], t["s-rc"] = [], Y.set(t, n);
|
18
|
-
}, Z = (t, e) => e in t, P = (t, e) => (0, console.error)(t, e), U = /* @__PURE__ */ new Map(), Tt = (t, e, n) => {
|
19
|
-
const s = t.$tagName$.replace(/-/g, "_"), r = t.$lazyBundleId$;
|
20
|
-
if (!r)
|
21
|
-
return;
|
22
|
-
const i = U.get(r);
|
23
|
-
if (i)
|
24
|
-
return i[s];
|
25
|
-
{
|
26
|
-
const $ = (l) => (U.set(r, l), l[s]);
|
27
|
-
switch (r) {
|
28
|
-
case "user-deposit-withdrawal":
|
29
|
-
return import(
|
30
|
-
/* webpackMode: "lazy" */
|
31
|
-
"./user-deposit-withdrawal-5ly7Quf_.js"
|
32
|
-
).then($, P);
|
33
|
-
}
|
34
|
-
}
|
35
|
-
return import(
|
36
|
-
/* @vite-ignore */
|
37
|
-
/* webpackInclude: /\.entry\.js$/ */
|
38
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
39
|
-
/* webpackMode: "lazy" */
|
40
|
-
`./${r}.entry.js`
|
41
|
-
).then(
|
42
|
-
($) => (U.set(r, $), $[s]),
|
43
|
-
($) => {
|
44
|
-
P($, e.$hostElement$);
|
45
|
-
}
|
46
|
-
);
|
47
|
-
}, O = /* @__PURE__ */ new Map(), Pt = "sty-id", _t = "{visibility:hidden}.hydrated{visibility:inherit}", st = "slot-fb{display:contents}slot-fb[hidden]{display:none}", H = typeof window < "u" ? window : {}, w = H.document || { head: {} }, p = {
|
48
|
-
$flags$: 0,
|
49
|
-
$resourcesUrl$: "",
|
50
|
-
jmp: (t) => t(),
|
51
|
-
raf: (t) => requestAnimationFrame(t),
|
52
|
-
ael: (t, e, n, s) => t.addEventListener(e, n, s),
|
53
|
-
rel: (t, e, n, s) => t.removeEventListener(e, n, s),
|
54
|
-
ce: (t, e) => new CustomEvent(t, e)
|
55
|
-
}, Lt = (t) => Promise.resolve(t), nt = /* @__PURE__ */ (() => {
|
56
|
-
try {
|
57
|
-
return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
|
58
|
-
} catch {
|
59
|
-
}
|
60
|
-
return !1;
|
61
|
-
})(), q = !1, M = [], rt = [], At = (t, e) => (n) => {
|
62
|
-
t.push(n), q || (q = !0, p.$flags$ & 4 ? X(B) : p.raf(B));
|
63
|
-
}, m = (t) => {
|
64
|
-
for (let e = 0; e < t.length; e++)
|
65
|
-
try {
|
66
|
-
t[e](performance.now());
|
67
|
-
} catch (n) {
|
68
|
-
P(n);
|
69
|
-
}
|
70
|
-
t.length = 0;
|
71
|
-
}, B = () => {
|
72
|
-
m(M), m(rt), (q = M.length > 0) && p.raf(B);
|
73
|
-
}, X = (t) => Lt().then(t), jt = /* @__PURE__ */ At(rt), F = (t) => (t = typeof t, t === "object" || t === "function");
|
74
|
-
function lt(t) {
|
75
|
-
var e, n, s;
|
76
|
-
return (s = (n = (e = t.head) == null ? void 0 : e.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
|
77
|
-
}
|
78
|
-
var It = {};
|
79
|
-
Et(It, {
|
80
|
-
err: () => it,
|
81
|
-
map: () => Ot,
|
82
|
-
ok: () => D,
|
83
|
-
unwrap: () => bt,
|
84
|
-
unwrapErr: () => zt
|
85
|
-
});
|
86
|
-
var D = (t) => ({
|
87
|
-
isOk: !0,
|
88
|
-
isErr: !1,
|
89
|
-
value: t
|
90
|
-
}), it = (t) => ({
|
91
|
-
isOk: !1,
|
92
|
-
isErr: !0,
|
93
|
-
value: t
|
94
|
-
});
|
95
|
-
function Ot(t, e) {
|
96
|
-
if (t.isOk) {
|
97
|
-
const n = e(t.value);
|
98
|
-
return n instanceof Promise ? n.then((s) => D(s)) : D(n);
|
99
|
-
}
|
100
|
-
if (t.isErr) {
|
101
|
-
const n = t.value;
|
102
|
-
return it(n);
|
103
|
-
}
|
104
|
-
throw "should never get here";
|
105
|
-
}
|
106
|
-
var bt = (t) => {
|
107
|
-
if (t.isOk)
|
108
|
-
return t.value;
|
109
|
-
throw t.value;
|
110
|
-
}, zt = (t) => {
|
111
|
-
if (t.isErr)
|
112
|
-
return t.value;
|
113
|
-
throw t.value;
|
114
|
-
}, x = (t, e = "") => () => {
|
115
|
-
}, Ht = (t, e) => () => {
|
116
|
-
}, Ut = (t, e, ...n) => {
|
117
|
-
let s = null, r = null, i = !1, $ = !1;
|
118
|
-
const l = [], c = (a) => {
|
119
|
-
for (let d = 0; d < a.length; d++)
|
120
|
-
s = a[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((i = typeof t != "function" && !F(s)) && (s = String(s)), i && $ ? l[l.length - 1].$text$ += s : l.push(i ? W(null, s) : s), $ = i);
|
121
|
-
};
|
122
|
-
if (c(n), e) {
|
123
|
-
e.key && (r = e.key);
|
124
|
-
{
|
125
|
-
const a = e.className || e.class;
|
126
|
-
a && (e.class = typeof a != "object" ? a : Object.keys(a).filter((d) => a[d]).join(" "));
|
127
|
-
}
|
128
|
-
}
|
129
|
-
const o = W(t, null);
|
130
|
-
return o.$attrs$ = e, l.length > 0 && (o.$children$ = l), o.$key$ = r, o;
|
131
|
-
}, W = (t, e) => {
|
132
|
-
const n = {
|
133
|
-
$flags$: 0,
|
134
|
-
$tag$: t,
|
135
|
-
$text$: e,
|
136
|
-
$elm$: null,
|
137
|
-
$children$: null
|
138
|
-
};
|
139
|
-
return n.$attrs$ = null, n.$key$ = null, n;
|
140
|
-
}, Rt = {}, qt = (t) => t && t.$tag$ === Rt, C = (t, e) => t != null && !F(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 1 ? String(t) : t : t, Bt = (t, e, n) => {
|
141
|
-
const s = p.ce(e, n);
|
142
|
-
return t.dispatchEvent(s), s;
|
143
|
-
}, L = /* @__PURE__ */ new WeakMap(), Dt = (t, e, n) => {
|
144
|
-
let s = O.get(t);
|
145
|
-
nt && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = e : s.replaceSync(e)) : s = e, O.set(t, s);
|
146
|
-
}, Wt = (t, e, n) => {
|
147
|
-
var s;
|
148
|
-
const r = $t(e), i = O.get(r);
|
149
|
-
if (t = t.nodeType === 11 ? t : w, i)
|
150
|
-
if (typeof i == "string") {
|
151
|
-
t = t.head || t;
|
152
|
-
let $ = L.get(t), l;
|
153
|
-
if ($ || L.set(t, $ = /* @__PURE__ */ new Set()), !$.has(r)) {
|
154
|
-
{
|
155
|
-
l = document.querySelector(`[${Pt}="${r}"]`) || w.createElement("style"), l.innerHTML = i;
|
156
|
-
const c = (s = p.$nonce$) != null ? s : lt(w);
|
157
|
-
if (c != null && l.setAttribute("nonce", c), !(e.$flags$ & 1))
|
158
|
-
if (t.nodeName === "HEAD") {
|
159
|
-
const o = t.querySelectorAll("link[rel=preconnect]"), a = o.length > 0 ? o[o.length - 1].nextSibling : t.querySelector("style");
|
160
|
-
t.insertBefore(
|
161
|
-
l,
|
162
|
-
a?.parentNode === t ? a : null
|
163
|
-
);
|
164
|
-
} else if ("host" in t)
|
165
|
-
if (nt) {
|
166
|
-
const o = new CSSStyleSheet();
|
167
|
-
o.replaceSync(i), t.adoptedStyleSheets = [o, ...t.adoptedStyleSheets];
|
168
|
-
} else {
|
169
|
-
const o = t.querySelector("style");
|
170
|
-
o ? o.innerHTML = i + o.innerHTML : t.prepend(l);
|
171
|
-
}
|
172
|
-
else
|
173
|
-
t.append(l);
|
174
|
-
e.$flags$ & 1 && t.insertBefore(l, null);
|
175
|
-
}
|
176
|
-
e.$flags$ & 4 && (l.innerHTML += st), $ && $.add(r);
|
177
|
-
}
|
178
|
-
} else t.adoptedStyleSheets.includes(i) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, i]);
|
179
|
-
return r;
|
180
|
-
}, Ct = (t) => {
|
181
|
-
const e = t.$cmpMeta$, n = t.$hostElement$, s = e.$flags$, r = x("attachStyles", e.$tagName$), i = Wt(
|
182
|
-
n.shadowRoot ? n.shadowRoot : n.getRootNode(),
|
183
|
-
e
|
184
|
-
);
|
185
|
-
(s & 10 && s & 2 || s & 128) && (n["s-sc"] = i, n.classList.add(i + "-h")), r();
|
186
|
-
}, $t = (t, e) => "sc-" + t.$tagName$, V = (t, e, n, s, r, i, $) => {
|
187
|
-
if (n !== s) {
|
188
|
-
let l = Z(t, e), c = e.toLowerCase();
|
189
|
-
if (e === "class") {
|
190
|
-
const o = t.classList, a = N(n);
|
191
|
-
let d = N(s);
|
192
|
-
o.remove(...a.filter((f) => f && !d.includes(f))), o.add(...d.filter((f) => f && !a.includes(f)));
|
193
|
-
} else if (e === "style") {
|
194
|
-
for (const o in n)
|
195
|
-
(!s || s[o] == null) && (o.includes("-") ? t.style.removeProperty(o) : t.style[o] = "");
|
196
|
-
for (const o in s)
|
197
|
-
(!n || s[o] !== n[o]) && (o.includes("-") ? t.style.setProperty(o, s[o]) : t.style[o] = s[o]);
|
198
|
-
} else if (e !== "key") if (e === "ref")
|
199
|
-
s && s(t);
|
200
|
-
else if (!l && e[0] === "o" && e[1] === "n") {
|
201
|
-
if (e[2] === "-" ? e = e.slice(3) : Z(H, c) ? e = c.slice(2) : e = c[2] + e.slice(3), n || s) {
|
202
|
-
const o = e.endsWith(ot);
|
203
|
-
e = e.replace(Yt, ""), n && p.rel(t, e, n, o), s && p.ael(t, e, s, o);
|
204
|
-
}
|
205
|
-
} else {
|
206
|
-
const o = F(s);
|
207
|
-
if ((l || o && s !== null) && !r)
|
208
|
-
try {
|
209
|
-
if (t.tagName.includes("-"))
|
210
|
-
t[e] !== s && (t[e] = s);
|
211
|
-
else {
|
212
|
-
const a = s ?? "";
|
213
|
-
e === "list" ? l = !1 : (n == null || t[e] != a) && (typeof t.__lookupSetter__(e) == "function" ? t[e] = a : t.setAttribute(e, a));
|
214
|
-
}
|
215
|
-
} catch {
|
216
|
-
}
|
217
|
-
s == null || s === !1 ? (s !== !1 || t.getAttribute(e) === "") && t.removeAttribute(e) : (!l || i & 4 || r) && !o && (s = s === !0 ? "" : s, t.setAttribute(e, s));
|
218
|
-
}
|
219
|
-
}
|
220
|
-
}, Gt = /\s/, N = (t) => (typeof t == "object" && t && "baseVal" in t && (t = t.baseVal), !t || typeof t != "string" ? [] : t.split(Gt)), ot = "Capture", Yt = new RegExp(ot + "$"), at = (t, e, n, s) => {
|
221
|
-
const r = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, i = t && t.$attrs$ || {}, $ = e.$attrs$ || {};
|
222
|
-
for (const l of tt(Object.keys(i)))
|
223
|
-
l in $ || V(
|
224
|
-
r,
|
225
|
-
l,
|
226
|
-
i[l],
|
227
|
-
void 0,
|
228
|
-
n,
|
229
|
-
e.$flags$
|
230
|
-
);
|
231
|
-
for (const l of tt(Object.keys($)))
|
232
|
-
V(
|
233
|
-
r,
|
234
|
-
l,
|
235
|
-
i[l],
|
236
|
-
$[l],
|
237
|
-
n,
|
238
|
-
e.$flags$
|
239
|
-
);
|
240
|
-
};
|
241
|
-
function tt(t) {
|
242
|
-
return t.includes("ref") ? (
|
243
|
-
// we need to sort these to ensure that `'ref'` is the last attr
|
244
|
-
[...t.filter((e) => e !== "ref"), "ref"]
|
245
|
-
) : (
|
246
|
-
// no need to sort, return the original array
|
247
|
-
t
|
248
|
-
);
|
249
|
-
}
|
250
|
-
var J, y = !1, b = (t, e, n) => {
|
251
|
-
const s = e.$children$[n];
|
252
|
-
let r = 0, i, $;
|
253
|
-
if (s.$text$ !== null)
|
254
|
-
i = s.$elm$ = w.createTextNode(s.$text$);
|
255
|
-
else {
|
256
|
-
if (y || (y = s.$tag$ === "svg"), i = s.$elm$ = w.createElementNS(
|
257
|
-
y ? kt : wt,
|
258
|
-
s.$tag$
|
259
|
-
), y && s.$tag$ === "foreignObject" && (y = !1), at(null, s, y), s.$children$)
|
260
|
-
for (r = 0; r < s.$children$.length; ++r)
|
261
|
-
$ = b(t, s, r), $ && i.appendChild($);
|
262
|
-
s.$tag$ === "svg" ? y = !1 : i.tagName === "foreignObject" && (y = !0);
|
263
|
-
}
|
264
|
-
return i["s-hn"] = J, i;
|
265
|
-
}, ct = (t, e, n, s, r, i) => {
|
266
|
-
let $ = t, l;
|
267
|
-
for ($.shadowRoot && $.tagName === J && ($ = $.shadowRoot); r <= i; ++r)
|
268
|
-
s[r] && (l = b(null, n, r), l && (s[r].$elm$ = l, I($, l, e)));
|
269
|
-
}, ft = (t, e, n) => {
|
270
|
-
for (let s = e; s <= n; ++s) {
|
271
|
-
const r = t[s];
|
272
|
-
if (r) {
|
273
|
-
const i = r.$elm$;
|
274
|
-
dt(r), i && i.remove();
|
275
|
-
}
|
276
|
-
}
|
277
|
-
}, Xt = (t, e, n, s, r = !1) => {
|
278
|
-
let i = 0, $ = 0, l = 0, c = 0, o = e.length - 1, a = e[0], d = e[o], f = s.length - 1, u = s[0], h = s[f], g, S;
|
279
|
-
for (; i <= o && $ <= f; )
|
280
|
-
if (a == null)
|
281
|
-
a = e[++i];
|
282
|
-
else if (d == null)
|
283
|
-
d = e[--o];
|
284
|
-
else if (u == null)
|
285
|
-
u = s[++$];
|
286
|
-
else if (h == null)
|
287
|
-
h = s[--f];
|
288
|
-
else if (j(a, u, r))
|
289
|
-
_(a, u, r), a = e[++i], u = s[++$];
|
290
|
-
else if (j(d, h, r))
|
291
|
-
_(d, h, r), d = e[--o], h = s[--f];
|
292
|
-
else if (j(a, h, r))
|
293
|
-
_(a, h, r), I(t, a.$elm$, d.$elm$.nextSibling), a = e[++i], h = s[--f];
|
294
|
-
else if (j(d, u, r))
|
295
|
-
_(d, u, r), I(t, d.$elm$, a.$elm$), d = e[--o], u = s[++$];
|
296
|
-
else {
|
297
|
-
for (l = -1, c = i; c <= o; ++c)
|
298
|
-
if (e[c] && e[c].$key$ !== null && e[c].$key$ === u.$key$) {
|
299
|
-
l = c;
|
300
|
-
break;
|
301
|
-
}
|
302
|
-
l >= 0 ? (S = e[l], S.$tag$ !== u.$tag$ ? g = b(e && e[$], n, l) : (_(S, u, r), e[l] = void 0, g = S.$elm$), u = s[++$]) : (g = b(e && e[$], n, $), u = s[++$]), g && I(a.$elm$.parentNode, g, a.$elm$);
|
303
|
-
}
|
304
|
-
i > o ? ct(
|
305
|
-
t,
|
306
|
-
s[f + 1] == null ? null : s[f + 1].$elm$,
|
307
|
-
n,
|
308
|
-
s,
|
309
|
-
$,
|
310
|
-
f
|
311
|
-
) : $ > f && ft(e, i, o);
|
312
|
-
}, j = (t, e, n = !1) => t.$tag$ === e.$tag$ ? n ? (n && !t.$key$ && e.$key$ && (t.$key$ = e.$key$), !0) : t.$key$ === e.$key$ : !1, _ = (t, e, n = !1) => {
|
313
|
-
const s = e.$elm$ = t.$elm$, r = t.$children$, i = e.$children$, $ = e.$tag$, l = e.$text$;
|
314
|
-
l === null ? (y = $ === "svg" ? !0 : $ === "foreignObject" ? !1 : y, at(t, e, y), r !== null && i !== null ? Xt(s, r, e, i, n) : i !== null ? (t.$text$ !== null && (s.textContent = ""), ct(s, null, e, i, 0, i.length - 1)) : (
|
315
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
316
|
-
!n && G.updatable && r !== null && ft(r, 0, r.length - 1)
|
317
|
-
), y && $ === "svg" && (y = !1)) : t.$text$ !== l && (s.data = l);
|
318
|
-
}, dt = (t) => {
|
319
|
-
t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(dt);
|
320
|
-
}, I = (t, e, n) => t?.insertBefore(e, n), Ft = (t, e, n = !1) => {
|
321
|
-
const s = t.$hostElement$, r = t.$cmpMeta$, i = t.$vnode$ || W(null, null), $ = qt(e) ? e : Ut(null, null, e);
|
322
|
-
if (J = s.tagName, r.$attrsToReflect$ && ($.$attrs$ = $.$attrs$ || {}, r.$attrsToReflect$.map(
|
323
|
-
([l, c]) => $.$attrs$[c] = s[l]
|
324
|
-
)), n && $.$attrs$)
|
325
|
-
for (const l of Object.keys($.$attrs$))
|
326
|
-
s.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && ($.$attrs$[l] = s[l]);
|
327
|
-
$.$tag$ = null, $.$flags$ |= 4, t.$vnode$ = $, $.$elm$ = i.$elm$ = s.shadowRoot || s, r.$flags$ & 1 && r.$flags$ & 128, _(i, $, n);
|
328
|
-
}, ut = (t, e) => {
|
329
|
-
if (e && !t.$onRenderResolve$ && e["s-p"]) {
|
330
|
-
const n = e["s-p"].push(
|
331
|
-
new Promise(
|
332
|
-
(s) => t.$onRenderResolve$ = () => {
|
333
|
-
e["s-p"].splice(n - 1, 1), s();
|
334
|
-
}
|
335
|
-
)
|
336
|
-
);
|
337
|
-
}
|
338
|
-
}, K = (t, e) => {
|
339
|
-
if (t.$flags$ |= 16, t.$flags$ & 4) {
|
340
|
-
t.$flags$ |= 512;
|
341
|
-
return;
|
342
|
-
}
|
343
|
-
return ut(t, t.$ancestorComponent$), jt(() => Jt(t, e));
|
344
|
-
}, Jt = (t, e) => {
|
345
|
-
const n = t.$hostElement$, s = x("scheduleUpdate", t.$cmpMeta$.$tagName$), r = t.$lazyInstance$;
|
346
|
-
if (!r)
|
347
|
-
throw new Error(
|
348
|
-
`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
349
|
-
);
|
350
|
-
let i;
|
351
|
-
return e && (i = z(r, "componentWillLoad", void 0, n)), s(), Kt(i, () => Zt(t, r, e));
|
352
|
-
}, Kt = (t, e) => Qt(t) ? t.then(e).catch((n) => {
|
353
|
-
console.error(n), e();
|
354
|
-
}) : e(), Qt = (t) => t instanceof Promise || t && t.then && typeof t.then == "function", Zt = async (t, e, n) => {
|
355
|
-
var s;
|
356
|
-
const r = t.$hostElement$, i = x("update", t.$cmpMeta$.$tagName$), $ = r["s-rc"];
|
357
|
-
n && Ct(t);
|
358
|
-
const l = x("render", t.$cmpMeta$.$tagName$);
|
359
|
-
Mt(t, e, r, n), $ && ($.map((c) => c()), r["s-rc"] = void 0), l(), i();
|
360
|
-
{
|
361
|
-
const c = (s = r["s-p"]) != null ? s : [], o = () => mt(t);
|
362
|
-
c.length === 0 ? o() : (Promise.all(c).then(o), t.$flags$ |= 4, c.length = 0);
|
363
|
-
}
|
364
|
-
}, Mt = (t, e, n, s) => {
|
365
|
-
try {
|
366
|
-
e = e.render(), t.$flags$ &= -17, t.$flags$ |= 2, Ft(t, e, s);
|
367
|
-
} catch (r) {
|
368
|
-
P(r, t.$hostElement$);
|
369
|
-
}
|
370
|
-
return null;
|
371
|
-
}, mt = (t) => {
|
372
|
-
const e = t.$cmpMeta$.$tagName$, n = t.$hostElement$, s = x("postUpdate", e), r = t.$lazyInstance$, i = t.$ancestorComponent$;
|
373
|
-
z(r, "componentDidRender", void 0, n), t.$flags$ & 64 ? s() : (t.$flags$ |= 64, Vt(n), z(r, "componentDidLoad", void 0, n), s(), t.$onReadyResolve$(n), i || ht()), t.$onRenderResolve$ && (t.$onRenderResolve$(), t.$onRenderResolve$ = void 0), t.$flags$ & 512 && X(() => K(t, !1)), t.$flags$ &= -517;
|
374
|
-
}, ht = (t) => {
|
375
|
-
X(() => Bt(H, "appload", { detail: { namespace: yt } }));
|
376
|
-
}, z = (t, e, n, s) => {
|
377
|
-
if (t && t[e])
|
378
|
-
try {
|
379
|
-
return t[e](n);
|
380
|
-
} catch (r) {
|
381
|
-
P(r, s);
|
382
|
-
}
|
383
|
-
}, Vt = (t) => {
|
384
|
-
var e;
|
385
|
-
return t.classList.add((e = G.hydratedSelectorName) != null ? e : "hydrated");
|
386
|
-
}, Nt = (t, e) => k(t).$instanceValues$.get(e), R = (t, e, n, s) => {
|
387
|
-
const r = k(t);
|
388
|
-
if (!r)
|
389
|
-
throw new Error(
|
390
|
-
`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
391
|
-
);
|
392
|
-
const i = r.$hostElement$, $ = r.$instanceValues$.get(e), l = r.$flags$, c = r.$lazyInstance$;
|
393
|
-
n = C(n, s.$members$[e][0]);
|
394
|
-
const o = Number.isNaN($) && Number.isNaN(n), a = n !== $ && !o;
|
395
|
-
if ((!(l & 8) || $ === void 0) && a && (r.$instanceValues$.set(e, n), c)) {
|
396
|
-
if (s.$watchers$ && l & 128) {
|
397
|
-
const d = s.$watchers$[e];
|
398
|
-
d && d.map((f) => {
|
399
|
-
try {
|
400
|
-
c[f](n, $, e);
|
401
|
-
} catch (u) {
|
402
|
-
P(u, i);
|
403
|
-
}
|
404
|
-
});
|
405
|
-
}
|
406
|
-
(l & 18) === 2 && K(r, !1);
|
407
|
-
}
|
408
|
-
}, pt = (t, e, n) => {
|
409
|
-
var s, r;
|
410
|
-
const i = t.prototype;
|
411
|
-
if (e.$members$ || e.$watchers$ || t.watchers) {
|
412
|
-
t.watchers && !e.$watchers$ && (e.$watchers$ = t.watchers);
|
413
|
-
const $ = Object.entries((s = e.$members$) != null ? s : {});
|
414
|
-
if ($.map(([l, [c]]) => {
|
415
|
-
if (c & 31 || n & 2 && c & 32) {
|
416
|
-
const { get: o, set: a } = Object.getOwnPropertyDescriptor(i, l) || {};
|
417
|
-
o && (e.$members$[l][0] |= 2048), a && (e.$members$[l][0] |= 4096), (n & 1 || !o) && Object.defineProperty(i, l, {
|
418
|
-
get() {
|
419
|
-
{
|
420
|
-
if (!(e.$members$[l][0] & 2048))
|
421
|
-
return Nt(this, l);
|
422
|
-
const d = k(this), f = d ? d.$lazyInstance$ : i;
|
423
|
-
return f ? f[l] : void 0;
|
424
|
-
}
|
425
|
-
},
|
426
|
-
configurable: !0,
|
427
|
-
enumerable: !0
|
428
|
-
}), Object.defineProperty(i, l, {
|
429
|
-
set(d) {
|
430
|
-
const f = k(this);
|
431
|
-
if (a) {
|
432
|
-
const u = c & 32 ? this[l] : f.$hostElement$[l];
|
433
|
-
typeof u > "u" && f.$instanceValues$.get(l) ? d = f.$instanceValues$.get(l) : !f.$instanceValues$.get(l) && u && f.$instanceValues$.set(l, u), a.apply(this, [C(d, c)]), d = c & 32 ? this[l] : f.$hostElement$[l], R(this, l, d, e);
|
434
|
-
return;
|
435
|
-
}
|
436
|
-
{
|
437
|
-
if (!(n & 1) || !(e.$members$[l][0] & 4096)) {
|
438
|
-
R(this, l, d, e), n & 1 && !f.$lazyInstance$ && f.$onReadyPromise$.then(() => {
|
439
|
-
e.$members$[l][0] & 4096 && f.$lazyInstance$[l] !== f.$instanceValues$.get(l) && (f.$lazyInstance$[l] = d);
|
440
|
-
});
|
441
|
-
return;
|
442
|
-
}
|
443
|
-
const u = () => {
|
444
|
-
const h = f.$lazyInstance$[l];
|
445
|
-
!f.$instanceValues$.get(l) && h && f.$instanceValues$.set(l, h), f.$lazyInstance$[l] = C(d, c), R(this, l, f.$lazyInstance$[l], e);
|
446
|
-
};
|
447
|
-
f.$lazyInstance$ ? u() : f.$onReadyPromise$.then(() => u());
|
448
|
-
}
|
449
|
-
}
|
450
|
-
});
|
451
|
-
}
|
452
|
-
}), n & 1) {
|
453
|
-
const l = /* @__PURE__ */ new Map();
|
454
|
-
i.attributeChangedCallback = function(c, o, a) {
|
455
|
-
p.jmp(() => {
|
456
|
-
var d;
|
457
|
-
const f = l.get(c);
|
458
|
-
if (this.hasOwnProperty(f) && G.lazyLoad)
|
459
|
-
a = this[f], delete this[f];
|
460
|
-
else {
|
461
|
-
if (i.hasOwnProperty(f) && typeof this[f] == "number" && // cast type to number to avoid TS compiler issues
|
462
|
-
this[f] == a)
|
463
|
-
return;
|
464
|
-
if (f == null) {
|
465
|
-
const h = k(this), g = h?.$flags$;
|
466
|
-
if (g && !(g & 8) && g & 128 && a !== o) {
|
467
|
-
const S = h.$lazyInstance$, v = (d = e.$watchers$) == null ? void 0 : d[c];
|
468
|
-
v?.forEach((T) => {
|
469
|
-
S[T] != null && S[T].call(S, a, o, c);
|
470
|
-
});
|
471
|
-
}
|
472
|
-
return;
|
473
|
-
}
|
474
|
-
}
|
475
|
-
const u = Object.getOwnPropertyDescriptor(i, f);
|
476
|
-
a = a === null && typeof this[f] == "boolean" ? !1 : a, a !== this[f] && (!u.get || u.set) && (this[f] = a);
|
477
|
-
});
|
478
|
-
}, t.observedAttributes = Array.from(
|
479
|
-
/* @__PURE__ */ new Set([
|
480
|
-
...Object.keys((r = e.$watchers$) != null ? r : {}),
|
481
|
-
...$.filter(
|
482
|
-
([c, o]) => o[0] & 15
|
483
|
-
/* HasAttribute */
|
484
|
-
).map(([c, o]) => {
|
485
|
-
var a;
|
486
|
-
const d = o[1] || c;
|
487
|
-
return l.set(d, c), o[0] & 512 && ((a = e.$attrsToReflect$) == null || a.push([c, d])), d;
|
488
|
-
})
|
489
|
-
])
|
490
|
-
);
|
491
|
-
}
|
492
|
-
}
|
493
|
-
return t;
|
494
|
-
}, te = async (t, e, n, s) => {
|
495
|
-
let r;
|
496
|
-
if (!(e.$flags$ & 32)) {
|
497
|
-
if (e.$flags$ |= 32, n.$lazyBundleId$) {
|
498
|
-
const c = Tt(n, e);
|
499
|
-
if (c && "then" in c) {
|
500
|
-
const a = Ht();
|
501
|
-
r = await c, a();
|
502
|
-
} else
|
503
|
-
r = c;
|
504
|
-
if (!r)
|
505
|
-
throw new Error(`Constructor for "${n.$tagName$}#${e.$modeName$}" was not found`);
|
506
|
-
r.isProxied || (n.$watchers$ = r.watchers, pt(
|
507
|
-
r,
|
508
|
-
n,
|
509
|
-
2
|
510
|
-
/* proxyState */
|
511
|
-
), r.isProxied = !0);
|
512
|
-
const o = x("createInstance", n.$tagName$);
|
513
|
-
e.$flags$ |= 8;
|
514
|
-
try {
|
515
|
-
new r(e);
|
516
|
-
} catch (a) {
|
517
|
-
P(a, t);
|
518
|
-
}
|
519
|
-
e.$flags$ &= -9, e.$flags$ |= 128, o();
|
520
|
-
} else {
|
521
|
-
r = t.constructor;
|
522
|
-
const c = t.localName;
|
523
|
-
customElements.whenDefined(c).then(
|
524
|
-
() => e.$flags$ |= 128
|
525
|
-
/* isWatchReady */
|
526
|
-
);
|
527
|
-
}
|
528
|
-
if (r && r.style) {
|
529
|
-
let c;
|
530
|
-
typeof r.style == "string" && (c = r.style);
|
531
|
-
const o = $t(n);
|
532
|
-
if (!O.has(o)) {
|
533
|
-
const a = x("registerStyles", n.$tagName$);
|
534
|
-
Dt(o, c, !!(n.$flags$ & 1)), a();
|
535
|
-
}
|
536
|
-
}
|
537
|
-
}
|
538
|
-
const i = e.$ancestorComponent$, $ = () => K(e, !0);
|
539
|
-
i && i["s-rc"] ? i["s-rc"].push($) : $();
|
540
|
-
}, ee = (t, e) => {
|
541
|
-
}, se = (t) => {
|
542
|
-
if (!(p.$flags$ & 1)) {
|
543
|
-
const e = k(t), n = e.$cmpMeta$, s = x("connectedCallback", n.$tagName$);
|
544
|
-
if (e.$flags$ & 1)
|
545
|
-
e?.$lazyInstance$ || e?.$onReadyPromise$ && e.$onReadyPromise$.then(() => ee());
|
546
|
-
else {
|
547
|
-
e.$flags$ |= 1;
|
548
|
-
{
|
549
|
-
let r = t;
|
550
|
-
for (; r = r.parentNode || r.host; )
|
551
|
-
if (r["s-p"]) {
|
552
|
-
ut(e, e.$ancestorComponent$ = r);
|
553
|
-
break;
|
554
|
-
}
|
555
|
-
}
|
556
|
-
n.$members$ && Object.entries(n.$members$).map(([r, [i]]) => {
|
557
|
-
if (i & 31 && t.hasOwnProperty(r)) {
|
558
|
-
const $ = t[r];
|
559
|
-
delete t[r], t[r] = $;
|
560
|
-
}
|
561
|
-
}), te(t, e, n);
|
562
|
-
}
|
563
|
-
s();
|
564
|
-
}
|
565
|
-
}, et = (t, e) => {
|
566
|
-
z(t, "disconnectedCallback", void 0, e || t);
|
567
|
-
}, ne = async (t) => {
|
568
|
-
if (!(p.$flags$ & 1)) {
|
569
|
-
const e = k(t);
|
570
|
-
e?.$lazyInstance$ ? et(e.$lazyInstance$, t) : e?.$onReadyPromise$ && e.$onReadyPromise$.then(() => et(e.$lazyInstance$, t));
|
571
|
-
}
|
572
|
-
L.has(t) && L.delete(t), t.shadowRoot && L.has(t.shadowRoot) && L.delete(t.shadowRoot);
|
573
|
-
}, le = (t, e = {}) => {
|
574
|
-
var n;
|
575
|
-
const s = x(), r = [], i = e.exclude || [], $ = H.customElements, l = w.head, c = /* @__PURE__ */ l.querySelector("meta[charset]"), o = /* @__PURE__ */ w.createElement("style"), a = [];
|
576
|
-
let d, f = !0;
|
577
|
-
Object.assign(p, e), p.$resourcesUrl$ = new URL(e.resourcesUrl || "./", w.baseURI).href;
|
578
|
-
let u = !1;
|
579
|
-
if (t.map((h) => {
|
580
|
-
h[1].map((g) => {
|
581
|
-
var S;
|
582
|
-
const v = {
|
583
|
-
$flags$: g[0],
|
584
|
-
$tagName$: g[1],
|
585
|
-
$members$: g[2],
|
586
|
-
$listeners$: g[3]
|
587
|
-
};
|
588
|
-
v.$flags$ & 4 && (u = !0), v.$members$ = g[2], v.$attrsToReflect$ = [], v.$watchers$ = (S = g[4]) != null ? S : {};
|
589
|
-
const T = v.$tagName$, gt = class extends HTMLElement {
|
590
|
-
// StencilLazyHost
|
591
|
-
constructor(E) {
|
592
|
-
if (super(E), this.hasRegisteredEventListeners = !1, E = this, xt(E, v), v.$flags$ & 1) {
|
593
|
-
if (!E.shadowRoot)
|
594
|
-
E.attachShadow({ mode: "open" });
|
595
|
-
else if (E.shadowRoot.mode !== "open")
|
596
|
-
throw new Error(
|
597
|
-
`Unable to re-use existing shadow root for ${v.$tagName$}! Mode is set to ${E.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
598
|
-
);
|
599
|
-
}
|
600
|
-
}
|
601
|
-
connectedCallback() {
|
602
|
-
k(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), d && (clearTimeout(d), d = null), f ? a.push(this) : p.jmp(() => se(this));
|
603
|
-
}
|
604
|
-
disconnectedCallback() {
|
605
|
-
p.jmp(() => ne(this)), p.raf(() => {
|
606
|
-
var E;
|
607
|
-
const A = k(this), Q = a.findIndex((vt) => vt === this);
|
608
|
-
Q > -1 && a.splice(Q, 1), ((E = A?.$vnode$) == null ? void 0 : E.$elm$) instanceof Node && !A.$vnode$.$elm$.isConnected && delete A.$vnode$.$elm$;
|
609
|
-
});
|
610
|
-
}
|
611
|
-
componentOnReady() {
|
612
|
-
return k(this).$onReadyPromise$;
|
613
|
-
}
|
614
|
-
};
|
615
|
-
v.$lazyBundleId$ = h[0], !i.includes(T) && !$.get(T) && (r.push(T), $.define(
|
616
|
-
T,
|
617
|
-
pt(
|
618
|
-
gt,
|
619
|
-
v,
|
620
|
-
1
|
621
|
-
/* isElementConstructor */
|
622
|
-
)
|
623
|
-
));
|
624
|
-
});
|
625
|
-
}), r.length > 0 && (u && (o.textContent += st), o.textContent += r.sort() + _t, o.innerHTML.length)) {
|
626
|
-
o.setAttribute("data-styles", "");
|
627
|
-
const h = (n = p.$nonce$) != null ? n : lt(w);
|
628
|
-
h != null && o.setAttribute("nonce", h), l.insertBefore(o, c ? c.nextSibling : l.firstChild);
|
629
|
-
}
|
630
|
-
f = !1, a.length ? a.map((h) => h.connectedCallback()) : p.jmp(() => d = setTimeout(ht, 30)), s();
|
631
|
-
};
|
632
|
-
export {
|
633
|
-
Rt as H,
|
634
|
-
le as b,
|
635
|
-
Ut as h,
|
636
|
-
Lt as p,
|
637
|
-
re as r
|
638
|
-
};
|