revotech-ui-kit 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. package/dist/revotech-ui-kit.js +2766 -1145
  2. package/dist/revotech-ui-kit.umd.cjs +745 -144
  3. package/dist/src/assets/icons/arrow-up-circle.icon.d.ts +1 -0
  4. package/dist/src/assets/icons/chorven-down.icon.d.ts +1 -0
  5. package/dist/src/assets/icons/circle-check.icon.d.ts +1 -0
  6. package/dist/src/assets/icons/circle-x.icon.d.ts +1 -0
  7. package/dist/src/assets/icons/circle.icon.d.ts +1 -0
  8. package/dist/src/assets/icons/help-circle.icon.d.ts +1 -0
  9. package/dist/src/assets/icons/index.d.ts +8 -0
  10. package/dist/src/assets/icons/radio-group.icon.d.ts +1 -0
  11. package/dist/src/assets/icons/radio.icon.d.ts +1 -0
  12. package/dist/src/components/atoms/accordion/accordion-content.d.ts +12 -0
  13. package/dist/src/components/atoms/accordion/accordion-item.d.ts +22 -0
  14. package/dist/src/components/atoms/accordion/accordion-trigger.d.ts +17 -0
  15. package/dist/src/components/atoms/accordion/accordion.atoms.d.ts +23 -0
  16. package/dist/src/components/atoms/accordion/accordion.defs.d.ts +10 -0
  17. package/dist/{components/atoms/button/button.stories.d.ts → src/components/atoms/accordion/accordion.stories.d.ts} +1 -1
  18. package/dist/src/components/atoms/button/button.atom.d.ts +2 -0
  19. package/dist/src/components/atoms/checkbox/checkbox.stories.d.ts +1 -1
  20. package/dist/{components/atoms/combo-box → src/components/atoms/combobox}/combo-box-input.d.ts +5 -0
  21. package/dist/src/components/atoms/{combo-box → combobox}/combo-box-item.d.ts +5 -0
  22. package/dist/{components/atoms/combo-box → src/components/atoms/combobox}/combo-box-list.d.ts +5 -0
  23. package/dist/src/components/atoms/{combo-box → combobox}/combo-box.atom.d.ts +3 -0
  24. package/dist/src/components/atoms/command/command-item.atom.d.ts +4 -3
  25. package/dist/src/components/atoms/command/command.stories.d.ts +3 -2
  26. package/dist/src/components/atoms/{dropdownMenu/dropdown-menu-checkbox-Item.d.ts → context-menu/context-menu-checkbox-Item.d.ts} +1 -1
  27. package/dist/src/components/atoms/{dropdownMenu/dropdown-menu-content.d.ts → context-menu/context-menu-content.d.ts} +3 -3
  28. package/dist/{components/atoms/command/command-group.atom.d.ts → src/components/atoms/context-menu/context-menu-group.d.ts} +1 -1
  29. package/dist/{components/atoms/command/command-item.atom.d.ts → src/components/atoms/context-menu/context-menu-item.d.ts} +1 -1
  30. package/dist/src/components/atoms/{dropdownMenu/dropdown-menu-radio-item.d.ts → context-menu/context-menu-radio-item.d.ts} +1 -1
  31. package/dist/{components/atoms/command/command-separator.atom.d.ts → src/components/atoms/context-menu/context-menu-seperator.d.ts} +1 -1
  32. package/dist/{components/atoms/card/card-header.d.ts → src/components/atoms/context-menu/context-menu-shortcut.d.ts} +1 -1
  33. package/dist/src/components/atoms/context-menu/context-menu.atom.d.ts +34 -0
  34. package/dist/src/components/atoms/context-menu/contextMenu.stories.d.ts +5 -0
  35. package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu.atom.d.ts +1 -0
  36. package/dist/src/components/atoms/dropdown-menu/dropdownMenu.style.d.ts +2 -0
  37. package/dist/src/components/atoms/index.d.ts +9 -2
  38. package/dist/src/components/atoms/input/input.styles.d.ts +1 -1
  39. package/dist/src/components/atoms/popover/popover-content.d.ts +2 -1
  40. package/dist/src/components/atoms/popover/popover-trigger.d.ts +2 -2
  41. package/dist/src/components/atoms/popover/popover.style.d.ts +4 -0
  42. package/dist/{components/atoms/checkbox/checkbox.atom.d.ts → src/components/atoms/radio-group/radio-group-item.d.ts} +5 -7
  43. package/dist/src/components/atoms/radio-group/radio-group.atom.d.ts +16 -0
  44. package/dist/src/components/atoms/radio-group/radio-group.stories.d.ts +5 -0
  45. package/dist/src/components/atoms/radio-group/radio-group.types.d.ts +2 -0
  46. package/dist/src/components/atoms/sample-demo/sample-demo.d.ts +21 -0
  47. package/dist/src/components/atoms/sample-demo/sample.style.d.ts +4 -0
  48. package/dist/src/components/atoms/sample-demo/sample.type.d.ts +3 -0
  49. package/dist/{components/atoms/combo-box/combo-box-item.d.ts → src/components/atoms/select/select-item.d.ts} +1 -1
  50. package/dist/{components/atoms/card/card-footer.d.ts → src/components/atoms/select/select-label.d.ts} +1 -1
  51. package/dist/{components/atoms/card/card-content.d.ts → src/components/atoms/select/select-list.d.ts} +3 -1
  52. package/dist/{components/atoms/command/command-empty.atom.d.ts → src/components/atoms/select/select-seperator.d.ts} +1 -1
  53. package/dist/{components/atoms/combo-box/combo-box.atom.d.ts → src/components/atoms/select/select.atom.d.ts} +12 -6
  54. package/dist/src/components/atoms/select/select.stories.d.ts +6 -0
  55. package/dist/src/components/atoms/seperator/separator.atom.d.ts +14 -0
  56. package/dist/src/components/atoms/seperator/separator.defs.d.ts +10 -0
  57. package/dist/{components/atoms/dialog/dialog.stories.d.ts → src/components/atoms/seperator/separator.stories.d.ts} +3 -2
  58. package/dist/src/components/atoms/switch/switch.atom.d.ts +14 -0
  59. package/dist/src/components/atoms/switch/switch.stories.d.ts +5 -0
  60. package/dist/src/components/atoms/switch/switch.type.d.ts +4 -0
  61. package/dist/src/components/atoms/toggle/toggle.atom.d.ts +1 -1
  62. package/dist/{components/atoms/toggle/defs.d.ts → src/components/atoms/toggle/toggle.defs.d.ts} +5 -5
  63. package/dist/src/components/molecules/breadcrumb/breadcrumb.stories.d.ts +6 -0
  64. package/dist/src/components/molecules/index.d.ts +7 -7
  65. package/dist/src/components/molecules/tabs/tab-contents.d.ts +13 -0
  66. package/dist/src/components/molecules/tabs/tab-list.d.ts +15 -0
  67. package/dist/src/components/molecules/tabs/tab-trigger.d.ts +18 -0
  68. package/dist/src/components/molecules/tabs/tab.molecules.d.ts +15 -0
  69. package/dist/src/components/molecules/tabs/tab.stories.d.ts +15 -0
  70. package/dist/src/components/molecules/toggle-group/toggle-group-item.d.ts +1 -1
  71. package/dist/src/components/molecules/toggle-group/{defs.d.ts → toggle-group.defs.d.ts} +7 -7
  72. package/dist/src/components/molecules/toggle-group/toggle-group.molecules.d.ts +1 -1
  73. package/dist/src/index.d.ts +2 -2
  74. package/package.json +7 -11
  75. package/dist/assets/icons/arrows.icon.d.ts +0 -1
  76. package/dist/assets/icons/index.d.ts +0 -3
  77. package/dist/assets/icons/search.icon.d.ts +0 -1
  78. package/dist/assets/icons/tick.icon.d.ts +0 -1
  79. package/dist/components/atoms/alert/alert-description.d.ts +0 -6
  80. package/dist/components/atoms/alert/alert-title.d.ts +0 -6
  81. package/dist/components/atoms/alert/alert.atom.d.ts +0 -23
  82. package/dist/components/atoms/alert/alert.stories.d.ts +0 -6
  83. package/dist/components/atoms/alert/alert.styles.d.ts +0 -4
  84. package/dist/components/atoms/alert/alert.types.d.ts +0 -1
  85. package/dist/components/atoms/badge/badge.atom.d.ts +0 -17
  86. package/dist/components/atoms/badge/badge.stories.d.ts +0 -6
  87. package/dist/components/atoms/badge/badge.style.d.ts +0 -3
  88. package/dist/components/atoms/badge/badge.type.d.ts +0 -1
  89. package/dist/components/atoms/button/button.atom.d.ts +0 -23
  90. package/dist/components/atoms/button/button.style.d.ts +0 -4
  91. package/dist/components/atoms/button/button.type.d.ts +0 -3
  92. package/dist/components/atoms/card/card-description.d.ts +0 -6
  93. package/dist/components/atoms/card/card-title.d.ts +0 -6
  94. package/dist/components/atoms/card/card.atom.d.ts +0 -22
  95. package/dist/components/atoms/card/card.stories.d.ts +0 -6
  96. package/dist/components/atoms/checkbox/checkbox.stories.d.ts +0 -7
  97. package/dist/components/atoms/checkbox/checkbox.style.d.ts +0 -2
  98. package/dist/components/atoms/checkbox/checkbox.type.d.ts +0 -21
  99. package/dist/components/atoms/combo-box/combo-box.stories.d.ts +0 -6
  100. package/dist/components/atoms/command/command-input.atom.d.ts +0 -11
  101. package/dist/components/atoms/command/command-list.atom.d.ts +0 -7
  102. package/dist/components/atoms/command/command.atom.d.ts +0 -7
  103. package/dist/components/atoms/command/command.stories.d.ts +0 -5
  104. package/dist/components/atoms/dialog/dialog-close.d.ts +0 -13
  105. package/dist/components/atoms/dialog/dialog-content.d.ts +0 -9
  106. package/dist/components/atoms/dialog/dialog-footer.d.ts +0 -6
  107. package/dist/components/atoms/dialog/dialog-header.d.ts +0 -8
  108. package/dist/components/atoms/dialog/dialog-overly.d.ts +0 -6
  109. package/dist/components/atoms/dialog/dialog-trigger.d.ts +0 -9
  110. package/dist/components/atoms/dialog/dialog.atom.d.ts +0 -25
  111. package/dist/components/atoms/dropdownMenu/dropdownMenu.stories.d.ts +0 -7
  112. package/dist/components/atoms/dropdownMenu/dropdownMenu.style.d.ts +0 -2
  113. package/dist/components/atoms/index.d.ts +0 -19
  114. package/dist/components/atoms/input/input.atom.d.ts +0 -22
  115. package/dist/components/atoms/input/input.stories.d.ts +0 -6
  116. package/dist/components/atoms/input/input.styles.d.ts +0 -1
  117. package/dist/components/atoms/input/input.type.d.ts +0 -21
  118. package/dist/components/atoms/label/label.atom.d.ts +0 -17
  119. package/dist/components/atoms/label/label.stories.d.ts +0 -6
  120. package/dist/components/atoms/label/label.style.d.ts +0 -1
  121. package/dist/components/atoms/popover/popover-content.d.ts +0 -12
  122. package/dist/components/atoms/popover/popover-trigger.d.ts +0 -10
  123. package/dist/components/atoms/popover/popover.atom.d.ts +0 -19
  124. package/dist/components/atoms/popover/popover.stories.d.ts +0 -5
  125. package/dist/components/atoms/popover/popover.style.d.ts +0 -5
  126. package/dist/components/atoms/popover/popover.types.d.ts +0 -2
  127. package/dist/components/atoms/textarea/textarea.atom.d.ts +0 -17
  128. package/dist/components/atoms/textarea/textarea.stories.d.ts +0 -5
  129. package/dist/components/atoms/textarea/textarea.styles.d.ts +0 -1
  130. package/dist/components/atoms/textarea/textarea.type.d.ts +0 -11
  131. package/dist/components/atoms/toggle/toggle.atom.d.ts +0 -20
  132. package/dist/components/atoms/toggle/toggle.stories.d.ts +0 -6
  133. package/dist/components/atoms/toggle/toggle.style.d.ts +0 -4
  134. package/dist/components/index.d.ts +0 -2
  135. package/dist/components/molecules/breadCrumb/breadCrumb.stories.d.ts +0 -5
  136. package/dist/components/molecules/index.d.ts +0 -7
  137. package/dist/components/molecules/toggle-group/defs.d.ts +0 -37
  138. package/dist/components/molecules/toggle-group/toggle-group-item.d.ts +0 -18
  139. package/dist/components/molecules/toggle-group/toggle-group.molecules.d.ts +0 -19
  140. package/dist/components/molecules/toggle-group/toggle-group.stories.d.ts +0 -5
  141. package/dist/components/molecules/toggle-group/toggle-group.style.d.ts +0 -4
  142. package/dist/helpers/base-element.d.ts +0 -11
  143. package/dist/helpers/index.d.ts +0 -3
  144. package/dist/helpers/mouse-conroller.helper.d.ts +0 -15
  145. package/dist/helpers/style.helpers.d.ts +0 -3
  146. package/dist/index.d.ts +0 -3
  147. package/dist/interfaces/actionable.interface.d.ts +0 -6
  148. package/dist/interfaces/atomic.interface.d.ts +0 -6
  149. package/dist/interfaces/changeable.interface.d.ts +0 -8
  150. package/dist/interfaces/child-support-atomic.interface.d.ts +0 -5
  151. package/dist/interfaces/index.d.ts +0 -6
  152. package/dist/interfaces/intractable.interface.d.ts +0 -6
  153. package/dist/interfaces/variant.interface.d.ts +0 -3
  154. package/dist/lib/index.d.ts +0 -0
  155. package/dist/lib/next/next.lib.d.ts +0 -0
  156. package/dist/lib/react/react.lib.d.ts +0 -3
  157. package/dist/lib/tw-styles.d.ts +0 -1
  158. package/dist/src/components/atoms/combo-box/combo-box-input.d.ts +0 -9
  159. package/dist/src/components/atoms/combo-box/combo-box-list.d.ts +0 -10
  160. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.d.ts +0 -11
  161. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.d.ts +0 -13
  162. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.d.ts +0 -10
  163. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.d.ts +0 -6
  164. package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.d.ts +0 -31
  165. package/dist/src/components/atoms/toggle/defs.d.ts +0 -27
  166. package/dist/src/components/molecules/breadCrumb/Breadcrumb-link.d.ts +0 -8
  167. package/dist/src/components/molecules/breadCrumb/breadCrumb.stories.d.ts +0 -5
  168. package/dist/src/components/molecules/breadCrumb/breadcrumb-ellipsis.d.ts +0 -7
  169. package/dist/src/components/molecules/breadCrumb/breadcrumb-item.d.ts +0 -7
  170. package/dist/src/components/molecules/breadCrumb/breadcrumb-list.d.ts +0 -7
  171. package/dist/src/components/molecules/breadCrumb/breadcrumb-separator.d.ts +0 -7
  172. package/dist/src/components/molecules/breadCrumb/breadcrumb-text.d.ts +0 -7
  173. package/dist/src/components/molecules/breadCrumb/breadcrumb.molecules.d.ts +0 -7
  174. package/dist/src/components/molecules/breadCrumb/breadcrumb.styles.d.ts +0 -6
  175. package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.d.ts +0 -0
  176. package/dist/styles/index.d.ts +0 -1
  177. package/dist/styles/tw.styles.d.ts +0 -1
  178. package/dist/wc-ui-app.d.ts +0 -7
  179. /package/dist/{components/molecules/dropdownMenu/dropdownMenu.molecules.d.ts → src/components/atoms/accordion/accordion.styles.d.ts} +0 -0
  180. /package/dist/src/components/atoms/{combo-box → combobox}/combo-box.stories.d.ts +0 -0
  181. /package/dist/src/components/atoms/{dropdownMenu/dropdownMenu.style.d.ts → context-menu/contextMenu.style.d.ts} +0 -0
  182. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-checkbox-Item.d.ts +0 -0
  183. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-content.d.ts +0 -0
  184. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-group.d.ts +0 -0
  185. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-item.d.ts +0 -0
  186. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-radio-item.d.ts +0 -0
  187. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-seperator.d.ts +0 -0
  188. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-shortcut.d.ts +0 -0
  189. /package/dist/src/components/atoms/{dropdownMenu → dropdown-menu}/dropdownMenu.stories.d.ts +0 -0
  190. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-ellipsis.d.ts +0 -0
  191. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-item.d.ts +0 -0
  192. /package/dist/{components/molecules/breadCrumb/Breadcrumb-link.d.ts → src/components/molecules/breadcrumb/breadcrumb-link.d.ts} +0 -0
  193. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-list.d.ts +0 -0
  194. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-separator.d.ts +0 -0
  195. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-text.d.ts +0 -0
  196. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb.molecules.d.ts +0 -0
  197. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb.styles.d.ts +0 -0
