@vanelsas/baredom 1.3.0 → 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.
Files changed (83) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +6 -4
  3. package/dist/base.js +397 -373
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +47 -47
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +8 -8
  17. package/dist/x-collapse.js +10 -10
  18. package/dist/x-command-palette.js +31 -31
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +19 -19
  21. package/dist/x-copy.js +23 -23
  22. package/dist/x-currency-field.js +22 -22
  23. package/dist/x-date-picker.js +41 -41
  24. package/dist/x-divider.js +13 -13
  25. package/dist/x-drawer.js +11 -11
  26. package/dist/x-dropdown.js +9 -9
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +15 -15
  30. package/dist/x-form.js +10 -10
  31. package/dist/x-gaussian-blur.js +18 -18
  32. package/dist/x-grid.js +6 -6
  33. package/dist/x-kinetic-font.js +29 -0
  34. package/dist/x-kinetic-typography.js +39 -61
  35. package/dist/x-liquid-dock.js +40 -0
  36. package/dist/x-liquid-fill.js +45 -0
  37. package/dist/x-liquid-glass.js +48 -0
  38. package/dist/x-menu-item.js +10 -10
  39. package/dist/x-menu.js +11 -11
  40. package/dist/x-metaball-cursor.js +28 -27
  41. package/dist/x-modal.js +12 -12
  42. package/dist/x-morph-stack.js +41 -0
  43. package/dist/x-navbar.js +13 -13
  44. package/dist/x-neural-glow.js +34 -34
  45. package/dist/x-notification-center.js +9 -10
  46. package/dist/x-organic-divider.js +19 -19
  47. package/dist/x-organic-progress.js +38 -38
  48. package/dist/x-organic-shape.js +14 -14
  49. package/dist/x-pagination.js +16 -16
  50. package/dist/x-popover.js +14 -14
  51. package/dist/x-progress-circle.js +9 -9
  52. package/dist/x-progress.js +10 -10
  53. package/dist/x-radio.js +11 -11
  54. package/dist/x-ripple-effect.js +12 -13
  55. package/dist/x-scroll-parallax.js +19 -19
  56. package/dist/x-scroll-stack.js +18 -18
  57. package/dist/x-scroll-story.js +36 -36
  58. package/dist/x-scroll-timeline.js +50 -50
  59. package/dist/x-scroll.js +41 -41
  60. package/dist/x-search-field.js +14 -14
  61. package/dist/x-select.js +9 -9
  62. package/dist/x-sidebar.js +16 -16
  63. package/dist/x-skeleton.js +6 -6
  64. package/dist/x-slider.js +16 -16
  65. package/dist/x-soft-body.js +22 -0
  66. package/dist/x-spacer.js +5 -5
  67. package/dist/x-spinner.js +5 -5
  68. package/dist/x-splash.js +13 -13
  69. package/dist/x-stat.js +11 -11
  70. package/dist/x-stepper.js +16 -16
  71. package/dist/x-switch.js +10 -10
  72. package/dist/x-tab.js +7 -7
  73. package/dist/x-table-cell.js +22 -22
  74. package/dist/x-table-row.js +10 -10
  75. package/dist/x-table.js +16 -16
  76. package/dist/x-tabs.js +11 -11
  77. package/dist/x-text-area.js +18 -18
  78. package/dist/x-timeline-item.js +24 -24
  79. package/dist/x-timeline.js +9 -9
  80. package/dist/x-toast.js +24 -24
  81. package/dist/x-toaster.js +8 -8
  82. package/dist/x-typography.js +10 -10
  83. package/package.json +25 -1
