@everymatrix/player-account-gaming-limits-wrapper-2 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.
- package/components/{PlayerAccountGamingLimitsPage2Gm16-9LpYhrk4.js → PlayerAccountGamingLimitsPage2Gm16-BKtHKujz.js} +660 -654
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DWwjWM6E.cjs → PlayerAccountGamingLimitsPage2Gm16-Dh43a-T6.cjs} +6 -6
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Bw5v8PN0.js → PlayerAccountGamingLimitsPage2Gm16-rJafONGP.js} +386 -380
- package/components/{PlayerAccountGamingLimitsWrapper2-eoaBr7U3.js → PlayerAccountGamingLimitsWrapper2-BKaKm10v.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-BrbA9yFf.js → PlayerAccountGamingLimitsWrapper2-Bq5JG6Fu.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-kennz1it.cjs → PlayerAccountGamingLimitsWrapper2-Sogtqwry.cjs} +1 -1
- package/es2015/player-account-gaming-limits-wrapper-2.cjs +1 -1
- package/es2015/player-account-gaming-limits-wrapper-2.js +1 -1
- package/esnext/player-account-gaming-limits-wrapper-2.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-b2193545-BcwULm-K.cjs → index-b2193545-B4acI8yX.cjs} +1 -1
- package/stencil/{index-b2193545-BJzf08Qh.js → index-b2193545-BSIUbPIo.js} +1 -1
- package/stencil/{index-b2193545-BlEoeZZL.js → index-b2193545-BlySYRo4.js} +1 -1
- package/stencil/{ui-skeleton-B_ESS51i.cjs → ui-skeleton-0v-RIzOm.cjs} +1 -1
- package/stencil/{ui-skeleton-ea659b95-BbvMCw6x.js → ui-skeleton-6d1c12ae-CvJwVf9k.js} +2 -2
- package/stencil/{ui-skeleton-ea659b95-CGzZMsW7.js → ui-skeleton-6d1c12ae-Daz9lPGM.js} +2 -2
- package/stencil/{ui-skeleton-ea659b95-8xls9UKV.cjs → ui-skeleton-6d1c12ae-Dw-GTPdq.cjs} +2 -2
- package/stencil/{ui-skeleton-C8koemPS.js → ui-skeleton-BMBuBPkw.js} +2 -2
- package/stencil/{ui-skeleton-Cb-Iz3dC.js → ui-skeleton-B_k9eAqb.js} +2 -2
|
@@ -54,7 +54,7 @@ if (typeof window < "u") {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16-
|
|
57
|
+
customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16-rJafONGP.js").then(({ default: e }) => {
|
|
58
58
|
!customElements.get("player-account-gaming-limits-page-2-gm16") && customElements.define(
|
|
59
59
|
"player-account-gaming-limits-page-2-gm16",
|
|
60
60
|
e.element
|
|
@@ -54,7 +54,7 @@ if (typeof window != "undefined") {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16-
|
|
57
|
+
customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16-BKtHKujz.js").then(({ default: e }) => {
|
|
58
58
|
!customElements.get("player-account-gaming-limits-page-2-gm16") && customElements.define(
|
|
59
59
|
"player-account-gaming-limits-page-2-gm16",
|
|
60
60
|
e.element
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsHistory2-aUqlydFS.cjs");function se({withLocale:i,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function le(i,t){e.addMessages(i,t)}const H={en:{title:"Limits"},"zh-hk":{title:"Limits"},fr:{title:"Limits"},ro:{title:"Limits"},es:{title:"Limits"},pt:{title:"Limits"},hr:{title:"Ograničenja"},"pt-br":{title:"Limites"},"es-mx":{title:"Límites"},tr:{title:"Sınırlar"},"en-us":{title:"Limits"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsPage2Gm16-DWwjWM6E.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-page-2-gm16")&&customElements.define("player-account-gaming-limits-page-2-gm16",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsHistory2-aUqlydFS.cjs")).then(t=>t.PlayerAccountGamingLimitsHistory2_ce).then(({default:t})=>{!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",t.element)})}function oe(i){e.append_styles(i,"svelte-r6lh3z",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GamingLimitsWrapper{padding:50px 50px 30px 50px}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.LimitsWrapper{display:flex;flex-direction:column}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-300, #58586B);justify-content:center;background:var(--emw--color-white, #FFFFFF);box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}h2{margin:20px 0px}.PlayerAccountGamingLmitsWrapper2{margin-bottom:20px}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));margin:0}')}function I(i,t,n){const s=i.slice();return s[46]=t[n],s[48]=n,s}const ae=i=>({}),q=i=>({});function U(i,t,n){const s=i.slice();return s[49]=t[n],s[48]=n,s}function re(i){let t,n,s,l,m,c,d,a,g,f,r=i[24]("title")+"",u,_,p;return{c(){t=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("defs"),l=e.svg_element("style"),m=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));}"),c=e.svg_element("g"),d=e.svg_element("g"),a=e.svg_element("path"),g=e.space(),f=e.element("h2"),u=e.text(r),e.attr(a,"class","aaa"),e.attr(a,"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(a,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(c,"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(f,"class","GamingLimitsTitleMobile"),e.attr(t,"class","MenuReturnButton"),e.attr(t,"part","MenuReturnButton")},m(k,b){e.insert(k,t,b),e.append(t,n),e.append(n,s),e.append(s,l),e.append(l,m),e.append(n,c),e.append(c,d),e.append(d,a),e.append(t,g),e.append(t,f),e.append(f,u),_||(p=e.listen(t,"click",i[35]),_=!0)},p(k,b){b[0]&16777216&&r!==(r=k[24]("title")+"")&&e.set_data(u,r)},d(k){k&&e.detach(t),_=!1,p()}}}function me(i){let t,n,s,l,m,c=i[25].length>1&&ue(i),d=e.ensure_array_like(i[25]),a=[];for(let r=0;r<d.length;r+=1)a[r]=Z(I(i,d,r));const g=r=>e.transition_out(a[r],1,1,()=>{a[r]=null});let f=i[6]==="true"&&J(i);return{c(){c&&c.c(),t=e.space(),n=e.element("div");for(let r=0;r<a.length;r+=1)a[r].c();s=e.space(),f&&f.c(),l=e.empty(),e.attr(n,"class","PlayerAccountGamingLmitsWrapper2")},m(r,u){c&&c.m(r,u),e.insert(r,t,u),e.insert(r,n,u);for(let _=0;_<a.length;_+=1)a[_]&&a[_].m(n,null);i[38](n),e.insert(r,s,u),f&&f.m(r,u),e.insert(r,l,u),m=!0},p(r,u){if(r[25].length>1&&c.p(r,u),u[0]&14745023|u[1]&4){d=e.ensure_array_like(r[25]);let _;for(_=0;_<d.length;_+=1){const p=I(r,d,_);a[_]?(a[_].p(p,u),e.transition_in(a[_],1)):(a[_]=Z(p),a[_].c(),e.transition_in(a[_],1),a[_].m(n,null))}for(e.group_outros(),_=d.length;_<a.length;_+=1)g(_);e.check_outros()}r[6]==="true"?f?f.p(r,u):(f=J(r),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null)},i(r){if(!m){for(let u=0;u<d.length;u+=1)e.transition_in(a[u]);m=!0}},o(r){a=a.filter(Boolean);for(let u=0;u<a.length;u+=1)e.transition_out(a[u]);m=!1},d(r){r&&(e.detach(t),e.detach(n),e.detach(s),e.detach(l)),c&&c.d(r),e.destroy_each(a,r),i[38](null),f&&f.d(r)}}}function ce(i){return{c:e.noop,m:e.noop,p:e.noop,i:e.noop,o:e.noop,d:e.noop}}function ue(i){let t,n=e.ensure_array_like(i[25]),s=[];for(let l=0;l<n.length;l+=1)s[l]=V(U(i,n,l));return{c(){t=e.element("div");for(let l=0;l<s.length;l+=1)s[l].c();e.attr(t,"class","TabsContainer")},m(l,m){e.insert(l,t,m);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(t,null);i[37](t)},p(l,m){if(m[0]&168296448){n=e.ensure_array_like(l[25]);let c;for(c=0;c<n.length;c+=1){const d=U(l,n,c);s[c]?s[c].p(d,m):(s[c]=V(d),s[c].c(),s[c].m(t,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(s,l),i[37](null)}}}function V(i){var d;let t,n=((d=i[19][i[48]])!=null?d:i[49])+"",s,l,m;function c(){return i[36](i[48])}return{c(){t=e.element("div"),s=e.text(n),e.attr(t,"class","LimitsTab")},m(a,g){e.insert(a,t,g),e.append(t,s),l||(m=e.listen(t,"click",c),l=!0)},p(a,g){var f;i=a,g[0]&524288&&n!==(n=((f=i[19][i[48]])!=null?f:i[49])+"")&&e.set_data(s,n)},d(a){a&&e.detach(t),l=!1,m()}}}function _e(i){let t,n,s;return{c(){t=e.element("player-account-gaming-limits-page-2-gm16"),e.set_custom_element_data(t,"class","hidden selected"),e.set_custom_element_data(t,"lang",i[0]),e.set_custom_element_data(t,"currency",i[4]),e.set_custom_element_data(t,"amountsconfig",n=i[21][i[48]]),e.set_custom_element_data(t,"periodsconfig",s=i[22][i[48]]),e.set_custom_element_data(t,"limittabindex",i[48]+1),e.set_custom_element_data(t,"userid",i[1]),e.set_custom_element_data(t,"deletelimit",i[8]),e.set_custom_element_data(t,"enablecompliancetext",i[7]),e.set_custom_element_data(t,"session",i[2]),e.set_custom_element_data(t,"endpoint",i[3]),e.set_custom_element_data(t,"apiversion",i[5]),e.set_custom_element_data(t,"clientstyling",i[12]),e.set_custom_element_data(t,"clientstylingurl",i[13]),e.set_custom_element_data(t,"mbsource",i[15]),e.set_custom_element_data(t,"translationurl",i[14]),e.set_custom_element_data(t,"customcurrencysymbols",i[10]),e.set_custom_element_data(t,"limitformat",i[11])},m(l,m){e.insert(l,t,m)},p(l,m){m[0]&1&&e.set_custom_element_data(t,"lang",l[0]),m[0]&16&&e.set_custom_element_data(t,"currency",l[4]),m[0]&2097152&&n!==(n=l[21][l[48]])&&e.set_custom_element_data(t,"amountsconfig",n),m[0]&4194304&&s!==(s=l[22][l[48]])&&e.set_custom_element_data(t,"periodsconfig",s),m[0]&2&&e.set_custom_element_data(t,"userid",l[1]),m[0]&256&&e.set_custom_element_data(t,"deletelimit",l[8]),m[0]&128&&e.set_custom_element_data(t,"enablecompliancetext",l[7]),m[0]&4&&e.set_custom_element_data(t,"session",l[2]),m[0]&8&&e.set_custom_element_data(t,"endpoint",l[3]),m[0]&32&&e.set_custom_element_data(t,"apiversion",l[5]),m[0]&4096&&e.set_custom_element_data(t,"clientstyling",l[12]),m[0]&8192&&e.set_custom_element_data(t,"clientstylingurl",l[13]),m[0]&32768&&e.set_custom_element_data(t,"mbsource",l[15]),m[0]&16384&&e.set_custom_element_data(t,"translationurl",l[14]),m[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",l[10]),m[0]&2048&&e.set_custom_element_data(t,"limitformat",l[11])},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function fe(i){let t;const n=i[34].customTabContent,s=e.create_slot(n,i,i[33],q);return{c(){s&&s.c()},m(l,m){s&&s.m(l,m),t=!0},p(l,m){s&&s.p&&(!t||m[1]&4)&&e.update_slot_base(s,n,l,l[33],t?e.get_slot_changes(n,l[33],m,ae):e.get_all_dirty_from_scope(l[33]),q)},i(l){t||(e.transition_in(s,l),t=!0)},o(l){e.transition_out(s,l),t=!1},d(l){s&&s.d(l)}}}function Z(i){let t,n,s,l;const m=[fe,_e],c=[];function d(a,g){return a[23]===a[48]?0:1}return t=d(i),n=c[t]=m[t](i),{c(){n.c(),s=e.empty()},m(a,g){c[t].m(a,g),e.insert(a,s,g),l=!0},p(a,g){let f=t;t=d(a),t===f?c[t].p(a,g):(e.group_outros(),e.transition_out(c[f],1,1,()=>{c[f]=null}),e.check_outros(),n=c[t],n?n.p(a,g):(n=c[t]=m[t](a),n.c()),e.transition_in(n,1),n.m(s.parentNode,s))},i(a){l||(e.transition_in(n),l=!0)},o(a){e.transition_out(n),l=!1},d(a){a&&e.detach(s),c[t].d(a)}}}function J(i){let t;return{c(){t=e.element("player-account-gaming-limits-history-2"),e.set_custom_element_data(t,"lang",i[0]),e.set_custom_element_data(t,"userid",i[1]),e.set_custom_element_data(t,"session",i[2]),e.set_custom_element_data(t,"endpoint",i[3]),e.set_custom_element_data(t,"apiversion",i[5]),e.set_custom_element_data(t,"numberofentries",i[9]),e.set_custom_element_data(t,"clientstyling",i[12]),e.set_custom_element_data(t,"clientstylingurl",i[13]),e.set_custom_element_data(t,"mbsource",i[15]),e.set_custom_element_data(t,"translationurl",i[14]),e.set_custom_element_data(t,"customcurrencysymbols",i[10]),e.set_custom_element_data(t,"limitformat",i[11])},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&1&&e.set_custom_element_data(t,"lang",n[0]),s[0]&2&&e.set_custom_element_data(t,"userid",n[1]),s[0]&4&&e.set_custom_element_data(t,"session",n[2]),s[0]&8&&e.set_custom_element_data(t,"endpoint",n[3]),s[0]&32&&e.set_custom_element_data(t,"apiversion",n[5]),s[0]&512&&e.set_custom_element_data(t,"numberofentries",n[9]),s[0]&4096&&e.set_custom_element_data(t,"clientstyling",n[12]),s[0]&8192&&e.set_custom_element_data(t,"clientstylingurl",n[13]),s[0]&32768&&e.set_custom_element_data(t,"mbsource",n[15]),s[0]&16384&&e.set_custom_element_data(t,"translationurl",n[14]),s[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",n[10]),s[0]&2048&&e.set_custom_element_data(t,"limitformat",n[11])},d(n){n&&e.detach(t)}}}function de(i){let t,n,s,l,m,c,d,a=i[24]("title")+"",g,f,r,u,_,p=i[26]&&re(i);const k=[ce,me],b=[];function C(h,w){return h[16]?0:1}return r=C(i),u=b[r]=k[r](i),{c(){t=e.element("meta"),n=e.space(),s=e.element("div"),l=e.element("div"),m=e.element("div"),p&&p.c(),c=e.space(),d=e.element("h2"),g=e.text(a),f=e.space(),u.c(),e.attr(t,"name","viewport"),e.attr(t,"content","width=device-width, initial-scale=1"),e.attr(d,"class","GamingLimitsTitle "+(i[26]?"GamingLimitsTitleNone":"")),e.attr(m,"class","TitleSection"),e.attr(l,"class","GamingLimitsWrapper "+(i[26]?"GamingLimitsWrapperMobile":""))},m(h,w){e.append(document.head,t),e.insert(h,n,w),e.insert(h,s,w),e.append(s,l),e.append(l,m),p&&p.m(m,null),e.append(m,c),e.append(m,d),e.append(d,g),e.append(l,f),b[r].m(l,null),i[39](s),_=!0},p(h,w){h[26]&&p.p(h,w),(!_||w[0]&16777216)&&a!==(a=h[24]("title")+"")&&e.set_data(g,a);let M=r;r=C(h),r===M?b[r].p(h,w):(e.group_outros(),e.transition_out(b[M],1,1,()=>{b[M]=null}),e.check_outros(),u=b[r],u?u.p(h,w):(u=b[r]=k[r](h),u.c()),e.transition_in(u,1),u.m(l,null))},i(h){_||(e.transition_in(u),_=!0)},o(h){e.transition_out(u),_=!1},d(h){h&&(e.detach(n),e.detach(s)),e.detach(t),p&&p.d(),b[r].d(),i[39](null)}}}function ge(i,t,n){let s;e.component_subscribe(i,e.$format,o=>n(24,s=o));let{$$slots:l={},$$scope:m}=t,{lang:c=""}=t,{userid:d=""}=t,{session:a=""}=t,{endpoint:g=""}=t,{currency:f=""}=t,{apiversion:r=""}=t,{tablabels:u=""}=t,{historyenabled:_="true"}=t,{enablecompliancetext:p="false"}=t,{deletelimit:k=""}=t,{limitsamount:b=""}=t,{limitsperiods:C=""}=t,{numberofentries:h=""}=t,{customcurrencysymbols:w=""}=t,{limitformat:M=""}=t,{clientstyling:E=""}=t,{clientstylingurl:G=""}=t,{translationurl:z=""}=t,{mbsource:S}=t,{customcontentontab:A=""}=t;se({withLocale:"en",translations:{}});let D=!0,L,W=[],B,T,v,P,N,Q=window.navigator.userAgent,R=e.getDevice(Q)!=="PC",F;Object.keys(H).forEach(o=>{le(o,H[o])});const X=(o,y)=>{if(n(21,P=o.replace(/\s/g,"").split("|")),n(22,N=y.replace(/\s/g,"").split("|")),P.length===0)throw new Error("Please provide a full limits configuration.");if(P.length!==N.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.")},Y=()=>{X(b,C),b.split("|").forEach(y=>{W.includes(y)||W.push(y)}),n(19,B=u.split(",").map(y=>y.trim())),n(16,D=!1)},x=()=>{n(23,F=A?Number(A):-1)},j=o=>{if(T.children.length>0)for(let y=0;y<T.children.length;y++)o===y?(T.children[y].classList.remove("hidden"),v==null||v.children[y].classList.add("selected")):(T.children[y].classList.add("hidden"),v==null||v.children[y].classList.remove("selected"))},O=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)};e.onMount(()=>()=>{n(18,T=null),n(20,v=null)});const $=()=>O(),ee=o=>j(o);function te(o){e.binding_callbacks[o?"unshift":"push"](()=>{v=o,n(20,v)})}function ne(o){e.binding_callbacks[o?"unshift":"push"](()=>{T=o,n(18,T)})}function ie(o){e.binding_callbacks[o?"unshift":"push"](()=>{L=o,n(17,L)})}return i.$$set=o=>{"lang"in o&&n(0,c=o.lang),"userid"in o&&n(1,d=o.userid),"session"in o&&n(2,a=o.session),"endpoint"in o&&n(3,g=o.endpoint),"currency"in o&&n(4,f=o.currency),"apiversion"in o&&n(5,r=o.apiversion),"tablabels"in o&&n(29,u=o.tablabels),"historyenabled"in o&&n(6,_=o.historyenabled),"enablecompliancetext"in o&&n(7,p=o.enablecompliancetext),"deletelimit"in o&&n(8,k=o.deletelimit),"limitsamount"in o&&n(30,b=o.limitsamount),"limitsperiods"in o&&n(31,C=o.limitsperiods),"numberofentries"in o&&n(9,h=o.numberofentries),"customcurrencysymbols"in o&&n(10,w=o.customcurrencysymbols),"limitformat"in o&&n(11,M=o.limitformat),"clientstyling"in o&&n(12,E=o.clientstyling),"clientstylingurl"in o&&n(13,G=o.clientstylingurl),"translationurl"in o&&n(14,z=o.translationurl),"mbsource"in o&&n(15,S=o.mbsource),"customcontentontab"in o&&n(32,A=o.customcontentontab),"$$scope"in o&&n(33,m=o.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&536870959&&d&&a&&g&&u&&c&&r&&Y(),i.$$.dirty[1]&2&&A&&x(),i.$$.dirty[0]&327680&&T&&!D&&j(0),i.$$.dirty[0]&135168&&E&&L&&e.setClientStyling(L,E),i.$$.dirty[0]&139264&&G&&L&&e.setClientStylingURL(L,G),i.$$.dirty[0]&163840&&S&&L&&e.setStreamStyling(L,`${S}.Style`)},[c,d,a,g,f,r,_,p,k,h,w,M,E,G,z,S,D,L,T,B,v,P,N,F,s,W,R,j,O,u,b,C,A,m,l,$,ee,te,ne,ie]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ge,de,e.safe_not_equal,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:29,historyenabled:6,enablecompliancetext:7,deletelimit:8,limitsamount:30,limitsperiods:31,numberofentries:9,customcurrencysymbols:10,limitformat:11,clientstyling:12,clientstylingurl:13,translationurl:14,mbsource:15,customcontentontab:32},oe,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[2]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[3]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get currency(){return this.$$.ctx[4]}set currency(t){this.$$set({currency:t}),e.flush()}get apiversion(){return this.$$.ctx[5]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get tablabels(){return this.$$.ctx[29]}set tablabels(t){this.$$set({tablabels:t}),e.flush()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(t){this.$$set({historyenabled:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[7]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[8]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get limitsamount(){return this.$$.ctx[30]}set limitsamount(t){this.$$set({limitsamount:t}),e.flush()}get limitsperiods(){return this.$$.ctx[31]}set limitsperiods(t){this.$$set({limitsperiods:t}),e.flush()}get numberofentries(){return this.$$.ctx[9]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[10]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[11]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get customcontentontab(){return this.$$.ctx[32]}set customcontentontab(t){this.$$set({customcontentontab:t}),e.flush()}}e.create_custom_element(K,{lang:{},userid:{},session:{},endpoint:{},currency:{},apiversion:{},tablabels:{},historyenabled:{},enablecompliancetext:{},deletelimit:{},limitsamount:{},limitsperiods:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},customcontentontab:{}},["customTabContent"],[],!0);exports.default=K;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsHistory2-aUqlydFS.cjs");function se({withLocale:i,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function le(i,t){e.addMessages(i,t)}const H={en:{title:"Limits"},"zh-hk":{title:"Limits"},fr:{title:"Limits"},ro:{title:"Limits"},es:{title:"Limits"},pt:{title:"Limits"},hr:{title:"Ograničenja"},"pt-br":{title:"Limites"},"es-mx":{title:"Límites"},tr:{title:"Sınırlar"},"en-us":{title:"Limits"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsPage2Gm16-Dh43a-T6.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-page-2-gm16")&&customElements.define("player-account-gaming-limits-page-2-gm16",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsHistory2-aUqlydFS.cjs")).then(t=>t.PlayerAccountGamingLimitsHistory2_ce).then(({default:t})=>{!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",t.element)})}function oe(i){e.append_styles(i,"svelte-r6lh3z",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GamingLimitsWrapper{padding:50px 50px 30px 50px}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.LimitsWrapper{display:flex;flex-direction:column}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-300, #58586B);justify-content:center;background:var(--emw--color-white, #FFFFFF);box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}h2{margin:20px 0px}.PlayerAccountGamingLmitsWrapper2{margin-bottom:20px}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));margin:0}')}function I(i,t,n){const s=i.slice();return s[46]=t[n],s[48]=n,s}const ae=i=>({}),q=i=>({});function U(i,t,n){const s=i.slice();return s[49]=t[n],s[48]=n,s}function re(i){let t,n,s,l,m,c,d,a,g,f,r=i[24]("title")+"",u,_,p;return{c(){t=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("defs"),l=e.svg_element("style"),m=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));}"),c=e.svg_element("g"),d=e.svg_element("g"),a=e.svg_element("path"),g=e.space(),f=e.element("h2"),u=e.text(r),e.attr(a,"class","aaa"),e.attr(a,"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(a,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(c,"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(f,"class","GamingLimitsTitleMobile"),e.attr(t,"class","MenuReturnButton"),e.attr(t,"part","MenuReturnButton")},m(k,b){e.insert(k,t,b),e.append(t,n),e.append(n,s),e.append(s,l),e.append(l,m),e.append(n,c),e.append(c,d),e.append(d,a),e.append(t,g),e.append(t,f),e.append(f,u),_||(p=e.listen(t,"click",i[35]),_=!0)},p(k,b){b[0]&16777216&&r!==(r=k[24]("title")+"")&&e.set_data(u,r)},d(k){k&&e.detach(t),_=!1,p()}}}function me(i){let t,n,s,l,m,c=i[25].length>1&&ue(i),d=e.ensure_array_like(i[25]),a=[];for(let r=0;r<d.length;r+=1)a[r]=Z(I(i,d,r));const g=r=>e.transition_out(a[r],1,1,()=>{a[r]=null});let f=i[6]==="true"&&J(i);return{c(){c&&c.c(),t=e.space(),n=e.element("div");for(let r=0;r<a.length;r+=1)a[r].c();s=e.space(),f&&f.c(),l=e.empty(),e.attr(n,"class","PlayerAccountGamingLmitsWrapper2")},m(r,u){c&&c.m(r,u),e.insert(r,t,u),e.insert(r,n,u);for(let _=0;_<a.length;_+=1)a[_]&&a[_].m(n,null);i[38](n),e.insert(r,s,u),f&&f.m(r,u),e.insert(r,l,u),m=!0},p(r,u){if(r[25].length>1&&c.p(r,u),u[0]&14745023|u[1]&4){d=e.ensure_array_like(r[25]);let _;for(_=0;_<d.length;_+=1){const p=I(r,d,_);a[_]?(a[_].p(p,u),e.transition_in(a[_],1)):(a[_]=Z(p),a[_].c(),e.transition_in(a[_],1),a[_].m(n,null))}for(e.group_outros(),_=d.length;_<a.length;_+=1)g(_);e.check_outros()}r[6]==="true"?f?f.p(r,u):(f=J(r),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null)},i(r){if(!m){for(let u=0;u<d.length;u+=1)e.transition_in(a[u]);m=!0}},o(r){a=a.filter(Boolean);for(let u=0;u<a.length;u+=1)e.transition_out(a[u]);m=!1},d(r){r&&(e.detach(t),e.detach(n),e.detach(s),e.detach(l)),c&&c.d(r),e.destroy_each(a,r),i[38](null),f&&f.d(r)}}}function ce(i){return{c:e.noop,m:e.noop,p:e.noop,i:e.noop,o:e.noop,d:e.noop}}function ue(i){let t,n=e.ensure_array_like(i[25]),s=[];for(let l=0;l<n.length;l+=1)s[l]=V(U(i,n,l));return{c(){t=e.element("div");for(let l=0;l<s.length;l+=1)s[l].c();e.attr(t,"class","TabsContainer")},m(l,m){e.insert(l,t,m);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(t,null);i[37](t)},p(l,m){if(m[0]&168296448){n=e.ensure_array_like(l[25]);let c;for(c=0;c<n.length;c+=1){const d=U(l,n,c);s[c]?s[c].p(d,m):(s[c]=V(d),s[c].c(),s[c].m(t,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(s,l),i[37](null)}}}function V(i){var d;let t,n=((d=i[19][i[48]])!=null?d:i[49])+"",s,l,m;function c(){return i[36](i[48])}return{c(){t=e.element("div"),s=e.text(n),e.attr(t,"class","LimitsTab")},m(a,g){e.insert(a,t,g),e.append(t,s),l||(m=e.listen(t,"click",c),l=!0)},p(a,g){var f;i=a,g[0]&524288&&n!==(n=((f=i[19][i[48]])!=null?f:i[49])+"")&&e.set_data(s,n)},d(a){a&&e.detach(t),l=!1,m()}}}function _e(i){let t,n,s;return{c(){t=e.element("player-account-gaming-limits-page-2-gm16"),e.set_custom_element_data(t,"class","hidden selected"),e.set_custom_element_data(t,"lang",i[0]),e.set_custom_element_data(t,"currency",i[4]),e.set_custom_element_data(t,"amountsconfig",n=i[21][i[48]]),e.set_custom_element_data(t,"periodsconfig",s=i[22][i[48]]),e.set_custom_element_data(t,"limittabindex",i[48]+1),e.set_custom_element_data(t,"userid",i[1]),e.set_custom_element_data(t,"deletelimit",i[8]),e.set_custom_element_data(t,"enablecompliancetext",i[7]),e.set_custom_element_data(t,"session",i[2]),e.set_custom_element_data(t,"endpoint",i[3]),e.set_custom_element_data(t,"apiversion",i[5]),e.set_custom_element_data(t,"clientstyling",i[12]),e.set_custom_element_data(t,"clientstylingurl",i[13]),e.set_custom_element_data(t,"mbsource",i[15]),e.set_custom_element_data(t,"translationurl",i[14]),e.set_custom_element_data(t,"customcurrencysymbols",i[10]),e.set_custom_element_data(t,"limitformat",i[11])},m(l,m){e.insert(l,t,m)},p(l,m){m[0]&1&&e.set_custom_element_data(t,"lang",l[0]),m[0]&16&&e.set_custom_element_data(t,"currency",l[4]),m[0]&2097152&&n!==(n=l[21][l[48]])&&e.set_custom_element_data(t,"amountsconfig",n),m[0]&4194304&&s!==(s=l[22][l[48]])&&e.set_custom_element_data(t,"periodsconfig",s),m[0]&2&&e.set_custom_element_data(t,"userid",l[1]),m[0]&256&&e.set_custom_element_data(t,"deletelimit",l[8]),m[0]&128&&e.set_custom_element_data(t,"enablecompliancetext",l[7]),m[0]&4&&e.set_custom_element_data(t,"session",l[2]),m[0]&8&&e.set_custom_element_data(t,"endpoint",l[3]),m[0]&32&&e.set_custom_element_data(t,"apiversion",l[5]),m[0]&4096&&e.set_custom_element_data(t,"clientstyling",l[12]),m[0]&8192&&e.set_custom_element_data(t,"clientstylingurl",l[13]),m[0]&32768&&e.set_custom_element_data(t,"mbsource",l[15]),m[0]&16384&&e.set_custom_element_data(t,"translationurl",l[14]),m[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",l[10]),m[0]&2048&&e.set_custom_element_data(t,"limitformat",l[11])},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function fe(i){let t;const n=i[34].customTabContent,s=e.create_slot(n,i,i[33],q);return{c(){s&&s.c()},m(l,m){s&&s.m(l,m),t=!0},p(l,m){s&&s.p&&(!t||m[1]&4)&&e.update_slot_base(s,n,l,l[33],t?e.get_slot_changes(n,l[33],m,ae):e.get_all_dirty_from_scope(l[33]),q)},i(l){t||(e.transition_in(s,l),t=!0)},o(l){e.transition_out(s,l),t=!1},d(l){s&&s.d(l)}}}function Z(i){let t,n,s,l;const m=[fe,_e],c=[];function d(a,g){return a[23]===a[48]?0:1}return t=d(i),n=c[t]=m[t](i),{c(){n.c(),s=e.empty()},m(a,g){c[t].m(a,g),e.insert(a,s,g),l=!0},p(a,g){let f=t;t=d(a),t===f?c[t].p(a,g):(e.group_outros(),e.transition_out(c[f],1,1,()=>{c[f]=null}),e.check_outros(),n=c[t],n?n.p(a,g):(n=c[t]=m[t](a),n.c()),e.transition_in(n,1),n.m(s.parentNode,s))},i(a){l||(e.transition_in(n),l=!0)},o(a){e.transition_out(n),l=!1},d(a){a&&e.detach(s),c[t].d(a)}}}function J(i){let t;return{c(){t=e.element("player-account-gaming-limits-history-2"),e.set_custom_element_data(t,"lang",i[0]),e.set_custom_element_data(t,"userid",i[1]),e.set_custom_element_data(t,"session",i[2]),e.set_custom_element_data(t,"endpoint",i[3]),e.set_custom_element_data(t,"apiversion",i[5]),e.set_custom_element_data(t,"numberofentries",i[9]),e.set_custom_element_data(t,"clientstyling",i[12]),e.set_custom_element_data(t,"clientstylingurl",i[13]),e.set_custom_element_data(t,"mbsource",i[15]),e.set_custom_element_data(t,"translationurl",i[14]),e.set_custom_element_data(t,"customcurrencysymbols",i[10]),e.set_custom_element_data(t,"limitformat",i[11])},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&1&&e.set_custom_element_data(t,"lang",n[0]),s[0]&2&&e.set_custom_element_data(t,"userid",n[1]),s[0]&4&&e.set_custom_element_data(t,"session",n[2]),s[0]&8&&e.set_custom_element_data(t,"endpoint",n[3]),s[0]&32&&e.set_custom_element_data(t,"apiversion",n[5]),s[0]&512&&e.set_custom_element_data(t,"numberofentries",n[9]),s[0]&4096&&e.set_custom_element_data(t,"clientstyling",n[12]),s[0]&8192&&e.set_custom_element_data(t,"clientstylingurl",n[13]),s[0]&32768&&e.set_custom_element_data(t,"mbsource",n[15]),s[0]&16384&&e.set_custom_element_data(t,"translationurl",n[14]),s[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",n[10]),s[0]&2048&&e.set_custom_element_data(t,"limitformat",n[11])},d(n){n&&e.detach(t)}}}function de(i){let t,n,s,l,m,c,d,a=i[24]("title")+"",g,f,r,u,_,p=i[26]&&re(i);const k=[ce,me],b=[];function C(h,w){return h[16]?0:1}return r=C(i),u=b[r]=k[r](i),{c(){t=e.element("meta"),n=e.space(),s=e.element("div"),l=e.element("div"),m=e.element("div"),p&&p.c(),c=e.space(),d=e.element("h2"),g=e.text(a),f=e.space(),u.c(),e.attr(t,"name","viewport"),e.attr(t,"content","width=device-width, initial-scale=1"),e.attr(d,"class","GamingLimitsTitle "+(i[26]?"GamingLimitsTitleNone":"")),e.attr(m,"class","TitleSection"),e.attr(l,"class","GamingLimitsWrapper "+(i[26]?"GamingLimitsWrapperMobile":""))},m(h,w){e.append(document.head,t),e.insert(h,n,w),e.insert(h,s,w),e.append(s,l),e.append(l,m),p&&p.m(m,null),e.append(m,c),e.append(m,d),e.append(d,g),e.append(l,f),b[r].m(l,null),i[39](s),_=!0},p(h,w){h[26]&&p.p(h,w),(!_||w[0]&16777216)&&a!==(a=h[24]("title")+"")&&e.set_data(g,a);let M=r;r=C(h),r===M?b[r].p(h,w):(e.group_outros(),e.transition_out(b[M],1,1,()=>{b[M]=null}),e.check_outros(),u=b[r],u?u.p(h,w):(u=b[r]=k[r](h),u.c()),e.transition_in(u,1),u.m(l,null))},i(h){_||(e.transition_in(u),_=!0)},o(h){e.transition_out(u),_=!1},d(h){h&&(e.detach(n),e.detach(s)),e.detach(t),p&&p.d(),b[r].d(),i[39](null)}}}function ge(i,t,n){let s;e.component_subscribe(i,e.$format,o=>n(24,s=o));let{$$slots:l={},$$scope:m}=t,{lang:c=""}=t,{userid:d=""}=t,{session:a=""}=t,{endpoint:g=""}=t,{currency:f=""}=t,{apiversion:r=""}=t,{tablabels:u=""}=t,{historyenabled:_="true"}=t,{enablecompliancetext:p="false"}=t,{deletelimit:k=""}=t,{limitsamount:b=""}=t,{limitsperiods:C=""}=t,{numberofentries:h=""}=t,{customcurrencysymbols:w=""}=t,{limitformat:M=""}=t,{clientstyling:E=""}=t,{clientstylingurl:G=""}=t,{translationurl:z=""}=t,{mbsource:S}=t,{customcontentontab:A=""}=t;se({withLocale:"en",translations:{}});let D=!0,L,W=[],B,T,v,P,N,Q=window.navigator.userAgent,R=e.getDevice(Q)!=="PC",F;Object.keys(H).forEach(o=>{le(o,H[o])});const X=(o,y)=>{if(n(21,P=o.replace(/\s/g,"").split("|")),n(22,N=y.replace(/\s/g,"").split("|")),P.length===0)throw new Error("Please provide a full limits configuration.");if(P.length!==N.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.")},Y=()=>{X(b,C),b.split("|").forEach(y=>{W.includes(y)||W.push(y)}),n(19,B=u.split(",").map(y=>y.trim())),n(16,D=!1)},x=()=>{n(23,F=A?Number(A):-1)},j=o=>{if(T.children.length>0)for(let y=0;y<T.children.length;y++)o===y?(T.children[y].classList.remove("hidden"),v==null||v.children[y].classList.add("selected")):(T.children[y].classList.add("hidden"),v==null||v.children[y].classList.remove("selected"))},O=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)};e.onMount(()=>()=>{n(18,T=null),n(20,v=null)});const $=()=>O(),ee=o=>j(o);function te(o){e.binding_callbacks[o?"unshift":"push"](()=>{v=o,n(20,v)})}function ne(o){e.binding_callbacks[o?"unshift":"push"](()=>{T=o,n(18,T)})}function ie(o){e.binding_callbacks[o?"unshift":"push"](()=>{L=o,n(17,L)})}return i.$$set=o=>{"lang"in o&&n(0,c=o.lang),"userid"in o&&n(1,d=o.userid),"session"in o&&n(2,a=o.session),"endpoint"in o&&n(3,g=o.endpoint),"currency"in o&&n(4,f=o.currency),"apiversion"in o&&n(5,r=o.apiversion),"tablabels"in o&&n(29,u=o.tablabels),"historyenabled"in o&&n(6,_=o.historyenabled),"enablecompliancetext"in o&&n(7,p=o.enablecompliancetext),"deletelimit"in o&&n(8,k=o.deletelimit),"limitsamount"in o&&n(30,b=o.limitsamount),"limitsperiods"in o&&n(31,C=o.limitsperiods),"numberofentries"in o&&n(9,h=o.numberofentries),"customcurrencysymbols"in o&&n(10,w=o.customcurrencysymbols),"limitformat"in o&&n(11,M=o.limitformat),"clientstyling"in o&&n(12,E=o.clientstyling),"clientstylingurl"in o&&n(13,G=o.clientstylingurl),"translationurl"in o&&n(14,z=o.translationurl),"mbsource"in o&&n(15,S=o.mbsource),"customcontentontab"in o&&n(32,A=o.customcontentontab),"$$scope"in o&&n(33,m=o.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&536870959&&d&&a&&g&&u&&c&&r&&Y(),i.$$.dirty[1]&2&&A&&x(),i.$$.dirty[0]&327680&&T&&!D&&j(0),i.$$.dirty[0]&135168&&E&&L&&e.setClientStyling(L,E),i.$$.dirty[0]&139264&&G&&L&&e.setClientStylingURL(L,G),i.$$.dirty[0]&163840&&S&&L&&e.setStreamStyling(L,`${S}.Style`)},[c,d,a,g,f,r,_,p,k,h,w,M,E,G,z,S,D,L,T,B,v,P,N,F,s,W,R,j,O,u,b,C,A,m,l,$,ee,te,ne,ie]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ge,de,e.safe_not_equal,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:29,historyenabled:6,enablecompliancetext:7,deletelimit:8,limitsamount:30,limitsperiods:31,numberofentries:9,customcurrencysymbols:10,limitformat:11,clientstyling:12,clientstylingurl:13,translationurl:14,mbsource:15,customcontentontab:32},oe,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[2]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[3]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get currency(){return this.$$.ctx[4]}set currency(t){this.$$set({currency:t}),e.flush()}get apiversion(){return this.$$.ctx[5]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get tablabels(){return this.$$.ctx[29]}set tablabels(t){this.$$set({tablabels:t}),e.flush()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(t){this.$$set({historyenabled:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[7]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[8]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get limitsamount(){return this.$$.ctx[30]}set limitsamount(t){this.$$set({limitsamount:t}),e.flush()}get limitsperiods(){return this.$$.ctx[31]}set limitsperiods(t){this.$$set({limitsperiods:t}),e.flush()}get numberofentries(){return this.$$.ctx[9]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[10]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[11]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get customcontentontab(){return this.$$.ctx[32]}set customcontentontab(t){this.$$set({customcontentontab:t}),e.flush()}}e.create_custom_element(K,{lang:{},userid:{},session:{},endpoint:{},currency:{},apiversion:{},tablabels:{},historyenabled:{},enablecompliancetext:{},deletelimit:{},limitsamount:{},limitsperiods:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},customcontentontab:{}},["customTabContent"],[],!0);exports.default=K;
|
|
@@ -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/PlayerAccountGamingLimitsWrapper2-
|
|
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/PlayerAccountGamingLimitsWrapper2-Sogtqwry.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-wrapper-2")&&customElements.define("player-account-gaming-limits-wrapper-2",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountGamingLimitsWrapper2-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountGamingLimitsWrapper2-Bq5JG6Fu.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-gaming-limits-wrapper-2") && customElements.define(
|
|
15
15
|
"player-account-gaming-limits-wrapper-2",
|
|
16
16
|
t.element
|
package/package.json
CHANGED
|
@@ -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;
|
|
@@ -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-
|
|
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-
|
|
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: "
|
|
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-
|
|
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: "
|
|
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-
|
|
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:"
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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);
|