lyco 1.3.9 → 1.4.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/dist/index.es.js CHANGED
@@ -228,7 +228,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
228
228
  <div style="flex: 0 0 ${r}; overflow: auto;">${s}</div>
229
229
  <div style="flex: 1 1 auto; overflow: auto;">${c}</div>
230
230
  </div>
231
- `}function ee(e={},a){if(a===void 0)return t=>ee(e,t??[u``]);let o=r(`Swiper`),{gap:s=`8px`,snapType:c=`mandatory`,height:l=`auto`,width:d=`100%`,className:f=i(`Swiper::swiper`)+`-lyco-now-${o}`,direction:p=`x`,scrollBehavior:h=`smooth`,align:g=`start`,showNavigation:_=!0,navigationPosition:v=`inside`,showPagination:y=!0,paginationType:b=`dots`,autoPlay:x=!1,interval:S=3e3,loop:C=!1,touchEnabled:w=!0,mouseWheel:T=!1,onSlideChange:E,on:D}=e,O=f,k=O+`-container`,A=O+`-slide`,j=O+`-navigation`,M=O+`-pagination`,N;N=a?typeof a==`function`?a():a:[];let P=N.length,[F,I]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,P-1));e.value!==n&&(e.value=n,E?.(n))}]})(),L=e=>{let t=typeof document<`u`?document.querySelector(`.${k}`):null;if(!t)return;let n=t.querySelectorAll(`.${A}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;p===`x`?(o=r.offsetLeft-t.offsetLeft,g===`center`?o-=(a.width-i.width)/2:g===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:h})):(o=r.offsetTop-t.offsetTop,g===`center`?o-=(a.height-i.height)/2:g===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:h})),I(e)},R=()=>{let e=F()+1>=P?C?0:F():F()+1;L(e)},z=()=>{let e=F()-1<0?C?P-1:F():F()-1;L(e)},B=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=e.querySelectorAll(`.${A}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(p===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),I(n)},te=e=>{if(!w)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},V=e=>{if(!w)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||p===`x`)&&e.preventDefault()},H=e=>{if(!w)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(p===`x`?a>0?z():R():o>0?z():R()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},U=e=>{T&&(e.preventDefault(),e.deltaY>0?R():z())},W=e=>{if(!x||!e)return;let t,n=()=>{t=setInterval(R,S)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},G=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,B),t.push(()=>e.removeEventListener(`scroll`,B)),w&&(e.addEventListener(`touchstart`,te),e.addEventListener(`touchmove`,V,{passive:!1}),e.addEventListener(`touchend`,H),t.push(()=>e.removeEventListener(`touchstart`,te)),t.push(()=>e.removeEventListener(`touchmove`,V)),t.push(()=>e.removeEventListener(`touchend`,H))),T&&(e.addEventListener(`wheel`,U,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,U)));let n=W(e);return n&&t.push(n),L(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(G,0);let K=u`
231
+ `}function ee(e={},a){if(a===void 0)return t=>ee(e,t??[u``]);let o=r(`Swiper`),{gap:s=`8px`,snapType:c=`mandatory`,height:l=`auto`,width:d=`100%`,className:f=i(`Swiper::swiper`)+`-lyco-now-${o}`,direction:p=`x`,scrollBehavior:h=`smooth`,align:g=`start`,showNavigation:_=!0,navigationPosition:v=`inside`,showPagination:y=!0,paginationType:b=`dots`,autoPlay:x=!1,interval:S=3e3,loop:C=!1,touchEnabled:w=!0,mouseWheel:T=!1,onSlideChange:E,on:D}=e,O=f,k=O+`-container`,A=O+`-slide`,j=O+`-navigation`,M=O+`-pagination`,N;N=a?typeof a==`function`?a():a:[];let P=N.length,[F,I]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,P-1));e.value!==n&&(e.value=n,E?.(n))}]})(),L=e=>{let t=typeof document<`u`?document.querySelector(`.${k}`):null;if(!t)return;let n=t.querySelectorAll(`.${A}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;p===`x`?(o=r.offsetLeft-t.offsetLeft,g===`center`?o-=(a.width-i.width)/2:g===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:h})):(o=r.offsetTop-t.offsetTop,g===`center`?o-=(a.height-i.height)/2:g===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:h})),I(e)},R=()=>{let e=F()+1>=P?C?0:F():F()+1;L(e)},z=()=>{let e=F()-1<0?C?P-1:F():F()-1;L(e)},te=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=e.querySelectorAll(`.${A}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(p===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),I(n)},B=e=>{if(!w)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},V=e=>{if(!w)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||p===`x`)&&e.preventDefault()},H=e=>{if(!w)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(p===`x`?a>0?z():R():o>0?z():R()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},U=e=>{T&&(e.preventDefault(),e.deltaY>0?R():z())},ne=e=>{if(!x||!e)return;let t,n=()=>{t=setInterval(R,S)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},W=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,te),t.push(()=>e.removeEventListener(`scroll`,te)),w&&(e.addEventListener(`touchstart`,B),e.addEventListener(`touchmove`,V,{passive:!1}),e.addEventListener(`touchend`,H),t.push(()=>e.removeEventListener(`touchstart`,B)),t.push(()=>e.removeEventListener(`touchmove`,V)),t.push(()=>e.removeEventListener(`touchend`,H))),T&&(e.addEventListener(`wheel`,U,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,U)));let n=ne(e);return n&&t.push(n),L(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(W,0);let G=u`
232
232
  <div class="${M}">
233
233
  ${Array.from({length:P},(e,t)=>u`
234
234
  <button
@@ -237,7 +237,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
237
237
  ></button>
238
238
  `)}
239
239
  </div>
240
- `,ne=u`
240
+ `,K=u`
241
241
  <div class="${M} fraction">
242
242
  <span class="current">${F()+1}</span>
243
243
  <span class="separator">/</span>
@@ -250,12 +250,12 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
250
250
  style="width: ${P>1?F()/(P-1)*100:0}%"
251
251
  ></div>
252
252
  </div>
253
- `,J=u`
253
+ `,re=u`
254
254
  <div class="${j}">
255
255
  <button class="prev" @click=${z}>◀</button>
256
256
  <button class="next" @click=${R}>▶</button>
257
257
  </div>
258
- `,re=`
258
+ `,J=`
259
259
  .${O} {
260
260
  position: relative;
261
261
  overflow: hidden;
@@ -362,7 +362,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
362
362
  }
363
363
  `,Y=n(D??{});return t(`Swiper`,u`
364
364
  <style>
365
- ${re}
365
+ ${J}
366
366
  </style>
367
367
 
368
368
  <div
@@ -377,12 +377,12 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
377
377
  `)}
378
378
  </div>
379
379
 
380
- ${_?J:null}
381
- ${y&&b===`dots`?K:null}
382
- ${y&&b===`fraction`?ne:null}
380
+ ${_?re:null}
381
+ ${y&&b===`dots`?G:null}
382
+ ${y&&b===`fraction`?K:null}
383
383
  ${y&&b===`progressbar`?q:null}
384
384
  </div>
385
- `)}const z={borderRadius:{small:`4px`,medium:`8px`,large:`16px`,full:`9999px`},elevation:{level1:`0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14)`,level2:`0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12)`,level3:`0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10)`,level4:`0 15px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.05)`,level5:`0 20px 40px rgba(0,0,0,0.2)`},animation:{standard:`0.2s cubic-bezier(0.4, 0, 0.2, 1)`,emphasized:`0.3s cubic-bezier(0.4, 0, 0.2, 1)`,decelerated:`0.4s cubic-bezier(0, 0, 0.2, 1)`},colors:{primary:`#6750A4`,onPrimary:`#FFFFFF`,primaryContainer:`#EADDFF`,onPrimaryContainer:`#21005E`,secondary:`#625B71`,onSecondary:`#FFFFFF`,secondaryContainer:`#E8DEF8`,onSecondaryContainer:`#1E192B`,surface:`#FEF7FF`,onSurface:`#1C1B1F`,surfaceVariant:`#E7E0EB`,onSurfaceVariant:`#49454E`,error:`#B00020`}};function B(e){let{checked:a=!1,disabled:o=!1,size:s=`medium`,color:c=z.colors.primary,onChange:l,className:d=``,on:f={}}=e??{},p=r(`SwitchInput`),h=i(`SwitchInput::switch`)+`-lyco-now-${p}`,g={small:{width:32,height:16,thumbSize:12},medium:{width:44,height:24,thumbSize:18},large:{width:56,height:32,thumbSize:24}},{width:_,height:v,thumbSize:y}=g[s],b=`
385
+ `)}const z={borderRadius:{small:`4px`,medium:`8px`,large:`16px`,full:`9999px`},elevation:{level1:`0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14)`,level2:`0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12)`,level3:`0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10)`,level4:`0 15px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.05)`,level5:`0 20px 40px rgba(0,0,0,0.2)`},animation:{standard:`0.2s cubic-bezier(0.4, 0, 0.2, 1)`,emphasized:`0.3s cubic-bezier(0.4, 0, 0.2, 1)`,decelerated:`0.4s cubic-bezier(0, 0, 0.2, 1)`},colors:{primary:`#6750A4`,onPrimary:`#FFFFFF`,primaryContainer:`#EADDFF`,onPrimaryContainer:`#21005E`,secondary:`#625B71`,onSecondary:`#FFFFFF`,secondaryContainer:`#E8DEF8`,onSecondaryContainer:`#1E192B`,surface:`#FEF7FF`,onSurface:`#1C1B1F`,surfaceVariant:`#E7E0EB`,onSurfaceVariant:`#49454E`,error:`#B00020`}};function te(e){let{checked:a=!1,disabled:o=!1,size:s=`medium`,color:c=z.colors.primary,onChange:l,className:d=``,on:f={}}=e??{},p=r(`SwitchInput`),h=i(`SwitchInput::switch`)+`-lyco-now-${p}`,g={small:{width:32,height:16,thumbSize:12},medium:{width:44,height:24,thumbSize:18},large:{width:56,height:32,thumbSize:24}},{width:_,height:v,thumbSize:y}=g[s],b=`
386
386
  .${h} {
387
387
  display: inline-block;
388
388
  position: relative;
@@ -456,7 +456,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
456
456
  />
457
457
  <span class="slider"></span>
458
458
  </label>
459
- `)}function te(e,t){let r=e?.top?`top: ${e.top};`:``,i=e?.right?`right: ${e.right};`:``,o=e?.bottom?`bottom: ${e.bottom};`:``,s=e?.left?`left: ${e.left};`:``,l=e?.width?`width: ${e.width};`:``,d=e?.height?`height: ${e.height};`:``,f=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,p=e?.style?e.style:``,h=e?.className?e.className:``,g=n(e?.on??{}),_=e=>u`
459
+ `)}function B(e,t){let r=e?.top?`top: ${e.top};`:``,i=e?.right?`right: ${e.right};`:``,o=e?.bottom?`bottom: ${e.bottom};`:``,s=e?.left?`left: ${e.left};`:``,l=e?.width?`width: ${e.width};`:``,d=e?.height?`height: ${e.height};`:``,f=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,p=e?.style?e.style:``,h=e?.className?e.className:``,g=n(e?.on??{}),_=e=>u`
460
460
  <div
461
461
  ${m(e=>{e?g.bind(e):g.unbindAll()})}
462
462
  class="${h}"
@@ -535,7 +535,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
535
535
  >
536
536
  ${a(o)}
537
537
  </div>
538
- `)}function W(e,t){if(t===void 0)return t=>W(e,t??[u``]);let r=e?.size??`32px`,i=e?.overlap??`-8px`,a=n(e?.on??{}),s=(e,t)=>u`
538
+ `)}function ne(e,t){if(t===void 0)return t=>ne(e,t??[u``]);let r=e?.size??`32px`,i=e?.overlap??`-8px`,a=n(e?.on??{}),s=(e,t)=>u`
539
539
  <div
540
540
  style="
541
541
  width: ${r};
@@ -556,7 +556,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
556
556
  >
557
557
  ${o(t,s)}
558
558
  </div>
559
- `}function G(e,t){if(t===void 0){let t=t=>G(e,t??u``);return t.html=(t,...n)=>G(e,u(t,...n)),t}let r=e?.position??`top-right`,i=e?.size??`16px`,o=e?.background??`red`,s=e?.color??`#fff`,[c,l,d,f]=[r.includes(`top`)?`0`:`auto`,r.includes(`right`)?`0`:`auto`,r.includes(`bottom`)?`0`:`auto`,r.includes(`left`)?`0`:`auto`],p=n(e?.on??{});return u`
559
+ `}function W(e,t){if(t===void 0){let t=t=>W(e,t??u``);return t.html=(t,...n)=>W(e,u(t,...n)),t}let r=e?.position??`top-right`,i=e?.size??`16px`,o=e?.background??`red`,s=e?.color??`#fff`,[c,l,d,f]=[r.includes(`top`)?`0`:`auto`,r.includes(`right`)?`0`:`auto`,r.includes(`bottom`)?`0`:`auto`,r.includes(`left`)?`0`:`auto`],p=n(e?.on??{});return u`
560
560
  <div style="position: relative; display: inline-block;">
561
561
  ${a(t)}
562
562
  <div
@@ -582,13 +582,13 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
582
582
  ${e?.content??``}
583
583
  </div>
584
584
  </div>
585
- `}function K(e,t){if(!t)return t=>K(e,t??p());let r=n(e?.on??{}),i=e=>{e?(r.bind(e),typeof t==`function`?t(e):t={value:e}):r.unbindAll()};return u`
585
+ `}function G(e,t){if(!t)return t=>G(e,t??p());let r=n(e?.on??{}),i=e=>{e?(r.bind(e),typeof t==`function`?t(e):t={value:e}):r.unbindAll()};return u`
586
586
  <canvas
587
587
  ${m(i)}
588
588
  .class=${e?.className}
589
589
  style=${e?.style??``}
590
590
  ></canvas>
591
- `}function ne(e,t){return e.$__LYCO_INIT_CANVAS__$||=t(),e.$__LYCO_INIT_CANVAS__$}function q(e,t){if(t===void 0)return t=>q(e,t??[u``]);let r=e?.padding??`16px`,i=e?.borderRadius??`8px`,a=e?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,s=e?.background??`#fff`,c=n(e?.on??{});return u`
591
+ `}function K(e,t){if(t===void 0)return t=>K(e,t??[u``]);let r=e?.padding??`16px`,i=e?.borderRadius??`8px`,a=e?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,s=e?.background??`#fff`,c=n(e?.on??{});return u`
592
592
  <div
593
593
  ${m(e=>{e?c.bind(e):c.unbindAll()})}
594
594
  style="
@@ -601,7 +601,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
601
601
  >
602
602
  ${o(t)}
603
603
  </div>
604
- `}function J(e,t){if(t===void 0){let t=t=>J(e,t??u``);return t.html=(t,...n)=>J(e,u(t,...n)),t}let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``,s=n(e?.on??{});return u`
604
+ `}function q(e,t){if(t===void 0){let t=t=>q(e,t??u``);return t.html=(t,...n)=>q(e,u(t,...n)),t}let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``,s=n(e?.on??{});return u`
605
605
  <div
606
606
  ${m(e=>{e?s.bind(e):s.unbindAll()})}
607
607
  style="
@@ -703,7 +703,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
703
703
  `)}