@@ -1,4 +1,4 @@
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")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit-element"],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))})(this,function(a,l,d,gt,he,mt,ft){"use strict";function Le(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=Le(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function bt(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=Le(n))&&(o&&(o+=" "),o+=e);return o}const ge="-",vt=n=>{const e=yt(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:s=>{const c=s.split(ge);return c[0]===""&&c.length!==1&&c.shift(),Te(c,e)||wt(s)},getConflictingClassGroupIds:(s,c)=>{const b=r[s]||[];return c&&o[s]?[...b,...o[s]]:b}}},Te=(n,e)=>{var s;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?Te(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const i=n.join(ge);return(s=e.validators.find(({validator:c})=>c(i)))==null?void 0:s.classGroupId},Be=/^\[(.+)\]$/,wt=n=>{if(Be.test(n)){const e=Be.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},yt=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return $t(Object.entries(n.classGroups),r).forEach(([i,s])=>{me(s,o,i,e)}),o},me=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const i=t===""?e:Re(e,t);i.classGroupId=r;return}if(typeof t=="function"){if(xt(t)){me(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([i,s])=>{me(s,Re(e,i),r,o)})})},Re=(n,e)=>{let r=n;return e.split(ge).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},xt=n=>n.isThemeGetter,$t=(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(([s,c])=>[e+s,c])):i);return[r,t]}):n,_t=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(i,s)=>{r.set(i,s),e++,e>n&&(e=0,o=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=o.get(i))!==void 0)return t(i,s),s},set(i,s){r.has(i)?r.set(i,s):t(i,s)}}},Ne="!",Ct=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],i=e.length,s=c=>{const b=[];let g=0,m=0,x;for(let v=0;v<c.length;v++){let _=c[v];if(g===0){if(_===t&&(o||c.slice(v,v+i)===e)){b.push(c.slice(m,v)),m=v+i;continue}if(_==="/"){x=v;continue}}_==="["?g++:_==="]"&&g--}const $=b.length===0?c:c.substring(m),P=$.startsWith(Ne),k=P?$.substring(1):$,y=x&&x>m?x-m:void 0;return{modifiers:b,hasImportantModifier:P,baseClassName:k,maybePostfixModifierPosition:y}};return r?c=>r({className:c,parseClassName:s}):s},Ot=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},kt=n=>({cache:_t(n.cacheSize),parseClassName:Ct(n),...vt(n)}),Dt=/\s+/,Pt=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,i=[],s=n.trim().split(Dt);let c="";for(let b=s.length-1;b>=0;b-=1){const g=s[b],{modifiers:m,hasImportantModifier:x,baseClassName:$,maybePostfixModifierPosition:P}=r(g);let k=!!P,y=o(k?$.substring(0,P):$);if(!y){if(!k){c=g+(c.length>0?" "+c:c);continue}if(y=o($),!y){c=g+(c.length>0?" "+c:c);continue}k=!1}const v=Ot(m).join(":"),_=x?v+Ne:v,D=_+y;if(i.includes(D))continue;i.push(D);const oe=t(y,k);for(let j=0;j<oe.length;++j){const ce=oe[j];i.push(_+ce)}c=g+(c.length>0?" "+c:c)}return c};function Et(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=qe(e))&&(o&&(o+=" "),o+=r);return o}const qe=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=qe(n[o]))&&(r&&(r+=" "),r+=e);return r};function St(n,...e){let r,o,t,i=s;function s(b){const g=e.reduce((m,x)=>x(m),n());return r=kt(g),o=r.cache.get,t=r.cache.set,i=c,c(b)}function c(b){const g=o(b);if(g)return g;const m=Pt(b,r);return t(b,m),m}return function(){return i(Et.apply(null,arguments))}}const f=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Fe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Mt=/^\d+\/\d+$/,zt=new Set(["px","full","screen"]),At=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,It=/\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$/,Lt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Tt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=n=>G(n)||zt.has(n)||Mt.test(n),I=n=>V(n,"length",Ut),G=n=>!!n&&!Number.isNaN(Number(n)),fe=n=>V(n,"number",G),Z=n=>!!n&&Number.isInteger(Number(n)),Rt=n=>n.endsWith("%")&&G(n.slice(0,-1)),u=n=>Fe.test(n),L=n=>At.test(n),Nt=new Set(["length","size","percentage"]),qt=n=>V(n,Nt,je),Ft=n=>V(n,"position",je),jt=new Set(["image","url"]),Gt=n=>V(n,jt,Xt),Vt=n=>V(n,"",Ht),Q=()=>!0,V=(n,e,r)=>{const o=Fe.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},Ut=n=>It.test(n)&&!Lt.test(n),je=()=>!1,Ht=n=>Tt.test(n),Xt=n=>Bt.test(n),Yt=St(()=>{const n=f("colors"),e=f("spacing"),r=f("blur"),o=f("brightness"),t=f("borderColor"),i=f("borderRadius"),s=f("borderSpacing"),c=f("borderWidth"),b=f("contrast"),g=f("grayscale"),m=f("hueRotate"),x=f("invert"),$=f("gap"),P=f("gradientColorStops"),k=f("gradientColorStopPositions"),y=f("inset"),v=f("margin"),_=f("opacity"),D=f("padding"),oe=f("saturate"),j=f("scale"),ce=f("sepia"),at=f("skew"),lt=f("space"),dt=f("translate"),Me=()=>["auto","contain","none"],ze=()=>["auto","hidden","clip","visible","scroll"],Ae=()=>["auto",u,e],w=()=>[u,e],ct=()=>["",M,I],pe=()=>["auto",G,u],pt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ue=()=>["solid","dashed","dotted","double","none"],ut=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ie=()=>["start","end","center","between","around","evenly","stretch"],ne=()=>["","0",u],ht=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[G,u];return{cacheSize:500,separator:":",theme:{colors:[Q],spacing:[M,I],blur:["none","",L,u],brightness:A(),borderColor:[n],borderRadius:["none","","full",L,u],borderSpacing:w(),borderWidth:ct(),contrast:A(),grayscale:ne(),hueRotate:A(),invert:ne(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[Rt,I],inset:Ae(),margin:Ae(),opacity:A(),padding:w(),saturate:A(),scale:A(),sepia:ne(),skew:A(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":ht()}],"break-before":[{"break-before":ht()}],"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:[...pt(),u]}],overflow:[{overflow:ze()}],"overflow-x":[{"overflow-x":ze()}],"overflow-y":[{"overflow-y":ze()}],overscroll:[{overscroll:Me()}],"overscroll-x":[{"overscroll-x":Me()}],"overscroll-y":[{"overscroll-y":Me()}],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",Z,u]}],basis:[{basis:Ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:ne()}],shrink:[{shrink:ne()}],order:[{order:["first","last","none",Z,u]}],"grid-cols":[{"grid-cols":[Q]}],"col-start-end":[{col:["auto",{span:["full",Z,u]},u]}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":[Q]}],"row-start-end":[{row:["auto",{span:[Z,u]},u]}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[$]}],"gap-x":[{"gap-x":[$]}],"gap-y":[{"gap-y":[$]}],"justify-content":[{justify:["normal",...Ie()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ie(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ie(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],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":[lt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[lt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,e]}],"min-w":[{"min-w":[u,e,"min","max","fit"]}],"max-w":[{"max-w":[u,e,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[u,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,e,"auto","min","max","fit"]}],"font-size":[{text:["base",L,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fe]}],"font-family":[{font:[Q]}],"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",u]}],"line-clamp":[{"line-clamp":["none",G,fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",M,I]}],"underline-offset":[{"underline-offset":["auto",M,u]}],"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",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...pt(),Ft]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gt]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"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:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...ue(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:ue()}],"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:["",...ue()]}],"outline-offset":[{"outline-offset":[M,u]}],"outline-w":[{outline:[M,I]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:ct()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[M,I]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",L,Vt]}],"shadow-color":[{shadow:[Q]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...ut(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ut()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",L,u]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[x]}],saturate:[{saturate:[oe]}],sepia:[{sepia:[ce]}],"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":[_]}],"backdrop-saturate":[{"backdrop-saturate":[oe]}],"backdrop-sepia":[{"backdrop-sepia":[ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[Z,u]}],"translate-x":[{"translate-x":[dt]}],"translate-y":[{"translate-y":[dt]}],"skew-x":[{"skew-x":[at]}],"skew-y":[{"skew-y":[at]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],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",u]}],"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",u]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[M,I,fe]}],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 h(...n){return Yt(bt(n))}class C 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,s;let t="";e.some(c=>this.isCustomPropertySet(c))&&(t=o),t&&((s=(i=this.shadowRoot)==null?void 0:i.querySelector(r))==null||s.classList.add(t))}}function Ge(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=Ge(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function Wt(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=Ge(n))&&(o&&(o+=" "),o+=e);return o}const Ve=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,Ue=Wt,U=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return Ue(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:i}=e,s=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 $=Ve(m)||Ve(x);return t[g][$]}),c=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(k=>{let[y,v]=k;return Array.isArray(v)?v.includes({...i,...c}[y]):{...i,...c}[y]===v})?[...g,x,$]:g},[]);return Ue(n,s,b,r==null?void 0:r.class,r==null?void 0:r.className)},Kt=U("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"}}),p=l.css` @font-face {
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 {
2
2
  font-family: 'GeistSans';
3
3
 
4
4
  src: url('assets/fonts/Geist/Geist-Regular.woff2') format('woff2');
@@ -819,6 +819,10 @@ body {
819
819
  display: block;
820
820
  }
821
821
 
822
+ .inline {
823
+ display: inline;
824
+ }
825
+
822
826
  .flex {
823
827
  display: flex;
824
828
  }
@@ -843,6 +847,10 @@ body {
843
847
  display: none;
844
848
  }
845
849
 
850
+ .aspect-square {
851
+ aspect-ratio: 1 / 1;
852
+ }
853
+
846
854
  .size-24 {
847
855
  width: 6rem;
848
856
  height: 6rem;
@@ -885,6 +893,10 @@ body {
885
893
  height: 0.75rem;
886
894
  }
887
895
 
896
+ .h-3\\.5 {
897
+ height: 0.875rem;
898
+ }
899
+
888
900
  .h-4 {
889
901
  height: 1rem;
890
902
  }
@@ -905,6 +917,10 @@ body {
905
917
  height: 2.25rem;
906
918
  }
907
919
 
920
+ .h-\\[1px\\] {
921
+ height: 1px;
922
+ }
923
+
908
924
  .h-\\[400px\\] {
909
925
  height: 400px;
910
926
  }
@@ -925,6 +941,10 @@ body {
925
941
  max-height: 300px;
926
942
  }
927
943
 
944
+ .min-h-\\[80px\\] {
945
+ min-height: 80px;
946
+ }
947
+
928
948
  .w-1 {
929
949
  width: 0.25rem;
930
950
  }
@@ -941,6 +961,10 @@ body {
941
961
  width: 0.75rem;
942
962
  }
943
963
 
964
+ .w-3\\.5 {
965
+ width: 0.875rem;
966
+ }
967
+
944
968
  .w-32 {
945
969
  width: 8rem;
946
970
  }
@@ -969,6 +993,14 @@ body {
969
993
  width: 2.25rem;
970
994
  }
971
995
 
996
+ .w-\\[1px\\] {
997
+ width: 1px;
998
+ }
999
+
1000
+ .w-\\[400px\\] {
1001
+ width: 400px;
1002
+ }
1003
+
972
1004
  .w-auto {
973
1005
  width: auto;
974
1006
  }
@@ -995,6 +1027,10 @@ body {
995
1027
  min-width: 20rem;
996
1028
  }
997
1029
 
1030
+ .min-w-\\[8rem\\] {
1031
+ min-width: 8rem;
1032
+ }
1033
+
998
1034
  .max-w-lg {
999
1035
  max-width: 32rem;
1000
1036
  }
@@ -1007,6 +1043,10 @@ body {
1007
1043
  max-width: 24rem;
1008
1044
  }
1009
1045
 
1046
+ .flex-1 {
1047
+ flex: 1 1 0%;
1048
+ }
1049
+
1010
1050
  .flex-auto {
1011
1051
  flex: 1 1 auto;
1012
1052
  }
@@ -1117,6 +1157,10 @@ body {
1117
1157
  resize: both;
1118
1158
  }
1119
1159
 
1160
+ .grid-cols-2 {
1161
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1162
+ }
1163
+
1120
1164
  .grid-cols-3 {
1121
1165
  grid-template-columns: repeat(3, minmax(0, 1fr));
1122
1166
  }
@@ -1153,6 +1197,10 @@ body {
1153
1197
  align-items: stretch;
1154
1198
  }
1155
1199
 
1200
+ .justify-start {
1201
+ justify-content: flex-start;
1202
+ }
1203
+
1156
1204
  .justify-end {
1157
1205
  justify-content: flex-end;
1158
1206
  }
@@ -1406,6 +1454,10 @@ body {
1406
1454
  background-color: var(--green-100);
1407
1455
  }
1408
1456
 
1457
+ .bg-muted {
1458
+ background-color: hsl(var(--muted));
1459
+ }
1460
+
1409
1461
  .bg-popover {
1410
1462
  background-color: hsl(var(--popover));
1411
1463
  }
@@ -1450,14 +1502,30 @@ body {
1450
1502
  background-color: var(--yellow-100);
1451
1503
  }
1452
1504
 
1505
+ .fill-current {
1506
+ fill: currentColor;
1507
+ }
1508
+
1509
+ .fill-primary {
1510
+ fill: hsl(var(--primary));
1511
+ }
1512
+
1453
1513
  .p-1 {
1454
1514
  padding: 0.25rem;
1455
1515
  }
1456
1516
 
1517
+ .p-3 {
1518
+ padding: 0.75rem;
1519
+ }
1520
+
1457
1521
  .p-4 {
1458
1522
  padding: 1rem;
1459
1523
  }
1460
1524
 
1525
+ .p-5 {
1526
+ padding: 1.25rem;
1527
+ }
1528
+
1461
1529
  .p-6 {
1462
1530
  padding: 1.5rem;
1463
1531
  }
@@ -1487,6 +1555,11 @@ body {
1487
1555
  padding-right: 1.25rem;
1488
1556
  }
1489
1557
 
1558
+ .px-6 {
1559
+ padding-left: 1.5rem;
1560
+ padding-right: 1.5rem;
1561
+ }
1562
+
1490
1563
  .px-8 {
1491
1564
  padding-left: 2rem;
1492
1565
  padding-right: 2rem;
@@ -1532,6 +1605,10 @@ body {
1532
1605
  padding-bottom: 1.5rem;
1533
1606
  }
1534
1607
 
1608
+ .pb-4 {
1609
+ padding-bottom: 1rem;
1610
+ }
1611
+
1535
1612
  .pe-9 {
1536
1613
  padding-inline-end: 2.25rem;
1537
1614
  }
@@ -1698,6 +1775,11 @@ body {
1698
1775
  color: hsl(var(--foreground));
1699
1776
  }
1700
1777
 
1778
+ .text-gray-400 {
1779
+ --tw-text-opacity: 1;
1780
+ color: rgb(156 163 175 / var(--tw-text-opacity));
1781
+ }
1782
+
1701
1783
  .text-gray-500 {
1702
1784
  --tw-text-opacity: 1;
1703
1785
  color: rgb(107 114 128 / var(--tw-text-opacity));
@@ -1760,6 +1842,10 @@ body {
1760
1842
  opacity: 1;
1761
1843
  }
1762
1844
 
1845
+ .opacity-40 {
1846
+ opacity: 0.4;
1847
+ }
1848
+
1763
1849
  .opacity-50 {
1764
1850
  opacity: 0.5;
1765
1851
  }
@@ -1801,10 +1887,21 @@ body {
1801
1887
  outline-style: solid;
1802
1888
  }
1803
1889
 
1890
+ .ring-0 {
1891
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1892
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1893
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1894
+ }
1895
+
1804
1896
  .ring-offset-background {
1805
1897
  --tw-ring-offset-color: hsl(var(--background));
1806
1898
  }
1807
1899
 
1900
+ .blur {
1901
+ --tw-blur: blur(8px);
1902
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1903
+ }
1904
+
1808
1905
  .filter {
1809
1906
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1810
1907
  }
@@ -1817,6 +1914,12 @@ body {
1817
1914
  transition-duration: 150ms;
1818
1915
  }
1819
1916
 
1917
+ .transition-all {
1918
+ transition-property: all;
1919
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1920
+ transition-duration: 150ms;
1921
+ }
1922
+
1820
1923
  .transition-colors {
1821
1924
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
1822
1925
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -1954,11 +2057,19 @@ body {
1954
2057
  opacity: 1;
1955
2058
  }
1956
2059
 
2060
+ .focus\\:bg-accent:focus {
2061
+ background-color: hsl(var(--accent));
2062
+ }
2063
+
1957
2064
  .focus\\:bg-gray-100:focus {
1958
2065
  --tw-bg-opacity: 1;
1959
2066
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
1960
2067
  }
1961
2068
 
2069
+ .focus\\:text-accent-foreground:focus {
2070
+ color: hsl(var(--accent-foreground));
2071
+ }
2072
+
1962
2073
  .focus\\:outline-none:focus {
1963
2074
  outline: 2px solid transparent;
1964
2075
  outline-offset: 2px;
@@ -2003,6 +2114,10 @@ body {
2003
2114
  --tw-ring-offset-width: 2px;
2004
2115
  }
2005
2116
 
2117
+ .focus-visible\\:ring-offset-background:focus-visible {
2118
+ --tw-ring-offset-color: hsl(var(--background));
2119
+ }
2120
+
2006
2121
  .disabled\\:pointer-events-none:disabled {
2007
2122
  pointer-events: none;
2008
2123
  }
@@ -2035,6 +2150,38 @@ body {
2035
2150
  pointer-events: none;
2036
2151
  }
2037
2152
 
2153
+ @keyframes accordion-up {
2154
+ from {
2155
+ height: var(--radix-accordion-content-height);
2156
+ }
2157
+
2158
+ to {
2159
+ height: 0;
2160
+ }
2161
+ }
2162
+
2163
+ .data-\\[state\\=closed\\]\\:animate-accordion-up[data-state="closed"] {
2164
+ animation: accordion-up 0.2s ease-out;
2165
+ }
2166
+
2167
+ @keyframes accordion-down {
2168
+ from {
2169
+ height: 0;
2170
+ }
2171
+
2172
+ to {
2173
+ height: var(--radix-accordion-content-height);
2174
+ }
2175
+ }
2176
+
2177
+ .data-\\[state\\=open\\]\\:animate-accordion-down[data-state="open"] {
2178
+ animation: accordion-down 0.2s ease-out;
2179
+ }
2180
+
2181
+ .data-\\[state\\=active\\]\\:bg-background[data-state="active"] {
2182
+ background-color: hsl(var(--background));
2183
+ }
2184
+
2038
2185
  .data-\\[state\\=checked\\]\\:bg-primary[data-state="checked"] {
2039
2186
  background-color: hsl(var(--primary));
2040
2187
  }
@@ -2047,6 +2194,10 @@ body {
2047
2194
  background-color: hsl(var(--accent));
2048
2195
  }
2049
2196
 
2197
+ .data-\\[state\\=active\\]\\:text-foreground[data-state="active"] {
2198
+ color: hsl(var(--foreground));
2199
+ }
2200
+
2050
2201
  .data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"] {
2051
2202
  color: hsl(var(--primary-foreground));
2052
2203
  }
@@ -2063,6 +2214,12 @@ body {
2063
2214
  opacity: 0.5;
2064
2215
  }
2065
2216
 
2217
+ .data-\\[state\\=active\\]\\:shadow-sm[data-state="active"] {
2218
+ --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
2219
+ --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
2220
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2221
+ }
2222
+
2066
2223
  .data-\\[state\\=open\\]\\:animate-in[data-state="open"] {
2067
2224
  animation-name: enter;
2068
2225
  animation-duration: 150ms;
@@ -2099,6 +2256,22 @@ body {
2099
2256
  --tw-enter-scale: .95;
2100
2257
  }
2101
2258
 
2259
+ .data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side="bottom"] {
2260
+ --tw-enter-translate-y: -0.5rem;
2261
+ }
2262
+
2263
+ .data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side="left"] {
2264
+ --tw-enter-translate-x: 0.5rem;
2265
+ }
2266
+
2267
+ .data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side="right"] {
2268
+ --tw-enter-translate-x: -0.5rem;
2269
+ }
2270
+
2271
+ .data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side="top"] {
2272
+ --tw-enter-translate-y: 0.5rem;
2273
+ }
2274
+
2102
2275
  .data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state="closed"] {
2103
2276
  --tw-exit-translate-x: -50%;
2104
2277
  }
@@ -2151,11 +2324,6 @@ body {
2151
2324
  }
2152
2325
 
2153
2326
  @media (min-width: 640px) {
2154
- .sm\\:w-min {
2155
- width: -moz-min-content;
2156
- width: min-content;
2157
- }
2158
-
2159
2327
  .sm\\:max-w-\\[425px\\] {
2160
2328
  max-width: 425px;
2161
2329
  }
@@ -2220,6 +2388,11 @@ body {
2220
2388
  height: 0.875rem;
2221
2389
  }
2222
2390
 
2391
+ .\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg {
2392
+ --tw-rotate: 180deg;
2393
+ 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));
2394
+ }
2395
+
2223
2396
  .\\[\\&_\\[rtgcmd-group-heading\\]\\]\\:px-2 [rtgcmd-group-heading] {
2224
2397
  padding-left: 0.5rem;
2225
2398
  padding-right: 0.5rem;
@@ -2242,17 +2415,31 @@ body {
2242
2415
  .\\[\\&_\\[rtgcmd-group-heading\\]\\]\\:text-muted-foreground [rtgcmd-group-heading] {
2243
2416
  color: hsl(var(--muted-foreground));
2244
2417
  }
2245
- `;class He extends mt.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return gt.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)}}he.directive(He);class Xe extends He{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)}}}he.directive(Xe);class Jt extends Xe{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 s=t.slice(1);switch(t[0]){case"@":this.eventData[s]=i,this.applyEvent(s,i);break;case".":o[s]=i;break;case"?":i?o.setAttribute(s,""):o.removeAttribute(s);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 O=he.directive(Jt);var Zt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,H=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qt(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Zt(e,r,t),t};a.Button=class extends C{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default"}handleClick(e){this.disabled||this.click()}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid"]}render(){const e=this.getFilteredAttributes();return l.html`
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`
2246
2419
  <button
2420
+ part="button"
2247
2421
  type="${this.type}"
2248
2422
  ?disabled="${this.disabled}"
2249
- class="${h(a.Button.buttonVariants({variant:this.variant,size:this.size,className:this.className}))}"
2423
+ class="${p(s.Button.buttonVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.externalClass} ${this.isCustomClass?"rtg-button-custom-class":""}"
2250
2424
  @click="${this.handleClick}"
2251
- ${O(e)}
2425
+ ${C(e)}
2252
2426
  >
2253
2427
  <slot></slot>
2254
2428
  </button>
2255
- `}},a.Button.buttonVariants=Kt,a.Button.styles=[l.css``,p],H([d.property({type:Function})],a.Button.prototype,"click",2),H([d.property({type:Boolean})],a.Button.prototype,"disabled",2),H([d.property({type:String})],a.Button.prototype,"type",2),H([d.property({type:String})],a.Button.prototype,"variant",2),H([d.property({type:String})],a.Button.prototype,"size",2),a.Button=H([d.customElement("rtg-button")],a.Button);const er="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",tr="flex items-center justify-center text-current pointer-events-none";var rr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,X=(n,e,r,o)=>{for(var t=o>1?void 0:o?or(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&rr(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`
2429
+ `}},s.Button.buttonVariants=Er,s.Button.styles=[l.css`
2430
+ :host {
2431
+ --rtg-button-bg: unset;
2432
+ --rtg-button-color: unset;
2433
+ --rtg-button-radius: unset;
2434
+ --rtg-button-height: unset;
2435
+ }
2436
+ .rtg-button-custom-class {
2437
+ background-color: var(--rtg-button-bg, unset) !important;
2438
+ color: var(--rtg-button-color, unset) !important;
2439
+ border-radius: var(--rtg-button-radius, unset) !important;
2440
+ height: var(--rtg-button-height, unset) !important;
2441
+ }
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`
2256
2443
  <button
2257
2444
  data-testid="checkbox-atom"
2258
2445
  type="button"
@@ -2263,10 +2450,10 @@ body {
2263
2450
  ?required=${this.required}
2264
2451
  ?disabled=${this.disabled}
2265
2452
  @click="${this._onClick}"
2266
- class="${h(er,this.className)}"
2453
+ class="${p(Lr,this.className)}"
2267
2454
  ${Object.entries(e).map(([r,o])=>l.html` ${r}="${o}" `)}
2268
2455
  >
2269
- ${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${tr}"
2456
+ ${this.checked||this.value==="on"?l.html`<span data-state="checked" class="${Ar}"
2270
2457
  ><svg
2271
2458
  xmlns="http://www.w3.org/2000/svg"
2272
2459
  width="24"
@@ -2282,9 +2469,9 @@ body {
2282
2469
  <polyline points="20 6 9 17 4 12"></polyline></svg
2283
2470
  ></span>`:l.nothing}
2284
2471
  </button>
2285
- `}},a.Checkbox.styles=[l.css``,p],X([d.property({type:Boolean})],a.Checkbox.prototype,"disabled",2),X([d.property({type:Boolean})],a.Checkbox.prototype,"checked",2),X([d.property({type:String})],a.Checkbox.prototype,"type",2),X([d.property({type:String})],a.Checkbox.prototype,"value",2),X([d.property({type:Boolean})],a.Checkbox.prototype,"required",2),a.Checkbox=X([d.customElement("rtg-checkbox")],a.Checkbox);var nr=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,Ye=(n,e,r,o)=>{for(var t=o>1?void 0:o?ir(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&nr(e,r,t),t};const sr="open",We="closed";a.DialogContent=class extends l.LitElement{constructor(){super(...arguments),this.state=We,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=We)}}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===sr?l.html`
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`
2286
2473
  <div
2287
- class="${h("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)}"
2474
+ 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)}"
2288
2475
  rtgdlg-content
2289
2476
  >
2290
2477
  <slot></slot>
@@ -2310,69 +2497,60 @@ body {
2310
2497
  ><span class="sr-only">Close</span>
2311
2498
  </button>
2312
2499
  </div>
2313
- `:l.nothing}`}},a.DialogContent.styles=[l.css``,p],Ye([d.property({attribute:"data-state",type:String})],a.DialogContent.prototype,"state",2),a.DialogContent=Ye([d.customElement("rtg-dialog-content")],a.DialogContent);var ar=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,dr=(n,e,r,o)=>{for(var t=o>1?void 0:o?lr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&ar(e,r,t),t};const cr="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 s=this._dialog;s&&(s.dataset.state=cr)})}render(){return l.html`
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`
2314
2501
  <div>
2315
2502
  <slot></slot>
2316
2503
  </div>
2317
- `}},a.DialogClose.styles=[l.css``,p],a.DialogClose=dr([d.customElement("rtg-dialog-close")],a.DialogClose);var pr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,hr=(n,e,r,o)=>{for(var t=o>1?void 0:o?ur(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&pr(e,r,t),t};a.DialogFooter=class extends l.LitElement{render(){return l.html`
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`
2318
2505
  <div
2319
- class="${h("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",this.className)}"
2506
+ class="${p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",this.className)}"
2320
2507
  >
2321
2508
  <slot></slot>
2322
2509
  </div>
2323
- `}},a.DialogFooter.styles=[l.css``,p],a.DialogFooter=hr([d.customElement("rtg-dialog-footer")],a.DialogFooter);var gr=Object.defineProperty,mr=Object.getOwnPropertyDescriptor,be=(n,e,r,o)=>{for(var t=o>1?void 0:o?mr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&gr(e,r,t),t};a.DialogHeader=class extends l.LitElement{constructor(){super(...arguments),this._title="",this.description=""}render(){return l.html`
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`
2324
2511
  <div
2325
- class="${h("flex flex-col space-y-1.5 text-center sm:text-left",this.className)}"
2512
+ class="${p("flex flex-col space-y-1.5 text-center sm:text-left",this.className)}"
2326
2513
  >
2327
2514
  <h2
2328
- class="${h("text-lg font-semibold leading-none tracking-tight",this.className)}"
2515
+ class="${p("text-lg font-semibold leading-none tracking-tight",this.className)}"
2329
2516
  >
2330
2517
  ${this._title}
2331
2518
  </h2>
2332
- <p class="${h("text-sm text-muted-foreground",this.className)}">
2519
+ <p class="${p("text-sm text-muted-foreground",this.className)}">
2333
2520
  ${this.description}
2334
2521
  </p>
2335
2522
  </div>
2336
- `}},a.DialogHeader.styles=[l.css``,p],be([d.property({attribute:"title",type:String})],a.DialogHeader.prototype,"_title",2),be([d.property({type:String})],a.DialogHeader.prototype,"description",2),a.DialogHeader=be([d.customElement("rtg-dialog-header")],a.DialogHeader);var fr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,vr=(n,e,r,o)=>{for(var t=o>1?void 0:o?br(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&fr(e,r,t),t};a.DialogOverlay=class extends l.LitElement{render(){return l.html`
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`
2337
2524
  <div
2338
- class="${h("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)}"
2525
+ 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)}"
2339
2526
  ></div>
2340
- `}},a.DialogOverlay.styles=[l.css``,p],a.DialogOverlay=vr([d.customElement("rtg-dialog-overlay")],a.DialogOverlay);var wr=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,Ke=(n,e,r,o)=>{for(var t=o>1?void 0:o?yr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&wr(e,r,t),t};const xr="open",$r="closed";a.Dialog=class extends l.LitElement{constructor(){super(...arguments),this.state=$r}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`
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`
2341
2528
  <div rtgdlg-root>
2342
- ${this.state===xr?l.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:l.nothing}
2529
+ ${this.state===eo?l.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:l.nothing}
2343
2530
  <slot></slot>
2344
2531
  </div>
2345
- `}},a.Dialog.styles=[l.css``,p],Ke([d.property({attribute:"data-state",type:String})],a.Dialog.prototype,"state",2),a.Dialog=Ke([d.customElement("rtg-dialog")],a.Dialog);const _r="flex h-8 w-full rounded-sm 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 Cr=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,Y=(n,e,r,o)=>{for(var t=o>1?void 0:o?Or(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Cr(e,r,t),t};a.Input=class extends C{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`
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`
2346
2533
  <input
2534
+ part="input"
2347
2535
  type="${this.type}"
2348
2536
  placeholder="${this.placeholder}"
2349
2537
  ?disabled=${this.disabled}
2350
- class="${h(_r,this.className)}"
2538
+ class="${p(ro,this.className)}"
2351
2539
  .value=${this.type!=="file"?this.value:""}
2352
2540
  @change="${this.handleInputChange}"
2353
- ${O(e)}
2541
+ ${C(e)}
2354
2542
  />
2355
- `}},a.Input.styles=[l.css`
2356
- :root {
2357
- --input-border-radius: inherit;
2358
- --input-padding: inherit;
2359
- }
2360
- .input-base {
2361
- border-radius: var(--input-border-radius) !important;
2362
- padding-top: var(--input-padding) !important;
2363
- padding-bottom: var(--input-padding) !important;
2364
- }
2365
- `,p],Y([d.property({type:Boolean})],a.Input.prototype,"disabled",2),Y([d.property({type:String})],a.Input.prototype,"type",2),Y([d.property({type:String})],a.Input.prototype,"placeholder",2),Y([d.property({type:String})],a.Input.prototype,"defaultValue",2),Y([d.property({type:String})],a.Input.prototype,"value",2),a.Input=Y([d.customElement("rtg-input")],a.Input);const kr=U("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");var Dr=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Je=(n,e,r,o)=>{for(var t=o>1?void 0:o?Pr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Dr(e,r,t),t};let W=class extends C{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`
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`
2366
2544
  <label
2367
2545
  for="${this.for}"
2368
2546
  @click="${this._onClick}"
2369
2547
  @keydown="${this._onClick}"
2370
- class="${h(W.labelVariants({className:this.className}))}"
2371
- ${O(n)}
2548
+ class="${p(te.labelVariants({className:this.className}))}"
2549
+ ${C(n)}
2372
2550
  >
2373
2551
  <slot></slot>
2374
2552
  </label>
2375
- `}};W.labelVariants=kr,W.styles=[l.css`
2553
+ `}};te.labelVariants=io,te.styles=[l.css`
2376
2554
  :root {
2377
2555
  --label-text-color: inherit;
2378
2556
  --label-padding: inherit;
@@ -2381,24 +2559,24 @@ body {
2381
2559
  color: var(--label-text-color) !important;
2382
2560
  padding: var(--label-padding) !important;
2383
2561
  }
2384
- `,p],Je([d.property({type:String})],W.prototype,"for",2),W=Je([d.customElement("rtg-label")],W);var Er=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,Ze=(n,e,r,o)=>{for(var t=o>1?void 0:o?Sr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Er(e,r,t),t};let ie=class extends l.LitElement{render(){return l.html`
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`
2385
2563
  <div
2386
- class="${h("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md",this.className)}"
2564
+ class="${p("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md",this.className)}"
2387
2565
  id="rtgcmdr1"
2388
2566
  rtgcmd-root
2389
2567
  >
2390
2568
  <slot></slot>
2391
2569
  </div>
2392
- `}};ie.styles=[l.css``,p],Ze([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],ie.prototype,"_input",2),ie=Ze([d.customElement("rtg-command")],ie);var Mr=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?zr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Mr(e,r,t),t};let T=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${T._counter++}`:this._id=`rtgcmdrxlxe${T._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
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`
2393
2571
  <div
2394
- class="${h("py-6 text-center text-sm",this.className)}"
2572
+ class="${p("py-6 text-center text-sm",this.className)}"
2395
2573
  rtgcmd-empty
2396
2574
  role="presentation"
2397
2575
  id="${this.identifier}"
2398
2576
  >
2399
2577
  <slot></slot>
2400
2578
  </div>
2401
- `}`}};T._counter=0,T.styles=[l.css``,p],ve([d.property({type:String})],T.prototype,"_id",2),ve([d.property({attribute:"aria-hidden",type:String})],T.prototype,"_hidden",2),T=ve([d.customElement("rtg-command-empty")],T);var Ar=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor,se=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ir(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Ar(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`
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`
2402
2580
  <div
2403
2581
  class="${n}"
2404
2582
  rtgcmd-group
@@ -2420,9 +2598,9 @@ body {
2420
2598
  <slot></slot>
2421
2599
  </div>
2422
2600
  </div>
2423
- `}`}};z._counter=0,z.styles=[l.css``,p],se([d.property({type:String})],z.prototype,"heading",2),se([d.property({attribute:"id",type:String})],z.prototype,"_id",2),se([d.property({attribute:"aria-hidden",type:String})],z.prototype,"_hidden",2),z=se([d.customElement("rtg-command-group")],z);var Lr=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,we=(n,e,r,o)=>{for(var t=o>1?void 0:o?Tr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Lr(e,r,t),t};let ee=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 s=t.querySelectorAll("rtg-command-item");s&&s.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 c=t.previousElementSibling;c&&c.setAttribute("aria-hidden",i||((b=c.previousElementSibling)==null?void 0:b.getAttribute("aria-hidden"))==="true"?"true":"false"),c=t.nextElementSibling,c&&c.setAttribute("aria-hidden",i||((g=c.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`
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`
2424
2602
  <div
2425
- class="${h("flex items-center border-b px-3",this.className)}"
2603
+ class="${p("flex items-center border-b px-3",this.className)}"
2426
2604
  name="rtgcmd-input-container"
2427
2605
  >
2428
2606
  <svg
@@ -2458,12 +2636,13 @@ body {
2458
2636
  data-value="${this._value}"
2459
2637
  />
2460
2638
  </div>
2461
- `}};ee.styles=[l.css``,p],we([d.property({type:String})],ee.prototype,"placeholder",2),we([d.property({attribute:"value",type:String})],ee.prototype,"_value",2),ee=we([d.customElement("rtg-command-input")],ee);var Br=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,te=(n,e,r,o)=>{for(var t=o>1?void 0:o?Rr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Br(e,r,t),t};let E=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}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${E._counter++}`:this._id=`rtgcmdrxgxli${E._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`
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`
2462
2640
  <div
2463
- class="${h("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)}"
2641
+ 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)}"
2464
2642
  @mouseover="${this.handleMouseEvent}"