package/dist/x-tabs.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Zy=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.Xh);var c=$APP.I(b,$APP.Ij),d=$APP.I(b,Wy),e=$APP.I(b,$APP.U);b=$APP.I(b,$APP.Ek);c=$APP.K(Xy,c)?c:"horizontal";d=$APP.K(Yy,d)?d:"auto";return new $APP.R(null,5,[$APP.Xh,a,$APP.Ij,c,Wy,d,$APP.U,e,$APP.Ek,$APP.J(b)],null)},$y=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},az=function(a){return new $APP.R(null,5,[$APP.Xh,a.getAttribute("value"),$APP.Ij,a.getAttribute("orientation"),Wy,a.getAttribute("activation"),$APP.U,a.getAttribute("label"),
3
- $APP.Ek,a.hasAttribute("loop")],null)},bz=function(a){return $APP.ke($APP.Rd(function(b){return $APP.C.h("X-TAB",b.tagName)},$APP.kc(a.children)))},cz=function(a){return $APP.r(a.hasAttribute("disabled"))},dz=function(a){return a.getAttribute("value")},ez=function(a){return $APP.Id(function(b){return cz(b)?b:null},a)},fz=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.O(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.C.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},gz=function(a,
4
- b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.r(c):b)?a.setAttribute("selected",""):(b=$APP.r(b),$APP.n(b?c:b)&&a.removeAttribute("selected"))},hz=function(a,b){var c=a.getAttribute("tabindex");$APP.O(c,b)&&a.setAttribute("tabindex",b)},iz=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.O(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},jz=function(a){var b=bz(a),c=a.getAttribute("value"),d=$APP.Nf($APP.Ld(dz,
5
- b));$APP.n($APP.n(c)?$APP.K(d,c):c)||(c=ez(b),c=$APP.n(c)?dz(c):null);if($APP.n(c)){a:{d=$APP.u(b);for(var e=null,g=0,h=0;;)if(h<g){var k=e.G(null,h),m=$APP.C.h(dz(k),c);gz(k,m);m&&cz(k)?hz(k,"0"):hz(k,"-1");h+=1}else if(d=$APP.u(d))$APP.Cc(d)?(e=$APP.qb(d),d=$APP.rb(d),k=e,g=$APP.B(e),e=k):(k=$APP.w(d),e=$APP.C.h(dz(k),c),gz(k,e),e&&cz(k)?hz(k,"0"):hz(k,"-1"),d=$APP.z(d),e=null,g=0),h=0;else break a}a:for(b=$APP.u(b),d=null,g=e=0;;)if(g<e)k=d.G(null,g),iz(k,$APP.C.h(dz(k),c)),g+=1;else if(b=$APP.u(b))d=
6
- b,$APP.Cc(d)?(b=$APP.qb(d),e=$APP.rb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.w(d),iz(k,$APP.C.h(dz(k),c)),b=$APP.z(d),d=null,e=0),g=0;else break a;fz(a,c)}return c},kz=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.O(c,b):b)?(fz(a,b),jz(a),a.dispatchEvent(new CustomEvent("value-change",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},lz=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},mz=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:
7
- $APP.n(c)?b:a},nz=function(a){var b=$APP.l(a,"__x_tabs_base"),c=Zy(az(a));$APP.n(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.Ij.g(c)),c=$APP.U.g(c),$APP.n($APP.n(c)?$APP.O(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return jz(a)},oz=function(a){var b=new MutationObserver(function(){return nz(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},pz=function(a){function b(d){a:{var e=
8
- $APP.ke($APP.Rd(cz,bz(a))),g=Zy(az(a)),h=$APP.Ij.g(g);var k=Wy.g(g);g=$APP.Ek.g(g);var m=d.key,p=e.indexOf(document.activeElement);if(p>=0&&(h=$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowRight")?lz(p,e,g):$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowLeft")?mz(p,e,g):$APP.C.h(h,"vertical")&&$APP.C.h(m,"ArrowDown")?lz(p,e,g):$APP.C.h(h,"vertical")&&$APP.C.h(m,"ArrowUp")?mz(p,e,g):$APP.C.h(m,"Home")?0:$APP.C.h(m,"End")?$APP.B(e)-1:null,h!=null)){d.preventDefault();d=$APP.E(e,h,null);$APP.n(d)?d.focus():
9
- d=null;k=$APP.n(d)?$APP.C.h(k,"auto")?kz(a,dz(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return kz(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;oz(a)},qz=function(a){Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},
10
- sz=function(){var a=class extends HTMLElement{};a.observedAttributes=rz;a.prototype.connectedCallback=function(){if($y(this)){pz(this);var b=nz(this)}else{if(!$y(this)){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
11
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_tabs_root=b;this.__x_tabs_base=d;this.__x_tabs_slot=e;pz(this);this.__x_tabs_initialized=!0}nz(this);b=this}return b};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__x_tabs_on_tab_select");$APP.n(b)&&this.removeEventListener("tab-select",b);b=$APP.l(this,"__x_tabs_on_keydown");$APP.n(b)&&this.removeEventListener("keydown",b);b=$APP.l(this,"__x_tabs_observer");return $APP.n(b)?
12
- b.disconnect():null};a.prototype.attributeChangedCallback=function(){return $y(this)?nz(this):null};qz(a);return a},tz=function(){return $APP.n(customElements.get("x-tabs"))?null:customElements.define("x-tabs",sz())},Wy=new $APP.M(null,"activation","activation",2128521072);var rz=["value","orientation","activation","label","loop"],Xy=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),Yy=new $APP.S(null,new $APP.R(null,2,["auto",null,"manual",null],null),null);$APP.Ed(["value-change",new $APP.R(null,1,[$APP.V,new $APP.R(null,1,[$APP.Xh,$APP.Y],null)],null)]);$APP.ja("baredom.exports.x_tabs.init",tz);export const init=tz;
2
+ var YB=function(a){var b=$APP.N(a);a=$APP.G(b,$APP.ui);var c=$APP.G(b,$APP.xk),d=$APP.G(b,VB),e=$APP.G(b,$APP.T);b=$APP.G(b,$APP.zl);c=$APP.J(WB,c)?c:"horizontal";d=$APP.J(XB,d)?d:"auto";return new $APP.P(null,5,[$APP.ui,a,$APP.xk,c,VB,d,$APP.T,e,$APP.zl,$APP.I(b)],null)},ZB=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},$B=function(a){return new $APP.P(null,5,[$APP.ui,a.getAttribute("value"),$APP.xk,a.getAttribute("orientation"),VB,a.getAttribute("activation"),$APP.T,a.getAttribute("label"),
3
+ $APP.zl,a.hasAttribute("loop")],null)},aC=function(a){return $APP.Be($APP.ge(function(b){return $APP.D.i("X-TAB",b.tagName)},$APP.wc(a.children)))},bC=function(a){return $APP.t(a.hasAttribute("disabled"))},cC=function(a){return a.getAttribute("value")},dC=function(a){return $APP.Wd(function(b){return bC(b)?b:null},a)},eC=function(a,b){var c=a.getAttribute("value");$APP.r($APP.r(b)?$APP.O(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.D.i(b,""),$APP.r(b?c:b)&&a.removeAttribute("value"))},fC=function(a,
4
+ b){var c=a.hasAttribute("selected");$APP.r($APP.r(b)?$APP.t(c):b)?a.setAttribute("selected",""):(b=$APP.t(b),$APP.r(b?c:b)&&a.removeAttribute("selected"))},gC=function(a,b){var c=a.getAttribute("tabindex");$APP.O(c,b)&&a.setAttribute("tabindex",b)},hC=function(a,b){a=a.getAttribute("controls");$APP.r($APP.r(a)?$APP.O(a,""):a)&&(a=document.getElementById(a),$APP.r(a)&&($APP.r(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},iC=function(a){var b=aC(a),c=a.getAttribute("value"),d=$APP.dg($APP.$d(cC,
5
+ b));$APP.r($APP.r(c)?$APP.J(d,c):c)||(c=dC(b),c=$APP.r(c)?cC(c):null);if($APP.r(c)){a:{d=$APP.u(b);for(var e=null,g=0,h=0;;)if(h<g){var k=e.G(null,h),m=$APP.D.i(cC(k),c);fC(k,m);m&&bC(k)?gC(k,"0"):gC(k,"-1");h+=1}else if(d=$APP.u(d))$APP.Pc(d)?(e=$APP.yb(d),d=$APP.zb(d),k=e,g=$APP.B(e),e=k):(k=$APP.v(d),e=$APP.D.i(cC(k),c),fC(k,e),e&&bC(k)?gC(k,"0"):gC(k,"-1"),d=$APP.z(d),e=null,g=0),h=0;else break a}a:for(b=$APP.u(b),d=null,g=e=0;;)if(g<e)k=d.G(null,g),hC(k,$APP.D.i(cC(k),c)),g+=1;else if(b=$APP.u(b))d=
6
+ b,$APP.Pc(d)?(b=$APP.yb(d),e=$APP.zb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.v(d),hC(k,$APP.D.i(cC(k),c)),b=$APP.z(d),d=null,e=0),g=0;else break a;eC(a,c)}return c},jC=function(a,b){var c=a.getAttribute("value");return $APP.r($APP.r(b)?$APP.O(c,b):b)?(eC(a,b),iC(a),a.dispatchEvent(new CustomEvent("value-change",{detail:{value:$APP.r(b)?b:""},bubbles:!0,composed:!0}))):null},kC=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.r(c)?0:a},lC=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:
7
+ $APP.r(c)?b:a},mC=function(a){var b=$APP.l(a,"__x_tabs_base"),c=YB($B(a));$APP.r(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.xk.g(c)),c=$APP.T.g(c),$APP.r($APP.r(c)?$APP.O(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return iC(a)},nC=function(a){var b=new MutationObserver(function(){return mC(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},oC=function(a){function b(d){a:{var e=
8
+ $APP.Be($APP.ge(bC,aC(a))),g=YB($B(a)),h=$APP.xk.g(g);var k=VB.g(g);g=$APP.zl.g(g);var m=d.key,p=e.indexOf(document.activeElement);if(p>=0&&(h=$APP.D.i(h,"horizontal")&&$APP.D.i(m,"ArrowRight")?kC(p,e,g):$APP.D.i(h,"horizontal")&&$APP.D.i(m,"ArrowLeft")?lC(p,e,g):$APP.D.i(h,"vertical")&&$APP.D.i(m,"ArrowDown")?kC(p,e,g):$APP.D.i(h,"vertical")&&$APP.D.i(m,"ArrowUp")?lC(p,e,g):$APP.D.i(m,"Home")?0:$APP.D.i(m,"End")?$APP.B(e)-1:null,h!=null)){d.preventDefault();d=$APP.Cc(e,h,null);$APP.r(d)?d.focus():
9
+ d=null;k=$APP.r(d)?$APP.D.i(k,"auto")?jC(a,cC(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return jC(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;nC(a)},pC=function(a){Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.r(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},
10
+ rC=function(){var a=class extends HTMLElement{};a.observedAttributes=qC;a.prototype.connectedCallback=function(){if(ZB(this)){oC(this);var b=mC(this)}else{if(!ZB(this)){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
11
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_tabs_root=b;this.__x_tabs_base=d;this.__x_tabs_slot=e;oC(this);this.__x_tabs_initialized=!0}mC(this);b=this}return b};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__x_tabs_on_tab_select");$APP.r(b)&&this.removeEventListener("tab-select",b);b=$APP.l(this,"__x_tabs_on_keydown");$APP.r(b)&&this.removeEventListener("keydown",b);b=$APP.l(this,"__x_tabs_observer");return $APP.r(b)?
12
+ b.disconnect():null};a.prototype.attributeChangedCallback=function(){return ZB(this)?mC(this):null};pC(a);return a},sC=function(){return $APP.r(customElements.get("x-tabs"))?null:customElements.define("x-tabs",rC())},VB=new $APP.M(null,"activation","activation",2128521072);var qC=["value","orientation","activation","label","loop"],WB=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),XB=new $APP.R(null,new $APP.P(null,2,["auto",null,"manual",null],null),null);$APP.Sd(["value-change",new $APP.P(null,1,[$APP.U,new $APP.P(null,1,[$APP.ui,$APP.Y],null)],null)]);$APP.ka("baredom.exports.x_tabs.init",sC);export const init=sC;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var lQ=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:null):null},mQ=function(a,b,c){return a.setAttribute(b,c)},nQ=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},oQ=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.C.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
- c):b.setValidity({},"",c)},xQ=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(b,"textarea"),d=$APP.l(b,"label"),e=$APP.l(b,"hint");b=$APP.l(b,"error");var g=$APP.mf([pQ,$APP.sh,$APP.Pj,$APP.Kh,$APP.Zh,qQ,$APP.ck,rQ,$APP.Xg,$APP.Bi,$APP.Ak,$APP.rh,sQ,$APP.Qh],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
- a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.N(g),k=$APP.I(h,sQ),m=$APP.I(h,$APP.Qh),p=$APP.I(h,pQ),q=$APP.I(h,$APP.sh),v=$APP.I(h,$APP.Pj),x=$APP.I(h,$APP.Kh),y=$APP.I(h,$APP.Zh),A=$APP.I(h,qQ);g=$APP.I(h,$APP.ck);var D=$APP.I(h,rQ),G=$APP.I(h,$APP.Xg),H=$APP.I(h,$APP.Bi),F=$APP.I(h,$APP.Ak);h=$APP.I(h,$APP.rh);var P=$APP.n(x)?x:"",la=$APP.n(y)?y:"",Ca=$APP.n(q)?q:"";G=$APP.J(G);H=$APP.J(H);
5
- m=$APP.n(m)?m:"";y=typeof y==="string"&&$APP.O(y,"")&&y!=null;v=$APP.n(v)?v:"";F=$APP.n(F)?F:"";k=lQ(k);q=typeof q==="string"&&$APP.O(q,"")&&q!=null;x=typeof x==="string"&&$APP.O(x,"")&&x!=null;p=typeof p==="string"&&$APP.K(tQ,p)?p:"vertical";A=lQ(A);g=$APP.mf([$APP.ph,$APP.Uk,$APP.xk,$APP.wh,$APP.si,$APP.Xh,uQ,$APP.Sj,$APP.zj,vQ,$APP.jk,wQ,$APP.ji,$APP.U,$APP.Gh,$APP.lk,$APP.X],[G,H,m,y,v,F,k,q,x,p,la,lQ(D),$APP.n(A)?A:3,Ca,P,$APP.n(h)?h:"",$APP.J(g)]);D=$APP.zj.g(g);A=$APP.wh.g(g);h=$APP.Sj.g(g);
6
- c.name=$APP.si.g(g);c.placeholder=$APP.xk.g(g);c.disabled=$APP.X.g(g);c.readOnly=$APP.Uk.g(g);c.required=$APP.ph.g(g);c.rows=$APP.ji.g(g);c.autocomplete=$APP.lk.g(g);P=wQ.g(g);$APP.n(P)?mQ(c,"maxlength",""+$APP.T.g(P)):c.removeAttribute("maxlength");P=uQ.g(g);$APP.n(P)?mQ(c,"minlength",""+$APP.T.g(P)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",vQ.g(g));mQ(c,"aria-required",$APP.n($APP.ph.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(D)?"true":"false");P=
7
- $APP.n($APP.n(A)?D:A)?"hint error":$APP.n(A)?"hint":$APP.n(D)?"error":null;$APP.n(P)?c.setAttribute("aria-describedby",P):c.removeAttribute("aria-describedby");d.textContent=$APP.U.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.jk.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Gh.g(g);$APP.n(D)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");nQ(a,"data-invalid",D);d=$APP.l(a,
8
- "__xTextAreaInternals");return $APP.n(d)?oQ(a,d,c):null}return null},yQ=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},zQ=function(a){return function(){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),oQ(a,e,b));return yQ(a,"x-text-area-input",{name:d,value:c})}return null}},AQ=function(a){return function(){var b=
9
- $APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),oQ(a,e,b));return yQ(a,"x-text-area-change",{name:d,value:c})}return null}},BQ=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.l(b,"textarea");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));
10
- a.__xTextAreaHandlers=null;return}}return null},CQ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.O(d)?mQ(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},DQ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return nQ(this,c,$APP.J(d))}})},EQ=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
- enumerable:!0,get:function(){var e=lQ(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.O(e)&&e>0?mQ(this,c,""+$APP.T.g(Math.floor(e))):this.removeAttribute(c)}})},FQ=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.T.g(b):"";this.setAttribute("value",
12
- b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},HQ=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return GQ}});FQ(b);CQ(b,"name","name");CQ(b,"placeholder","placeholder");CQ(b,"autocomplete","autocomplete");DQ(b,"disabled","disabled");DQ(b,"readOnly","readonly");DQ(b,"required","required");EQ(b,"rows","rows",3);EQ(b,"maxLength","maxlength",null);EQ(b,"minLength",
13
- "minlength",null);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),k=document.createElement("textarea"),m=document.createElement("span"),p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:0.875rem;--x-text-area-bg:#ffffff;--x-text-area-color:#111827;--x-text-area-border:1px solid #d1d5db;--x-text-area-border-radius:6px;--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:#2563eb;--x-text-area-error-color:#dc2626;--x-text-area-hint-color:#6b7280;--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:1rem;--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:#d1d5db;--x-text-area-bg:#1f2937;--x-text-area-color:#f9fafb;--x-text-area-border:1px solid #4b5563;--x-text-area-focus-ring-color:#3b82f6;--x-text-area-error-color:#f87171;--x-text-area-hint-color:#9ca3af;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
2
+ var XU=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.t(isNaN(a))&&a>0?a:null):null},YU=function(a,b,c){return a.setAttribute(b,c)},ZU=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},$U=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.r(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.r(d)?b.setValidity({customError:!0},e,c):$APP.r($APP.r(a)?$APP.D.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
+ c):b.setValidity({},"",c)},iV=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.r(b)){var c=$APP.l(b,"textarea"),d=$APP.l(b,"label"),e=$APP.l(b,"hint");b=$APP.l(b,"error");var g=$APP.Q([aV,$APP.Oh,$APP.Ek,$APP.ci,$APP.wi,bV,$APP.Rk,cV,$APP.sh,$APP.cj,$APP.vl,$APP.Nh,dV,$APP.ii],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
+ a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.N(g),k=$APP.G(h,dV),m=$APP.G(h,$APP.ii),p=$APP.G(h,aV),q=$APP.G(h,$APP.Oh),w=$APP.G(h,$APP.Ek),x=$APP.G(h,$APP.ci),y=$APP.G(h,$APP.wi),A=$APP.G(h,bV);g=$APP.G(h,$APP.Rk);var C=$APP.G(h,cV),E=$APP.G(h,$APP.sh),H=$APP.G(h,$APP.cj),F=$APP.G(h,$APP.vl);h=$APP.G(h,$APP.Nh);var K=$APP.r(x)?x:"",X=$APP.r(y)?y:"",da=$APP.r(q)?q:"";E=$APP.I(E);H=$APP.I(H);
5
+ m=$APP.r(m)?m:"";y=typeof y==="string"&&$APP.O(y,"")&&y!=null;w=$APP.r(w)?w:"";F=$APP.r(F)?F:"";k=XU(k);q=typeof q==="string"&&$APP.O(q,"")&&q!=null;x=typeof x==="string"&&$APP.O(x,"")&&x!=null;p=typeof p==="string"&&$APP.J(eV,p)?p:"vertical";A=XU(A);g=$APP.Q([$APP.Lh,$APP.Sl,$APP.rl,$APP.Sh,$APP.Si,$APP.ui,fV,$APP.Hk,$APP.jk,gV,$APP.$k,hV,$APP.Ji,$APP.T,$APP.Zh,$APP.bl,$APP.W],[E,H,m,y,w,F,k,q,x,p,X,XU(C),$APP.r(A)?A:3,da,K,$APP.r(h)?h:"",$APP.I(g)]);C=$APP.jk.g(g);A=$APP.Sh.g(g);h=$APP.Hk.g(g);
6
+ c.name=$APP.Si.g(g);c.placeholder=$APP.rl.g(g);c.disabled=$APP.W.g(g);c.readOnly=$APP.Sl.g(g);c.required=$APP.Lh.g(g);c.rows=$APP.Ji.g(g);c.autocomplete=$APP.bl.g(g);K=hV.g(g);$APP.r(K)?YU(c,"maxlength",""+$APP.S.g(K)):c.removeAttribute("maxlength");K=fV.g(g);$APP.r(K)?YU(c,"minlength",""+$APP.S.g(K)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",gV.g(g));YU(c,"aria-required",$APP.r($APP.Lh.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.r(C)?"true":"false");K=
7
+ $APP.r($APP.r(A)?C:A)?"hint error":$APP.r(A)?"hint":$APP.r(C)?"error":null;$APP.r(K)?c.setAttribute("aria-describedby",K):c.removeAttribute("aria-describedby");d.textContent=$APP.T.g(g);$APP.r(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.$k.g(g);$APP.r(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Zh.g(g);$APP.r(C)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");ZU(a,"data-invalid",C);d=$APP.l(a,
8
+ "__xTextAreaInternals");return $APP.r(d)?$U(a,d,c):null}return null},jV=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},kV=function(a){return function(){var b=$APP.l(a,"__xTextAreaRefs");if($APP.r(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.r(e)&&(e.setFormValue(c),$U(a,e,b));return jV(a,"x-text-area-input",{name:d,value:c})}return null}},lV=function(a){return function(){var b=
9
+ $APP.l(a,"__xTextAreaRefs");if($APP.r(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.r(e)&&(e.setFormValue(c),$U(a,e,b));return jV(a,"x-text-area-change",{name:d,value:c})}return null}},mV=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.r(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.r(c)){b=$APP.l(b,"textarea");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));
10
+ a.__xTextAreaHandlers=null;return}}return null},nV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){return d!=null&&$APP.O(d)?YU(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},oV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ZU(this,c,$APP.I(d))}})},pV=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
+ enumerable:!0,get:function(){var e=XU(this.getAttribute(c));return $APP.r(e)?e:d},set:function(e){return e!=null&&$APP.O(e)&&e>0?YU(this,c,""+$APP.S.g(Math.floor(e))):this.removeAttribute(c)}})},qV=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.r(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.r(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",
12
+ b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.r(c)?$APP.l(c,"textarea").value=b:null}})},sV=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return rV}});qV(b);nV(b,"name","name");nV(b,"placeholder","placeholder");nV(b,"autocomplete","autocomplete");oV(b,"disabled","disabled");oV(b,"readOnly","readonly");oV(b,"required","required");pV(b,"rows","rows",3);pV(b,"maxLength","maxlength",null);pV(b,"minLength",
13
+ "minlength",null);b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),k=document.createElement("textarea"),m=document.createElement("span"),p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:0.875rem;--x-text-area-bg:#ffffff;--x-text-area-color:#111827;--x-text-area-border:1px solid #d1d5db;--x-text-area-border-radius:6px;--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:#2563eb;--x-text-area-error-color:#dc2626;--x-text-area-hint-color:#6b7280;--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:1rem;--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:#d1d5db;--x-text-area-bg:#1f2937;--x-text-area-color:#f9fafb;--x-text-area-border:1px solid #4b5563;--x-text-area-focus-ring-color:#3b82f6;--x-text-area-error-color:#f87171;--x-text-area-hint-color:#9ca3af;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
14
14
  e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","textarea");h.setAttribute("part","textarea-wrapper");k.setAttribute("part","textarea");k.setAttribute("id","textarea");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(k);
