@everymatrix/casino-header-controller 1.56.3 → 1.58.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.
Files changed (33) hide show
  1. package/components/{CasinoHamburgerMenu-D3IA0-Fr.js → CasinoHamburgerMenu-BG-4lbhJ.js} +800 -822
  2. package/components/CasinoHamburgerMenu-CvBpCdt_.cjs +21 -0
  3. package/components/{CasinoHamburgerMenu-DyL5A7W7.js → CasinoHamburgerMenu-Dw8i7ogu.js} +646 -668
  4. package/components/{CasinoHeaderController-DvsWYaqa.cjs → CasinoHeaderController-C8_nideH.cjs} +1 -1
  5. package/components/{CasinoHeaderController-BTxJdVzo.js → CasinoHeaderController-CCdVTXki.js} +87 -87
  6. package/components/{CasinoHeaderController-CIkYVsBL.js → CasinoHeaderController-D2rLQVZi.js} +85 -85
  7. package/components/{CasinoSlider-MTl32pNB.js → CasinoSlider-BGDn7LeB.js} +49 -49
  8. package/components/{CasinoSlider-E1mSYv_J.cjs → CasinoSlider-BSXhShrg.cjs} +1 -1
  9. package/components/{CasinoSlider-BiQpUhjL.js → CasinoSlider-BpPDoRFB.js} +50 -50
  10. package/components/PlayerAccountBalanceModal-CckEoZRk.js +1510 -0
  11. package/components/PlayerAccountBalanceModal-Ct7UUbnk.cjs +13 -0
  12. package/components/PlayerAccountBalanceModal-DiZBhm3s.js +1539 -0
  13. package/components/PlayerDeposit-BrNpbkaS.cjs +1 -0
  14. package/components/{PlayerDeposit-D1KSGzHW.js → PlayerDeposit-BsovN5ad.js} +65 -65
  15. package/components/{PlayerDeposit-OqZh5SL5.js → PlayerDeposit-DyYrLnnM.js} +65 -65
  16. package/es2015/casino-header-controller.cjs +1 -1
  17. package/es2015/casino-header-controller.js +1 -1
  18. package/esnext/casino-header-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/index-1ef3a64c-CsSXee6P.js +556 -0
  21. package/stencil/index-1ef3a64c-DRf7Ax9K.js +572 -0
  22. package/stencil/index-1ef3a64c-ImAoW8IW.cjs +1 -0
  23. package/stencil/{user-deposit-withdrawal-C72e1sSw.js → user-deposit-withdrawal-CJvV3hVH.js} +1 -1
  24. package/stencil/{user-deposit-withdrawal-CS-LZhcv.cjs → user-deposit-withdrawal-Ch6O_F-y.cjs} +1 -1
  25. package/stencil/{user-deposit-withdrawal-DfDiD6Lp.js → user-deposit-withdrawal-DAEhwyJf.js} +1 -1
  26. package/components/CasinoHamburgerMenu-DessG6uq.cjs +0 -21
  27. package/components/PlayerAccountBalanceModal-B9BkSlDU.cjs +0 -13
  28. package/components/PlayerAccountBalanceModal-CEo_b6Ks.js +0 -1510
  29. package/components/PlayerAccountBalanceModal-fP9D_Jz7.js +0 -1539
  30. package/components/PlayerDeposit-DNEPQuyW.cjs +0 -1
  31. package/stencil/index-1ef3a64c-6soTLew7.js +0 -556
  32. package/stencil/index-1ef3a64c-DkMoO-oa.js +0 -572
  33. package/stencil/index-1ef3a64c-DmmoSOho.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-DessG6uq.cjs");function E(s,t){e.addMessages(s,t)}function H(s){e.$locale.set(s)}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(s){e.append_styles(s,"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(s){let t,a,o,n,c,m,d,p,f,l,r=s[4]("titleDeposit")+"",u,w,D;return{c(){t=e.element("div"),a=e.svg_element("svg"),o=e.svg_element("defs"),n=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),p=e.svg_element("path"),f=e.space(),l=e.element("h2"),u=e.text(r),e.attr(p,"class","aaa"),e.attr(p,"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(p,"transform","translate(15 15) rotate(180)"),e.attr(d,"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(l,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(g,h){e.insert(g,t,h),e.append(t,a),e.append(a,o),e.append(o,n),e.append(n,c),e.append(a,m),e.append(m,d),e.append(d,p),e.append(t,f),e.append(t,l),e.append(l,u),w||(D=e.listen(t,"click",s[18]),w=!0)},p(g,h){h&16&&r!==(r=g[4]("titleDeposit")+"")&&e.set_data(u,r)},d(g){g&&e.detach(t),w=!1,D()}}}function z(s){let t,a,o;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,o=s[3])||e.attr(a,"src",o),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(n,c){e.insert(n,t,c),e.append(t,a)},p(n,c){c&8&&!e.src_url_equal(a.src,o=n[3])&&e.attr(a,"src",o)},d(n){n&&e.detach(t)}}}function G(s){let t,a=s[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(a)},m(n,c){e.insert(n,t,c),e.append(t,o)},p(n,c){c&16&&a!==(a=n[4]("loading")+"")&&e.set_data(o,a)},d(n){n&&e.detach(t)}}}function q(s){let t,a,o,n=s[4]("titleDeposit")+"",c,m,d=s[5]&&j(s);function p(r,u){return r[1]?G:z}let f=p(s),l=f(s);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),o=e.element("h2"),c=e.text(n),m=e.space(),l.c(),e.attr(o,"class","DepositTitle "+(s[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(s[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",s[2])},m(r,u){e.insert(r,t,u),d&&d.m(t,null),e.append(t,a),e.append(t,o),e.append(o,c),e.append(t,m),l.m(t,null),s[19](t)},p(r,[u]){r[5]&&d.p(r,u),u&16&&n!==(n=r[4]("titleDeposit")+"")&&e.set_data(c,n),f===(f=p(r))&&l?l.p(r,u):(l.d(1),l=f(r),l&&(l.c(),l.m(t,null))),u&4&&e.set_style(t,"--dynamic-height",r[2])},i:e.noop,o:e.noop,d(r){r&&e.detach(t),d&&d.d(),l.d(),s[19](null)}}}function N(s,t,a){let o,n;e.component_subscribe(s,e.$format,i=>a(4,n=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:p="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:r=""}=t,{translationurl:u=""}=t,{currency:w=""}=t,{mbsource:D}=t,{shortcashierenabled:g="false"}=t,h,B=window.navigator.userAgent,v=e.getDevice(B)!=="PC",M=!0,k,C,_=0,S="";const P=()=>{fetch(u).then(y=>y.json()).then(y=>{Object.keys(y).forEach(b=>{E(b,y[b])})}).catch(y=>{console.log(y)})};Object.keys(L).forEach(i=>{E(i,L[i])});const x=()=>{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,k=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}}},I=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",p),o&&i.searchParams.append("isShortCashier",g),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:g,accept:"application/json"}};fetch(i.href,y).then(b=>b.json()).then(b=>{a(1,M=!1),a(3,S=b.CashierUrl)},b=>{console.error(b)})},U=()=>{H(p)};e.onMount(()=>(window.addEventListener("message",T,!1),()=>{window.emMessageBus&&C&&C.unsubscribe(),window.removeEventListener("message",T)}));const A=()=>x();function F(i){e.binding_callbacks[i?"unshift":"push"](()=>{h=i,a(0,h)})}return s.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,p=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,l=i.clientstyling),"clientstylingurl"in i&&a(14,r=i.clientstylingurl),"translationurl"in i&&a(15,u=i.translationurl),"currency"in i&&a(7,w=i.currency),"mbsource"in i&&a(16,D=i.mbsource),"shortcashierenabled"in i&&a(17,g=i.shortcashierenabled)},s.$$.update=()=>{s.$$.dirty&2048&&p&&U(),s.$$.dirty&131072&&(o=g.toLocaleLowerCase()==="true"),s.$$.dirty&8193&&l&&h&&e.setClientStyling(h,l),s.$$.dirty&16385&&r&&h&&e.setClientStylingURL(h,r),s.$$.dirty&65537&&D&&h&&e.setStreamStyling(h,`${D}.Style`),s.$$.dirty&32768&&u&&P(),s.$$.dirty&135040&&m&&d&&c&&w&&p&&g&&I()},[h,M,k,S,n,v,x,w,c,m,d,p,f,l,r,u,D,g,A,F]}class R 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,currency:7,mbsource:16,shortcashierenabled:17},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 currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[17]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(R,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=R;
@@ -1,556 +0,0 @@
1
- const he = "user-deposit-withdrawal", V = (
2
- /* user-deposit-withdrawal */
3
- { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !0, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !1, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !1, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !1, propString: !0, reflect: !0, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !0, slot: !1, slotChildNodesFix: !1, slotRelocation: !1, state: !0, style: !0, svg: !0, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !1, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !0, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
4
- );
5
- var ge = Object.defineProperty, ye = (e, t) => {
6
- for (var n in t)
7
- ge(e, n, { get: t[n], enumerable: !0 });
8
- }, z = /* @__PURE__ */ new WeakMap(), k = (e) => z.get(e), nt = (e, t) => z.set(t.$lazyInstance$ = e, t), me = (e, t) => {
9
- const n = {
10
- $flags$: 0,
11
- $hostElement$: e,
12
- $cmpMeta$: t,
13
- $instanceValues$: /* @__PURE__ */ new Map()
14
- };
15
- return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], z.set(e, n);
16
- }, W = (e, t) => t in e, w = (e, t) => (0, console.error)(e, t), C = /* @__PURE__ */ new Map(), Se = (e, t, n) => {
17
- const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
18
- if (!r)
19
- return;
20
- const o = C.get(r);
21
- if (o)
22
- return o[s];
23
- {
24
- const l = (i) => (C.set(r, i), i[s]);
25
- switch (r) {
26
- case "user-deposit-withdrawal":
27
- return import(
28
- /* webpackMode: "lazy" */
29
- "./user-deposit-withdrawal-C72e1sSw.js"
30
- ).then(l, w);
31
- }
32
- }
33
- return import(
34
- /* @vite-ignore */
35
- /* webpackInclude: /\.entry\.js$/ */
36
- /* webpackExclude: /\.system\.entry\.js$/ */
37
- /* webpackMode: "lazy" */
38
- `./${r}.entry.js`
39
- ).then((l) => (C.set(r, l), l[s]), w);
40
- }, _ = /* @__PURE__ */ new Map(), be = "{visibility:hidden}.hydrated{visibility:inherit}", ee = "slot-fb{display:contents}slot-fb[hidden]{display:none}", j = typeof window < "u" ? window : {}, S = j.document || { head: {} }, h = {
41
- $flags$: 0,
42
- $resourcesUrl$: "",
43
- jmp: (e) => e(),
44
- raf: (e) => requestAnimationFrame(e),
45
- ael: (e, t, n, s) => e.addEventListener(t, n, s),
46
- rel: (e, t, n, s) => e.removeEventListener(t, n, s),
47
- ce: (e, t) => new CustomEvent(e, t)
48
- }, Ee = (e) => Promise.resolve(e), ke = /* @__PURE__ */ (() => {
49
- try {
50
- return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
51
- } catch {
52
- }
53
- return !1;
54
- })(), U = !1, G = [], te = [], we = (e, t) => (n) => {
55
- e.push(n), U || (U = !0, h.$flags$ & 4 ? H(I) : h.raf(I));
56
- }, X = (e) => {
57
- for (let t = 0; t < e.length; t++)
58
- try {
59
- e[t](performance.now());
60
- } catch (n) {
61
- w(n);
62
- }
63
- e.length = 0;
64
- }, I = () => {
65
- X(G), X(te), (U = G.length > 0) && h.raf(I);
66
- }, H = (e) => Ee().then(e), xe = /* @__PURE__ */ we(te), Q = {}, Te = "http://www.w3.org/2000/svg", Le = "http://www.w3.org/1999/xhtml", Pe = (e) => e != null, B = (e) => (e = typeof e, e === "object" || e === "function");
67
- function se(e) {
68
- var t, n, s;
69
- return (s = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
70
- }
71
- var Ae = {};
72
- ye(Ae, {
73
- err: () => re,
74
- map: () => _e,
75
- ok: () => D,
76
- unwrap: () => Oe,
77
- unwrapErr: () => je
78
- });
79
- var D = (e) => ({
80
- isOk: !0,
81
- isErr: !1,
82
- value: e
83
- }), re = (e) => ({
84
- isOk: !1,
85
- isErr: !0,
86
- value: e
87
- });
88
- function _e(e, t) {
89
- if (e.isOk) {
90
- const n = t(e.value);
91
- return n instanceof Promise ? n.then((s) => D(s)) : D(n);
92
- }
93
- if (e.isErr) {
94
- const n = e.value;
95
- return re(n);
96
- }
97
- throw "should never get here";
98
- }
99
- var Oe = (e) => {
100
- if (e.isOk)
101
- return e.value;
102
- throw e.value;
103
- }, je = (e) => {
104
- if (e.isErr)
105
- return e.value;
106
- throw e.value;
107
- }, b = (e, t = "") => () => {
108
- }, Ce = (e, t) => () => {
109
- }, Ue = (e, t, ...n) => {
110
- let s = null, r = null, o = !1, l = !1;
111
- const i = [], a = ($) => {
112
- for (let f = 0; f < $.length; f++)
113
- s = $[f], Array.isArray(s) ? a(s) : s != null && typeof s != "boolean" && ((o = typeof e != "function" && !B(s)) && (s = String(s)), o && l ? i[i.length - 1].$text$ += s : i.push(o ? R(null, s) : s), l = o);
114
- };
115
- if (a(n), t) {
116
- t.key && (r = t.key);
117
- {
118
- const $ = t.className || t.class;
119
- $ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
120
- }
121
- }
122
- const c = R(e, null);
123
- return c.$attrs$ = t, i.length > 0 && (c.$children$ = i), c.$key$ = r, c;
124
- }, R = (e, t) => {
125
- const n = {
126
- $flags$: 0,
127
- $tag$: e,
128
- $text$: t,
129
- $elm$: null,
130
- $children$: null
131
- };
132
- return n.$attrs$ = null, n.$key$ = null, n;
133
- }, Ie = {}, De = (e) => e && e.$tag$ === Ie, Re = (e, t) => e != null && !B(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 1 ? String(e) : e : e, ze = (e, t, n) => {
134
- const s = h.ce(t, n);
135
- return e.dispatchEvent(s), s;
136
- }, Y = /* @__PURE__ */ new WeakMap(), He = (e, t, n) => {
137
- let s = _.get(e);
138
- ke && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, _.set(e, s);
139
- }, Be = (e, t, n) => {
140
- var s;
141
- const r = ne(t), o = _.get(r);
142
- if (e = e.nodeType === 11 ? e : S, o)
143
- if (typeof o == "string") {
144
- e = e.head || e;
145
- let l = Y.get(e), i;
146
- if (l || Y.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
147
- {
148
- i = S.createElement("style"), i.innerHTML = o;
149
- const a = (s = h.$nonce$) != null ? s : se(S);
150
- a != null && i.setAttribute("nonce", a), e.insertBefore(i, e.querySelector("link"));
151
- }
152
- t.$flags$ & 4 && (i.innerHTML += ee), l && l.add(r);
153
- }
154
- } else
155
- e.adoptedStyleSheets.includes(o) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, o]);
156
- return r;
157
- }, Fe = (e) => {
158
- const t = e.$cmpMeta$, n = e.$hostElement$, s = t.$flags$, r = b("attachStyles", t.$tagName$), o = Be(
159
- n.shadowRoot ? n.shadowRoot : n.getRootNode(),
160
- t
161
- );
162
- s & 10 && (n["s-sc"] = o, n.classList.add(o + "-h")), r();
163
- }, ne = (e, t) => "sc-" + e.$tagName$, J = (e, t, n, s, r, o) => {
164
- if (n !== s) {
165
- let l = W(e, t), i = t.toLowerCase();
166
- if (t === "class") {
167
- const a = e.classList, c = K(n), $ = K(s);
168
- a.remove(...c.filter((f) => f && !$.includes(f))), a.add(...$.filter((f) => f && !c.includes(f)));
169
- } else if (t === "style") {
170
- for (const a in n)
171
- (!s || s[a] == null) && (a.includes("-") ? e.style.removeProperty(a) : e.style[a] = "");
172
- for (const a in s)
173
- (!n || s[a] !== n[a]) && (a.includes("-") ? e.style.setProperty(a, s[a]) : e.style[a] = s[a]);
174
- } else if (t !== "key")
175
- if (t === "ref")
176
- s && s(e);
177
- else if (!l && t[0] === "o" && t[1] === "n") {
178
- if (t[2] === "-" ? t = t.slice(3) : W(j, i) ? t = i.slice(2) : t = i[2] + t.slice(3), n || s) {
179
- const a = t.endsWith(le);
180
- t = t.replace(Me, ""), n && h.rel(e, t, n, a), s && h.ael(e, t, s, a);
181
- }
182
- } else {
183
- const a = B(s);
184
- if ((l || a && s !== null) && !r)
185
- try {
186
- if (e.tagName.includes("-"))
187
- e[t] = s;
188
- else {
189
- const c = s ?? "";
190
- t === "list" ? l = !1 : (n == null || e[t] != c) && (e[t] = c);
191
- }
192
- } catch {
193
- }
194
- s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || o & 4 || r) && !a && (s = s === !0 ? "" : s, e.setAttribute(t, s));
195
- }
196
- }
197
- }, qe = /\s/, K = (e) => e ? e.split(qe) : [], le = "Capture", Me = new RegExp(le + "$"), ae = (e, t, n) => {
198
- const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || Q, o = t.$attrs$ || Q;
199
- for (const l of Z(Object.keys(r)))
200
- l in o || J(s, l, r[l], void 0, n, t.$flags$);
201
- for (const l of Z(Object.keys(o)))
202
- J(s, l, r[l], o[l], n, t.$flags$);
203
- };
204
- function Z(e) {
205
- return e.includes("ref") ? (
206
- // we need to sort these to ensure that `'ref'` is the last attr
207
- [...e.filter((t) => t !== "ref"), "ref"]
208
- ) : (
209
- // no need to sort, return the original array
210
- e
211
- );
212
- }
213
- var P, F, oe = !1, y = !1, O = (e, t, n, s) => {
214
- const r = t.$children$[n];
215
- let o = 0, l, i;
216
- if (r.$text$ !== null)
217
- l = r.$elm$ = S.createTextNode(r.$text$);
218
- else {
219
- if (y || (y = r.$tag$ === "svg"), l = r.$elm$ = S.createElementNS(
220
- y ? Te : Le,
221
- !oe && V.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
222
- ), y && r.$tag$ === "foreignObject" && (y = !1), ae(null, r, y), Pe(P) && l["s-si"] !== P && l.classList.add(l["s-si"] = P), r.$children$)
223
- for (o = 0; o < r.$children$.length; ++o)
224
- i = O(e, r, o), i && l.appendChild(i);
225
- r.$tag$ === "svg" ? y = !1 : l.tagName === "foreignObject" && (y = !0);
226
- }
227
- return l["s-hn"] = F, l;
228
- }, ie = (e, t, n, s, r, o) => {
229
- let l = e, i;
230
- for (l.shadowRoot && l.tagName === F && (l = l.shadowRoot); r <= o; ++r)
231
- s[r] && (i = O(null, n, r), i && (s[r].$elm$ = i, A(l, i, t)));
232
- }, ce = (e, t, n) => {
233
- for (let s = t; s <= n; ++s) {
234
- const r = e[s];
235
- if (r) {
236
- const o = r.$elm$;
237
- $e(r), o && o.remove();
238
- }
239
- }
240
- }, We = (e, t, n, s, r = !1) => {
241
- let o = 0, l = 0, i = 0, a = 0, c = t.length - 1, $ = t[0], f = t[c], d = s.length - 1, u = s[0], p = s[d], v, m;
242
- for (; o <= c && l <= d; )
243
- if ($ == null)
244
- $ = t[++o];
245
- else if (f == null)
246
- f = t[--c];
247
- else if (u == null)
248
- u = s[++l];
249
- else if (p == null)
250
- p = s[--d];
251
- else if (L($, u, r))
252
- x($, u, r), $ = t[++o], u = s[++l];
253
- else if (L(f, p, r))
254
- x(f, p, r), f = t[--c], p = s[--d];
255
- else if (L($, p, r))
256
- x($, p, r), A(e, $.$elm$, f.$elm$.nextSibling), $ = t[++o], p = s[--d];
257
- else if (L(f, u, r))
258
- x(f, u, r), A(e, f.$elm$, $.$elm$), f = t[--c], u = s[++l];
259
- else {
260
- for (i = -1, a = o; a <= c; ++a)
261
- if (t[a] && t[a].$key$ !== null && t[a].$key$ === u.$key$) {
262
- i = a;
263
- break;
264
- }
265
- i >= 0 ? (m = t[i], m.$tag$ !== u.$tag$ ? v = O(t && t[l], n, i) : (x(m, u, r), t[i] = void 0, v = m.$elm$), u = s[++l]) : (v = O(t && t[l], n, l), u = s[++l]), v && A($.$elm$.parentNode, v, $.$elm$);
266
- }
267
- o > c ? ie(
268
- e,
269
- s[d + 1] == null ? null : s[d + 1].$elm$,
270
- n,
271
- s,
272
- l,
273
- d
274
- ) : l > d && ce(t, o, c);
275
- }, L = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, x = (e, t, n = !1) => {
276
- const s = t.$elm$ = e.$elm$, r = e.$children$, o = t.$children$, l = t.$tag$, i = t.$text$;
277
- i === null ? (y = l === "svg" ? !0 : l === "foreignObject" ? !1 : y, ae(e, t, y), r !== null && o !== null ? We(s, r, t, o, n) : o !== null ? (e.$text$ !== null && (s.textContent = ""), ie(s, null, t, o, 0, o.length - 1)) : r !== null && ce(r, 0, r.length - 1), y && l === "svg" && (y = !1)) : e.$text$ !== i && (s.data = i);
278
- }, $e = (e) => {
279
- e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map($e);
280
- }, A = (e, t, n) => e?.insertBefore(t, n), Ge = (e, t, n = !1) => {
281
- const s = e.$hostElement$, r = e.$cmpMeta$, o = e.$vnode$ || R(null, null), l = De(t) ? t : Ue(null, null, t);
282
- if (F = s.tagName, r.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, r.$attrsToReflect$.map(
283
- ([i, a]) => l.$attrs$[a] = s[i]
284
- )), n && l.$attrs$)
285
- for (const i of Object.keys(l.$attrs$))
286
- s.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (l.$attrs$[i] = s[i]);
287
- l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = o.$elm$ = s.shadowRoot || s, P = s["s-sc"], oe = (r.$flags$ & 1) !== 0, x(o, l, n);
288
- }, fe = (e, t) => {
289
- t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
290
- }, q = (e, t) => {
291
- if (e.$flags$ |= 16, e.$flags$ & 4) {
292
- e.$flags$ |= 512;
293
- return;
294
- }
295
- return fe(e, e.$ancestorComponent$), xe(() => Xe(e, t));
296
- }, Xe = (e, t) => {
297
- const n = e.$hostElement$, s = b("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
298
- if (!r)
299
- throw new Error(
300
- `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`
301
- );
302
- let o;
303
- return t && (o = M(r, "componentWillLoad")), s(), Qe(o, () => Je(e, r, t));
304
- }, Qe = (e, t) => Ye(e) ? e.then(t).catch((n) => {
305
- console.error(n), t();
306
- }) : t(), Ye = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Je = async (e, t, n) => {
307
- var s;
308
- const r = e.$hostElement$, o = b("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
309
- n && Fe(e);
310
- const i = b("render", e.$cmpMeta$.$tagName$);
311
- Ke(e, t, r, n), l && (l.map((a) => a()), r["s-rc"] = void 0), i(), o();
312
- {
313
- const a = (s = r["s-p"]) != null ? s : [], c = () => Ze(e);
314
- a.length === 0 ? c() : (Promise.all(a).then(c), e.$flags$ |= 4, a.length = 0);
315
- }
316
- }, Ke = (e, t, n, s) => {
317
- try {
318
- t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Ge(e, t, s);
319
- } catch (r) {
320
- w(r, e.$hostElement$);
321
- }
322
- return null;
323
- }, Ze = (e) => {
324
- const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = b("postUpdate", t), r = e.$lazyInstance$, o = e.$ancestorComponent$;
325
- e.$flags$ & 64 ? s() : (e.$flags$ |= 64, ue(n), M(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), o || de()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && H(() => q(e, !1)), e.$flags$ &= -517;
326
- }, de = (e) => {
327
- ue(S.documentElement), H(() => ze(j, "appload", { detail: { namespace: he } }));
328
- }, M = (e, t, n) => {
329
- if (e && e[t])
330
- try {
331
- return e[t](n);
332
- } catch (s) {
333
- w(s);
334
- }
335
- }, ue = (e) => {
336
- var t;
337
- return e.classList.add((t = V.hydratedSelectorName) != null ? t : "hydrated");
338
- }, Ne = (e, t) => k(e).$instanceValues$.get(t), Ve = (e, t, n, s) => {
339
- const r = k(e);
340
- if (!r)
341
- throw new Error(
342
- `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).`
343
- );
344
- const o = r.$hostElement$, l = r.$instanceValues$.get(t), i = r.$flags$, a = r.$lazyInstance$;
345
- n = Re(n, s.$members$[t][0]);
346
- const c = Number.isNaN(l) && Number.isNaN(n), $ = n !== l && !c;
347
- if ((!(i & 8) || l === void 0) && $ && (r.$instanceValues$.set(t, n), a)) {
348
- if (s.$watchers$ && i & 128) {
349
- const f = s.$watchers$[t];
350
- f && f.map((d) => {
351
- try {
352
- a[d](n, l, t);
353
- } catch (u) {
354
- w(u, o);
355
- }
356
- });
357
- }
358
- (i & 18) === 2 && q(r, !1);
359
- }
360
- }, pe = (e, t, n) => {
361
- var s, r;
362
- const o = e.prototype;
363
- if (t.$members$ || t.$watchers$ || e.watchers) {
364
- e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
365
- const l = Object.entries((s = t.$members$) != null ? s : {});
366
- if (l.map(([i, [a]]) => {
367
- (a & 31 || n & 2 && a & 32) && Object.defineProperty(o, i, {
368
- get() {
369
- return Ne(this, i);
370
- },
371
- set(c) {
372
- Ve(this, i, c, t);
373
- },
374
- configurable: !0,
375
- enumerable: !0
376
- });
377
- }), n & 1) {
378
- const i = /* @__PURE__ */ new Map();
379
- o.attributeChangedCallback = function(a, c, $) {
380
- h.jmp(() => {
381
- var f;
382
- const d = i.get(a);
383
- if (this.hasOwnProperty(d))
384
- $ = this[d], delete this[d];
385
- else {
386
- if (o.hasOwnProperty(d) && typeof this[d] == "number" && this[d] == $)
387
- return;
388
- if (d == null) {
389
- const u = k(this), p = u?.$flags$;
390
- if (p && !(p & 8) && p & 128 && $ !== c) {
391
- const v = u.$lazyInstance$, m = (f = t.$watchers$) == null ? void 0 : f[a];
392
- m?.forEach((g) => {
393
- v[g] != null && v[g].call(v, $, c, a);
394
- });
395
- }
396
- return;
397
- }
398
- }
399
- this[d] = $ === null && typeof this[d] == "boolean" ? !1 : $;
400
- });
401
- }, e.observedAttributes = Array.from(
402
- /* @__PURE__ */ new Set([
403
- ...Object.keys((r = t.$watchers$) != null ? r : {}),
404
- ...l.filter(
405
- ([a, c]) => c[0] & 15
406
- /* HasAttribute */
407
- ).map(([a, c]) => {
408
- var $;
409
- const f = c[1] || a;
410
- return i.set(f, a), c[0] & 512 && (($ = t.$attrsToReflect$) == null || $.push([a, f])), f;
411
- })
412
- ])
413
- );
414
- }
415
- }
416
- return e;
417
- }, et = async (e, t, n, s) => {
418
- let r;
419
- if (!(t.$flags$ & 32)) {
420
- if (t.$flags$ |= 32, n.$lazyBundleId$) {
421
- const a = Se(n);
422
- if (a && "then" in a) {
423
- const $ = Ce();
424
- r = await a, $();
425
- } else
426
- r = a;
427
- if (!r)
428
- throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
429
- r.isProxied || (n.$watchers$ = r.watchers, pe(
430
- r,
431
- n,
432
- 2
433
- /* proxyState */
434
- ), r.isProxied = !0);
435
- const c = b("createInstance", n.$tagName$);
436
- t.$flags$ |= 8;
437
- try {
438
- new r(t);
439
- } catch ($) {
440
- w($);
441
- }
442
- t.$flags$ &= -9, t.$flags$ |= 128, c();
443
- } else {
444
- r = e.constructor;
445
- const a = e.localName;
446
- customElements.whenDefined(a).then(
447
- () => t.$flags$ |= 128
448
- /* isWatchReady */
449
- );
450
- }
451
- if (r && r.style) {
452
- let a;
453
- typeof r.style == "string" && (a = r.style);
454
- const c = ne(n);
455
- if (!_.has(c)) {
456
- const $ = b("registerStyles", n.$tagName$);
457
- He(c, a, !!(n.$flags$ & 1)), $();
458
- }
459
- }
460
- }
461
- const o = t.$ancestorComponent$, l = () => q(t, !0);
462
- o && o["s-rc"] ? o["s-rc"].push(l) : l();
463
- }, tt = (e) => {
464
- }, st = (e) => {
465
- if (!(h.$flags$ & 1)) {
466
- const t = k(e), n = t.$cmpMeta$, s = b("connectedCallback", n.$tagName$);
467
- if (t.$flags$ & 1)
468
- t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => tt());
469
- else {
470
- t.$flags$ |= 1;
471
- {
472
- let r = e;
473
- for (; r = r.parentNode || r.host; )
474
- if (r["s-p"]) {
475
- fe(t, t.$ancestorComponent$ = r);
476
- break;
477
- }
478
- }
479
- n.$members$ && Object.entries(n.$members$).map(([r, [o]]) => {
480
- if (o & 31 && e.hasOwnProperty(r)) {
481
- const l = e[r];
482
- delete e[r], e[r] = l;
483
- }
484
- }), et(e, t, n);
485
- }
486
- s();
487
- }
488
- }, N = (e) => {
489
- M(e, "disconnectedCallback");
490
- }, rt = async (e) => {
491
- if (!(h.$flags$ & 1)) {
492
- const t = k(e);
493
- t?.$lazyInstance$ ? N(t.$lazyInstance$) : t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => N(t.$lazyInstance$));
494
- }
495
- }, lt = (e, t = {}) => {
496
- var n;
497
- const s = b(), r = [], o = t.exclude || [], l = j.customElements, i = S.head, a = /* @__PURE__ */ i.querySelector("meta[charset]"), c = /* @__PURE__ */ S.createElement("style"), $ = [];
498
- let f, d = !0;
499
- Object.assign(h, t), h.$resourcesUrl$ = new URL(t.resourcesUrl || "./", S.baseURI).href;
500
- let u = !1;
501
- if (e.map((p) => {
502
- p[1].map((v) => {
503
- var m;
504
- const g = {
505
- $flags$: v[0],
506
- $tagName$: v[1],
507
- $members$: v[2],
508
- $listeners$: v[3]
509
- };
510
- g.$flags$ & 4 && (u = !0), g.$members$ = v[2], g.$attrsToReflect$ = [], g.$watchers$ = (m = v[4]) != null ? m : {};
511
- const T = g.$tagName$, ve = class extends HTMLElement {
512
- // StencilLazyHost
513
- constructor(E) {
514
- if (super(E), this.hasRegisteredEventListeners = !1, E = this, me(E, g), g.$flags$ & 1) {
515
- if (!E.shadowRoot)
516
- E.attachShadow({ mode: "open" });
517
- else if (E.shadowRoot.mode !== "open")
518
- throw new Error(
519
- `Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${E.shadowRoot.mode} but Stencil only supports open shadow roots.`
520
- );
521
- }
522
- }
523
- connectedCallback() {
524
- k(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), d ? $.push(this) : h.jmp(() => st(this));
525
- }
526
- disconnectedCallback() {
527
- h.jmp(() => rt(this));
528
- }
529
- componentOnReady() {
530
- return k(this).$onReadyPromise$;
531
- }
532
- };
533
- g.$lazyBundleId$ = p[0], !o.includes(T) && !l.get(T) && (r.push(T), l.define(
534
- T,
535
- pe(
536
- ve,
537
- g,
538
- 1
539
- /* isElementConstructor */
540
- )
541
- ));
542
- });
543
- }), r.length > 0 && (u && (c.textContent += ee), c.textContent += r.sort() + be, c.innerHTML.length)) {
544
- c.setAttribute("data-styles", "");
545
- const p = (n = h.$nonce$) != null ? n : se(S);
546
- p != null && c.setAttribute("nonce", p), i.insertBefore(c, a ? a.nextSibling : i.firstChild);
547
- }
548
- d = !1, $.length ? $.map((p) => p.connectedCallback()) : h.jmp(() => f = setTimeout(de, 30)), s();
549
- };
550
- export {
551
- Ie as H,
552
- lt as b,
553
- Ue as h,
554
- Ee as p,
555
- nt as r
556
- };