@everymatrix/casino-categories-slider 1.60.2 → 1.61.1
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/{CasinoCategoriesSlider-BiHJruiz.cjs → CasinoCategoriesSlider-CcROtmEV.cjs} +1 -1
- package/components/{CasinoCategoriesSlider-i92pm1X1.js → CasinoCategoriesSlider-DMp9E6ZU.js} +13 -12
- package/components/{CasinoCategoriesSlider-BixjfW_0.js → CasinoCategoriesSlider-Wb7NifNx.js} +14 -13
- package/components/{CasinoSlider-CSAgo_ih.js → CasinoSlider-BKAL5Uy4.js} +142 -141
- package/components/{CasinoSlider-D65OJWaW.js → CasinoSlider-CpTqnanI.js} +209 -208
- package/components/CasinoSlider-DSB0sHpO.cjs +1 -0
- package/es2015/casino-categories-slider.cjs +1 -1
- package/es2015/casino-categories-slider.js +1 -1
- package/esnext/casino-categories-slider.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-b7bbd57e-BBUBsGhp.js +550 -0
- package/stencil/index-b7bbd57e-SuDXAV6_.cjs +1 -0
- package/stencil/index-b7bbd57e-wJC_uAuk.js +534 -0
- package/stencil/ui-image-38c3c15f-ByZECnci.js +39 -0
- package/stencil/ui-image-38c3c15f-D_V48h1L.js +39 -0
- package/stencil/ui-image-38c3c15f-VguNkCIq.cjs +1 -0
- package/stencil/ui-image-BNrzgSpe.js +11 -0
- package/stencil/ui-image-CLghOqUz.cjs +1 -0
- package/stencil/ui-image-CPH6BqjQ.js +29 -0
- package/components/CasinoSlider-DWDpS0AS.cjs +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCategoriesSlider-CcROtmEV.cjs");require("../stencil/ui-image-CLghOqUz.cjs");function Ce({withLocale:i,translations:e}){t.$locale.subscribe(r=>{r==null&&(t.$dictionary.set(e),t.$locale.set(i))})}function Y(i,e){t.addMessages(i,e)}function ye(i){t.$locale.set(i)}const P={en:{login:"Login",register:"Register",deposit:"Deposit"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金"},fr:{login:"Connexion",register:"Registre",deposit:"Dépôt"},tr:{login:"Giriş",register:"Kayıt",deposit:"Para Yatır"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito"},hr:{login:"Prijava",register:"Registracija",deposit:"Uplata"},"pt-br":{login:"Entrem",register:"Registro",deposit:"Depósito"},"es-mx":{login:"Entrar",register:"Registro",deposit:"Depósito"},"en-us":{login:"Login",register:"Register",deposit:"Deposit"}};function we(i){t.append_styles(i,"svelte-2e7gs6",'*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}')}function U(i,e,r){const a=i.slice();return a[48]=e[r],a[50]=r,a}function K(i,e,r){const a=i.slice();return a[51]=e[r],a}function X(i,e,r){const a=i.slice();return a[54]=e[r],a[56]=r,a}function J(i){let e=[],r=new Map,a,l=t.ensure_array_like(i[9]);const s=n=>n[48].id;for(let n=0;n<l.length;n+=1){let c=U(i,l,n),d=s(c);r.set(d,e[n]=te(d,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();a=t.empty()},m(n,c){for(let d=0;d<e.length;d+=1)e[d]&&e[d].m(n,c);t.insert(n,a,c)},p(n,c){c[0]&77775&&(l=t.ensure_array_like(n[9]),e=t.update_keyed_each(e,c,s,1,n,l,r,a.parentNode,t.destroy_block,te,a,U))},d(n){n&&t.detach(a);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function be(i){let e,r=i[48].name+"",a;return{c(){e=t.element("button"),a=t.text(r),t.attr(e,"class","CategoryButton")},m(l,s){t.insert(l,e,s),t.append(e,a)},p(l,s){s[0]&512&&r!==(r=l[48].name+"")&&t.set_data(a,r)},d(l){l&&t.detach(e)}}}function _e(i){let e,r=i[48].label+"",a,l;return{c(){e=t.element("a"),a=t.text(r),t.attr(e,"href",l=i[48].path)},m(s,n){t.insert(s,e,n),t.append(e,a)},p(s,n){n[0]&512&&r!==(r=s[48].label+"")&&t.set_data(a,r),n[0]&512&&l!==(l=s[48].path)&&t.attr(e,"href",l)},d(s){s&&t.detach(e)}}}function Q(i){let e,r=i[10].length>0&&i[2]=="true"&&V(i);return{c(){r&&r.c(),e=t.empty()},m(a,l){r&&r.m(a,l),t.insert(a,e,l)},p(a,l){a[10].length>0&&a[2]=="true"?r?r.p(a,l):(r=V(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(a){a&&t.detach(e),r&&r.d(a)}}}function V(i){let e,r=t.ensure_array_like(i[10]),a=[];for(let l=0;l<r.length;l+=1)a[l]=ee(K(i,r,l));return{c(){e=t.element("ul");for(let l=0;l<a.length;l+=1)a[l].c();t.attr(e,"class","DropDown")},m(l,s){t.insert(l,e,s);for(let n=0;n<a.length;n+=1)a[n]&&a[n].m(e,null)},p(l,s){if(s[0]&10176){r=t.ensure_array_like(l[10]);let n;for(n=0;n<r.length;n+=1){const c=K(l,r,n);a[n]?a[n].p(c,s):(a[n]=ee(c),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=r.length}},d(l){l&&t.detach(e),t.destroy_each(a,l)}}}function Z(i){var p;let e,r,a=((p=i[54])==null?void 0:p.name)+"",l,s,n,c,d;function v(...h){return i[33](i[48],i[50],i[54],i[56],...h)}return{c(){e=t.element("li"),r=t.element("a"),l=t.text(a),n=t.space(),t.attr(r,"class",s="SubDropDown "+(i[50]==i[6]&&(i[7]==i[56]||i[8]==i[56])?"active":""))},m(h,C){t.insert(h,e,C),t.append(e,r),t.append(r,l),t.append(e,n),c||(d=t.listen(e,"click",v),c=!0)},p(h,C){var k;i=h,C[0]&1024&&a!==(a=((k=i[54])==null?void 0:k.name)+"")&&t.set_data(l,a),C[0]&1984&&s!==(s="SubDropDown "+(i[50]==i[6]&&(i[7]==i[56]||i[8]==i[56])?"active":""))&&t.attr(r,"class",s)},d(h){h&&t.detach(e),c=!1,d()}}}function $(i,e){let r,a,l=e[50]==e[51].index&&Z(e);return{key:i,first:null,c(){r=t.empty(),l&&l.c(),a=t.empty(),this.first=r},m(s,n){t.insert(s,r,n),l&&l.m(s,n),t.insert(s,a,n)},p(s,n){e=s,e[50]==e[51].index?l?l.p(e,n):(l=Z(e),l.c(),l.m(a.parentNode,a)):l&&(l.d(1),l=null)},d(s){s&&(t.detach(r),t.detach(a)),l&&l.d(s)}}}function ee(i){let e=[],r=new Map,a,l=t.ensure_array_like(i[51].items);const s=n=>n[54].id;for(let n=0;n<l.length;n+=1){let c=X(i,l,n),d=s(c);r.set(d,e[n]=$(d,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();a=t.empty()},m(n,c){for(let d=0;d<e.length;d+=1)e[d]&&e[d].m(n,c);t.insert(n,a,c)},p(n,c){c[0]&10176&&(l=t.ensure_array_like(n[51].items),e=t.update_keyed_each(e,c,s,1,n,l,r,a.parentNode,t.destroy_block,$,a,X))},d(n){n&&t.detach(a);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function te(i,e){let r,a,l,s,n,c,d,v,p,h,C;function k(f,b){return f[0]==="headerMain"?_e:be}let F=k(e),g=F(e),u=e[11][e[50]]==!0&&Q(e);function y(...f){return e[34](e[48],e[50],...f)}return{key:i,first:null,c(){var f,b;r=t.element("li"),a=t.element("div"),l=t.element("ui-image"),c=t.space(),g.c(),d=t.space(),u&&u.c(),v=t.space(),t.set_custom_element_data(l,"imgClass",s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone")),t.src_url_equal(l.src,n=e[16](e[48]))||t.set_custom_element_data(l,"src",n),t.attr(a,"class","CategoryIcon"),t.attr(r,"class",p="CarouselItem "+(((f=e[1])==null?void 0:f.toString().indexOf("$"))>-1?((b=e[1])==null?void 0:b.split("$").pop())==e[48].id.split("$").pop()?"active":"":e[1]==e[48].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu")),this.first=r},m(f,b){t.insert(f,r,b),t.append(r,a),t.append(a,l),t.append(r,c),g.m(r,null),t.append(r,d),u&&u.m(r,null),t.append(r,v),h||(C=t.listen(r,"click",y),h=!0)},p(f,b){var H,S;e=f,b[0]&8&&s!==(s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone"))&&t.set_custom_element_data(l,"imgClass",s),b[0]&512&&!t.src_url_equal(l.src,n=e[16](e[48]))&&t.set_custom_element_data(l,"src",n),F===(F=k(e))&&g?g.p(e,b):(g.d(1),g=F(e),g&&(g.c(),g.m(r,d))),e[11][e[50]]==!0?u?u.p(e,b):(u=Q(e),u.c(),u.m(r,v)):u&&(u.d(1),u=null),b[0]&515&&p!==(p="CarouselItem "+(((H=e[1])==null?void 0:H.toString().indexOf("$"))>-1?((S=e[1])==null?void 0:S.split("$").pop())==e[48].id.split("$").pop()?"active":"":e[1]==e[48].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu"))&&t.attr(r,"class",p)},d(f){f&&t.detach(r),g.d(),u&&u.d(),h=!1,C()}}}function ve(i){let e,r,a,l,s,n,c,d,v,p,h,C,k,F,g,u=i[9].length>0&&J(i);return{c(){e=t.element("div"),r=t.element("div"),a=t.element("div"),a.innerHTML='<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',l=t.space(),s=t.element("div"),n=t.element("ul"),c=t.element("li"),c.innerHTML='<a href="#CarouselNav">Close Subs</a>',d=t.space(),u&&u.c(),v=t.space(),p=t.element("div"),p.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',t.attr(a,"class","CarouselLeftArrow"),t.attr(c,"class","TouchOnly"),t.attr(n,"id","CarouselNav"),t.attr(n,"class","CarouselItems"),t.attr(s,"class","CarouselNavWrap scroller"),t.attr(p,"class","CarouselRightArrow"),t.attr(r,"class",h=`CarouselContainer CarouselContainerMobile ${i[0]==="headerMain"?"CarouselContainerHeaderMain":""}`),t.attr(r,"style",C=i[0]==="headerMain"?"max-width: auto":void 0),t.attr(e,"class",k="CarouselWrapper "+(i[0]==="headerMain"?"CarouselWrapperHeaderMain":""))},m(y,f){t.insert(y,e,f),t.append(e,r),t.append(r,a),t.append(r,l),t.append(r,s),t.append(s,n),t.append(n,c),t.append(n,d),u&&u.m(n,null),i[35](n),i[36](s),t.append(r,v),t.append(r,p),i[38](e),F||(g=[t.listen(a,"click",i[32]),t.listen(p,"click",i[37])],F=!0)},p(y,f){y[9].length>0?u?u.p(y,f):(u=J(y),u.c(),u.m(n,null)):u&&(u.d(1),u=null),f[0]&1&&h!==(h=`CarouselContainer CarouselContainerMobile ${y[0]==="headerMain"?"CarouselContainerHeaderMain":""}`)&&t.attr(r,"class",h),f[0]&1&&C!==(C=y[0]==="headerMain"?"max-width: auto":void 0)&&t.attr(r,"style",C),f[0]&1&&k!==(k="CarouselWrapper "+(y[0]==="headerMain"?"CarouselWrapperHeaderMain":""))&&t.attr(e,"class",k)},i:t.noop,o:t.noop,d(y){y&&t.detach(e),u&&u.d(),i[35](null),i[36](null),i[38](null),F=!1,t.run_all(g)}}}function ke(i,e,r){let{endpoint:a=""}=e,{datasource:l=""}=e,{onclickeventname:s="defaultEvent"}=e,{actionevent:n="defaultEvent"}=e,{favoritesnumber:c="0"}=e,{location:d=""}=e,{clientstyling:v=""}=e,{clientstylingurl:p=""}=e,{identity:h=""}=e,{translationurl:C=""}=e,{isprimarymenu:k=!1}=e,{issecondarymenu:F=!1}=e,{lang:g=""}=e,{activeindex:u="0"}=e,{showsubgroups:y="false"}=e,{categoriesicon:f="false"}=e,{lobbyiconimage:b=""}=e,{mygamesiconimage:H=""}=e,{mbsource:S=""}=e;Ce({withLocale:"en",translations:{}});const ne=()=>{fetch(C).then(m=>m.json()).then(m=>{Object.keys(m).forEach(_=>{Y(_,m[_])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(o=>{Y(o,P[o])});let E,D,R,W,M,T=[],j=[],N=[],w,z=(o,m,_,L,I)=>{var A;if(!(o.subGroups&&L===null)){if(O(),r(6,D=m),r(6,D),I!="secondary"){window.postMessage({type:n=="CategoryChange"?"CategoryChange":"NavigateTo",buzz:"1",itemId:o.id,index:m,item:o,path:o.path,externalLink:o.externalLink||!1,target:((A=o.attrs)==null?void 0:A.target)||null},window.location.href),r(7,R=null),r(8,W=null);return}r(7,R=L),r(7,R),r(8,W=R),window.postMessage({type:n,itemId:_.id,subIndex:L,subItem:_},window.location.href)}},G=()=>{w&&(N.length!==D?r(12,w.scrollLeft-=250,w):r(12,w.scrollLeft=0,w))},x=()=>{w&&(N.length!==D?r(12,w.scrollLeft+=250,w):r(12,w.scrollLeft=0,w))};const q=o=>{o.data.type=="SliderData"&&o.data.identity==h&&(r(9,T=o.data.data),r(11,N=new Array(T.length).fill(!1)),y=="true"&&ie()),o.data.type=="GoToHomepage"&&T.forEach((m,_)=>{m.path.endsWith("/casino")&&(r(6,D=_),r(6,D))})},oe=()=>{ye(g)},ae=(o,m,_)=>{if(d=="secondaryMenu"&&a&&l&&g&&o.id){let L=new URL(`${a}/v1/casino/groups/${l}/${o.id}/subGroups?language=${g}`);fetch(L.href).then(I=>I.json()).then(I=>{I.index=m,r(10,j=j.concat(I)),y=="false"&&window.postMessage({type:n,itemId:o.id,index:m,item:o},window.location.href);const A=[];j.map(ge=>(ge.items.forEach(B=>{A.find(pe=>B.id==pe)||A.push(B.id)}),A.flat())),window.postMessage({type:"SubgroupsIds",subGroupsIds:A},window.location.href)}).then(()=>{E.querySelectorAll(".DropDown")&&O()})}d=="headerMain"&&window.postMessage({type:n,item:o},window.location.href)},O=()=>{const o=E.querySelectorAll(".DropDown");document.activeElement.blur(),w.classList.add("isScrolling");for(let m=0;m<o.length;m++)o[m].style.transform="translateX(-"+w.scrollLeft+"px)";w.classList.remove("isScrolling")},ie=()=>{T.forEach((o,m)=>{var _;((_=o==null?void 0:o.subGroups)==null?void 0:_.count)>0&&(r(11,N[m]=!0,N),ae(o,m))})},le=o=>{let m="";return o.id==="LOBBY"?m=b:o.id==="MYGAMES"&&(m=H),o.icon||m};t.onMount(()=>(window.addEventListener("message",q,!1),"ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),setTimeout(()=>{w.addEventListener("scroll",O)},500),window.postMessage({type:"SliderLoaded",identity:h}),()=>{window.removeEventListener("message",q),E.removeEventListener("scroll",O)}));const se=()=>G(),ce=(o,m,_,L,I)=>{z(o,m,_,L,"secondary"),I.stopPropagation()},ue=(o,m,_)=>{z(o,m,null,null,"main"),_.preventDefault()};function de(o){t.binding_callbacks[o?"unshift":"push"](()=>{E=o,r(5,E)})}function me(o){t.binding_callbacks[o?"unshift":"push"](()=>{w=o,r(12,w)})}const fe=()=>x();function he(o){t.binding_callbacks[o?"unshift":"push"](()=>{M=o,r(4,M)})}return i.$$set=o=>{"endpoint"in o&&r(17,a=o.endpoint),"datasource"in o&&r(18,l=o.datasource),"onclickeventname"in o&&r(19,s=o.onclickeventname),"actionevent"in o&&r(20,n=o.actionevent),"favoritesnumber"in o&&r(21,c=o.favoritesnumber),"location"in o&&r(0,d=o.location),"clientstyling"in o&&r(22,v=o.clientstyling),"clientstylingurl"in o&&r(23,p=o.clientstylingurl),"identity"in o&&r(24,h=o.identity),"translationurl"in o&&r(25,C=o.translationurl),"isprimarymenu"in o&&r(26,k=o.isprimarymenu),"issecondarymenu"in o&&r(27,F=o.issecondarymenu),"lang"in o&&r(28,g=o.lang),"activeindex"in o&&r(1,u=o.activeindex),"showsubgroups"in o&&r(2,y=o.showsubgroups),"categoriesicon"in o&&r(3,f=o.categoriesicon),"lobbyiconimage"in o&&r(29,b=o.lobbyiconimage),"mygamesiconimage"in o&&r(30,H=o.mygamesiconimage),"mbsource"in o&&r(31,S=o.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&2,i.$$.dirty[0]&33554432&&C&&ne(),i.$$.dirty[0]&4194320&&v&&M&&t.setClientStyling(M,v),i.$$.dirty[0]&8388624&&p&&M&&t.setClientStylingURL(M,p),i.$$.dirty[0]&16|i.$$.dirty[1]&1&&S&&M&&t.setStreamStyling(M,`${S}.Style`),i.$$.dirty[0]&268435456&&g&&oe()},[d,u,y,f,M,E,D,R,W,T,j,N,w,z,G,x,le,a,l,s,n,c,v,p,h,C,k,F,g,b,H,S,se,ce,ue,de,me,fe,he]}class re extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ke,ve,t.safe_not_equal,{endpoint:17,datasource:18,onclickeventname:19,actionevent:20,favoritesnumber:21,location:0,clientstyling:22,clientstylingurl:23,identity:24,translationurl:25,isprimarymenu:26,issecondarymenu:27,lang:28,activeindex:1,showsubgroups:2,categoriesicon:3,lobbyiconimage:29,mygamesiconimage:30,mbsource:31},we,[-1,-1])}get endpoint(){return this.$$.ctx[17]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[18]}set datasource(e){this.$$set({datasource:e}),t.flush()}get onclickeventname(){return this.$$.ctx[19]}set onclickeventname(e){this.$$set({onclickeventname:e}),t.flush()}get actionevent(){return this.$$.ctx[20]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get favoritesnumber(){return this.$$.ctx[21]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),t.flush()}get location(){return this.$$.ctx[0]}set location(e){this.$$set({location:e}),t.flush()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get identity(){return this.$$.ctx[24]}set identity(e){this.$$set({identity:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get isprimarymenu(){return this.$$.ctx[26]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),t.flush()}get issecondarymenu(){return this.$$.ctx[27]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),t.flush()}get lang(){return this.$$.ctx[28]}set lang(e){this.$$set({lang:e}),t.flush()}get activeindex(){return this.$$.ctx[1]}set activeindex(e){this.$$set({activeindex:e}),t.flush()}get showsubgroups(){return this.$$.ctx[2]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get categoriesicon(){return this.$$.ctx[3]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[29]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[30]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}get mbsource(){return this.$$.ctx[31]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(re,{endpoint:{},datasource:{},onclickeventname:{},actionevent:{},favoritesnumber:{},location:{},clientstyling:{},clientstylingurl:{},identity:{},translationurl:{},isprimarymenu:{type:"Boolean"},issecondarymenu:{type:"Boolean"},lang:{},activeindex:{},showsubgroups:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=re;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoCategoriesSlider-
|
1
|
+
"use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoCategoriesSlider-CcROtmEV.cjs")).then(e=>e.CasinoCategoriesSlider_ce).then(({default:e})=>{!customElements.get("casino-categories-slider")&&customElements.define("casino-categories-slider",e.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoCategoriesSlider-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoCategoriesSlider-Wb7NifNx.js").then((e) => e.E).then(({ default: e }) => {
|
14
14
|
!customElements.get("casino-categories-slider") && customElements.define("casino-categories-slider", e.element);
|
15
15
|
});
|
16
16
|
}
|
package/package.json
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const s=()=>{};exports.globalScripts=s;
|
@@ -0,0 +1,550 @@
|
|
1
|
+
var T = (e, t, n) => new Promise((s, r) => {
|
2
|
+
var l = (o) => {
|
3
|
+
try {
|
4
|
+
a(n.next(o));
|
5
|
+
} catch (c) {
|
6
|
+
r(c);
|
7
|
+
}
|
8
|
+
}, i = (o) => {
|
9
|
+
try {
|
10
|
+
a(n.throw(o));
|
11
|
+
} catch (c) {
|
12
|
+
r(c);
|
13
|
+
}
|
14
|
+
}, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(l, i);
|
15
|
+
a((n = n.apply(e, t)).next());
|
16
|
+
});
|
17
|
+
const ce = "ui-image", fe = (
|
18
|
+
/* ui-image */
|
19
|
+
{ hydratedSelectorName: "hydrated" }
|
20
|
+
);
|
21
|
+
var ue = Object.defineProperty, de = (e, t) => {
|
22
|
+
for (var n in t)
|
23
|
+
ue(e, n, { get: t[n], enumerable: !0 });
|
24
|
+
}, B = /* @__PURE__ */ new WeakMap(), b = (e) => B.get(e), Ve = (e, t) => B.set(t.$lazyInstance$ = e, t), ve = (e, t) => {
|
25
|
+
const n = {
|
26
|
+
$flags$: 0,
|
27
|
+
$hostElement$: e,
|
28
|
+
$cmpMeta$: t,
|
29
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
30
|
+
};
|
31
|
+
return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], B.set(e, n);
|
32
|
+
}, pe = (e, t) => t in e, E = (e, t) => (0, console.error)(e, t), j = /* @__PURE__ */ new Map(), ge = (e, t, n) => {
|
33
|
+
const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
|
34
|
+
if (!r)
|
35
|
+
return;
|
36
|
+
const l = j.get(r);
|
37
|
+
if (l)
|
38
|
+
return l[s];
|
39
|
+
{
|
40
|
+
const i = (a) => (j.set(r, a), a[s]);
|
41
|
+
switch (r) {
|
42
|
+
case "ui-image":
|
43
|
+
return import(
|
44
|
+
/* webpackMode: "lazy" */
|
45
|
+
"./ui-image-CPH6BqjQ.js"
|
46
|
+
).then(i, E);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
return import(
|
50
|
+
/* @vite-ignore */
|
51
|
+
/* webpackInclude: /\.entry\.js$/ */
|
52
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
53
|
+
/* webpackMode: "lazy" */
|
54
|
+
`./${r}.entry.js`
|
55
|
+
).then((i) => (j.set(r, i), i[s]), E);
|
56
|
+
}, A = /* @__PURE__ */ new Map(), he = "{visibility:hidden}.hydrated{visibility:inherit}", K = "slot-fb{display:contents}slot-fb[hidden]{display:none}", z = typeof window != "undefined" ? window : {}, y = z.document || { head: {} }, g = {
|
57
|
+
$flags$: 0,
|
58
|
+
$resourcesUrl$: "",
|
59
|
+
jmp: (e) => e(),
|
60
|
+
raf: (e) => requestAnimationFrame(e),
|
61
|
+
ael: (e, t, n, s) => e.addEventListener(t, n, s),
|
62
|
+
rel: (e, t, n, s) => e.removeEventListener(t, n, s),
|
63
|
+
ce: (e, t) => new CustomEvent(e, t)
|
64
|
+
}, me = (e) => Promise.resolve(e), ye = /* @__PURE__ */ (() => {
|
65
|
+
try {
|
66
|
+
return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
|
67
|
+
} catch (e) {
|
68
|
+
}
|
69
|
+
return !1;
|
70
|
+
})(), O = !1, M = [], Q = [], Se = (e, t) => (n) => {
|
71
|
+
e.push(n), O || (O = !0, g.$flags$ & 4 ? q(I) : g.raf(I));
|
72
|
+
}, W = (e) => {
|
73
|
+
for (let t = 0; t < e.length; t++)
|
74
|
+
try {
|
75
|
+
e[t](performance.now());
|
76
|
+
} catch (n) {
|
77
|
+
E(n);
|
78
|
+
}
|
79
|
+
e.length = 0;
|
80
|
+
}, I = () => {
|
81
|
+
W(M), W(Q), (O = M.length > 0) && g.raf(I);
|
82
|
+
}, q = (e) => me().then(e), be = /* @__PURE__ */ Se(Q), F = {}, C = (e) => (e = typeof e, e === "object" || e === "function");
|
83
|
+
function X(e) {
|
84
|
+
var t, n, s;
|
85
|
+
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;
|
86
|
+
}
|
87
|
+
var Ee = {};
|
88
|
+
de(Ee, {
|
89
|
+
err: () => Z,
|
90
|
+
map: () => ke,
|
91
|
+
ok: () => H,
|
92
|
+
unwrap: () => Pe,
|
93
|
+
unwrapErr: () => Te
|
94
|
+
});
|
95
|
+
var H = (e) => ({
|
96
|
+
isOk: !0,
|
97
|
+
isErr: !1,
|
98
|
+
value: e
|
99
|
+
}), Z = (e) => ({
|
100
|
+
isOk: !1,
|
101
|
+
isErr: !0,
|
102
|
+
value: e
|
103
|
+
});
|
104
|
+
function ke(e, t) {
|
105
|
+
if (e.isOk) {
|
106
|
+
const n = t(e.value);
|
107
|
+
return n instanceof Promise ? n.then((s) => H(s)) : H(n);
|
108
|
+
}
|
109
|
+
if (e.isErr) {
|
110
|
+
const n = e.value;
|
111
|
+
return Z(n);
|
112
|
+
}
|
113
|
+
throw "should never get here";
|
114
|
+
}
|
115
|
+
var Pe = (e) => {
|
116
|
+
if (e.isOk)
|
117
|
+
return e.value;
|
118
|
+
throw e.value;
|
119
|
+
}, Te = (e) => {
|
120
|
+
if (e.isErr)
|
121
|
+
return e.value;
|
122
|
+
throw e.value;
|
123
|
+
}, S = (e, t = "") => () => {
|
124
|
+
}, we = (e, t) => () => {
|
125
|
+
}, xe = (e, t, ...n) => {
|
126
|
+
let s = null, r = null, l = !1, i = !1;
|
127
|
+
const a = [], o = ($) => {
|
128
|
+
for (let f = 0; f < $.length; f++)
|
129
|
+
s = $[f], Array.isArray(s) ? o(s) : s != null && typeof s != "boolean" && ((l = typeof e != "function" && !C(s)) && (s = String(s)), l && i ? a[a.length - 1].$text$ += s : a.push(l ? U(null, s) : s), i = l);
|
130
|
+
};
|
131
|
+
if (o(n), t) {
|
132
|
+
t.key && (r = t.key);
|
133
|
+
{
|
134
|
+
const $ = t.className || t.class;
|
135
|
+
$ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
|
136
|
+
}
|
137
|
+
}
|
138
|
+
const c = U(e, null);
|
139
|
+
return c.$attrs$ = t, a.length > 0 && (c.$children$ = a), c.$key$ = r, c;
|
140
|
+
}, U = (e, t) => {
|
141
|
+
const n = {
|
142
|
+
$flags$: 0,
|
143
|
+
$tag$: e,
|
144
|
+
$text$: t,
|
145
|
+
$elm$: null,
|
146
|
+
$children$: null
|
147
|
+
};
|
148
|
+
return n.$attrs$ = null, n.$key$ = null, n;
|
149
|
+
}, Ae = {}, Le = (e) => e && e.$tag$ === Ae, _e = (e, t) => e != null && !C(e) && t & 1 ? String(e) : e, et = (e) => b(e).$hostElement$, je = (e, t, n) => {
|
150
|
+
const s = g.ce(t, n);
|
151
|
+
return e.dispatchEvent(s), s;
|
152
|
+
}, N = /* @__PURE__ */ new WeakMap(), Oe = (e, t, n) => {
|
153
|
+
let s = A.get(e);
|
154
|
+
ye && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, A.set(e, s);
|
155
|
+
}, Ie = (e, t, n) => {
|
156
|
+
var s;
|
157
|
+
const r = R(t), l = A.get(r);
|
158
|
+
if (e = e.nodeType === 11 ? e : y, l)
|
159
|
+
if (typeof l == "string") {
|
160
|
+
e = e.head || e;
|
161
|
+
let i = N.get(e), a;
|
162
|
+
if (i || N.set(e, i = /* @__PURE__ */ new Set()), !i.has(r)) {
|
163
|
+
{
|
164
|
+
a = y.createElement("style"), a.innerHTML = l;
|
165
|
+
const o = (s = g.$nonce$) != null ? s : X(y);
|
166
|
+
o != null && a.setAttribute("nonce", o), e.insertBefore(a, e.querySelector("link"));
|
167
|
+
}
|
168
|
+
t.$flags$ & 4 && (a.innerHTML += K), i && i.add(r);
|
169
|
+
}
|
170
|
+
} else
|
171
|
+
e.adoptedStyleSheets.includes(l) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, l]);
|
172
|
+
return r;
|
173
|
+
}, He = (e) => {
|
174
|
+
const t = e.$cmpMeta$, n = e.$hostElement$, s = S("attachStyles", t.$tagName$);
|
175
|
+
Ie(
|
176
|
+
n.getRootNode(),
|
177
|
+
t
|
178
|
+
), s();
|
179
|
+
}, R = (e, t) => "sc-" + e.$tagName$, Y = (e, t, n, s, r, l) => {
|
180
|
+
if (n !== s) {
|
181
|
+
let i = pe(e, t);
|
182
|
+
if (t.toLowerCase(), t === "class") {
|
183
|
+
const a = e.classList, o = G(n), c = G(s);
|
184
|
+
a.remove(...o.filter(($) => $ && !c.includes($))), a.add(...c.filter(($) => $ && !o.includes($)));
|
185
|
+
} else if (t === "style") {
|
186
|
+
for (const a in n)
|
187
|
+
(!s || s[a] == null) && (a.includes("-") ? e.style.removeProperty(a) : e.style[a] = "");
|
188
|
+
for (const a in s)
|
189
|
+
(!n || s[a] !== n[a]) && (a.includes("-") ? e.style.setProperty(a, s[a]) : e.style[a] = s[a]);
|
190
|
+
} else if (t !== "key")
|
191
|
+
if (t === "ref")
|
192
|
+
s && s(e);
|
193
|
+
else {
|
194
|
+
const a = C(s);
|
195
|
+
if (i || a && s !== null)
|
196
|
+
try {
|
197
|
+
if (e.tagName.includes("-"))
|
198
|
+
e[t] = s;
|
199
|
+
else {
|
200
|
+
const o = s == null ? "" : s;
|
201
|
+
t === "list" ? i = !1 : (n == null || e[t] != o) && (e[t] = o);
|
202
|
+
}
|
203
|
+
} catch (o) {
|
204
|
+
}
|
205
|
+
s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!i || l & 4 || r) && !a && (s = s === !0 ? "" : s, e.setAttribute(t, s));
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}, Ue = /\s/, G = (e) => e ? e.split(Ue) : [], V = (e, t, n) => {
|
209
|
+
const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || F, l = t.$attrs$ || F;
|
210
|
+
for (const i of J(Object.keys(r)))
|
211
|
+
i in l || Y(s, i, r[i], void 0, n, t.$flags$);
|
212
|
+
for (const i of J(Object.keys(l)))
|
213
|
+
Y(s, i, r[i], l[i], n, t.$flags$);
|
214
|
+
};
|
215
|
+
function J(e) {
|
216
|
+
return e.includes("ref") ? (
|
217
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
218
|
+
[...e.filter((t) => t !== "ref"), "ref"]
|
219
|
+
) : (
|
220
|
+
// no need to sort, return the original array
|
221
|
+
e
|
222
|
+
);
|
223
|
+
}
|
224
|
+
var ee, te = !1, L = (e, t, n, s) => {
|
225
|
+
const r = t.$children$[n];
|
226
|
+
let l = 0, i, a;
|
227
|
+
if (i = r.$elm$ = y.createElement(
|
228
|
+
r.$tag$
|
229
|
+
), V(null, r, te), r.$children$)
|
230
|
+
for (l = 0; l < r.$children$.length; ++l)
|
231
|
+
a = L(e, r, l), a && i.appendChild(a);
|
232
|
+
return i["s-hn"] = ee, i;
|
233
|
+
}, se = (e, t, n, s, r, l) => {
|
234
|
+
let i = e, a;
|
235
|
+
for (; r <= l; ++r)
|
236
|
+
s[r] && (a = L(null, n, r), a && (s[r].$elm$ = a, x(i, a, t)));
|
237
|
+
}, ne = (e, t, n) => {
|
238
|
+
for (let s = t; s <= n; ++s) {
|
239
|
+
const r = e[s];
|
240
|
+
if (r) {
|
241
|
+
const l = r.$elm$;
|
242
|
+
re(r), l && l.remove();
|
243
|
+
}
|
244
|
+
}
|
245
|
+
}, Be = (e, t, n, s, r = !1) => {
|
246
|
+
let l = 0, i = 0, a = 0, o = 0, c = t.length - 1, $ = t[0], f = t[c], u = s.length - 1, d = s[0], v = s[u], p, h;
|
247
|
+
for (; l <= c && i <= u; )
|
248
|
+
if ($ == null)
|
249
|
+
$ = t[++l];
|
250
|
+
else if (f == null)
|
251
|
+
f = t[--c];
|
252
|
+
else if (d == null)
|
253
|
+
d = s[++i];
|
254
|
+
else if (v == null)
|
255
|
+
v = s[--u];
|
256
|
+
else if (w($, d, r))
|
257
|
+
k($, d, r), $ = t[++l], d = s[++i];
|
258
|
+
else if (w(f, v, r))
|
259
|
+
k(f, v, r), f = t[--c], v = s[--u];
|
260
|
+
else if (w($, v, r))
|
261
|
+
k($, v, r), x(e, $.$elm$, f.$elm$.nextSibling), $ = t[++l], v = s[--u];
|
262
|
+
else if (w(f, d, r))
|
263
|
+
k(f, d, r), x(e, f.$elm$, $.$elm$), f = t[--c], d = s[++i];
|
264
|
+
else {
|
265
|
+
for (a = -1, o = l; o <= c; ++o)
|
266
|
+
if (t[o] && t[o].$key$ !== null && t[o].$key$ === d.$key$) {
|
267
|
+
a = o;
|
268
|
+
break;
|
269
|
+
}
|
270
|
+
a >= 0 ? (h = t[a], h.$tag$ !== d.$tag$ ? p = L(t && t[i], n, a) : (k(h, d, r), t[a] = void 0, p = h.$elm$), d = s[++i]) : (p = L(t && t[i], n, i), d = s[++i]), p && x($.$elm$.parentNode, p, $.$elm$);
|
271
|
+
}
|
272
|
+
l > c ? se(
|
273
|
+
e,
|
274
|
+
s[u + 1] == null ? null : s[u + 1].$elm$,
|
275
|
+
n,
|
276
|
+
s,
|
277
|
+
i,
|
278
|
+
u
|
279
|
+
) : i > u && ne(t, l, c);
|
280
|
+
}, w = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, k = (e, t, n = !1) => {
|
281
|
+
const s = t.$elm$ = e.$elm$, r = e.$children$, l = t.$children$;
|
282
|
+
V(e, t, te), r !== null && l !== null ? Be(s, r, t, l, n) : l !== null ? se(s, null, t, l, 0, l.length - 1) : r !== null && ne(r, 0, r.length - 1);
|
283
|
+
}, re = (e) => {
|
284
|
+
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(re);
|
285
|
+
}, x = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), ze = (e, t, n = !1) => {
|
286
|
+
const s = e.$hostElement$, r = e.$vnode$ || U(null, null), l = Le(t) ? t : xe(null, null, t);
|
287
|
+
if (ee = s.tagName, n && l.$attrs$)
|
288
|
+
for (const i of Object.keys(l.$attrs$))
|
289
|
+
s.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (l.$attrs$[i] = s[i]);
|
290
|
+
l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = r.$elm$ = s, k(r, l, n);
|
291
|
+
}, le = (e, t) => {
|
292
|
+
t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
|
293
|
+
}, D = (e, t) => {
|
294
|
+
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
295
|
+
e.$flags$ |= 512;
|
296
|
+
return;
|
297
|
+
}
|
298
|
+
return le(e, e.$ancestorComponent$), be(() => qe(e, t));
|
299
|
+
}, qe = (e, t) => {
|
300
|
+
const n = e.$hostElement$, s = S("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
|
301
|
+
if (!r)
|
302
|
+
throw new Error(
|
303
|
+
`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`
|
304
|
+
);
|
305
|
+
let l;
|
306
|
+
return s(), Ce(l, () => Me(e, r, t));
|
307
|
+
}, Ce = (e, t) => De(e) ? e.then(t).catch((n) => {
|
308
|
+
console.error(n), t();
|
309
|
+
}) : t(), De = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Me = (e, t, n) => T(void 0, null, function* () {
|
310
|
+
var s;
|
311
|
+
const r = e.$hostElement$, l = S("update", e.$cmpMeta$.$tagName$), i = r["s-rc"];
|
312
|
+
n && He(e);
|
313
|
+
const a = S("render", e.$cmpMeta$.$tagName$);
|
314
|
+
We(e, t, r, n), i && (i.map((o) => o()), r["s-rc"] = void 0), a(), l();
|
315
|
+
{
|
316
|
+
const o = (s = r["s-p"]) != null ? s : [], c = () => Fe(e);
|
317
|
+
o.length === 0 ? c() : (Promise.all(o).then(c), e.$flags$ |= 4, o.length = 0);
|
318
|
+
}
|
319
|
+
}), We = (e, t, n, s) => {
|
320
|
+
try {
|
321
|
+
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, ze(e, t, s);
|
322
|
+
} catch (r) {
|
323
|
+
E(r, e.$hostElement$);
|
324
|
+
}
|
325
|
+
return null;
|
326
|
+
}, Fe = (e) => {
|
327
|
+
const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = S("postUpdate", t), r = e.$lazyInstance$, l = e.$ancestorComponent$;
|
328
|
+
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, ie(n), Ne(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), l || ae()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && q(() => D(e, !1)), e.$flags$ &= -517;
|
329
|
+
}, ae = (e) => {
|
330
|
+
ie(y.documentElement), q(() => je(z, "appload", { detail: { namespace: ce } }));
|
331
|
+
}, Ne = (e, t, n) => {
|
332
|
+
if (e && e[t])
|
333
|
+
try {
|
334
|
+
return e[t](n);
|
335
|
+
} catch (s) {
|
336
|
+
E(s);
|
337
|
+
}
|
338
|
+
}, ie = (e) => {
|
339
|
+
var t;
|
340
|
+
return e.classList.add((t = fe.hydratedSelectorName) != null ? t : "hydrated");
|
341
|
+
}, Ye = (e, t) => b(e).$instanceValues$.get(t), Ge = (e, t, n, s) => {
|
342
|
+
const r = b(e);
|
343
|
+
if (!r)
|
344
|
+
throw new Error(
|
345
|
+
`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).`
|
346
|
+
);
|
347
|
+
const l = r.$hostElement$, i = r.$instanceValues$.get(t), a = r.$flags$, o = r.$lazyInstance$;
|
348
|
+
n = _e(n, s.$members$[t][0]);
|
349
|
+
const c = Number.isNaN(i) && Number.isNaN(n), $ = n !== i && !c;
|
350
|
+
if ((!(a & 8) || i === void 0) && $ && (r.$instanceValues$.set(t, n), o)) {
|
351
|
+
if (s.$watchers$ && a & 128) {
|
352
|
+
const f = s.$watchers$[t];
|
353
|
+
f && f.map((u) => {
|
354
|
+
try {
|
355
|
+
o[u](n, i, t);
|
356
|
+
} catch (d) {
|
357
|
+
E(d, l);
|
358
|
+
}
|
359
|
+
});
|
360
|
+
}
|
361
|
+
(a & 18) === 2 && D(r, !1);
|
362
|
+
}
|
363
|
+
}, oe = (e, t, n) => {
|
364
|
+
var s, r;
|
365
|
+
const l = e.prototype;
|
366
|
+
if (t.$members$ || t.$watchers$ || e.watchers) {
|
367
|
+
e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
|
368
|
+
const i = Object.entries((s = t.$members$) != null ? s : {});
|
369
|
+
if (i.map(([a, [o]]) => {
|
370
|
+
(o & 31 || n & 2 && o & 32) && Object.defineProperty(l, a, {
|
371
|
+
get() {
|
372
|
+
return Ye(this, a);
|
373
|
+
},
|
374
|
+
set(c) {
|
375
|
+
Ge(this, a, c, t);
|
376
|
+
},
|
377
|
+
configurable: !0,
|
378
|
+
enumerable: !0
|
379
|
+
});
|
380
|
+
}), n & 1) {
|
381
|
+
const a = /* @__PURE__ */ new Map();
|
382
|
+
l.attributeChangedCallback = function(o, c, $) {
|
383
|
+
g.jmp(() => {
|
384
|
+
var f;
|
385
|
+
const u = a.get(o);
|
386
|
+
if (this.hasOwnProperty(u))
|
387
|
+
$ = this[u], delete this[u];
|
388
|
+
else {
|
389
|
+
if (l.hasOwnProperty(u) && typeof this[u] == "number" && this[u] == $)
|
390
|
+
return;
|
391
|
+
if (u == null) {
|
392
|
+
const d = b(this), v = d == null ? void 0 : d.$flags$;
|
393
|
+
if (v && !(v & 8) && v & 128 && $ !== c) {
|
394
|
+
const p = d.$lazyInstance$, h = (f = t.$watchers$) == null ? void 0 : f[o];
|
395
|
+
h == null || h.forEach((m) => {
|
396
|
+
p[m] != null && p[m].call(p, $, c, o);
|
397
|
+
});
|
398
|
+
}
|
399
|
+
return;
|
400
|
+
}
|
401
|
+
}
|
402
|
+
this[u] = $ === null && typeof this[u] == "boolean" ? !1 : $;
|
403
|
+
});
|
404
|
+
}, e.observedAttributes = Array.from(
|
405
|
+
/* @__PURE__ */ new Set([
|
406
|
+
...Object.keys((r = t.$watchers$) != null ? r : {}),
|
407
|
+
...i.filter(
|
408
|
+
([o, c]) => c[0] & 15
|
409
|
+
/* HasAttribute */
|
410
|
+
).map(([o, c]) => {
|
411
|
+
const $ = c[1] || o;
|
412
|
+
return a.set($, o), $;
|
413
|
+
})
|
414
|
+
])
|
415
|
+
);
|
416
|
+
}
|
417
|
+
}
|
418
|
+
return e;
|
419
|
+
}, Je = (e, t, n, s) => T(void 0, null, function* () {
|
420
|
+
let r;
|
421
|
+
if (!(t.$flags$ & 32)) {
|
422
|
+
if (t.$flags$ |= 32, n.$lazyBundleId$) {
|
423
|
+
const o = ge(n);
|
424
|
+
if (o && "then" in o) {
|
425
|
+
const $ = we();
|
426
|
+
r = yield o, $();
|
427
|
+
} else
|
428
|
+
r = o;
|
429
|
+
if (!r)
|
430
|
+
throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
|
431
|
+
r.isProxied || (n.$watchers$ = r.watchers, oe(
|
432
|
+
r,
|
433
|
+
n,
|
434
|
+
2
|
435
|
+
/* proxyState */
|
436
|
+
), r.isProxied = !0);
|
437
|
+
const c = S("createInstance", n.$tagName$);
|
438
|
+
t.$flags$ |= 8;
|
439
|
+
try {
|
440
|
+
new r(t);
|
441
|
+
} catch ($) {
|
442
|
+
E($);
|
443
|
+
}
|
444
|
+
t.$flags$ &= -9, t.$flags$ |= 128, c();
|
445
|
+
} else {
|
446
|
+
r = e.constructor;
|
447
|
+
const o = e.localName;
|
448
|
+
customElements.whenDefined(o).then(
|
449
|
+
() => t.$flags$ |= 128
|
450
|
+
/* isWatchReady */
|
451
|
+
);
|
452
|
+
}
|
453
|
+
if (r && r.style) {
|
454
|
+
let o;
|
455
|
+
typeof r.style == "string" && (o = r.style);
|
456
|
+
const c = R(n);
|
457
|
+
if (!A.has(c)) {
|
458
|
+
const $ = S("registerStyles", n.$tagName$);
|
459
|
+
Oe(c, o, !!(n.$flags$ & 1)), $();
|
460
|
+
}
|
461
|
+
}
|
462
|
+
}
|
463
|
+
const l = t.$ancestorComponent$, i = () => D(t, !0);
|
464
|
+
l && l["s-rc"] ? l["s-rc"].push(i) : i();
|
465
|
+
}), Ke = (e) => {
|
466
|
+
}, Qe = (e) => {
|
467
|
+
if (!(g.$flags$ & 1)) {
|
468
|
+
const t = b(e), n = t.$cmpMeta$, s = S("connectedCallback", n.$tagName$);
|
469
|
+
if (t.$flags$ & 1)
|
470
|
+
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ke());
|
471
|
+
else {
|
472
|
+
t.$flags$ |= 1;
|
473
|
+
{
|
474
|
+
let r = e;
|
475
|
+
for (; r = r.parentNode || r.host; )
|
476
|
+
if (r["s-p"]) {
|
477
|
+
le(t, t.$ancestorComponent$ = r);
|
478
|
+
break;
|
479
|
+
}
|
480
|
+
}
|
481
|
+
n.$members$ && Object.entries(n.$members$).map(([r, [l]]) => {
|
482
|
+
if (l & 31 && e.hasOwnProperty(r)) {
|
483
|
+
const i = e[r];
|
484
|
+
delete e[r], e[r] = i;
|
485
|
+
}
|
486
|
+
}), Je(e, t, n);
|
487
|
+
}
|
488
|
+
s();
|
489
|
+
}
|
490
|
+
}, Xe = (e) => {
|
491
|
+
}, Ze = (e) => T(void 0, null, function* () {
|
492
|
+
if (!(g.$flags$ & 1)) {
|
493
|
+
const t = b(e);
|
494
|
+
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Xe());
|
495
|
+
}
|
496
|
+
}), tt = (e, t = {}) => {
|
497
|
+
var n;
|
498
|
+
const s = S(), r = [], l = t.exclude || [], i = z.customElements, a = y.head, o = /* @__PURE__ */ a.querySelector("meta[charset]"), c = /* @__PURE__ */ y.createElement("style"), $ = [];
|
499
|
+
let f, u = !0;
|
500
|
+
Object.assign(g, t), g.$resourcesUrl$ = new URL(t.resourcesUrl || "./", y.baseURI).href;
|
501
|
+
let d = !1;
|
502
|
+
if (e.map((v) => {
|
503
|
+
v[1].map((p) => {
|
504
|
+
var h;
|
505
|
+
const m = {
|
506
|
+
$flags$: p[0],
|
507
|
+
$tagName$: p[1],
|
508
|
+
$members$: p[2],
|
509
|
+
$listeners$: p[3]
|
510
|
+
};
|
511
|
+
m.$flags$ & 4 && (d = !0), m.$members$ = p[2], m.$watchers$ = (h = p[4]) != null ? h : {};
|
512
|
+
const P = m.$tagName$, $e = class extends HTMLElement {
|
513
|
+
// StencilLazyHost
|
514
|
+
constructor(_) {
|
515
|
+
super(_), this.hasRegisteredEventListeners = !1, _ = this, ve(_, m);
|
516
|
+
}
|
517
|
+
connectedCallback() {
|
518
|
+
b(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), u ? $.push(this) : g.jmp(() => Qe(this));
|
519
|
+
}
|
520
|
+
disconnectedCallback() {
|
521
|
+
g.jmp(() => Ze(this));
|
522
|
+
}
|
523
|
+
componentOnReady() {
|
524
|
+
return b(this).$onReadyPromise$;
|
525
|
+
}
|
526
|
+
};
|
527
|
+
m.$lazyBundleId$ = v[0], !l.includes(P) && !i.get(P) && (r.push(P), i.define(
|
528
|
+
P,
|
529
|
+
oe(
|
530
|
+
$e,
|
531
|
+
m,
|
532
|
+
1
|
533
|
+
/* isElementConstructor */
|
534
|
+
)
|
535
|
+
));
|
536
|
+
});
|
537
|
+
}), r.length > 0 && (d && (c.textContent += K), c.textContent += r.sort() + he, c.innerHTML.length)) {
|
538
|
+
c.setAttribute("data-styles", "");
|
539
|
+
const v = (n = g.$nonce$) != null ? n : X(y);
|
540
|
+
v != null && c.setAttribute("nonce", v), a.insertBefore(c, o ? o.nextSibling : a.firstChild);
|
541
|
+
}
|
542
|
+
u = !1, $.length ? $.map((v) => v.connectedCallback()) : g.jmp(() => f = setTimeout(ae, 30)), s();
|
543
|
+
};
|
544
|
+
export {
|
545
|
+
tt as b,
|
546
|
+
et as g,
|
547
|
+
xe as h,
|
548
|
+
me as p,
|
549
|
+
Ve as r
|
550
|
+
};
|