15
- e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:k,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}BQ(this);c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=
16
- $APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=zQ(this),e=AQ(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return xQ(this)};b.disconnectedCallback=function(){return BQ(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.l(c,"textarea"),$APP.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return xQ(this)};b.formDisabledCallback=function(c){nQ(this,
17
- "disabled",$APP.J(c));return xQ(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&($APP.l(c,"textarea").value="");c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&c.setFormValue("");return xQ(this)};return a},IQ=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",HQ())},uQ=new $APP.M(null,"minlength","minlength",259053545),sQ=new $APP.M(null,"minlength-raw","minlength-raw",-1245403779),
18
- rQ=new $APP.M(null,"maxlength-raw","maxlength-raw",-886656470),wQ=new $APP.M(null,"maxlength","maxlength",-1163911985),pQ=new $APP.M(null,"resize-raw","resize-raw",-287517888),qQ=new $APP.M(null,"rows-raw","rows-raw",-1828357145),vQ=new $APP.M(null,"resize","resize",297367086);var GQ="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),tQ=new $APP.S(null,new $APP.R(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
- $APP.mf([$APP.Di,$APP.si,$APP.Xh,new $APP.M(null,"minLength","minLength",-1538722770),$APP.ji,$APP.tk,new $APP.M(null,"maxLength","maxLength",-1633020073),$APP.lk,$APP.kj],[new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.nj,"minlength"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.nj,"rows"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,
20
- "readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.nj,"maxlength"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"autocomplete"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"required"],null)]);$APP.ja("baredom.exports.x_text_area.init",IQ);export const init=IQ;
15
+ e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:k,hint:m,error:p};$APP.r(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}mV(this);c=$APP.l(this,"__xTextAreaRefs");$APP.r(c)&&(c=$APP.l(c,"textarea"),d=this.getAttribute("value"),$APP.r(d)&&(c.value=d));c=$APP.l(this,"__xTextAreaInternals");$APP.r(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.r(e)?e:""));c=
16
+ $APP.l(this,"__xTextAreaRefs");$APP.r(c)&&(c=$APP.l(c,"textarea"),d=kV(this),e=lV(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return iV(this)};b.disconnectedCallback=function(){return mV(this)};b.attributeChangedCallback=function(c,d,e){$APP.D.i(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.r(c)&&(c=$APP.l(c,"textarea"),$APP.O(c.value,e)&&(c.value=$APP.r(e)?e:"")));return iV(this)};b.formDisabledCallback=function(c){ZU(this,
17
+ "disabled",$APP.I(c));return iV(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xTextAreaRefs");$APP.r(c)&&($APP.l(c,"textarea").value="");c=$APP.l(this,"__xTextAreaInternals");$APP.r(c)&&c.setFormValue("");return iV(this)};return a},tV=function(){return $APP.r(customElements.get("x-text-area"))?null:customElements.define("x-text-area",sV())},fV=new $APP.M(null,"minlength","minlength",259053545),dV=new $APP.M(null,"minlength-raw","minlength-raw",-1245403779),
18
+ cV=new $APP.M(null,"maxlength-raw","maxlength-raw",-886656470),hV=new $APP.M(null,"maxlength","maxlength",-1163911985),aV=new $APP.M(null,"resize-raw","resize-raw",-287517888),bV=new $APP.M(null,"rows-raw","rows-raw",-1828357145),gV=new $APP.M(null,"resize","resize",297367086);var rV="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),eV=new $APP.R(null,new $APP.P(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
+ $APP.Q([$APP.gj,$APP.Si,$APP.ui,new $APP.M(null,"minLength","minLength",-1538722770),$APP.Ji,$APP.ml,new $APP.M(null,"maxLength","maxLength",-1633020073),$APP.bl,$APP.Kj],[new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Oj,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Oj,"minlength"],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Oj,"rows"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Oj,"readonly"],
20
+ null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Oj,"maxlength"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"autocomplete"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Oj,"required"],null)]);$APP.ka("baredom.exports.x_text_area.init",tV);export const init=tV;
@@ -1,25 +1,25 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var rl=function(a){a=$APP.I(ql,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.mh},tl=function(a){a=$APP.I(sl,a);return $APP.n(a)?a:"pending"},wl=function(a){a=$APP.I(ul,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:vl},xl=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},yl=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>=0?a:null):null},Al=function(a,
3
- b){a=$APP.I(zl,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.I(zl,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.sk);return b},Bl=function(a,b,c){a=tl(a);c=c!=null?"Step "+$APP.T.g(c+1)+": ":null;return""+$APP.T.g(c)+$APP.T.g(typeof b==="string"&&$APP.O(b,"")?""+$APP.T.g(b)+" ":null)+"("+$APP.T.g(a)+")"},Pl=function(a){var b=$APP.N(a),c=$APP.I(b,Cl);a=$APP.I(b,$APP.X);var d=$APP.I(b,$APP.Ki),e=$APP.I(b,$APP.sh),g=$APP.I(b,Dl),h=$APP.I(b,El),k=$APP.I(b,Fl),m=$APP.I(b,
4
- $APP.Uh),p=$APP.I(b,Gl),q=$APP.I(b,$APP.ch),v=$APP.I(b,Hl);b=$APP.I(b,$APP.vi);var x=rl(m),y=xl(b),A=$APP.n($APP.n(q)?y==null:q)?$APP.Sk:y!=null?$APP.Tj:$APP.oh;m=function(){var D=A instanceof $APP.M?A.qa:null;switch(D){case "default":return D=$APP.I(Il,x),$APP.n(D)?D:$APP.I(Il,$APP.mh);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.T.g(D));}}();c=yl(c);d=Al(k,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.mf([Jl,Kl,Ll,Dl,Gl,$APP.tj,Ml,$APP.ij,$APP.U,
5
- Nl,$APP.Xi,$APP.X,Ol],[wl(h),c,m,$APP.J(g),$APP.J(p),$APP.C.h(A,$APP.Tj)?y:null,v,x,e,Bl(x,e,c),A,$APP.J(a),d])},Ql=function(a){a=$APP.N(a);a=$APP.I(a,$APP.X);return $APP.r(a)},km=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
- p=document.createElement("slot"),q=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),D=document.createElement("slot"),G=document.createElement("div"),H=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
- d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);k.setAttribute("class","track-col");m.setAttribute("class","marker");p.setAttribute("name","icon");q.setAttribute("class","default-icon");q.setAttribute("aria-hidden","true");p.appendChild(q);m.appendChild(p);v.setAttribute("class","connector");k.appendChild(m);k.appendChild(v);x.setAttribute("class","content-col");y.setAttribute("class",
8
- "title");A.setAttribute("class","body");A.appendChild(D);G.setAttribute("class","actions");H.setAttribute("name","actions");G.appendChild(H);x.appendChild(y);x.appendChild(A);x.appendChild(G);d.appendChild(e);d.appendChild(k);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.mf([Jl,Rl,$APP.uj,$APP.Ok,Sl,Tl,$APP.Fk,Ul,$APP.Jh,Vl,Wl,Xl,Yl,Zl,$APP.pi,$l],[v,h,m,q,e,k,A,D,b,H,y,x,d,G,p,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},lm=function(a){return Pl($APP.mf([$APP.Ki,
9
- $APP.sh,Dl,El,Fl,$APP.Uh,Gl,$APP.ch,Hl,$APP.vi,Cl,$APP.X],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},om=function(a){var b=lm(a);if($APP.O($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.U),d=$APP.I(b,
10
- Ml),e=$APP.I(b,$APP.ij),g=$APP.I(b,Ol),h=$APP.I(b,$APP.X),k=$APP.I(b,Ll),m=$APP.I(b,Nl),p=km(a),q=$APP.N(p);p=$APP.I(q,Rl);var v=$APP.I(q,$APP.uj),x=$APP.I(q,Wl);q=$APP.I(q,$APP.Ok);a.setAttribute("data-status",tl(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.Of(g));a.__xTimelineItemSelfPos=null;$APP.C.h(Jl.g(b),mm)?a.setAttribute("data-connector","dashed"):$APP.C.h(Jl.g(b),nm)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role",
11
- "listitem");$APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.O(d,"")?d:$APP.O(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);p.textContent=c;q.textContent=k!=null?k:"";$APP.O(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},pm=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||
12
- (a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.C.h(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},qm=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.n(b)?b:lm(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.I(e,$APP.ij);e=$APP.I(e,$APP.U);c=new $APP.R(null,2,[$APP.ij,tl(c),$APP.U,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.Sg(c),bubbles:!0,
13
- composed:!0,cancelable:!0}))},rm=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.h(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:lm(a),Ql(e)&&(d.preventDefault(),qm(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:lm(a);Ql(d)&&qm(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTimelineItemHandlers",{click:c,keydown:b})},sm=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
- $APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},tm=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
- return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("title",""+$APP.T.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});Object.defineProperty(a,"status",{get:function(){var b=this.getAttribute("status");return $APP.n(b)?b:"pending"},set:function(b){return $APP.n(b)?this.setAttribute("status",""+$APP.T.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
- set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"connector",{get:function(){var b=this.getAttribute("connector");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("connector",""+$APP.T.g(b)):this.removeAttribute("connector")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){var b=this.getAttribute("position");return $APP.n(b)?
17
- b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},vm=function(){var a=class extends HTMLElement{};a.observedAttributes=um;a.prototype.connectedCallback=function(){km(this);sm(this);
18
- rm(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);om(this);pm(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:lm(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.I(e,$APP.ij);var g=$APP.I(e,$APP.U),h=$APP.I(e,Ol);e=$APP.I(e,$APP.X);c=new $APP.R(null,4,[$APP.ij,tl(c),$APP.U,g,$APP.Tk,$APP.Of(h),$APP.Di,$APP.J(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.Sg(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
- a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:lm(this);sm(this);this.__xTimelineItemEntered=null;b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.N(c);c=$APP.I(g,$APP.ij);g=$APP.I(g,$APP.U);c=new $APP.R(null,2,[$APP.ij,tl(c),$APP.U,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.Sg(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.O(c,d))c=$APP.C.h(b,
20
- "data-position"),c=!$APP.n(c?$APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.C.h(b,"data-position")&&(this.__xTimelineItemParentPos=d),om(this));return null};tm(a.prototype);return a},wm=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",vm());return null},Tl=new $APP.M(null,"track-col","track-col",629248272),Vl=new $APP.M(null,"actions-slot","actions-slot",1424248629),Jl=new $APP.M(null,"connector","connector",-1517293248),Ml=new $APP.M(null,"title",
21
- "title",636505583),El=new $APP.M(null,"connector-raw","connector-raw",106333796),Ol=new $APP.M(null,"effective-position","effective-position",840072317),Sl=new $APP.M(null,"label-col","label-col",1883390160),Rl=new $APP.M(null,"label-text","label-text",-1566972381),Dl=new $APP.M(null,"data-striped?","data-striped?",906911587),Zl=new $APP.M(null,"actions-el","actions-el",1486248509),Xl=new $APP.M(null,"content-col","content-col",767367449),mm=new $APP.M(null,"dashed","dashed",-1449249319),Yl=new $APP.M(null,
22
- "item-div","item-div",1630512700),Nl=new $APP.M(null,"marker-aria","marker-aria",-353426855),Hl=new $APP.M(null,"title-raw","title-raw",976469452),Ll=new $APP.M(null,"marker-icon","marker-icon",424963779),vl=new $APP.M(null,"solid","solid",-2023773691),Wl=new $APP.M(null,"title-el","title-el",-401767816),Ul=new $APP.M(null,"default-slot","default-slot",-1145647151),Gl=new $APP.M(null,"data-last?","data-last?",-1110326839),Fl=new $APP.M(null,"data-position-raw","data-position-raw",256144356),Cl=new $APP.M(null,
23
- "data-index-raw","data-index-raw",491574874),Kl=new $APP.M(null,"data-index","data-index",1161508385),$l=new $APP.M(null,"label-slot","label-slot",-1755862561),nm=new $APP.M(null,"none","none",1333468478);var um="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
24
- $APP.Ed(["x-timeline-item-connected",new $APP.R(null,2,[$APP.V,new $APP.R(null,4,[$APP.ij,$APP.Y,$APP.U,$APP.Y,$APP.Tk,$APP.Y,$APP.Di,$APP.Ni],null),$APP.rk,!1],null),"x-timeline-item-disconnected",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.ij,$APP.Y,$APP.U,$APP.Y],null),$APP.rk,!1],null),"x-timeline-item-click",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.ij,$APP.Y,$APP.U,$APP.Y],null),$APP.rk,!0],null)]);
25
- var ql=new $APP.R(null,5,["pending",$APP.mh,"active",$APP.Ai,"complete",$APP.Jk,"error",$APP.Gh,"warning",$APP.qk],null),sl=new $APP.R(null,5,[$APP.mh,"pending",$APP.Ai,"active",$APP.Jk,"complete",$APP.Gh,"error",$APP.qk,"warning"],null),Il=new $APP.R(null,5,[$APP.mh,"○",$APP.Ai,"●",$APP.Jk,"✓",$APP.Gh,"✕",$APP.qk,"!"],null),ul=new $APP.R(null,3,["solid",vl,"dashed",mm,"none",nm],null),zl=new $APP.R(null,2,["start",$APP.sk,"end",$APP.Mh],null);$APP.ja("baredom.exports.x_timeline_item.init",wm);export const init=wm;
2
+ var qm=function(a){a=$APP.G(pm,typeof a==="string"?a.toLowerCase():null);return $APP.r(a)?a:$APP.Ih},sm=function(a){a=$APP.G(rm,a);return $APP.r(a)?a:"pending"},vm=function(a){a=$APP.G(tm,typeof a==="string"?a.toLowerCase():null);return $APP.r(a)?a:um},wm=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},xm=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.t(isNaN(a))&&a>=0?a:null):null},zm=function(a,
3
+ b){a=$APP.G(ym,typeof a==="string"?a.toLowerCase():null);$APP.r(a)?b=a:(b=$APP.G(ym,typeof b==="string"?b.toLowerCase():null),b=$APP.r(b)?b:$APP.ll);return b},Am=function(a,b,c){a=sm(a);c=c!=null?"Step "+$APP.S.g(c+1)+": ":null;return""+$APP.S.g(c)+$APP.S.g(typeof b==="string"&&$APP.O(b,"")?""+$APP.S.g(b)+" ":null)+"("+$APP.S.g(a)+")"},Om=function(a){var b=$APP.N(a),c=$APP.G(b,Bm);a=$APP.G(b,$APP.W);var d=$APP.G(b,$APP.nj),e=$APP.G(b,$APP.Oh),g=$APP.G(b,Cm),h=$APP.G(b,Dm),k=$APP.G(b,Em),m=$APP.G(b,
4
+ $APP.mi),p=$APP.G(b,Fm),q=$APP.G(b,$APP.yh),w=$APP.G(b,Gm);b=$APP.G(b,$APP.Vi);var x=qm(m),y=wm(b),A=$APP.r($APP.r(q)?y==null:q)?$APP.Ql:y!=null?$APP.Ik:$APP.Kh;m=function(){var C=A instanceof $APP.M?A.ra:null;switch(C){case "default":return C=$APP.G(Hm,x),$APP.r(C)?C:$APP.G(Hm,$APP.Ih);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.S.g(C));}}();c=xm(c);d=zm(k,d);e=$APP.r(e)?e:"";w=$APP.r(w)?w:"";return $APP.Q([Im,Jm,Km,Cm,Fm,$APP.Wj,Lm,$APP.Ij,$APP.T,
5
+ Mm,$APP.Bj,$APP.W,Nm],[vm(h),c,m,$APP.I(g),$APP.I(p),$APP.D.i(A,$APP.Ik)?y:null,w,x,e,Am(x,e,c),A,$APP.I(a),d])},Pm=function(a){a=$APP.N(a);a=$APP.G(a,$APP.W);return $APP.t(a)},$m=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
+ p=document.createElement("slot"),q=document.createElement("span"),w=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),C=document.createElement("slot"),E=document.createElement("div"),H=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
+ d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);k.setAttribute("class","track-col");m.setAttribute("class","marker");p.setAttribute("name","icon");q.setAttribute("class","default-icon");q.setAttribute("aria-hidden","true");p.appendChild(q);m.appendChild(p);w.setAttribute("class","connector");k.appendChild(m);k.appendChild(w);x.setAttribute("class","content-col");y.setAttribute("class",
8
+ "title");A.setAttribute("class","body");A.appendChild(C);E.setAttribute("class","actions");H.setAttribute("name","actions");E.appendChild(H);x.appendChild(y);x.appendChild(A);x.appendChild(E);d.appendChild(e);d.appendChild(k);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.Q([Im,Qm,$APP.Xj,$APP.Ll,Rm,Sm,$APP.Al,Tm,$APP.bi,Um,Vm,Wm,Xm,Ym,$APP.Pi,Zm],[w,h,m,q,e,k,A,C,b,H,y,x,d,E,p,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},an=function(a){return Om($APP.Q([$APP.nj,
9
+ $APP.Oh,Cm,Dm,Em,$APP.mi,Fm,$APP.yh,Gm,$APP.Vi,Bm,$APP.W],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},dn=function(a){var b=an(a);if($APP.O($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.T),d=$APP.G(b,
10
+ Lm),e=$APP.G(b,$APP.Ij),g=$APP.G(b,Nm),h=$APP.G(b,$APP.W),k=$APP.G(b,Km),m=$APP.G(b,Mm),p=$m(a),q=$APP.N(p);p=$APP.G(q,Qm);var w=$APP.G(q,$APP.Xj),x=$APP.G(q,Vm);q=$APP.G(q,$APP.Ll);a.setAttribute("data-status",sm(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.eg(g));a.__xTimelineItemSelfPos=null;$APP.D.i(Im.g(b),bn)?a.setAttribute("data-connector","dashed"):$APP.D.i(Im.g(b),cn)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role",
11
+ "listitem");$APP.r(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.O(d,"")?d:$APP.O(c,"")?c:null;$APP.r(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");w.setAttribute("aria-label",m);p.textContent=c;q.textContent=k!=null?k:"";$APP.O(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},en=function(a){$APP.r($APP.l(a,"__xTimelineItemEntered"))||
12
+ (a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.D.i(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},fn=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.r(b)?b:an(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.G(e,$APP.Ij);e=$APP.G(e,$APP.T);c=new $APP.P(null,2,[$APP.Ij,sm(c),$APP.T,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.nh(c),bubbles:!0,
13
+ composed:!0,cancelable:!0}))},gn=function(a){function b(d){var e=d.key;if($APP.D.i(e,"Enter")||$APP.D.i(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.r(e)?e:an(a),Pm(e)&&(d.preventDefault(),fn(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.r(d)?d:an(a);Pm(d)&&fn(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.n(a,"__xTimelineItemHandlers",{click:c,keydown:b})},hn=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.r(b)){var c=
14
+ $APP.l(b,"click");b=$APP.l(b,"keydown");$APP.r(c)&&a.removeEventListener("click",c);$APP.r(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},jn=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
+ return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("title",""+$APP.S.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});Object.defineProperty(a,"status",{get:function(){var b=this.getAttribute("status");return $APP.r(b)?b:"pending"},set:function(b){return $APP.r(b)?this.setAttribute("status",""+$APP.S.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
+ set:function(b){return $APP.r(b)?this.setAttribute("icon",""+$APP.S.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"connector",{get:function(){var b=this.getAttribute("connector");return $APP.r(b)?b:"solid"},set:function(b){return $APP.r(b)?this.setAttribute("connector",""+$APP.S.g(b)):this.removeAttribute("connector")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){var b=this.getAttribute("position");return $APP.r(b)?
17
+ b:"start"},set:function(b){return $APP.r(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},ln=function(){var a=class extends HTMLElement{};a.observedAttributes=kn;a.prototype.connectedCallback=function(){$m(this);hn(this);
18
+ gn(this);var b=this.getAttribute("data-position");$APP.r(b)&&(this.__xTimelineItemParentPos=b);dn(this);en(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.r(b)?b:an(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.G(e,$APP.Ij);var g=$APP.G(e,$APP.T),h=$APP.G(e,Nm);e=$APP.G(e,$APP.W);c=new $APP.P(null,4,[$APP.Ij,sm(c),$APP.T,g,$APP.Rl,$APP.eg(h),$APP.gj,$APP.I(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
+ a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xTimelineItemModel");var c=$APP.r(b)?b:an(this);hn(this);this.__xTimelineItemEntered=null;b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.N(c);c=$APP.G(g,$APP.Ij);g=$APP.G(g,$APP.T);c=new $APP.P(null,2,[$APP.Ij,sm(c),$APP.T,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.nh(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.O(c,d))c=$APP.D.i(b,
20
+ "data-position"),c=!$APP.r(c?$APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.D.i(b,"data-position")&&(this.__xTimelineItemParentPos=d),dn(this));return null};jn(a.prototype);return a},mn=function(){$APP.r(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",ln());return null},Sm=new $APP.M(null,"track-col","track-col",629248272),Um=new $APP.M(null,"actions-slot","actions-slot",1424248629),Im=new $APP.M(null,"connector","connector",-1517293248),Lm=new $APP.M(null,"title",
21
+ "title",636505583),Dm=new $APP.M(null,"connector-raw","connector-raw",106333796),Nm=new $APP.M(null,"effective-position","effective-position",840072317),Rm=new $APP.M(null,"label-col","label-col",1883390160),Qm=new $APP.M(null,"label-text","label-text",-1566972381),Cm=new $APP.M(null,"data-striped?","data-striped?",906911587),Ym=new $APP.M(null,"actions-el","actions-el",1486248509),Wm=new $APP.M(null,"content-col","content-col",767367449),bn=new $APP.M(null,"dashed","dashed",-1449249319),Xm=new $APP.M(null,
22
+ "item-div","item-div",1630512700),Mm=new $APP.M(null,"marker-aria","marker-aria",-353426855),Gm=new $APP.M(null,"title-raw","title-raw",976469452),Km=new $APP.M(null,"marker-icon","marker-icon",424963779),um=new $APP.M(null,"solid","solid",-2023773691),Vm=new $APP.M(null,"title-el","title-el",-401767816),Tm=new $APP.M(null,"default-slot","default-slot",-1145647151),Fm=new $APP.M(null,"data-last?","data-last?",-1110326839),Em=new $APP.M(null,"data-position-raw","data-position-raw",256144356),Bm=new $APP.M(null,
23
+ "data-index-raw","data-index-raw",491574874),Jm=new $APP.M(null,"data-index","data-index",1161508385),Zm=new $APP.M(null,"label-slot","label-slot",-1755862561),cn=new $APP.M(null,"none","none",1333468478);var kn="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
24
+ $APP.Sd(["x-timeline-item-connected",new $APP.P(null,2,[$APP.U,new $APP.P(null,4,[$APP.Ij,$APP.Y,$APP.T,$APP.Y,$APP.Rl,$APP.Y,$APP.gj,$APP.qj],null),$APP.kl,!1],null),"x-timeline-item-disconnected",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ij,$APP.Y,$APP.T,$APP.Y],null),$APP.kl,!1],null),"x-timeline-item-click",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ij,$APP.Y,$APP.T,$APP.Y],null),$APP.kl,!0],null)]);
25
+ var pm=new $APP.P(null,5,["pending",$APP.Ih,"active",$APP.bj,"complete",$APP.El,"error",$APP.Zh,"warning",$APP.il],null),rm=new $APP.P(null,5,[$APP.Ih,"pending",$APP.bj,"active",$APP.El,"complete",$APP.Zh,"error",$APP.il,"warning"],null),Hm=new $APP.P(null,5,[$APP.Ih,"○",$APP.bj,"●",$APP.El,"✓",$APP.Zh,"✕",$APP.il,"!"],null),tm=new $APP.P(null,3,["solid",um,"dashed",bn,"none",cn],null),ym=new $APP.P(null,2,["start",$APP.ll,"end",$APP.ei],null);$APP.ka("baredom.exports.x_timeline_item.init",mn);export const init=mn;
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var PO=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.K(OO,a)?a:"start"},QO=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.Vc(b,2)===0?"start":"end";default:return"start"}},SO=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:inherit;--x-timeline-label-font-size:0.875rem;--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
- d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.R(null,3,[$APP.Jh,b,RO,d,$APP.Uj,e],null);return $APP.l(a,"__xTimelineRefs")},TO=function(a){a=new $APP.R(null,3,[$APP.sh,a.getAttribute("label"),$APP.Ki,a.getAttribute("position"),$APP.Aj,a.hasAttribute("striped")],null);var b=$APP.N(a);a=$APP.I(b,$APP.sh);var c=$APP.I(b,$APP.Ki);b=$APP.I(b,$APP.Aj);return new $APP.R(null,3,[$APP.U,$APP.n(a)?a:"",$APP.Tk,PO(c),
4
- $APP.Aj,$APP.J(b)],null)},UO=function(a){var b=TO(a);if($APP.O($APP.l(a,"__xTimelineModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.U),d=SO(a);d=$APP.N(d);d=$APP.I(d,RO);a.setAttribute("role","list");$APP.O(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.O(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},VO=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:TO(a);var c=$APP.N(b);b=$APP.I(c,$APP.Tk);
5
- c=$APP.I(c,$APP.Aj);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.C.h(e,d-1);g.setAttribute("data-index",""+$APP.T.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",QO(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},WO=function(a){function b(){$APP.n(a.isConnected)&&VO(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
- e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.Sg(new $APP.R(null,3,[$APP.ih,$APP.n(g)?g:0,$APP.ij,$APP.n(h)?h:"",$APP.U,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){VO(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
- b);$APP.ma(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},XO=function(a){var b=$APP.l(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},YO=function(a){Object.defineProperty(a,
8
- "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return PO(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
- "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},$O=function(){var a=class extends HTMLElement{};a.observedAttributes=ZO;a.prototype.connectedCallback=function(){SO(this);UO(this);XO(this);WO(this);VO(this);return null};a.prototype.disconnectedCallback=function(){XO(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(UO(this),
10
- VO(this));return null};YO(a.prototype);return a},aP=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",$O());return null},RO=new $APP.M(null,"label-div","label-div",1505730697);var ZO=["label","position","striped"];$APP.Ed(["x-timeline-select",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.ih,$APP.W,$APP.ij,$APP.Y,$APP.U,$APP.Y],null),$APP.rk,!1],null)]);var OO=new $APP.S(null,new $APP.R(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ja("baredom.exports.x_timeline.init",aP);export const init=aP;
2
+ var iS=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(hS,a)?a:"start"},jS=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.hd(b,2)===0?"start":"end";default:return"start"}},lS=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:inherit;--x-timeline-label-font-size:0.875rem;--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
+ d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.P(null,3,[$APP.bi,b,kS,d,$APP.Jk,e],null);return $APP.l(a,"__xTimelineRefs")},mS=function(a){a=new $APP.P(null,3,[$APP.Oh,a.getAttribute("label"),$APP.nj,a.getAttribute("position"),$APP.kk,a.hasAttribute("striped")],null);var b=$APP.N(a);a=$APP.G(b,$APP.Oh);var c=$APP.G(b,$APP.nj);b=$APP.G(b,$APP.kk);return new $APP.P(null,3,[$APP.T,$APP.r(a)?a:"",$APP.Rl,iS(c),
4
+ $APP.kk,$APP.I(b)],null)},nS=function(a){var b=mS(a);if($APP.O($APP.l(a,"__xTimelineModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.T),d=lS(a);d=$APP.N(d);d=$APP.G(d,kS);a.setAttribute("role","list");$APP.O(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.O(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},oS=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.r(b)?b:mS(a);var c=$APP.N(b);b=$APP.G(c,$APP.Rl);
5
+ c=$APP.G(c,$APP.kk);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.D.i(e,d-1);g.setAttribute("data-index",""+$APP.S.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",jS(b,e));$APP.r(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},pS=function(a){function b(){$APP.r(a.isConnected)&&oS(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
+ e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.r(isNaN(g))?null:g):g=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.nh(new $APP.P(null,3,[$APP.Eh,$APP.r(g)?g:0,$APP.Ij,$APP.r(h)?h:"",$APP.T,$APP.r(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){oS(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
+ b);$APP.n(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},qS=function(a){var b=$APP.l(a,"__xTimelineHandlers");if($APP.r(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.r(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.r(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.r(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},rS=function(a){Object.defineProperty(a,
8
+ "label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return iS(this.getAttribute("position"))},set:function(b){return $APP.r(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
+ "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.r(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},tS=function(){var a=class extends HTMLElement{};a.observedAttributes=sS;a.prototype.connectedCallback=function(){lS(this);nS(this);qS(this);pS(this);oS(this);return null};a.prototype.disconnectedCallback=function(){qS(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(nS(this),
10
+ oS(this));return null};rS(a.prototype);return a},uS=function(){$APP.r(customElements.get("x-timeline"))||customElements.define("x-timeline",tS());return null},kS=new $APP.M(null,"label-div","label-div",1505730697);var sS=["label","position","striped"];$APP.Sd(["x-timeline-select",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$APP.Eh,$APP.V,$APP.Ij,$APP.Y,$APP.T,$APP.Y],null),$APP.kl,!1],null)]);var hS=new $APP.R(null,new $APP.P(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ka("baredom.exports.x_timeline.init",uS);export const init=uS;
package/dist/x-toast.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Wn=function(a){a=$APP.I(Vn,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Hj},Yn=function(a){a=$APP.I(Xn,a);return $APP.n(a)?a:"info"},Zn=function(a){return a==null?!0:$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},$n=function(a){return a==null?!1:$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},ao=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:null):null},bo=function(a){return typeof a==="string"?(a=
3
- a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},fo=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.jj),d=$APP.I(b,$APP.Qj);a=$APP.I(b,$APP.li);var e=$APP.I(b,$APP.ck),g=$APP.I(b,$APP.xh),h=$APP.I(b,$APP.ch),k=$APP.I(b,co),m=$APP.I(b,$APP.yh);b=$APP.I(b,$APP.vi);m=Wn(m);b=bo(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.Sk:b!=null?$APP.Tj:$APP.oh;return $APP.mf([eo,$APP.Ph,$APP.Z,$APP.tj,$APP.Xi,$APP.X,$APP.yk,$APP.jj,$APP.Qj],[$n(k),Zn(a),m,$APP.C.h(h,$APP.Tj)?b:null,h,$APP.J(e),ao(g),function(){var p=
4
- typeof c==="string"?c.trim():null;return $APP.n(p)?p:""}(),function(){var p=typeof d==="string"?d.trim():null;return $APP.n(p)?p:""}()])},go=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.Ph);b=$APP.I(b,$APP.X);return $APP.n(a)?$APP.r(b):a},ho=function(a,b){var c=$APP.N(a);a=$APP.I(c,$APP.Z);var d=$APP.I(c,$APP.Qj);c=$APP.I(c,$APP.jj);return new $APP.R(null,4,[$APP.Z,Yn(a),$APP.Rh,b,$APP.Qj,d,$APP.jj,c],null)},io=function(a){var b=$APP.N(a);a=$APP.I(b,eo);b=$APP.I(b,$APP.yk);return $APP.J($APP.n(a)?
5
- b!=null&&b>0:a)},no=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span"),v=document.createElement("button"),x=document.createElement("span"),y=document.createElement("div"),
2
+ var Wp=function(a){a=$APP.G(Vp,typeof a==="string"?a.toLowerCase():null);return $APP.r(a)?a:$APP.vk},Yp=function(a){a=$APP.G(Xp,a);return $APP.r(a)?a:"info"},Zp=function(a){return a==null?!0:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},$p=function(a){return a==null?!1:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},aq=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.t(isNaN(a))&&a>0?a:null):null},bq=function(a){return typeof a==="string"?(a=
3
+ a.trim(),$APP.O(a,"")&&$APP.O(a.toLowerCase(),"none")?a:null):null},eq=function(a){var b=$APP.N(a),c=$APP.G(b,$APP.Jj),d=$APP.G(b,$APP.Fk);a=$APP.G(b,$APP.Li);var e=$APP.G(b,$APP.Rk),g=$APP.G(b,$APP.Th),h=$APP.G(b,$APP.yh),k=$APP.G(b,cq),m=$APP.G(b,$APP.Uh);b=$APP.G(b,$APP.Vi);m=Wp(m);b=bq(b);h=$APP.r($APP.r(h)?b==null:h)?$APP.Ql:b!=null?$APP.Ik:$APP.Kh;return $APP.Q([dq,$APP.hi,$APP.Z,$APP.Wj,$APP.Bj,$APP.W,$APP.tl,$APP.Jj,$APP.Fk],[$p(k),Zp(a),m,$APP.D.i(h,$APP.Ik)?b:null,h,$APP.I(e),aq(g),function(){var p=
4
+ typeof c==="string"?c.trim():null;return $APP.r(p)?p:""}(),function(){var p=typeof d==="string"?d.trim():null;return $APP.r(p)?p:""}()])},fq=function(a){var b=$APP.N(a);a=$APP.G(b,$APP.hi);b=$APP.G(b,$APP.W);return $APP.r(a)?$APP.t(b):a},gq=function(a,b){var c=$APP.N(a);a=$APP.G(c,$APP.Z);var d=$APP.G(c,$APP.Fk);c=$APP.G(c,$APP.Jj);return new $APP.P(null,4,[$APP.Z,Yp(a),$APP.ji,b,$APP.Fk,d,$APP.Jj,c],null)},hq=function(a){var b=$APP.N(a);a=$APP.G(b,dq);b=$APP.G(b,$APP.tl);return $APP.I($APP.r(a)?
5
+ b!=null&&b>0:a)},mq=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span"),w=document.createElement("button"),x=document.createElement("span"),y=document.createElement("div"),
6
6
  A=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:12px;--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:0.875rem;--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:280px;--x-toast-max-width:480px;--x-toast-border-width:1px;--x-toast-shadow:0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08);--x-toast-motion-fast:120ms;--x-toast-motion-ease:cubic-bezier(0.2,0,0,1);--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:rgba(0,0,0,0.6);--x-toast-dismiss-color:rgba(0,0,0,0.50);--x-toast-dismiss-hover-bg:rgba(0,0,0,0.06);--x-toast-progress-height:3px;--x-toast-progress-bg:rgba(0,0,0,0.08);--x-toast-info-bg:#ffffff;--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:#ffffff;--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:#ffffff;--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:#ffffff;--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30);--x-toast-focus-ring:rgba(255,255,255,0.75);--x-toast-dismiss-color:rgba(255,255,255,0.65);--x-toast-dismiss-hover-bg:rgba(255,255,255,0.12);--x-toast-progress-bg:rgba(255,255,255,0.10);--x-toast-info-bg:#1e293b;--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:#1e293b;--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:#1e293b;--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:#1e293b;--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
7
- d.setAttribute("part","container");e.setAttribute("part","inner");g.setAttribute("part","icon");g.setAttribute("aria-hidden","true");h.setAttribute("name","icon");k.setAttribute("part","default-icon");h.appendChild(k);g.appendChild(h);m.setAttribute("part","body");p.setAttribute("part","heading");q.setAttribute("part","message");m.appendChild(p);m.appendChild(q);v.setAttribute("part","dismiss");v.setAttribute("type","button");v.setAttribute("aria-label","Dismiss toast");x.setAttribute("aria-hidden",
8
- "true");x.textContent="×";v.appendChild(x);e.appendChild(g);e.appendChild(m);e.appendChild(v);y.setAttribute("part","progress");A.setAttribute("part","progress-bar");y.appendChild(A);d.appendChild(e);d.appendChild(y);b.appendChild(c);b.appendChild(d);b=$APP.mf([jo,$APP.Ok,ko,$APP.vj,$APP.Fk,lo,$APP.Jh,$APP.yi,$APP.ei,$APP.Zg,$APP.pi,mo],[A,k,q,v,m,e,b,d,y,g,h,p]);a.__xToastRefs=b;return $APP.l(a,"__xToastRefs")},oo=function(a){return fo($APP.mf([$APP.li,$APP.ck,$APP.xh,$APP.ch,co,$APP.vi,$APP.yh,
9
- $APP.jj,$APP.Qj],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},qo=function(a){var b=oo(a);if($APP.O($APP.l(a,"__xToastModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.Z),d=$APP.I(b,$APP.Qj),e=$APP.I(b,$APP.jj),g=$APP.I(b,$APP.Xi),h=$APP.I(b,$APP.tj),k=$APP.I(b,$APP.Ph),m=$APP.I(b,$APP.X),p=$APP.I(b,$APP.yk),
10
- q=no(a),v=$APP.N(q),x=$APP.I(v,$APP.pi);q=$APP.I(v,mo);var y=$APP.I(v,jo),A=$APP.I(v,$APP.Ok),D=$APP.I(v,ko),G=$APP.I(v,$APP.vj),H=$APP.I(v,$APP.yi),F=$APP.I(v,$APP.ei);v=$APP.I(v,$APP.Zg);x=$APP.n(x)?x.assignedNodes().length>0:null;$APP.C.h(g,$APP.Tj)||(h=$APP.I(po,c),h=$APP.n(h)?h:$APP.I(po,$APP.Hj));g=$APP.r(x)&&$APP.C.h(g,$APP.Sk);x=io(b);a.setAttribute("data-type",Yn(c));var P=H.setAttribute;c=$APP.C.h(c,$APP.qk)||$APP.C.h(c,$APP.Gh)?"alert":"status";P.call(H,"role",c);q.textContent=d;q.style.display=
11
- $APP.C.h(d,"")?"none":"";D.textContent=e;g?(A.textContent="",v.style.display="none"):(A.textContent=h,v.style.display="inline");$APP.n(k)?(G.disabled=$APP.J(m),G.style.display="inline-flex"):(G.disabled=!0,G.style.display="none");x?(F.style.display="block",y.style.setProperty("--x-toast-timeout",""+$APP.T.g(p)+"ms")):F.style.display="none";d=$APP.n(k)?$APP.r(m):k;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts",
12
- "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},ro=function(){return $APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},so=function(a){a=typeof a==="string"?a.trim():"";return $APP.C.h(a,"")||$APP.C.h(a,"0")||$APP.C.h(a,"0ms")||$APP.C.h(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*
13
- a))):0},to=function(a){var b=window.getComputedStyle(a);a=so(b.getPropertyValue("--x-toast-exit-duration"));b=so(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},uo=function(a){var b=$APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},wo=function(a){uo(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:oo(a)}();$APP.n(function(){var c=go(b);return $APP.n(c)?typeof $APP.yk.g(b)==="number"&&$APP.r($APP.l(a,"__xToastExiting")):c}())&&
14
- $APP.ma(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.r($APP.l(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:oo(a)}();if($APP.n(go(c)))return c=$APP.Sg(ho(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?vo.g?vo.g(a):vo.call(null,a):null}return null},$APP.yk.g(b)));return null},xo=function(a){var b=
15
- $APP.l(a,"__xToastModel");$APP.n($APP.n(b)?io(b):b)&&a.setAttribute("data-progress-active","");return wo(a)},yo=function(a){if(!$APP.n($APP.l(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),ro())a.removeAttribute("data-entering"),xo(a);else{var b=no(a);b=$APP.N(b);var c=$APP.I(b,$APP.yi);c.addEventListener("animationend",function g(e){return $APP.C.h(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering"),xo(a)):null})}},vo=function(a){if(!$APP.n($APP.l(a,
16
- "__xToastExiting"))){a.__xToastExiting=!0;uo(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=to(a);if(b===0||ro())a.remove();else{var c=no(a);c=$APP.N(c);var d=$APP.I(c,$APP.yi),e=function k(h){return $APP.C.h(h.target,d)?(d.removeEventListener("animationend",k),h=$APP.l(a,"__xToastExitTimer"),$APP.n(h)&&(clearTimeout(h),a.__xToastExitTimer=null),$APP.n(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);
17
- $APP.ma(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.l(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},zo=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.n(c)?c:oo(a);b=$APP.Sg(ho(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&vo(a)},Ao=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");
18
- return $APP.n(d)?d:oo(a)}();$APP.n(function(){var d=go(c);return $APP.n(d)?$APP.r($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),zo(a,"button"));return null},Bo=function(a,b){if($APP.C.h(b.key,"Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:oo(a)}();$APP.n(function(){var d=go(c);return $APP.n(d)?$APP.r($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),zo(a,"keyboard"))}return null},Co=function(a){function b(e){return Bo(a,e)}function c(e){return Ao(a,
19
- e)}var d=no(a);d=$APP.N(d);$APP.I(d,$APP.vj).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xToastHandlers",{click:c,keydown:b})},Do=function(a){uo(a);var b=$APP.l(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.vj.g(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",
20
- b)}a.__xToastHandlers=null},Eo=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"info"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"heading",{get:function(){var b=this.getAttribute("heading");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("heading",""+$APP.T.g(b)):this.removeAttribute("heading")},
21
- enumerable:!0,configurable:!0});Object.defineProperty(a,"message",{get:function(){var b=this.getAttribute("message");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("message",""+$APP.T.g(b)):this.removeAttribute("message")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,
22
- "dismissible",{get:function(){return Zn(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return ao(this.getAttribute("timeout-ms"))},
23
- set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return $n(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Fo=function(a){a.dismiss=function(b){var c=$APP.r($APP.l(this,"__xToastExiting"));$APP.n(c?this.isConnected:
24
- c)&&zo(this,typeof b==="string"?b:"api");return null}},Ho=function(){var a=class extends HTMLElement{};a.observedAttributes=Go;a.prototype.connectedCallback=function(){no(this);Do(this);Co(this);qo(this);yo(this);return null};a.prototype.disconnectedCallback=function(){Do(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(qo(this),$APP.n(this.isConnected)&&wo(this));return null};Eo(a.prototype);Fo(a.prototype);return a},Io=function(){$APP.n(customElements.get("x-toast"))||
25
- customElements.define("x-toast",Ho());return null},mo=new $APP.M(null,"heading-el","heading-el",-1277272161),eo=new $APP.M(null,"show-progress?","show-progress?",-1681518912),lo=new $APP.M(null,"inner","inner",-1383171215),ko=new $APP.M(null,"message-el","message-el",-683533234),jo=new $APP.M(null,"progress-bar","progress-bar",-123877022),co=new $APP.M(null,"show-progress-attr","show-progress-attr",1680262066);var Go="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.Ed(["x-toast-dismiss",new $APP.R(null,2,[$APP.V,new $APP.R(null,4,[$APP.Z,$APP.Y,$APP.Rh,$APP.Y,$APP.Qj,$APP.Y,$APP.jj,$APP.Y],null),$APP.rk,!0],null)]);
26
- var Vn=new $APP.R(null,4,["info",$APP.Hj,"success",$APP.pj,"warning",$APP.qk,"error",$APP.Gh],null),Xn=new $APP.R(null,4,[$APP.Hj,"info",$APP.pj,"success",$APP.qk,"warning",$APP.Gh,"error"],null),po=new $APP.R(null,4,[$APP.Hj,"ℹ",$APP.pj,"✓",$APP.qk,"!",$APP.Gh,"⨯"],null);$APP.ja("baredom.exports.x_toast.init",Io);export const init=Io;
7
+ d.setAttribute("part","container");e.setAttribute("part","inner");g.setAttribute("part","icon");g.setAttribute("aria-hidden","true");h.setAttribute("name","icon");k.setAttribute("part","default-icon");h.appendChild(k);g.appendChild(h);m.setAttribute("part","body");p.setAttribute("part","heading");q.setAttribute("part","message");m.appendChild(p);m.appendChild(q);w.setAttribute("part","dismiss");w.setAttribute("type","button");w.setAttribute("aria-label","Dismiss toast");x.setAttribute("aria-hidden",
8
+ "true");x.textContent="×";w.appendChild(x);e.appendChild(g);e.appendChild(m);e.appendChild(w);y.setAttribute("part","progress");A.setAttribute("part","progress-bar");y.appendChild(A);d.appendChild(e);d.appendChild(y);b.appendChild(c);b.appendChild(d);b=$APP.Q([iq,$APP.Ll,jq,$APP.Yj,$APP.Al,kq,$APP.bi,$APP.Zi,$APP.Ei,$APP.uh,$APP.Pi,lq],[A,k,q,w,m,e,b,d,y,g,h,p]);a.__xToastRefs=b;return $APP.l(a,"__xToastRefs")},nq=function(a){return eq($APP.Q([$APP.Li,$APP.Rk,$APP.Th,$APP.yh,cq,$APP.Vi,$APP.Uh,$APP.Jj,
9
+ $APP.Fk],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},pq=function(a){var b=nq(a);if($APP.O($APP.l(a,"__xToastModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.Z),d=$APP.G(b,$APP.Fk),e=$APP.G(b,$APP.Jj),g=$APP.G(b,$APP.Bj),h=$APP.G(b,$APP.Wj),k=$APP.G(b,$APP.hi),m=$APP.G(b,$APP.W),p=$APP.G(b,$APP.tl),q=mq(a),
10
+ w=$APP.N(q),x=$APP.G(w,$APP.Pi);q=$APP.G(w,lq);var y=$APP.G(w,iq),A=$APP.G(w,$APP.Ll),C=$APP.G(w,jq),E=$APP.G(w,$APP.Yj),H=$APP.G(w,$APP.Zi),F=$APP.G(w,$APP.Ei);w=$APP.G(w,$APP.uh);x=$APP.r(x)?x.assignedNodes().length>0:null;$APP.D.i(g,$APP.Ik)||(h=$APP.G(oq,c),h=$APP.r(h)?h:$APP.G(oq,$APP.vk));g=$APP.t(x)&&$APP.D.i(g,$APP.Ql);x=hq(b);a.setAttribute("data-type",Yp(c));var K=H.setAttribute;c=$APP.D.i(c,$APP.il)||$APP.D.i(c,$APP.Zh)?"alert":"status";K.call(H,"role",c);q.textContent=d;q.style.display=
11
+ $APP.D.i(d,"")?"none":"";C.textContent=e;g?(A.textContent="",w.style.display="none"):(A.textContent=h,w.style.display="inline");$APP.r(k)?(E.disabled=$APP.I(m),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");x?(F.style.display="block",y.style.setProperty("--x-toast-timeout",""+$APP.S.g(p)+"ms")):F.style.display="none";d=$APP.r(k)?$APP.t(m):k;a.tabIndex=$APP.r(d)?0:-1;$APP.r(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.r(d)?a.setAttribute("aria-keyshortcuts",
12
+ "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},qq=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},rq=function(a){a=typeof a==="string"?a.trim():"";return $APP.D.i(a,"")||$APP.D.i(a,"0")||$APP.D.i(a,"0ms")||$APP.D.i(a,"0s")?0:$APP.r(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.r(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.r(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.r(isNaN(a))?0:Math.max(0,Math.round(1E3*
13
+ a))):0},sq=function(a){var b=window.getComputedStyle(a);a=rq(b.getPropertyValue("--x-toast-exit-duration"));b=rq(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},tq=function(a){var b=$APP.l(a,"__xToastTimeout");$APP.r(b)&&(clearTimeout(b),a.__xToastTimeout=null)},vq=function(a){tq(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.r(c)?c:nq(a)}();$APP.r(function(){var c=fq(b);return $APP.r(c)?typeof $APP.tl.g(b)==="number"&&$APP.t($APP.l(a,"__xToastExiting")):c}())&&
14
+ $APP.n(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.r(function(){var d=a.isConnected;return $APP.r(d)?$APP.t($APP.l(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.r(d)?d:nq(a)}();if($APP.r(fq(c)))return c=$APP.nh(gq(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.r(c)?uq.g?uq.g(a):uq.call(null,a):null}return null},$APP.tl.g(b)));return null},wq=function(a){var b=
15
+ $APP.l(a,"__xToastModel");$APP.r($APP.r(b)?hq(b):b)&&a.setAttribute("data-progress-active","");return vq(a)},xq=function(a){if(!$APP.r($APP.l(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),qq())a.removeAttribute("data-entering"),wq(a);else{var b=mq(a);b=$APP.N(b);var c=$APP.G(b,$APP.Zi);c.addEventListener("animationend",function g(e){return $APP.D.i(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering"),wq(a)):null})}},uq=function(a){if(!$APP.r($APP.l(a,
16
+ "__xToastExiting"))){a.__xToastExiting=!0;tq(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=sq(a);if(b===0||qq())a.remove();else{var c=mq(a);c=$APP.N(c);var d=$APP.G(c,$APP.Zi),e=function k(h){return $APP.D.i(h.target,d)?(d.removeEventListener("animationend",k),h=$APP.l(a,"__xToastExitTimer"),$APP.r(h)&&(clearTimeout(h),a.__xToastExitTimer=null),$APP.r(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);
17
+ $APP.n(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.r($APP.r(h)?$APP.l(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},yq=function(a,b){var c=$APP.l(a,"__xToastModel");c=$APP.r(c)?c:nq(a);b=$APP.nh(gq(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.r(b)&&uq(a)},zq=function(a,b){var c=function(){var d=$APP.l(a,"__xToastModel");
18
+ return $APP.r(d)?d:nq(a)}();$APP.r(function(){var d=fq(c);return $APP.r(d)?$APP.t($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),yq(a,"button"));return null},Aq=function(a,b){if($APP.D.i(b.key,"Escape")){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.r(d)?d:nq(a)}();$APP.r(function(){var d=fq(c);return $APP.r(d)?$APP.t($APP.l(a,"__xToastExiting")):d}())&&(b.preventDefault(),yq(a,"keyboard"))}return null},Bq=function(a){function b(e){return Aq(a,e)}function c(e){return zq(a,
19
+ e)}var d=mq(a);d=$APP.N(d);$APP.G(d,$APP.Yj).addEventListener("click",c);a.addEventListener("keydown",b);$APP.n(a,"__xToastHandlers",{click:c,keydown:b})},Cq=function(a){tq(a);var b=$APP.l(a,"__xToastExitTimer");$APP.r(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.l(a,"__xToastHandlers");var c=$APP.l(a,"__xToastRefs");if($APP.r($APP.r(b)?c:b)){c=$APP.Yj.g(c);var d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.r(d)&&c.removeEventListener("click",d);$APP.r(b)&&a.removeEventListener("keydown",
20
+ b)}a.__xToastHandlers=null},Dq=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.r(b)?b:"info"},set:function(b){return $APP.r(b)?this.setAttribute("type",""+$APP.S.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"heading",{get:function(){var b=this.getAttribute("heading");return $APP.r(b)?b:""},set:function(b){return $APP.r(b)?this.setAttribute("heading",""+$APP.S.g(b)):this.removeAttribute("heading")},
21
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"message",{get:function(){var b=this.getAttribute("message");return $APP.r(b)?b:""},set:function(b){return $APP.r(b)?this.setAttribute("message",""+$APP.S.g(b)):this.removeAttribute("message")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},set:function(b){return $APP.r(b)?this.setAttribute("icon",""+$APP.S.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,
22
+ "dismissible",{get:function(){return Zp(this.getAttribute("dismissible"))},set:function(b){return $APP.r(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return aq(this.getAttribute("timeout-ms"))},
23
+ set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return $p(this.getAttribute("show-progress"))},set:function(b){return $APP.r(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Eq=function(a){a.dismiss=function(b){var c=$APP.t($APP.l(this,"__xToastExiting"));$APP.r(c?this.isConnected:
24
+ c)&&yq(this,typeof b==="string"?b:"api");return null}},Gq=function(){var a=class extends HTMLElement{};a.observedAttributes=Fq;a.prototype.connectedCallback=function(){mq(this);Cq(this);Bq(this);pq(this);xq(this);return null};a.prototype.disconnectedCallback=function(){Cq(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&(pq(this),$APP.r(this.isConnected)&&vq(this));return null};Dq(a.prototype);Eq(a.prototype);return a},Hq=function(){$APP.r(customElements.get("x-toast"))||
25
+ customElements.define("x-toast",Gq());return null},lq=new $APP.M(null,"heading-el","heading-el",-1277272161),dq=new $APP.M(null,"show-progress?","show-progress?",-1681518912),kq=new $APP.M(null,"inner","inner",-1383171215),jq=new $APP.M(null,"message-el","message-el",-683533234),iq=new $APP.M(null,"progress-bar","progress-bar",-123877022),cq=new $APP.M(null,"show-progress-attr","show-progress-attr",1680262066);var Fq="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.Sd(["x-toast-dismiss",new $APP.P(null,2,[$APP.U,new $APP.P(null,4,[$APP.Z,$APP.Y,$APP.ji,$APP.Y,$APP.Fk,$APP.Y,$APP.Jj,$APP.Y],null),$APP.kl,!0],null)]);
26
+ var Vp=new $APP.P(null,4,["info",$APP.vk,"success",$APP.Rj,"warning",$APP.il,"error",$APP.Zh],null),Xp=new $APP.P(null,4,[$APP.vk,"info",$APP.Rj,"success",$APP.il,"warning",$APP.Zh,"error"],null),oq=new $APP.P(null,4,[$APP.vk,"ℹ",$APP.Rj,"✓",$APP.il,"!",$APP.Zh,"⨯"],null);$APP.ka("baredom.exports.x_toast.init",Hq);export const init=Hq;
package/dist/x-toaster.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Iq=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.K(Hq,a)?a:"top-end"},Jq=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},Lq=function(a){if(!$APP.n($APP.l(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=Kq;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.R(null,2,[$APP.Jh,b,$APP.Uj,d],null)}},Oq=function(a){a=
3
- new $APP.R(null,3,[$APP.Ki,a.getAttribute("position"),Mq,a.getAttribute("max-toasts"),$APP.sh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.I(b,$APP.Ki);a=$APP.I(b,Mq);b=$APP.I(b,$APP.sh);c=Iq(c);a=Jq(a);return new $APP.R(null,3,[$APP.Tk,c,Nq,$APP.n(a)?a:5,$APP.U,typeof b==="string"&&$APP.O(b.trim(),"")?b:"Notifications"],null)},Pq=function(a){var b=Oq(a);if($APP.O($APP.l(a,"__xToasterModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.Tk),d=$APP.I(b,$APP.U);Lq(a);a.setAttribute("role","region");
4
- a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Qq=function(a){function b(c){var d=c.detail;if($APP.O($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type");var g=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.Sg(new $APP.R(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.Rh,$APP.n(g)?g:"",$APP.Qj,$APP.n(h)?h:"",$APP.jj,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
- e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.ma(a,"__xToasterHandlers",{dismiss:b})},Rq=function(a){var b=$APP.l(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.l(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Sq=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return Iq(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
- ""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=Jq(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
- null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.l(this,"__xToasterModel");c=$APP.n(c)?c:Oq(this);var d=Nq.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.l(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.l(b,
8
- "heading");$APP.n(d)&&c.setAttribute("heading",d);d=$APP.l(b,"message");$APP.n(d)&&c.setAttribute("message",d);d=$APP.l(b,"icon");$APP.n(d)&&c.setAttribute("icon",d);$APP.l(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.l(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.T.g(d));$APP.n($APP.l(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Uq=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
- Tq;a.prototype.connectedCallback=function(){Lq(this);Rq(this);Qq(this);Pq(this);return null};a.prototype.disconnectedCallback=function(){Rq(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Pq(this);return null};Sq(a);return a},Vq=function(){$APP.n(customElements.get("x-toaster"))||customElements.define("x-toaster",Uq());return null},Mq=new $APP.M(null,"max-toasts-raw","max-toasts-raw",-815087069),Nq=new $APP.M(null,"max-toasts","max-toasts",-1982289139);var Tq=["position","max-toasts","label"];$APP.Ed(["x-toaster-dismiss",new $APP.R(null,2,[$APP.V,new $APP.R(null,4,[$APP.Z,$APP.Y,$APP.Rh,$APP.Y,$APP.Qj,$APP.Y,$APP.jj,$APP.Y],null),$APP.rk,!0],null)]);var Hq=new $APP.S(null,new $APP.R(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var Kq=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,480px);box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.T.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ja("baredom.exports.x_toaster.init",Vq);export const init=Vq;
2
+ var Gs=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(Fs,a)?a:"top-end"},Hs=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.t(isNaN(a))&&a>0?Math.floor(a):null):null},Js=function(a){if(!$APP.r($APP.l(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=Is;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.P(null,2,[$APP.bi,b,$APP.Jk,d],null)}},Ms=function(a){a=
3
+ new $APP.P(null,3,[$APP.nj,a.getAttribute("position"),Ks,a.getAttribute("max-toasts"),$APP.Oh,a.getAttribute("label")],null);var b=$APP.N(a),c=$APP.G(b,$APP.nj);a=$APP.G(b,Ks);b=$APP.G(b,$APP.Oh);c=Gs(c);a=Hs(a);return new $APP.P(null,3,[$APP.Rl,c,Ls,$APP.r(a)?a:5,$APP.T,typeof b==="string"&&$APP.O(b.trim(),"")?b:"Notifications"],null)},Ns=function(a){var b=Ms(a);if($APP.O($APP.l(a,"__xToasterModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.Rl),d=$APP.G(b,$APP.T);Js(a);a.setAttribute("role","region");
4
+ a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Os=function(a){function b(c){var d=c.detail;if($APP.O($APP.l(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.l(d,"type");var g=$APP.l(d,"reason"),h=$APP.l(d,"heading");d=$APP.l(d,"message");e=$APP.nh(new $APP.P(null,4,[$APP.Z,$APP.r(e)?e:"info",$APP.ji,$APP.r(g)?g:"",$APP.Fk,$APP.r(h)?h:"",$APP.Jj,$APP.r(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
+ e=a.dispatchEvent(e);$APP.r(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.n(a,"__xToasterHandlers",{dismiss:b})},Ps=function(a){var b=$APP.l(a,"__xToasterHandlers");$APP.r(b)&&(b=$APP.l(b,"dismiss"),$APP.r(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Qs=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return Gs(this.getAttribute("position"))},set:function(b){return $APP.r(b)?this.setAttribute("position",
6
+ ""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:"Notifications"},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=Hs(this.getAttribute("max-toasts"));return $APP.r(b)?b:5},set:function(b){return b==
7
+ null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.S.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.r(b)?b:{};var c=$APP.l(this,"__xToasterModel");c=$APP.r(c)?c:Ms(this);var d=Ls.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.l(b,"type");$APP.r(d)&&c.setAttribute("type",d);d=$APP.l(b,
8
+ "heading");$APP.r(d)&&c.setAttribute("heading",d);d=$APP.l(b,"message");$APP.r(d)&&c.setAttribute("message",d);d=$APP.l(b,"icon");$APP.r(d)&&c.setAttribute("icon",d);$APP.l(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.l(b,"timeoutMs");$APP.r(d)&&c.setAttribute("timeout-ms",""+$APP.S.g(d));$APP.r($APP.l(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Ss=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
+ Rs;a.prototype.connectedCallback=function(){Js(this);Ps(this);Os(this);Ns(this);return null};a.prototype.disconnectedCallback=function(){Ps(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Ns(this);return null};Qs(a);return a},Ts=function(){$APP.r(customElements.get("x-toaster"))||customElements.define("x-toaster",Ss());return null},Ks=new $APP.M(null,"max-toasts-raw","max-toasts-raw",-815087069),Ls=new $APP.M(null,"max-toasts","max-toasts",-1982289139);var Rs=["position","max-toasts","label"];$APP.Sd(["x-toaster-dismiss",new $APP.P(null,2,[$APP.U,new $APP.P(null,4,[$APP.Z,$APP.Y,$APP.ji,$APP.Y,$APP.Fk,$APP.Y,$APP.Jj,$APP.Y],null),$APP.kl,!0],null)]);var Fs=new $APP.R(null,new $APP.P(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var Is=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,480px);box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.S.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ka("baredom.exports.x_toaster.init",Ts);export const init=Ts;