704
704
  </div>
705
705
  </div>
706
- `)}function Y(e,t){if(t===void 0)return t=>Y(e,t??[u``]);let r=e?.maxWidth??`1024px`,i=e?.padding??`0 16px`,a=e?.background?`background: ${e.background};`:``,s=e?.fullHeight?`height: 100%;`:``,c=n(e?.on??{});return u`
706
+ `)}function J(e,t){if(t===void 0)return t=>J(e,t??[u``]);let r=e?.maxWidth??`1024px`,i=e?.padding??`0 16px`,a=e?.background?`background: ${e.background};`:``,s=e?.fullHeight?`height: 100%;`:``,c=n(e?.on??{});return u`
707
707
  <div
708
708
  ${m(e=>{e?c.bind(e):c.unbindAll()})}
709
709
  style="
@@ -719,7 +719,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
719
719
  >
720
720
  ${o(t)}
721
721
  </div>
722
- `}function ie(e){let t=e?.orientation??`horizontal`,r=e?.thickness??`1px`,i=e?.color??`#e0e0e0`,a=e?.margin??(t===`horizontal`?`8px 0`:`0 8px`),o=n(e?.on??{}),s=t===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return u`<div
722
+ `}function Y(e){let t=e?.orientation??`horizontal`,r=e?.thickness??`1px`,i=e?.color??`#e0e0e0`,a=e?.margin??(t===`horizontal`?`8px 0`:`0 8px`),o=n(e?.on??{}),s=t===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return u`<div
723
723
  ${m(e=>{e?o.bind(e):o.unbindAll()})}
