@everymatrix/casino-tournaments-customize-page-controller 1.80.11 → 1.80.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/components/{CasinoTournamentsCustomizePageController-dp8yKOyB.js → CasinoTournamentsCustomizePageController-Bbvw_gAm.js} +2 -2
  2. package/components/{CasinoTournamentsCustomizePageController-DEZbQNHQ.js → CasinoTournamentsCustomizePageController-CgUVC1wf.js} +2 -2
  3. package/components/{CasinoTournamentsCustomizePageController-BUW5PvRO.cjs → CasinoTournamentsCustomizePageController-Dz0gxzXQ.cjs} +1 -1
  4. package/es2015/casino-tournaments-customize-page-controller.cjs +1 -1
  5. package/es2015/casino-tournaments-customize-page-controller.js +1 -1
  6. package/esnext/casino-tournaments-customize-page-controller.js +1 -1
  7. package/package.json +1 -1
  8. package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-B6BYeRne.js} +1 -1
  9. package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-BOr4KAqq.js} +1 -1
  10. package/stencil/{index-97d17652-BhLhk_xz.cjs → index-97d17652-zTl06Vn9.cjs} +1 -1
  11. package/stencil/{index-b2193545-BS7xFIk4.js → index-b2193545-BpG2toSK.js} +1 -1
  12. package/stencil/{index-b2193545-BTdVi7--.cjs → index-b2193545-DfeVnolx.cjs} +1 -1
  13. package/stencil/{index-b2193545-rfNAj6ri.js → index-b2193545-DuA2iMSm.js} +1 -1
  14. package/stencil/{ui-image-CXqPvnQ2.js → ui-image-Cs_BBOYl.js} +1 -1
  15. package/stencil/{ui-image-Bk8cIvcH.cjs → ui-image-DUHLTRXs.cjs} +1 -1
  16. package/stencil/{ui-image-DgbODkuX.js → ui-image-O0NdjWCu.js} +1 -1
  17. package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
  18. package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
  19. package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
  20. package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-CmVho0dS.js} +13 -13
  21. package/stencil/ui-image_2-CyqE6j_W.cjs +55 -0
  22. package/stencil/{ui-skeleton-ae35c6f2-CcPx4a2P.js → ui-image_2-Daq38JGa.js} +14 -12
  23. package/stencil/{ui-skeleton-B0BB970e.cjs → ui-skeleton-B0E7XBJC.cjs} +1 -1
  24. package/stencil/{ui-skeleton-D8L-WY77.js → ui-skeleton-Yn79cPkz.js} +2 -2
  25. package/stencil/{ui-skeleton-ae35c6f2-BH4D8vHD.js → ui-skeleton-ed169f8f-B-SERL0D.js} +12 -12
  26. package/stencil/ui-skeleton-ed169f8f-BRUG1h6n.cjs +55 -0
  27. package/stencil/{ui-image_2-Bm97-wkj.js → ui-skeleton-ed169f8f-UdVwF_E9.js} +12 -14
  28. package/stencil/{ui-skeleton-DSebcnN1.js → ui-skeleton-i9jZ615T.js} +2 -2
  29. package/stencil/ui-image_2-DdFjzzNO.cjs +0 -55
  30. package/stencil/ui-skeleton-ae35c6f2-DDiK5zGt.cjs +0 -55
@@ -14,7 +14,7 @@ var n = (r, e, a) => new Promise((m, s) => {
14
14
  }, i = (t) => t.done ? m(t.value) : Promise.resolve(t.value).then(g, u);
15
15
  i((a = a.apply(r, e)).next());
16
16
  });
17
- import { b as c, p as l } from "./index-97d17652-CCFHkzJw.js";
17
+ import { b as c, p as l } from "./index-97d17652-BOr4KAqq.js";
18
18
  import { g as d } from "./app-globals-0f993ce5-B6nNHmA4.js";