2465
2643
  @mouseleave="${this.handleMouseEvent}"
2466
2644
  @focus="${this.handleMouseEvent}"
2645
+ @click="${this.onSelect}"
2467
2646
  rtgcmd-item
2468
2647
  role="option"
2469
2648
  aria-selected="${this.selected}"
@@ -2474,9 +2653,9 @@ body {
2474
2653
  >
2475
2654
  <slot></slot>
2476
2655
  </div>
2477
- `}`}};E._counter=0,E.styles=[l.css``,p],te([d.property({type:String})],E.prototype,"_id",2),te([d.property({attribute:"aria-hidden",type:String})],E.prototype,"_hidden",2),te([d.property({attribute:"data-value",type:String})],E.prototype,"value",1),te([d.property({type:Boolean})],E.prototype,"selected",2),E=te([d.customElement("rtg-command-item")],E);var Nr=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,Fr=(n,e,r,o)=>{for(var t=o>1?void 0:o?qr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Nr(e,r,t),t};let ye=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`
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`
2478
2657
  <div
2479
- class="${h("max-h-[300px] overflow-y-auto overflow-x-hidden",this.className)}"
2658
+ class="${p("max-h-[300px] overflow-y-auto overflow-x-hidden",this.className)}"
2480
2659
  role="listbox"
2481
2660
  id="${this.identifier}"
2482
2661
  style="--rtgcmd-list-height: 265.0px;"
@@ -2486,37 +2665,28 @@ body {
2486
2665
  <slot></slot>
2487
2666
  </div>
2488
2667
  </div>
2489
- `}};ye.styles=[l.css``,p],ye=Fr([d.customElement("rtg-command-list")],ye);var jr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,xe=(n,e,r,o)=>{for(var t=o>1?void 0:o?Gr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&jr(e,r,t),t};let B=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${B._counter++}`:this._id=`rtgcmdrxlxs${B._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
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`
2490
2669
  <div
2491
- class="${h("-mx-1 h-px bg-border",this.className)}"
2670
+ class="${p("-mx-1 h-px bg-border",this.className)}"
2492
2671
  rtgcmd-separator
2493
2672
  role="separator"
2494
2673
  id="${this.identifier}"
2495
2674
  ></div>
2496
- `}`}};B._counter=0,B.styles=[l.css``,p],xe([d.property({type:String})],B.prototype,"_id",2),xe([d.property({attribute:"aria-hidden",type:String})],B.prototype,"_hidden",2),B=xe([d.customElement("rtg-command-separator")],B);var Vr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Hr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ur(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Vr(e,r,t),t};a.CardTitle=class extends l.LitElement{render(){return l.html`
2497
- <slot></slot>
2498
- `}},a.CardTitle.styles=[l.css``,p],a.CardTitle=Hr([d.customElement("rtg-card-title")],a.CardTitle);var Xr=Object.defineProperty,Yr=Object.getOwnPropertyDescriptor,Wr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Yr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Xr(e,r,t),t};a.CardHeader=class extends l.LitElement{render(){return l.html`
2499
- <slot></slot>
2500
- `}},a.CardHeader.styles=[l.css``,p],a.CardHeader=Wr([d.customElement("rtg-card-header")],a.CardHeader);var Kr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Zr=(n,e,r,o)=>{for(var t=o>1?void 0:o?Jr(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Kr(e,r,t),t};a.CardFooter=class extends l.LitElement{render(){return l.html`
2501
- <slot></slot>
2502
- `}},a.CardFooter.styles=[l.css``,p],a.CardFooter=Zr([d.customElement("rtg-card-footer")],a.CardFooter);var Qr=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,to=(n,e,r,o)=>{for(var t=o>1?void 0:o?eo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Qr(e,r,t),t};a.CardDescription=class extends l.LitElement{render(){return l.html`
2503
- <slot></slot>
2504
- `}},a.CardDescription.styles=[l.css``,p],a.CardDescription=to([d.customElement("rtg-card-description")],a.CardDescription);var ro=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,no=(n,e,r,o)=>{for(var t=o>1?void 0:o?oo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&ro(e,r,t),t};a.CardContent=class extends l.LitElement{render(){return l.html`
2505
- <slot></slot>
2506
- `}},a.CardContent.styles=[l.css``,p],a.CardContent=no([d.customElement("rtg-card-content")],a.CardContent);var io=Object.defineProperty,so=Object.getOwnPropertyDescriptor,ao=(n,e,r,o)=>{for(var t=o>1?void 0:o?so(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&io(e,r,t),t};a.Card=class extends l.LitElement{render(){return l.html`<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
2676
+ part="card"
2507
2677
  class="rounded-lg border bg-card text-card-foreground shadow-sm p-6"
2508
2678
  id="rtg-card-id"
2509
2679
  >
2510
2680
  <slot></slot>
2511
- </div>`}},a.Card.styles=[l.css``,p],a.Card=ao([d.customElement("rtg-card")],a.Card);const lo=U("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"}});var co=Object.defineProperty,po=Object.getOwnPropertyDescriptor,Qe=(n,e,r,o)=>{for(var t=o>1?void 0:o?po(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&co(e,r,t),t};a.PopoverContent=class extends l.LitElement{constructor(){super(...arguments),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){const i=r.assignedElements({flatten:!0});if(console.log(i[0]),!((t=i[0])!=null&&t.contains(e.target))){const s=this._popover;s.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=lo({state:"open",side:this.side});return l.html`
2512
- <div class="${h(e)}">
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`
2682
+ <div class="${p(e)}">
2513
2683
  <slot></slot>
2514
2684
  </div>
2515
- `}},a.PopoverContent.styles=[l.css``,p],Qe([d.property({type:String})],a.PopoverContent.prototype,"side",2),a.PopoverContent=Qe([d.customElement("rtg-popover-content")],a.PopoverContent);var uo=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,go=(n,e,r,o)=>{for(var t=o>1?void 0:o?ho(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&uo(e,r,t),t};a.PopoverTrigger=class extends l.LitElement{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}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",s=>{s.stopPropagation()})}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof a.Popover);)e=e.parentElement;return e}render(){return l.html`
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`
2516
2686
  <div style="width: fit-content;">
2517
2687
  <slot name="trigger-button"></slot>
2518
2688
  </div>
2519
- `}},a.PopoverTrigger.styles=[l.css``,p],a.PopoverTrigger=go([d.customElement("rtg-popover-trigger")],a.PopoverTrigger);var mo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,et=(n,e,r,o)=>{for(var t=o>1?void 0:o?fo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&mo(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`
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`
2520
2690
  <div>
2521
2691
  <slot
2522
2692
  name="trigger"
@@ -2526,22 +2696,22 @@ body {
2526
2696
  <slot name="content"></slot>
2527
2697
  </div>
2528
2698
  </div>
2529
- `}},a.Popover.styles=[l.css``,p],et([d.state()],a.Popover.prototype,"isOpen",2),a.Popover=et([d.customElement("rtg-popover")],a.Popover);const tt=U("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 bo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,wo=(n,e,r,o)=>{for(var t=o>1?void 0:o?vo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&bo(e,r,t),t};a.AlertTitle=class extends l.LitElement{render(){return l.html`<slot></slot>`}},a.AlertTitle.styles=l.css`
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`
2530
2700
  :host {
2531
2701
  display: block;
2532
2702
  font-weight: bold;
2533
2703
  margin-bottom: 0.5rem;
2534
2704
  }
2535
- `,a.AlertTitle=wo([d.customElement("rtg-alert-title")],a.AlertTitle);var yo=Object.defineProperty,xo=Object.getOwnPropertyDescriptor,$o=(n,e,r,o)=>{for(var t=o>1?void 0:o?xo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&yo(e,r,t),t};a.AlertDescription=class extends l.LitElement{render(){return l.html`<slot></slot>`}},a.AlertDescription.styles=l.css`
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`
2536
2706
  :host {
2537
2707
  display: block;
2538
2708
  }
2539
- `,a.AlertDescription=$o([d.customElement("rtg-alert-description")],a.AlertDescription);var _o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,$e=(n,e,r,o)=>{for(var t=o>1?void 0:o?Co(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&_o(e,r,t),t};a.Alert=class extends l.LitElement{constructor(){super(...arguments),this.variant="info",this.size="default"}get alertClasses(){return tt({variant:this.variant,size:this.size})}render(){return l.html`
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`
2540
2710
  <div class="alert ${this.alertClasses}">
2541
2711
  <slot name="title"></slot>
2542
2712
  <slot name="description"></slot>
2543
2713
  </div>
2544
- `}},a.Alert.styles=[l.css`
2714
+ `}},s.Alert.styles=[l.css`
2545
2715
  :host {
2546
2716
  display: block;
2547
2717
  margin-bottom: 1rem;
@@ -2554,16 +2724,16 @@ body {
2554
2724
  font-weight: bold;
2555
2725
  margin-bottom: 0.5rem;
2556
2726
  }
2557
- `,p],a.Alert.alertVairants=tt,$e([d.property({type:String})],a.Alert.prototype,"variant",2),$e([d.property({type:String})],a.Alert.prototype,"size",2),a.Alert=$e([d.customElement("rtg-alert")],a.Alert);const Oo=U("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 ko=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,rt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Do(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&ko(e,r,t),t};a.Badge=class extends C{constructor(){super(...arguments),this.variant="default"}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return l.html`
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`
2558
2728
  <div
2559
2729
  id="rtg-badge-id"
2560
2730
  class="
2561
- ${h(a.Badge.badgeVariants({variant:this.variant,className:this.className}))}"
2562
- ${O(e)}
2731
+ ${p(s.Badge.badgeVariants({variant:this.variant,className:this.className}))}"
2732
+ ${C(e)}
2563
2733
  >
2564
2734
  <slot></slot>
2565
2735
  </div>
2566
- `}},a.Badge.badgeVariants=Oo,a.Badge.styles=[l.css``,p],rt([d.property({type:String})],a.Badge.prototype,"variant",2),a.Badge=rt([d.customElement("rtg-badge")],a.Badge);function Po(){return l.svg` <svg
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
2567
2737
  class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
2568
2738
  xmlns="http://www.w3.org/2000/svg"
2569
2739
  width="24"
@@ -2578,7 +2748,7 @@ body {
2578
2748
  <path d="m7 15 5 5 5-5"></path>
2579
2749
  <path d="m7 9 5-5 5 5"></path>
2580
2750
  </svg>
2581
- `}function Eo(){return l.svg`
2751
+ `}function Mt(){return l.svg`
2582
2752
  <svg
2583
2753
  class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
2584
2754
  xmlns="http://www.w3.org/2000/svg"
@@ -2593,7 +2763,7 @@ body {
2593
2763
  >
2594
2764
  <path d="M20 6 9 17l-5-5"></path>
2595
2765
  </svg>
2596
- `}function So(){return l.svg` <svg
2766
+ `}function It(){return l.svg` <svg
2597
2767
  xmlns="http://www.w3.org/2000/svg"
2598
2768
  width = "24"
2599
2769
  height = "24"
@@ -2607,7 +2777,36 @@ body {
2607
2777
  <circle cx="11" cy = "11" r = "8" > </circle>
2608
2778
  <path d="m21 21-4.3-4.3"></path >
2609
2779
  </svg>
2610
- `}var Mo=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,ae=(n,e,r,o)=>{for(var t=o>1?void 0:o?zo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Mo(e,r,t),t};let K=class extends l.LitElement{constructor(){super(...arguments),this.value="",this.handleClick=()=>{},this.handleKeyDown=()=>{}}render(){return l.html`
2780
+ `}function Lt(){return l.svg` <svg
2781
+ xmlns="http://www.w3.org/2000/svg"
2782
+ width="24"
2783
+ height="24"
2784
+ viewBox="0 0 24 24"
2785
+ fill="#000000"
2786
+ stroke="currentColor"
2787
+ stroke-width="2"
2788
+ stroke-linecap="round"
2789
+ stroke-linejoin="round"
2790
+ class="lucide lucide-circle h-2 w-2 fill-current"
2791
+ >
2792
+ <circle cx="12" cy="12" r="10"></circle>
2793
+ </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
2796
+ xmlns="http://www.w3.org/2000/svg"
2797
+ width="24"
2798
+ height="24"
2799
+ viewBox="0 0 24 24"
2800
+ fill="#000000"
2801
+ stroke="currentColor"
2802
+ stroke-width="2"
2803
+ stroke-linecap="round"
2804
+ stroke-linejoin="round"
2805
+ class="lucide lucide-circle h-3.5 w-3.5 fill-primary"
2806
+ >
2807
+ <circle cx="12" cy="12" r="10"></circle></svg
2808
+ >
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`
2611
2810
  <input
2612
2811
  class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
2613
2812
  text-sm font-medium border border-input cursor-pointer
@@ -2624,7 +2823,7 @@ body {
2624
2823
  @click=${this.handleClick}
2625
2824
  @keydown=${this.handleKeyDown}
2626
2825
  />
2627
- `}};K.styles=[l.css``,p],ae([d.property({type:String})],K.prototype,"value",2),ae([d.property({type:Function})],K.prototype,"handleClick",2),ae([d.property({type:Function})],K.prototype,"handleKeyDown",2),K=ae([d.customElement("combo-box-input")],K);var Ao=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,R=(n,e,r,o)=>{for(var t=o>1?void 0:o?Io(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Ao(e,r,t),t};let S=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 console.log("this",this.class),l.html`
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`
2628
2827
  <div
2629
2828
  key="${this.key}"
2630
2829
  class="flex items-center cursor-pointer py-2 px-4 w-full text-sm text-gray-800
@@ -2648,7 +2847,7 @@ body {
2648
2847
  <span
2649
2848
  class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
2650
2849
  >
2651
- ${Eo()}
2850
+ ${Mt()}
2652
2851
  </span>
2653
2852
  <div class="flex justify-between items-center w-full">
2654
2853
  <span
@@ -2659,10 +2858,35 @@ body {
2659
2858
  </span>
2660
2859
  </div>
2661
2860
  </div>
2662
- `}};S.styles=[l.css``,p],R([d.property({type:String})],S.prototype,"key",2),R([d.property({type:String})],S.prototype,"searchText",2),R([d.property({type:String})],S.prototype,"value",2),R([d.property({type:Number})],S.prototype,"tabindex",2),R([d.property({type:Boolean})],S.prototype,"isSelected",2),R([d.property({type:String})],S.prototype,"class",2),R([d.property({type:Function})],S.prototype,"onSelect",2),S=R([d.customElement("combo-box-item")],S);var Lo=Object.defineProperty,To=Object.getOwnPropertyDescriptor,N=(n,e,r,o)=>{for(var t=o>1?void 0:o?To(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Lo(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){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("combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid 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=>(console.log("item",o.toLowerCase()),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}updateFocus(){if(!this.shadowRoot)return;this.shadowRoot.querySelectorAll("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`
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`
2862
+ <div
2863
+ 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
+ data-hs-combo-box-output=""
2865
+ style="display: ${this.state===mn?"block":"none"}; top:115%"
2866
+ >
2867
+ <div
2868
+ class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
2869
+ >
2870
+ ${It()}
2871
+ <input
2872
+ type="text"
2873
+ class="w-full px-2 py-2 rounded focus:outline-none"
2874
+ placeholder="Search..."
2875
+ autocomplete="off"
2876
+ autocorrect="off"
2877
+ spellcheck="false"
2878
+ aria-autocomplete="list"
2879
+ aria-expanded="true"
2880
+ role="combobox"
2881
+ />
2882
+ </div>
2883
+ <slot></slot>
2884
+ </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`
2663
2886
  <div class="relative" data-hs-combo-box="">
2664
- <div class="relative">
2887
+ <div>
2665
2888
  <input
2889
+ part="combobox"
2666
2890
  class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
2667
2891
  text-sm font-medium border border-input cursor-pointer
2668
2892
  ring-offset-background
@@ -2684,7 +2908,7 @@ body {
2684
2908
  data-hs-combo-box-toggle=""
2685
2909
  @click="${this.toggleDropdown}"
2686
2910
  >
2687
- ${Po()}
2911
+ ${Dt()}
2688
2912
  </div>
2689
2913
  </div>
2690
2914
  <div
@@ -2696,7 +2920,7 @@ body {
2696
2920
  <div
2697
2921
  class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
2698
2922
  >
2699
- ${So()}
2923
+ ${It()}
2700
2924
  <input
2701
2925
  type="text"
2702
2926
  class="w-full px-2 py-2 rounded focus:outline-none"
@@ -2720,7 +2944,7 @@ body {
2720
2944
  </div>
2721
2945
  `:l.html`
2722
2946
  ${this.filteredItems.map((e,r)=>l.html`
2723
- <combo-box-item
2947
+ <rtg-combo-box-item
2724
2948
  .searchText=${e}
2725
2949
  .value=${e}
2726
2950
  data-hs-combo-box-value=${e}
@@ -2728,21 +2952,21 @@ body {
2728
2952
  @click="${o=>this.selectItem(o)}"
2729
2953
  @mouseover="${o=>this.handleMouseOver(o,r)}"
2730
2954
  ?isSelected=${e===this.selectedValue}
2731
- ></combo-box-item>
2955
+ ></rtg-combo-box-item>
2732
2956
  `)}
2733
2957
  `}
2734
2958
  </div>
2735
2959
  </div>
2736
- `}},a.ComboBox.styles=[l.css``,p],N([d.state()],a.ComboBox.prototype,"isOpen",2),N([d.state()],a.ComboBox.prototype,"selectedValue",2),N([d.state()],a.ComboBox.prototype,"searchTerm",2),N([d.state()],a.ComboBox.prototype,"focusedIndex",2),N([d.state()],a.ComboBox.prototype,"filteredItems",2),N([d.property({type:String})],a.ComboBox.prototype,"label",2),N([d.property({type:Array})],a.ComboBox.prototype,"items",2),a.ComboBox=N([d.customElement("rtg-combo-box")],a.ComboBox);const Bo="closed";var Ro=Object.defineProperty,No=Object.getOwnPropertyDescriptor,_e=(n,e,r,o)=>{for(var t=o>1?void 0:o?No(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Ro(e,r,t),t};a.DropdownMenuContent=class extends l.LitElement{constructor(){super(...arguments),this.state=Bo,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,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`
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`
2737
2961
  <div
2738
2962
  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"
2739
2963
  style="display: ${this.isOpen?"block":"none"};width:260px"
2740
2964
  >
2741
2965
  <slot></slot>
2742
2966
  </div>
2743
- `}},a.DropdownMenuContent.styles=[l.css``,p],_e([d.property({attribute:"data-state",type:String})],a.DropdownMenuContent.prototype,"state",2),_e([d.state()],a.DropdownMenuContent.prototype,"isOpen",2),a.DropdownMenuContent=_e([d.customElement("rtg-dropdown-menu-content")],a.DropdownMenuContent);var qo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,re=(n,e,r,o)=>{for(var t=o>1?void 0:o?Fo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&qo(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`
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`
2744
2968
  <div
2745
- class="${h("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)}"
2969
+ 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)}"
2746
2970
  @mouseover="${this.handleMouseEvent}"
2747
2971
  @mouseleave="${this.handleMouseEvent}"
2748
2972
  @focus="${this.handleMouseEvent}"
@@ -2756,9 +2980,9 @@ body {
2756
2980
  >
2757
2981
  <slot></slot>
2758
2982
  </div>
2759
- `}`}},a.DropdownMenuItem._counter=0,a.DropdownMenuItem.styles=[l.css``,p],re([d.property({type:String})],a.DropdownMenuItem.prototype,"_id",2),re([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuItem.prototype,"_hidden",2),re([d.property({attribute:"data-value",type:String})],a.DropdownMenuItem.prototype,"value",1),re([d.property({type:Boolean})],a.DropdownMenuItem.prototype,"selected",2),a.DropdownMenuItem=re([d.customElement("rtg-dropdown-menu-item")],a.DropdownMenuItem);var jo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,q=(n,e,r,o)=>{for(var t=o>1?void 0:o?Go(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&jo(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}render(){return l.html`
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`
2760
2984
  <div
2761
- class="${h("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)}"
2985
+ 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)}"
2762
2986
  @click=${this.toggleChecked}
2763
2987
  @mouseover="${this.handleMouseEvent}"
2764
2988
  @mouseleave="${this.handleMouseEvent}"
@@ -2774,38 +2998,26 @@ body {
2774
2998
  <span
2775
2999
  class="icon-space absolute left-2 flex items-center justify-center"
2776
3000
  >
2777
- ${this.checked?l.html`
2778
- <svg
2779
- xmlns="http://www.w3.org/2000/svg"
2780
- width="24"
2781
- height="24"
2782
- viewBox="0 0 15 15"
2783
- >
2784
- <path
2785
- fill="currentColor"
2786
- d="M9.875 7.5a2.375 2.375 0 1 1-4.75 0a2.375 2.375 0 0 1 4.75 0"
2787
- />
2788
- </svg>
2789
- `:l.nothing}
3001
+ ${this.checked?l.html` ${Lt()} `:l.nothing}
2790
3002
  </span>
2791
3003
  <slot></slot>
2792
3004
  </div>
2793
- `}},a.DropdownMenuRadioItem._counter=0,a.DropdownMenuRadioItem.styles=[l.css`
3005
+ `}},s.DropdownMenuRadioItem._counter=0,s.DropdownMenuRadioItem.styles=[l.css`
2794
3006
  .icon-space {
2795
3007
  width: 16px; /* Fixed width to reserve space for the check icon */
2796
3008
  height: 16px;
2797
3009
  display: inline-block;
2798
3010
  }
2799
- `,p],q([d.property({type:String})],a.DropdownMenuRadioItem.prototype,"_id",2),q([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuRadioItem.prototype,"_hidden",2),q([d.property({attribute:"data-value",type:String})],a.DropdownMenuRadioItem.prototype,"value",1),q([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"selected",2),q([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"checked",2),q([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"disabled",2),a.DropdownMenuRadioItem=q([d.customElement("rtg-dropdown-menu-radio-item")],a.DropdownMenuRadioItem);var Vo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Ce=(n,e,r,o)=>{for(var t=o>1?void 0:o?Uo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Vo(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`
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`
2800
3012
  <div
2801
- class="${h("-mx-1 h-px bg-border",this.className)}"
3013
+ class="${p("-mx-1 h-px bg-border",this.className)}"
2802
3014
  rtgcmd-separator
2803
3015
  role="separator"
2804
3016
  id="${this.identifier}"
2805
3017
  ></div>
2806
- `}`}},a.DropdownMenuSeparator._counter=0,a.DropdownMenuSeparator.styles=[l.css``,p],Ce([d.property({type:String})],a.DropdownMenuSeparator.prototype,"_id",2),Ce([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuSeparator.prototype,"_hidden",2),a.DropdownMenuSeparator=Ce([d.customElement("rtg-dropdown-menu-separator")],a.DropdownMenuSeparator);var Ho=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,F=(n,e,r,o)=>{for(var t=o>1?void 0:o?Xo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Ho(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`
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`
2807
3019
  <div
2808
- class="${h("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)}"
3020
+ 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)}"
2809
3021
  @click=${this.toggleChecked}
2810
3022
  @mouseover="${this.handleMouseEvent}"
2811
3023
  @mouseleave="${this.handleMouseEvent}"
@@ -2836,13 +3048,13 @@ body {
2836
3048
  </span>
2837
3049
  <slot></slot>
2838
3050
  </div>
2839
- `}},a.DropdownMenuCheckboxItem._counter=0,a.DropdownMenuCheckboxItem.styles=[l.css`
3051
+ `}},s.DropdownMenuCheckboxItem._counter=0,s.DropdownMenuCheckboxItem.styles=[l.css`
2840
3052
  .icon-space {
2841
3053
  width: 16px; /* Fixed width to reserve space for the check icon */
2842
3054
  height: 16px;
2843
3055
  display: inline-block;
2844
3056
  }
2845
- `,p],F([d.property({type:String})],a.DropdownMenuCheckboxItem.prototype,"_id",2),F([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuCheckboxItem.prototype,"_hidden",2),F([d.property({attribute:"data-value",type:String})],a.DropdownMenuCheckboxItem.prototype,"value",1),F([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"selected",2),F([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"checked",2),F([d.property({type:Boolean})],a.DropdownMenuCheckboxItem.prototype,"disabled",2),a.DropdownMenuCheckboxItem=F([d.customElement("rtg-dropdown-menu-checkbox-item")],a.DropdownMenuCheckboxItem);var Yo=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,le=(n,e,r,o)=>{for(var t=o>1?void 0:o?Wo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Yo(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`
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`
2846
3058
  <div
2847
3059
  class="${e}"
2848
3060
  rtgcmd-group
@@ -2864,7 +3076,7 @@ body {
2864
3076
  <slot></slot>
2865
3077
  </div>
2866
3078
  </div>
2867
- `}`}},a.DropdownMenuGroup._counter=0,a.DropdownMenuGroup.styles=[l.css``,p],le([d.property({type:String})],a.DropdownMenuGroup.prototype,"heading",2),le([d.property({attribute:"id",type:String})],a.DropdownMenuGroup.prototype,"_id",2),le([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuGroup.prototype,"_hidden",2),a.DropdownMenuGroup=le([d.customElement("rtg-dropdown-menu-group")],a.DropdownMenuGroup);var Ko=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,ot=(n,e,r,o)=>{for(var t=o>1?void 0:o?Jo(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Ko(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)}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")}render(){return l.html`
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`
2868
3080
  <div>
2869
3081
  <div>
2870
3082
  <slot @click="${this.toggleDropdown}"></slot>
@@ -2873,36 +3085,416 @@ body {
2873
3085
  <slot></slot>
2874
3086
  </div>
2875
3087
  </div>
2876
- `}},a.DropdownMenu.styles=[l.css``,p],ot([d.state()],a.DropdownMenu.prototype,"isOpen",2),a.DropdownMenu=ot([d.customElement("rtg-dropdown-menu")],a.DropdownMenu);var nt=(n=>(n.SMALL="sm",n.MEDIUM="md",n.LARGE="lg",n))(nt||{}),it=(n=>(n.DEFAULT="default",n.OUTLINE="outline",n))(it||{});const Zo=U("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 Qo=Object.defineProperty,en=Object.getOwnPropertyDescriptor,J=(n,e,r,o)=>{for(var t=o>1?void 0:o?en(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&Qo(e,r,t),t};a.Toggle=class extends C{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=it.DEFAULT,this.size=nt.SMALL}getAttributesToExclude(){return["disabled","checked","variant","size","required"]}toggle(){this.disabled||(this.checked=!this.checked)}render(){const e=this.getFilteredAttributes();return ft.html`
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`
2877
3089
  <button
2878
3090
  type="button"
2879
- class="${h(a.Toggle.toggleVariants({variant:this.variant,size:this.size,className:this.className}))}"
3091
+ class="${p(s.Toggle.toggleVariants({variant:this.variant,size:this.size,className:this.className}))}"
2880
3092
  aria-pressed=${this.checked}
2881
3093
  data-state="${this.checked?"on":"off"}"
2882
3094
  aria-label="Toggle bold"
2883
3095
  @click=${this.toggle}
2884
3096
  ?required=${this.required}
2885
3097
  ?disabled=${this.disabled}
2886
- ${O(e)}
3098
+ ${C(e)}
2887
3099
  >
2888
3100
  <slot></slot>
2889
3101
  </button>
2890
- `}},a.Toggle.styles=[p],a.Toggle.toggleVariants=Zo,J([d.property({type:Boolean})],a.Toggle.prototype,"disabled",2),J([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"checked",2),J([d.property({attribute:!0,type:Boolean,reflect:!0})],a.Toggle.prototype,"required",2),J([d.property({attribute:!0,type:String})],a.Toggle.prototype,"variant",2),J([d.property({attribute:!0,type:String})],a.Toggle.prototype,"size",2),a.Toggle=J([d.customElement("rtg-toggle")],a.Toggle);const tn="inline-flex items-center gap-1.5",rn="transition-colors hover:text-foreground",on="font-normal text-foreground",nn="[&>svg]:size-3.5",sn="flex h-9 w-9 items-center justify-center",an="flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5";var ln=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,st=(n,e,r,o)=>{for(var t=o>1?void 0:o?dn(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&ln(e,r,t),t};let de=class extends C{constructor(){super(...arguments),this.href="/"}getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
2891
- <a
2892
- id="rtg-bread-crumb-link"
2893
- class="${h(rn,this.className)}"
2894
- ${O(n)}
2895
- href="${this.href}"
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`
3103
+ <div
3104
+ 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
+ data-state="${this.state}"
3106
+ style="display: ${this.isOpen?"block":"none"}; width: 260px"
2896
3107
  >
2897
3108
  <slot></slot>
2898
- </a>
2899
- `}};de.styles=[l.css``,p],st([d.property({type:String})],de.prototype,"href",2),de=st([d.customElement("rtg-bread-crumb-link")],de);var cn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,un=(n,e,r,o)=>{for(var t=o>1?void 0:o?pn(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&cn(e,r,t),t};let Oe=class extends C{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
3109
+ </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`
3111
+ <div
3112
+ 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
+ @click=${this.toggleChecked}
3114
+ @mouseover="${this.handleMouseEvent}"
3115
+ @mouseleave="${this.handleMouseEvent}"
3116
+ @focus="${this.handleMouseEvent}"
3117
+ rtgcmd-item
3118
+ role="option"
3119
+ aria-selected="${this.selected}"
3120
+ data-selected="${this.selected}"
3121
+ data-value="${this.value}"
3122
+ id="${this.identifier}"
3123
+ aria-hidden="${this.hidden}"
3124
+ >
3125
+ <span
3126
+ class="icon-space absolute left-2 flex items-center justify-center"
3127
+ >
3128
+ ${this.checked?l.html`
3129
+ <svg
3130
+ xmlns="http://www.w3.org/2000/svg"
3131
+ viewBox="0 0 24 24"
3132
+ width="16px"
3133
+ height="16px"
3134
+ >
3135
+ <path
3136
+ d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"
3137
+ />
3138
+ </svg>
3139
+ `:l.nothing}
3140
+ </span>
3141
+ <slot></slot>
3142
+ </div>
3143
+ `}},s.ContextMenuCheckboxItem._counter=0,s.ContextMenuCheckboxItem.styles=[l.css`
3144
+ .icon-space {
3145
+ width: 16px; /* Fixed width to reserve space for the check icon */
3146
+ height: 16px;
3147
+ display: inline-block;
3148
+ }
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`
3150
+ <div
3151
+ class="${e}"
3152
+ rtgcmd-group
3153
+ role="presentation"
3154
+ id="${this.identifier}"
3155
+ >
3156
+ <div
3157
+ rtgcmd-group-heading
3158
+ aria-hidden="true"
3159
+ id="${this.identifier}h"
3160
+ >
3161
+ ${this.heading}
3162
+ </div>
3163
+ <div
3164
+ rtgcmd-group-items
3165
+ role="group"
3166
+ aria-labelledby="${this.identifier}h"
3167
+ >
3168
+ <slot></slot>
3169
+ </div>
3170
+ </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`
3172
+ <div
3173
+ 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
+ @mouseover="${this.handleMouseEvent}"
3175
+ @mouseleave="${this.handleMouseEvent}"
3176
+ @focus="${this.handleMouseEvent}"
3177
+ rtgcmd-item
3178
+ role="option"
3179
+ aria-selected="${this.selected}"
3180
+ data-selected="${this.selected}"
3181
+ data-value="${this.value}"
3182
+ id="${this.identifier}"
3183
+ aria-hidden="${this.hidden}"
3184
+ >
3185
+ <slot></slot>
3186
+ </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`
3188
+ <div
3189
+ 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
+ @click=${this.toggleChecked}
3191
+ @mouseover="${this.handleMouseEvent}"
3192
+ @mouseleave="${this.handleMouseEvent}"
3193
+ @focus="${this.handleMouseEvent}"
3194
+ rtgcmd-item
3195
+ role="option"
3196
+ aria-selected="${this.selected}"
3197
+ data-selected="${this.selected}"
3198
+ data-value="${this.value}"
3199
+ id="${this.identifier}"
3200
+ aria-hidden="${this.hidden}"
3201
+ >
3202
+ <span
3203
+ class="icon-space absolute left-2 flex items-center justify-center"
3204
+ >
3205
+ ${this.checked?l.html` ${Lt()} `:l.nothing}
3206
+ </span>
3207
+ <slot></slot>
3208
+ </div>
3209
+ `}},s.ContextMenuRadioItem._counter=0,s.ContextMenuRadioItem.styles=[l.css`
3210
+ .icon-space {
3211
+ width: 16px; /* Fixed width to reserve space for the check icon */
3212
+ height: 16px;
3213
+ display: inline-block;
3214
+ }
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`
3216
+ <div
3217
+ class="${p("-mx-1 h-px bg-border",this.className)}"
3218
+ rtgcmd-separator
3219
+ role="separator"
3220
+ id="${this.identifier}"
3221
+ ></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`
3223
+ <span class="${p("ml-auto text-xs font-semibold",this.className)}">
3224
+ <slot></slot>
3225
+ </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`
3227
+ <div style="display:flex">
3228
+ <div>
3229
+ <slot @contextmenu="${this.toggleDropdown}"></slot>
3230
+ </div>
3231
+ <div>
3232
+ <slot></slot>
3233
+ </div>
3234
+ </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`
3236
+ <div
3237
+ key="${this.key}"
3238
+ class="flex items-center cursor-pointer py-2 px-4 w-full
3239
+ rounded-lg
3240
+ hover:bg-gray-100
3241
+ focus:outline-none
3242
+ focus:bg-gray-100
3243
+ dark:bg-neutral-900
3244
+ dark:hover:bg-neutral-800
3245
+ dark:text-neutral-200
3246
+ dark:focus:bg-neutral-800
3247
+ ${this.class}
3248
+ "
3249
+ tabindex="${this.tabindex}"
3250
+ aria-selected="${this.isSelected}"
3251
+ data-selected="${this.isSelected}"
3252
+ data-hs-combo-box-output-item=""
3253
+ role="option"
3254
+ @click="${this.onSelect}"
3255
+ >
3256
+ <span
3257
+ class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
3258
+ >
3259
+ ${Mt()}
3260
+ </span>
3261
+ <div
3262
+ class="flex justify-between items-center w-full text-sm text-gray-500"
3263
+ >
3264
+ <span
3265
+ data-hs-combo-box-search-text="${this.searchText}"
3266
+ data-hs-combo-box-value="${this.value}"
3267
+ >
3268
+ ${this.searchText}
3269
+ </span>
3270
+ </div>
3271
+ </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`
3273
+ <div
3274
+ 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
+ data-hs-combo-box-output=""
3276
+ data-state="${this.state}"
3277
+ style="display: ${this.isOpen?"block":"none"}; top:115%"
3278
+ >
3279
+ <slot></slot>
3280
+ </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`
3282
+ <span class="${p("px-2 py-1.5 text-sm font-semibold",this.className)}">
3283
+ <slot></slot>
3284
+ </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`
3286
+ <div
3287
+ class="${p("-mx-1 h-px bg-border",this.className)}"
3288
+ rtgcmd-separator
3289
+ role="separator"
3290
+ id="${this.identifier}"
3291
+ ></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`
3293
+ <div class="relative" data-hs-combo-box="">
3294
+ <div class="relative">
3295
+ <input
3296
+ class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
3297
+ text-sm font-medium border border-input cursor-pointer
3298
+ ring-offset-background
3299
+ transition-colors disabled:pointer-events-none
3300
+ disabled:opacity-50
3301
+ bg-background hover:bg-accent
3302
+ hover:text-accent-foreground
3303
+ outline-none"
3304
+ role="combobox"
3305
+ aria-expanded=${this.isOpen}
3306
+ readonly
3307
+ .value=${this.selectedValue||this.label}
3308
+ @click="${this.handleInputClick}"
3309
+ @keydown="${this.handleKeyDown}"
3310
+ />
3311
+ <div
3312
+ class="absolute top-1/2 end-3 -translate-y-1/2 cursor-pointer"
3313
+ aria-expanded=${this.isOpen}
3314
+ data-hs-combo-box-toggle=""
3315
+ @click="${this.toggleDropdown}"
3316
+ >
3317
+ ${Dt()}
3318
+ </div>
3319
+ </div>
3320
+ <div
3321
+ 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"
3322
+ style="display: ${this.isOpen?"block":"none"}; top:115%"
3323
+ data-hs-combo-box-output=""
3324
+ @keydown="${this.handleKeyDown}"
3325
+ >
3326
+ ${this.filteredItems.length===0?l.html`
3327
+ <div
3328
+ class="py-6 text-center text-sm"
3329
+ cmdk-empty=""
3330
+ role="presentation"
3331
+ >
3332
+ No item found.
3333
+ </div>
3334
+ `:l.html`
3335
+ <rtg-select-label style="margin-left:30px"
3336
+ >Countries</rtg-select-label
3337
+ >
3338
+ <rtg-select-separator></rtg-select-separator>
3339
+ ${this.filteredItems.map((e,r)=>l.html`
3340
+ <rtg-select-item
3341
+ .searchText=${e}
3342
+ .value=${e}
3343
+ data-hs-combo-box-value=${e}
3344
+ tabIndex=${r}
3345
+ @click="${o=>this.selectItem(o)}"
3346
+ @mouseover="${o=>this.handleMouseOver(o,r)}"
3347
+ ?isSelected=${e===this.selectedValue}
3348
+ ></rtg-select-item>
3349
+ `)}
3350
+ `}
3351
+ </div>
3352
+ </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`
3354
+ <div class="${p("flex items-center space-x-2",this.className)}">
3355
+ <div
3356
+ @click="${this._toggleChecked}"
3357
+ data-testid="switch-atom"
3358
+ role="switch"
3359
+ aria-checked="${this.checked}"
3360
+ aria-disabled="${this.disabled}"
3361
+ class="${p("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background")}"
3362
+ style="background-color:${this.checked?"#000000":"#e0e0e0"};cursor:${this.disabled?"default":""}"
3363
+ >
3364
+ <div
3365
+ class="pointer-events-none block h-4 w-4 rounded-full bg-background
3366
+ shadow-lg ring-0 transition-transform"
3367
+ style="transform: translateX(${this.checked?"16px":"0px"})"
3368
+ ></div>
3369
+ </div>
3370
+ <slot></slot>
3371
+ </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`
3373
+ <div class="${p("flex items-center space-x-2")}">
3374
+ <button
3375
+ type="button"
3376
+ role="radio"
3377
+ aria-checked="${this.checked}"
3378
+ data-state="${this.state}"
3379
+ value="${this.value}"
3380
+ @click="${this._onClick}"
3381
+ class="aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"
3382
+ id="${this.id}"
3383
+ tabindex="${this.tabindex}"
3384
+ data-radix-collection-item=""
3385
+ >
3386
+ ${this.checked?l.html`<span
3387
+ data-state="checked"
3388
+ class="flex items-center justify-center"
3389
+ >
3390
+ ${cn()}
3391
+ </span>`:l.nothing}
3392
+ </button>
3393
+ <label
3394
+ class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
3395
+ for="${this.id}"
3396
+ >${this.value}</label
3397
+ >
3398
+ </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`
3400
+ <div class="${p("grid gap-2",this.className)}" style="outline: none;">
3401
+ <slot></slot>
3402
+ </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`
3404
+ <div
3405
+ data-state="closed"
3406
+ role="tablist"
3407
+ data-orientation="vertical"
3408
+ data-state="active"
3409
+ class="w-full border-b"
3410
+ value="$${this.value}"
3411
+ @click=${this.handleClick}
3412
+ ${C(n)}
3413
+ >
3414
+ <h3>
3415
+ <slot name="accordion-trigger"></slot>
3416
+ </h3>
3417
+ <div>
3418
+ ${this._accordion&&this._accordion.selectedItems.includes(this.value)?E.html` <slot name="accordion-content"></slot> `:E.nothing}
3419
+ </div>
3420
+ </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`
3422
+ <button
3423
+ type="button"
3424
+ role="tab"
3425
+ value=${this.value}
3426
+ aria-selected=${this.defaultValue===this.value?"true":"false"}
3427
+ aria-controls=${this.value}
3428
+ aria-expanded=${this.defaultValue===this.value?"true":"false"}
3429
+ data-state=${this.defaultValue===this.value?"active":"inactive"}
3430
+ class="w-full flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180"
3431
+ tabindex="-1"
3432
+ data-orientation="horizontal"
3433
+ data-radix-collection-item=""
3434
+ ${C(n)}
3435
+ >
3436
+ <slot></slot>
3437
+ ${dn()}
3438
+ </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`
3440
+ <div
3441
+ data-state="open"
3442
+ role="region"
3443
+ data-orientation="vertical"
3444
+ class="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
3445
+ style="
3446
+ --radix-accordion-content-height: var(--radix-collapsible-content-height);
3447
+ --radix-accordion-content-width: var(--radix-collapsible-content-width);
3448
+ --radix-collapsible-content-height: 0px;
3449
+ --radix-collapsible-content-width: 385px;"
3450
+ >
3451
+ <div class="pb-4 pt-0">
3452
+ <slot></slot>
3453
+ </div>
3454
+ </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)}>
3457
+ <slot name="accordion-item"></slot>
3458
+ </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
3460
+ class="${p("shrink-0 bg-border w-full h-[1px] my-4",this.className)}"
3461
+ ${C(e)}
3462
+ role="none"
3463
+ ></div>`:(console.log("elseee "),l.html` <div
3464
+ class="${p("shrink-0 bg-border h-full w-[1px]",this.className)}"
3465
+ style=""
3466
+ role="none"
3467
+ ${C(e)}
3468
+ >
3469
+ &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`
3471
+ <div
3472
+ class="${p(I.buttonVariants({variant:this.variant,size:this.size,className:this.className}))} ${this.isCustomClass?"rtg-sample-demo-custom-class":""}"
3473
+ >
3474
+ <div part="tab active">Tab A</div>
3475
+ <div class="px-4" part="tab">Tab B</div>
3476
+ <div part="tab">Tab C</div>
3477
+ </div>
3478
+ `}};I.buttonVariants=Ei,I.styles=[c,l.css`
3479
+ :host {
3480
+ --rtg-sample-demo-bg: unset;
3481
+ --rtg-sample-demo-color: unset;
3482
+ --rtg-sample-demo-radius: unset;
3483
+ --rtg-sample-demo-height: unset;
3484
+ }
3485
+ .rtg-sample-demo-custom-class {
3486
+ background-color: var(--rtg-sample-demo-bg);
3487
+ color: var(--rtg-sample-demo-color);
3488
+ border-radius: var(--rtg-sample-demo-radius);
3489
+ height: var(--rtg-sample-demo-height);
3490
+ }
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`
2900
3492
  <span
2901
3493
  id="rtg-bread-crumb-ellipsis"
2902
3494
  role="presentation"
2903
3495
  aria-hidden="true"
2904
- class="${h(sn,this.className)}"
2905
- ${O(n)}
3496
+ class="${p(Ri,this.className)}"
3497
+ ${C(n)}
2906
3498
  >
2907
3499
  <svg
2908
3500
  fill="#000000"
@@ -2917,29 +3509,29 @@ body {
2917
3509
  />
2918
3510
  </svg>
2919
3511
  </span>
2920
- `}};Oe.styles=[l.css``,p],Oe=un([d.customElement("rtg-bread-crumb-ellipsis")],Oe);var hn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,mn=(n,e,r,o)=>{for(var t=o>1?void 0:o?gn(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&hn(e,r,t),t};let ke=class extends C{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
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`
2921
3513
  <li
2922
3514
  id="rtg-bread-crumb-item"
2923
- class="${h(tn,this.className)}"
2924
- ${O(n)}
3515
+ class="${p(Ii,this.className)}"
3516
+ ${C(n)}
2925
3517
  >
2926
3518
  <slot></slot>
2927
3519
  </li>
2928
- `}};ke.styles=[l.css``,p],ke=mn([d.customElement("rtg-bread-crumb-item")],ke);var fn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,vn=(n,e,r,o)=>{for(var t=o>1?void 0:o?bn(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&fn(e,r,t),t};let De=class extends C{getAttributesToExclude(){return["variant"]}render(){const n=this.getFilteredAttributes();return l.html`
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`
2929
3521
  <ol
2930
3522
  id="rtg-bread-crumb-list"
2931
- class="${h(an,this.className)}"
2932
- ${O(n)}
3523
+ class="${p(Ti,this.className)}"
3524
+ ${C(n)}
2933
3525
  >
2934
3526
  <slot></slot>
2935
3527
  </ol>
2936
- `}};De.styles=[l.css``,p],De=vn([d.customElement("rtg-bread-crumb-list")],De);var wn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,xn=(n,e,r,o)=>{for(var t=o>1?void 0:o?yn(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&wn(e,r,t),t};let Pe=class extends C{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
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`
2937
3529
  <li
2938
3530
  id="rtg-bread-crumb-separator"
2939
3531
  role="presentation"
2940
3532
  aria-hidden="true"
2941
- class="${h(nn,this.className)}"
2942
- ${O(n)}
3533
+ class="${p(zi,this.className)}"
3534
+ ${C(n)}
2943
3535
  >
2944
3536
  <svg
2945
3537
  xmlns="http://www.w3.org/2000/svg"
@@ -2956,22 +3548,31 @@ body {
2956
3548
  <path d="M22 2 2 22"></path>
2957
3549
  </svg>
2958
3550
  </div>
2959
- `}};Pe.styles=[l.css``,p],Pe=xn([d.customElement("rtg-bread-crumb-separator")],Pe);var $n=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,Cn=(n,e,r,o)=>{for(var t=o>1?void 0:o?_n(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&$n(e,r,t),t};let Ee=class extends C{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
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`
2960
3552
  <nav
2961
- class="${h(this.className)}"
3553
+ class="${p(this.className)}"
2962
3554
  aria-label="breadcrumb"
2963
- ${O(n)}
3555
+ ${C(n)}
2964
3556
  >
2965
3557
  <slot></slot>
2966
3558
  </nav>
2967
- `}};Ee.styles=[l.css``,p],Ee=Cn([d.customElement("rtg-bread-crumb")],Ee);var On=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Dn=(n,e,r,o)=>{for(var t=o>1?void 0:o?kn(e,r):e,i=n.length-1,s;i>=0;i--)(s=n[i])&&(t=(o?s(e,r,t):s(t))||t);return o&&t&&On(e,r,t),t};let Se=class extends C{getAttributesToExclude(){return[""]}render(){const n=this.getFilteredAttributes();return l.html`
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`
2968
3560
  <span
2969
3561
  id="rtg-bread-crumb-text"
2970
3562
  aria-disabled="true"
2971
3563
  aria-current="page"
2972
- class="${h(on,this.className)}"
2973
- ${O(n)}
3564
+ class="${p(Ai,this.className)}"
3565
+ ${C(n)}
2974
3566
  >
2975
3567
  <slot></slot>
2976
3568
  </span>
2977
- `}};Se.styles=[l.css``,p],Se=Dn([d.customElement("rtg-bread-crumb-text")],Se),Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
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`
3570
+ <a
3571
+ id="rtg-bread-crumb-link"
3572
+ class="${p(Li,this.className)}"
3573
+ ${C(n)}
3574
+ href="${this.href}"
3575
+ >
3576
+ <slot></slot>
3577
+ </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"})});