@everymatrix/player-account-menu-nd 1.60.2 → 1.61.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.
@@ -1,5 +1,5 @@
1
1
  import { a as de, $ as ge, c as ye, S as pe, i as fe, s as he, f as C, b as Ae, n as O, d as F, e as L, g as h, h as be, j as V, o as Me, k as Pe, l as H, m as ee, p as a, q as k, r as m, t as g, u as W, v as z, w as we, x as D, y as T, z as X, A as ve, B as xe, C as _e, D as ke } from "./GeneralLogout-frd7X--7.js";
2
- import "../stencil/ui-skeleton-Cb-Iz3dC.js";
2
+ import "../stencil/ui-skeleton-B_k9eAqb.js";
3
3
  function Z(n, e) {
4
4
  de(n, e);
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { a as de, $ as ge, S as ye, i as pe, f as C, s as fe, c as he, b as Ae, n as O, d as F, e as L, g as h, h as be, j as V, o as Me, k as Pe, l as H, m as ee, p as a, q as k, r as m, t as g, u as W, v as z, w as we, x as D, y as T, z as X, A as ve, B as xe, C as _e, D as ke } from "./GeneralLogout-ptdBaS2m.js";
2
- import "../stencil/ui-skeleton-C8koemPS.js";
2
+ import "../stencil/ui-skeleton-BMBuBPkw.js";
3
3
  function Z(n, e) {
4
4
  de(n, e);
5
5
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-bMxOqZDd.cjs");require("../stencil/ui-skeleton-B_ESS51i.cjs");function B(a,t){e.addMessages(a,t)}function K(a){e.$locale.set(a)}const H={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-bMxOqZDd.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Y(a){e.append_styles(a,"svelte-7x6kyy",'.PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%;border-radius:20px;overflow:hidden}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:var(--emw--font-size-small, 14px);text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:var(--emw--font-size-medium, 16px);line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;border-radius:var(--emw--border-radius-medium, 20px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox:hover{transition:all 0.3s linear;background:rgba(35, 176, 78, 0.3);border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);color:var(--emw--color-white, #FFFFFF)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{padding:5px;width:100%;box-sizing:border-box}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background-color:rgba(253, 40, 57, 0.3);color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 20px);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);transition:all 0.3s linear}.PlayerAccountMobileContainer{height:unset;padding:0}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:flex;flex-direction:column;align-items:flex-start;margin:0px 15px;min-height:900px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);height:60px;margin:5px 0;align-items:flex-start;position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::after{content:"";display:inline-block;width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2215%22 height=%2215%22 viewBox=%220 0 15 15%22%3E%3Cdefs%3E%3Cstyle%3E.aaa%7Bfill:var(--emw--color-white,%20%23FFFFFF);%7D%3C/style%3E%3C/defs%3E%3Cg transform=%22translate(-20%20-158)%22%3E%3Cg transform=%22translate(20%20158)%22%3E%3Cpath class=%22aaa%22 d=%22M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z%22 transform=%22translate(15%2015)%20rotate(180)%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-size:contain;transform:scaleX(-1);background-repeat:no-repeat;position:absolute;right:15px;top:22px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:400;word-break:break-word;text-align:left;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px;color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:18px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon,.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:12px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-large, 20px)}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function z(a,t,n){const l=a.slice();return l[41]=t[n],l}function W(a,t,n){const l=a.slice();return l[38]=t[n],l}function $(a){let t,n,l,o,s,m,y,h,A,_,f,b,u=a[12]&&te(a),c=a[12]&&ne(a),d=e.ensure_array_like(a[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=S(z(a,d,p));let P=!a[12]&&ae(a);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),l=e.space(),o=e.element("p"),s=e.text(a[9]),m=e.space(),y=e.element("p"),h=e.text(a[10]),A=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();b=e.space(),P&&P.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,l),e.append(n,o),e.append(o,s),e.append(n,m),e.append(n,y),e.append(y,h),e.append(n,A),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let g=0;g<i.length;g+=1)i[g]&&i[g].m(f,null);e.append(t,b),P&&P.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(s,p[9]),w[0]&1024&&e.set_data(h,p[10]),p[12]&&c.p(p,w),w[0]&20864){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=z(p,d,g);i[g]?i[g].p(x,w):(i[g]=S(x),i[g].c(),i[g].m(f,null))}for(;g<i.length;g+=1)i[g].d(1);i.length=d.length}p[12]||P.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),P&&P.d()}}}function ee(a){let t,n,l,o,s,m,y,h,A,_,f=a[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<b.length;c+=1)u[c]=O(W(a,b,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),l=e.space(),o=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),h=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();A=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(o,"structure","title"),e.set_custom_element_data(o,"width","100px"),e.set_custom_element_data(o,"height","20px"),e.set_custom_element_data(o,"margin-top","20px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,l),e.append(n,o),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,h);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(h,null);e.append(t,A),e.append(t,_)},p(c,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let i;for(i=0;i<b.length;i+=1){const P=W(c,b,i);u[i]?u[i].p(P,d):(u[i]=O(P),u[i].c(),u[i].m(h,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=b.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function te(a){let t,n,l,o,s,m,y,h,A,_,f=a[11]("title")+"",b,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),l=e.svg_element("defs"),o=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),y=e.svg_element("g"),h=e.svg_element("path"),A=e.space(),_=e.element("h3"),b=e.text(f),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(y,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,i){e.insert(d,t,i),e.append(t,n),e.append(n,l),e.append(l,o),e.append(o,s),e.append(n,m),e.append(m,y),e.append(y,h),e.append(t,A),e.append(t,_),e.append(_,b),u||(c=[e.listen(n,"click",a[15]),e.listen(_,"click",a[15])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(b,f)},d(d){d&&e.detach(t),u=!1,e.run_all(c)}}}function ne(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function S(a){let t,n,l,o,s,m,y=a[41].label+"",h,A,_,f,b;function u(){return a[26](a[41])}return{c(){t=e.element("div"),n=e.element("p"),l=e.element("img"),s=e.space(),m=e.element("span"),h=e.text(y),A=e.space(),e.attr(l,"class","PlayerAccountMenuItemIcon "+(a[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(l.src,o=a[41].img)||e.attr(l,"src",o),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(n,l),e.append(n,s),e.append(n,m),e.append(m,h),e.append(t,A),f||(b=e.listen(t,"click",u),f=!0)},p(c,d){a=c,d[0]&128&&!e.src_url_equal(l.src,o=a[41].img)&&e.attr(l,"src",o),d[0]&128&&y!==(y=a[41].label+"")&&e.set_data(h,y),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!1,b()}}}function ae(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function re(a){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function O(a){let t,n,l,o,s=!a[12]&&re();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),l=e.element("ui-skeleton"),o=e.space(),e.set_custom_element_data(l,"structure","rectangle"),e.set_custom_element_data(l,"width","100%"),e.set_custom_element_data(l,"height",a[12]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(a[12]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),s&&s.m(t,null),e.append(t,n),e.append(t,l),e.append(t,o)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function oe(a){let t;function n(s,m){return s[6]?ee:$}let l=n(a),o=l(a);return{c(){t=e.element("div"),o.c()},m(s,m){e.insert(s,t,m),o.m(t,null),a[27](t)},p(s,m){l===(l=n(s))&&o?o.p(s,m):(o.d(1),o=l(s),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),o.d(),a[27](null)}}}function ie(a,t,n){let l;e.component_subscribe(a,e.$format,r=>n(11,l=r));let{endpoint:o=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:y=""}=t,{playerid:h=""}=t,{lang:A="en"}=t,{selecteditem:_=""}=t,{userroles:f=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:c}=t,{translationurl:d=""}=t,{activemenuitem:i=""}=t,P=!1,p=!1,w=!0,g,x=[],k,C=window.navigator.userAgent,U=e.getDevice(C)!=="PC",I="",F="";const j=window.matchMedia("(min-width: 768px)"),q=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(v=>{B(v,M[v])})}).catch(M=>{console.error(M)})};Object.keys(H).forEach(r=>{B(r,H[r])});const L=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,y=r.data.session);break}},R=()=>{let r=e.getDevice(C);if(r)return r==="PC"?"dk":"mtWeb"},G=()=>{const r=new URL(`${s}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",R()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(24,P=!0)})},N=()=>{let r=new URL(`${o}/v1/player/${h}/profile`);r.searchParams.append("userRoles",f);let M={method:"GET",headers:{"X-SessionID":y}};fetch(r.href,M).then(v=>v.json()).then(v=>{n(9,I=v.username),n(10,F=v.email)},v=>{console.error(v)}).finally(()=>{n(25,p=!0)})},E=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},T=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(i)))==null?void 0:r.id)},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},X=()=>{K(A)},Z=()=>{N()};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Q=r=>E(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return a.$$set=r=>{"endpoint"in r&&n(1,o=r.endpoint),"cmsendpoint"in r&&n(16,s=r.cmsendpoint),"env"in r&&n(17,m=r.env),"session"in r&&n(0,y=r.session),"playerid"in r&&n(18,h=r.playerid),"lang"in r&&n(19,A=r.lang),"selecteditem"in r&&n(20,_=r.selecteditem),"userroles"in r&&n(21,f=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,c=r.mbsource),"translationurl"in r&&n(22,d=r.translationurl),"activemenuitem"in r&&n(23,i=r.activemenuitem)},a.$$.update=()=>{a.$$.dirty[0]&50331648&&n(6,w=!P||!p),a.$$.dirty[0]&524288&&A&&X(),a.$$.dirty[0]&786435&&o&&y&&h&&A&&Z(),a.$$.dirty[0]&720896&&s&&A&&m&&G(),a.$$.dirty[0]&8388608&&i&&T(),a.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),a.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),a.$$.dirty[0]&48&&c&&g&&e.setStreamStyling(g,`${c}.Style`),a.$$.dirty[0]&4194304&&d&&q()},[y,o,b,u,c,g,w,x,k,I,F,l,U,j,E,V,s,m,h,A,_,f,d,i,P,p,Q,J]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,selecteditem:20,userroles:21,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:22,activemenuitem:23},Y,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[20]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[21]}set userroles(t){this.$$set({userroles:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[22]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[23]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-bMxOqZDd.cjs");require("../stencil/ui-skeleton-0v-RIzOm.cjs");function B(a,t){e.addMessages(a,t)}function K(a){e.$locale.set(a)}const H={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-bMxOqZDd.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Y(a){e.append_styles(a,"svelte-7x6kyy",'.PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%;border-radius:20px;overflow:hidden}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:var(--emw--font-size-small, 14px);text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:var(--emw--font-size-medium, 16px);line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;border-radius:var(--emw--border-radius-medium, 20px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox:hover{transition:all 0.3s linear;background:rgba(35, 176, 78, 0.3);border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);color:var(--emw--color-white, #FFFFFF)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{padding:5px;width:100%;box-sizing:border-box}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background-color:rgba(253, 40, 57, 0.3);color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 20px);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);transition:all 0.3s linear}.PlayerAccountMobileContainer{height:unset;padding:0}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:flex;flex-direction:column;align-items:flex-start;margin:0px 15px;min-height:900px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);height:60px;margin:5px 0;align-items:flex-start;position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::after{content:"";display:inline-block;width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2215%22 height=%2215%22 viewBox=%220 0 15 15%22%3E%3Cdefs%3E%3Cstyle%3E.aaa%7Bfill:var(--emw--color-white,%20%23FFFFFF);%7D%3C/style%3E%3C/defs%3E%3Cg transform=%22translate(-20%20-158)%22%3E%3Cg transform=%22translate(20%20158)%22%3E%3Cpath class=%22aaa%22 d=%22M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z%22 transform=%22translate(15%2015)%20rotate(180)%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-size:contain;transform:scaleX(-1);background-repeat:no-repeat;position:absolute;right:15px;top:22px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:400;word-break:break-word;text-align:left;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px;color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:18px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon,.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:12px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-large, 20px)}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function z(a,t,n){const l=a.slice();return l[41]=t[n],l}function W(a,t,n){const l=a.slice();return l[38]=t[n],l}function $(a){let t,n,l,o,s,m,y,h,A,_,f,b,u=a[12]&&te(a),c=a[12]&&ne(a),d=e.ensure_array_like(a[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=S(z(a,d,p));let P=!a[12]&&ae(a);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),l=e.space(),o=e.element("p"),s=e.text(a[9]),m=e.space(),y=e.element("p"),h=e.text(a[10]),A=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();b=e.space(),P&&P.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(p,w){e.insert(p,t,w),e.append(t,n),u&&u.m(n,null),e.append(n,l),e.append(n,o),e.append(o,s),e.append(n,m),e.append(n,y),e.append(y,h),e.append(n,A),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let g=0;g<i.length;g+=1)i[g]&&i[g].m(f,null);e.append(t,b),P&&P.m(t,null)},p(p,w){if(p[12]&&u.p(p,w),w[0]&512&&e.set_data(s,p[9]),w[0]&1024&&e.set_data(h,p[10]),p[12]&&c.p(p,w),w[0]&20864){d=e.ensure_array_like(p[7]);let g;for(g=0;g<d.length;g+=1){const x=z(p,d,g);i[g]?i[g].p(x,w):(i[g]=S(x),i[g].c(),i[g].m(f,null))}for(;g<i.length;g+=1)i[g].d(1);i.length=d.length}p[12]||P.p(p,w)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),P&&P.d()}}}function ee(a){let t,n,l,o,s,m,y,h,A,_,f=a[12]&&le(),b=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<b.length;c+=1)u[c]=O(W(a,b,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),l=e.space(),o=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),h=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();A=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(o,"structure","title"),e.set_custom_element_data(o,"width","100px"),e.set_custom_element_data(o,"height","20px"),e.set_custom_element_data(o,"margin-top","20px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[12]?"PlayerAccountMobileContainer":"")+" "+(a[13].matches&&a[12]?"PlayerAccountTabletContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,l),e.append(n,o),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,h);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(h,null);e.append(t,A),e.append(t,_)},p(c,d){if(d[0]&4096){b=e.ensure_array_like(Array(18));let i;for(i=0;i<b.length;i+=1){const P=W(c,b,i);u[i]?u[i].p(P,d):(u[i]=O(P),u[i].c(),u[i].m(h,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=b.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function te(a){let t,n,l,o,s,m,y,h,A,_,f=a[11]("title")+"",b,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),l=e.svg_element("defs"),o=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),y=e.svg_element("g"),h=e.svg_element("path"),A=e.space(),_=e.element("h3"),b=e.text(f),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(y,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,i){e.insert(d,t,i),e.append(t,n),e.append(n,l),e.append(l,o),e.append(o,s),e.append(n,m),e.append(m,y),e.append(y,h),e.append(t,A),e.append(t,_),e.append(_,b),u||(c=[e.listen(n,"click",a[15]),e.listen(_,"click",a[15])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(b,f)},d(d){d&&e.detach(t),u=!1,e.run_all(c)}}}function ne(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function S(a){let t,n,l,o,s,m,y=a[41].label+"",h,A,_,f,b;function u(){return a[26](a[41])}return{c(){t=e.element("div"),n=e.element("p"),l=e.element("img"),s=e.space(),m=e.element("span"),h=e.text(y),A=e.space(),e.attr(l,"class","PlayerAccountMenuItemIcon "+(a[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(l.src,o=a[41].img)||e.attr(l,"src",o),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(n,l),e.append(n,s),e.append(n,m),e.append(m,h),e.append(t,A),f||(b=e.listen(t,"click",u),f=!0)},p(c,d){a=c,d[0]&128&&!e.src_url_equal(l.src,o=a[41].img)&&e.attr(l,"src",o),d[0]&128&&y!==(y=a[41].label+"")&&e.set_data(h,y),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(a[8]===a[41].id&&!a[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!1,b()}}}function ae(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.set_custom_element_data(n,"mbsource",a[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(l,o){e.insert(l,t,o),e.append(t,n)},p(l,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",l[1]),o[0]&1&&e.set_custom_element_data(n,"session",l[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",l[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",l[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",l[4])},d(l){l&&e.detach(t)}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function re(a){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,l){e.insert(n,t,l)},d(n){n&&e.detach(t)}}}function O(a){let t,n,l,o,s=!a[12]&&re();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),l=e.element("ui-skeleton"),o=e.space(),e.set_custom_element_data(l,"structure","rectangle"),e.set_custom_element_data(l,"width","100%"),e.set_custom_element_data(l,"height",a[12]?"60px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(a[12]?"PlayerAccountItemWrapMobile":""))},m(m,y){e.insert(m,t,y),s&&s.m(t,null),e.append(t,n),e.append(t,l),e.append(t,o)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function oe(a){let t;function n(s,m){return s[6]?ee:$}let l=n(a),o=l(a);return{c(){t=e.element("div"),o.c()},m(s,m){e.insert(s,t,m),o.m(t,null),a[27](t)},p(s,m){l===(l=n(s))&&o?o.p(s,m):(o.d(1),o=l(s),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),o.d(),a[27](null)}}}function ie(a,t,n){let l;e.component_subscribe(a,e.$format,r=>n(11,l=r));let{endpoint:o=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:y=""}=t,{playerid:h=""}=t,{lang:A="en"}=t,{selecteditem:_=""}=t,{userroles:f=""}=t,{clientstyling:b=""}=t,{clientstylingurl:u=""}=t,{mbsource:c}=t,{translationurl:d=""}=t,{activemenuitem:i=""}=t,P=!1,p=!1,w=!0,g,x=[],k,C=window.navigator.userAgent,U=e.getDevice(C)!=="PC",I="",F="";const j=window.matchMedia("(min-width: 768px)"),q=()=>{fetch(d).then(M=>M.json()).then(M=>{Object.keys(M).forEach(v=>{B(v,M[v])})}).catch(M=>{console.error(M)})};Object.keys(H).forEach(r=>{B(r,H[r])});const L=r=>{if(r.data)switch(r.data.type){case"AccountMenuDetails":availableMenuItemsArray=r.data.accountMenuInfo;break;case"UserSessionID":n(0,y=r.data.session);break}},R=()=>{let r=e.getDevice(C);if(r)return r==="PC"?"dk":"mtWeb"},G=()=>{const r=new URL(`${s}/${A}/profile-menu?env=${m}`);r.searchParams.append("device",R()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,x=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(24,P=!0)})},N=()=>{let r=new URL(`${o}/v1/player/${h}/profile`);r.searchParams.append("userRoles",f);let M={method:"GET",headers:{"X-SessionID":y}};fetch(r.href,M).then(v=>v.json()).then(v=>{n(9,I=v.username),n(10,F=v.email)},v=>{console.error(v)}).finally(()=>{n(25,p=!0)})},E=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,k=r.id)},T=()=>{var r;n(8,k=(r=x.find(M=>M.path.includes(i)))==null?void 0:r.id)},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},X=()=>{K(A)},Z=()=>{N()};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Q=r=>E(r);function J(r){e.binding_callbacks[r?"unshift":"push"](()=>{g=r,n(5,g)})}return a.$$set=r=>{"endpoint"in r&&n(1,o=r.endpoint),"cmsendpoint"in r&&n(16,s=r.cmsendpoint),"env"in r&&n(17,m=r.env),"session"in r&&n(0,y=r.session),"playerid"in r&&n(18,h=r.playerid),"lang"in r&&n(19,A=r.lang),"selecteditem"in r&&n(20,_=r.selecteditem),"userroles"in r&&n(21,f=r.userroles),"clientstyling"in r&&n(2,b=r.clientstyling),"clientstylingurl"in r&&n(3,u=r.clientstylingurl),"mbsource"in r&&n(4,c=r.mbsource),"translationurl"in r&&n(22,d=r.translationurl),"activemenuitem"in r&&n(23,i=r.activemenuitem)},a.$$.update=()=>{a.$$.dirty[0]&50331648&&n(6,w=!P||!p),a.$$.dirty[0]&524288&&A&&X(),a.$$.dirty[0]&786435&&o&&y&&h&&A&&Z(),a.$$.dirty[0]&720896&&s&&A&&m&&G(),a.$$.dirty[0]&8388608&&i&&T(),a.$$.dirty[0]&36&&b&&g&&e.setClientStyling(g,b),a.$$.dirty[0]&40&&u&&g&&e.setClientStylingURL(g,u),a.$$.dirty[0]&48&&c&&g&&e.setStreamStyling(g,`${c}.Style`),a.$$.dirty[0]&4194304&&d&&q()},[y,o,b,u,c,g,w,x,k,I,F,l,U,j,E,V,s,m,h,A,_,f,d,i,P,p,Q,J]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ie,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,selecteditem:20,userroles:21,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:22,activemenuitem:23},Y,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[20]}set selecteditem(t){this.$$set({selecteditem:t}),e.flush()}get userroles(){return this.$$.ctx[21]}set userroles(t){this.$$set({userroles:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[22]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[23]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=D;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenuNd-DqjTNdoi.cjs")).then(({default:t})=>{!customElements.get("player-account-menu-nd")&&customElements.define("player-account-menu-nd",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenuNd-ncBQqkYC.cjs")).then(({default:t})=>{!customElements.get("player-account-menu-nd")&&customElements.define("player-account-menu-nd",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerAccountMenuNd-D1Rcn9QO.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountMenuNd-DhImz0wU.js").then(({ default: t }) => {
14
14
  !customElements.get("player-account-menu-nd") && customElements.define("player-account-menu-nd", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as s } from "../components/PlayerAccountMenuNd-heTqalhM.js";
1
+ import { P as s } from "../components/PlayerAccountMenuNd-C_vuQsXb.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-menu-nd",
3
- "version": "1.60.2",
3
+ "version": "1.61.0",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-menu-nd.cjs",
6
6
  "module": "esnext/player-account-menu-nd.js",
@@ -1 +1 @@
1
- "use strict";var P=(e,t,s)=>new Promise((r,n)=>{var a=i=>{try{o(s.next(i))}catch($){n($)}},l=i=>{try{o(s.throw(i))}catch($){n($)}},o=i=>i.done?r(i.value):Promise.resolve(i.value).then(a,l);o((s=s.apply(e,t)).next())});const ue="ui-skeleton",fe={hydratedSelectorName:"hydrated"};var de=Object.defineProperty,me=(e,t)=>{for(var s in t)de(e,s,{get:t[s],enumerable:!0})},U=new WeakMap,b=e=>U.get(e),ve=(e,t)=>U.set(t.$lazyInstance$=e,t),ge=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],U.set(e,s)},E=(e,t)=>(0,console.error)(e,t),O=new Map,he=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=O.get(n);if(a)return a[r];{const l=o=>(O.set(n,o),o[r]);switch(n){case"ui-skeleton":return Promise.resolve().then(()=>require("./ui-skeleton-B_ESS51i.cjs")).then(l,E)}}return import(`./${n}.entry.js`).then(l=>(O.set(n,l),l[r]),E)},L=new Map,pe="{visibility:hidden}.hydrated{visibility:inherit}",J="slot-fb{display:contents}slot-fb[hidden]{display:none}",B=typeof window!="undefined"?window:{},y=B.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},K=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),A=!1,C=[],Q=[],Se=(e,t)=>s=>{e.push(s),A||(A=!0,g.$flags$&4?z(I):g.raf(I))},D=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){E(s)}e.length=0},I=()=>{D(C),D(Q),(A=C.length>0)&&g.raf(I)},z=e=>K().then(e),be=Se(Q),F={},X=e=>(e=typeof e,e==="object"||e==="function");function Z(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var ke={};me(ke,{err:()=>R,map:()=>Ee,ok:()=>H,unwrap:()=>we,unwrapErr:()=>Pe});var H=e=>({isOk:!0,isErr:!1,value:e}),R=e=>({isOk:!1,isErr:!0,value:e});function Ee(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>H(r)):H(s)}if(e.isErr){const s=e.value;return R(s)}throw"should never get here"}var we=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},xe=(e,t)=>()=>{},V=(e,t,...s)=>{let r=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let u=0;u<c.length;u++)r=c[u],Array.isArray(r)?i(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!X(r))&&(r=String(r)),a&&l?o[o.length-1].$text$+=r:o.push(a?N(null,r):r),l=a)};if(i(s),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(u=>c[u]).join(" "))}}const $=N(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},N=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},ee={},Te=e=>e&&e.$tag$===ee,Le=(e,t)=>e!=null&&!X(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,_e=(e,t,s)=>{const r=g.ce(t,s);return e.dispatchEvent(r),r},M=new WeakMap,je=(e,t,s)=>{let r=L.get(e);ye&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,L.set(e,r)},Oe=(e,t,s)=>{var r;const n=te(t),a=L.get(n);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=M.get(e),o;if(l||M.set(e,l=new Set),!l.has(n)){{o=y.createElement("style"),o.innerHTML=a;const i=(r=g.$nonce$)!=null?r:Z(y);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=J),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Ae=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=S("attachStyles",t.$tagName$);Oe(s.getRootNode(),t),r()},te=(e,t)=>"sc-"+e.$tagName$,W=(e,t,s,r,n,a)=>{if(s!==r&&(t.toLowerCase(),t==="class")){const l=e.classList,o=Y(s),i=Y(r);l.remove(...o.filter($=>$&&!i.includes($))),l.add(...i.filter($=>$&&!o.includes($)))}},Ie=/\s/,Y=e=>e?e.split(Ie):[],ne=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||F,a=t.$attrs$||F;for(const l of G(Object.keys(n)))l in a||W(r,l,n[l],void 0);for(const l of G(Object.keys(a)))W(r,l,n[l],a[l])};function G(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var se,_=(e,t,s,r)=>{const n=t.$children$[s];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=y.createTextNode(n.$text$);else if(l=n.$elm$=y.createElement(n.$tag$),ne(null,n),n.$children$)for(a=0;a<n.$children$.length;++a)o=_(e,n,a),o&&l.appendChild(o);return l["s-hn"]=se,l},re=(e,t,s,r,n,a)=>{let l=e,o;for(;n<=a;++n)r[n]&&(o=_(null,s,n),o&&(r[n].$elm$=o,T(l,o,t)))},le=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const a=n.$elm$;a&&a.remove()}}},He=(e,t,s,r,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],u=t[$],f=r.length-1,d=r[0],m=r[f],v,h;for(;a<=$&&l<=f;)if(c==null)c=t[++a];else if(u==null)u=t[--$];else if(d==null)d=r[++l];else if(m==null)m=r[--f];else if(x(c,d,n))k(c,d,n),c=t[++a],d=r[++l];else if(x(u,m,n))k(u,m,n),u=t[--$],m=r[--f];else if(x(c,m,n))k(c,m,n),T(e,c.$elm$,u.$elm$.nextSibling),c=t[++a],m=r[--f];else if(x(u,d,n))k(u,d,n),T(e,u.$elm$,c.$elm$),u=t[--$],d=r[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(h=t[o],h.$tag$!==d.$tag$?v=_(t&&t[l],s,o):(k(h,d,n),t[o]=void 0,v=h.$elm$),d=r[++l]):(v=_(t&&t[l],s,l),d=r[++l]),v&&T(c.$elm$.parentNode,v,c.$elm$)}a>$?re(e,r[f+1]==null?null:r[f+1].$elm$,s,r,l,f):l>f&&le(t,a,$)},x=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,k=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(ne(e,t),n!==null&&a!==null?He(r,n,t,a,s):a!==null?(e.$text$!==null&&(r.textContent=""),re(r,null,t,a,0,a.length-1)):n!==null&&le(n,0,n.length-1)):e.$text$!==l&&(r.data=l)},T=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),Ne=(e,t,s=!1)=>{const r=e.$hostElement$,n=e.$vnode$||N(null,null),a=Te(t)?t:V(null,null,t);if(se=r.tagName,s&&a.$attrs$)for(const l of Object.keys(a.$attrs$))r.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=r[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=n.$elm$=r,k(n,a,s)},ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},q=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ae(e,e.$ancestorComponent$),be(()=>Ue(e,t))},Ue=(e,t)=>{const s=e.$hostElement$,r=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.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`);let a;return r(),Be(a,()=>qe(e,n,t))},Be=(e,t)=>ze(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),ze=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qe=(e,t,s)=>P(exports,null,function*(){var r;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];s&&Ae(e);const o=S("render",e.$cmpMeta$.$tagName$);Ce(e,t,n,s),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(r=n["s-p"])!=null?r:[],$=()=>De(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ce=(e,t,s,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ne(e,t,r)}catch(n){E(n,e.$hostElement$)}return null},De=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=S("postUpdate",t),n=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,oe(s),r(),e.$onReadyResolve$(s),n||ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&z(()=>q(e,!1)),e.$flags$&=-517},ie=e=>{oe(y.documentElement),z(()=>_e(B,"appload",{detail:{namespace:ue}}))},oe=e=>{var t;return e.classList.add((t=fe.hydratedSelectorName)!=null?t:"hydrated")},Fe=(e,t)=>b(e).$instanceValues$.get(t),Me=(e,t,s,r)=>{const n=b(e);if(!n)throw new Error(`Couldn't find host element for "${r.$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).`);const a=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;s=Le(s,r.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(s),c=s!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,s),i)){if(r.$watchers$&&o&128){const u=r.$watchers$[t];u&&u.map(f=>{try{i[f](s,l,t)}catch(d){E(d,a)}})}(o&18)===2&&q(n,!1)}},$e=(e,t,s)=>{var r,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((r=t.$members$)!=null?r:{});if(l.map(([o,[i]])=>{(i&31||s&2&&i&32)&&Object.defineProperty(a,o,{get(){return Fe(this,o)},set($){Me(this,o,$,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var u;const f=o.get(i);if(this.hasOwnProperty(f))c=this[f],delete this[f];else{if(a.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const d=b(this),m=d==null?void 0:d.$flags$;if(m&&!(m&8)&&m&128&&c!==$){const v=d.$lazyInstance$,h=(u=t.$watchers$)==null?void 0:u[i];h==null||h.forEach(p=>{v[p]!=null&&v[p].call(v,c,$,i)})}return}}this[f]=c===null&&typeof this[f]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{const c=$[1]||i;return o.set(c,i),c})]))}}return e},We=(e,t,s,r)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const i=he(s);if(i&&"then"in i){const c=xe();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,$e(n,s,2),n.isProxied=!0);const $=S("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){E(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=te(s);if(!L.has($)){const c=S("registerStyles",s.$tagName$);je($,i,!!(s.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>q(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Ye=e=>{},Ge=e=>{if(!(g.$flags$&1)){const t=b(e),s=t.$cmpMeta$,r=S("connectedCallback",s.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ye());else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ae(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),We(e,t,s)}r()}},Je=e=>{},Ke=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Je())}}),Qe=(e,t={})=>{var s;const r=S(),n=[],a=t.exclude||[],l=B.customElements,o=y.head,i=o.querySelector("meta[charset]"),$=y.createElement("style"),c=[];let u,f=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let d=!1;if(e.map(m=>{m[1].map(v=>{var h;const p={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};p.$flags$&4&&(d=!0),p.$members$=v[2],p.$watchers$=(h=v[4])!=null?h:{};const w=p.$tagName$,ce=class extends HTMLElement{constructor(j){super(j),this.hasRegisteredEventListeners=!1,j=this,ge(j,p)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),f?c.push(this):g.jmp(()=>Ge(this))}disconnectedCallback(){g.jmp(()=>Ke(this))}componentOnReady(){return b(this).$onReadyPromise$}};p.$lazyBundleId$=m[0],!a.includes(w)&&!l.get(w)&&(n.push(w),l.define(w,$e(ce,p,1)))})}),n.length>0&&(d&&($.textContent+=J),$.textContent+=n.sort()+pe,$.innerHTML.length)){$.setAttribute("data-styles","");const m=(s=g.$nonce$)!=null?s:Z(y);m!=null&&$.setAttribute("nonce",m),o.insertBefore($,i?i.nextSibling:o.firstChild)}f=!1,c.length?c.map(m=>m.connectedCallback()):g.jmp(()=>u=setTimeout(ie,30)),r()};exports.Host=ee;exports.bootstrapLazy=Qe;exports.h=V;exports.promiseResolve=K;exports.registerInstance=ve;
1
+ "use strict";var P=(e,t,s)=>new Promise((r,n)=>{var a=i=>{try{o(s.next(i))}catch($){n($)}},l=i=>{try{o(s.throw(i))}catch($){n($)}},o=i=>i.done?r(i.value):Promise.resolve(i.value).then(a,l);o((s=s.apply(e,t)).next())});const ue="ui-skeleton",fe={hydratedSelectorName:"hydrated"};var de=Object.defineProperty,me=(e,t)=>{for(var s in t)de(e,s,{get:t[s],enumerable:!0})},U=new WeakMap,b=e=>U.get(e),ve=(e,t)=>U.set(t.$lazyInstance$=e,t),ge=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],U.set(e,s)},E=(e,t)=>(0,console.error)(e,t),O=new Map,he=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=O.get(n);if(a)return a[r];{const l=o=>(O.set(n,o),o[r]);switch(n){case"ui-skeleton":return Promise.resolve().then(()=>require("./ui-skeleton-0v-RIzOm.cjs")).then(l,E)}}return import(`./${n}.entry.js`).then(l=>(O.set(n,l),l[r]),E)},L=new Map,pe="{visibility:hidden}.hydrated{visibility:inherit}",J="slot-fb{display:contents}slot-fb[hidden]{display:none}",B=typeof window!="undefined"?window:{},y=B.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},K=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),A=!1,C=[],Q=[],Se=(e,t)=>s=>{e.push(s),A||(A=!0,g.$flags$&4?z(I):g.raf(I))},D=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){E(s)}e.length=0},I=()=>{D(C),D(Q),(A=C.length>0)&&g.raf(I)},z=e=>K().then(e),be=Se(Q),F={},X=e=>(e=typeof e,e==="object"||e==="function");function Z(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var ke={};me(ke,{err:()=>R,map:()=>Ee,ok:()=>H,unwrap:()=>we,unwrapErr:()=>Pe});var H=e=>({isOk:!0,isErr:!1,value:e}),R=e=>({isOk:!1,isErr:!0,value:e});function Ee(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>H(r)):H(s)}if(e.isErr){const s=e.value;return R(s)}throw"should never get here"}var we=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},xe=(e,t)=>()=>{},V=(e,t,...s)=>{let r=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let u=0;u<c.length;u++)r=c[u],Array.isArray(r)?i(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!X(r))&&(r=String(r)),a&&l?o[o.length-1].$text$+=r:o.push(a?N(null,r):r),l=a)};if(i(s),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(u=>c[u]).join(" "))}}const $=N(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},N=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},ee={},Te=e=>e&&e.$tag$===ee,Le=(e,t)=>e!=null&&!X(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,_e=(e,t,s)=>{const r=g.ce(t,s);return e.dispatchEvent(r),r},M=new WeakMap,je=(e,t,s)=>{let r=L.get(e);ye&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,L.set(e,r)},Oe=(e,t,s)=>{var r;const n=te(t),a=L.get(n);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=M.get(e),o;if(l||M.set(e,l=new Set),!l.has(n)){{o=y.createElement("style"),o.innerHTML=a;const i=(r=g.$nonce$)!=null?r:Z(y);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=J),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Ae=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=S("attachStyles",t.$tagName$);Oe(s.getRootNode(),t),r()},te=(e,t)=>"sc-"+e.$tagName$,W=(e,t,s,r,n,a)=>{if(s!==r&&(t.toLowerCase(),t==="class")){const l=e.classList,o=Y(s),i=Y(r);l.remove(...o.filter($=>$&&!i.includes($))),l.add(...i.filter($=>$&&!o.includes($)))}},Ie=/\s/,Y=e=>e?e.split(Ie):[],ne=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||F,a=t.$attrs$||F;for(const l of G(Object.keys(n)))l in a||W(r,l,n[l],void 0);for(const l of G(Object.keys(a)))W(r,l,n[l],a[l])};function G(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var se,_=(e,t,s,r)=>{const n=t.$children$[s];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=y.createTextNode(n.$text$);else if(l=n.$elm$=y.createElement(n.$tag$),ne(null,n),n.$children$)for(a=0;a<n.$children$.length;++a)o=_(e,n,a),o&&l.appendChild(o);return l["s-hn"]=se,l},re=(e,t,s,r,n,a)=>{let l=e,o;for(;n<=a;++n)r[n]&&(o=_(null,s,n),o&&(r[n].$elm$=o,T(l,o,t)))},le=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const a=n.$elm$;a&&a.remove()}}},He=(e,t,s,r,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],u=t[$],f=r.length-1,d=r[0],m=r[f],v,h;for(;a<=$&&l<=f;)if(c==null)c=t[++a];else if(u==null)u=t[--$];else if(d==null)d=r[++l];else if(m==null)m=r[--f];else if(x(c,d,n))k(c,d,n),c=t[++a],d=r[++l];else if(x(u,m,n))k(u,m,n),u=t[--$],m=r[--f];else if(x(c,m,n))k(c,m,n),T(e,c.$elm$,u.$elm$.nextSibling),c=t[++a],m=r[--f];else if(x(u,d,n))k(u,d,n),T(e,u.$elm$,c.$elm$),u=t[--$],d=r[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(h=t[o],h.$tag$!==d.$tag$?v=_(t&&t[l],s,o):(k(h,d,n),t[o]=void 0,v=h.$elm$),d=r[++l]):(v=_(t&&t[l],s,l),d=r[++l]),v&&T(c.$elm$.parentNode,v,c.$elm$)}a>$?re(e,r[f+1]==null?null:r[f+1].$elm$,s,r,l,f):l>f&&le(t,a,$)},x=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,k=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(ne(e,t),n!==null&&a!==null?He(r,n,t,a,s):a!==null?(e.$text$!==null&&(r.textContent=""),re(r,null,t,a,0,a.length-1)):n!==null&&le(n,0,n.length-1)):e.$text$!==l&&(r.data=l)},T=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),Ne=(e,t,s=!1)=>{const r=e.$hostElement$,n=e.$vnode$||N(null,null),a=Te(t)?t:V(null,null,t);if(se=r.tagName,s&&a.$attrs$)for(const l of Object.keys(a.$attrs$))r.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=r[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=n.$elm$=r,k(n,a,s)},ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},q=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ae(e,e.$ancestorComponent$),be(()=>Ue(e,t))},Ue=(e,t)=>{const s=e.$hostElement$,r=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.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`);let a;return r(),Be(a,()=>qe(e,n,t))},Be=(e,t)=>ze(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),ze=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qe=(e,t,s)=>P(exports,null,function*(){var r;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];s&&Ae(e);const o=S("render",e.$cmpMeta$.$tagName$);Ce(e,t,n,s),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(r=n["s-p"])!=null?r:[],$=()=>De(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ce=(e,t,s,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ne(e,t,r)}catch(n){E(n,e.$hostElement$)}return null},De=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=S("postUpdate",t),n=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,oe(s),r(),e.$onReadyResolve$(s),n||ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&z(()=>q(e,!1)),e.$flags$&=-517},ie=e=>{oe(y.documentElement),z(()=>_e(B,"appload",{detail:{namespace:ue}}))},oe=e=>{var t;return e.classList.add((t=fe.hydratedSelectorName)!=null?t:"hydrated")},Fe=(e,t)=>b(e).$instanceValues$.get(t),Me=(e,t,s,r)=>{const n=b(e);if(!n)throw new Error(`Couldn't find host element for "${r.$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).`);const a=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;s=Le(s,r.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(s),c=s!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,s),i)){if(r.$watchers$&&o&128){const u=r.$watchers$[t];u&&u.map(f=>{try{i[f](s,l,t)}catch(d){E(d,a)}})}(o&18)===2&&q(n,!1)}},$e=(e,t,s)=>{var r,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((r=t.$members$)!=null?r:{});if(l.map(([o,[i]])=>{(i&31||s&2&&i&32)&&Object.defineProperty(a,o,{get(){return Fe(this,o)},set($){Me(this,o,$,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var u;const f=o.get(i);if(this.hasOwnProperty(f))c=this[f],delete this[f];else{if(a.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const d=b(this),m=d==null?void 0:d.$flags$;if(m&&!(m&8)&&m&128&&c!==$){const v=d.$lazyInstance$,h=(u=t.$watchers$)==null?void 0:u[i];h==null||h.forEach(p=>{v[p]!=null&&v[p].call(v,c,$,i)})}return}}this[f]=c===null&&typeof this[f]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{const c=$[1]||i;return o.set(c,i),c})]))}}return e},We=(e,t,s,r)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const i=he(s);if(i&&"then"in i){const c=xe();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,$e(n,s,2),n.isProxied=!0);const $=S("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){E(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=te(s);if(!L.has($)){const c=S("registerStyles",s.$tagName$);je($,i,!!(s.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>q(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Ye=e=>{},Ge=e=>{if(!(g.$flags$&1)){const t=b(e),s=t.$cmpMeta$,r=S("connectedCallback",s.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ye());else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ae(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),We(e,t,s)}r()}},Je=e=>{},Ke=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Je())}}),Qe=(e,t={})=>{var s;const r=S(),n=[],a=t.exclude||[],l=B.customElements,o=y.head,i=o.querySelector("meta[charset]"),$=y.createElement("style"),c=[];let u,f=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let d=!1;if(e.map(m=>{m[1].map(v=>{var h;const p={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};p.$flags$&4&&(d=!0),p.$members$=v[2],p.$watchers$=(h=v[4])!=null?h:{};const w=p.$tagName$,ce=class extends HTMLElement{constructor(j){super(j),this.hasRegisteredEventListeners=!1,j=this,ge(j,p)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),f?c.push(this):g.jmp(()=>Ge(this))}disconnectedCallback(){g.jmp(()=>Ke(this))}componentOnReady(){return b(this).$onReadyPromise$}};p.$lazyBundleId$=m[0],!a.includes(w)&&!l.get(w)&&(n.push(w),l.define(w,$e(ce,p,1)))})}),n.length>0&&(d&&($.textContent+=J),$.textContent+=n.sort()+pe,$.innerHTML.length)){$.setAttribute("data-styles","");const m=(s=g.$nonce$)!=null?s:Z(y);m!=null&&$.setAttribute("nonce",m),o.insertBefore($,i?i.nextSibling:o.firstChild)}f=!1,c.length?c.map(m=>m.connectedCallback()):g.jmp(()=>u=setTimeout(ie,30)),r()};exports.Host=ee;exports.bootstrapLazy=Qe;exports.h=V;exports.promiseResolve=K;exports.registerInstance=ve;
@@ -42,7 +42,7 @@ var ce = Object.defineProperty, ue = (e, t) => {
42
42
  case "ui-skeleton":
43
43
  return import(
44
44
  /* webpackMode: "lazy" */
45
- "./ui-skeleton-C8koemPS.js"
45
+ "./ui-skeleton-BMBuBPkw.js"
46
46
  ).then(l, E);
47
47
  }
48
48
  }