19
19
  var h = () => {
20
20
  const r = import.meta.url, e = {};
@@ -1,4 +1,4 @@
1
- import { r, h as s, H as n, g as a } from "./index-97d17652--F7PvMq9.js";
1
+ import { r, h as s, H as n, g as a } from "./index-97d17652-B6BYeRne.js";
2
2
  const d = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = d, h = class {
3
3
  constructor(e) {
4
4
  r(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
@@ -1,4 +1,4 @@
1
- import { r, h as s, H as n, g as a } from "./index-97d17652-CCFHkzJw.js";
1
+ import { r, h as s, H as n, g as a } from "./index-97d17652-BOr4KAqq.js";
2
2
  const d = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = d, h = class {
3
3
  constructor(e) {
4
4
  r(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
@@ -1 +1 @@
1
- "use strict";const i=require("./index-97d17652-BhLhk_xz.cjs"),r=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",d=r,n=class{constructor(e){i.registerInstance(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver(e=>{e.forEach(t=>{if(t.isIntersecting){const s=t.target.__uxComponent;s&&(s.shouldLoad=!0,s.handleSrc()),window.EMUxObserver.unobserve(t.target)}})},{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return i.h(i.Host,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&i.h("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return i.getElement(this)}static get watchers(){return{src:["handleSrc"]}}};n.style=d;exports.UiImage=n;
1
+ "use strict";const i=require("./index-97d17652-zTl06Vn9.cjs"),r=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",d=r,n=class{constructor(e){i.registerInstance(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver(e=>{e.forEach(t=>{if(t.isIntersecting){const s=t.target.__uxComponent;s&&(s.shouldLoad=!0,s.handleSrc()),window.EMUxObserver.unobserve(t.target)}})},{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return i.h(i.Host,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&i.h("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return i.getElement(this)}static get watchers(){return{src:["handleSrc"]}}};n.style=d;exports.UiImage=n;
@@ -1,8 +1,8 @@
1
- import { U as m } from "./ui-image-b7b48fe5-D6iig_uN.js";
2
- import { r, h as t, H as n } from "./index-97d17652-CCFHkzJw.js";
3
- const s = ":host{display:block}.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, 10px)}.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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
1
+ import { U as m } from "./ui-image-b7b48fe5-HA45CrsG.js";
2
+ import { r as n, h as t, H as r } from "./index-97d17652-BOr4KAqq.js";
3
+ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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, 10px)}.SkeletonCircle{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%}.SkeletonText{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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", l = s, a = class {
4
4
  constructor(e) {
5
- r(this, e), this.stylingValue = {
5
+ n(this, e), this.stylingValue = {
6
6
  width: this.handleStylingProps(this.width),
7
7
  height: this.handleStylingProps(this.height),
8
8
  borderRadius: this.handleStylingProps(this.borderRadius),
@@ -47,22 +47,22 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
47
47
  }
48
48
  }
49
49
  renderLogo() {
50
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
50
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonLogo " + (this.animation ? "Skeleton" : "") }));
51
51
  }
52
52
  renderImage() {
53
- return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
53
+ return t("div", { class: "SkeletonImage " + (this.animation ? "Skeleton" : "") });
54
54
  }
55
55
  renderTitle() {
56
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
56
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonTitle " + (this.animation ? "Skeleton" : "") }));
57
57
  }
58
58
  renderText() {
59
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
59
+ return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "SkeletonText " + (this.animation ? "Skeleton" : "") })));
60
60
  }
61
61
  renderRectangle() {
62
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
62
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonRectangle " + (this.animation ? "Skeleton" : "") }));
63
63
  }
64
64
  renderCircle() {
65
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
65
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonCircle " + (this.animation ? "Skeleton" : "") }));
66
66
  }
67
67
  render() {
68
68
  let e = "";
@@ -142,7 +142,7 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
142
142
  default:
143
143
  e = "";
144
144
  }
145
- return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
145
+ return t(r, { key: "c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8" }, t("style", { key: "9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19" }, e), this.handleStructure(this.structure));
146
146
  }
147
147
  static get watchers() {
148
148
  return {
@@ -150,8 +150,8 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
150
150
  };
151
151
  }
152
152
  };
153
- l.style = a;
153
+ a.style = l;
154
154
  export {
155
155
  m as ui_image,
156
- l as ui_skeleton
156
+ a as ui_skeleton
157
157
  };
