revotech-ui-kit 0.0.16 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dist/revotech-ui-kit.js +1808 -1238
  2. package/dist/revotech-ui-kit.umd.cjs +412 -126
  3. package/dist/src/assets/icons/close.icon.d.ts +1 -0
  4. package/dist/src/assets/icons/dot.icon.d.ts +1 -0
  5. package/dist/src/assets/icons/index.d.ts +2 -0
  6. package/dist/src/components/atoms/avatar/avatar-fallback.d.ts +6 -0
  7. package/dist/src/components/atoms/avatar/avatar-image.d.ts +8 -0
  8. package/dist/src/components/atoms/avatar/avatar.atom.d.ts +6 -0
  9. package/dist/src/components/atoms/avatar/avatar.stories.d.ts +5 -0
  10. package/dist/src/components/atoms/avatar/avatar.style.d.ts +3 -0
  11. package/dist/src/components/atoms/collapsible/collapsible-content.d.ts +12 -0
  12. package/dist/src/components/atoms/collapsible/collapsible-trigger.d.ts +15 -0
  13. package/dist/src/components/atoms/collapsible/collapsible.atom.d.ts +17 -0
  14. package/dist/src/components/atoms/collapsible/collapsible.stories.d.ts +6 -0
  15. package/dist/src/components/atoms/hoverCard/hover-card-content.d.ts +12 -0
  16. package/dist/src/components/atoms/hoverCard/hover-card.atom.d.ts +13 -0
  17. package/dist/src/components/atoms/hoverCard/hover-card.stories.d.ts +5 -0
  18. package/dist/src/components/atoms/index.d.ts +1 -0
  19. package/dist/src/components/atoms/toast/toast-action.d.ts +15 -0
  20. package/dist/src/components/atoms/toast/toast-description.d.ts +6 -0
  21. package/dist/src/components/atoms/toast/toast-title.d.ts +6 -0
  22. package/dist/src/components/atoms/toast/toast-view-port.d.ts +13 -0
  23. package/dist/src/components/atoms/toast/toast.atom.d.ts +11 -0
  24. package/dist/src/components/atoms/toast/toast.stories.d.ts +6 -0
  25. package/dist/src/components/atoms/toast/toast.style.d.ts +9 -0
  26. package/dist/src/components/atoms/toast/toast.type.d.ts +1 -0
  27. package/dist/src/components/molecules/index.d.ts +4 -0
  28. package/dist/src/components/molecules/input-otp/input-otp-group.d.ts +13 -0
  29. package/dist/src/components/molecules/input-otp/input-otp-separator.d.ts +13 -0
  30. package/dist/src/components/molecules/input-otp/input-otp-slot.d.ts +13 -0
  31. package/dist/src/components/molecules/input-otp/input-otp.molecule.d.ts +33 -0
  32. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- (function(s,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit-element")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit-element"],l):(s=typeof globalThis<"u"?globalThis:s||self,l(s["revotech-ui-kit"]={},s.lit,s.decorators_js,s.html_js,s.directive_js,s.asyncDirective_js,s.litElement))})(this,function(s,l,d,Wt,Me,Kt,E){"use strict";function dt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=dt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function Zt(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=dt(n))&&(o&&(o+=" "),o+=e);return o}const Ie="-",jt=n=>{const e=Qt(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:a=>{const u=a.split(Ie);return u[0]===""&&u.length!==1&&u.shift(),ct(u,e)||Jt(a)},getConflictingClassGroupIds:(a,u)=>{const b=r[a]||[];return u&&o[a]?[...b,...o[a]]:b}}},ct=(n,e)=>{var a;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?ct(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const i=n.join(Ie);return(a=e.validators.find(({validator:u})=>u(i)))==null?void 0:a.classGroupId},ut=/^\[(.+)\]$/,Jt=n=>{if(ut.test(n)){const e=ut.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Qt=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return tr(Object.entries(n.classGroups),r).forEach(([i,a])=>{Le(a,o,i,e)}),o},Le=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const i=t===""?e:pt(e,t);i.classGroupId=r;return}if(typeof t=="function"){if(er(t)){Le(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([i,a])=>{Le(a,pt(e,i),r,o)})})},pt=(n,e)=>{let r=n;return e.split(Ie).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},er=n=>n.isThemeGetter,tr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,u])=>[e+a,u])):i);return[r,t]}):n,rr=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(i,a)=>{r.set(i,a),e++,e>n&&(e=0,o=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=o.get(i))!==void 0)return t(i,a),a},set(i,a){r.has(i)?r.set(i,a):t(i,a)}}},ht="!",or=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],i=e.length,a=u=>{const b=[];let g=0,m=0,x;for(let v=0;v<u.length;v++){let O=u[v];if(g===0){if(O===t&&(o||u.slice(v,v+i)===e)){b.push(u.slice(m,v)),m=v+i;continue}if(O==="/"){x=v;continue}}O==="["?g++:O==="]"&&g--}const $=b.length===0?u:u.substring(m),P=$.startsWith(ht),S=P?$.substring(1):$,y=x&&x>m?x-m:void 0;return{modifiers:b,hasImportantModifier:P,baseClassName:S,maybePostfixModifierPosition:y}};return r?u=>r({className:u,parseClassName:a}):a},nr=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},ir=n=>({cache:rr(n.cacheSize),parseClassName:or(n),...jt(n)}),sr=/\s+/,ar=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,i=[],a=n.trim().split(sr);let u="";for(let b=a.length-1;b>=0;b-=1){const g=a[b],{modifiers:m,hasImportantModifier:x,baseClassName:$,maybePostfixModifierPosition:P}=r(g);let S=!!P,y=o(S?$.substring(0,P):$);if(!y){if(!S){u=g+(u.length>0?" "+u:u);continue}if(y=o($),!y){u=g+(u.length>0?" "+u:u);continue}S=!1}const v=nr(m).join(":"),O=x?v+ht:v,k=O+y;if(i.includes(k))continue;i.push(k);const ve=t(y,S);for(let Z=0;Z<ve.length;++Z){const Pe=ve[Z];i.push(O+Pe)}u=g+(u.length>0?" "+u:u)}return u};function lr(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=gt(e))&&(o&&(o+=" "),o+=r);return o}const gt=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=gt(n[o]))&&(r&&(r+=" "),r+=e);return r};function dr(n,...e){let r,o,t,i=a;function a(b){const g=e.reduce((m,x)=>x(m),n());return r=ir(g),o=r.cache.get,t=r.cache.set,i=u,u(b)}function u(b){const g=o(b);if(g)return g;const m=ar(b,r);return t(b,m),m}return function(){return i(lr.apply(null,arguments))}}const f=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},mt=/^\[(?:([a-z-]+):)?(.+)\]$/i,cr=/^\d+\/\d+$/,ur=new Set(["px","full","screen"]),pr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,mr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=n=>j(n)||ur.has(n)||cr.test(n),R=n=>J(n,"length",_r),j=n=>!!n&&!Number.isNaN(Number(n)),Ae=n=>J(n,"number",j),de=n=>!!n&&Number.isInteger(Number(n)),br=n=>n.endsWith("%")&&j(n.slice(0,-1)),h=n=>mt.test(n),T=n=>pr.test(n),vr=new Set(["length","size","percentage"]),wr=n=>J(n,vr,ft),yr=n=>J(n,"position",ft),xr=new Set(["image","url"]),$r=n=>J(n,xr,Sr),Cr=n=>J(n,"",Or),ce=()=>!0,J=(n,e,r)=>{const o=mt.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},_r=n=>hr.test(n)&&!gr.test(n),ft=()=>!1,Or=n=>mr.test(n),Sr=n=>fr.test(n),kr=dr(()=>{const n=f("colors"),e=f("spacing"),r=f("blur"),o=f("brightness"),t=f("borderColor"),i=f("borderRadius"),a=f("borderSpacing"),u=f("borderWidth"),b=f("contrast"),g=f("grayscale"),m=f("hueRotate"),x=f("invert"),$=f("gap"),P=f("gradientColorStops"),S=f("gradientColorStopPositions"),y=f("inset"),v=f("margin"),O=f("opacity"),k=f("padding"),ve=f("saturate"),Z=f("scale"),Pe=f("sepia"),Gt=f("skew"),Ft=f("space"),Vt=f("translate"),it=()=>["auto","contain","none"],st=()=>["auto","hidden","clip","visible","scroll"],at=()=>["auto",h,e],w=()=>[h,e],Ut=()=>["",L,R],Ee=()=>["auto",j,h],Ht=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],De=()=>["solid","dashed","dotted","double","none"],Xt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],lt=()=>["start","end","center","between","around","evenly","stretch"],we=()=>["","0",h],Yt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[j,h];return{cacheSize:500,separator:":",theme:{colors:[ce],spacing:[L,R],blur:["none","",T,h],brightness:z(),borderColor:[n],borderRadius:["none","","full",T,h],borderSpacing:w(),borderWidth:Ut(),contrast:z(),grayscale:we(),hueRotate:z(),invert:we(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[br,R],inset:at(),margin:at(),opacity:z(),padding:w(),saturate:z(),scale:z(),sepia:we(),skew:z(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":Yt()}],"break-before":[{"break-before":Yt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ht(),h]}],overflow:[{overflow:st()}],"overflow-x":[{"overflow-x":st()}],"overflow-y":[{"overflow-y":st()}],overscroll:[{overscroll:it()}],"overscroll-x":[{"overscroll-x":it()}],"overscroll-y":[{"overscroll-y":it()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",de,h]}],basis:[{basis:at()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:we()}],shrink:[{shrink:we()}],order:[{order:["first","last","none",de,h]}],"grid-cols":[{"grid-cols":[ce]}],"col-start-end":[{col:["auto",{span:["full",de,h]},h]}],"col-start":[{"col-start":Ee()}],"col-end":[{"col-end":Ee()}],"grid-rows":[{"grid-rows":[ce]}],"row-start-end":[{row:["auto",{span:[de,h]},h]}],"row-start":[{"row-start":Ee()}],"row-end":[{"row-end":Ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[$]}],"gap-x":[{"gap-x":[$]}],"gap-y":[{"gap-y":[$]}],"justify-content":[{justify:["normal",...lt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...lt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...lt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[Ft]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ft]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",T,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ae]}],"font-family":[{font:[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",j,Ae]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,R]}],"underline-offset":[{"underline-offset":["auto",L,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ht(),yr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$r]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...De(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:De()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...De()]}],"outline-offset":[{"outline-offset":[L,h]}],"outline-w":[{outline:[L,R]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:Ut()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[L,R]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",T,Cr]}],"shadow-color":[{shadow:[ce]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...Xt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Xt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",T,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[x]}],saturate:[{saturate:[ve]}],sepia:[{sepia:[Pe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[ve]}],"backdrop-sepia":[{"backdrop-sepia":[Pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[de,h]}],"translate-x":[{"translate-x":[Vt]}],"translate-y":[{"translate-y":[Vt]}],"skew-x":[{"skew-x":[Gt]}],"skew-y":[{"skew-y":[Gt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[L,R,Ae]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...n){return kr(Zt(n))}class _ extends l.LitElement{constructor(){super()}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,o=""){var i,a;let t="";e.some(u=>this.isCustomPropertySet(u))&&(t=o),t&&((a=(i=this.shadowRoot)==null?void 0:i.querySelector(r))==null||a.classList.add(t))}}function bt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(r=bt(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function Pr(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=bt(n))&&(o&&(o+=" "),o+=e);return o}const vt=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,wt=Pr,B=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return wt(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:i}=e,a=Object.keys(t).map(g=>{const m=r==null?void 0:r[g],x=i==null?void 0:i[g];if(m===null)return null;const $=vt(m)||vt(x);return t[g][$]}),u=r&&Object.entries(r).reduce((g,m)=>{let[x,$]=m;return $===void 0||(g[x]=$),g},{}),b=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((g,m)=>{let{class:x,className:$,...P}=m;return Object.entries(P).every(S=>{let[y,v]=S;return Array.isArray(v)?v.includes({...i,...u}[y]):{...i,...u}[y]===v})?[...g,x,$]:g},[]);return wt(n,a,b,r==null?void 0:r.class,r==null?void 0:r.className)},Er=B("inline-flex items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),c=l.css` @font-face {
1
+ (function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit-element"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit-element","lit/directives/ref.js"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.html_js,a.directive_js,a.asyncDirective_js,a.litElement,a.ref_js))})(this,function(a,l,d,ar,Be,lr,D,Q){"use strict";function wt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=wt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function dr(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=wt(n))&&(o&&(o+=" "),o+=e);return o}const Ne="-",cr=n=>{const e=pr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const u=i.split(Ne);return u[0]===""&&u.length!==1&&u.shift(),yt(u,e)||ur(i)},getConflictingClassGroupIds:(i,u)=>{const b=r[i]||[];return u&&o[i]?[...b,...o[i]]:b}}},yt=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?yt(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(Ne);return(i=e.validators.find(({validator:u})=>u(s)))==null?void 0:i.classGroupId},xt=/^\[(.+)\]$/,ur=n=>{if(xt.test(n)){const e=xt.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},pr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return gr(Object.entries(n.classGroups),r).forEach(([s,i])=>{Fe(i,o,s,e)}),o},Fe=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:$t(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(hr(t)){Fe(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{Fe(i,$t(e,s),r,o)})})},$t=(n,e)=>{let r=n;return e.split(Ne).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},hr=n=>n.isThemeGetter,gr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[r,t]}):n,mr=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(s,i)=>{r.set(s,i),e++,e>n&&(e=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return t(s,i),i},set(s,i){r.has(s)?r.set(s,i):t(s,i)}}},Ct="!",fr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=u=>{const b=[];let g=0,m=0,C;for(let v=0;v<u.length;v++){let P=u[v];if(g===0){if(P===t&&(o||u.slice(v,v+s)===e)){b.push(u.slice(m,v)),m=v+s;continue}if(P==="/"){C=v;continue}}P==="["?g++:P==="]"&&g--}const _=b.length===0?u:u.substring(m),k=_.startsWith(Ct),S=k?_.substring(1):_,$=C&&C>m?C-m:void 0;return{modifiers:b,hasImportantModifier:k,baseClassName:S,maybePostfixModifierPosition:$}};return r?u=>r({className:u,parseClassName:i}):i},br=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},vr=n=>({cache:mr(n.cacheSize),parseClassName:fr(n),...cr(n)}),wr=/\s+/,yr=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(wr);let u="";for(let b=i.length-1;b>=0;b-=1){const g=i[b],{modifiers:m,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:k}=r(g);let S=!!k,$=o(S?_.substring(0,k):_);if(!$){if(!S){u=g+(u.length>0?" "+u:u);continue}if($=o(_),!$){u=g+(u.length>0?" "+u:u);continue}S=!1}const v=br(m).join(":"),P=C?v+Ct:v,E=P+$;if(s.includes(E))continue;s.push(E);const $e=t($,S);for(let J=0;J<$e.length;++J){const ze=$e[J];s.push(P+ze)}u=g+(u.length>0?" "+u:u)}return u};function xr(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=_t(e))&&(o&&(o+=" "),o+=r);return o}const _t=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=_t(n[o]))&&(r&&(r+=" "),r+=e);return r};function $r(n,...e){let r,o,t,s=i;function i(b){const g=e.reduce((m,C)=>C(m),n());return r=vr(g),o=r.cache.get,t=r.cache.set,s=u,u(b)}function u(b){const g=o(b);if(g)return g;const m=yr(b,r);return t(b,m),m}return function(){return s(xr.apply(null,arguments))}}const f=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cr=/^\d+\/\d+$/,_r=new Set(["px","full","screen"]),Or=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Er=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=n=>ee(n)||_r.has(n)||Cr.test(n),T=n=>te(n,"length",Tr),ee=n=>!!n&&!Number.isNaN(Number(n)),qe=n=>te(n,"number",ee),he=n=>!!n&&Number.isInteger(Number(n)),Dr=n=>n.endsWith("%")&&ee(n.slice(0,-1)),h=n=>Ot.test(n),B=n=>Or.test(n),Mr=new Set(["length","size","percentage"]),Ir=n=>te(n,Mr,Pt),Ar=n=>te(n,"position",Pt),Lr=new Set(["image","url"]),zr=n=>te(n,Lr,Nr),Rr=n=>te(n,"",Br),ge=()=>!0,te=(n,e,r)=>{const o=Ot.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},Tr=n=>Pr.test(n)&&!Sr.test(n),Pt=()=>!1,Br=n=>Er.test(n),Nr=n=>kr.test(n),Fr=$r(()=>{const n=f("colors"),e=f("spacing"),r=f("blur"),o=f("brightness"),t=f("borderColor"),s=f("borderRadius"),i=f("borderSpacing"),u=f("borderWidth"),b=f("contrast"),g=f("grayscale"),m=f("hueRotate"),C=f("invert"),_=f("gap"),k=f("gradientColorStops"),S=f("gradientColorStopPositions"),$=f("inset"),v=f("margin"),P=f("opacity"),E=f("padding"),$e=f("saturate"),J=f("scale"),ze=f("sepia"),er=f("skew"),tr=f("space"),rr=f("translate"),mt=()=>["auto","contain","none"],ft=()=>["auto","hidden","clip","visible","scroll"],bt=()=>["auto",h,e],w=()=>[h,e],or=()=>["",L,T],Re=()=>["auto",ee,h],nr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Te=()=>["solid","dashed","dotted","double","none"],sr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],vt=()=>["start","end","center","between","around","evenly","stretch"],Ce=()=>["","0",h],ir=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ee,h];return{cacheSize:500,separator:":",theme:{colors:[ge],spacing:[L,T],blur:["none","",B,h],brightness:R(),borderColor:[n],borderRadius:["none","","full",B,h],borderSpacing:w(),borderWidth:or(),contrast:R(),grayscale:Ce(),hueRotate:R(),invert:Ce(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[Dr,T],inset:bt(),margin:bt(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:Ce(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":ir()}],"break-before":[{"break-before":ir()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...nr(),h]}],overflow:[{overflow:ft()}],"overflow-x":[{"overflow-x":ft()}],"overflow-y":[{"overflow-y":ft()}],overscroll:[{overscroll:mt()}],"overscroll-x":[{"overscroll-x":mt()}],"overscroll-y":[{"overscroll-y":mt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",he,h]}],basis:[{basis:bt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:Ce()}],shrink:[{shrink:Ce()}],order:[{order:["first","last","none",he,h]}],"grid-cols":[{"grid-cols":[ge]}],"col-start-end":[{col:["auto",{span:["full",he,h]},h]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[ge]}],"row-start-end":[{row:["auto",{span:[he,h]},h]}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...vt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...vt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...vt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[tr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[tr]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",B,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qe]}],"font-family":[{font:[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",ee,qe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,T]}],"underline-offset":[{"underline-offset":["auto",L,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...nr(),Ar]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zr]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Te(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Te()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Te()]}],"outline-offset":[{"outline-offset":[L,h]}],"outline-w":[{outline:[L,T]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:or()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[L,T]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",B,Rr]}],"shadow-color":[{shadow:[ge]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...sr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":sr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",B,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[C]}],saturate:[{saturate:[$e]}],sepia:[{sepia:[ze]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[$e]}],"backdrop-sepia":[{"backdrop-sepia":[ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[he,h]}],"translate-x":[{"translate-x":[rr]}],"translate-y":[{"translate-y":[rr]}],"skew-x":[{"skew-x":[er]}],"skew-y":[{"skew-y":[er]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[L,T,qe]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...n){return Fr(dr(n))}class y extends l.LitElement{constructor(){super()}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,o=""){var s,i;let t="";e.some(u=>this.isCustomPropertySet(u))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}function St(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(r=St(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function qr(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=St(n))&&(o&&(o+=" "),o+=e);return o}const Et=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,kt=qr,N=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return kt(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,i=Object.keys(t).map(g=>{const m=r==null?void 0:r[g],C=s==null?void 0:s[g];if(m===null)return null;const _=Et(m)||Et(C);return t[g][_]}),u=r&&Object.entries(r).reduce((g,m)=>{let[C,_]=m;return _===void 0||(g[C]=_),g},{}),b=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((g,m)=>{let{class:C,className:_,...k}=m;return Object.entries(k).every(S=>{let[$,v]=S;return Array.isArray(v)?v.includes({...s,...u}[$]):{...s,...u}[$]===v})?[...g,C,_]:g},[]);return kt(n,i,b,r==null?void 0:r.class,r==null?void 0:r.className)},Gr=N("inline-flex items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),c=l.css` @font-face {
2
2
  font-family: 'GeistSans';
3
3
 
4
4
  src: url('assets/fonts/Geist/Geist-Regular.woff2') format('woff2');
@@ -676,6 +676,10 @@ body {
676
676
  pointer-events: none;
677
677
  }
678
678
 
679
+ .pointer-events-auto {
680
+ pointer-events: auto;
681
+ }
682
+
679
683
  .visible {
680
684
  visibility: visible;
681
685
  }
@@ -708,6 +712,10 @@ body {
708
712
  inset: 0px;
709
713
  }
710
714
 
715
+ .bottom-0 {
716
+ bottom: 0px;
717
+ }
718
+
711
719
  .end-3 {
712
720
  inset-inline-end: 0.75rem;
713
721
  }
@@ -720,10 +728,22 @@ body {
720
728
  left: 50%;
721
729
  }
722
730
 
731
+ .right-0 {
732
+ right: 0px;
733
+ }
734
+
735
+ .right-1 {
736
+ right: 0.25rem;
737
+ }
738
+
723
739
  .right-4 {
724
740
  right: 1rem;
725
741
  }
726
742
 
743
+ .top-0 {
744
+ top: 0px;
745
+ }
746
+
727
747
  .top-1 {
728
748
  top: 0.25rem;
729
749
  }
@@ -740,10 +760,18 @@ body {
740
760
  top: 50%;
741
761
  }
742
762
 
763
+ .top-auto {
764
+ top: auto;
765
+ }
766
+
743
767
  .z-50 {
744
768
  z-index: 50;
745
769
  }
746
770
 
771
+ .z-\\[100\\] {
772
+ z-index: 100;
773
+ }
774
+
747
775
  .col-span-2 {
748
776
  grid-column: span 2 / span 2;
749
777
  }
@@ -781,6 +809,11 @@ body {
781
809
  margin-bottom: 2.5rem;
782
810
  }
783
811
 
812
+ .my-2 {
813
+ margin-top: 0.5rem;
814
+ margin-bottom: 0.5rem;
815
+ }
816
+
784
817
  .my-4 {
785
818
  margin-top: 1rem;
786
819
  margin-bottom: 1rem;
@@ -873,6 +906,11 @@ body {
873
906
  height: max-content;
874
907
  }
875
908
 
909
+ .size-4 {
910
+ width: 1rem;
911
+ height: 1rem;
912
+ }
913
+
876
914
  .h-1 {
877
915
  height: 0.25rem;
878
916
  }
@@ -941,6 +979,10 @@ body {
941
979
  max-height: 300px;
942
980
  }
943
981
 
982
+ .max-h-screen {
983
+ max-height: 100vh;
984
+ }
985
+
944
986
  .min-h-\\[80px\\] {
945
987
  min-height: 80px;
946
988
  }
@@ -977,6 +1019,10 @@ body {
977
1019
  width: 1.25rem;
978
1020
  }
979
1021
 
1022
+ .w-64 {
1023
+ width: 16rem;
1024
+ }
1025
+
980
1026
  .w-72 {
981
1027
  width: 18rem;
982
1028
  }
@@ -997,6 +1043,10 @@ body {
997
1043
  width: 1px;
998
1044
  }
999
1045
 
1046
+ .w-\\[350px\\] {
1047
+ width: 350px;
1048
+ }
1049
+
1000
1050
  .w-\\[400px\\] {
1001
1051
  width: 400px;
1002
1052
  }
@@ -1189,6 +1239,10 @@ body {
1189
1239
  flex-wrap: nowrap;
1190
1240
  }
1191
1241
 
1242
+ .items-start {
1243
+ align-items: flex-start;
1244
+ }
1245
+
1192
1246
  .items-center {
1193
1247
  align-items: center;
1194
1248
  }
@@ -1355,14 +1409,27 @@ body {
1355
1409
  border-width: 4px;
1356
1410
  }
1357
1411
 
1412
+ .border-y {
1413
+ border-top-width: 1px;
1414
+ border-bottom-width: 1px;
1415
+ }
1416
+
1358
1417
  .border-b {
1359
1418
  border-bottom-width: 1px;
1360
1419
  }
1361
1420
 
1421
+ .border-r {
1422
+ border-right-width: 1px;
1423
+ }
1424
+
1362
1425
  .border-blue-200 {
1363
1426
  border-color: var(--blue-200);
1364
1427
  }
1365
1428
 
1429
+ .border-destructive {
1430
+ border-color: hsl(var(--destructive));
1431
+ }
1432
+
1366
1433
  .border-gray-200 {
1367
1434
  --tw-border-opacity: 1;
1368
1435
  border-color: rgb(229 231 235 / var(--tw-border-opacity));
@@ -1381,6 +1448,10 @@ body {
1381
1448
  border-color: hsl(var(--input));
1382
1449
  }
1383
1450
 
1451
+ .border-muted {
1452
+ border-color: hsl(var(--muted));
1453
+ }
1454
+
1384
1455
  .border-primary {
1385
1456
  border-color: hsl(var(--primary));
1386
1457
  }
@@ -1510,6 +1581,10 @@ body {
1510
1581
  fill: hsl(var(--primary));
1511
1582
  }
1512
1583
 
1584
+ .p-0 {
1585
+ padding: 0;
1586
+ }
1587
+
1513
1588
  .p-1 {
1514
1589
  padding: 0.25rem;
1515
1590
  }
@@ -1613,6 +1688,10 @@ body {
1613
1688
  padding-inline-end: 2.25rem;
1614
1689
  }
1615
1690
 
1691
+ .pr-6 {
1692
+ padding-right: 1.5rem;
1693
+ }
1694
+
1616
1695
  .ps-4 {
1617
1696
  padding-inline-start: 1rem;
1618
1697
  }
@@ -1673,6 +1752,10 @@ body {
1673
1752
  font-family: GeistSans, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
1674
1753
  }
1675
1754
 
1755
+ .font-mono {
1756
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1757
+ }
1758
+
1676
1759
  .text-2xl {
1677
1760
  font-size: 1.5rem;
1678
1761
  line-height: 2rem;
@@ -1775,6 +1858,10 @@ body {
1775
1858
  color: hsl(var(--foreground));
1776
1859
  }
1777
1860
 
1861
+ .text-foreground\\/50 {
1862
+ color: hsl(var(--foreground) / 0.5);
1863
+ }
1864
+
1778
1865
  .text-gray-400 {
1779
1866
  --tw-text-opacity: 1;
1780
1867
  color: rgb(156 163 175 / var(--tw-text-opacity));
@@ -1814,6 +1901,11 @@ body {
1814
1901
  color: hsl(var(--primary-foreground));
1815
1902
  }
1816
1903
 
1904
+ .text-red-300 {
1905
+ --tw-text-opacity: 1;
1906
+ color: rgb(252 165 165 / var(--tw-text-opacity));
1907
+ }
1908
+
1817
1909
  .text-red-800 {
1818
1910
  color: var(--red-800);
1819
1911
  }
@@ -1854,6 +1946,10 @@ body {
1854
1946
  opacity: 0.7;
1855
1947
  }
1856
1948
 
1949
+ .opacity-90 {
1950
+ opacity: 0.9;
1951
+ }
1952
+
1857
1953
  .shadow {
1858
1954
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
1859
1955
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
@@ -2012,6 +2108,20 @@ body {
2012
2108
  color: hsl(var(--muted-foreground));
2013
2109
  }
2014
2110
 
2111
+ .first\\:rounded-l-md:first-child {
2112
+ border-top-left-radius: calc(var(--radius) - 2px);
2113
+ border-bottom-left-radius: calc(var(--radius) - 2px);
2114
+ }
2115
+
2116
+ .first\\:border-l:first-child {
2117
+ border-left-width: 1px;
2118
+ }
2119
+
2120
+ .last\\:rounded-r-md:last-child {
2121
+ border-top-right-radius: calc(var(--radius) - 2px);
2122
+ border-bottom-right-radius: calc(var(--radius) - 2px);
2123
+ }
2124
+
2015
2125
  .hover\\:bg-accent:hover {
2016
2126
  background-color: hsl(var(--accent));
2017
2127
  }
@@ -2033,6 +2143,10 @@ body {
2033
2143
  background-color: hsl(var(--primary) / 0.9);
2034
2144
  }
2035
2145
 
2146
+ .hover\\:bg-secondary:hover {
2147
+ background-color: hsl(var(--secondary));
2148
+ }
2149
+
2036
2150
  .hover\\:bg-secondary\\/80:hover {
2037
2151
  background-color: hsl(var(--secondary) / 0.8);
2038
2152
  }
@@ -2070,11 +2184,21 @@ body {
2070
2184
  color: hsl(var(--accent-foreground));
2071
2185
  }
2072
2186
 
2187
+ .focus\\:opacity-100:focus {
2188
+ opacity: 1;
2189
+ }
2190
+
2073
2191
  .focus\\:outline-none:focus {
2074
2192
  outline: 2px solid transparent;
2075
2193
  outline-offset: 2px;
2076
2194
  }
2077
2195
 
2196
+ .focus\\:ring-1:focus {
2197
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2198
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
2199
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
2200
+ }
2201
+
2078
2202
  .focus\\:ring-2:focus {
2079
2203
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2080
2204
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -2130,6 +2254,49 @@ body {
2130
2254
  opacity: 0.5;
2131
2255
  }
2132
2256
 
2257
+ .group:hover .group-hover\\:opacity-100 {
2258
+ opacity: 1;
2259
+ }
2260
+
2261
+ .group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40 {
2262
+ border-color: hsl(var(--muted) / 0.4);
2263
+ }
2264
+
2265
+ .group.destructive .group-\\[\\.destructive\\]\\:text-red-300 {
2266
+ --tw-text-opacity: 1;
2267
+ color: rgb(252 165 165 / var(--tw-text-opacity));
2268
+ }
2269
+
2270
+ .group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover {
2271
+ border-color: hsl(var(--destructive) / 0.3);
2272
+ }
2273
+
2274
+ .group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover {
2275
+ background-color: hsl(var(--destructive));
2276
+ }
2277
+
2278
+ .group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover {
2279
+ color: hsl(var(--destructive-foreground));
2280
+ }
2281
+
2282
+ .group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover {
2283
+ --tw-text-opacity: 1;
2284
+ color: rgb(254 242 242 / var(--tw-text-opacity));
2285
+ }
2286
+
2287
+ .group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus {
2288
+ --tw-ring-color: hsl(var(--destructive));
2289
+ }
2290
+
2291
+ .group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus {
2292
+ --tw-ring-opacity: 1;
2293
+ --tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity));
2294
+ }
2295
+
2296
+ .group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus {
2297
+ --tw-ring-offset-color: #dc2626;
2298
+ }
2299
+
2133
2300
  .peer:disabled ~ .peer-disabled\\:cursor-not-allowed {
2134
2301
  cursor: not-allowed;
2135
2302
  }
@@ -2138,6 +2305,10 @@ body {
2138
2305
  opacity: 0.7;
2139
2306
  }
2140
2307
 
2308
+ .has-\\[\\:disabled\\]\\:opacity-50:has(:disabled) {
2309
+ opacity: 0.5;
2310
+ }
2311
+
2141
2312
  .aria-selected\\:bg-accent[aria-selected="true"] {
2142
2313
  background-color: hsl(var(--accent));
2143
2314
  }
@@ -2150,6 +2321,21 @@ body {
2150
2321
  pointer-events: none;
2151
2322
  }
2152
2323
 
2324
+ .data-\\[swipe\\=cancel\\]\\:translate-x-0[data-swipe="cancel"] {
2325
+ --tw-translate-x: 0px;
2326
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2327
+ }
2328
+
2329
+ .data-\\[swipe\\=end\\]\\:translate-x-\\[var\\(--radix-toast-swipe-end-x\\)\\][data-swipe="end"] {
2330
+ --tw-translate-x: var(--radix-toast-swipe-end-x);
2331
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2332
+ }
2333
+
2334
+ .data-\\[swipe\\=move\\]\\:translate-x-\\[var\\(--radix-toast-swipe-move-x\\)\\][data-swipe="move"] {
2335
+ --tw-translate-x: var(--radix-toast-swipe-move-x);
2336
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2337
+ }
2338
+
2153
2339
  @keyframes accordion-up {
2154
2340
  from {
2155
2341
  height: var(--radix-accordion-content-height);
@@ -2220,6 +2406,10 @@ body {
2220
2406
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2221
2407
  }
2222
2408
 
2409
+ .data-\\[swipe\\=move\\]\\:transition-none[data-swipe="move"] {
2410
+ transition-property: none;
2411
+ }
2412
+
2223
2413
  .data-\\[state\\=open\\]\\:animate-in[data-state="open"] {
2224
2414
  animation-name: enter;
2225
2415
  animation-duration: 150ms;
@@ -2240,10 +2430,24 @@ body {
2240
2430
  --tw-exit-translate-y: initial;
2241
2431
  }
2242
2432
 
2433
+ .data-\\[swipe\\=end\\]\\:animate-out[data-swipe="end"] {
2434
+ animation-name: exit;
2435
+ animation-duration: 150ms;
2436
+ --tw-exit-opacity: initial;
2437
+ --tw-exit-scale: initial;
2438
+ --tw-exit-rotate: initial;
2439
+ --tw-exit-translate-x: initial;
2440
+ --tw-exit-translate-y: initial;
2441
+ }
2442
+
2243
2443
  .data-\\[state\\=closed\\]\\:fade-out-0[data-state="closed"] {
2244
2444
  --tw-exit-opacity: 0;
2245
2445
  }
2246
2446
 
2447
+ .data-\\[state\\=closed\\]\\:fade-out-80[data-state="closed"] {
2448
+ --tw-exit-opacity: 0.8;
2449
+ }
2450
+
2247
2451
  .data-\\[state\\=open\\]\\:fade-in-0[data-state="open"] {
2248
2452
  --tw-enter-opacity: 0;
2249
2453
  }
@@ -2276,6 +2480,10 @@ body {
2276
2480
  --tw-exit-translate-x: -50%;
2277
2481
  }
2278
2482
 
2483
+ .data-\\[state\\=closed\\]\\:slide-out-to-right-full[data-state="closed"] {
2484
+ --tw-exit-translate-x: 100%;
2485
+ }
2486
+
2279
2487
  .data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state="closed"] {
2280
2488
  --tw-exit-translate-y: -48%;
2281
2489
  }
@@ -2288,6 +2496,10 @@ body {
2288
2496
  --tw-enter-translate-y: -48%;
2289
2497
  }
2290
2498
 
2499
+ .data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state="open"] {
2500
+ --tw-enter-translate-y: -100%;
2501
+ }
2502
+
2291
2503
  .dark\\:border-neutral-700:is(.dark *) {
2292
2504
  --tw-border-opacity: 1;
2293
2505
  border-color: rgb(64 64 64 / var(--tw-border-opacity));
@@ -2324,6 +2536,18 @@ body {
2324
2536
  }
2325
2537
 
2326
2538
  @media (min-width: 640px) {
2539
+ .sm\\:bottom-0 {
2540
+ bottom: 0px;
2541
+ }
2542
+
2543
+ .sm\\:right-0 {
2544
+ right: 0px;
2545
+ }
2546
+
2547
+ .sm\\:top-auto {
2548
+ top: auto;
2549
+ }
2550
+
2327
2551
  .sm\\:max-w-\\[425px\\] {
2328
2552
  max-width: 425px;
2329
2553
  }
@@ -2332,6 +2556,10 @@ body {
2332
2556
  flex-direction: row;
2333
2557
  }
2334
2558
 
2559
+ .sm\\:flex-col {
2560
+ flex-direction: column;
2561
+ }
2562
+
2335
2563
  .sm\\:justify-end {
2336
2564
  justify-content: flex-end;
2337
2565
  }
@@ -2353,6 +2581,21 @@ body {
2353
2581
  .sm\\:text-left {
2354
2582
  text-align: left;
2355
2583
  }
2584
+
2585
+ .data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state="open"] {
2586
+ --tw-enter-translate-y: 100%;
2587
+ }
2588
+ }
2589
+
2590
+ @media (min-width: 768px) {
2591
+ .md\\:max-w-\\[420px\\] {
2592
+ max-width: 420px;
2593
+ }
2594
+ }
2595
+
2596
+ .\\[\\&\\+div\\]\\:text-xs+div {
2597
+ font-size: 0.75rem;
2598
+ line-height: 1rem;
2356
2599
  }
2357
2600
 
2358
2601
  .\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-full::-webkit-scrollbar-thumb {
@@ -2415,18 +2658,31 @@ body {
2415
2658
  .\\[\\&_\\[rtgcmd-group-heading\\]\\]\\:text-muted-foreground [rtgcmd-group-heading] {
2416
2659
  color: hsl(var(--muted-foreground));
2417
2660
  }
2418
- `;class yt extends Kt.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return Wt.nothing}update(e,[r]){var o;this.element!==e.element&&(this.element=e.element),this.host=((o=e.options)===null||o===void 0?void 0:o.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(e){if(!e)return;const{prevData:r,element:o}=this;for(const t in e){const i=e[t];i!==r[t]&&(o[t]=i)}}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r)(!e||!(t in e)&&o[t]===r[t])&&(o[t]=void 0)}}Me.directive(yt);class xt extends yt{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const r in e){const o=e[r];o!==this.eventData[r]&&this.applyEvent(r,o)}}applyEvent(e,r){const{prevData:o,element:t}=this;this.eventData[e]=r,o[e]&&t.removeEventListener(e,this,r),t.addEventListener(e,this,r)}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r)(!e||!(t in e)&&o[t]===r[t])&&this.groomEvent(t,r[t])}groomEvent(e,r){const{element:o}=this;delete this.eventData[e],o.removeEventListener(e,this,r)}handleEvent(e){const r=this.eventData[e.type];typeof r=="function"?r.call(this.host,e):r.handleEvent(e)}disconnected(){const{eventData:e,element:r}=this;for(const o in e){const t=o.slice(1),i=e[o];r.removeEventListener(t,this,i)}}reconnected(){const{eventData:e,element:r}=this;for(const o in e){const t=o.slice(1),i=e[o];r.addEventListener(t,this,i)}}}Me.directive(xt);class Dr extends xt{apply(e){if(!e)return;const{prevData:r,element:o}=this;for(const t in e){const i=e[t];if(i===r[t])continue;const a=t.slice(1);switch(t[0]){case"@":this.eventData[a]=i,this.applyEvent(a,i);break;case".":o[a]=i;break;case"?":i?o.setAttribute(a,""):o.removeAttribute(a);break;default:i!=null?o.setAttribute(t,String(i)):o.removeAttribute(t);break}}}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r){const i=t.slice(1);if(!e||!(t in e)&&o[i]===r[t])switch(t[0]){case"@":this.groomEvent(i,r[t]);break;case".":o[i]=void 0;break;case"?":o.removeAttribute(i);break;default:o.removeAttribute(t);break}}}}const C=Me.directive(Dr);var Mr=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor,N=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ir(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Mr(e,r,t),t};s.Button=class extends _{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default",this.externalClass="",this.isCustomClass=!1}handleClick(){this.disabled||this.click()}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
2661
+
2662
+ .\\[\\&_svg\\]\\:pointer-events-none svg {
2663
+ pointer-events: none;
2664
+ }
2665
+
2666
+ .\\[\\&_svg\\]\\:size-4 svg {
2667
+ width: 1rem;
2668
+ height: 1rem;
2669
+ }
2670
+
2671
+ .\\[\\&_svg\\]\\:shrink-0 svg {
2672
+ flex-shrink: 0;
2673
+ }
2674
+ `;class Dt extends lr.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return ar.nothing}update(e,[r]){var o;this.element!==e.element&&(this.element=e.element),this.host=((o=e.options)===null||o===void 0?void 0:o.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(e){if(!e)return;const{prevData:r,element:o}=this;for(const t in e){const s=e[t];s!==r[t]&&(o[t]=s)}}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r)(!e||!(t in e)&&o[t]===r[t])&&(o[t]=void 0)}}Be.directive(Dt);class Mt extends Dt{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const r in e){const o=e[r];o!==this.eventData[r]&&this.applyEvent(r,o)}}applyEvent(e,r){const{prevData:o,element:t}=this;this.eventData[e]=r,o[e]&&t.removeEventListener(e,this,r),t.addEventListener(e,this,r)}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r)(!e||!(t in e)&&o[t]===r[t])&&this.groomEvent(t,r[t])}groomEvent(e,r){const{element:o}=this;delete this.eventData[e],o.removeEventListener(e,this,r)}handleEvent(e){const r=this.eventData[e.type];typeof r=="function"?r.call(this.host,e):r.handleEvent(e)}disconnected(){const{eventData:e,element:r}=this;for(const o in e){const t=o.slice(1),s=e[o];r.removeEventListener(t,this,s)}}reconnected(){const{eventData:e,element:r}=this;for(const o in e){const t=o.slice(1),s=e[o];r.addEventListener(t,this,s)}}}Be.directive(Mt);class Vr extends Mt{apply(e){if(!e)return;const{prevData:r,element:o}=this;for(const t in e){const s=e[t];if(s===r[t])continue;const i=t.slice(1);switch(t[0]){case"@":this.eventData[i]=s,this.applyEvent(i,s);break;case".":o[i]=s;break;case"?":s?o.setAttribute(i,""):o.removeAttribute(i);break;default:s!=null?o.setAttribute(t,String(s)):o.removeAttribute(t);break}}}groom(e){const{prevData:r,element:o}=this;if(r)for(const t in r){const s=t.slice(1);if(!e||!(t in e)&&o[s]===r[t])switch(t[0]){case"@":this.groomEvent(s,r[t]);break;case".":o[s]=void 0;break;case"?":o.removeAttribute(s);break;default:o.removeAttribute(t);break}}}}const x=Be.directive(Vr);var Ur=Object.defineProperty,Xr=Object.getOwnPropertyDescriptor,F=(n,e,r,o)=>{for(var t=o>1?void 0:o?Xr(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ur(e,r,t),t};a.Button=class extends y{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default",this.externalClass="",this.isCustomClass=!1}handleClick(){this.disabled||this.click()}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
2419
2675
  <button
2420
2676
  part="button"
2421
2677
  type="${this.type}"
2422
2678
  ?disabled="${this.disabled}"
2423
- class="${p(s.Button.buttonVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.externalClass} ${this.isCustomClass?"rtg-button-custom-class":""}"
2679
+ class="${p(a.Button.buttonVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.externalClass} ${this.isCustomClass?"rtg-button-custom-class":""}"
2424
2680
  @click="${this.handleClick}"
2425
- ${C(e)}
2681
+ ${x(e)}
2426
2682
  >
2427
2683
  <slot></slot>
2428
2684
  </button>
2429
- `}},s.Button.buttonVariants=Er,s.Button.styles=[l.css`
2685
+ `}},a.Button.buttonVariants=Gr,a.Button.styles=[l.css`
2430
2686
  :host {
2431
2687
  --rtg-button-bg: unset;
2432
2688
  --rtg-button-color: unset;
@@ -2439,7 +2695,7 @@ body {
2439
2695
  border-radius: var(--rtg-button-radius, unset) !important;
2440
2696
  height: var(--rtg-button-height, unset) !important;
2441
2697
  }
2442
- `,c],N([d.property({type:Function})],s.Button.prototype,"click",2),N([d.property({type:Boolean})],s.Button.prototype,"disabled",2),N([d.property({type:String})],s.Button.prototype,"type",2),N([d.property({type:String})],s.Button.prototype,"variant",2),N([d.property({type:String})],s.Button.prototype,"size",2),N([d.property({type:String})],s.Button.prototype,"externalClass",2),N([d.property({type:String})],s.Button.prototype,"isCustomClass",2),s.Button=N([d.customElement("rtg-button")],s.Button);const Lr="peer h-4 w-4 align-middle shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",Ar="flex items-center justify-center text-current pointer-events-none";var zr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Q=(n,e,r,o)=>{for(var t=o>1?void 0:o?Rr(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&zr(e,r,t),t};s.Checkbox=class extends l.LitElement{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.type="text",this.value="",this.required=!1}_onClick(e){e.defaultPrevented||(this.checked=!this.checked,this.required=!this.required,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.checked=!this.checked,this.required=!this.required}render(){const e={...this.dataset};return l.html`
2698
+ `,c],F([d.property({type:Function})],a.Button.prototype,"click",2),F([d.property({type:Boolean})],a.Button.prototype,"disabled",2),F([d.property({type:String})],a.Button.prototype,"type",2),F([d.property({type:String})],a.Button.prototype,"variant",2),F([d.property({type:String})],a.Button.prototype,"size",2),F([d.property({type:String})],a.Button.prototype,"externalClass",2),F([d.property({type:String})],a.Button.prototype,"isCustomClass",2),a.Button=F([d.customElement("rtg-button")],a.Button);const Yr="peer h-4 w-4 align-middle shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",Hr="flex items-center justify-center text-current pointer-events-none";var Kr=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,re=(n,e,r,o)=>{for(var t=o>1?void 0:o?Wr(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Kr(e,r,t),t};a.Checkbox=class extends l.LitElement{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.type="text",this.value="",this.required=!1}_onClick(e){e.defaultPrevented||(this.checked=!this.checked,this.required=!this.required,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.checked=!this.checked,this.required=!this.required}render(){const e={...this.dataset};return l.html`
2443
2699
  <button
2444
2700
  data-testid="checkbox-atom"
2445
2701
  type="button"
@@ -2450,10 +2706,10 @@ body {
2450
2706
  ?required=${this.required}
2451
2707
  ?disabled=${this.disabled}
2452
2708
  @click="${this._onClick}"
2453
- class="${p(Lr,this.className)}"
2709
+ class="${p(Yr,this.className)}"
2454
2710
  ${Object.entries(e).map(([r,o])=>l.html` ${r}="${o}" `)}
2455
2711
  >
2456
- ${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${Ar}"
2712
+ ${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${Hr}"
2457
2713
  ><svg
2458
2714
  xmlns="http://www.w3.org/2000/svg"
2459
2715
  width="24"
@@ -2469,7 +2725,7 @@ body {
2469
2725
  <polyline points="20 6 9 17 4 12"></polyline></svg
2470
2726
  ></span>`:l.nothing}
2471
2727
  </button>
2472
- `}},s.Checkbox.styles=[l.css``,c],Q([d.property({type:Boolean})],s.Checkbox.prototype,"disabled",2),Q([d.property({type:Boolean})],s.Checkbox.prototype,"checked",2),Q([d.property({type:String})],s.Checkbox.prototype,"type",2),Q([d.property({type:String})],s.Checkbox.prototype,"value",2),Q([d.property({type:Boolean})],s.Checkbox.prototype,"required",2),s.Checkbox=Q([d.customElement("rtg-checkbox")],s.Checkbox);var Tr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,$t=(n,e,r,o)=>{for(var t=o>1?void 0:o?Br(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Tr(e,r,t),t};const Nr="open",Ct="closed";s.DialogContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Ct,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=Ct)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof s.Dialog)return e;e=e.parentElement}return e}render(){return l.html`${this.state===Nr?l.html`
2728
+ `}},a.Checkbox.styles=[l.css``,c],re([d.property({type:Boolean})],a.Checkbox.prototype,"disabled",2),re([d.property({type:Boolean})],a.Checkbox.prototype,"checked",2),re([d.property({type:String})],a.Checkbox.prototype,"type",2),re([d.property({type:String})],a.Checkbox.prototype,"value",2),re([d.property({type:Boolean})],a.Checkbox.prototype,"required",2),a.Checkbox=re([d.customElement("rtg-checkbox")],a.Checkbox);var Zr=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,It=(n,e,r,o)=>{for(var t=o>1?void 0:o?jr(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Zr(e,r,t),t};const Jr="open",At="closed";a.DialogContent=class extends l.LitElement{constructor(){super(...arguments),this.state=At,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=At)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof a.Dialog)return e;e=e.parentElement}return e}render(){return l.html`${this.state===Jr?l.html`
2473
2729
  <div
2474
2730
  class="${p("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",this.className)}"
2475
2731
  rtgdlg-content
@@ -2497,17 +2753,17 @@ body {
2497
2753
  ><span class="sr-only">Close</span>
2498
2754
  </button>
2499
2755
  </div>
2500
- `:l.nothing}`}},s.DialogContent.styles=[l.css``,c],$t([d.property({attribute:"data-state",type:String})],s.DialogContent.prototype,"state",2),s.DialogContent=$t([d.customElement("rtg-dialog-content")],s.DialogContent);var qr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Fr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Gr(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&qr(e,r,t),t};const Vr="closed";s.DialogClose=class extends l.LitElement{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof s.Dialog)return e;e=e.parentElement}return e}firstUpdated(e){var t;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"),o=r==null?void 0:r.assignedElements();o&&o.length>0&&o[0].addEventListener("click",()=>{const a=this._dialog;a&&(a.dataset.state=Vr)})}render(){return l.html`
2756
+ `:l.nothing}`}},a.DialogContent.styles=[l.css``,c],It([d.property({attribute:"data-state",type:String})],a.DialogContent.prototype,"state",2),a.DialogContent=It([d.customElement("rtg-dialog-content")],a.DialogContent);var Qr=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,to=(n,e,r,o)=>{for(var t=o>1?void 0:o?eo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Qr(e,r,t),t};const ro="closed";a.DialogClose=class extends l.LitElement{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof a.Dialog)return e;e=e.parentElement}return e}firstUpdated(e){var t;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector("slot"),o=r==null?void 0:r.assignedElements();o&&o.length>0&&o[0].addEventListener("click",()=>{const i=this._dialog;i&&(i.dataset.state=ro)})}render(){return l.html`
2501
2757
  <div>
2502
2758
  <slot></slot>
2503
2759
  </div>
2504
- `}},s.DialogClose.styles=[l.css``,c],s.DialogClose=Fr([d.customElement("rtg-dialog-close")],s.DialogClose);var Ur=Object.defineProperty,Hr=Object.getOwnPropertyDescriptor,Xr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Hr(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ur(e,r,t),t};s.DialogFooter=class extends l.LitElement{render(){return l.html`
2760
+ `}},a.DialogClose.styles=[l.css``,c],a.DialogClose=to([d.customElement("rtg-dialog-close")],a.DialogClose);var oo=Object.defineProperty,no=Object.getOwnPropertyDescriptor,so=(n,e,r,o)=>{for(var t=o>1?void 0:o?no(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&oo(e,r,t),t};a.DialogFooter=class extends l.LitElement{render(){return l.html`
2505
2761
  <div
2506
2762
  class="${p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",this.className)}"
2507
2763
  >
2508
2764
  <slot></slot>
2509
2765
  </div>
2510
- `}},s.DialogFooter.styles=[l.css``,c],s.DialogFooter=Xr([d.customElement("rtg-dialog-footer")],s.DialogFooter);var Yr=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,ze=(n,e,r,o)=>{for(var t=o>1?void 0:o?Wr(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Yr(e,r,t),t};s.DialogHeader=class extends l.LitElement{constructor(){super(...arguments),this._title="",this.description=""}render(){return l.html`
2766
+ `}},a.DialogFooter.styles=[l.css``,c],a.DialogFooter=so([d.customElement("rtg-dialog-footer")],a.DialogFooter);var io=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,Ge=(n,e,r,o)=>{for(var t=o>1?void 0:o?ao(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&io(e,r,t),t};a.DialogHeader=class extends l.LitElement{constructor(){super(...arguments),this._title="",this.description=""}render(){return l.html`
2511
2767
  <div
2512
2768
  class="${p("flex flex-col space-y-1.5 text-center sm:text-left",this.className)}"
2513
2769
  >
@@ -2520,37 +2776,37 @@ body {
2520
2776
  ${this.description}
2521
2777
  </p>
2522
2778
  </div>
2523
- `}},s.DialogHeader.styles=[l.css``,c],ze([d.property({attribute:"title",type:String})],s.DialogHeader.prototype,"_title",2),ze([d.property({type:String})],s.DialogHeader.prototype,"description",2),s.DialogHeader=ze([d.customElement("rtg-dialog-header")],s.DialogHeader);var Kr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,jr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zr(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Kr(e,r,t),t};s.DialogOverlay=class extends l.LitElement{render(){return l.html`
2779
+ `}},a.DialogHeader.styles=[l.css``,c],Ge([d.property({attribute:"title",type:String})],a.DialogHeader.prototype,"_title",2),Ge([d.property({type:String})],a.DialogHeader.prototype,"description",2),a.DialogHeader=Ge([d.customElement("rtg-dialog-header")],a.DialogHeader);var lo=Object.defineProperty,co=Object.getOwnPropertyDescriptor,uo=(n,e,r,o)=>{for(var t=o>1?void 0:o?co(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&lo(e,r,t),t};a.DialogOverlay=class extends l.LitElement{render(){return l.html`
2524
2780
  <div
2525
2781
  class="${p("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",this.className)}"
2526
2782
  ></div>
2527
- `}},s.DialogOverlay.styles=[l.css``,c],s.DialogOverlay=jr([d.customElement("rtg-dialog-overlay")],s.DialogOverlay);var Jr=Object.defineProperty,Qr=Object.getOwnPropertyDescriptor,_t=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qr(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Jr(e,r,t),t};const eo="open",to="closed";s.Dialog=class extends l.LitElement{constructor(){super(...arguments),this.state=to}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof s.DialogContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.state)}render(){return l.html`
2783
+ `}},a.DialogOverlay.styles=[l.css``,c],a.DialogOverlay=uo([d.customElement("rtg-dialog-overlay")],a.DialogOverlay);var po=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,Lt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ho(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&po(e,r,t),t};const go="open",mo="closed";a.Dialog=class extends l.LitElement{constructor(){super(...arguments),this.state=mo}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof a.DialogContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.state)}render(){return l.html`
2528
2784
  <div rtgdlg-root>
2529
- ${this.state===eo?l.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:l.nothing}
2785
+ ${this.state===go?l.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:l.nothing}
2530
2786
  <slot></slot>
2531
2787
  </div>
2532
- `}},s.Dialog.styles=[l.css``,c],_t([d.property({attribute:"data-state",type:String})],s.Dialog.prototype,"state",2),s.Dialog=_t([d.customElement("rtg-dialog")],s.Dialog);const ro="flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 input-base";var oo=Object.defineProperty,no=Object.getOwnPropertyDescriptor,ee=(n,e,r,o)=>{for(var t=o>1?void 0:o?no(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&oo(e,r,t),t};s.Input=class extends _{constructor(){super(),this.disabled=!1,this.type="text",this.placeholder="",this.defaultValue="",this.value="",this.attachShadow({mode:"open"}),this.value=this.value||this.defaultValue}firstUpdated(e){const r=["--input-border-radius","--input-padding"];this.applyCustomClass(r,"input","input-base"),this.type!=="file"&&this.defaultValue&&(this.value=this.defaultValue)}handleInputChange(e){const r=e.target;r.type==="file"?this.value=r.files?r.files[0].name:"":this.value=r.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
2788
+ `}},a.Dialog.styles=[l.css``,c],Lt([d.property({attribute:"data-state",type:String})],a.Dialog.prototype,"state",2),a.Dialog=Lt([d.customElement("rtg-dialog")],a.Dialog);const fo="flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 input-base";var bo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,oe=(n,e,r,o)=>{for(var t=o>1?void 0:o?vo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&bo(e,r,t),t};a.Input=class extends y{constructor(){super(),this.disabled=!1,this.type="text",this.placeholder="",this.defaultValue="",this.value="",this.attachShadow({mode:"open"}),this.value=this.value||this.defaultValue}firstUpdated(e){const r=["--input-border-radius","--input-padding"];this.applyCustomClass(r,"input","input-base"),this.type!=="file"&&this.defaultValue&&(this.value=this.defaultValue)}handleInputChange(e){const r=e.target;r.type==="file"?this.value=r.files?r.files[0].name:"":this.value=r.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
2533
2789
  <input
2534
2790
  part="input"
2535
2791
  type="${this.type}"
2536
2792
  placeholder="${this.placeholder}"
2537
2793
  ?disabled=${this.disabled}
2538
- class="${p(ro,this.className)}"
2794
+ class="${p(fo,this.className)}"
2539
2795
  .value=${this.type!=="file"?this.value:""}
2540
2796
  @change="${this.handleInputChange}"
2541
- ${C(e)}
2797
+ ${x(e)}
2542
2798
  />
2543
- `}},s.Input.styles=[l.css``,c],ee([d.property({type:Boolean})],s.Input.prototype,"disabled",2),ee([d.property({type:String})],s.Input.prototype,"type",2),ee([d.property({type:String})],s.Input.prototype,"placeholder",2),ee([d.property({type:String})],s.Input.prototype,"defaultValue",2),ee([d.property({type:String})],s.Input.prototype,"value",2),s.Input=ee([d.customElement("rtg-input")],s.Input);const io=B("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");var so=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,Ot=(n,e,r,o)=>{for(var t=o>1?void 0:o?ao(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&so(e,r,t),t};let te=class extends _{constructor(){super(...arguments),this.for=""}firstUpdated(n){const e=["--label-text-color,--label-padding"];this.applyCustomClass(e,"label","label-base")}_onClick(n){var r;if(n.defaultPrevented)return;const e=(r=this.shadowRoot)==null?void 0:r.getElementById(this.for);e&&e.click()}getAttributesToExclude(){return["for","data-testid"]}render(){const n=this.getFilteredAttributes();return l.html`
2799
+ `}},a.Input.styles=[l.css``,c],oe([d.property({type:Boolean})],a.Input.prototype,"disabled",2),oe([d.property({type:String})],a.Input.prototype,"type",2),oe([d.property({type:String})],a.Input.prototype,"placeholder",2),oe([d.property({type:String})],a.Input.prototype,"defaultValue",2),oe([d.property({type:String})],a.Input.prototype,"value",2),a.Input=oe([d.customElement("rtg-input")],a.Input);const wo=N("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");var yo=Object.defineProperty,xo=Object.getOwnPropertyDescriptor,zt=(n,e,r,o)=>{for(var t=o>1?void 0:o?xo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&yo(e,r,t),t};let ne=class extends y{constructor(){super(...arguments),this.for=""}firstUpdated(n){const e=["--label-text-color,--label-padding"];this.applyCustomClass(e,"label","label-base")}_onClick(n){var r;if(n.defaultPrevented)return;const e=(r=this.shadowRoot)==null?void 0:r.getElementById(this.for);e&&e.click()}getAttributesToExclude(){return["for","data-testid"]}render(){const n=this.getFilteredAttributes();return l.html`
2544
2800
  <label
2545
2801
  for="${this.for}"
2546
2802
  @click="${this._onClick}"
2547
2803
  @keydown="${this._onClick}"
2548
- class="${p(te.labelVariants({className:this.className}))}"
2549
- ${C(n)}
2804
+ class="${p(ne.labelVariants({className:this.className}))}"
2805
+ ${x(n)}
2550
2806
  >
2551
2807
  <slot></slot>
2552
2808
  </label>
2553
- `}};te.labelVariants=io,te.styles=[l.css`
2809
+ `}};ne.labelVariants=wo,ne.styles=[l.css`
2554
2810
  :root {
2555
2811
  --label-text-color: inherit;
2556
2812
  --label-padding: inherit;
@@ -2559,7 +2815,7 @@ body {
2559
2815
  color: var(--label-text-color) !important;
2560
2816
  padding: var(--label-padding) !important;
2561
2817
  }
2562
- `,c],Ot([d.property({type:String})],te.prototype,"for",2),te=Ot([d.customElement("rtg-label")],te);var lo=Object.defineProperty,co=Object.getOwnPropertyDescriptor,St=(n,e,r,o)=>{for(var t=o>1?void 0:o?co(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&lo(e,r,t),t};let ye=class extends l.LitElement{render(){return l.html`
2818
+ `,c],zt([d.property({type:String})],ne.prototype,"for",2),ne=zt([d.customElement("rtg-label")],ne);var $o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,Rt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Co(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&$o(e,r,t),t};let _e=class extends l.LitElement{render(){return l.html`
2563
2819
  <div
2564
2820
  class="${p("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md",this.className)}"
2565
2821
  id="rtgcmdr1"
@@ -2567,7 +2823,7 @@ body {
2567
2823
  >
2568
2824
  <slot></slot>
2569
2825
  </div>
2570
- `}};ye.styles=[l.css``,c],St([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],ye.prototype,"_input",2),ye=St([d.customElement("rtg-command")],ye);var uo=Object.defineProperty,po=Object.getOwnPropertyDescriptor,Re=(n,e,r,o)=>{for(var t=o>1?void 0:o?po(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&uo(e,r,t),t};let q=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="true"}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}e${q._counter++}`:this._id=`rtgcmdrxlxe${q._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
2826
+ `}};_e.styles=[l.css``,c],Rt([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],_e.prototype,"_input",2),_e=Rt([d.customElement("rtg-command")],_e);var _o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&_o(e,r,t),t};let q=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="true"}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}e${q._counter++}`:this._id=`rtgcmdrxlxe${q._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
2571
2827
  <div
2572
2828
  class="${p("py-6 text-center text-sm",this.className)}"
2573
2829
  rtgcmd-empty
@@ -2576,7 +2832,7 @@ body {
2576
2832
  >
2577
2833
  <slot></slot>
2578
2834
  </div>
2579
- `}`}};q._counter=0,q.styles=[l.css``,c],Re([d.property({type:String})],q.prototype,"_id",2),Re([d.property({attribute:"aria-hidden",type:String})],q.prototype,"_hidden",2),q=Re([d.customElement("rtg-command-empty")],q);var ho=Object.defineProperty,go=Object.getOwnPropertyDescriptor,xe=(n,e,r,o)=>{for(var t=o>1?void 0:o?go(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ho(e,r,t),t};let A=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}g${A._counter++}`:this._id=`rtgcmdrxlxg${A._counter++}`,this._id}render(){const n="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
2835
+ `}`}};q._counter=0,q.styles=[l.css``,c],Ve([d.property({type:String})],q.prototype,"_id",2),Ve([d.property({attribute:"aria-hidden",type:String})],q.prototype,"_hidden",2),q=Ve([d.customElement("rtg-command-empty")],q);var Po=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Oe=(n,e,r,o)=>{for(var t=o>1?void 0:o?So(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Po(e,r,t),t};let z=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}g${z._counter++}`:this._id=`rtgcmdrxlxg${z._counter++}`,this._id}render(){const n="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
2580
2836
  <div
2581
2837
  class="${n}"
2582
2838
  rtgcmd-group
@@ -2598,7 +2854,7 @@ body {
2598
2854
  <slot></slot>
2599
2855
  </div>
2600
2856
  </div>
2601
- `}`}};A._counter=0,A.styles=[l.css``,c],xe([d.property({type:String})],A.prototype,"heading",2),xe([d.property({attribute:"id",type:String})],A.prototype,"_id",2),xe([d.property({attribute:"aria-hidden",type:String})],A.prototype,"_hidden",2),A=xe([d.customElement("rtg-command-group")],A);var mo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,Te=(n,e,r,o)=>{for(var t=o>1?void 0:o?fo(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&mo(e,r,t),t};let ue=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const n=this.parentElement;if(n){let e=!0;const r=n.querySelectorAll("rtg-command-list > rtg-command-group");r&&r.forEach(t=>{var b,g;let i=!0;const a=t.querySelectorAll("rtg-command-item");a&&a.forEach(m=>{((m==null?void 0:m.value)||"").toLowerCase().includes(this._value.toLowerCase())?(i=!1,e=!1,m.setAttribute("aria-hidden","false")):m.setAttribute("aria-hidden","true")}),t.setAttribute("aria-hidden",i?"true":"false");let u=t.previousElementSibling;u&&u.setAttribute("aria-hidden",i||((b=u.previousElementSibling)==null?void 0:b.getAttribute("aria-hidden"))==="true"?"true":"false"),u=t.nextElementSibling,u&&u.setAttribute("aria-hidden",i||((g=u.nextElementSibling)==null?void 0:g.getAttribute("aria-hidden"))==="true"?"true":"false")});const o=n.querySelector("rtg-command-empty");o&&o.setAttribute("aria-hidden",e?"false":"true")}}handleChange(n){const e=n.target;e&&(this._value=e.value,this.filterItems())}render(){return l.html`
2857
+ `}`}};z._counter=0,z.styles=[l.css``,c],Oe([d.property({type:String})],z.prototype,"heading",2),Oe([d.property({attribute:"id",type:String})],z.prototype,"_id",2),Oe([d.property({attribute:"aria-hidden",type:String})],z.prototype,"_hidden",2),z=Oe([d.customElement("rtg-command-group")],z);var Eo=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,Ue=(n,e,r,o)=>{for(var t=o>1?void 0:o?ko(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Eo(e,r,t),t};let me=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const n=this.parentElement;if(n){let e=!0;const r=n.querySelectorAll("rtg-command-list > rtg-command-group");r&&r.forEach(t=>{var b,g;let s=!0;const i=t.querySelectorAll("rtg-command-item");i&&i.forEach(m=>{((m==null?void 0:m.value)||"").toLowerCase().includes(this._value.toLowerCase())?(s=!1,e=!1,m.setAttribute("aria-hidden","false")):m.setAttribute("aria-hidden","true")}),t.setAttribute("aria-hidden",s?"true":"false");let u=t.previousElementSibling;u&&u.setAttribute("aria-hidden",s||((b=u.previousElementSibling)==null?void 0:b.getAttribute("aria-hidden"))==="true"?"true":"false"),u=t.nextElementSibling,u&&u.setAttribute("aria-hidden",s||((g=u.nextElementSibling)==null?void 0:g.getAttribute("aria-hidden"))==="true"?"true":"false")});const o=n.querySelector("rtg-command-empty");o&&o.setAttribute("aria-hidden",e?"false":"true")}}handleChange(n){const e=n.target;e&&(this._value=e.value,this.filterItems())}render(){return l.html`
2602
2858
  <div
2603
2859
  class="${p("flex items-center border-b px-3",this.className)}"
2604
2860
  name="rtgcmd-input-container"
@@ -2636,7 +2892,7 @@ body {
2636
2892
  data-value="${this._value}"
2637
2893
  />
2638
2894
  </div>
2639
- `}};ue.styles=[l.css``,c],Te([d.property({type:String})],ue.prototype,"placeholder",2),Te([d.property({attribute:"value",type:String})],ue.prototype,"_value",2),ue=Te([d.customElement("rtg-command-input")],ue);var bo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,pe=(n,e,r,o)=>{for(var t=o>1?void 0:o?vo(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&bo(e,r,t),t};let D=class extends l.LitElement{constructor(){super(...arguments),this.selected=!1,this._id="",this._hidden="",this.onSelect=()=>{}}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-group]");return n?this._id=`${n.getAttribute("id")}li${D._counter++}`:this._id=`rtgcmdrxgxli${D._counter++}`,this._id}get value(){var n;return((n=this.textContent)==null?void 0:n.trim())||""}handleMouseEvent(n){(n.type==="mouseover"||n.type==="focus")&&(this.selected=!0),n.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
2895
+ `}};me.styles=[l.css``,c],Ue([d.property({type:String})],me.prototype,"placeholder",2),Ue([d.property({attribute:"value",type:String})],me.prototype,"_value",2),me=Ue([d.customElement("rtg-command-input")],me);var Do=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,fe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Mo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Do(e,r,t),t};let M=class extends l.LitElement{constructor(){super(...arguments),this.selected=!1,this._id="",this._hidden="",this.onSelect=()=>{}}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-group]");return n?this._id=`${n.getAttribute("id")}li${M._counter++}`:this._id=`rtgcmdrxgxli${M._counter++}`,this._id}get value(){var n;return((n=this.textContent)==null?void 0:n.trim())||""}handleMouseEvent(n){(n.type==="mouseover"||n.type==="focus")&&(this.selected=!0),n.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
2640
2896
  <div
2641
2897
  class="${p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",this.className)}"
2642
2898
  @mouseover="${this.handleMouseEvent}"
@@ -2653,7 +2909,7 @@ body {
2653
2909
  >
2654
2910
  <slot></slot>
2655
2911
  </div>
2656
- `}`}};D._counter=0,D.styles=[l.css``,c],pe([d.property({type:String})],D.prototype,"_id",2),pe([d.property({attribute:"aria-hidden",type:String})],D.prototype,"_hidden",2),pe([d.property({type:Function})],D.prototype,"onSelect",2),pe([d.property({attribute:"data-value",type:String}),d.property({type:Boolean})],D.prototype,"identifier",1),D=pe([d.customElement("rtg-command-item")],D);var wo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,xo=(n,e,r,o)=>{for(var t=o>1?void 0:o?yo(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&wo(e,r,t),t};let Be=class extends l.LitElement{get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}l`:"rtgcmdrxl"}render(){return l.html`
2912
+ `}`}};M._counter=0,M.styles=[l.css``,c],fe([d.property({type:String})],M.prototype,"_id",2),fe([d.property({attribute:"aria-hidden",type:String})],M.prototype,"_hidden",2),fe([d.property({type:Function})],M.prototype,"onSelect",2),fe([d.property({attribute:"data-value",type:String}),d.property({type:Boolean})],M.prototype,"identifier",1),M=fe([d.customElement("rtg-command-item")],M);var Io=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,Lo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ao(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Io(e,r,t),t};let Xe=class extends l.LitElement{get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}l`:"rtgcmdrxl"}render(){return l.html`
2657
2913
  <div
2658
2914
  class="${p("max-h-[300px] overflow-y-auto overflow-x-hidden",this.className)}"
2659
2915
  role="listbox"
@@ -2665,28 +2921,28 @@ body {
2665
2921
  <slot></slot>
2666
2922
  </div>
2667
2923
  </div>
2668
- `}};Be.styles=[l.css``,c],Be=xo([d.customElement("rtg-command-list")],Be);var $o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,Ne=(n,e,r,o)=>{for(var t=o>1?void 0:o?Co(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&$o(e,r,t),t};let G=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}s${G._counter++}`:this._id=`rtgcmdrxlxs${G._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
2924
+ `}};Xe.styles=[l.css``,c],Xe=Lo([d.customElement("rtg-command-list")],Xe);var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Ye=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ro(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&zo(e,r,t),t};let G=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}s${G._counter++}`:this._id=`rtgcmdrxlxs${G._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
2669
2925
  <div
2670
2926
  class="${p("-mx-1 h-px bg-border",this.className)}"
2671
2927
  rtgcmd-separator
2672
2928
  role="separator"
2673
2929
  id="${this.identifier}"
2674
2930
  ></div>
2675
- `}`}};G._counter=0,G.styles=[l.css``,c],Ne([d.property({type:String})],G.prototype,"_id",2),Ne([d.property({attribute:"aria-hidden",type:String})],G.prototype,"_hidden",2),G=Ne([d.customElement("rtg-command-separator")],G);var _o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,So=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oo(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&_o(e,r,t),t};s.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},s.CardTitle.styles=[l.css``,c],s.CardTitle=So([d.customElement("rtg-card-title")],s.CardTitle);var ko=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,Eo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Po(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ko(e,r,t),t};s.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},s.CardHeader.styles=[l.css``,c],s.CardHeader=Eo([d.customElement("rtg-card-header")],s.CardHeader);var Do=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,Io=(n,e,r,o)=>{for(var t=o>1?void 0:o?Mo(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Do(e,r,t),t};s.CardFooter=class extends l.LitElement{render(){return l.html` <slot part="card-footer"></slot> `}},s.CardFooter.styles=[l.css``,c],s.CardFooter=Io([d.customElement("rtg-card-footer")],s.CardFooter);var Lo=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,zo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ao(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Lo(e,r,t),t};s.CardDescription=class extends l.LitElement{render(){return l.html` <slot part="card-description"></slot> `}},s.CardDescription.styles=[l.css``,c],s.CardDescription=zo([d.customElement("rtg-card-description")],s.CardDescription);var Ro=Object.defineProperty,To=Object.getOwnPropertyDescriptor,Bo=(n,e,r,o)=>{for(var t=o>1?void 0:o?To(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ro(e,r,t),t};s.CardContent=class extends l.LitElement{render(){return l.html` <slot part="card-content"></slot> `}},s.CardContent.styles=[l.css``,c],s.CardContent=Bo([d.customElement("rtg-card-content")],s.CardContent);var No=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Go=(n,e,r,o)=>{for(var t=o>1?void 0:o?qo(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&No(e,r,t),t};s.Card=class extends l.LitElement{render(){return l.html`<div
2931
+ `}`}};G._counter=0,G.styles=[l.css``,c],Ye([d.property({type:String})],G.prototype,"_id",2),Ye([d.property({attribute:"aria-hidden",type:String})],G.prototype,"_hidden",2),G=Ye([d.customElement("rtg-command-separator")],G);var To=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,No=(n,e,r,o)=>{for(var t=o>1?void 0:o?Bo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&To(e,r,t),t};a.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},a.CardTitle.styles=[l.css``,c],a.CardTitle=No([d.customElement("rtg-card-title")],a.CardTitle);var Fo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Go=(n,e,r,o)=>{for(var t=o>1?void 0:o?qo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Fo(e,r,t),t};a.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},a.CardHeader.styles=[l.css``,c],a.CardHeader=Go([d.customElement("rtg-card-header")],a.CardHeader);var Vo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Xo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Uo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Vo(e,r,t),t};a.CardFooter=class extends l.LitElement{render(){return l.html` <slot part="card-footer"></slot> `}},a.CardFooter.styles=[l.css``,c],a.CardFooter=Xo([d.customElement("rtg-card-footer")],a.CardFooter);var Yo=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,Ko=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ho(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Yo(e,r,t),t};a.CardDescription=class extends l.LitElement{render(){return l.html` <slot part="card-description"></slot> `}},a.CardDescription.styles=[l.css``,c],a.CardDescription=Ko([d.customElement("rtg-card-description")],a.CardDescription);var Wo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,jo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Wo(e,r,t),t};a.CardContent=class extends l.LitElement{render(){return l.html` <slot part="card-content"></slot> `}},a.CardContent.styles=[l.css``,c],a.CardContent=jo([d.customElement("rtg-card-content")],a.CardContent);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,en=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Jo(e,r,t),t};a.Card=class extends l.LitElement{render(){return l.html`<div
2676
2932
  part="card"
2677
2933
  class="rounded-lg border bg-card text-card-foreground shadow-sm p-6"
2678
2934
  id="rtg-card-id"
2679
2935
  >
2680
2936
  <slot></slot>
2681
- </div>`}},s.Card.styles=[l.css``,c],s.Card=Go([d.customElement("rtg-card")],s.Card);const Fo=B("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none transition-transform transition-opacity",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}}),Vo=B("fixed",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}});var Uo=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,qe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ho(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Uo(e,r,t),t};s.PopoverContent=class extends l.LitElement{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.side="bottom"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof s.Popover);)e=e.parentElement;return e}handleClickOutside(e){var o,t;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(r&&!((t=r.assignedElements({flatten:!0})[0])!=null&&t.contains(e.target))){const a=this._popover;a.isOpen=!1}}firstUpdated(e){window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var r;(r=this._popover)!=null&&r.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}render(){const e=this.enableDefaultStyle?Fo({state:"open",side:this.side}):Vo({state:"open",side:this.side});return l.html`
2937
+ </div>`}},a.Card.styles=[l.css``,c],a.Card=en([d.customElement("rtg-card")],a.Card);const tn=N("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none transition-transform transition-opacity",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}}),rn=N("fixed",{variants:{state:{open:"opacity-100 scale-100 duration-500",closed:"opacity-0 scale-95 duration-500"},side:{bottom:"translate-y-0",left:"translate-x-0",right:"translate-x-0",top:"translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}});var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,He=(n,e,r,o)=>{for(var t=o>1?void 0:o?nn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&on(e,r,t),t};a.PopoverContent=class extends l.LitElement{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.side="bottom"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof a.Popover);)e=e.parentElement;return e}handleClickOutside(e){var o,t;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(r&&!((t=r.assignedElements({flatten:!0})[0])!=null&&t.contains(e.target))){const i=this._popover;i.isOpen=!1}}firstUpdated(e){window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var r;(r=this._popover)!=null&&r.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}render(){const e=this.enableDefaultStyle?tn({state:"open",side:this.side}):rn({state:"open",side:this.side});return l.html`
2682
2938
  <div class="${p(e)}">
2683
2939
  <slot></slot>
2684
2940
  </div>
2685
- `}},s.PopoverContent.styles=[l.css``,c],qe([d.property({type:Boolean})],s.PopoverContent.prototype,"enableDefaultStyle",2),qe([d.property({type:String})],s.PopoverContent.prototype,"side",2),s.PopoverContent=qe([d.customElement("rtg-popover-content")],s.PopoverContent);var Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Wo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Yo(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Xo(e,r,t),t};s.PopoverTrigger=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof s.Popover);)e=e.parentElement;return e}firstUpdated(e){var t,i;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="trigger-button"]'),o=r==null?void 0:r.assignedElements({flatten:!0});o&&o.length>0&&(o[0].click=this.handleClick),(i=this.shadowRoot)==null||i.addEventListener("click",a=>{a.stopPropagation()})}render(){return l.html`
2941
+ `}},a.PopoverContent.styles=[l.css``,c],He([d.property({type:Boolean})],a.PopoverContent.prototype,"enableDefaultStyle",2),He([d.property({type:String})],a.PopoverContent.prototype,"side",2),a.PopoverContent=He([d.customElement("rtg-popover-content")],a.PopoverContent);var sn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,ln=(n,e,r,o)=>{for(var t=o>1?void 0:o?an(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&sn(e,r,t),t};a.PopoverTrigger=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof a.Popover);)e=e.parentElement;return e}firstUpdated(e){var t,s;super.firstUpdated(e);const r=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="trigger-button"]'),o=r==null?void 0:r.assignedElements({flatten:!0});o&&o.length>0&&(o[0].click=this.handleClick),(s=this.shadowRoot)==null||s.addEventListener("click",i=>{i.stopPropagation()})}render(){return l.html`
2686
2942
  <div style="width: fit-content;">
2687
2943
  <slot name="trigger-button"></slot>
2688
2944
  </div>
2689
- `}},s.PopoverTrigger.styles=[l.css``,c],s.PopoverTrigger=Wo([d.customElement("rtg-popover-trigger")],s.PopoverTrigger);var Ko=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,kt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zo(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ko(e,r,t),t};s.Popover=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1}firstUpdated(e){super.firstUpdated(e)}updated(e){super.updated(e)}render(){return l.html`
2945
+ `}},a.PopoverTrigger.styles=[l.css``,c],a.PopoverTrigger=ln([d.customElement("rtg-popover-trigger")],a.PopoverTrigger);var dn=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,Tt=(n,e,r,o)=>{for(var t=o>1?void 0:o?cn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&dn(e,r,t),t};a.Popover=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1}firstUpdated(e){super.firstUpdated(e)}updated(e){super.updated(e)}render(){return l.html`
2690
2946
  <div>
2691
2947
  <slot
2692
2948
  name="trigger"
@@ -2696,22 +2952,22 @@ body {
2696
2952
  <slot name="content"></slot>
2697
2953
  </div>
2698
2954
  </div>
2699
- `}},s.Popover.styles=[l.css``,c],kt([d.state()],s.Popover.prototype,"isOpen",2),s.Popover=kt([d.customElement("rtg-popover")],s.Popover);const Pt=B("p-4 rounded-sm text-sm font-medium",{variants:{variant:{success:"bg-green-100 text-green-800 border-green-200",error:"bg-red-100 text-red-800 border-red-200",warning:"bg-yellow-100 text-yellow-800 border-yellow-200",info:"bg-blue-100 text-blue-800 border-blue-200"},size:{small:"text-sm",default:"text-base",large:"text-xl"}},defaultVariants:{variant:"info",size:"default"}});var jo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,Qo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Jo(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&jo(e,r,t),t};s.AlertTitle=class extends l.LitElement{render(){return l.html`<slot></slot>`}},s.AlertTitle.styles=l.css`
2955
+ `}},a.Popover.styles=[l.css``,c],Tt([d.state()],a.Popover.prototype,"isOpen",2),a.Popover=Tt([d.customElement("rtg-popover")],a.Popover);const Bt=N("p-4 rounded-sm text-sm font-medium",{variants:{variant:{success:"bg-green-100 text-green-800 border-green-200",error:"bg-red-100 text-red-800 border-red-200",warning:"bg-yellow-100 text-yellow-800 border-yellow-200",info:"bg-blue-100 text-blue-800 border-blue-200"},size:{small:"text-sm",default:"text-base",large:"text-xl"}},defaultVariants:{variant:"info",size:"default"}});var un=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,hn=(n,e,r,o)=>{for(var t=o>1?void 0:o?pn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&un(e,r,t),t};a.AlertTitle=class extends l.LitElement{render(){return l.html`<slot></slot>`}},a.AlertTitle.styles=l.css`
2700
2956
  :host {
2701
2957
  display: block;
2702
2958
  font-weight: bold;
2703
2959
  margin-bottom: 0.5rem;
2704
2960
  }
2705
- `,s.AlertTitle=Qo([d.customElement("rtg-alert-title")],s.AlertTitle);var en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,rn=(n,e,r,o)=>{for(var t=o>1?void 0:o?tn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&en(e,r,t),t};s.AlertDescription=class extends l.LitElement{render(){return l.html`<slot></slot>`}},s.AlertDescription.styles=l.css`
2961
+ `,a.AlertTitle=hn([d.customElement("rtg-alert-title")],a.AlertTitle);var gn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,fn=(n,e,r,o)=>{for(var t=o>1?void 0:o?mn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&gn(e,r,t),t};a.AlertDescription=class extends l.LitElement{render(){return l.html`<slot></slot>`}},a.AlertDescription.styles=l.css`
2706
2962
  :host {
2707
2963
  display: block;
2708
2964
  }
2709
- `,s.AlertDescription=rn([d.customElement("rtg-alert-description")],s.AlertDescription);var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,Ge=(n,e,r,o)=>{for(var t=o>1?void 0:o?nn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&on(e,r,t),t};s.Alert=class extends l.LitElement{constructor(){super(...arguments),this.variant="info",this.size="default"}get alertClasses(){return Pt({variant:this.variant,size:this.size})}render(){return l.html`
2965
+ `,a.AlertDescription=fn([d.customElement("rtg-alert-description")],a.AlertDescription);var bn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,Ke=(n,e,r,o)=>{for(var t=o>1?void 0:o?vn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&bn(e,r,t),t};a.Alert=class extends l.LitElement{constructor(){super(...arguments),this.variant="info",this.size="default"}get alertClasses(){return Bt({variant:this.variant,size:this.size})}render(){return l.html`
2710
2966
  <div class="alert ${this.alertClasses}">
2711
2967
  <slot name="title"></slot>
2712
2968
  <slot name="description"></slot>
2713
2969
  </div>
2714
- `}},s.Alert.styles=[l.css`
2970
+ `}},a.Alert.styles=[l.css`
2715
2971
  :host {
2716
2972
  display: block;
2717
2973
  margin-bottom: 1rem;
@@ -2724,16 +2980,16 @@ body {
2724
2980
  font-weight: bold;
2725
2981
  margin-bottom: 0.5rem;
2726
2982
  }
2727
- `,c],s.Alert.alertVairants=Pt,Ge([d.property({type:String})],s.Alert.prototype,"variant",2),Ge([d.property({type:String})],s.Alert.prototype,"size",2),s.Alert=Ge([d.customElement("rtg-alert")],s.Alert);const sn=B("inline-flex items-center border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent rounded-full",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});var an=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,Et=(n,e,r,o)=>{for(var t=o>1?void 0:o?ln(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&an(e,r,t),t};s.Badge=class extends _{constructor(){super(...arguments),this.variant="default"}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html`
2983
+ `,c],a.Alert.alertVairants=Bt,Ke([d.property({type:String})],a.Alert.prototype,"variant",2),Ke([d.property({type:String})],a.Alert.prototype,"size",2),a.Alert=Ke([d.customElement("rtg-alert")],a.Alert);const wn=N("inline-flex items-center border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent rounded-full",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});var yn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Nt=(n,e,r,o)=>{for(var t=o>1?void 0:o?xn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&yn(e,r,t),t};a.Badge=class extends y{constructor(){super(...arguments),this.variant="default"}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html`
2728
2984
  <div
2729
2985
  id="rtg-badge-id"
2730
2986
  class="
2731
- ${p(s.Badge.badgeVariants({variant:this.variant,className:this.className}))}"
2732
- ${C(e)}
2987
+ ${p(a.Badge.badgeVariants({variant:this.variant,className:this.className}))}"
2988
+ ${x(e)}
2733
2989
  >
2734
2990
  <slot></slot>
2735
2991
  </div>
2736
- `}},s.Badge.badgeVariants=sn,s.Badge.styles=[l.css``,c],Et([d.property({type:String})],s.Badge.prototype,"variant",2),s.Badge=Et([d.customElement("rtg-badge")],s.Badge);function Dt(){return l.svg` <svg
2992
+ `}},a.Badge.badgeVariants=wn,a.Badge.styles=[l.css``,c],Nt([d.property({type:String})],a.Badge.prototype,"variant",2),a.Badge=Nt([d.customElement("rtg-badge")],a.Badge);function Ft(){return l.svg` <svg
2737
2993
  class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
2738
2994
  xmlns="http://www.w3.org/2000/svg"
2739
2995
  width="24"
@@ -2748,7 +3004,7 @@ body {
2748
3004
  <path d="m7 15 5 5 5-5"></path>
2749
3005
  <path d="m7 9 5-5 5 5"></path>
2750
3006
  </svg>
2751
- `}function Mt(){return l.svg`
3007
+ `}function qt(){return l.svg`
2752
3008
  <svg
2753
3009
  class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
2754
3010
  xmlns="http://www.w3.org/2000/svg"
@@ -2763,7 +3019,7 @@ body {
2763
3019
  >
2764
3020
  <path d="M20 6 9 17l-5-5"></path>
2765
3021
  </svg>
2766
- `}function It(){return l.svg` <svg
3022
+ `}function Gt(){return l.svg` <svg
2767
3023
  xmlns="http://www.w3.org/2000/svg"
2768
3024
  width = "24"
2769
3025
  height = "24"
@@ -2777,7 +3033,7 @@ body {
2777
3033
  <circle cx="11" cy = "11" r = "8" > </circle>
2778
3034
  <path d="m21 21-4.3-4.3"></path >
2779
3035
  </svg>
2780
- `}function Lt(){return l.svg` <svg
3036
+ `}function Vt(){return l.svg` <svg
2781
3037
  xmlns="http://www.w3.org/2000/svg"
2782
3038
  width="24"
2783
3039
  height="24"
@@ -2791,8 +3047,8 @@ body {
2791
3047
  >
2792
3048
  <circle cx="12" cy="12" r="10"></circle>
2793
3049
  </svg>
2794
- `}function dn(){return l.svg` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-4 w-4 shrink-0 transition-transform duration-200"><path d="m6 9 6 6 6-6"></path></svg>
2795
- `}function cn(){return l.svg` <svg
3050
+ `}function $n(){return l.svg` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-4 w-4 shrink-0 transition-transform duration-200"><path d="m6 9 6 6 6-6"></path></svg>
3051
+ `}function Cn(){return l.svg` <svg
2796
3052
  xmlns="http://www.w3.org/2000/svg"
2797
3053
  width="24"
2798
3054
  height="24"
@@ -2806,7 +3062,7 @@ body {
2806
3062
  >
2807
3063
  <circle cx="12" cy="12" r="10"></circle></svg
2808
3064
  >
2809
- `}var un=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,$e=(n,e,r,o)=>{for(var t=o>1?void 0:o?pn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&un(e,r,t),t};let re=class extends l.LitElement{constructor(){super(...arguments),this.value="",this.handleClick=()=>{},this.handleKeyDown=()=>{}}render(){return l.html`
3065
+ `}function _n(){return l.svg`<svg xmlns="http://www.w3.org/2000/svg" width = "24" height = "24" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke - width="2" stroke - linecap="round" stroke - linejoin="round" class="lucide lucide-dot " > <circle cx="12.1" cy = "12.1" r = "1" > </circle></svg >`}var On=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,Pe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Pn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&On(e,r,t),t};let se=class extends l.LitElement{constructor(){super(...arguments),this.value="",this.handleClick=()=>{},this.handleKeyDown=()=>{}}render(){return l.html`
2810
3066
  <input
2811
3067
  class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
2812
3068
  text-sm font-medium border border-input cursor-pointer
@@ -2823,7 +3079,7 @@ body {
2823
3079
  @click=${this.handleClick}
2824
3080
  @keydown=${this.handleKeyDown}
2825
3081
  />
2826
- `}};re.styles=[l.css``,c],$e([d.property({type:String})],re.prototype,"value",2),$e([d.property({type:Function})],re.prototype,"handleClick",2),$e([d.property({type:Function})],re.prototype,"handleKeyDown",2),re=$e([d.customElement("rtg-combo-box-input")],re);var hn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,F=(n,e,r,o)=>{for(var t=o>1?void 0:o?gn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&hn(e,r,t),t};let M=class extends l.LitElement{constructor(){super(...arguments),this.key="",this.searchText="",this.value="",this.tabindex=0,this.isSelected=!1,this.class="",this.onSelect=()=>{}}render(){return l.html`
3082
+ `}};se.styles=[l.css``,c],Pe([d.property({type:String})],se.prototype,"value",2),Pe([d.property({type:Function})],se.prototype,"handleClick",2),Pe([d.property({type:Function})],se.prototype,"handleKeyDown",2),se=Pe([d.customElement("rtg-combo-box-input")],se);var Sn=Object.defineProperty,En=Object.getOwnPropertyDescriptor,V=(n,e,r,o)=>{for(var t=o>1?void 0:o?En(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Sn(e,r,t),t};let I=class extends l.LitElement{constructor(){super(...arguments),this.key="",this.searchText="",this.value="",this.tabindex=0,this.isSelected=!1,this.class="",this.onSelect=()=>{}}render(){return l.html`
2827
3083
  <div
2828
3084
  key="${this.key}"
2829
3085
  class="flex items-center cursor-pointer py-2 px-4 w-full text-sm text-gray-800
@@ -2847,7 +3103,7 @@ body {
2847
3103
  <span
2848
3104
  class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
2849
3105
  >
2850
- ${Mt()}
3106
+ ${qt()}
2851
3107
  </span>
2852
3108
  <div class="flex justify-between items-center w-full">
2853
3109
  <span
@@ -2858,16 +3114,16 @@ body {
2858
3114
  </span>
2859
3115
  </div>
2860
3116
  </div>
2861
- `}};M.styles=[l.css``,c],F([d.property({type:String})],M.prototype,"key",2),F([d.property({type:String})],M.prototype,"searchText",2),F([d.property({type:String})],M.prototype,"value",2),F([d.property({type:Number})],M.prototype,"tabindex",2),F([d.property({type:Boolean})],M.prototype,"isSelected",2),F([d.property({type:String})],M.prototype,"class",2),F([d.property({type:Function})],M.prototype,"onSelect",2),M=F([d.customElement("rtg-combo-box-item")],M);const mn="open",Ce="closed";var fn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,Fe=(n,e,r,o)=>{for(var t=o>1?void 0:o?bn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&fn(e,r,t),t};let he=class extends l.LitElement{constructor(){super(...arguments),this.state=Ce,this.isOpen=!1}get _popover(){let n=this.parentElement;for(;n&&!(n instanceof s.ComboBox);)n=n.parentElement;return n}render(){return l.html`
3117
+ `}};I.styles=[l.css``,c],V([d.property({type:String})],I.prototype,"key",2),V([d.property({type:String})],I.prototype,"searchText",2),V([d.property({type:String})],I.prototype,"value",2),V([d.property({type:Number})],I.prototype,"tabindex",2),V([d.property({type:Boolean})],I.prototype,"isSelected",2),V([d.property({type:String})],I.prototype,"class",2),V([d.property({type:Function})],I.prototype,"onSelect",2),I=V([d.customElement("rtg-combo-box-item")],I);const kn="open",Se="closed";var Dn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,We=(n,e,r,o)=>{for(var t=o>1?void 0:o?Mn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Dn(e,r,t),t};let be=class extends l.LitElement{constructor(){super(...arguments),this.state=Se,this.isOpen=!1}get _popover(){let n=this.parentElement;for(;n&&!(n instanceof a.ComboBox);)n=n.parentElement;return n}render(){return l.html`
2862
3118
  <div
2863
3119
  class="absolute z-50 w-full max-h-72 p-1 bg-white border border-gray-200 rounded-lg overflow-hidden overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-900 dark:border-neutral-700"
2864
3120
  data-hs-combo-box-output=""
2865
- style="display: ${this.state===mn?"block":"none"}; top:115%"
3121
+ style="display: ${this.state===kn?"block":"none"}; top:115%"
2866
3122
  >
2867
3123
  <div
2868
3124
  class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
2869
3125
  >
2870
- ${It()}
3126
+ ${Gt()}
2871
3127
  <input
2872
3128
  type="text"
2873
3129
  class="w-full px-2 py-2 rounded focus:outline-none"
@@ -2882,8 +3138,9 @@ body {
2882
3138
  </div>
2883
3139
  <slot></slot>
2884
3140
  </div>
2885
- `}};he.styles=[l.css``,c],Fe([d.property({attribute:"data-state",type:String})],he.prototype,"state",2),Fe([d.state()],he.prototype,"isOpen",2),he=Fe([d.customElement("rtg-combo-box-list")],he);var vn=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,V=(n,e,r,o)=>{for(var t=o>1?void 0:o?wn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&vn(e,r,t),t};s.ComboBox=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[]}firstUpdated(e){console.log("this. items",this.items),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen,this.focusedIndex=-1}selectItem(e){const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){this.toggleDropdown()}handleSearch(e){const r=e.target;this.searchTerm=r.value,this.filteredItems=this.items.filter(o=>o.toLowerCase().includes(this.searchTerm.toLowerCase()))}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}connectedCallback(){var e,r,o,t;super.connectedCallback(),document.addEventListener("click",this.handleClickOutside.bind(this)),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.addEventListener("focus",()=>{this.isOpen=!0}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.addEventListener("blur",()=>{this.isOpen&&(this.isOpen=!1)})}disconnectedCallback(){var e,r,o,t;super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.removeEventListener("focus",()=>{}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.removeEventListener("blur",()=>{})}handleClickOutside(e){var i,a;const r=e.target,o=(i=this.shadowRoot)==null?void 0:i.querySelector("[data-hs-combo-box]");if(!this.shadowRoot||!(r instanceof HTMLElement)){console.log("Invalid target or shadow root");return}const t=(a=r.shadowRoot)==null?void 0:a.firstElementChild;if(!t){this.isOpen=!1;return}(!o||!o.contains(t))&&(this.isOpen=!1)}updateFocus(){if(!this.shadowRoot)return;this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((r,o)=>{o===this.focusedIndex?r.classList.add("bg-gray-100"):r.classList.remove("bg-gray-100")})}render(){return l.html`
3141
+ `}};be.styles=[l.css``,c],We([d.property({attribute:"data-state",type:String})],be.prototype,"state",2),We([d.state()],be.prototype,"isOpen",2),be=We([d.customElement("rtg-combo-box-list")],be);var In=Object.defineProperty,An=Object.getOwnPropertyDescriptor,U=(n,e,r,o)=>{for(var t=o>1?void 0:o?An(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&In(e,r,t),t};a.ComboBox=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[]}firstUpdated(e){console.log("this. items",this.items),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen,this.focusedIndex=-1,this.requestUpdate(),console.log("toggleDropdown",this.isOpen)}selectItem(e){const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){console.log("-----handleInputClick------"),this.toggleDropdown()}handleSearch(e){const r=e.target;this.searchTerm=r.value,this.filteredItems=this.items.filter(o=>o.toLowerCase().includes(this.searchTerm.toLowerCase()))}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}connectedCallback(){var e,r,o,t;super.connectedCallback(),document.addEventListener("click",this.handleClickOutside.bind(this)),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.addEventListener("focus",()=>{this.isOpen=!0}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.addEventListener("blur",()=>{this.isOpen&&(this.isOpen=!1)})}disconnectedCallback(){var e,r,o,t;super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.removeEventListener("focus",()=>{}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.removeEventListener("blur",()=>{})}handleClickOutside(e){var s,i;const r=e.target,o=(s=this.shadowRoot)==null?void 0:s.querySelector("[data-hs-combo-box]");if(!this.shadowRoot||!(r instanceof HTMLElement)){console.log("Invalid target or shadow root");return}const t=(i=r.shadowRoot)==null?void 0:i.firstElementChild;if(!t){this.isOpen=!1;return}(!o||!o.contains(t))&&(this.isOpen=!1)}updateFocus(){if(!this.shadowRoot)return;this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((r,o)=>{o===this.focusedIndex?r.classList.add("bg-gray-100"):r.classList.remove("bg-gray-100")})}render(){return l.html`
2886
3142
  <div class="relative" data-hs-combo-box="">
3143
+ isopen:${this.isOpen}
2887
3144
  <div>
2888
3145
  <input
2889
3146
  part="combobox"
@@ -2908,7 +3165,7 @@ body {
2908
3165
  data-hs-combo-box-toggle=""
2909
3166
  @click="${this.toggleDropdown}"
2910
3167
  >
2911
- ${Dt()}
3168
+ ${Ft()}
2912
3169
  </div>
2913
3170
  </div>
2914
3171
  <div
@@ -2920,7 +3177,7 @@ body {
2920
3177
  <div
2921
3178
  class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
2922
3179
  >
2923
- ${It()}
3180
+ ${Gt()}
2924
3181
  <input
2925
3182
  type="text"
2926
3183
  class="w-full px-2 py-2 rounded focus:outline-none"
@@ -2957,14 +3214,14 @@ body {
2957
3214
  `}
2958
3215
  </div>
2959
3216
  </div>
2960
- `}},s.ComboBox.styles=[l.css``,c],V([d.state()],s.ComboBox.prototype,"isOpen",2),V([d.state()],s.ComboBox.prototype,"selectedValue",2),V([d.state()],s.ComboBox.prototype,"searchTerm",2),V([d.state()],s.ComboBox.prototype,"focusedIndex",2),V([d.state()],s.ComboBox.prototype,"filteredItems",2),V([d.property({type:String})],s.ComboBox.prototype,"label",2),V([d.property({type:Array})],s.ComboBox.prototype,"items",2),s.ComboBox=V([d.customElement("rtg-combo-box")],s.ComboBox);var yn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?xn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&yn(e,r,t),t};s.DropdownMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Ce,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof s.DropdownMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,i;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-dropdown-menu-content"),o=(i=this.shadowRoot)==null?void 0:i.querySelector("button");r&&!r.contains(e.target)&&!(o!=null&&o.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
3217
+ `}},a.ComboBox.styles=[l.css``,c],U([d.state()],a.ComboBox.prototype,"isOpen",2),U([d.state()],a.ComboBox.prototype,"selectedValue",2),U([d.state()],a.ComboBox.prototype,"searchTerm",2),U([d.state()],a.ComboBox.prototype,"focusedIndex",2),U([d.state()],a.ComboBox.prototype,"filteredItems",2),U([d.property({type:String})],a.ComboBox.prototype,"label",2),U([d.property({type:Array})],a.ComboBox.prototype,"items",2),a.ComboBox=U([d.customElement("rtg-combo-box")],a.ComboBox);var Ln=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,Ze=(n,e,r,o)=>{for(var t=o>1?void 0:o?zn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ln(e,r,t),t};a.DropdownMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Se,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof a.DropdownMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-dropdown-menu-content"),o=(s=this.shadowRoot)==null?void 0:s.querySelector("button");r&&!r.contains(e.target)&&!(o!=null&&o.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
2961
3218
  <div
2962
3219
  class="flex h-full flex-col max-h-[300px] overflow-y-auto overflow-x-hidden rounded-md bg-popover text-popover-foreground border shadow-md"
2963
3220
  style="display: ${this.isOpen?"block":"none"};width:260px"
2964
3221
  >
2965
3222
  <slot></slot>
2966
3223
  </div>
2967
- `}},s.DropdownMenuContent.styles=[l.css``,c],Ve([d.property({attribute:"data-state",type:String})],s.DropdownMenuContent.prototype,"state",2),Ve([d.state()],s.DropdownMenuContent.prototype,"isOpen",2),s.DropdownMenuContent=Ve([d.customElement("rtg-dropdown-menu-content")],s.DropdownMenuContent);var $n=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,ge=(n,e,r,o)=>{for(var t=o>1?void 0:o?Cn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&$n(e,r,t),t};s.DropdownMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.DropdownMenuItem._counter++}`:this._id=`rtgcmdrxgxli${s.DropdownMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
3224
+ `}},a.DropdownMenuContent.styles=[l.css``,c],Ze([d.property({attribute:"data-state",type:String})],a.DropdownMenuContent.prototype,"state",2),Ze([d.state()],a.DropdownMenuContent.prototype,"isOpen",2),a.DropdownMenuContent=Ze([d.customElement("rtg-dropdown-menu-content")],a.DropdownMenuContent);var Rn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?Tn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Rn(e,r,t),t};a.DropdownMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.DropdownMenuItem._counter++}`:this._id=`rtgcmdrxgxli${a.DropdownMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
2968
3225
  <div
2969
3226
  class="${p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",this.className)}"
2970
3227
  @mouseover="${this.handleMouseEvent}"
@@ -2980,7 +3237,7 @@ body {
2980
3237
  >
2981
3238
  <slot></slot>
2982
3239
  </div>
2983
- `}`}},s.DropdownMenuItem._counter=0,s.DropdownMenuItem.styles=[l.css``,c],ge([d.property({type:String})],s.DropdownMenuItem.prototype,"_id",2),ge([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuItem.prototype,"_hidden",2),ge([d.property({attribute:"data-value",type:String})],s.DropdownMenuItem.prototype,"value",1),ge([d.property({type:Boolean})],s.DropdownMenuItem.prototype,"selected",2),s.DropdownMenuItem=ge([d.customElement("rtg-dropdown-menu-item")],s.DropdownMenuItem);var _n=Object.defineProperty,On=Object.getOwnPropertyDescriptor,X=(n,e,r,o)=>{for(var t=o>1?void 0:o?On(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&_n(e,r,t),t};s.DropdownMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.DropdownMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${s.DropdownMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
3240
+ `}`}},a.DropdownMenuItem._counter=0,a.DropdownMenuItem.styles=[l.css``,c],ve([d.property({type:String})],a.DropdownMenuItem.prototype,"_id",2),ve([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuItem.prototype,"_hidden",2),ve([d.property({attribute:"data-value",type:String})],a.DropdownMenuItem.prototype,"value",1),ve([d.property({type:Boolean})],a.DropdownMenuItem.prototype,"selected",2),a.DropdownMenuItem=ve([d.customElement("rtg-dropdown-menu-item")],a.DropdownMenuItem);var Bn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,K=(n,e,r,o)=>{for(var t=o>1?void 0:o?Nn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Bn(e,r,t),t};a.DropdownMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.DropdownMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${a.DropdownMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
2984
3241
  <div
2985
3242
  class="${p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
2986
3243
  @click=${this.toggleChecked}
@@ -2998,24 +3255,24 @@ body {
2998
3255
  <span
2999
3256
  class="icon-space absolute left-2 flex items-center justify-center"
3000
3257
  >
3001
- ${this.checked?l.html` ${Lt()} `:l.nothing}
3258
+ ${this.checked?l.html` ${Vt()} `:l.nothing}
3002
3259
  </span>
3003
3260
  <slot></slot>
3004
3261
  </div>
3005
- `}},s.DropdownMenuRadioItem._counter=0,s.DropdownMenuRadioItem.styles=[l.css`
3262
+ `}},a.DropdownMenuRadioItem._counter=0,a.DropdownMenuRadioItem.styles=[l.css`
3006
3263
  .icon-space {
3007
3264
  width: 16px; /* Fixed width to reserve space for the check icon */
3008
3265
  height: 16px;
3009
3266
  display: inline-block;
3010
3267
  }
3011
- `,c],X([d.property({type:String})],s.DropdownMenuRadioItem.prototype,"_id",2),X([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuRadioItem.prototype,"_hidden",2),X([d.property({attribute:"data-value",type:String})],s.DropdownMenuRadioItem.prototype,"value",1),X([d.property({type:Boolean})],s.DropdownMenuRadioItem.prototype,"selected",2),X([d.property({type:Boolean})],s.DropdownMenuRadioItem.prototype,"checked",2),X([d.property({type:Boolean})],s.DropdownMenuRadioItem.prototype,"disabled",2),s.DropdownMenuRadioItem=X([d.customElement("rtg-dropdown-menu-radio-item")],s.DropdownMenuRadioItem);var Sn=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Ue=(n,e,r,o)=>{for(var t=o>1?void 0:o?kn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Sn(e,r,t),t};s.DropdownMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${s.DropdownMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${s.DropdownMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
3268
+ `,c],K([d.property({type:String})],a.DropdownMenuRadioItem.prototype,"_id",2),K([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuRadioItem.prototype,"_hidden",2),K([d.property({attribute:"data-value",type:String})],a.DropdownMenuRadioItem.prototype,"value",1),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"selected",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"checked",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"disabled",2),a.DropdownMenuRadioItem=K([d.customElement("rtg-dropdown-menu-radio-item")],a.DropdownMenuRadioItem);var Fn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,je=(n,e,r,o)=>{for(var t=o>1?void 0:o?qn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Fn(e,r,t),t};a.DropdownMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${a.DropdownMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${a.DropdownMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
3012
3269
  <div
3013
3270
  class="${p("-mx-1 h-px bg-border",this.className)}"
3014
3271
  rtgcmd-separator
3015
3272
  role="separator"
3016
3273
  id="${this.identifier}"
3017
3274
  ></div>
3018
- `}`}},s.DropdownMenuSeparator._counter=0,s.DropdownMenuSeparator.styles=[l.css``,c],Ue([d.property({type:String})],s.DropdownMenuSeparator.prototype,"_id",2),Ue([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuSeparator.prototype,"_hidden",2),s.DropdownMenuSeparator=Ue([d.customElement("rtg-dropdown-menu-separator")],s.DropdownMenuSeparator);var Pn=Object.defineProperty,En=Object.getOwnPropertyDescriptor,Y=(n,e,r,o)=>{for(var t=o>1?void 0:o?En(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Pn(e,r,t),t};s.DropdownMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.DropdownMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${s.DropdownMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
3275
+ `}`}},a.DropdownMenuSeparator._counter=0,a.DropdownMenuSeparator.styles=[l.css``,c],je([d.property({type:String})],a.DropdownMenuSeparator.prototype,"_id",2),je([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuSeparator.prototype,"_hidden",2),a.DropdownMenuSeparator=je([d.customElement("rtg-dropdown-menu-separator")],a.DropdownMenuSeparator);var Gn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,W=(n,e,r,o)=>{for(var t=o>1?void 0:o?Vn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Gn(e,r,t),t};a.DropdownMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.DropdownMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${a.DropdownMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
3019
3276
  <div
3020
3277
  class="${p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
3021
3278
  @click=${this.toggleChecked}
@@ -3048,13 +3305,13 @@ body {
3048
3305
  </span>
3049
3306
  <slot></slot>
3050
3307
  </div>
3051
- `}},s.DropdownMenuCheckboxItem._counter=0,s.DropdownMenuCheckboxItem.styles=[l.css`
3308
+ `}},a.DropdownMenuCheckboxItem._counter=0,a.DropdownMenuCheckboxItem.styles=[l.css`
3052
3309
  .icon-space {
3053
3310
  width: 16px; /* Fixed width to reserve space for the check icon */
3054
3311
  height: 16px;
3055
3312
  display: inline-block;
3056
3313
  }
3057
- `,c],Y([d.property({type:String})],s.DropdownMenuCheckboxItem.prototype,"_id",2),Y([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuCheckboxItem.prototype,"_hidden",2),Y([d.property({attribute:"data-value",type:String})],s.DropdownMenuCheckboxItem.prototype,"value",1),Y([d.property({type:Boolean})],s.DropdownMenuCheckboxItem.prototype,"selected",2),Y([d.property({type:Boolean})],s.DropdownMenuCheckboxItem.prototype,"checked",2),Y([d.property({type:Boolean})],s.DropdownMenuCheckboxItem.prototype,"disabled",2),s.DropdownMenuCheckboxItem=Y([d.customElement("rtg-dropdown-menu-checkbox-item")],s.DropdownMenuCheckboxItem);var Dn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,_e=(n,e,r,o)=>{for(var t=o>1?void 0:o?Mn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Dn(e,r,t),t};s.DropdownMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${s.DropdownMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${s.DropdownMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
3314
+ `,c],W([d.property({type:String})],a.DropdownMenuCheckboxItem.prototype,"_id",2),W([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuCheckboxItem.prototype,"_hidden",2),W([d.property({attribute:"data-value",type:String})],a.DropdownMenuCheckboxItem.prototype,"value",1),W([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"selected",2),W([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"checked",2),W([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"disabled",2),a.DropdownMenuCheckboxItem=W([d.customElement("rtg-dropdown-menu-checkbox-item")],a.DropdownMenuCheckboxItem);var Un=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,Ee=(n,e,r,o)=>{for(var t=o>1?void 0:o?Xn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Un(e,r,t),t};a.DropdownMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${a.DropdownMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${a.DropdownMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
3058
3315
  <div
3059
3316
  class="${e}"
3060
3317
  rtgcmd-group
@@ -3076,7 +3333,7 @@ body {
3076
3333
  <slot></slot>
3077
3334
  </div>
3078
3335
  </div>
3079
- `}`}},s.DropdownMenuGroup._counter=0,s.DropdownMenuGroup.styles=[l.css``,c],_e([d.property({type:String})],s.DropdownMenuGroup.prototype,"heading",2),_e([d.property({attribute:"id",type:String})],s.DropdownMenuGroup.prototype,"_id",2),_e([d.property({attribute:"aria-hidden",type:String})],s.DropdownMenuGroup.prototype,"_hidden",2),s.DropdownMenuGroup=_e([d.customElement("rtg-dropdown-menu-group")],s.DropdownMenuGroup);var In=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,At=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ln(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&In(e,r,t),t};s.DropdownMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var o;const r=e.target;(o=this.shadowRoot)!=null&&o.contains(r)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.stopPropagation(),this.isOpen=!this.isOpen}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof s.DropdownMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
3336
+ `}`}},a.DropdownMenuGroup._counter=0,a.DropdownMenuGroup.styles=[l.css``,c],Ee([d.property({type:String})],a.DropdownMenuGroup.prototype,"heading",2),Ee([d.property({attribute:"id",type:String})],a.DropdownMenuGroup.prototype,"_id",2),Ee([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuGroup.prototype,"_hidden",2),a.DropdownMenuGroup=Ee([d.customElement("rtg-dropdown-menu-group")],a.DropdownMenuGroup);var Yn=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,Ut=(n,e,r,o)=>{for(var t=o>1?void 0:o?Hn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Yn(e,r,t),t};a.DropdownMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var o;const r=e.target;(o=this.shadowRoot)!=null&&o.contains(r)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.stopPropagation(),this.isOpen=!this.isOpen}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof a.DropdownMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
3080
3337
  <div>
3081
3338
  <div>
3082
3339
  <slot @click="${this.toggleDropdown}"></slot>
@@ -3085,21 +3342,21 @@ body {
3085
3342
  <slot></slot>
3086
3343
  </div>
3087
3344
  </div>
3088
- `}},s.DropdownMenu.styles=[l.css``,c],At([d.state()],s.DropdownMenu.prototype,"isOpen",2),s.DropdownMenu=At([d.customElement("rtg-dropdown-menu")],s.DropdownMenu);var zt=(n=>(n.SMALL="sm",n.MEDIUM="md",n.LARGE="lg",n))(zt||{}),Rt=(n=>(n.DEFAULT="default",n.OUTLINE="outline",n))(Rt||{});const An=B("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground bg-transparent h-10 px-3",{variants:{variant:{default:" hover:bg-muted hover:text-muted-foreground",outline:" border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-9 px-2.5",md:"h-10 px-3",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"sm"}});var zn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,oe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Rn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&zn(e,r,t),t};s.Toggle=class extends _{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=Rt.DEFAULT,this.size=zt.SMALL}getAttributesToExclude(){return["disabled","checked","variant","size","required"]}toggle(){this.disabled||(this.checked=!this.checked)}render(){const e=this.getFilteredAttributes();return E.html`
3345
+ `}},a.DropdownMenu.styles=[l.css``,c],Ut([d.state()],a.DropdownMenu.prototype,"isOpen",2),a.DropdownMenu=Ut([d.customElement("rtg-dropdown-menu")],a.DropdownMenu);var Xt=(n=>(n.SMALL="sm",n.MEDIUM="md",n.LARGE="lg",n))(Xt||{}),Yt=(n=>(n.DEFAULT="default",n.OUTLINE="outline",n))(Yt||{});const Kn=N("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground bg-transparent h-10 px-3",{variants:{variant:{default:" hover:bg-muted hover:text-muted-foreground",outline:" border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-9 px-2.5",md:"h-10 px-3",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"sm"}});var Wn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,ie=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Wn(e,r,t),t};a.Toggle=class extends y{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=Yt.DEFAULT,this.size=Xt.SMALL}getAttributesToExclude(){return["disabled","checked","variant","size","required"]}toggle(){this.disabled||(this.checked=!this.checked)}render(){const e=this.getFilteredAttributes();return D.html`
3089
3346
  <button
3090
3347
  type="button"
3091
- class="${p(s.Toggle.toggleVariants({variant:this.variant,size:this.size,className:this.className}))}"
3348
+ class="${p(a.Toggle.toggleVariants({variant:this.variant,size:this.size,className:this.className}))}"
3092
3349
  aria-pressed=${this.checked}
3093
3350
  data-state="${this.checked?"on":"off"}"
3094
3351
  aria-label="Toggle bold"
3095
3352
  @click=${this.toggle}
3096
3353
  ?required=${this.required}
3097
3354
  ?disabled=${this.disabled}
3098
- ${C(e)}
3355
+ ${x(e)}
3099
3356
  >
3100
3357
  <slot></slot>
3101
3358
  </button>
3102
- `}},s.Toggle.styles=[c],s.Toggle.toggleVariants=An,oe([d.property({type:Boolean})],s.Toggle.prototype,"disabled",2),oe([d.property({attribute:!0,type:Boolean,reflect:!0})],s.Toggle.prototype,"checked",2),oe([d.property({attribute:!0,type:Boolean,reflect:!0})],s.Toggle.prototype,"required",2),oe([d.property({attribute:!0,type:String})],s.Toggle.prototype,"variant",2),oe([d.property({attribute:!0,type:String})],s.Toggle.prototype,"size",2),s.Toggle=oe([d.customElement("rtg-toggle")],s.Toggle);var Tn=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,He=(n,e,r,o)=>{for(var t=o>1?void 0:o?Bn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Tn(e,r,t),t};s.ContextMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Ce,this.isOpen=!1}get _contextMenu(){let e=this.parentElement;for(;e&&!(e instanceof s.ContextMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,i;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-context-menu-content"),o=(i=this.shadowRoot)==null?void 0:i.querySelector("button");r&&!r.contains(e.target)&&!(o!=null&&o.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
3359
+ `}},a.Toggle.styles=[c],a.Toggle.toggleVariants=Kn,ie([d.property({type:Boolean})],a.Toggle.prototype,"disabled",2),ie([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"checked",2),ie([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"required",2),ie([d.property({attribute:!0,type:String})],a.Toggle.prototype,"variant",2),ie([d.property({attribute:!0,type:String})],a.Toggle.prototype,"size",2),a.Toggle=ie([d.customElement("rtg-toggle")],a.Toggle);var jn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,Je=(n,e,r,o)=>{for(var t=o>1?void 0:o?Jn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&jn(e,r,t),t};a.ContextMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Se,this.isOpen=!1}get _contextMenu(){let e=this.parentElement;for(;e&&!(e instanceof a.ContextMenu);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){var t,s;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("rtg-context-menu-content"),o=(s=this.shadowRoot)==null?void 0:s.querySelector("button");r&&!r.contains(e.target)&&!(o!=null&&o.contains(e.target))&&(this.isOpen=!1)}render(){return l.html`
3103
3360
  <div
3104
3361
  class="z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
3105
3362
  data-state="${this.state}"
@@ -3107,7 +3364,7 @@ body {
3107
3364
  >
3108
3365
  <slot></slot>
3109
3366
  </div>
3110
- `}},s.ContextMenuContent.styles=[l.css``,c],He([d.property({attribute:"data-state",type:String})],s.ContextMenuContent.prototype,"state",2),He([d.state()],s.ContextMenuContent.prototype,"isOpen",2),s.ContextMenuContent=He([d.customElement("rtg-context-menu-content")],s.ContextMenuContent);var Nn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,W=(n,e,r,o)=>{for(var t=o>1?void 0:o?qn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Nn(e,r,t),t};s.ContextMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.ContextMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${s.ContextMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
3367
+ `}},a.ContextMenuContent.styles=[l.css``,c],Je([d.property({attribute:"data-state",type:String})],a.ContextMenuContent.prototype,"state",2),Je([d.state()],a.ContextMenuContent.prototype,"isOpen",2),a.ContextMenuContent=Je([d.customElement("rtg-context-menu-content")],a.ContextMenuContent);var Qn=Object.defineProperty,es=Object.getOwnPropertyDescriptor,Z=(n,e,r,o)=>{for(var t=o>1?void 0:o?es(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Qn(e,r,t),t};a.ContextMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.ContextMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${a.ContextMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
3111
3368
  <div
3112
3369
  class="${p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
3113
3370
  @click=${this.toggleChecked}
@@ -3140,13 +3397,13 @@ body {
3140
3397
  </span>
3141
3398
  <slot></slot>
3142
3399
  </div>
3143
- `}},s.ContextMenuCheckboxItem._counter=0,s.ContextMenuCheckboxItem.styles=[l.css`
3400
+ `}},a.ContextMenuCheckboxItem._counter=0,a.ContextMenuCheckboxItem.styles=[l.css`
3144
3401
  .icon-space {
3145
3402
  width: 16px; /* Fixed width to reserve space for the check icon */
3146
3403
  height: 16px;
3147
3404
  display: inline-block;
3148
3405
  }
3149
- `,c],W([d.property({type:String})],s.ContextMenuCheckboxItem.prototype,"_id",2),W([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuCheckboxItem.prototype,"_hidden",2),W([d.property({attribute:"data-value",type:String})],s.ContextMenuCheckboxItem.prototype,"value",1),W([d.property({type:Boolean})],s.ContextMenuCheckboxItem.prototype,"selected",2),W([d.property({type:Boolean})],s.ContextMenuCheckboxItem.prototype,"checked",2),W([d.property({type:Boolean})],s.ContextMenuCheckboxItem.prototype,"disabled",2),s.ContextMenuCheckboxItem=W([d.customElement("rtg-context-menu-checkbox-item")],s.ContextMenuCheckboxItem);var Gn=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,Oe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Fn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Gn(e,r,t),t};s.ContextMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${s.ContextMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${s.ContextMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
3406
+ `,c],Z([d.property({type:String})],a.ContextMenuCheckboxItem.prototype,"_id",2),Z([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuCheckboxItem.prototype,"_hidden",2),Z([d.property({attribute:"data-value",type:String})],a.ContextMenuCheckboxItem.prototype,"value",1),Z([d.property({type:Boolean})],a.ContextMenuCheckboxItem.prototype,"selected",2),Z([d.property({type:Boolean})],a.ContextMenuCheckboxItem.prototype,"checked",2),Z([d.property({type:Boolean})],a.ContextMenuCheckboxItem.prototype,"disabled",2),a.ContextMenuCheckboxItem=Z([d.customElement("rtg-context-menu-checkbox-item")],a.ContextMenuCheckboxItem);var ts=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,ke=(n,e,r,o)=>{for(var t=o>1?void 0:o?rs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ts(e,r,t),t};a.ContextMenuGroup=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}g${a.ContextMenuGroup._counter++}`:this._id=`rtgcmdrxlxg${a.ContextMenuGroup._counter++}`,this._id}render(){const e="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
3150
3407
  <div
3151
3408
  class="${e}"
3152
3409
  rtgcmd-group
@@ -3168,7 +3425,7 @@ body {
3168
3425
  <slot></slot>
3169
3426
  </div>
3170
3427
  </div>
3171
- `}`}},s.ContextMenuGroup._counter=0,s.ContextMenuGroup.styles=[l.css``,c],Oe([d.property({type:String})],s.ContextMenuGroup.prototype,"heading",2),Oe([d.property({attribute:"id",type:String})],s.ContextMenuGroup.prototype,"_id",2),Oe([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuGroup.prototype,"_hidden",2),s.ContextMenuGroup=Oe([d.customElement("rtg-context-menu-group")],s.ContextMenuGroup);var Vn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,me=(n,e,r,o)=>{for(var t=o>1?void 0:o?Un(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Vn(e,r,t),t};s.ContextMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.ContextMenuItem._counter++}`:this._id=`rtgcmdrxgxli${s.ContextMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
3428
+ `}`}},a.ContextMenuGroup._counter=0,a.ContextMenuGroup.styles=[l.css``,c],ke([d.property({type:String})],a.ContextMenuGroup.prototype,"heading",2),ke([d.property({attribute:"id",type:String})],a.ContextMenuGroup.prototype,"_id",2),ke([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuGroup.prototype,"_hidden",2),a.ContextMenuGroup=ke([d.customElement("rtg-context-menu-group")],a.ContextMenuGroup);var os=Object.defineProperty,ns=Object.getOwnPropertyDescriptor,we=(n,e,r,o)=>{for(var t=o>1?void 0:o?ns(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&os(e,r,t),t};a.ContextMenuItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.ContextMenuItem._counter++}`:this._id=`rtgcmdrxgxli${a.ContextMenuItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return l.html` ${this._hidden==="true"?l.nothing:l.html`
3172
3429
  <div
3173
3430
  class="${p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground",this.className)}"
3174
3431
  @mouseover="${this.handleMouseEvent}"
@@ -3184,7 +3441,7 @@ body {
3184
3441
  >
3185
3442
  <slot></slot>
3186
3443
  </div>
3187
- `}`}},s.ContextMenuItem._counter=0,s.ContextMenuItem.styles=[l.css``,c],me([d.property({type:String})],s.ContextMenuItem.prototype,"_id",2),me([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuItem.prototype,"_hidden",2),me([d.property({attribute:"data-value",type:String})],s.ContextMenuItem.prototype,"value",1),me([d.property({type:Boolean})],s.ContextMenuItem.prototype,"selected",2),s.ContextMenuItem=me([d.customElement("rtg-context-menu-item")],s.ContextMenuItem);var Hn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,K=(n,e,r,o)=>{for(var t=o>1?void 0:o?Xn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Hn(e,r,t),t};s.ContextMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${s.ContextMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${s.ContextMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
3444
+ `}`}},a.ContextMenuItem._counter=0,a.ContextMenuItem.styles=[l.css``,c],we([d.property({type:String})],a.ContextMenuItem.prototype,"_id",2),we([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuItem.prototype,"_hidden",2),we([d.property({attribute:"data-value",type:String})],a.ContextMenuItem.prototype,"value",1),we([d.property({type:Boolean})],a.ContextMenuItem.prototype,"selected",2),a.ContextMenuItem=we([d.customElement("rtg-context-menu-item")],a.ContextMenuItem);var ss=Object.defineProperty,is=Object.getOwnPropertyDescriptor,j=(n,e,r,o)=>{for(var t=o>1?void 0:o?is(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ss(e,r,t),t};a.ContextMenuRadioItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.ContextMenuRadioItem._counter++}`:this._id=`rtgcmdrxgxli${a.ContextMenuRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
3188
3445
  <div
3189
3446
  class="${p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
3190
3447
  @click=${this.toggleChecked}
@@ -3202,28 +3459,28 @@ body {
3202
3459
  <span
3203
3460
  class="icon-space absolute left-2 flex items-center justify-center"
3204
3461
  >
3205
- ${this.checked?l.html` ${Lt()} `:l.nothing}
3462
+ ${this.checked?l.html` ${Vt()} `:l.nothing}
3206
3463
  </span>
3207
3464
  <slot></slot>
3208
3465
  </div>
3209
- `}},s.ContextMenuRadioItem._counter=0,s.ContextMenuRadioItem.styles=[l.css`
3466
+ `}},a.ContextMenuRadioItem._counter=0,a.ContextMenuRadioItem.styles=[l.css`
3210
3467
  .icon-space {
3211
3468
  width: 16px; /* Fixed width to reserve space for the check icon */
3212
3469
  height: 16px;
3213
3470
  display: inline-block;
3214
3471
  }
3215
- `,c],K([d.property({type:String})],s.ContextMenuRadioItem.prototype,"_id",2),K([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuRadioItem.prototype,"_hidden",2),K([d.property({attribute:"data-value",type:String})],s.ContextMenuRadioItem.prototype,"value",1),K([d.property({type:Boolean})],s.ContextMenuRadioItem.prototype,"selected",2),K([d.property({type:Boolean})],s.ContextMenuRadioItem.prototype,"checked",2),K([d.property({type:Boolean})],s.ContextMenuRadioItem.prototype,"disabled",2),s.ContextMenuRadioItem=K([d.customElement("rtg-context-menu-radio-item")],s.ContextMenuRadioItem);var Yn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Xe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Wn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Yn(e,r,t),t};s.ContextMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${s.ContextMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${s.ContextMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
3472
+ `,c],j([d.property({type:String})],a.ContextMenuRadioItem.prototype,"_id",2),j([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuRadioItem.prototype,"_hidden",2),j([d.property({attribute:"data-value",type:String})],a.ContextMenuRadioItem.prototype,"value",1),j([d.property({type:Boolean})],a.ContextMenuRadioItem.prototype,"selected",2),j([d.property({type:Boolean})],a.ContextMenuRadioItem.prototype,"checked",2),j([d.property({type:Boolean})],a.ContextMenuRadioItem.prototype,"disabled",2),a.ContextMenuRadioItem=j([d.customElement("rtg-context-menu-radio-item")],a.ContextMenuRadioItem);var as=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,Qe=(n,e,r,o)=>{for(var t=o>1?void 0:o?ls(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&as(e,r,t),t};a.ContextMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${a.ContextMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${a.ContextMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
3216
3473
  <div
3217
3474
  class="${p("-mx-1 h-px bg-border",this.className)}"
3218
3475
  rtgcmd-separator
3219
3476
  role="separator"
3220
3477
  id="${this.identifier}"
3221
3478
  ></div>
3222
- `}`}},s.ContextMenuSeparator._counter=0,s.ContextMenuSeparator.styles=[l.css``,c],Xe([d.property({type:String})],s.ContextMenuSeparator.prototype,"_id",2),Xe([d.property({attribute:"aria-hidden",type:String})],s.ContextMenuSeparator.prototype,"_hidden",2),s.ContextMenuSeparator=Xe([d.customElement("rtg-context-menu-separator")],s.ContextMenuSeparator);var Kn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,jn=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Kn(e,r,t),t};s.ContextMenuShortcut=class extends l.LitElement{render(){return l.html`
3479
+ `}`}},a.ContextMenuSeparator._counter=0,a.ContextMenuSeparator.styles=[l.css``,c],Qe([d.property({type:String})],a.ContextMenuSeparator.prototype,"_id",2),Qe([d.property({attribute:"aria-hidden",type:String})],a.ContextMenuSeparator.prototype,"_hidden",2),a.ContextMenuSeparator=Qe([d.customElement("rtg-context-menu-separator")],a.ContextMenuSeparator);var ds=Object.defineProperty,cs=Object.getOwnPropertyDescriptor,us=(n,e,r,o)=>{for(var t=o>1?void 0:o?cs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ds(e,r,t),t};a.ContextMenuShortcut=class extends l.LitElement{render(){return l.html`
3223
3480
  <span class="${p("ml-auto text-xs font-semibold",this.className)}">
3224
3481
  <slot></slot>
3225
3482
  </span>
3226
- `}},s.ContextMenuShortcut.styles=[l.css``,c],s.ContextMenuShortcut=jn([d.customElement("rtg-context-menu-shortcut")],s.ContextMenuShortcut);var Jn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,Tt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qn(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Jn(e,r,t),t};s.ContextMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var o;const r=e.target;(o=this.shadowRoot)!=null&&o.contains(r)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.preventDefault(),e.stopPropagation();const{clientX:r,clientY:o}=e,t=e.target.getBoundingClientRect();requestAnimationFrame(()=>{const i=this._content;i&&(i.style.position="absolute",i.style.left=`${r-t.left}px`,i.style.top=`${o-t.top}px`,i.dataset.state="open",this.isOpen=!0)})}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof s.ContextMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-context-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
3483
+ `}},a.ContextMenuShortcut.styles=[l.css``,c],a.ContextMenuShortcut=us([d.customElement("rtg-context-menu-shortcut")],a.ContextMenuShortcut);var ps=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,Ht=(n,e,r,o)=>{for(var t=o>1?void 0:o?hs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ps(e,r,t),t};a.ContextMenu=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var o;const r=e.target;(o=this.shadowRoot)!=null&&o.contains(r)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.preventDefault(),e.stopPropagation();const{clientX:r,clientY:o}=e,t=e.target.getBoundingClientRect();requestAnimationFrame(()=>{const s=this._content;s&&(s.style.position="absolute",s.style.left=`${r-t.left}px`,s.style.top=`${o-t.top}px`,s.dataset.state="open",this.isOpen=!0)})}get _content(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),r=e==null?void 0:e.assignedElements();if(r){for(let t=0;t<r.length;t++)if(r[t]instanceof a.ContextMenuContent)return r[t]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-context-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
3227
3484
  <div style="display:flex">
3228
3485
  <div>
3229
3486
  <slot @contextmenu="${this.toggleDropdown}"></slot>
@@ -3232,7 +3489,7 @@ body {
3232
3489
  <slot></slot>
3233
3490
  </div>
3234
3491
  </div>
3235
- `}},s.ContextMenu.styles=[l.css``,c],Tt([d.state()],s.ContextMenu.prototype,"isOpen",2),s.ContextMenu=Tt([d.customElement("rtg-context-menu")],s.ContextMenu);var ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,U=(n,e,r,o)=>{for(var t=o>1?void 0:o?ti(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ei(e,r,t),t};s.SelectItem=class extends l.LitElement{constructor(){super(...arguments),this.key="",this.searchText="",this.value="",this.tabindex=0,this.isSelected=!1,this.class="",this.onSelect=()=>{}}render(){return l.html`
3492
+ `}},a.ContextMenu.styles=[l.css``,c],Ht([d.state()],a.ContextMenu.prototype,"isOpen",2),a.ContextMenu=Ht([d.customElement("rtg-context-menu")],a.ContextMenu);var gs=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,X=(n,e,r,o)=>{for(var t=o>1?void 0:o?ms(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&gs(e,r,t),t};a.SelectItem=class extends l.LitElement{constructor(){super(...arguments),this.key="",this.searchText="",this.value="",this.tabindex=0,this.isSelected=!1,this.class="",this.onSelect=()=>{}}render(){return l.html`
3236
3493
  <div
3237
3494
  key="${this.key}"
3238
3495
  class="flex items-center cursor-pointer py-2 px-4 w-full
@@ -3256,7 +3513,7 @@ body {
3256
3513
  <span
3257
3514
  class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
3258
3515
  >
3259
- ${Mt()}
3516
+ ${qt()}
3260
3517
  </span>
3261
3518
  <div
3262
3519
  class="flex justify-between items-center w-full text-sm text-gray-500"
@@ -3269,7 +3526,7 @@ body {
3269
3526
  </span>
3270
3527
  </div>
3271
3528
  </div>
3272
- `}},s.SelectItem.styles=[l.css``,c],U([d.property({type:String})],s.SelectItem.prototype,"key",2),U([d.property({type:String})],s.SelectItem.prototype,"searchText",2),U([d.property({type:String})],s.SelectItem.prototype,"value",2),U([d.property({type:Number})],s.SelectItem.prototype,"tabindex",2),U([d.property({type:Boolean})],s.SelectItem.prototype,"isSelected",2),U([d.property({type:String})],s.SelectItem.prototype,"class",2),U([d.property({type:Function})],s.SelectItem.prototype,"onSelect",2),s.SelectItem=U([d.customElement("rtg-select-item")],s.SelectItem);var ri=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,Ye=(n,e,r,o)=>{for(var t=o>1?void 0:o?oi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ri(e,r,t),t};s.SelectList=class extends l.LitElement{constructor(){super(...arguments),this.state=Ce,this.isOpen=!1}render(){return l.html`
3529
+ `}},a.SelectItem.styles=[l.css``,c],X([d.property({type:String})],a.SelectItem.prototype,"key",2),X([d.property({type:String})],a.SelectItem.prototype,"searchText",2),X([d.property({type:String})],a.SelectItem.prototype,"value",2),X([d.property({type:Number})],a.SelectItem.prototype,"tabindex",2),X([d.property({type:Boolean})],a.SelectItem.prototype,"isSelected",2),X([d.property({type:String})],a.SelectItem.prototype,"class",2),X([d.property({type:Function})],a.SelectItem.prototype,"onSelect",2),a.SelectItem=X([d.customElement("rtg-select-item")],a.SelectItem);var fs=Object.defineProperty,bs=Object.getOwnPropertyDescriptor,et=(n,e,r,o)=>{for(var t=o>1?void 0:o?bs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&fs(e,r,t),t};a.SelectList=class extends l.LitElement{constructor(){super(...arguments),this.state=Se,this.isOpen=!1}render(){return l.html`
3273
3530
  <div
3274
3531
  class="absolute z-50 w-full max-h-72 p-1 bg-white border border-gray-200 rounded-lg overflow-hidden overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-900 dark:border-neutral-700"
3275
3532
  data-hs-combo-box-output=""
@@ -3278,18 +3535,18 @@ body {
3278
3535
  >
3279
3536
  <slot></slot>
3280
3537
  </div>
3281
- `}},s.SelectList.styles=[l.css``,c],Ye([d.property({attribute:"data-state",type:String})],s.SelectList.prototype,"state",2),Ye([d.state()],s.SelectList.prototype,"isOpen",2),s.SelectList=Ye([d.customElement("rtg-select-list")],s.SelectList);var ni=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,si=(n,e,r,o)=>{for(var t=o>1?void 0:o?ii(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ni(e,r,t),t};s.SelectLabel=class extends l.LitElement{render(){return l.html`
3538
+ `}},a.SelectList.styles=[l.css``,c],et([d.property({attribute:"data-state",type:String})],a.SelectList.prototype,"state",2),et([d.state()],a.SelectList.prototype,"isOpen",2),a.SelectList=et([d.customElement("rtg-select-list")],a.SelectList);var vs=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,ys=(n,e,r,o)=>{for(var t=o>1?void 0:o?ws(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&vs(e,r,t),t};a.SelectLabel=class extends l.LitElement{render(){return l.html`
3282
3539
  <span class="${p("px-2 py-1.5 text-sm font-semibold",this.className)}">
3283
3540
  <slot></slot>
3284
3541
  </span>
3285
- `}},s.SelectLabel.styles=[l.css``,c],s.SelectLabel=si([d.customElement("rtg-select-label")],s.SelectLabel);var ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor,We=(n,e,r,o)=>{for(var t=o>1?void 0:o?li(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ai(e,r,t),t};s.SelectSeperator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${s.SelectSeperator._counter++}`:this._id=`rtgcmdrxlxs${s.SelectSeperator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
3542
+ `}},a.SelectLabel.styles=[l.css``,c],a.SelectLabel=ys([d.customElement("rtg-select-label")],a.SelectLabel);var xs=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,tt=(n,e,r,o)=>{for(var t=o>1?void 0:o?$s(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&xs(e,r,t),t};a.SelectSeperator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${a.SelectSeperator._counter++}`:this._id=`rtgcmdrxlxs${a.SelectSeperator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
3286
3543
  <div
3287
3544
  class="${p("-mx-1 h-px bg-border",this.className)}"
3288
3545
  rtgcmd-separator
3289
3546
  role="separator"
3290
3547
  id="${this.identifier}"
3291
3548
  ></div>
3292
- `}`}},s.SelectSeperator._counter=0,s.SelectSeperator.styles=[l.css``,c],We([d.property({type:String})],s.SelectSeperator.prototype,"_id",2),We([d.property({attribute:"aria-hidden",type:String})],s.SelectSeperator.prototype,"_hidden",2),s.SelectSeperator=We([d.customElement("rtg-select-separator")],s.SelectSeperator);var di=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,H=(n,e,r,o)=>{for(var t=o>1?void 0:o?ci(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&di(e,r,t),t};s.Select=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[]}firstUpdated(e){this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen}selectItem(e){const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-select-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-select-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){this.toggleDropdown()}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}render(){return l.html`
3549
+ `}`}},a.SelectSeperator._counter=0,a.SelectSeperator.styles=[l.css``,c],tt([d.property({type:String})],a.SelectSeperator.prototype,"_id",2),tt([d.property({attribute:"aria-hidden",type:String})],a.SelectSeperator.prototype,"_hidden",2),a.SelectSeperator=tt([d.customElement("rtg-select-separator")],a.SelectSeperator);var Cs=Object.defineProperty,_s=Object.getOwnPropertyDescriptor,Y=(n,e,r,o)=>{for(var t=o>1?void 0:o?_s(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Cs(e,r,t),t};a.Select=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[]}firstUpdated(e){this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen}selectItem(e){const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-select-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-select-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){this.toggleDropdown()}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}render(){return l.html`
3293
3550
  <div class="relative" data-hs-combo-box="">
3294
3551
  <div class="relative">
3295
3552
  <input
@@ -3314,7 +3571,7 @@ body {
3314
3571
  data-hs-combo-box-toggle=""
3315
3572
  @click="${this.toggleDropdown}"
3316
3573
  >
3317
- ${Dt()}
3574
+ ${Ft()}
3318
3575
  </div>
3319
3576
  </div>
3320
3577
  <div
@@ -3350,7 +3607,7 @@ body {
3350
3607
  `}
3351
3608
  </div>
3352
3609
  </div>
3353
- `}},s.Select.styles=[l.css``,c],H([d.state()],s.Select.prototype,"isOpen",2),H([d.state()],s.Select.prototype,"selectedValue",2),H([d.state()],s.Select.prototype,"searchTerm",2),H([d.state()],s.Select.prototype,"focusedIndex",2),H([d.state()],s.Select.prototype,"filteredItems",2),H([d.property({type:String})],s.Select.prototype,"label",2),H([d.property({type:Array})],s.Select.prototype,"items",2),s.Select=H([d.customElement("rtg-select")],s.Select);var ui=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,Ke=(n,e,r,o)=>{for(var t=o>1?void 0:o?pi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ui(e,r,t),t};s.Switch=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.disabled=!1}_toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked})))}render(){return l.html`
3610
+ `}},a.Select.styles=[l.css``,c],Y([d.state()],a.Select.prototype,"isOpen",2),Y([d.state()],a.Select.prototype,"selectedValue",2),Y([d.state()],a.Select.prototype,"searchTerm",2),Y([d.state()],a.Select.prototype,"focusedIndex",2),Y([d.state()],a.Select.prototype,"filteredItems",2),Y([d.property({type:String})],a.Select.prototype,"label",2),Y([d.property({type:Array})],a.Select.prototype,"items",2),a.Select=Y([d.customElement("rtg-select")],a.Select);var Os=Object.defineProperty,Ps=Object.getOwnPropertyDescriptor,rt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ps(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Os(e,r,t),t};a.Switch=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.disabled=!1}_toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked})))}render(){return l.html`
3354
3611
  <div class="${p("flex items-center space-x-2",this.className)}">
3355
3612
  <div
3356
3613
  @click="${this._toggleChecked}"
@@ -3369,7 +3626,7 @@ body {
3369
3626
  </div>
3370
3627
  <slot></slot>
3371
3628
  </div>
3372
- `}},s.Switch.styles=[l.css``,c],Ke([d.property({type:Boolean,reflect:!0})],s.Switch.prototype,"checked",2),Ke([d.property({type:Boolean})],s.Switch.prototype,"disabled",2),s.Switch=Ke([d.customElement("rtg-switch")],s.Switch);const hi="unChecked";var gi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,ne=(n,e,r,o)=>{for(var t=o>1?void 0:o?mi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&gi(e,r,t),t};s.RadioGroupItem=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="",this.state=hi}_onClick(e){e.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
3629
+ `}},a.Switch.styles=[l.css``,c],rt([d.property({type:Boolean,reflect:!0})],a.Switch.prototype,"checked",2),rt([d.property({type:Boolean})],a.Switch.prototype,"disabled",2),a.Switch=rt([d.customElement("rtg-switch")],a.Switch);const Ss="unChecked";var Es=Object.defineProperty,ks=Object.getOwnPropertyDescriptor,ae=(n,e,r,o)=>{for(var t=o>1?void 0:o?ks(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Es(e,r,t),t};a.RadioGroupItem=class extends l.LitElement{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="",this.state=Ss}_onClick(e){e.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return l.html`
3373
3630
  <div class="${p("flex items-center space-x-2")}">
3374
3631
  <button
3375
3632
  type="button"
@@ -3387,7 +3644,7 @@ body {
3387
3644
  data-state="checked"
3388
3645
  class="flex items-center justify-center"
3389
3646
  >
3390
- ${cn()}
3647
+ ${Cn()}
3391
3648
  </span>`:l.nothing}
3392
3649
  </button>
3393
3650
  <label
@@ -3396,11 +3653,11 @@ body {
3396
3653
  >${this.value}</label
3397
3654
  >
3398
3655
  </div>
3399
- `}},s.RadioGroupItem.styles=[l.css``,c],ne([d.property({type:Boolean,reflect:!0})],s.RadioGroupItem.prototype,"checked",2),ne([d.property({type:Number})],s.RadioGroupItem.prototype,"tabindex",2),ne([d.property({type:String})],s.RadioGroupItem.prototype,"value",2),ne([d.property({type:String})],s.RadioGroupItem.prototype,"id",2),ne([d.property({attribute:"data-state",type:String})],s.RadioGroupItem.prototype,"state",2),s.RadioGroupItem=ne([d.customElement("rtg-radio-group-item")],s.RadioGroupItem);var fi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,vi=(n,e,r,o)=>{for(var t=o>1?void 0:o?bi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&fi(e,r,t),t};s.RadioGroup=class extends l.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
3656
+ `}},a.RadioGroupItem.styles=[l.css``,c],ae([d.property({type:Boolean,reflect:!0})],a.RadioGroupItem.prototype,"checked",2),ae([d.property({type:Number})],a.RadioGroupItem.prototype,"tabindex",2),ae([d.property({type:String})],a.RadioGroupItem.prototype,"value",2),ae([d.property({type:String})],a.RadioGroupItem.prototype,"id",2),ae([d.property({attribute:"data-state",type:String})],a.RadioGroupItem.prototype,"state",2),a.RadioGroupItem=ae([d.customElement("rtg-radio-group-item")],a.RadioGroupItem);var Ds=Object.defineProperty,Ms=Object.getOwnPropertyDescriptor,Is=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ms(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ds(e,r,t),t};a.RadioGroup=class extends l.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}render(){return l.html`
3400
3657
  <div class="${p("grid gap-2",this.className)}" style="outline: none;">
3401
3658
  <slot></slot>
3402
3659
  </div>
3403
- `}},s.RadioGroup.styles=[l.css``,c],s.RadioGroup=vi([d.customElement("rtg-radio-group")],s.RadioGroup);var wi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,Ze=(n,e,r,o)=>{for(var t=o>1?void 0:o?yi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&wi(e,r,t),t};let fe=class extends _{constructor(){super(...arguments),this.value="",this.tabindex=0,this.handleClick=n=>{n.preventDefault(),n.stopPropagation();const e=n.currentTarget;if(e instanceof HTMLDivElement){const r=e.getAttribute("value")??"";this._accordion&&this._accordion.raiseEvent(r)}}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(n){var e;this._accordion&&((e=this._accordion)==null||e.addEventListener("clicked-accordion",()=>{this.requestUpdate()}))}disconnectedCallback(){super.disconnectedCallback(),this._accordion&&this._accordion.removeEventListener("clicked-accordion",()=>{})}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof ae);)n=n.parentElement;return n}render(){const n=this.getFilteredAttributes();return E.html`
3660
+ `}},a.RadioGroup.styles=[l.css``,c],a.RadioGroup=Is([d.customElement("rtg-radio-group")],a.RadioGroup);var As=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,ot=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ls(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&As(e,r,t),t};let ye=class extends y{constructor(){super(...arguments),this.value="",this.tabindex=0,this.handleClick=n=>{n.preventDefault(),n.stopPropagation();const e=n.currentTarget;if(e instanceof HTMLDivElement){const r=e.getAttribute("value")??"";this._accordion&&this._accordion.raiseEvent(r)}}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(n){var e;this._accordion&&((e=this._accordion)==null||e.addEventListener("clicked-accordion",()=>{this.requestUpdate()}))}disconnectedCallback(){super.disconnectedCallback(),this._accordion&&this._accordion.removeEventListener("clicked-accordion",()=>{})}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof ce);)n=n.parentElement;return n}render(){const n=this.getFilteredAttributes();return D.html`
3404
3661
  <div
3405
3662
  data-state="closed"
3406
3663
  role="tablist"
@@ -3409,16 +3666,16 @@ body {
3409
3666
  class="w-full border-b"
3410
3667
  value="$${this.value}"
3411
3668
  @click=${this.handleClick}
3412
- ${C(n)}
3669
+ ${x(n)}
3413
3670
  >
3414
3671
  <h3>
3415
3672
  <slot name="accordion-trigger"></slot>
3416
3673
  </h3>
3417
3674
  <div>
3418
- ${this._accordion&&this._accordion.selectedItems.includes(this.value)?E.html` <slot name="accordion-content"></slot> `:E.nothing}
3675
+ ${this._accordion&&this._accordion.selectedItems.includes(this.value)?D.html` <slot name="accordion-content"></slot> `:D.nothing}
3419
3676
  </div>
3420
3677
  </div>
3421
- `}};fe.styles=[E.css``,c],Ze([d.property({type:String})],fe.prototype,"value",2),Ze([d.property({type:Number})],fe.prototype,"tabindex",2),fe=Ze([d.customElement("rtg-accordion-item")],fe);var xi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,Se=(n,e,r,o)=>{for(var t=o>1?void 0:o?$i(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&xi(e,r,t),t};let ie=class extends _{constructor(){super(...arguments),this.defaultValue="",this.value=""}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return["value","defaultValue"]}render(){const n=this.getFilteredAttributes();return E.html`
3678
+ `}};ye.styles=[D.css``,c],ot([d.property({type:String})],ye.prototype,"value",2),ot([d.property({type:Number})],ye.prototype,"tabindex",2),ye=ot([d.customElement("rtg-accordion-item")],ye);var zs=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,De=(n,e,r,o)=>{for(var t=o>1?void 0:o?Rs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&zs(e,r,t),t};let le=class extends y{constructor(){super(...arguments),this.defaultValue="",this.value=""}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return["value","defaultValue"]}render(){const n=this.getFilteredAttributes();return D.html`
3422
3679
  <button
3423
3680
  type="button"
3424
3681
  role="tab"
@@ -3431,12 +3688,12 @@ body {
3431
3688
  tabindex="-1"
3432
3689
  data-orientation="horizontal"
3433
3690
  data-radix-collection-item=""
3434
- ${C(n)}
3691
+ ${x(n)}
3435
3692
  >
3436
3693
  <slot></slot>
3437
- ${dn()}
3694
+ ${$n()}
3438
3695
  </button>
3439
- `}};ie.styles=[E.css``,c],Se([d.property({type:String})],ie.prototype,"defaultValue",2),Se([d.property({type:String})],ie.prototype,"value",2),Se([d.property({type:Function})],ie.prototype,"onClickCallback",2),ie=Se([d.customElement("rtg-accordion-trigger")],ie);var Ci=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,je=(n,e,r,o)=>{for(var t=o>1?void 0:o?_i(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ci(e,r,t),t};let be=class extends E.LitElement{constructor(){super(...arguments),this.value="",this.selectedValue=""}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof ae);)n=n.parentElement;return n}updated(n){super.updated(n)}render(){return E.html`
3696
+ `}};le.styles=[D.css``,c],De([d.property({type:String})],le.prototype,"defaultValue",2),De([d.property({type:String})],le.prototype,"value",2),De([d.property({type:Function})],le.prototype,"onClickCallback",2),le=De([d.customElement("rtg-accordion-trigger")],le);var Ts=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,nt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Bs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ts(e,r,t),t};let xe=class extends D.LitElement{constructor(){super(...arguments),this.value="",this.selectedValue=""}get _accordion(){let n=this.parentElement;for(;n&&!(n instanceof ce);)n=n.parentElement;return n}updated(n){super.updated(n)}render(){return D.html`
3440
3697
  <div
3441
3698
  data-state="open"
3442
3699
  role="region"
@@ -3452,30 +3709,30 @@ body {
3452
3709
  <slot></slot>
3453
3710
  </div>
3454
3711
  </div>
3455
- `}};be.styles=[E.css``,c],je([d.property({type:String})],be.prototype,"value",2),je([d.state()],be.prototype,"selectedValue",2),be=je([d.customElement("rtg-accordion-content")],be);var se=(n=>(n.MULTIPLE="multiple",n.SINGLE="single",n))(se||{}),Oi=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,Bt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Si(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Oi(e,r,t),t};let ae=class extends _{constructor(){super(...arguments),this.type=se.MULTIPLE,this.selectedItems=[]}getAttributesToExclude(){return["variant"]}connectedCallback(){var n;super.connectedCallback(),(n=this.shadowRoot)==null||n.addEventListener("clicked-accordion",()=>{})}disconnectedCallback(){super.disconnectedCallback()}setSelectedItems(n){const e=this.selectedItems.indexOf(n);if(e>-1)if(this.type===se.SINGLE)this.selectedItems=[];else if(this.type===se.MULTIPLE)this.selectedItems.splice(e,1);else throw new Error("Type does not correct");else if(this.type===se.SINGLE)this.selectedItems[0]=n;else if(this.type===se.MULTIPLE)this.selectedItems.push(n);else throw new Error("Type does not correct")}raiseEvent(n){this.setSelectedItems(n);const e=new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}});this.dispatchEvent(e)}render(){const n=this.getFilteredAttributes();return l.html`
3456
- <div data-orientation="vertical" ${C(n)}>
3712
+ `}};xe.styles=[D.css``,c],nt([d.property({type:String})],xe.prototype,"value",2),nt([d.state()],xe.prototype,"selectedValue",2),xe=nt([d.customElement("rtg-accordion-content")],xe);var de=(n=>(n.MULTIPLE="multiple",n.SINGLE="single",n))(de||{}),Ns=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor,Kt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Fs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ns(e,r,t),t};let ce=class extends y{constructor(){super(...arguments),this.type=de.MULTIPLE,this.selectedItems=[]}getAttributesToExclude(){return["variant"]}connectedCallback(){var n;super.connectedCallback(),(n=this.shadowRoot)==null||n.addEventListener("clicked-accordion",()=>{})}disconnectedCallback(){super.disconnectedCallback()}setSelectedItems(n){const e=this.selectedItems.indexOf(n);if(e>-1)if(this.type===de.SINGLE)this.selectedItems=[];else if(this.type===de.MULTIPLE)this.selectedItems.splice(e,1);else throw new Error("Type does not correct");else if(this.type===de.SINGLE)this.selectedItems[0]=n;else if(this.type===de.MULTIPLE)this.selectedItems.push(n);else throw new Error("Type does not correct")}raiseEvent(n){this.setSelectedItems(n);const e=new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}});this.dispatchEvent(e)}render(){const n=this.getFilteredAttributes();return l.html`
3713
+ <div data-orientation="vertical" ${x(n)}>
3457
3714
  <slot name="accordion-item"></slot>
3458
3715
  </div>
3459
- `}};ae.styles=[l.css``,c],Bt([d.property({type:String})],ae.prototype,"type",2),ae=Bt([d.customElement("rtg-accordion")],ae);var Je=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(Je||{}),ki=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,Nt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Pi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&ki(e,r,t),t};s.Separator=class extends _{constructor(){super(...arguments),this.orientation=Je.HORIZONTAL}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return this.orientation===Je.HORIZONTAL?l.html` <div
3716
+ `}};ce.styles=[l.css``,c],Kt([d.property({type:String})],ce.prototype,"type",2),ce=Kt([d.customElement("rtg-accordion")],ce);var st=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(st||{}),qs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Wt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Gs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&qs(e,r,t),t};a.Separator=class extends y{constructor(){super(...arguments),this.orientation=st.HORIZONTAL}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return this.orientation===st.HORIZONTAL?l.html` <div
3460
3717
  class="${p("shrink-0 bg-border w-full h-[1px] my-4",this.className)}"
3461
- ${C(e)}
3718
+ ${x(e)}
3462
3719
  role="none"
3463
3720
  ></div>`:(console.log("elseee "),l.html` <div
3464
3721
  class="${p("shrink-0 bg-border h-full w-[1px]",this.className)}"
3465
3722
  style=""
3466
3723
  role="none"
3467
- ${C(e)}
3724
+ ${x(e)}
3468
3725
  >
3469
3726
  &nbsp
3470
- </div>`)}},s.Separator.styles=[l.css``,c],Nt([d.property({type:String})],s.Separator.prototype,"orientation",2),s.Separator=Nt([d.customElement("rtg-separator")],s.Separator);const Ei=B("inline-flex items-center justify-center rounded-sm text-sm font-medium ",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}});var Di=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,le=(n,e,r,o)=>{for(var t=o>1?void 0:o?Mi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Di(e,r,t),t};let I=class extends l.LitElement{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.isCustomClass=!1,this.variant="default",this.size="default"}render(){return l.html`
3727
+ </div>`)}},a.Separator.styles=[l.css``,c],Wt([d.property({type:String})],a.Separator.prototype,"orientation",2),a.Separator=Wt([d.customElement("rtg-separator")],a.Separator);const Vs=N("inline-flex items-center justify-center rounded-sm text-sm font-medium ",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}});var Us=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,ue=(n,e,r,o)=>{for(var t=o>1?void 0:o?Xs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Us(e,r,t),t};let A=class extends l.LitElement{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.isCustomClass=!1,this.variant="default",this.size="default"}render(){return l.html`
3471
3728
  <div
3472
- class="${p(I.buttonVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.isCustomClass?"rtg-sample-demo-custom-class":""}"
3729
+ class="${p(A.buttonVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.isCustomClass?"rtg-sample-demo-custom-class":""}"
3473
3730
  >
3474
3731
  <div part="tab active">Tab A</div>
3475
3732
  <div class="px-4" part="tab">Tab B</div>
3476
3733
  <div part="tab">Tab C</div>
3477
3734
  </div>
3478
- `}};I.buttonVariants=Ei,I.styles=[c,l.css`
3735
+ `}};A.buttonVariants=Vs,A.styles=[c,l.css`
3479
3736
  :host {
3480
3737
  --rtg-sample-demo-bg: unset;
3481
3738
  --rtg-sample-demo-color: unset;
@@ -3488,13 +3745,30 @@ body {
3488
3745
  border-radius: var(--rtg-sample-demo-radius);
3489
3746
  height: var(--rtg-sample-demo-height);
3490
3747
  }
3491
- `],le([d.property({type:Function})],I.prototype,"click",2),le([d.property({type:Boolean})],I.prototype,"disabled",2),le([d.property({type:String})],I.prototype,"isCustomClass",2),le([d.property({type:String})],I.prototype,"variant",2),le([d.property({type:String})],I.prototype,"size",2),I=le([d.customElement("rtg-sample-demo")],I);const Ii="inline-flex items-center gap-1.5",Li="transition-colors hover:text-foreground",Ai="font-normal text-foreground",zi="[&>svg]:size-3.5",Ri="flex h-9 w-9 items-center justify-center",Ti="flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5";var Bi=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,qi=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ni(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Bi(e,r,t),t};let Qe=class extends _{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3748
+ `],ue([d.property({type:Function})],A.prototype,"click",2),ue([d.property({type:Boolean})],A.prototype,"disabled",2),ue([d.property({type:String})],A.prototype,"isCustomClass",2),ue([d.property({type:String})],A.prototype,"variant",2),ue([d.property({type:String})],A.prototype,"size",2),A=ue([d.customElement("rtg-sample-demo")],A);var Ys=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Ks=(n,e,r,o)=>{for(var t=o>1?void 0:o?Hs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ys(e,r,t),t};let it=class extends y{getAttributesToExclude(){return[""]}get _collapsible(){let n=this.parentElement;for(;n&&!(n instanceof pe);)n=n.parentElement;return n}onTrigger(){const n=this._collapsible;n&&(n.open=!n.open,n.onOpenChange())}render(){const n=this.getFilteredAttributes();return l.html`
3749
+ <div @click=${this.onTrigger} ${x(n)}>
3750
+ <slot></slot>
3751
+ </div>
3752
+ `}};it.styles=[l.css``,c],it=Ks([d.customElement("rtg-collapsible-trigger")],it);var Ws=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,js=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ws(e,r,t),t};let at=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3753
+ <div
3754
+ class="${this.className}"
3755
+ style="--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
3756
+ ${x(n)}
3757
+ >
3758
+ <slot></slot>
3759
+ </div>
3760
+ `}};at.styles=[l.css``,c],at=js([d.customElement("rtg-collapsible-content")],at);var Js=Object.defineProperty,Qs=Object.getOwnPropertyDescriptor,lt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Js(e,r,t),t};let pe=class extends y{constructor(){super(...arguments),this.open=!1,this.onOpenChange=()=>{}}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3761
+ <div data-state="${this.open?"open":"closed"}" ${x(n)}>
3762
+ <slot></slot>
3763
+ ${this.open?l.html`<slot name="collapsible-content"></slot>`:l.nothing}
3764
+ </div>
3765
+ `}};pe.styles=[l.css``,c],lt([d.property({type:Boolean})],pe.prototype,"open",2),lt([d.property({type:Function})],pe.prototype,"onOpenChange",2),pe=lt([d.customElement("rtg-collapsible")],pe);const ei="inline-flex items-center gap-1.5",ti="transition-colors hover:text-foreground",ri="font-normal text-foreground",oi="[&>svg]:size-3.5",ni="flex h-9 w-9 items-center justify-center",si="flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5";var ii=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,li=(n,e,r,o)=>{for(var t=o>1?void 0:o?ai(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&ii(e,r,t),t};let dt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3492
3766
  <span
3493
3767
  id="rtg-bread-crumb-ellipsis"
3494
3768
  role="presentation"
3495
3769
  aria-hidden="true"
3496
- class="${p(Ri,this.className)}"
3497
- ${C(n)}
3770
+ class="${p(ni,this.className)}"
3771
+ ${x(n)}
3498
3772
  >
3499
3773
  <svg
3500
3774
  fill="#000000"
@@ -3509,29 +3783,29 @@ body {
3509
3783
  />
3510
3784
  </svg>
3511
3785
  </span>
3512
- `}};Qe.styles=[l.css``,c],Qe=qi([d.customElement("rtg-bread-crumb-ellipsis")],Qe);var Gi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,Vi=(n,e,r,o)=>{for(var t=o>1?void 0:o?Fi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Gi(e,r,t),t};let et=class extends _{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
3786
+ `}};dt.styles=[l.css``,c],dt=li([d.customElement("rtg-bread-crumb-ellipsis")],dt);var di=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,ui=(n,e,r,o)=>{for(var t=o>1?void 0:o?ci(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&di(e,r,t),t};let ct=class extends y{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
3513
3787
  <li
3514
3788
  id="rtg-bread-crumb-item"
3515
- class="${p(Ii,this.className)}"
3516
- ${C(n)}
3789
+ class="${p(ei,this.className)}"
3790
+ ${x(n)}
3517
3791
  >
3518
3792
  <slot></slot>
3519
3793
  </li>
3520
- `}};et.styles=[l.css``,c],et=Vi([d.customElement("rtg-bread-crumb-item")],et);var Ui=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,Xi=(n,e,r,o)=>{for(var t=o>1?void 0:o?Hi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Ui(e,r,t),t};let tt=class extends _{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
3794
+ `}};ct.styles=[l.css``,c],ct=ui([d.customElement("rtg-bread-crumb-item")],ct);var pi=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,gi=(n,e,r,o)=>{for(var t=o>1?void 0:o?hi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&pi(e,r,t),t};let ut=class extends y{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
3521
3795
  <ol
3522
3796
  id="rtg-bread-crumb-list"
3523
- class="${p(Ti,this.className)}"
3524
- ${C(n)}
3797
+ class="${p(si,this.className)}"
3798
+ ${x(n)}
3525
3799
  >
3526
3800
  <slot></slot>
3527
3801
  </ol>
3528
- `}};tt.styles=[l.css``,c],tt=Xi([d.customElement("rtg-bread-crumb-list")],tt);var Yi=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Ki=(n,e,r,o)=>{for(var t=o>1?void 0:o?Wi(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Yi(e,r,t),t};let rt=class extends _{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3802
+ `}};ut.styles=[l.css``,c],ut=gi([d.customElement("rtg-bread-crumb-list")],ut);var mi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,bi=(n,e,r,o)=>{for(var t=o>1?void 0:o?fi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&mi(e,r,t),t};let pt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3529
3803
  <li
3530
3804
  id="rtg-bread-crumb-separator"
3531
3805
  role="presentation"
3532
3806
  aria-hidden="true"
3533
- class="${p(zi,this.className)}"
3534
- ${C(n)}
3807
+ class="${p(oi,this.className)}"
3808
+ ${x(n)}
3535
3809
  >
3536
3810
  <svg
3537
3811
  xmlns="http://www.w3.org/2000/svg"
@@ -3548,31 +3822,43 @@ body {
3548
3822
  <path d="M22 2 2 22"></path>
3549
3823
  </svg>
3550
3824
  </div>
3551
- `}};rt.styles=[l.css``,c],rt=Ki([d.customElement("rtg-bread-crumb-separator")],rt);var Zi=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,Ji=(n,e,r,o)=>{for(var t=o>1?void 0:o?ji(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Zi(e,r,t),t};let ot=class extends _{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3825
+ `}};pt.styles=[l.css``,c],pt=bi([d.customElement("rtg-bread-crumb-separator")],pt);var vi=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,yi=(n,e,r,o)=>{for(var t=o>1?void 0:o?wi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&vi(e,r,t),t};let ht=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3552
3826
  <nav
3553
3827
  class="${p(this.className)}"
3554
3828
  aria-label="breadcrumb"
3555
- ${C(n)}
3829
+ ${x(n)}
3556
3830
  >
3557
3831
  <slot></slot>
3558
3832
  </nav>
3559
- `}};ot.styles=[l.css``,c],ot=Ji([d.customElement("rtg-bread-crumb")],ot);var Qi=Object.defineProperty,es=Object.getOwnPropertyDescriptor,ts=(n,e,r,o)=>{for(var t=o>1?void 0:o?es(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&Qi(e,r,t),t};let nt=class extends _{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3833
+ `}};ht.styles=[l.css``,c],ht=yi([d.customElement("rtg-bread-crumb")],ht);var xi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,Ci=(n,e,r,o)=>{for(var t=o>1?void 0:o?$i(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&xi(e,r,t),t};let gt=class extends y{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3560
3834
  <span
3561
3835
  id="rtg-bread-crumb-text"
3562
3836
  aria-disabled="true"
3563
3837
  aria-current="page"
3564
- class="${p(Ai,this.className)}"
3565
- ${C(n)}
3838
+ class="${p(ri,this.className)}"
3839
+ ${x(n)}
3566
3840
  >
3567
3841
  <slot></slot>
3568
3842
  </span>
3569
- `}};nt.styles=[l.css``,c],nt=ts([d.customElement("rtg-bread-crumb-text")],nt);var rs=Object.defineProperty,os=Object.getOwnPropertyDescriptor,qt=(n,e,r,o)=>{for(var t=o>1?void 0:o?os(e,r):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(t=(o?a(e,r,t):a(t))||t);return o&&t&&rs(e,r,t),t};let ke=class extends _{constructor(){super(...arguments),this.href="/"}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3843
+ `}};gt.styles=[l.css``,c],gt=Ci([d.customElement("rtg-bread-crumb-text")],gt);var _i=Object.defineProperty,Oi=Object.getOwnPropertyDescriptor,Zt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&_i(e,r,t),t};let Me=class extends y{constructor(){super(...arguments),this.href="/"}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3570
3844
  <a
3571
3845
  id="rtg-bread-crumb-link"
3572
- class="${p(Li,this.className)}"
3573
- ${C(n)}
3846
+ class="${p(ti,this.className)}"
3847
+ ${x(n)}
3574
3848
  href="${this.href}"
3575
3849
  >
3576
3850
  <slot></slot>
3577
3851
  </a>
3578
- `}};ke.styles=[l.css``,c],qt([d.property({type:String})],ke.prototype,"href",2),ke=qt([d.customElement("rtg-bread-crumb-link")],ke),Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
3852
+ `}};Me.styles=[l.css``,c],Zt([d.property({type:String})],Me.prototype,"href",2),Me=Zt([d.customElement("rtg-bread-crumb-link")],Me);var Pi=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,H=(n,e,r,o)=>{for(var t=o>1?void 0:o?Si(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Pi(e,r,t),t};let O=class extends y{constructor(){super(...arguments),this.click=()=>{},this.clientName="",this.username="",this.pinLength=6,this.onChange=(n,e)=>{},this.pin=new Array(this.pinLength),this.inputElement=[Q.createRef(),Q.createRef(),Q.createRef(),Q.createRef(),Q.createRef(),Q.createRef()]}getAttributesToExclude(){return[]}firstUpdated(){var n;(n=this.inputElement[0].value)==null||n.focus()}updated(n){n.has("pin")&&this.pin.join("").length===this.pinLength&&this.onChange(this.pin.join(""),this.username)}connectedCallback(){super.connectedCallback()}handleChangePinFocus(n){const e=this.inputElement[n].value;e&&e.focus()}setNewPin(n,e){let r=[...this.pin];r[e]!==n&&(r[e]=n),this.pin=r,this.handleChangePinFocus(e+1)}findDifferentChars(n,e){let r=n.split(""),o=e.split(""),t=r.filter(i=>!o.includes(i)),s=o.filter(i=>!r.includes(i));return t.concat(s).join("")??e}handleInputChange(n,e){const r=new RegExp(/^\d+$/);let{value:o,key:t}=n.target;if(o.length>1&&(o=this.findDifferentChars(o,this.pin[e])),t!==O.BACKSPACE_KEY)if(r.test(o)){if(o===O.BACKSPACE_KEY||o===""){this.handleChangePinFocus(e-1);return}if(o<O.PIN_MIN_VALUE||o>O.PIN_MAX_VALUE||this.pin.join("").length===this.pinLength)return;this.setNewPin(o.slice(-1),e)}else this.pin[e]&&o!==""&&this.handleChangePinFocus(e+1)}handleKeyDown(n,e){const r=n.which?n.which:n.keyCode;if(r>31&&(r<48||r>57)&&(r<96||r>105)&&n.preventDefault(),n.key==this.pin[e]&&(n.preventDefault(),this.handleChangePinFocus(e+1)),n.key==="Backspace"){let o=[...this.pin];o[e]="",this.pin=o,this.handleChangePinFocus(e-1),n.preventDefault();return}}handleShowValue(n){const e=this.pin[n];return e===0?"0":e?e.toString().charAt(e.toString().length-1):""}render(){return l.html`
3853
+ <div class="flex">
3854
+ <slot></slot>
3855
+ </div>
3856
+ `}};O.styles=[l.css``,c],O.PIN_MIN_VALUE="0",O.PIN_MAX_VALUE="9",O.BACKSPACE_KEY="Backspace",H([d.property({type:Function})],O.prototype,"click",2),H([d.property()],O.prototype,"clientName",2),H([d.property()],O.prototype,"username",2),H([d.property()],O.prototype,"pinLength",2),H([d.property()],O.prototype,"onChange",2),H([d.property()],O.prototype,"pin",2),H([d.property({type:Array})],O.prototype,"inputElement",2),O=H([d.customElement("rtg-input-otp")],O);var Ei=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,jt=(n,e,r,o)=>{for(var t=o>1?void 0:o?ki(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ei(e,r,t),t};let Ie=class extends y{constructor(){super(...arguments),this.click=()=>{}}getAttributesToExclude(){return[]}render(){return this.getFilteredAttributes(),l.html`
3857
+ <div class="flex">
3858
+ <slot></slot>
3859
+ </div>
3860
+ `}};Ie.styles=[l.css``,c],jt([d.property({type:Function})],Ie.prototype,"click",2),Ie=jt([d.customElement("input-otp-group")],Ie);var Di=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,Jt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Mi(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Di(e,r,t),t};let Ae=class extends y{constructor(){super(...arguments),this.index=0}getAttributesToExclude(){return[]}render(){return this.getFilteredAttributes(),l.html` <div role="separator">${_n()}</div> `}};Ae.styles=[l.css``,c],Jt([d.property({type:Number})],Ae.prototype,"index",2),Ae=Jt([d.customElement("input-otp-separator")],Ae);var Ii=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Qt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ai(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Ii(e,r,t),t};let Le=class extends y{constructor(){super(...arguments),this.click=()=>{}}getAttributesToExclude(){return[]}render(){return this.getFilteredAttributes(),l.html`
3861
+ <div>
3862
+ <input class="border mx-2 rounded-md" style="width:40px" />
3863
+ </div>
3864
+ `}};Le.styles=[l.css``,c],Qt([d.property({type:Function})],Le.prototype,"click",2),Le=Qt([d.customElement("input-otp-slot")],Le),Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});