@@ -26,7 +26,7 @@ var $e = Object.defineProperty, ce = (e, t) => {
26
26
  case "ui-skeleton":
27
27
  return import(
28
28
  /* webpackMode: "lazy" */
29
- "./ui-skeleton-Cb-Iz3dC.js"
29
+ "./ui-skeleton-B_k9eAqb.js"
30
30
  ).then(l, E);
31
31
  }
32
32
  }
@@ -1 +1 @@
1
- "use strict";var c=(r,t,o)=>new Promise((l,s)=>{var m=e=>{try{n(o.next(e))}catch(i){s(i)}},d=e=>{try{n(o.throw(e))}catch(i){s(i)}},n=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);n((o=o.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-b2193545-BcwULm-K.cjs"),p=require("./app-globals-0f993ce5-sCt45RkC.cjs"),g=require("./ui-skeleton-ea659b95-8xls9UKV.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-B_ESS51i.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};f().then(r=>c(exports,null,function*(){return yield p.globalScripts(),u.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));exports.ui_skeleton=g.UiSkeleton;
1
+ "use strict";var c=(r,t,o)=>new Promise((l,s)=>{var m=e=>{try{n(o.next(e))}catch(i){s(i)}},d=e=>{try{n(o.throw(e))}catch(i){s(i)}},n=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);n((o=o.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-b2193545-B4acI8yX.cjs"),p=require("./app-globals-0f993ce5-sCt45RkC.cjs"),g=require("./ui-skeleton-6d1c12ae-Dw-GTPdq.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-0v-RIzOm.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};f().then(r=>c(exports,null,function*(){return yield p.globalScripts(),u.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));exports.ui_skeleton=g.UiSkeleton;
@@ -1,4 +1,4 @@
1
- import { r as o, h as t, H as i } from "./index-b2193545-BlEoeZZL.js";
1
+ import { r as o, h as t, H as i } from "./index-b2193545-BlySYRo4.js";
2
2
  const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
3
3
  constructor(e) {
4
4
  o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
@@ -138,7 +138,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
138
138
  default:
139
139
  e = "";
140
140
  }
141
- return t(i, { key: "58f7f9acd15f0f96b8b6f47f6bea81d49a3857c5" }, t("style", { key: "c72ac31d1c55fd5d18ec334629db45977a0f6124" }, e), this.handleStructure(this.structure));
141
+ return t(i, { key: "0641e666452d2172c26ed238d236c2ca3db9f8ed" }, t("style", { key: "285fb8210d32aff7f99005627fdecf36f66e82a4" }, e), this.handleStructure(this.structure));
142
142
  }
143
143
  static get watchers() {
144
144
  return {
@@ -1,4 +1,4 @@
1
- import { r as o, h as t, H as i } from "./index-b2193545-BJzf08Qh.js";
1
+ import { r as o, h as t, H as i } from "./index-b2193545-BSIUbPIo.js";
2
2
  const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
3
3
  constructor(e) {
4
4
  o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
@@ -138,7 +138,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
138
138
  default:
139
139
  e = "";
140
140
  }
141
- return t(i, { key: "58f7f9acd15f0f96b8b6f47f6bea81d49a3857c5" }, t("style", { key: "c72ac31d1c55fd5d18ec334629db45977a0f6124" }, e), this.handleStructure(this.structure));
141
+ return t(i, { key: "0641e666452d2172c26ed238d236c2ca3db9f8ed" }, t("style", { key: "285fb8210d32aff7f99005627fdecf36f66e82a4" }, e), this.handleStructure(this.structure));
142
142
  }
143
143
  static get watchers() {
144
144
  return {
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("./index-b2193545-BcwULm-K.cjs"),i=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",n=i,o=class{constructor(e){t.registerInstance(this,e),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,r){r!==e&&this.handleStructure(e)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Image "+(this.animation?"Skeleton":"")}))}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,r)=>t.h("div",{key:r,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
1
+ "use strict";const t=require("./index-b2193545-B4acI8yX.cjs"),i=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}",n=i,o=class{constructor(e){t.registerInstance(this,e),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,r){r!==e&&this.handleStructure(e)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Image "+(this.animation?"Skeleton":"")}))}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,r)=>t.h("div",{key:r,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
2
2
  :host {
3
3
  --emw-skeleton-logo-width: ${this.width};
4
4
  --emw-skeleton-logo-height: ${this.height};
@@ -70,4 +70,4 @@
70
70
  --emw-skeleton-primary-color: ${this.primaryColor};
71
71
  --emw-skeleton-secondary-color: ${this.secondaryColor};
72
72
  }
73
- `;break;default:e=""}return t.h(t.Host,{key:"58f7f9acd15f0f96b8b6f47f6bea81d49a3857c5"},t.h("style",{key:"c72ac31d1c55fd5d18ec334629db45977a0f6124"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};o.style=n;exports.UiSkeleton=o;
73
+ `;break;default:e=""}return t.h(t.Host,{key:"0641e666452d2172c26ed238d236c2ca3db9f8ed"},t.h("style",{key:"285fb8210d32aff7f99005627fdecf36f66e82a4"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};o.style=n;exports.UiSkeleton=o;
@@ -14,9 +14,9 @@ var n = (o, t, e) => new Promise((m, s) => {
14
14
  }, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(l, u);
15
15
  a((e = e.apply(o, t)).next());
16
16
  });
17
- import { b as p, p as c } from "./index-b2193545-BJzf08Qh.js";
17
+ import { b as p, p as c } from "./index-b2193545-BSIUbPIo.js";
18
18
  import { g } from "./app-globals-0f993ce5-D-kw1sls.js";
19
- import { U as R } from "./ui-skeleton-ea659b95-CGzZMsW7.js";
19
+ import { U as R } from "./ui-skeleton-6d1c12ae-Daz9lPGM.js";
20
20
  var h = () => {
21
21
  const o = import.meta.url, t = {};
22
22
  return o !== "" && (t.resourcesUrl = new URL(".", o).href), c(t);
@@ -1,6 +1,6 @@
1
- import { b as t, p as e } from "./index-b2193545-BlEoeZZL.js";
1
+ import { b as t, p as e } from "./index-b2193545-BlySYRo4.js";
2
2
  import { g as a } from "./app-globals-0f993ce5-D-kw1sls.js";
3
- import { U as u } from "./ui-skeleton-ea659b95-BbvMCw6x.js";
3
+ import { U as u } from "./ui-skeleton-6d1c12ae-CvJwVf9k.js";
4
4
  var i = () => {
5
5
  const r = import.meta.url, o = {};
6
6
  return r !== "" && (o.resourcesUrl = new URL(".", r).href), e(o);