@@ -0,0 +1,55 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-b7b48fe5-MC0x5ZQd.cjs"),t=require("./index-97d17652-zTl06Vn9.cjs"),s=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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, 10px)}.SkeletonCircle{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%}.SkeletonText{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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",l=s,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}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:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
2
+ :host {
3
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
4
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
5
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
6
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
7
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
8
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
9
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
10
+ }
11
+ `;break;case"image":e=`
12
+ :host {
13
+ --emw-skeleton-image-width: ${this.stylingValue.width};
14
+ --emw-skeleton-image-height: ${this.stylingValue.height};
15
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
16
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
17
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
18
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
19
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
20
+ }
21
+ `;break;case"title":e=`
22
+ :host {
23
+ --emw-skeleton-title-width: ${this.stylingValue.width};
24
+ --emw-skeleton-title-height: ${this.stylingValue.height};
25
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
26
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
27
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
28
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
29
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
30
+ }
31
+ `;break;case"text":e=`
32
+ :host {
33
+ --emw-skeleton-text-width: ${this.stylingValue.width};
34
+ --emw-skeleton-text-height: ${this.stylingValue.height};
35
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
36
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
37
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
38
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
39
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
40
+ }
41
+ `;break;case"rectangle":e=`
42
+ :host {
43
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
44
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
45
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
46
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
47
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
48
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
49
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
50
+ }
51
+ `;break;case"circle":e=`
52
+ :host {
53
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
54
+ }
55
+ `;break;default:e=""}return t.h(t.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},t.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};n.style=l;exports.ui_image=r.UiImage;exports.ui_skeleton=n;
@@ -1,7 +1,8 @@
1
- import { r, h as t, H as n } from "./index-b2193545-rfNAj6ri.js";
2
- const s = ":host{display:block}.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, 10px)}.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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
1
+ import { U as m } from "./ui-image-b7b48fe5-BKRtoUuG.js";
2
+ import { r as n, h as t, H as r } from "./index-97d17652-B6BYeRne.js";
3
+ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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, 10px)}.SkeletonCircle{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%}.SkeletonText{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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", l = s, a = class {
3
4
  constructor(e) {
4
- r(this, e), this.stylingValue = {
5
+ n(this, e), this.stylingValue = {
5
6
  width: this.handleStylingProps(this.width),
6
7
  height: this.handleStylingProps(this.height),
7
8
  borderRadius: this.handleStylingProps(this.borderRadius),
@@ -46,22 +47,22 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
46
47
  }
47
48
  }
48
49
  renderLogo() {
49
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
50
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonLogo " + (this.animation ? "Skeleton" : "") }));
50
51
  }
51
52
  renderImage() {
52
- return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
53
+ return t("div", { class: "SkeletonImage " + (this.animation ? "Skeleton" : "") });
53
54
  }
54
55
  renderTitle() {
55
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
56
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonTitle " + (this.animation ? "Skeleton" : "") }));
56
57
  }
57
58
  renderText() {
58
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
59
+ return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "SkeletonText " + (this.animation ? "Skeleton" : "") })));
59
60
  }
60
61
  renderRectangle() {
61
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
62
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonRectangle " + (this.animation ? "Skeleton" : "") }));
62
63
  }
63
64
  renderCircle() {
64
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
65
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonCircle " + (this.animation ? "Skeleton" : "") }));
65
66
  }
66
67
  render() {
67
68
  let e = "";
@@ -141,7 +142,7 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
141
142
  default:
142
143
  e = "";
143
144
  }
144
- return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
145
+ return t(r, { key: "c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8" }, t("style", { key: "9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19" }, e), this.handleStructure(this.structure));
145
146
  }
146
147
  static get watchers() {
147
148
  return {
@@ -149,7 +150,8 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
149
150
  };
150
151
  }
151
152
  };
152
- l.style = a;
153
+ a.style = l;
153
154
  export {
154
- l as U
155
+ m as ui_image,
156
+ a as ui_skeleton
155
157
  };
@@ -1 +1 @@
1
- "use strict";var u=(t,r,n)=>new Promise((l,s)=>{var m=e=>{try{i(n.next(e))}catch(o){s(o)}},d=e=>{try{i(n.throw(e))}catch(o){s(o)}},i=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);i((n=n.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-b2193545-BTdVi7--.cjs"),p=require("./app-globals-0f993ce5-DgOnOgxM.cjs"),g=require("./ui-skeleton-ae35c6f2-DDiK5zGt.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-B0BB970e.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),c.promiseResolve(r)};f().then(t=>u(exports,null,function*(){return yield p.globalScripts$1(),c.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],t)}));exports.ui_skeleton=g.UiSkeleton;
1
+ "use strict";var u=(t,r,n)=>new Promise((l,s)=>{var m=e=>{try{i(n.next(e))}catch(o){s(o)}},d=e=>{try{i(n.throw(e))}catch(o){s(o)}},i=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);i((n=n.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-b2193545-DfeVnolx.cjs"),p=require("./app-globals-0f993ce5-DgOnOgxM.cjs"),g=require("./ui-skeleton-ed169f8f-BRUG1h6n.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-B0E7XBJC.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),c.promiseResolve(r)};f().then(t=>u(exports,null,function*(){return yield p.globalScripts$1(),c.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],t)}));exports.ui_skeleton=g.UiSkeleton;
@@ -14,9 +14,9 @@ var n = (t, e, o) => new Promise((m, s) => {
14
14
  }, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(u, g);
15
15
  a((o = o.apply(t, e)).next());
16
16
  });
17
- import { b as p, p as l } from "./index-b2193545-rfNAj6ri.js";
17
+ import { b as p, p as l } from "./index-b2193545-DuA2iMSm.js";
18
18
  import { a as h } from "./app-globals-0f993ce5-B6nNHmA4.js";
19
- import { U as k } from "./ui-skeleton-ae35c6f2-CcPx4a2P.js";
19
+ import { U as k } from "./ui-skeleton-ed169f8f-UdVwF_E9.js";
20
20
  var c = () => {
21
21
  const t = import.meta.url, e = {};
22
22
  return t !== "" && (e.resourcesUrl = new URL(".", t).href), l(e);
@@ -1,7 +1,7 @@
1
- import { r, h as t, H as n } from "./index-b2193545-BS7xFIk4.js";
2
- const s = ":host{display:block}.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, 10px)}.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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
1
+ import { r as n, h as t, H as r } from "./index-b2193545-BpG2toSK.js";
2
+ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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, 10px)}.SkeletonCircle{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%}.SkeletonText{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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", l = s, a = class {
3
3
  constructor(e) {
4
- r(this, e), this.stylingValue = {
4
+ n(this, e), this.stylingValue = {
5
5
  width: this.handleStylingProps(this.width),
6
6
  height: this.handleStylingProps(this.height),
7
7
  borderRadius: this.handleStylingProps(this.borderRadius),
@@ -46,22 +46,22 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
46
46
  }
47
47
  }
48
48
  renderLogo() {
49
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
49
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonLogo " + (this.animation ? "Skeleton" : "") }));
50
50
  }
51
51
  renderImage() {
52
- return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
52
+ return t("div", { class: "SkeletonImage " + (this.animation ? "Skeleton" : "") });
53
53
  }
54
54
  renderTitle() {
55
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
55
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonTitle " + (this.animation ? "Skeleton" : "") }));
56
56
  }
57
57
  renderText() {
58
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
58
+ return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "SkeletonText " + (this.animation ? "Skeleton" : "") })));
59
59
  }
60
60
  renderRectangle() {
61
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
61
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonRectangle " + (this.animation ? "Skeleton" : "") }));
62
62
  }
63
63
  renderCircle() {
64
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
64
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonCircle " + (this.animation ? "Skeleton" : "") }));
65
65
  }
66
66
  render() {
67
67
  let e = "";
@@ -141,7 +141,7 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
141
141
  default:
142
142
  e = "";
143
143
  }
144
- return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
144
+ return t(r, { key: "c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8" }, t("style", { key: "9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19" }, e), this.handleStructure(this.structure));
145
145
  }
146
146
  static get watchers() {
147
147
  return {
@@ -149,7 +149,7 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
149
149
  };
150
150
  }
151
151
  };
152
- l.style = a;
152
+ a.style = l;
153
153
  export {
154
- l as U
154
+ a as U
155
155
  };
@@ -0,0 +1,55 @@
1
+ "use strict";const t=require("./index-b2193545-DfeVnolx.cjs"),r=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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, 10px)}.SkeletonCircle{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%}.SkeletonText{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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",s=r,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}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:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
2
+ :host {
3
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
4
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
5
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
6
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
7
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
8
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
9
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
10
+ }
11
+ `;break;case"image":e=`
12
+ :host {
13
+ --emw-skeleton-image-width: ${this.stylingValue.width};
14
+ --emw-skeleton-image-height: ${this.stylingValue.height};
15
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
16
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
17
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
18
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
19
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
20
+ }
21
+ `;break;case"title":e=`
22
+ :host {
23
+ --emw-skeleton-title-width: ${this.stylingValue.width};
24
+ --emw-skeleton-title-height: ${this.stylingValue.height};
25
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
26
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
27
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
28
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
29
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
30
+ }
31
+ `;break;case"text":e=`
32
+ :host {
33
+ --emw-skeleton-text-width: ${this.stylingValue.width};
34
+ --emw-skeleton-text-height: ${this.stylingValue.height};
35
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
36
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
37
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
38
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
39
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
40
+ }
41
+ `;break;case"rectangle":e=`
42
+ :host {
43
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
44
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
45
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
46
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
47
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
48
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
49
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
50
+ }
51
+ `;break;case"circle":e=`
52
+ :host {
53
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
54
+ }
55
+ `;break;default:e=""}return t.h(t.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},t.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};n.style=s;exports.UiSkeleton=n;
@@ -1,8 +1,7 @@
1
- import { U as m } from "./ui-image-b7b48fe5-ByRuJtdE.js";
2
- import { r, h as t, H as n } from "./index-97d17652--F7PvMq9.js";
3
- const s = ":host{display:block}.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, 10px)}.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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
1
+ import { r as n, h as t, H as r } from "./index-b2193545-DuA2iMSm.js";
2
+ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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, 10px)}.SkeletonCircle{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%}.SkeletonText{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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", l = s, a = class {
4
3
  constructor(e) {
5
- r(this, e), this.stylingValue = {
4
+ n(this, e), this.stylingValue = {
6
5
  width: this.handleStylingProps(this.width),
7
6
  height: this.handleStylingProps(this.height),
8
7
  borderRadius: this.handleStylingProps(this.borderRadius),
@@ -47,22 +46,22 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
47
46
  }
48
47
  }
49
48
  renderLogo() {
50
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
49
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonLogo " + (this.animation ? "Skeleton" : "") }));
51
50
  }
52
51
  renderImage() {
53
- return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
52
+ return t("div", { class: "SkeletonImage " + (this.animation ? "Skeleton" : "") });
54
53
  }
55
54
  renderTitle() {
56
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
55
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonTitle " + (this.animation ? "Skeleton" : "") }));
57
56
  }
58
57
  renderText() {
59
- return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
58
+ return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "SkeletonText " + (this.animation ? "Skeleton" : "") })));
60
59
  }