724
724
  style="${s}"
725
725
  ></div>`}function X(e,t){if(t===void 0){let t=t=>X(e,t??u``);return t.html=(t,...n)=>X(e,u(t,...n)),t}let r=e?.columns??4,i=e?.gap??`24px`,o=e?.background??`#f8f8f8`,s=e?.padding??`40px 16px`,c=n(e?.on??{});return u`
@@ -745,7 +745,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
745
745
  © ${new Date().getFullYear()} Your Company. All rights reserved.
746
746
  </div>
747
747
  </div>
748
- `}function ae(e,t){return t?e.map((e,n)=>t(e,n)):t=>e.map((e,n)=>t(e,n))}function Z(e,o){if(o===void 0){let t=t=>Z(e,t??u``);return t.html=(t,...n)=>Z(e,u(t,...n)),t}let s=e.defaultColumns??1,c=e.gap??`16px`,l=r(`GridBreakpoint`),d=e.className??i(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+l,f=Object.entries(e.breakpoints).map(([e,t])=>`@media`+e+`{
748
+ `}function ie(e,t){return t?e.map((e,n)=>t(e,n)):t=>e.map((e,n)=>t(e,n))}function Z(e,o){if(o===void 0){let t=t=>Z(e,t??u``);return t.html=(t,...n)=>Z(e,u(t,...n)),t}let s=e.defaultColumns??1,c=e.gap??`16px`,l=r(`GridBreakpoint`),d=e.className??i(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+l,f=Object.entries(e.breakpoints).map(([e,t])=>`@media`+e+`{
749
749
  `+d+`{ grid-template-columns: repeat(`+t+`, 1fr); }
750
750
  }`).join(`
751
751
  `),p=`
@@ -764,7 +764,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
764
764
  >
765
765
  ${a(o)}
766
766
  </div>
767
- `)}function oe(e,t){if(t===void 0)return t=>oe(e,t??[u``]);let r=e?.backgroundImage?`background-image: url('${e.backgroundImage}');`:``,i=e?.height??`400px`,a=e?.overlayColor??`rgba(0, 0, 0, 0.3)`,s=n(e?.on??{});return u`
767
+ `)}function ae(e,t){if(t===void 0)return t=>ae(e,t??[u``]);let r=e?.backgroundImage?`background-image: url('${e.backgroundImage}');`:``,i=e?.height??`400px`,a=e?.overlayColor??`rgba(0, 0, 0, 0.3)`,s=n(e?.on??{});return u`
768
768
  <div
769
769
  ${m(e=>{e?s.bind(e):s.unbindAll()})}
770
770
  style="
@@ -817,7 +817,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
817
817
  >
818
818
  ${a(o)}
819
819
  </div>
820
- `)}function se(t,n,r=.1,i={}){let a=Array(t.length).fill(!1),o=`${r*100}vh`,s=`100vw`,c=t.map((t,r)=>u`
820
+ `)}function oe(t,n,r=.1,i={}){let a=Array(t.length).fill(!1),o=`${r*100}vh`,s=`100vw`,c=t.map((t,r)=>u`
821
821
  <div
822
822
  ${m(o=>{if(o&&!a[r]){let s=new IntersectionObserver((o,s)=>{o.forEach(o=>{if(o.isIntersecting&&!a[r]){let c=o.target;a[r]=!0,f(n(t,r),c),e.applyAnimation(c,i);let l=c.querySelector(`[data-fallback]`);l&&l.remove(),s.unobserve(c)}})},{root:null,rootMargin:`0px`});s.observe(o)}})}
823
823
  data-index="${r}"
@@ -829,7 +829,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
829
829
  style="height: ${o}; width: ${s};"
830
830
  ></div>
831
831
  </div>
832
- `);return c}function ce(e){return u` <li>${o(e)}</li> `}function le(e,n){let a=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,s=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,c=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,l=r(`List`),d=e?.className??i(`List::list`)+`-lyco-now-${l}`,f=`
832
+ `);return c}function se(e){return u` <li>${o(e)}</li> `}function ce(e,n){let a=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,s=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,c=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,l=r(`List`),d=e?.className??i(`List::list`)+`-lyco-now-${l}`,f=`
833
833
  ul.${d} {
834
834
  list-style: none;
835
835
  margin: 0;
@@ -852,7 +852,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
852
852
  <ul class="${d}">
853
853
  ${o(e)}
854
854
  </ul>
855
- `);return n===void 0?p:p(n)}function ue(e,a){let c=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,l=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,d=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,f=r(`ListGroup`),p=e?.className??i(`ListGroup::list-group`)+`-lyco-now-`+f,h=(e,t,n,r)=>n?u` <li>${e}</li> `:e,g=`
855
+ `);return n===void 0?p:p(n)}function le(e,a){let c=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,l=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,d=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,f=r(`ListGroup`),p=e?.className??i(`ListGroup::list-group`)+`-lyco-now-`+f,h=(e,t,n,r)=>n?u` <li>${e}</li> `:e,g=`
856
856
  ul.${p} {
857
857
  list-style: none;
858
858
  margin: 0;
@@ -878,7 +878,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
878
878
  >
879
879
  ${o(e,h)}
880
880
  </ul>
881
- `);return s(a,v)}function de(e,t){if(t===void 0)return t=>de(e,t??[u``]);let r=e?.background??`rgba(0, 0, 0, 0.5)`,i=e?.zIndex??1e3,a=e?.fullScreen!==!1,s=n(e?.on??{});return u`
881
+ `);return s(a,v)}function ue(e,t){if(t===void 0)return t=>ue(e,t??[u``]);let r=e?.background??`rgba(0, 0, 0, 0.5)`,i=e?.zIndex??1e3,a=e?.fullScreen!==!1,s=n(e?.on??{});return u`
882
882
  <div
883
883
  ${m(e=>{e?s.bind(e):s.unbindAll()})}
884
884
  style="
@@ -893,7 +893,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
893
893
  >
894
894
  ${o(t)}
895
895
  </div>
896
- `}function fe(e,t){if(t===void 0){let t=t=>fe(e,t??u``);return t.html=(t,...n)=>fe(e,u(t,...n)),t}let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``,s=n(e?.on??{});return u`
896
+ `}function de(e,t){if(t===void 0){let t=t=>de(e,t??u``);return t.html=(t,...n)=>de(e,u(t,...n)),t}let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``,s=n(e?.on??{});return u`
897
897
  <div
898
898
  ${m(e=>{e?s.bind(e):s.unbindAll()})}
899
899
  style="
@@ -904,7 +904,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
904
904
  >
905
905
  ${a(t)}
906
906
  </div>
907
- `}function pe(e){let t=Math.min(100,Math.max(0,e?.value??0)),r=Math.min(100,Math.max(0,e?.bufferValue??0)),i=e?.color??`#1976d2`,a=e?.secondaryColor??`#90caf9`,o=e?.backgroundColor??`#e0e0e0`,s=e?.height??`4px`,c=e?.radius??`4px`,d=e?.showLabel??!1,f=e?.labelPosition??`inside`,p=e?.labelColor??(t>50?`white`:i),h=e?.labelFontSize??`12px`,g=e?.striped??!1,_=e?.animated??!1,v=e?.paused??!1,y=e?.transitionDuration??`0.3s`,b=e?.className??``,x=e?.style??``,S=n(e?.on??{}),C=g?`background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
907
+ `}function fe(e){let t=Math.min(100,Math.max(0,e?.value??0)),r=Math.min(100,Math.max(0,e?.bufferValue??0)),i=e?.color??`#1976d2`,a=e?.secondaryColor??`#90caf9`,o=e?.backgroundColor??`#e0e0e0`,s=e?.height??`4px`,c=e?.radius??`4px`,d=e?.showLabel??!1,f=e?.labelPosition??`inside`,p=e?.labelColor??(t>50?`white`:i),h=e?.labelFontSize??`12px`,g=e?.striped??!1,_=e?.animated??!1,v=e?.paused??!1,y=e?.transitionDuration??`0.3s`,b=e?.className??``,x=e?.style??``,S=n(e?.on??{}),C=g?`background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
908
908
  background-size: 1rem 1rem;
909
909
  animation: progress-stripes 1s linear infinite;
910
910
  animation-play-state: ${v?`paused`:`running`};`:``;return u`
@@ -980,10 +980,10 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
980
980
  `:``}
981
981
  ${e?.suffixIcon}
982
982
  </div>
983
- `}function me(e){let t=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=n(e?.on??{});return u`<div
983
+ `}function pe(e){let t=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=n(e?.on??{});return u`<div
984
984
  ${m(e=>{e?i.bind(e):i.unbindAll()})}
985
985
  style="${t} ${r}"
986
- ></div>`}function he(e){let{type:a=`rect`,width:o=`100%`,height:s=`16px`,borderRadius:c=`4px`,animation:l=!0,animationType:d=`shimmer`,bgColor:f=`#eee`,highlightColor:p=`#ddd`,count:h=1,spacing:g=`8px`,direction:_=`vertical`,delay:v=0,autoHide:y=!1,duration:b=2e3,on:x={}}=e??{},S=r(`SkeletonLoader`),C=i(`SkeletonLoader::skeleton`)+`-lyco-now-`+S,w=n(x),T=a===`circle`?`border-radius:50%;width:${o};height:${o}`:`border-radius:${c};width:${o};height:${s}`,E=``,D=``;l&&(d===`shimmer`?(E=`@keyframes ${C}-shimmer { 0% { background-color: ${f}; } 50% { background-color: ${p}; } 100% { background-color: ${f}; } }`,D=`animation:${C}-shimmer 1.2s infinite ease-in-out;`):(E=`@keyframes ${C}-pulse { 0% { opacity:1; } 50% { opacity:0.4; } 100% { opacity:1; } }`,D=`animation:${C}-pulse 1.2s infinite ease-in-out;`));let O=_===`horizontal`?`display:flex;flex-direction:row;gap:${g}`:`display:flex;flex-direction:column;gap:${g}`,k=[];for(let e=0;e<h;e++)k.push(u`
986
+ ></div>`}function me(e){let{type:a=`rect`,width:o=`100%`,height:s=`16px`,borderRadius:c=`4px`,animation:l=!0,animationType:d=`shimmer`,bgColor:f=`#eee`,highlightColor:p=`#ddd`,count:h=1,spacing:g=`8px`,direction:_=`vertical`,delay:v=0,autoHide:y=!1,duration:b=2e3,on:x={}}=e??{},S=r(`SkeletonLoader`),C=i(`SkeletonLoader::skeleton`)+`-lyco-now-`+S,w=n(x),T=a===`circle`?`border-radius:50%;width:${o};height:${o}`:`border-radius:${c};width:${o};height:${s}`,E=``,D=``;l&&(d===`shimmer`?(E=`@keyframes ${C}-shimmer { 0% { background-color: ${f}; } 50% { background-color: ${p}; } 100% { background-color: ${f}; } }`,D=`animation:${C}-shimmer 1.2s infinite ease-in-out;`):(E=`@keyframes ${C}-pulse { 0% { opacity:1; } 50% { opacity:0.4; } 100% { opacity:1; } }`,D=`animation:${C}-pulse 1.2s infinite ease-in-out;`));let O=_===`horizontal`?`display:flex;flex-direction:row;gap:${g}`:`display:flex;flex-direction:column;gap:${g}`,k=[];for(let e=0;e<h;e++)k.push(u`
987
987
  <div
988
988
  class="${C}"
989
989
  style="${T};background-color:${f};${D};opacity:0;transition:opacity 0.3s"
@@ -999,10 +999,10 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
999
999
  >
1000
1000
  ${k}
1001
1001
  </div>
1002
- `)}function ge(e){let t=n(e?.on??{});return u`<div
1002
+ `)}function he(e){let t=n(e?.on??{});return u`<div
1003
1003
  ${m(e=>{e?t.bind(e):t.unbindAll()})}
1004
1004
  style="flex: 1 1 auto;"
1005
- ></div>`}function _e(e){let{size:i=`24px`,color:a=z.colors.primary,thickness:o=`2px`,speed:s=`1.2s`,className:c=``,opacity:d=1,startAngle:f=0,easing:p=`linear`,reverse:h=!1,style:g=``,on:_={},children:v,svgMode:y=!1,strokeLinecap:b=`butt`,strokeDasharray:x=``}=e??{},S=n(_),C=r(`Spinner`),w=u`
1005
+ ></div>`}function ge(e){let{size:i=`24px`,color:a=z.colors.primary,thickness:o=`2px`,speed:s=`1.2s`,className:c=``,opacity:d=1,startAngle:f=0,easing:p=`linear`,reverse:h=!1,style:g=``,on:_={},children:v,svgMode:y=!1,strokeLinecap:b=`butt`,strokeDasharray:x=``}=e??{},S=n(_),C=r(`Spinner`),w=u`
1006
1006
  <div
1007
1007
  class="${c}"
1008
1008
  style="display: inline-flex; align-items: center; justify-content: center; width: ${i}; height: ${i}; ${g}"
@@ -1073,7 +1073,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1073
1073
  }
1074
1074
  `.cssText}
1075
1075
  </style>
1076
- `;return t(`Spinner`,y?T:w)}function ve(e,t){if(t===void 0){let t=t=>ve(e,t??u``);return t.html=(t,...n)=>ve(e,u(t,...n)),t}let r=e?.top?`top: ${e.top};`:``,i=e?.bottom?`bottom: ${e.bottom};`:``,o=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,s=n(e?.on??{});return u`
1076
+ `;return t(`Spinner`,y?T:w)}function _e(e,t){if(t===void 0){let t=t=>_e(e,t??u``);return t.html=(t,...n)=>_e(e,u(t,...n)),t}let r=e?.top?`top: ${e.top};`:``,i=e?.bottom?`bottom: ${e.bottom};`:``,o=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,s=n(e?.on??{});return u`
1077
1077
  <div
1078
1078
  ${m(e=>{e?s.bind(e):s.unbindAll()})}
1079
1079
  style="
@@ -1084,7 +1084,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1084
1084
  >
1085
1085
  ${a(t)}
1086
1086
  </div>
1087
- `}function ye(e,o){if(o===void 0){let t=t=>ye(e,t??u``);return t.html=(t,...n)=>ye(e,u(t,...n)),t}let s=r(`Table`),c=e?.className??i(`Table::table`)+`-lyco-now-${s}`,l=e?.striped?`
1087
+ `}function ve(e,o){if(o===void 0){let t=t=>ve(e,t??u``);return t.html=(t,...n)=>ve(e,u(t,...n)),t}let s=r(`Table`),c=e?.className??i(`Table::table`)+`-lyco-now-${s}`,l=e?.striped?`
1088
1088
  .${c} tr:nth-child(even) {
1089
1089
  background: ${z.colors.surface};
1090
1090
  }
@@ -1136,7 +1136,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1136
1136
  ${a(o)}
1137
1137
  </table>
1138
1138
  </div>
1139
- `)}let $=function(e){return e.Top=`top`,e.Bottom=`bottom`,e.Left=`left`,e.Right=`right`,e}({});function be(e,t){let{content:r,placement:i=$.Top,delay:o={show:200,hide:100},offset:s=8,hideOnClick:l=!1,interactive:d=!1,maxWidth:f=`200px`,theme:p=`dark`,className:h=``,style:g=``,zIndex:_=1e3,on:v={},onShow:y,onHide:b}=e,x=n(v),S,C;function w(e){clearTimeout(C),S=window.setTimeout(()=>{E.style.visibility=`visible`,E.style.opacity=`1`,y?.()},o.show)}function T(){clearTimeout(S),C=window.setTimeout(()=>{E.style.visibility=`hidden`,E.style.opacity=`0`,b?.()},o.hide)}let E,D=e=>u`
1139
+ `)}let $=function(e){return e.Top=`top`,e.Bottom=`bottom`,e.Left=`left`,e.Right=`right`,e}({});function ye(e,t){let{content:r,placement:i=$.Top,delay:o={show:200,hide:100},offset:s=8,hideOnClick:l=!1,interactive:d=!1,maxWidth:f=`200px`,theme:p=`dark`,className:h=``,style:g=``,zIndex:_=1e3,on:v={},onShow:y,onHide:b}=e,x=n(v),S,C;function w(e){clearTimeout(C),S=window.setTimeout(()=>{E.style.visibility=`visible`,E.style.opacity=`1`,y?.()},o.show)}function T(){clearTimeout(S),C=window.setTimeout(()=>{E.style.visibility=`hidden`,E.style.opacity=`0`,b?.()},o.hide)}let E,D=e=>u`
1140
1140
  <div
1141
1141
  ${m(e=>{e?(x.bind(e),E=e.querySelector(`.lyco-tooltip-content`),e.addEventListener(`mouseenter`,()=>w(e)),e.addEventListener(`mouseleave`,()=>T()),l&&e.addEventListener(`click`,()=>T())):x.unbindAll()})}
1142
1142
  class="lyco-tooltip lyco-tooltip--${p} ${h}"
@@ -1170,7 +1170,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1170
1170
  ${r}
1171
1171
  </div>
1172
1172
  </div>
1173
- `;return c(t,D)}function xe(e,t){let r=e?.direction??`row`,i=n(e?.on??{});return t===void 0?t=>xe(e,t??u``):u`
1173
+ `;return c(t,D)}function be(e,t){let r=e?.direction??`row`,i=n(e?.on??{});return t===void 0?t=>be(e,t??u``):u`
1174
1174
  <div
1175
1175
  ${m(e=>{e?i.bind(e):i.unbindAll()})}
1176
1176
  style="
@@ -1184,7 +1184,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1184
1184
  >
1185
1185
  ${o(t)}
1186
1186
  </div>
1187
- `}function Se(e,t){let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,a=e?.background?`background: ${e.background};`:``,s=n(e?.on??{});if(t===void 0)return t=>Se(e,t??[u``]);let c=`flex-start`,l=`flex-start`;switch(e?.align){case`top-right`:c=`flex-end`,l=`flex-start`;break;case`center`:c=`center`,l=`center`;break;case`bottom-left`:c=`flex-start`,l=`flex-end`;break;case`bottom-right`:c=`flex-end`,l=`flex-end`;break;default:c=`flex-start`,l=`flex-start`}return u`
1187
+ `}function xe(e,t){let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,a=e?.background?`background: ${e.background};`:``,s=n(e?.on??{});if(t===void 0)return t=>xe(e,t??[u``]);let c=`flex-start`,l=`flex-start`;switch(e?.align){case`top-right`:c=`flex-end`,l=`flex-start`;break;case`center`:c=`center`,l=`center`;break;case`bottom-left`:c=`flex-start`,l=`flex-end`;break;case`bottom-right`:c=`flex-end`,l=`flex-end`;break;default:c=`flex-start`,l=`flex-start`}return u`
1188
1188
  <div
1189
1189
  ${m(e=>{e?s.bind(e):s.unbindAll()})}
1190
1190
  style="
@@ -1197,7 +1197,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1197
1197
  >
1198
1198
  ${o(t)}
1199
1199
  </div>
1200
- `}let Ce=function(e){return e.Center=`center`,e.Left=`left`,e.Right=`right`,e.Top=`top`,e.Bottom=`bottom`,e.TopStart=`top-start`,e.TopEnd=`top-end`,e.BottomStart=`bottom-start`,e.BottomEnd=`bottom-end`,e.LeftStart=`left-start`,e.LeftEnd=`left-end`,e.RightStart=`right-start`,e.RightEnd=`right-end`,e}({});const we=typeof window>`u`,Te=!we&&`HTMLDialogElement`in window,Ee=e=>`
1200
+ `}let Se=function(e){return e.Center=`center`,e.Left=`left`,e.Right=`right`,e.Top=`top`,e.Bottom=`bottom`,e.TopStart=`top-start`,e.TopEnd=`top-end`,e.BottomStart=`bottom-start`,e.BottomEnd=`bottom-end`,e.LeftStart=`left-start`,e.LeftEnd=`left-end`,e.RightStart=`right-start`,e.RightEnd=`right-end`,e}({});const Ce=typeof window>`u`,we=!Ce&&`HTMLDialogElement`in window,Te=e=>`
1201
1201
  position: fixed;
1202
1202
  top: 0;
1203
1203
  left: 0;
@@ -1208,7 +1208,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1208
1208
  justify-content: center;
1209
1209
  z-index: 1000;
1210
1210
  background: rgba(0,0,0,0.3);
1211
- `;var De=class{constructor(e,t){this.isOpen=!1,this.returnValue=``,this.element=e,this.contentElement=t}show(){this.element.style.display=`flex`,this.isOpen=!0}showModal(){this.show()}close(){this.element.style.display=`none`,this.isOpen=!1,this.element.dispatchEvent(new Event(`close`))}get open(){return this.isOpen}getBoundingClientRect(){return this.contentElement.getBoundingClientRect()}get style(){return this.contentElement.style}};function Oe(e,a){let c=e?.open??!1,l=e?.onClose,d=e?.className??``,f=e?.style??``,p=n(e?.on?e?.on:{}),h=e?.movable??!1,g=e?.placement??Ce.Center,_=e?.proxyRef??{value:null},v=null,y=!1,b={x:0,y:0},x=null,S=e?.mask??!0,C=r(`Dialog`),w=i(`Dialog::dialog`)+`-lyco-now-`+C;function T(e){return h?h===`self`?e:h&&`value`in h?h.value:null:null}function E(){if(typeof window>`u`)return``;let e=300,t=150,n=(window.innerWidth-e)/2,r=(window.innerHeight-t)/2;return`left: ${n}px; top: ${r}px;`}function D(){switch(g){case`left`:return`left: 32px; top: 50%;`;case`right`:return`right: 32px; top: 50%;`;case`top`:return`top: 32px; left: 50%;`;case`bottom`:return`bottom: 32px; left: 50%;`;case`top-start`:return`top: 32px; left: 32px;`;case`top-end`:return`top: 32px; right: 32px;`;case`bottom-start`:return`bottom: 32px; left: 32px;`;case`bottom-end`:return`bottom: 32px; right: 32px;`;case`left-start`:return`left: 32px; top: 32px;`;case`left-end`:return`left: 32px; bottom: 32px;`;case`right-start`:return`right: 32px; top: 32px;`;case`right-end`:return`right: 32px; bottom: 32px;`;default:return E()}}function O(){switch(g){case`top-start`:case`top-end`:case`bottom-start`:case`bottom-end`:case`left-start`:case`left-end`:case`right-start`:case`right-end`:return{txp:0,typ:0};case`left`:return{txp:0,typ:-50};case`right`:return{txp:0,typ:-50};case`top`:return{txp:-50,typ:0};case`bottom`:return{txp:-50,typ:0};default:return{txp:-50,typ:-50}}}function k(e,t){if(e.button!==0||(x=T(t),!x||!x.contains(e.target)))return;v=t,v.style.transform=`none`,e.preventDefault(),x.style.cursor=`grabbing`;let n=t.getBoundingClientRect(),{txp:r,typ:i}=O();b={x:e.clientX-(n.left+r/100*n.width),y:e.clientY-(n.top+i/100*n.height)},y=!0,document.addEventListener(`mousemove`,A),document.addEventListener(`mouseup`,j)}function A(e){if(!y||!x||!v)return;let t=v.getBoundingClientRect(),{txp:n,typ:r}=O(),i=e.clientX-b.x-n/100*t.width,a=e.clientY-b.y-r/100*t.height;v.style.left=`${i}px`,v.style.top=`${a}px`}function j(){y=!1,x=null,v=null,document.removeEventListener(`mousemove`,A),document.removeEventListener(`mouseup`,j)}function M(){let e=S?`rgba(0,0,0,0.5)`:`transparent`;return`
1211
+ `;var Ee=class{constructor(e,t){this.isOpen=!1,this.returnValue=``,this.element=e,this.contentElement=t}show(){this.element.style.display=`flex`,this.isOpen=!0}showModal(){this.show()}close(){this.element.style.display=`none`,this.isOpen=!1,this.element.dispatchEvent(new Event(`close`))}get open(){return this.isOpen}getBoundingClientRect(){return this.contentElement.getBoundingClientRect()}get style(){return this.contentElement.style}};function De(e,a){let c=e?.open??!1,l=e?.onClose,d=e?.className??``,f=e?.style??``,p=n(e?.on?e?.on:{}),h=e?.movable??!1,g=e?.placement??Se.Center,_=e?.proxyRef??{value:null},v=null,y=!1,b={x:0,y:0},x=null,S=e?.mask??!0,C=r(`Dialog`),w=i(`Dialog::dialog`)+`-lyco-now-`+C;function T(e){return h?h===`self`?e:h&&`value`in h?h.value:null:null}function E(){if(typeof window>`u`)return``;let e=300,t=150,n=(window.innerWidth-e)/2,r=(window.innerHeight-t)/2;return`left: ${n}px; top: ${r}px;`}function D(){switch(g){case`left`:return`left: 32px; top: 50%;`;case`right`:return`right: 32px; top: 50%;`;case`top`:return`top: 32px; left: 50%;`;case`bottom`:return`bottom: 32px; left: 50%;`;case`top-start`:return`top: 32px; left: 32px;`;case`top-end`:return`top: 32px; right: 32px;`;case`bottom-start`:return`bottom: 32px; left: 32px;`;case`bottom-end`:return`bottom: 32px; right: 32px;`;case`left-start`:return`left: 32px; top: 32px;`;case`left-end`:return`left: 32px; bottom: 32px;`;case`right-start`:return`right: 32px; top: 32px;`;case`right-end`:return`right: 32px; bottom: 32px;`;default:return E()}}function O(){switch(g){case`top-start`:case`top-end`:case`bottom-start`:case`bottom-end`:case`left-start`:case`left-end`:case`right-start`:case`right-end`:return{txp:0,typ:0};case`left`:return{txp:0,typ:-50};case`right`:return{txp:0,typ:-50};case`top`:return{txp:-50,typ:0};case`bottom`:return{txp:-50,typ:0};default:return{txp:-50,typ:-50}}}function k(e,t){if(e.button!==0||(x=T(t),!x||!x.contains(e.target)))return;v=t,v.style.transform=`none`,e.preventDefault(),x.style.cursor=`grabbing`;let n=t.getBoundingClientRect(),{txp:r,typ:i}=O();b={x:e.clientX-(n.left+r/100*n.width),y:e.clientY-(n.top+i/100*n.height)},y=!0,document.addEventListener(`mousemove`,A),document.addEventListener(`mouseup`,j)}function A(e){if(!y||!x||!v)return;let t=v.getBoundingClientRect(),{txp:n,typ:r}=O(),i=e.clientX-b.x-n/100*t.width,a=e.clientY-b.y-r/100*t.height;v.style.left=`${i}px`,v.style.top=`${a}px`}function j(){y=!1,x=null,v=null,document.removeEventListener(`mousemove`,A),document.removeEventListener(`mouseup`,j)}function M(){let e=S?`rgba(0,0,0,0.5)`:`transparent`;return`
1212
1212
  ${w}::-webkit-backdrop,
1213
1213
  ${w}::backdrop {
1214
1214
  background: ${e};
@@ -1216,12 +1216,12 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1216
1216
  }
1217
1217
  `}function N(e){let n=null,r=null;return t(`Dialog`,u`
1218
1218
  <div
1219
- ${m(e=>{if(e){if(n=e,r){let e=new De(n,r);_.value=e,p.bind(n),c?e.showModal():e.close()}}else p.unbindAll()})}
1219
+ ${m(e=>{if(e){if(n=e,r){let e=new Ee(n,r);_.value=e,p.bind(n),c?e.showModal():e.close()}}else p.unbindAll()})}
1220
1220
  @click=${e=>{e.target===e.currentTarget&&l?.()}}
1221
- style=${Ee(c)}
1221
+ style=${Te(c)}
1222
1222
  >
1223
1223
  <div
1224
- ${m(e=>{if(e&&(r=e,n)){let e=new De(n,r);_.value=e}})}
1224
+ ${m(e=>{if(e&&(r=e,n)){let e=new Ee(n,r);_.value=e}})}
1225
1225
  class="${w} ${d}"
1226
1226
  style="
1227
1227
  padding: 0;
@@ -1237,7 +1237,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1237
1237
  ${o(e)}
1238
1238
  </div>
1239
1239
  </div>
1240
- `)}function P(e){return we||!Te?N(e):t(`Dialog`,u`
1240
+ `)}function P(e){return Ce||!we?N(e):t(`Dialog`,u`
1241
1241
  <dialog
1242
1242
  ${m(e=>{if(e){_.value=e;let t=e;p.bind(t),requestAnimationFrame(()=>{try{c?t.showModal():t.close()}catch(e){console.warn(`Dialog operation failed:`,e)}})}else p.unbindAll()})}
1243
1243
  @close=${l}
@@ -1262,7 +1262,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1262
1262
  <style>
1263
1263
  ${M()}
1264
1264
  </style>
1265
- `)}return s(a,P)}function ke(e,t){let r=e?.className??``,i=e?.style??``,a=n(e?.on??{}),c=e=>u`
1265
+ `)}return s(a,P)}function Oe(e,t){let r=e?.className??``,i=e?.style??``,a=n(e?.on??{}),c=e=>u`
1266
1266
  <div
1267
1267
  ${m(e=>{e?a.bind(e):a.unbindAll()})}
1268
1268
  class="lyco-dialog-actions ${r}"
@@ -1276,7 +1276,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1276
1276
  >
1277
1277
  ${o(e)}
1278
1278
  </div>
1279
- `;return s(t,c)}function Ae(e,t){let r=e?.variant??`text`,i=e?.color??`default`,o=e?.className??``,s=e?.style??``,l=n({click:e?.onClick?t=>{var n;t.preventDefault(),(n=e.onClick)?.call(e,t)}:void 0,...e?.on}),d=e=>u`
1279
+ `;return s(t,c)}function ke(e,t){let r=e?.variant??`text`,i=e?.color??`default`,o=e?.className??``,s=e?.style??``,l=n({click:e?.onClick?t=>{var n;t.preventDefault(),(n=e.onClick)?.call(e,t)}:void 0,...e?.on}),d=e=>u`
1280
1280
  <button
1281
1281
  ${m(e=>{e?l.bind(e):l.unbindAll()})}
1282
1282
  class="lyco-dialog-button ${r} ${i} ${o}"
@@ -1294,7 +1294,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1294
1294
  >
1295
1295
  ${a(e)}
1296
1296
  </button>
1297
- `;return c(t,d)}function je(e,t){let r=e?.className??``,i=e?.style??``,a=n(e?.on??{}),c=e=>u`
1297
+ `;return c(t,d)}function Ae(e,t){let r=e?.className??``,i=e?.style??``,a=n(e?.on??{}),c=e=>u`
1298
1298
  <div
1299
1299
  class="lyco-dialog-content ${r}"
1300
1300
  style="
@@ -1308,7 +1308,7 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1308
1308
  >
1309
1309
  ${o(e)}
1310
1310
  </div>
1311
- `;return s(t,c)}function Me(e,t){let r=e?.className??``,i=e?.style??``,o=n(e?.on??{}),s=e?.proxyRef??{value:null},l=e=>u`
1311
+ `;return s(t,c)}function je(e,t){let r=e?.className??``,i=e?.style??``,o=n(e?.on??{}),s=e?.proxyRef??{value:null},l=e=>u`
1312
1312
  <div
1313
1313
  ${m(e=>{e?(s.value=e,o.bind(e)):o.unbindAll()})}
1314
1314
  class="lyco-dialog-title ${r}"
@@ -1323,5 +1323,5 @@ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentC
1323
1323
  >
1324
1324
  ${a(e)}
1325
1325
  </div>
1326
- `;return c(t,l)}function Ne(e){return o(e)}export{Ne as $Html,te as AbsoluteBox,V as AcrylicBar,H as AspectRatio,U as AutoFitGrid,W as AvatarStack,G as Badge,K as Canvas,ne as CanvasOnce,q as Card,J as Center,E as Column,F as ColumnSplit,re as Combobox,Y as Container,Oe as Dialog,ke as DialogActions,Ae as DialogButton,je as DialogContent,Ce as DialogPlacement,Me as DialogTitle,ie as Divider,D as Flex,O as FlowItem,X as FooterLayout,ae as ForEach,k as Grid,Z as GridBreakpoint,A as GridCol,j as GridItem,M as GridRow,oe as HeroSection,Q as Hidden,se as LazyForEach,T as LightboxContainer,le as List,ue as ListGroup,ce as ListItem,de as Overlay,fe as PositionContainer,pe as Progress,N as Row,I as RowSplit,L as ScrollBar,R as SideBarContainer,me as SizedBox,he as SkeletonLoader,ge as Spacer,_e as Spinner,ve as Sticky,ee as Swiper,B as SwitchInput,ye as Table,w as Virtualizer,b as VirtualizerController,P as WaterFlow,be as WithTooltip,xe as Wrap,Se as ZStack};
1326
+ `;return c(t,l)}function Me(e){return o(e)}function Ne(e,n){let i=`__LYCO_ONCE_`+r(`$Once`);if(e[i])return e[i];{let r=t(`$Once`,n());return e[i]=r,e[i]}}export{Me as $Html,Ne as $Once,B as AbsoluteBox,V as AcrylicBar,H as AspectRatio,U as AutoFitGrid,ne as AvatarStack,W as Badge,G as Canvas,K as Card,q as Center,E as Column,F as ColumnSplit,re as Combobox,J as Container,De as Dialog,Oe as DialogActions,ke as DialogButton,Ae as DialogContent,Se as DialogPlacement,je as DialogTitle,Y as Divider,D as Flex,O as FlowItem,X as FooterLayout,ie as ForEach,k as Grid,Z as GridBreakpoint,A as GridCol,j as GridItem,M as GridRow,ae as HeroSection,Q as Hidden,oe as LazyForEach,T as LightboxContainer,ce as List,le as ListGroup,se as ListItem,ue as Overlay,de as PositionContainer,fe as Progress,N as Row,I as RowSplit,L as ScrollBar,R as SideBarContainer,pe as SizedBox,me as SkeletonLoader,he as Spacer,ge as Spinner,_e as Sticky,ee as Swiper,te as SwitchInput,ve as Table,w as Virtualizer,b as VirtualizerController,P as WaterFlow,ye as WithTooltip,be as Wrap,xe as ZStack};
1327
1327
  //# sourceMappingURL=index.es.js.map