61
60
  renderRectangle() {
62
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
61
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonRectangle " + (this.animation ? "Skeleton" : "") }));
63
62
  }
64
63
  renderCircle() {
65
- return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
64
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonCircle " + (this.animation ? "Skeleton" : "") }));
66
65
  }
67
66
  render() {
68
67
  let e = "";
@@ -142,7 +141,7 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
142
141
  default:
143
142
  e = "";
144
143
  }
145
- return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
144
+ return t(r, { key: "c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8" }, t("style", { key: "9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19" }, e), this.handleStructure(this.structure));
146
145
  }
147
146
  static get watchers() {
148
147
  return {
@@ -150,8 +149,7 @@ const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
150
149
  };
151
150
  }
152
151
  };
153
- l.style = a;
152
+ a.style = l;
154
153
  export {
155
- m as ui_image,
156
- l as ui_skeleton
154
+ a as U
157
155
  };
@@ -1,6 +1,6 @@
1
- import { b as e, p as o } from "./index-b2193545-BS7xFIk4.js";
1
+ import { b as e, p as o } from "./index-b2193545-BpG2toSK.js";
2
2
  import { a } from "./app-globals-0f993ce5-B6nNHmA4.js";
3
- import { U as g } from "./ui-skeleton-ae35c6f2-BH4D8vHD.js";
3
+ import { U as g } from "./ui-skeleton-ed169f8f-B-SERL0D.js";
4
4
  var i = () => {
5
5
  const r = import.meta.url, t = {};
6
6
  return r !== "" && (t.resourcesUrl = new URL(".", r).href), o(t);
@@ -1,55 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-b7b48fe5-DG83WzAo.cjs"),t=require("./index-97d17652-BhLhk_xz.cjs"),s=":host{display:block}.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, 10px)}.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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",a=s,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}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:"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,i)=>t.h("div",{key:i,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
- :host {
3
- --emw-skeleton-logo-width: ${this.stylingValue.width};
4
- --emw-skeleton-logo-height: ${this.stylingValue.height};
5
- --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
6
- --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
7
- --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
8
- --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
9
- --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
10
- }
11
- `;break;case"image":e=`
12
- :host {
13
- --emw-skeleton-image-width: ${this.stylingValue.width};
14
- --emw-skeleton-image-height: ${this.stylingValue.height};
15
- --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
16
- --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
17
- --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
18
- --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
19
- --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
20
- }
21
- `;break;case"title":e=`
22
- :host {
23
- --emw-skeleton-title-width: ${this.stylingValue.width};
24
- --emw-skeleton-title-height: ${this.stylingValue.height};
25
- --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
26
- --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
27
- --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
28
- --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
29
- --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
30
- }
31
- `;break;case"text":e=`
32
- :host {
33
- --emw-skeleton-text-width: ${this.stylingValue.width};
34
- --emw-skeleton-text-height: ${this.stylingValue.height};
35
- --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
36
- --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
37
- --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
38
- --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
39
- --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
40
- }
41
- `;break;case"rectangle":e=`
42
- :host {
43
- --emw-skeleton-rectangle-width: ${this.stylingValue.width};
44
- --emw-skeleton-rectangle-height: ${this.stylingValue.height};
45
- --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
46
- --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
47
- --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
48
- --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
49
- --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
50
- }
51
- `;break;case"circle":e=`
52
- :host {
53
- --emw-skeleton-circle-size: ${this.stylingValue.size};
54
- }
55
- `;break;default:e=""}return t.h(t.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};n.style=a;exports.ui_image=r.UiImage;exports.ui_skeleton=n;
@@ -1,55 +0,0 @@
1
- "use strict";const t=require("./index-b2193545-BTdVi7--.cjs"),r=":host{display:block}.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, 10px)}.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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",s=r,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}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:"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,i)=>t.h("div",{key:i,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
- :host {
3
- --emw-skeleton-logo-width: ${this.stylingValue.width};
4
- --emw-skeleton-logo-height: ${this.stylingValue.height};
5
- --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
6
- --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
7
- --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
8
- --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
9
- --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
10
- }
11
- `;break;case"image":e=`
12
- :host {
13
- --emw-skeleton-image-width: ${this.stylingValue.width};
14
- --emw-skeleton-image-height: ${this.stylingValue.height};
15
- --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
16
- --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
17
- --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
18
- --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
19
- --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
20
- }
21
- `;break;case"title":e=`
22
- :host {
23
- --emw-skeleton-title-width: ${this.stylingValue.width};
24
- --emw-skeleton-title-height: ${this.stylingValue.height};
25
- --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
26
- --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
27
- --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
28
- --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
29
- --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
30
- }
31
- `;break;case"text":e=`
32
- :host {
33
- --emw-skeleton-text-width: ${this.stylingValue.width};
34
- --emw-skeleton-text-height: ${this.stylingValue.height};
35
- --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
36
- --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
37
- --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
38
- --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
39
- --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
40
- }
41
- `;break;case"rectangle":e=`
42
- :host {
43
- --emw-skeleton-rectangle-width: ${this.stylingValue.width};
44
- --emw-skeleton-rectangle-height: ${this.stylingValue.height};
45
- --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
46
- --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
47
- --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
48
- --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
49
- --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
50
- }
51
- `;break;case"circle":e=`
52
- :host {
53
- --emw-skeleton-circle-size: ${this.stylingValue.size};
54
- }
55
- `;break;default:e=""}return t.h(t.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};n.style=s;exports.UiSkeleton=n;