@bricks-toolkit/toolkit 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/Button.types-BsQYqZml.d.ts +27 -0
  2. package/dist/Button.types-D-srlWFf.d.mts +27 -0
  3. package/dist/TextInput.types-DRI8HQza.d.mts +32 -0
  4. package/dist/TextInput.types-DRI8HQza.d.ts +32 -0
  5. package/dist/Tooltip.types-PbUasE3C.d.mts +36 -0
  6. package/dist/Tooltip.types-PbUasE3C.d.ts +36 -0
  7. package/dist/avatar/index.cjs +1 -0
  8. package/dist/avatar/index.d.mts +29 -0
  9. package/dist/avatar/index.d.ts +29 -0
  10. package/dist/avatar/index.mjs +1 -0
  11. package/dist/badge/index.cjs +1 -0
  12. package/dist/badge/index.d.mts +57 -0
  13. package/dist/badge/index.d.ts +57 -0
  14. package/dist/badge/index.mjs +1 -0
  15. package/dist/breadcrumbs/index.cjs +1 -0
  16. package/dist/breadcrumbs/index.d.mts +32 -0
  17. package/dist/breadcrumbs/index.d.ts +32 -0
  18. package/dist/breadcrumbs/index.mjs +1 -0
  19. package/dist/button/index.cjs +2 -0
  20. package/dist/button/index.d.mts +8 -0
  21. package/dist/button/index.d.ts +8 -0
  22. package/dist/button/index.mjs +2 -0
  23. package/dist/card/index.cjs +1 -0
  24. package/dist/card/index.d.mts +42 -0
  25. package/dist/card/index.d.ts +42 -0
  26. package/dist/card/index.mjs +1 -0
  27. package/dist/checkbox/index.cjs +1 -0
  28. package/dist/checkbox/index.d.mts +36 -0
  29. package/dist/checkbox/index.d.ts +36 -0
  30. package/dist/checkbox/index.mjs +1 -0
  31. package/dist/combo-box/index.cjs +1 -0
  32. package/dist/combo-box/index.d.mts +62 -0
  33. package/dist/combo-box/index.d.ts +62 -0
  34. package/dist/combo-box/index.mjs +1 -0
  35. package/dist/date-picker/index.cjs +2 -0
  36. package/dist/date-picker/index.d.mts +32 -0
  37. package/dist/date-picker/index.d.ts +32 -0
  38. package/dist/date-picker/index.mjs +2 -0
  39. package/dist/dialog/index.cjs +1 -0
  40. package/dist/dialog/index.d.mts +61 -0
  41. package/dist/dialog/index.d.ts +61 -0
  42. package/dist/dialog/index.mjs +1 -0
  43. package/dist/dropdown-menu/index.cjs +1 -0
  44. package/dist/dropdown-menu/index.d.mts +34 -0
  45. package/dist/dropdown-menu/index.d.ts +34 -0
  46. package/dist/dropdown-menu/index.mjs +1 -0
  47. package/dist/email/index.cjs +2 -0
  48. package/dist/email/index.d.mts +38 -0
  49. package/dist/email/index.d.ts +38 -0
  50. package/dist/email/index.mjs +2 -0
  51. package/dist/file-upload/index.cjs +1 -0
  52. package/dist/file-upload/index.d.mts +27 -0
  53. package/dist/file-upload/index.d.ts +27 -0
  54. package/dist/file-upload/index.mjs +1 -0
  55. package/dist/header/index.cjs +2 -0
  56. package/dist/header/index.d.mts +28 -0
  57. package/dist/header/index.d.ts +28 -0
  58. package/dist/header/index.mjs +2 -0
  59. package/dist/icon-button/index.cjs +2 -0
  60. package/dist/icon-button/index.d.mts +16 -0
  61. package/dist/icon-button/index.d.ts +16 -0
  62. package/dist/icon-button/index.mjs +2 -0
  63. package/dist/image/index.cjs +1 -0
  64. package/dist/image/index.d.mts +48 -0
  65. package/dist/image/index.d.ts +48 -0
  66. package/dist/image/index.mjs +1 -0
  67. package/dist/index.cjs +2 -0
  68. package/dist/index.d.mts +141 -0
  69. package/dist/index.mjs +2 -0
  70. package/dist/link/index.cjs +1 -0
  71. package/dist/link/index.d.mts +25 -0
  72. package/dist/link/index.d.ts +25 -0
  73. package/dist/link/index.mjs +1 -0
  74. package/dist/loader/index.cjs +2 -0
  75. package/dist/loader/index.d.mts +21 -0
  76. package/dist/loader/index.d.ts +21 -0
  77. package/dist/loader/index.mjs +2 -0
  78. package/dist/modal/index.cjs +1 -0
  79. package/dist/modal/index.d.mts +116 -0
  80. package/dist/modal/index.d.ts +116 -0
  81. package/dist/modal/index.mjs +1 -0
  82. package/dist/multi-select/index.cjs +2 -0
  83. package/dist/multi-select/index.d.mts +59 -0
  84. package/dist/multi-select/index.d.ts +59 -0
  85. package/dist/multi-select/index.mjs +2 -0
  86. package/dist/otp-input/index.cjs +1 -0
  87. package/dist/otp-input/index.d.mts +57 -0
  88. package/dist/otp-input/index.d.ts +57 -0
  89. package/dist/otp-input/index.mjs +1 -0
  90. package/dist/password-input/index.cjs +2 -0
  91. package/dist/password-input/index.d.mts +32 -0
  92. package/dist/password-input/index.d.ts +32 -0
  93. package/dist/password-input/index.mjs +2 -0
  94. package/dist/phone/index.cjs +2 -0
  95. package/dist/phone/index.d.mts +41 -0
  96. package/dist/phone/index.d.ts +41 -0
  97. package/dist/phone/index.mjs +2 -0
  98. package/dist/radio-button/index.cjs +1 -0
  99. package/dist/radio-button/index.d.mts +56 -0
  100. package/dist/radio-button/index.d.ts +56 -0
  101. package/dist/radio-button/index.mjs +1 -0
  102. package/dist/search-input/index.cjs +2 -0
  103. package/dist/search-input/index.d.mts +22 -0
  104. package/dist/search-input/index.d.ts +22 -0
  105. package/dist/search-input/index.mjs +2 -0
  106. package/dist/select/index.cjs +2 -0
  107. package/dist/select/index.d.mts +36 -0
  108. package/dist/select/index.d.ts +36 -0
  109. package/dist/select/index.mjs +2 -0
  110. package/dist/sidebar/index.cjs +1 -0
  111. package/dist/sidebar/index.d.mts +96 -0
  112. package/dist/sidebar/index.d.ts +96 -0
  113. package/dist/sidebar/index.mjs +1 -0
  114. package/dist/skeleton/index.cjs +1 -0
  115. package/dist/skeleton/index.d.mts +76 -0
  116. package/dist/skeleton/index.d.ts +76 -0
  117. package/dist/skeleton/index.mjs +1 -0
  118. package/dist/styles.css +2 -0
  119. package/dist/styles.d.mts +2 -0
  120. package/dist/styles.d.ts +2 -0
  121. package/dist/table/index.cjs +1 -0
  122. package/dist/table/index.d.mts +92 -0
  123. package/dist/table/index.d.ts +92 -0
  124. package/dist/table/index.mjs +1 -0
  125. package/dist/tabs/index.cjs +2 -0
  126. package/dist/tabs/index.d.mts +26 -0
  127. package/dist/tabs/index.d.ts +26 -0
  128. package/dist/tabs/index.mjs +2 -0
  129. package/dist/text-input/index.cjs +2 -0
  130. package/dist/text-input/index.d.mts +7 -0
  131. package/dist/text-input/index.d.ts +7 -0
  132. package/dist/text-input/index.mjs +2 -0
  133. package/dist/theme-provider/index.cjs +1 -0
  134. package/dist/theme-provider/index.d.mts +122 -0
  135. package/dist/theme-provider/index.d.ts +122 -0
  136. package/dist/theme-provider/index.mjs +1 -0
  137. package/dist/time-picker/index.cjs +2 -0
  138. package/dist/time-picker/index.d.mts +32 -0
  139. package/dist/time-picker/index.d.ts +32 -0
  140. package/dist/time-picker/index.mjs +2 -0
  141. package/dist/toaster/index.cjs +1 -0
  142. package/dist/toaster/index.d.mts +28 -0
  143. package/dist/toaster/index.d.ts +28 -0
  144. package/dist/toaster/index.mjs +1 -0
  145. package/dist/tooltip/index.cjs +1 -0
  146. package/dist/tooltip/index.d.mts +7 -0
  147. package/dist/tooltip/index.d.ts +7 -0
  148. package/dist/tooltip/index.mjs +1 -0
  149. package/package.json +56 -54
package/dist/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ 'use strict';var ae=require('react'),solid=require('@heroicons/react/20/solid'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),outline=require('@heroicons/react/24/outline'),reactDom=require('react-dom'),solid$1=require('@heroicons/react/16/solid'),solid$2=require('@heroicons/react/24/solid');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var ae__namespace=/*#__PURE__*/_interopNamespace(ae);function t(...r){return tailwindMerge.twMerge(clsx.clsx(r))}var dt=[{name:"Afghanistan",id:"AF",dialCode:"+93",maxLength:9,flag:"\u{1F1E6}\u{1F1EB}"},{name:"Albania",id:"AL",dialCode:"+355",maxLength:9,flag:"\u{1F1E6}\u{1F1F1}"},{name:"Algeria",id:"DZ",dialCode:"+213",maxLength:9,flag:"\u{1F1E9}\u{1F1FF}"},{name:"Andorra",id:"AD",dialCode:"+376",maxLength:6,flag:"\u{1F1E6}\u{1F1E9}"},{name:"Angola",id:"AO",dialCode:"+244",maxLength:9,flag:"\u{1F1E6}\u{1F1F4}"},{name:"Argentina",id:"AR",dialCode:"+54",maxLength:10,flag:"\u{1F1E6}\u{1F1F7}"},{name:"Armenia",id:"AM",dialCode:"+374",maxLength:8,flag:"\u{1F1E6}\u{1F1F2}"},{name:"Australia",id:"AU",dialCode:"+61",maxLength:9,flag:"\u{1F1E6}\u{1F1FA}"},{name:"Austria",id:"AT",dialCode:"+43",maxLength:13,flag:"\u{1F1E6}\u{1F1F9}"},{name:"Azerbaijan",id:"AZ",dialCode:"+994",maxLength:9,flag:"\u{1F1E6}\u{1F1FF}"},{name:"Bahrain",id:"BH",dialCode:"+973",maxLength:8,flag:"\u{1F1E7}\u{1F1ED}"},{name:"Bangladesh",id:"BD",dialCode:"+880",maxLength:10,flag:"\u{1F1E7}\u{1F1E9}"},{name:"Belarus",id:"BY",dialCode:"+375",maxLength:9,flag:"\u{1F1E7}\u{1F1FE}"},{name:"Belgium",id:"BE",dialCode:"+32",maxLength:9,flag:"\u{1F1E7}\u{1F1EA}"},{name:"Bolivia",id:"BO",dialCode:"+591",maxLength:8,flag:"\u{1F1E7}\u{1F1F4}"},{name:"Bosnia and Herzegovina",id:"BA",dialCode:"+387",maxLength:8,flag:"\u{1F1E7}\u{1F1E6}"},{name:"Brazil",id:"BR",dialCode:"+55",maxLength:11,flag:"\u{1F1E7}\u{1F1F7}"},{name:"Bulgaria",id:"BG",dialCode:"+359",maxLength:9,flag:"\u{1F1E7}\u{1F1EC}"},{name:"Cambodia",id:"KH",dialCode:"+855",maxLength:9,flag:"\u{1F1F0}\u{1F1ED}"},{name:"Canada",id:"CA",dialCode:"+1",maxLength:10,flag:"\u{1F1E8}\u{1F1E6}"},{name:"Chile",id:"CL",dialCode:"+56",maxLength:9,flag:"\u{1F1E8}\u{1F1F1}"},{name:"China",id:"CN",dialCode:"+86",maxLength:11,flag:"\u{1F1E8}\u{1F1F3}"},{name:"Colombia",id:"CO",dialCode:"+57",maxLength:10,flag:"\u{1F1E8}\u{1F1F4}"},{name:"Costa Rica",id:"CR",dialCode:"+506",maxLength:8,flag:"\u{1F1E8}\u{1F1F7}"},{name:"Croatia",id:"HR",dialCode:"+385",maxLength:9,flag:"\u{1F1ED}\u{1F1F7}"},{name:"Cuba",id:"CU",dialCode:"+53",maxLength:8,flag:"\u{1F1E8}\u{1F1FA}"},{name:"Cyprus",id:"CY",dialCode:"+357",maxLength:8,flag:"\u{1F1E8}\u{1F1FE}"},{name:"Czech Republic",id:"CZ",dialCode:"+420",maxLength:9,flag:"\u{1F1E8}\u{1F1FF}"},{name:"Denmark",id:"DK",dialCode:"+45",maxLength:8,flag:"\u{1F1E9}\u{1F1F0}"},{name:"Ecuador",id:"EC",dialCode:"+593",maxLength:9,flag:"\u{1F1EA}\u{1F1E8}"},{name:"Egypt",id:"EG",dialCode:"+20",maxLength:10,flag:"\u{1F1EA}\u{1F1EC}"},{name:"Estonia",id:"EE",dialCode:"+372",maxLength:8,flag:"\u{1F1EA}\u{1F1EA}"},{name:"Ethiopia",id:"ET",dialCode:"+251",maxLength:9,flag:"\u{1F1EA}\u{1F1F9}"},{name:"Finland",id:"FI",dialCode:"+358",maxLength:10,flag:"\u{1F1EB}\u{1F1EE}"},{name:"France",id:"FR",dialCode:"+33",maxLength:9,flag:"\u{1F1EB}\u{1F1F7}"},{name:"Georgia",id:"GE",dialCode:"+995",maxLength:9,flag:"\u{1F1EC}\u{1F1EA}"},{name:"Germany",id:"DE",dialCode:"+49",maxLength:11,flag:"\u{1F1E9}\u{1F1EA}"},{name:"Ghana",id:"GH",dialCode:"+233",maxLength:9,flag:"\u{1F1EC}\u{1F1ED}"},{name:"Greece",id:"GR",dialCode:"+30",maxLength:10,flag:"\u{1F1EC}\u{1F1F7}"},{name:"Guatemala",id:"GT",dialCode:"+502",maxLength:8,flag:"\u{1F1EC}\u{1F1F9}"},{name:"Hong Kong",id:"HK",dialCode:"+852",maxLength:8,flag:"\u{1F1ED}\u{1F1F0}"},{name:"Hungary",id:"HU",dialCode:"+36",maxLength:9,flag:"\u{1F1ED}\u{1F1FA}"},{name:"Iceland",id:"IS",dialCode:"+354",maxLength:7,flag:"\u{1F1EE}\u{1F1F8}"},{name:"India",id:"IN",dialCode:"+91",maxLength:10,flag:"\u{1F1EE}\u{1F1F3}"},{name:"Indonesia",id:"ID",dialCode:"+62",maxLength:12,flag:"\u{1F1EE}\u{1F1E9}"},{name:"Iran",id:"IR",dialCode:"+98",maxLength:10,flag:"\u{1F1EE}\u{1F1F7}"},{name:"Iraq",id:"IQ",dialCode:"+964",maxLength:10,flag:"\u{1F1EE}\u{1F1F6}"},{name:"Ireland",id:"IE",dialCode:"+353",maxLength:9,flag:"\u{1F1EE}\u{1F1EA}"},{name:"Israel",id:"IL",dialCode:"+972",maxLength:9,flag:"\u{1F1EE}\u{1F1F1}"},{name:"Italy",id:"IT",dialCode:"+39",maxLength:10,flag:"\u{1F1EE}\u{1F1F9}"},{name:"Japan",id:"JP",dialCode:"+81",maxLength:10,flag:"\u{1F1EF}\u{1F1F5}"},{name:"Jordan",id:"JO",dialCode:"+962",maxLength:9,flag:"\u{1F1EF}\u{1F1F4}"},{name:"Kazakhstan",id:"KZ",dialCode:"+7",maxLength:10,flag:"\u{1F1F0}\u{1F1FF}"},{name:"Kenya",id:"KE",dialCode:"+254",maxLength:9,flag:"\u{1F1F0}\u{1F1EA}"},{name:"Kuwait",id:"KW",dialCode:"+965",maxLength:8,flag:"\u{1F1F0}\u{1F1FC}"},{name:"Latvia",id:"LV",dialCode:"+371",maxLength:8,flag:"\u{1F1F1}\u{1F1FB}"},{name:"Lebanon",id:"LB",dialCode:"+961",maxLength:8,flag:"\u{1F1F1}\u{1F1E7}"},{name:"Lithuania",id:"LT",dialCode:"+370",maxLength:8,flag:"\u{1F1F1}\u{1F1F9}"},{name:"Luxembourg",id:"LU",dialCode:"+352",maxLength:9,flag:"\u{1F1F1}\u{1F1FA}"},{name:"Macau",id:"MO",dialCode:"+853",maxLength:8,flag:"\u{1F1F2}\u{1F1F4}"},{name:"Malaysia",id:"MY",dialCode:"+60",maxLength:10,flag:"\u{1F1F2}\u{1F1FE}"},{name:"Mexico",id:"MX",dialCode:"+52",maxLength:10,flag:"\u{1F1F2}\u{1F1FD}"},{name:"Morocco",id:"MA",dialCode:"+212",maxLength:9,flag:"\u{1F1F2}\u{1F1E6}"},{name:"Myanmar",id:"MM",dialCode:"+95",maxLength:9,flag:"\u{1F1F2}\u{1F1F2}"},{name:"Nepal",id:"NP",dialCode:"+977",maxLength:10,flag:"\u{1F1F3}\u{1F1F5}"},{name:"Netherlands",id:"NL",dialCode:"+31",maxLength:9,flag:"\u{1F1F3}\u{1F1F1}"},{name:"New Zealand",id:"NZ",dialCode:"+64",maxLength:9,flag:"\u{1F1F3}\u{1F1FF}"},{name:"Nigeria",id:"NG",dialCode:"+234",maxLength:10,flag:"\u{1F1F3}\u{1F1EC}"},{name:"Norway",id:"NO",dialCode:"+47",maxLength:8,flag:"\u{1F1F3}\u{1F1F4}"},{name:"Oman",id:"OM",dialCode:"+968",maxLength:8,flag:"\u{1F1F4}\u{1F1F2}"},{name:"Pakistan",id:"PK",dialCode:"+92",maxLength:10,flag:"\u{1F1F5}\u{1F1F0}"},{name:"Panama",id:"PA",dialCode:"+507",maxLength:8,flag:"\u{1F1F5}\u{1F1E6}"},{name:"Paraguay",id:"PY",dialCode:"+595",maxLength:9,flag:"\u{1F1F5}\u{1F1FE}"},{name:"Peru",id:"PE",dialCode:"+51",maxLength:9,flag:"\u{1F1F5}\u{1F1EA}"},{name:"Philippines",id:"PH",dialCode:"+63",maxLength:10,flag:"\u{1F1F5}\u{1F1ED}"},{name:"Poland",id:"PL",dialCode:"+48",maxLength:9,flag:"\u{1F1F5}\u{1F1F1}"},{name:"Portugal",id:"PT",dialCode:"+351",maxLength:9,flag:"\u{1F1F5}\u{1F1F9}"},{name:"Qatar",id:"QA",dialCode:"+974",maxLength:8,flag:"\u{1F1F6}\u{1F1E6}"},{name:"Romania",id:"RO",dialCode:"+40",maxLength:9,flag:"\u{1F1F7}\u{1F1F4}"},{name:"Russia",id:"RU",dialCode:"+7",maxLength:10,flag:"\u{1F1F7}\u{1F1FA}"},{name:"Saudi Arabia",id:"SA",dialCode:"+966",maxLength:9,flag:"\u{1F1F8}\u{1F1E6}"},{name:"Serbia",id:"RS",dialCode:"+381",maxLength:9,flag:"\u{1F1F7}\u{1F1F8}"},{name:"Singapore",id:"SG",dialCode:"+65",maxLength:8,flag:"\u{1F1F8}\u{1F1EC}"},{name:"Slovakia",id:"SK",dialCode:"+421",maxLength:9,flag:"\u{1F1F8}\u{1F1F0}"},{name:"Slovenia",id:"SI",dialCode:"+386",maxLength:8,flag:"\u{1F1F8}\u{1F1EE}"},{name:"South Africa",id:"ZA",dialCode:"+27",maxLength:9,flag:"\u{1F1FF}\u{1F1E6}"},{name:"South Korea",id:"KR",dialCode:"+82",maxLength:10,flag:"\u{1F1F0}\u{1F1F7}"},{name:"Spain",id:"ES",dialCode:"+34",maxLength:9,flag:"\u{1F1EA}\u{1F1F8}"},{name:"Sri Lanka",id:"LK",dialCode:"+94",maxLength:9,flag:"\u{1F1F1}\u{1F1F0}"},{name:"Sweden",id:"SE",dialCode:"+46",maxLength:9,flag:"\u{1F1F8}\u{1F1EA}"},{name:"Switzerland",id:"CH",dialCode:"+41",maxLength:9,flag:"\u{1F1E8}\u{1F1ED}"},{name:"Syria",id:"SY",dialCode:"+963",maxLength:9,flag:"\u{1F1F8}\u{1F1FE}"},{name:"Taiwan",id:"TW",dialCode:"+886",maxLength:9,flag:"\u{1F1F9}\u{1F1FC}"},{name:"Thailand",id:"TH",dialCode:"+66",maxLength:9,flag:"\u{1F1F9}\u{1F1ED}"},{name:"Tunisia",id:"TN",dialCode:"+216",maxLength:8,flag:"\u{1F1F9}\u{1F1F3}"},{name:"Turkey",id:"TR",dialCode:"+90",maxLength:10,flag:"\u{1F1F9}\u{1F1F7}"},{name:"Ukraine",id:"UA",dialCode:"+380",maxLength:9,flag:"\u{1F1FA}\u{1F1E6}"},{name:"United Arab Emirates",id:"AE",dialCode:"+971",maxLength:9,flag:"\u{1F1E6}\u{1F1EA}"},{name:"United Kingdom",id:"GB",dialCode:"+44",maxLength:10,flag:"\u{1F1EC}\u{1F1E7}"},{name:"United States",id:"US",dialCode:"+1",maxLength:10,flag:"\u{1F1FA}\u{1F1F8}"},{name:"Uruguay",id:"UY",dialCode:"+598",maxLength:8,flag:"\u{1F1FA}\u{1F1FE}"},{name:"Uzbekistan",id:"UZ",dialCode:"+998",maxLength:9,flag:"\u{1F1FA}\u{1F1FF}"},{name:"Venezuela",id:"VE",dialCode:"+58",maxLength:10,flag:"\u{1F1FB}\u{1F1EA}"},{name:"Vietnam",id:"VN",dialCode:"+84",maxLength:9,flag:"\u{1F1FB}\u{1F1F3}"},{name:"Yemen",id:"YE",dialCode:"+967",maxLength:9,flag:"\u{1F1FE}\u{1F1EA}"}];var Fn={xs:"h-6 text-xs",sm:"h-8 text-sm",md:"h-10 text-sm",lg:"h-11 text-base",xl:"h-12 text-lg"},_n={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},On={default:"rounded-md border border-border bg-surface shadow-sm focus-within:ring-2 focus-within:ring-primary/40 focus-within:border-primary transition-all duration-normal",filled:"rounded-md border border-transparent bg-surface-secondary focus-within:bg-surface focus-within:ring-2 focus-within:ring-primary/40 focus-within:border-primary transition-all duration-normal",flushed:"rounded-none border-0 border-b border-border bg-transparent focus-within:border-primary transition-all",unstyled:"border-0 bg-transparent p-0"},$n={default:{default:"border-border focus-within:border-primary focus-within:ring-primary/40",filled:"focus-within:border-primary focus-within:ring-primary/40",flushed:"border-border focus-within:border-primary",unstyled:""},error:{default:"border-error focus-within:border-error focus-within:ring-error/20",filled:"bg-error/5 focus-within:border-error focus-within:ring-error/20",flushed:"border-error focus-within:border-error",unstyled:""},success:{default:"border-success focus-within:border-success focus-within:ring-success/20",filled:"bg-success/5 focus-within:border-success focus-within:ring-success/20",flushed:"border-success focus-within:border-success",unstyled:""},warning:{default:"border-warning focus-within:border-warning focus-within:ring-warning/20",filled:"bg-warning/5 border-warning focus-within:border-warning focus-within:ring-warning/20",flushed:"border-warning focus-within:border-warning",unstyled:""}},jn={default:"text-text-muted",error:"text-error",success:"text-success",warning:"text-warning"},Kn="cursor-not-allowed opacity-50 bg-surface-secondary [&_*]:cursor-not-allowed";function Un(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}var Zt=ae.forwardRef(function({label:e,required:n=false,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,variant:s="default",size:d="md",state:l="default",fullWidth:f=true,leftElement:m,rightElement:p,prefix:u,suffix:b,wrapperClassName:B,inputGroupClassName:v,inputClassName:I,labelClassName:k,helperClassName:M,id:E,disabled:C,className:x,clearable:y,isLoading:g,value:R,defaultValue:h,onChange:w,showFlag:L=true,defaultCountryCode:D="+91",autoComplete:H="tel",...A},F){let $=ae.useId(),V=E??$,U=`${V}-helper`,_=`${V}-state`,[X,T]=ae.useState(null),[O,N]=ae.useState(false),[S,P]=ae.useState(""),z=ae.useRef(null),[K,Y]=ae.useState(h??{countryCode:D,phoneNumber:""}),Q=R!==void 0,J=Q?R:K,ee=dt.find(G=>G.dialCode===J.countryCode)??dt[0],xe=ee?.maxLength??15,ye=y&&J.phoneNumber.length>0,yt=m!==void 0,vt=p!==void 0||!!ye||!!g,Le=X?"error":l,W=Un(Le,X??i,a,c),ve=[o?U:null,W?_:null].filter(Boolean).join(" ")||void 0,Ae=G=>{Q||Y(G),w&&w(G);},Me=G=>{let ke=G.target.value,Ct=ke.replace(/\D/g,"");T(Ct!==ke?"Only numbers are allowed":null),!(Ct.length>xe)&&Ae({...J,phoneNumber:Ct});},En=()=>{T(null),Ae({...J,phoneNumber:""});};ae.useEffect(()=>{if(!O)return;let G=ke=>{z.current&&!z.current.contains(ke.target)&&N(false);};return document.addEventListener("mousedown",G),()=>{document.removeEventListener("mousedown",G);}},[O]);let Wt=dt.filter(G=>G.name.toLowerCase().includes(S.toLowerCase())||G.dialCode.includes(S)),Tn=()=>g?jsxRuntime.jsxs("svg",{className:"animate-spin h-4 w-4 text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):ye?jsxRuntime.jsx("button",{type:"button",onClick:En,disabled:C,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast disabled:cursor-not-allowed","aria-label":"Clear input",children:jsxRuntime.jsx(solid.XMarkIcon,{className:"w-4 h-4"})}):p,In=u!==void 0||s==="flushed"||s==="unstyled"?"":"rounded-l-md";return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",f?"w-full":"w-fit",B,x),children:[e!==void 0&&jsxRuntime.jsxs("label",{htmlFor:V,className:t("font-black leading-none text-text mb-2 uppercase tracking-widest",_n[d],k),children:[e,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:t("flex items-stretch",f?"w-full":"w-fit",v),children:[u!==void 0&&jsxRuntime.jsx("span",{className:"inline-flex items-center rounded-l-md border border-r-0 border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",children:u}),jsxRuntime.jsxs("div",{ref:z,className:t("relative flex flex-1 items-stretch",Fn[d],On[s],$n[Le][s],C?Kn:"",u!==void 0&&b!==void 0?"rounded-none":u!==void 0?"rounded-l-none":b!==void 0?"rounded-r-none":""),children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{N(!O);},disabled:!!C||!!g,className:t("relative flex items-center justify-center flex-shrink-0 px-2 sm:px-3 text-text bg-surface-secondary border-r border-border hover:bg-hover active:bg-active transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:z-10 disabled:cursor-not-allowed",In),children:[L&&ee&&jsxRuntime.jsx("span",{className:"mr-1.5 text-base sm:text-lg opacity-90",children:ee.flag}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:ee?.dialCode??D}),jsxRuntime.jsx(solid.ChevronDownIcon,{className:t("w-3.5 h-3.5 ml-1.5 text-text-secondary transition-transform",O&&"rotate-180")})]}),O&&jsxRuntime.jsxs("div",{className:"absolute top-full left-0 mt-1 w-64 rounded-md border border-border bg-surface p-1 shadow-lg z-dropdown flex flex-col animate-in fade-in zoom-in-95 duration-fast",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 pb-2 sticky top-0 bg-surface z-10 border-b border-divider",children:jsxRuntime.jsx("input",{type:"text",placeholder:"Search country...",className:"w-full text-sm bg-transparent px-1 focus:outline-none text-text placeholder:text-text-muted",value:S,onChange:G=>{P(G.target.value);},onKeyDown:G=>{G.stopPropagation();}})}),jsxRuntime.jsx("ul",{role:"listbox",className:"max-h-56 overflow-y-auto overflow-x-hidden p-1 scrollbar-thin scrollbar-thumb-border scrollbar-track-transparent",children:Wt.length>0?Wt.map(G=>jsxRuntime.jsxs("li",{role:"option",tabIndex:0,"aria-selected":J.countryCode===G.dialCode,className:t("flex items-center px-2 py-1.5 text-sm rounded-sm cursor-pointer transition-colors outline-none focus:bg-hover active:bg-active",J.countryCode===G.dialCode?"bg-primary/10 text-primary font-medium":"text-text"),onKeyDown:ke=>{(ke.key==="Enter"||ke.key===" ")&&(ke.preventDefault(),Ae({...J,countryCode:G.dialCode}),N(false),P(""));},onClick:()=>{Ae({...J,countryCode:G.dialCode}),N(false),P("");},children:[jsxRuntime.jsx("span",{className:"mr-2 text-base",children:G.flag}),jsxRuntime.jsx("span",{className:"flex-1 truncate",children:G.name}),jsxRuntime.jsx("span",{className:t("text-xs ml-2",J.countryCode===G.dialCode?"text-primary/70":"text-text-muted"),children:G.dialCode})]},G.id)):jsxRuntime.jsx("li",{className:"px-2 py-3 text-center text-sm text-text-muted",children:"No countries found"})})]}),yt&&jsxRuntime.jsx("div",{className:"flex items-center pl-3",children:jsxRuntime.jsx("span",{className:"text-text-secondary flex items-center justify-center",children:m})}),jsxRuntime.jsx("input",{ref:F,...A,id:V,disabled:!!C||!!g,type:"tel",inputMode:"numeric",value:J.phoneNumber,onChange:Me,autoComplete:H,"aria-invalid":Le==="error"?true:void 0,"aria-describedby":ve,"aria-required":n,maxLength:xe,className:t("flex-1 w-full bg-transparent border-none outline-none focus:ring-0 focus:outline-none focus:border-none focus-visible:ring-0 focus-visible:outline-none px-3 min-w-0 transition-colors duration-150 disabled:cursor-not-allowed",I)}),vt&&jsxRuntime.jsx("div",{className:"flex items-center pr-3",children:jsxRuntime.jsx("span",{className:"text-text-secondary flex items-center justify-center",children:Tn()})})]}),b!==void 0&&jsxRuntime.jsx("span",{className:"inline-flex items-center rounded-r-md border border-l-0 border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",children:b})]}),o!==void 0&&jsxRuntime.jsx("p",{id:U,className:t("text-xs leading-tight text-text-muted",M),children:o}),W!==void 0&&jsxRuntime.jsx("p",{id:_,role:Le==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1",jn[Le],M),children:W})]})});Zt.displayName="Phone";var Yn={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},Qn={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},eo={default:"rounded-md border border-border bg-surface shadow-sm focus:outline-none",filled:"rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none",unstyled:"border-0 bg-transparent p-0 focus:outline-none"},to={default:{default:"border-border focus:border-primary",filled:"focus:border-primary",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error",filled:"bg-error/5 focus:border-error",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success",filled:"bg-success/5 focus:border-success",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning",filled:"bg-warning/5 focus:border-warning",flushed:"border-warning focus:border-warning",unstyled:""}},ro={default:"text-text-muted",error:"text-error",success:"text-success",warning:"text-warning"};function no(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}function Yt({children:r,side:e}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",e==="left"?"rounded-l-md border-r-0":"rounded-r-md border-l-0"),children:r})}var Xe=ae.forwardRef(function({label:e,required:n=false,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,variant:s="default",size:d="md",state:l="default",fullWidth:f=true,leftElement:m,rightElement:p,prefix:u,suffix:b,wrapperClassName:B,inputGroupClassName:v,inputClassName:I,labelClassName:k,helperClassName:M,id:E,disabled:C,className:x,clearable:y,isLoading:g,multiline:R,rows:h=4,type:w="text",value:L,onChange:D,...H},A){let F=ae.useId(),$=E??F,V=`${$}-helper`,U=`${$}-state`,[_,X]=ae.useState(w),T=w==="password",N=y&&(typeof L=="string"||typeof L=="number")&&String(L).length>0,S=m!==void 0,P=p!==void 0||!!N||!!g||T,z=no(l,i,a,c),K=[o?V:null,z?U:null].filter(Boolean).join(" ")||void 0,Y=()=>{let ee=A&&typeof A=="object"&&"current"in A?A.current:null;if(ee){Object.getOwnPropertyDescriptor((R?window.HTMLTextAreaElement:window.HTMLInputElement).prototype,"value")?.set?.call(ee,"");let xe=new Event("input",{bubbles:true});ee.dispatchEvent(xe);}else D&&D({target:{value:""},currentTarget:{value:""},preventDefault:()=>{},stopPropagation:()=>{}});},Q=()=>g?jsxRuntime.jsxs("svg",{className:"animate-spin h-5 w-5 text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):N?jsxRuntime.jsx("button",{type:"button",onClick:Y,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-interaction-hover p-0.5 transition w-6 h-6 border-0 bg-transparent cursor-pointer","aria-label":"Clear input",children:jsxRuntime.jsx(outline.XMarkIcon,{className:"w-[18px] h-[18px]"})}):T?jsxRuntime.jsx("button",{type:"button",onClick:()=>{X(ee=>ee==="password"?"text":"password");},className:"flex items-center justify-center rounded-full text-text-muted hover:text-text transition w-6 h-6 border-0 bg-transparent cursor-pointer","aria-label":_==="password"?"Show password":"Hide password",children:_==="password"?jsxRuntime.jsx(outline.EyeIcon,{className:"w-5 h-5"}):jsxRuntime.jsx(outline.EyeSlashIcon,{className:"w-5 h-5"})}):p,J={id:$,disabled:!!C||!!g,value:L,onChange:D,"aria-invalid":l==="error"?true:void 0,"aria-describedby":K,"aria-required":n,className:t("w-full bg-transparent border-0 focus:outline-none focus:ring-0 outline-none h-full",!R&&Yn[d],R&&"py-3 px-4 resize-none",w==="number"&&"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",I),style:{paddingLeft:S?"0.5rem":void 0,paddingRight:P?"0.5rem":void 0},...H};return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",f?"w-full":"w-fit",B,x),children:[e!==void 0&&jsxRuntime.jsxs("label",{htmlFor:$,className:t("font-black leading-none text-text mb-2 uppercase tracking-widest",Qn[d],k),children:[e,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:t("flex items-stretch transition-all duration-150 overflow-hidden",eo[s],to[l][s],f?"w-full":"w-fit","focus-within:ring-4 focus-within:ring-primary/20 focus-within:border-primary",C&&"opacity-50 cursor-not-allowed bg-surface-secondary",R&&"h-auto",v),children:[u!==void 0&&jsxRuntime.jsx(Yt,{side:"left",children:u}),jsxRuntime.jsxs("div",{className:"flex flex-1 items-center min-w-0",children:[S&&jsxRuntime.jsx("div",{className:t("pl-3 shrink-0 flex items-center justify-center",R&&"self-start mt-3"),"aria-hidden":"true",children:m}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 h-full",children:R?jsxRuntime.jsx("textarea",{ref:A,rows:h,...J}):jsxRuntime.jsx("input",{ref:A,type:_,...J,onKeyDown:ee=>{w==="number"&&["e","E","+"].includes(ee.key)&&ee.preventDefault(),H.onKeyDown?.(ee);}})}),P&&jsxRuntime.jsx("div",{className:t("pr-3 shrink-0 flex items-center justify-center text-text-secondary",R&&"self-start mt-3"),style:{width:"2.5rem"},"aria-hidden":"true",children:Q()})]}),b!==void 0&&jsxRuntime.jsx(Yt,{side:"right",children:b})]}),o!==void 0&&jsxRuntime.jsx("p",{id:V,className:t("text-xs leading-tight text-text-muted ",M),children:o}),z!==void 0&&jsxRuntime.jsx("p",{id:U,role:l==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1",ro[l],M),children:z})]})});Xe.displayName="TextInput";var er=ae.forwardRef(({debounce:r=300,onDebouncedChange:e,onChange:n,value:o,defaultValue:i,clearable:a=true,leftElement:c,...s},d)=>{let[l,f]=ae.useState(o??i??""),[m,p]=ae.useState(o),[u,b]=ae.useState(String(o??i??""));return o!==m&&(f(o??""),p(o),b(String(o??""))),ae.useEffect(()=>{if(String(l)===u)return;let I=setTimeout(()=>{e&&(e(String(l)),b(String(l)));},r);return ()=>{clearTimeout(I);}},[l,r,e,u]),jsxRuntime.jsx(Xe,{...s,ref:d,value:l,onChange:I=>{f(I.target.value),n&&n(I);},clearable:a,leftElement:c??jsxRuntime.jsx(outline.MagnifyingGlassIcon,{className:"w-[18px] h-[18px] text-text-muted"}),type:"text"})});er.displayName="SearchInput";var tr=150,uo={top:"-translate-x-1/2 -translate-y-full",bottom:"-translate-x-1/2",left:"-translate-x-full -translate-y-1/2",right:"-translate-y-1/2"},mo={top:"top-full left-1/2 -translate-x-1/2",bottom:"bottom-full left-1/2 -translate-x-1/2",left:"left-full top-1/2 -translate-y-1/2",right:"right-full top-1/2 -translate-y-1/2"},fo={top:"border-l-transparent border-r-transparent border-b-transparent",bottom:"border-l-transparent border-r-transparent border-t-transparent",left:"border-t-transparent border-b-transparent border-r-transparent",right:"border-t-transparent border-b-transparent border-l-transparent"},po={top:"translate-y-1",bottom:"-translate-y-1",left:"translate-x-1",right:"-translate-x-1"},go={sm:"px-2 py-1 text-xs rounded-md",md:"px-3 py-1.5 text-sm rounded-lg",lg:"px-4 py-2 text-sm rounded-xl"},bo={dark:["bg-gray-900 text-gray-50","shadow-[0_4px_16px_rgba(0,0,0,0.35)]","ring-1 ring-white/10"].join(" "),primary:["bg-gradient-to-b from-blue-500 to-blue-600 text-white","shadow-[0_4px_16px_rgba(59,130,246,0.45)]","ring-1 ring-blue-400/30"].join(" "),light:["bg-white text-gray-800","border border-gray-200/80","shadow-[0_4px_16px_rgba(0,0,0,0.10)]"].join(" ")},xo={dark:{top:"border-t-gray-900",bottom:"border-b-gray-900",left:"border-l-gray-900",right:"border-r-gray-900"},primary:{top:"border-t-blue-600",bottom:"border-b-blue-500",left:"border-l-blue-600",right:"border-r-blue-500"},light:{top:"border-t-gray-200",bottom:"border-b-gray-200",left:"border-l-gray-200",right:"border-r-gray-200"}};function Nt({content:r,children:e,placement:n="top",trigger:o="hover",showDelay:i=0,hideDelay:a=100,size:c="md",variant:s="dark",open:d,disabled:l=false,maxWidth:f=240,className:m,wrapperClassName:p}){let[u,b]=ae.useState(false),[B,v]=ae.useState(false),[I,k]=ae.useState(false),[M,E]=ae.useState({top:0,left:0}),[C,x]=ae.useState(n),y=d!==void 0,g=y?d:u,R=ae.useRef(null),h=ae.useRef(null),w=ae.useRef(null),L=ae.useRef(null),D=ae.useRef(null),H=ae.useId(),A=ae.useCallback(()=>{w.current&&clearTimeout(w.current),L.current&&clearTimeout(L.current),D.current&&clearTimeout(D.current);},[]),F=ae.useCallback(()=>{if(l||y)return;A();let T=()=>{b(true);};i>0?w.current=setTimeout(T,i):T();},[l,y,A,i]),$=ae.useCallback(()=>{y||(A(),L.current=setTimeout(()=>{b(false);},a));},[y,A,a]),V=ae.useCallback(()=>{l||y||b(T=>!T);},[l,y]);ae.useEffect(()=>{let T=null;return g&&!l?(A(),T=requestAnimationFrame(()=>{v(true),T=requestAnimationFrame(()=>{k(true);});})):(T=requestAnimationFrame(()=>{k(false);}),D.current=setTimeout(()=>{v(false);},tr)),()=>{T&&cancelAnimationFrame(T),D.current&&clearTimeout(D.current);}},[g,l,A]);let U=ae.useCallback(()=>{if(!R.current||!g)return;let T=R.current.getBoundingClientRect(),O=h.current,N=8,S=n,P=Q=>{switch(Q){case "top":return {t:T.top-N,l:T.left+T.width/2};case "bottom":return {t:T.bottom+N,l:T.left+T.width/2};case "left":return {t:T.top+T.height/2,l:T.left-N};case "right":return {t:T.top+T.height/2,l:T.right+N}}},z=P(n),K=z.t,Y=z.l;if(O){let Q=O.getBoundingClientRect(),J=12;if(n==="top"&&T.top-Q.height-N<J?S="bottom":n==="bottom"&&T.bottom+Q.height+N>window.innerHeight-J?S="top":n==="left"&&T.left-Q.width-N<J?S="right":n==="right"&&T.right+Q.width+N>window.innerWidth-J&&(S="left"),S!==n){let ye=P(S);K=ye.t,Y=ye.l;}let ee=Q.width/2,xe=Q.height/2;S==="top"||S==="bottom"?Y=Math.max(J+ee,Math.min(window.innerWidth-J-ee,Y)):K=Math.max(J+xe,Math.min(window.innerHeight-J-xe,K));}x(S),E({top:K,left:Y});},[g,n]);ae.useLayoutEffect(()=>{if(!g)return;let T=null,O=()=>{T=requestAnimationFrame(U);};return O(),window.addEventListener("resize",O),window.addEventListener("scroll",O,true),()=>{T!==null&&cancelAnimationFrame(T),window.removeEventListener("resize",O),window.removeEventListener("scroll",O,true);}},[g,U]),ae.useEffect(()=>{if(!g)return;let T=O=>{O.key==="Escape"&&(A(),b(false));};return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T);}},[g,A]),ae.useEffect(()=>A,[A]);let _={};(o==="hover"||o==="focus")&&(_.onFocus=F,_.onBlur=$),o==="hover"?(_.onMouseEnter=F,_.onMouseLeave=$):o==="click"&&(_.onClick=V),_.onKeyDown=T=>{(T.key==="Enter"||T.key===" ")&&V();};let X=e;return jsxRuntime.jsxs("span",{ref:R,className:t("relative inline-flex isolate z-0",p),"aria-describedby":g&&!l?H:void 0,..._,children:[jsxRuntime.jsx("span",{className:"relative z-0",children:X}),B&&!l&&reactDom.createPortal(jsxRuntime.jsx("div",{ref:h,className:t("pointer-events-none fixed z-[9999]",uo[C]),style:{top:M.top,left:M.left},children:jsxRuntime.jsxs("div",{id:H,role:"tooltip",style:{maxWidth:f,transitionDuration:`${tr.toString()}ms`},className:t("relative min-w-max whitespace-normal break-words","font-sans font-medium tracking-tight text-center leading-snug","transition-[opacity,transform] ease-out",I?"opacity-100 translate-x-0 translate-y-0":["opacity-0",po[C]].join(" "),bo[s],go[c],m),children:[jsxRuntime.jsx("div",{"aria-hidden":"true",className:t("absolute border-[6px]","drop-shadow-sm",mo[C],fo[C],xo[s][C])}),r]})}),document.body)]})}var wo={xs:"h-6 px-2.5 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-11 px-6 text-base",xl:"h-12 px-8 text-lg"},yo={xs:"w-3 h-3",sm:"w-3.5 h-3.5",md:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5"},vo={primary:"bg-primary text-text-inverse hover:bg-primary-hover hover:shadow-xl hover:shadow-primary/20 active:scale-95 border border-transparent shadow-md focus-visible:ring-primary/40 transition-all duration-normal",secondary:"bg-secondary text-text hover:bg-secondary-hover border border-transparent focus-visible:ring-primary/40",outline:"bg-transparent text-text border border-border hover:bg-hover hover:text-text focus-visible:ring-primary/40",ghost:"bg-transparent text-text border border-transparent hover:bg-hover hover:text-text focus-visible:ring-primary/40",danger:"bg-error text-text-inverse hover:bg-error/90 border border-transparent shadow-sm focus-visible:ring-error/40",success:"bg-success text-text-inverse hover:bg-success/90 border border-transparent shadow-sm focus-visible:ring-success/40",warning:"bg-warning text-text-inverse hover:bg-warning/90 border border-transparent shadow-sm focus-visible:ring-warning/40",info:"bg-info text-text-inverse hover:bg-info/90 border border-transparent shadow-sm focus-visible:ring-info/40"},Co="opacity-50 cursor-not-allowed shadow-none",mt=ae.forwardRef(function({children:e,className:n,variant:o="primary",size:i="md",fullWidth:a=false,isLoading:c=false,loadingText:s,disabled:d=false,leftIcon:l,rightIcon:f,tooltip:m,tooltipPlacement:p="top",type:u="button",...b},B){let v=d||c,I=jsxRuntime.jsxs("div",{className:t("relative flex items-center justify-center",yo[i]),children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full border-1 border-current opacity-20 animate-ping"}),jsxRuntime.jsxs("svg",{className:"animate-spin relative z-10 w-full h-full",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",role:"status",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})]}),k=jsxRuntime.jsx("button",{ref:B,type:u,disabled:v,"aria-disabled":v,"aria-busy":c,className:t("relative inline-flex items-center justify-center gap-2 font-bold rounded-md transition-[background-color,border-color,color,box-shadow,transform,opacity] duration-normal focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-surface",wo[i],vo[o],a?"w-full":"",v?Co:"",n),...b,children:c&&s?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[I,jsxRuntime.jsx("span",{children:s})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l&&jsxRuntime.jsx("span",{className:t("inline-flex shrink-0",c&&"invisible opacity-0"),children:l}),jsxRuntime.jsx("span",{className:t("truncate flex items-center justify-center",c&&"invisible opacity-0"),children:e}),f&&jsxRuntime.jsx("span",{className:t("inline-flex shrink-0",c&&"invisible opacity-0"),children:f}),c&&!s&&jsxRuntime.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:I})]})});return m?jsxRuntime.jsx(Nt,{content:m,placement:p,wrapperClassName:a?"w-full":"",children:k}):k});mt.displayName="Button";var Ro={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-11 h-11",xl:"w-12 h-12"},Be=ae.forwardRef(({icon:r,"aria-label":e,isRound:n,className:o,size:i="md",...a},c)=>jsxRuntime.jsx(mt,{ref:c,size:i,className:t("p-0 flex-shrink-0 min-w-0",Ro[i],n&&"rounded-full",o),"aria-label":e,...a,children:r}));Be.displayName="IconButton";var Pt=({groups:r,isCollapsed:e,onToggleCollapse:n,logo:o,footer:i,className:a,glass:c=false,width:s=288,collapsedWidth:d=80,showToggleButton:l=false,togglePosition:f="center",position:m="left",centerIcons:p=true,classNames:u={},styles:b={},renderItem:B})=>{let[v,I]=ae.useState(false),[k,M]=ae.useState({}),E=e??v,C=()=>{let h=!E;n?n(h):I(h);},x=h=>{M(w=>({...w,[h]:!w[h]}));},y=E?d:s,g=(h,w=0)=>{if(h.hidden)return null;if(B)return jsxRuntime.jsx("div",{children:B(h,E)},h.id);let L=h.items&&h.items.length>0,D=k[h.id]??!!h.isExpanded,H=h.component??"button",A=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[h.icon&&jsxRuntime.jsx("span",{className:t("shrink-0 transition-colors duration-normal",h.isActive?"text-text-inverse":"text-text-muted group-hover:text-text",E&&p&&"mx-auto",u.itemIcon),style:b.itemIcon,children:h.icon}),!E&&jsxRuntime.jsx("span",{className:t("truncate",u.itemLabel),style:b.itemLabel,children:h.label}),!E&&jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[h.badge&&jsxRuntime.jsx("span",{className:"shrink-0",children:h.badge}),L&&jsxRuntime.jsx(outline.ChevronDownIcon,{className:t("w-4 h-4 transition-transform duration-normal",D&&"rotate-180")})]}),E&&jsxRuntime.jsx("div",{className:"absolute left-full ml-2 px-2 py-1 bg-surface-secondary border border-border rounded shadow-lg text-xs opacity-0 pointer-events-none group-hover:opacity-100 transition-opacity z-index-tooltip whitespace-nowrap text-text",children:h.label})]});return jsxRuntime.jsxs("div",{className:"w-full",children:[jsxRuntime.jsx(H,{type:H==="button"?"button":void 0,onClick:F=>{L&&!E&&(F.preventDefault(),x(h.id)),h.onClick?.();},className:t("w-full flex items-center gap-4 transition-all duration-normal group relative text-base rounded-lg",w===0?"px-4 py-3":"px-3 py-2 pl-10",h.isActive?"bg-black text-text-inverse shadow-md shadow-black/20 font-bold":"text-text-secondary hover:bg-hover hover:text-text",E&&"justify-center px-0",h.isActive&&u.itemActive,E&&u.itemCollapsed,u.item),style:b.item,title:E?h.label:void 0,...h.componentProps??{},children:A}),L&&D&&!E&&jsxRuntime.jsx("div",{className:"mt-1 space-y-1",children:h.items?.map(F=>g(F,w+1))})]},h.id)},R=l&&jsxRuntime.jsx("button",{onClick:C,className:t("absolute z-index-popover flex items-center justify-center w-8 h-8 rounded-full bg-surface border border-border shadow-sm hover:shadow-md transition-all duration-normal hover:bg-hover text-text-muted hover:text-text",m==="left"?"-right-4":"-left-4",f==="top"&&"top-12",f==="center"&&"top-1/2 -translate-y-1/2",f==="bottom"&&"bottom-12",u.toggleButton),style:b.toggleButton,"aria-label":E?"Expand sidebar":"Collapse sidebar",children:E?m==="left"?jsxRuntime.jsx(outline.ChevronRightIcon,{className:"w-4 h-4"}):jsxRuntime.jsx(outline.ChevronLeftIcon,{className:"w-4 h-4"}):m==="left"?jsxRuntime.jsx(outline.ChevronLeftIcon,{className:"w-4 h-4"}):jsxRuntime.jsx(outline.ChevronRightIcon,{className:"w-4 h-4"})});return jsxRuntime.jsxs("aside",{className:t("flex flex-col h-full bg-surface transition-all duration-slow ease-in-out z-index-sticky shadow-premium relative",m==="right"&&"border-l border-border",m==="left"&&"border-r border-border",c&&"glass",u.root,a),style:{width:y,...b.root},children:[R,o&&jsxRuntime.jsx("div",{className:t("flex items-center px-6 pt-10 pb-6",E&&"justify-center px-0",u.header),style:b.header,children:o}),jsxRuntime.jsx("div",{className:t("flex-1 overflow-y-auto overflow-x-hidden px-4 py-6 space-y-10 custom-scrollbar",u.content),style:b.content,children:r.map(h=>h.hidden?null:jsxRuntime.jsxs("div",{className:t("space-y-4",u.group),style:b.group,children:[h.label&&!E&&jsxRuntime.jsx("h3",{className:t("px-2 text-xs font-bold text-text-muted uppercase tracking-wider",u.groupLabel),style:b.groupLabel,children:h.label}),jsxRuntime.jsx("div",{className:"space-y-1",children:h.items.map(w=>g(w))})]},h.id))}),i&&jsxRuntime.jsx("div",{className:t("p-6 mt-auto border-t border-border/50",E&&"flex justify-center px-0",u.footer),style:b.footer,children:i})]})};Pt.displayName="Sidebar";var Tt=({logo:r,children:e,actions:n,userSection:o,isSticky:i=true,className:a,glass:c=false,onMenuToggle:s})=>jsxRuntime.jsxs("header",{className:t("h-16 flex items-center justify-between px-6 bg-surface border-b border-border transition-all duration-normal",i&&"sticky top-0 z-index-sticky",c&&"glass",a),children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[s&&jsxRuntime.jsx(Be,{icon:jsxRuntime.jsx(outline.Bars3Icon,{className:"w-5 h-5"}),"aria-label":"Toggle Menu",variant:"ghost",size:"sm",onClick:s,className:"lg:hidden"}),r&&jsxRuntime.jsx("div",{className:"flex items-center",children:r})]}),jsxRuntime.jsx("div",{className:"flex-1 max-w-xl px-8 hidden md:block",children:e}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[n&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:n}),o&&jsxRuntime.jsx("div",{className:"flex items-center pl-2 ml-2 border-l border-border h-8",children:o})]})]});Tt.displayName="Header";var Ao={xs:"w-3.5 h-3.5",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-7 h-7"},Ho={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},ir={xs:"text-[10px]",sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg"},zo={default:"border-border text-accent focus:ring-accent/40",error:"border-error text-error focus:ring-error/20",success:"border-success text-success focus:ring-success/20",warning:"border-warning text-warning focus:ring-warning/20"},Vo={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},Fo="disabled:opacity-50 disabled:bg-surface-secondary disabled:cursor-not-allowed disabled:border-border";function _o(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}var lr=ae.forwardRef(function({id:e,label:n,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,size:s="md",state:d="default",indeterminate:l=false,className:f,containerClassName:m,wrapperClassName:p,inputClassName:u,labelClassName:b,messageClassName:B,disabled:v=false,required:I=false,...k},M){let E=ae.useId(),C=e??`checkbox-${E.replace(/:/g,"")}`,x=`${C}-helper`,y=`${C}-state`,g=ae.useRef(null),R=D=>{g.current=D,typeof M=="function"?M(D):M&&(M.current=D);};ae.useEffect(()=>{g.current&&(g.current.indeterminate=l);},[l]);let h=_o(d,i,a,c),w=[o?x:null,h?y:null].filter(Boolean).join(" ")||void 0,L=o??h;return jsxRuntime.jsxs("div",{className:t("relative flex items-start",m,p,f),children:[jsxRuntime.jsxs("div",{className:"relative flex h-6 w-auto items-center justify-center",children:[jsxRuntime.jsx("input",{...k,ref:R,id:C,type:"checkbox",disabled:v,required:I,"aria-invalid":d==="error"?true:void 0,"aria-describedby":w,className:t("peer appearance-none rounded-sm border bg-surface transition-all duration-normal","checked:bg-current checked:border-transparent","indeterminate:bg-current indeterminate:border-transparent","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-surface",Ao[s],zo[d],Fo,u)}),jsxRuntime.jsx(solid$1.CheckIcon,{className:t("pointer-events-none absolute inset-0 m-auto text-text-inverse opacity-0 transition-opacity peer-checked:opacity-100",s==="xs"?"w-2.5 h-2.5":s==="sm"?"w-3 h-3":s==="md"?"w-3.5 h-3.5":s==="lg"?"w-4 h-4":"w-5 h-5")}),jsxRuntime.jsx(solid$1.MinusIcon,{className:t("pointer-events-none absolute inset-0 m-auto text-text-inverse opacity-0 transition-opacity peer-indeterminate:opacity-100",s==="xs"?"w-2.5 h-2.5":s==="sm"?"w-3 h-3":s==="md"?"w-3.5 h-3.5":s==="lg"?"w-4 h-4":"w-5 h-5")})]}),(!!n||!!L)&&jsxRuntime.jsxs("div",{className:"ml-3 flex flex-col pt-0.5",children:[n&&jsxRuntime.jsxs("label",{htmlFor:C,className:t("font-bold leading-none text-text uppercase tracking-widest select-none",v&&"opacity-50 cursor-not-allowed",Ho[s],b),children:[n,I&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),o&&jsxRuntime.jsx("p",{id:x,className:t("text-text-muted mt-1 font-medium",v&&"opacity-50",ir[s],B),children:o}),h&&jsxRuntime.jsx("p",{id:y,role:d==="error"?"alert":void 0,className:t("mt-1",v&&"opacity-50",Vo[d],ir[s],B),children:h})]})]})});lr.displayName="Checkbox";var Jo={success:jsxRuntime.jsx(outline.CheckCircleIcon,{className:"w-5 h-5"}),error:jsxRuntime.jsx(outline.ExclamationCircleIcon,{className:"w-5 h-5"}),warning:jsxRuntime.jsx(outline.ExclamationTriangleIcon,{className:"w-5 h-5"}),info:jsxRuntime.jsx(outline.InformationCircleIcon,{className:"w-5 h-5"})},Go={success:"bg-white/20",error:"bg-white/20",warning:"bg-white/20",info:"bg-white/20"},qo={success:"bg-success/20 text-success",error:"bg-error/20 text-error",warning:"bg-warning/20 text-warning",info:"bg-info/20 text-info"},Wo={success:"bg-success/10 text-success",error:"bg-error/10 text-error",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"},Zo={solid:{success:"bg-success text-text border-transparent shadow-[0_8px_32px_rgba(16,185,129,0.3)]",error:"bg-error text-text border-transparent shadow-[0_8px_32px_rgba(239,68,68,0.3)]",warning:"bg-warning text-text border-transparent shadow-[0_8px_32px_rgba(245,158,11,0.3)]",info:"bg-info text-text border-transparent shadow-[0_8px_32px_rgba(59,130,246,0.3)]"},subtle:{success:"bg-success/10 text-text border-success/25 shadow-[0_8px_32px_rgba(16,185,129,0.12)]",error:"bg-error/10 text-text border-error/25 shadow-[0_8px_32px_rgba(239,68,68,0.12)]",warning:"bg-warning/10 text-text border-warning/25 shadow-[0_8px_32px_rgba(245,158,11,0.12)]",info:"bg-info/10 text-text border-info/25 shadow-[0_8px_32px_rgba(59,130,246,0.12)]"},"left-accent":{success:"bg-surface border-border border-l-success shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",error:"bg-surface border-border border-l-error shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",warning:"bg-surface border-border border-l-warning shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",info:"bg-surface border-border border-l-info shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text"}},Yo={success:"text-success",error:"text-error",warning:"text-warning",info:"text-info"},cr=ae.forwardRef((r,e)=>{let{title:n,description:o,status:i="info",variant:a="solid",isClosable:c=true,onClose:s,className:d}=r,l=a==="solid",f=a==="left-accent",m=l?Go[i]:f?Wo[i]:qo[i];return jsxRuntime.jsxs("div",{ref:e,role:"alert",className:t("relative flex w-full min-w-80 max-w-sm items-start gap-3 px-4 py-3.5 rounded-xl border overflow-hidden transition-all duration-200",f&&"border-l-4 rounded-l-none",Zo[a][i],d),children:[jsxRuntime.jsx("div",{className:t("flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-lg mt-0.5",m),children:Jo[i]}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 pt-0.5",children:[n&&jsxRuntime.jsx("p",{className:t("text-sm font-bold leading-tight tracking-wide",!l&&Yo[i]),children:n}),o&&jsxRuntime.jsx("p",{className:t("text-sm leading-relaxed mt-0.5",l?"opacity-90":"text-text-secondary"),children:o})]}),c&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:t("flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-md transition-all duration-150 active:scale-90",l?"hover:bg-white/20 text-text-inverse":"hover:bg-black/10 dark:hover:bg-white/10 text-text-secondary hover:text-text"),"aria-label":"Close",children:jsxRuntime.jsx(outline.XMarkIcon,{className:"w-4 h-4 stroke-2"})})]})});cr.displayName="Toaster";var aa={xs:"py-1 px-2 text-xs min-h-[1.75rem]",sm:"py-1.5 px-3 text-sm min-h-[2.125rem]",md:"py-2 px-3 text-sm min-h-[2.5rem]",lg:"py-2.5 px-4 text-base min-h-[3rem]",xl:"py-3 px-4 text-lg min-h-[3.5rem]"},mr={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},sa={default:"rounded-md border border-border bg-surface shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-0 transition-all duration-normal",filled:"rounded-md border border-transparent bg-surface-secondary focus-visible:bg-surface focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-0 transition-all duration-normal",flushed:"rounded-none border-0 border-b border-border bg-transparent focus-visible:outline-none focus-visible:ring-0",unstyled:"border-0 bg-transparent p-0 focus-visible:outline-none focus-visible:ring-0"},ia={default:{default:"border-border focus-visible:border-primary focus-visible:ring-primary/40",filled:"focus-visible:border-primary focus-visible:ring-primary/40",flushed:"border-border focus-visible:border-primary",unstyled:""},error:{default:"border-error focus-visible:border-error focus-visible:ring-error/20",filled:"bg-error/5 focus-visible:border-error focus-visible:ring-error/20",flushed:"border-error focus-visible:border-error",unstyled:""},success:{default:"border-success focus-visible:border-success focus-visible:ring-success/20",filled:"bg-success/5 focus-visible:border-success focus-visible:ring-success/20",flushed:"border-success focus-visible:border-success",unstyled:""},warning:{default:"border-warning focus-visible:border-warning focus-visible:ring-warning/20",filled:"bg-warning/5 focus-visible:border-warning focus-visible:ring-warning/20",flushed:"border-warning focus-visible:border-warning",unstyled:""}},la={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},da="disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-surface-secondary";function ca(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}var It=ae.forwardRef(function({options:e,value:n,defaultValue:o=[],onChange:i,placeholder:a="Select options...",label:c,required:s=false,helperText:d,errorMessage:l,successMessage:f,warningMessage:m,variant:p="default",size:u="md",state:b="default",fullWidth:B=true,disabled:v=false,isLoading:I=false,id:k,wrapperClassName:M,triggerClassName:E,dropdownClassName:C,labelClassName:x,helperClassName:y},g){let R=ae.useId(),h=k??R,w=`${h}-helper`,L=`${h}-state`,D=`${h}-listbox`,[H,A]=ae.useState(false),[F,$]=ae.useState(o),V=n!==void 0,U=V?n:F,_=ae.useRef(null),X=()=>{v||I||A(P=>!P);},T=P=>{let z;U.includes(P)?z=U.filter(K=>K!==P):z=[...U,P],V||$(z),i?.(z);};ae.useEffect(()=>{let P=z=>{_.current&&!_.current.contains(z.target)&&A(false);};return H&&(document.addEventListener("mousedown",P),document.addEventListener("touchstart",P)),()=>{document.removeEventListener("mousedown",P),document.removeEventListener("touchstart",P);}},[H]);let O=ca(b,l,f,m),N=[d?w:null,O?L:null].filter(Boolean).join(" ")||void 0,S=e.filter(P=>U.includes(P.value)).map(P=>P.label);return jsxRuntime.jsxs("div",{ref:_,className:t("relative flex flex-col gap-1",B?"w-full":"w-fit",H&&"z-[60]",M),children:[c!==void 0&&jsxRuntime.jsxs("label",{htmlFor:h,className:t("font-black leading-none text-text uppercase tracking-widest",mr[u],v&&"opacity-50 cursor-not-allowed",x),children:[c,s&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("button",{ref:g,id:h,type:"button",disabled:v||I,"aria-haspopup":"listbox","aria-expanded":H,"aria-controls":H?D:void 0,"aria-invalid":b==="error"?true:void 0,"aria-describedby":N,onClick:X,className:t("w-full flex items-center justify-between text-left transition-colors duration-150",aa[u],sa[p],ia[b][p],da,E),children:[jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 truncate",children:S.length>0?jsxRuntime.jsx("span",{className:"truncate text-text font-bold leading-tight",children:S.join(", ")}):jsxRuntime.jsx("span",{className:"text-text-muted truncate transition-all duration-normal",children:a})}),jsxRuntime.jsx("div",{className:"shrink-0 ml-2 text-text-muted",children:I?jsxRuntime.jsxs("svg",{className:"animate-spin h-4 w-4 text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):jsxRuntime.jsx(solid.ChevronDownIcon,{className:t("w-4 h-4 transition-transform duration-200",H&&"rotate-180")})})]}),H&&jsxRuntime.jsx("div",{className:t("absolute z-dropdown w-full mt-1 bg-surface border border-border rounded-md shadow-lg","max-h-60 overflow-y-auto py-1 animate-in fade-in zoom-in-95 duration-200","top-full left-0",C),children:jsxRuntime.jsx("ul",{id:D,role:"listbox","aria-multiselectable":"true",className:"flex flex-col outline-none",tabIndex:-1,children:e.length===0?jsxRuntime.jsx("li",{className:"px-3 py-2 text-sm text-gray-500 text-center",children:"No options available"}):e.map(P=>{let z=U.includes(P.value);return jsxRuntime.jsxs("li",{role:"option","aria-selected":z,onClick:()=>{T(P.value);},onKeyDown:K=>{(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),T(P.value));},tabIndex:0,className:t("flex items-center gap-2 px-3 py-2 cursor-pointer transition-all duration-fast","hover:bg-hover"+(z?"/60":""),z?"text-primary font-bold":"text-text",mr[u]),children:[jsxRuntime.jsx("div",{className:t("flex shrink-0 items-center justify-center w-4 h-4 border rounded-sm transition-all duration-normal",z?"bg-primary border-primary":"border-border"),children:z&&jsxRuntime.jsx(solid.CheckIcon,{className:"w-3 h-3 text-text-inverse"})}),jsxRuntime.jsx("span",{className:"truncate",children:P.label})]},P.value)})})}),(d!==void 0||O!==void 0)&&jsxRuntime.jsxs("div",{className:"mt-1",children:[d!==void 0&&jsxRuntime.jsx("p",{id:w,className:t("text-xs leading-tight text-text-muted font-medium",y),children:d}),O!==void 0&&jsxRuntime.jsx("p",{id:L,role:b==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1 font-medium",la[b],y),children:O})]})]})});It.displayName="MultiSelect";var fr={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"},pa={sm:"text-xs",md:"text-sm",lg:"text-sm"},ga={default:"border-border text-accent focus:ring-accent/40 checked:border-accent checked:bg-accent",error:"border-error text-error focus:ring-error/20 checked:border-error checked:bg-error",success:"border-success text-success focus:ring-success/20 checked:border-success checked:bg-success",warning:"border-warning text-warning focus:ring-warning/20 checked:border-warning checked:bg-warning"},ba={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"};function xa(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}var Lt=ae.forwardRef(function({label:e,required:n=false,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,size:s="md",state:d="default",className:l,wrapperClassName:f,inputClassName:m,labelClassName:p,helperClassName:u,id:b,disabled:B,onClick:v,onPointerDown:I,onKeyDown:k,...M},E){let C=ae.useId(),x=b??C,y=`${x}-helper`,g=`${x}-state`,R=xa(d,i,a,c),h=[o?y:null,R?g:null].filter(Boolean).join(" ")||void 0,w=ae.useRef(false),L=A=>{w.current=A.currentTarget.checked,I&&I(A);},D=A=>{(A.key===" "||A.key==="Enter")&&(w.current=A.currentTarget.checked),k&&k(A);},H=A=>{if(w.current){A.currentTarget.checked=false;let $=Reflect.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked")?.set;$&&Reflect.apply($,A.currentTarget,[false]);let V=new Event("change",{bubbles:true});A.currentTarget.dispatchEvent(V);}v&&v(A);};return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",f,l),children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsxs("div",{className:t("flex items-center justify-center shrink-0 relative",fr[s]),children:[jsxRuntime.jsx("input",{ref:E,...M,id:x,type:"radio",disabled:B,"aria-invalid":d==="error"?true:void 0,"aria-describedby":h,required:n,onClick:H,onPointerDown:L,onKeyDown:D,className:t("peer m-0 appearance-none rounded-full border bg-surface transition-all overflow-hidden focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-surface disabled:cursor-not-allowed disabled:bg-surface-secondary disabled:border-border disabled:checked:bg-border",fr[s],ga[d],m)}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute h-[1em] w-[1em] rounded-full text-[0.4em] text-text-inverse opacity-0 transition-opacity peer-checked:bg-current peer-checked:opacity-100 peer-disabled:peer-checked:bg-text-muted/40"})]}),e!==void 0&&jsxRuntime.jsxs("label",{htmlFor:x,className:t("font-bold leading-none text-text mt-[0.125rem] select-none uppercase tracking-widest",B&&"opacity-50 cursor-not-allowed",pa[s],p),children:[e,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]})]}),(o!==void 0||R!==void 0)&&jsxRuntime.jsxs("div",{className:t("ml-6",s==="sm"&&"ml-6",s==="md"&&"ml-7",s==="lg"&&"ml-8"),children:[o!==void 0&&jsxRuntime.jsx("p",{id:y,className:t("text-xs leading-tight text-text-muted font-medium",u),children:o}),R!==void 0&&jsxRuntime.jsx("p",{id:g,role:d==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1 font-medium",ba[d],u),children:R})]})]})});Lt.displayName="RadioButton";var va={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},Ca={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},Sa={default:"rounded-md border border-border bg-surface shadow-sm focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0 transition-all duration-normal",filled:"rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0 transition-all duration-normal",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none focus:ring-0",unstyled:"border-0 bg-transparent p-0 focus:outline-none focus:ring-0"},Ra={default:{default:"border-border focus:border-primary focus:ring-primary/40",filled:"focus:border-primary focus:ring-primary/40",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error focus:ring-error/20",filled:"bg-error/5 focus:border-error focus:ring-error/20",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success focus:ring-success/20",filled:"bg-success/5 focus:border-success focus:ring-success/20",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning focus:ring-warning/20",filled:"bg-warning/5 focus:border-warning focus:ring-warning/20",flushed:"border-warning focus:border-warning",unstyled:""}},ka={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},Na="disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-surface-secondary";function Pa(r,e,n){let o={xs:"pl-6",sm:"pl-8",md:"pl-9",lg:"pl-10",xl:"pl-11"},i={xs:"pr-8",sm:"pr-10",md:"pr-11",lg:"pr-12",xl:"pr-12"},a=[];return r&&a.push(o[n]),e&&a.push(i[n]),a.join(" ")}function Ea(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}function pr({children:r,side:e,size:n,pointerEvents:o=false}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("absolute top-1/2 -translate-y-1/2 text-text-secondary flex items-center justify-center",!o&&"pointer-events-none",e==="left"?"left-3":"right-3",{xs:"w-3.5 h-3.5",sm:"w-4 h-4",md:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5"}[n]),children:r})}function gr({children:r,side:e}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",e==="left"?"rounded-l-md border-r-0":"rounded-r-md border-l-0"),children:r})}var Mt=ae.forwardRef(function({label:e,required:n=false,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,variant:s="default",size:d="md",state:l="default",fullWidth:f=true,leftElement:m,rightElement:p,prefix:u,suffix:b,wrapperClassName:B,inputGroupClassName:v,inputClassName:I,labelClassName:k,helperClassName:M,id:E,disabled:C,className:x,clearable:y,isLoading:g,value:R,onChange:h,...w},L){let D=ae.useId(),H=E??D,A=`${H}-helper`,F=`${H}-state`,V=y&&typeof R=="string"&&R.length>0,U=m!==void 0,_=p!==void 0||!!V||!!g,X=Ea(l,i,a,c),T=[o?A:null,X?F:null].filter(Boolean).join(" ")||void 0,O=()=>{if(L&&typeof L!="function"&&L.current){let z=Reflect.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set;z&&Reflect.apply(z,L.current,[""]);let K=new Event("input",{bubbles:true});L.current.dispatchEvent(K);}else h&&h({target:{value:""},currentTarget:{value:""},preventDefault:()=>{},stopPropagation:()=>{}});},N=()=>g?jsxRuntime.jsxs("svg",{className:"animate-spin h-full w-full text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):V?jsxRuntime.jsx("button",{type:"button",onClick:O,className:"pointer-events-auto flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast","aria-label":"Clear time",children:jsxRuntime.jsx(outline.XMarkIcon,{className:"w-full h-full",strokeWidth:2.5})}):p,S=jsxRuntime.jsx("input",{ref:L,id:H,disabled:!!C||!!g,type:"time",value:R,onChange:h,"aria-invalid":l==="error"?true:void 0,"aria-describedby":T,"aria-required":n,className:t("w-full transition-colors duration-150","[&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:opacity-60 hover:[&::-webkit-calendar-picker-indicator]:opacity-100",va[d],Sa[s],Ra[l][s],Na,Pa(U,_,d),I),...w});return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",f?"w-full":"w-fit",B,x),children:[e!==void 0&&jsxRuntime.jsxs("label",{htmlFor:H,className:t("font-black leading-none text-text uppercase tracking-widest",Ca[d],k),children:[e,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:t("flex items-stretch",f?"w-full":"w-fit",v),children:[u!==void 0&&jsxRuntime.jsx(gr,{side:"left",children:u}),jsxRuntime.jsxs("div",{className:"relative flex flex-1 items-center",children:[U&&jsxRuntime.jsx(pr,{side:"left",size:d,children:m}),jsxRuntime.jsx("div",{className:t("flex-1",u!==void 0&&b!==void 0?"[&>input]:rounded-none":u!==void 0?"[&>input]:rounded-l-none":b!==void 0?"[&>input]:rounded-r-none":""),children:S}),_&&jsxRuntime.jsx(pr,{side:"right",size:d,pointerEvents:!p&&!!V,children:N()})]}),b!==void 0&&jsxRuntime.jsx(gr,{side:"right",children:b})]}),o!==void 0&&jsxRuntime.jsx("p",{id:A,className:t("text-xs leading-tight text-text-muted font-medium",M),children:o}),X!==void 0&&jsxRuntime.jsx("p",{id:F,role:l==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1 font-medium",ka[l],M),children:X})]})});Mt.displayName="TimePicker";var Ma={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},Ba={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},Da={default:"rounded-md border border-border bg-surface shadow-sm focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0 transition-all duration-normal",filled:"rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0 transition-all duration-normal",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none focus:ring-0",unstyled:"border-0 bg-transparent p-0 focus:outline-none focus:ring-0"},Aa={default:{default:"border-border focus:border-primary focus:ring-primary/40",filled:"focus:border-primary focus:ring-primary/40",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error focus:ring-error/20",filled:"bg-error/5 focus:border-error focus:ring-error/20",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success focus:ring-success/20",filled:"bg-success/5 focus:border-success focus:ring-success/20",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning focus:ring-warning/20",filled:"bg-warning/5 focus:border-warning focus:ring-warning/20",flushed:"border-warning focus:border-warning",unstyled:""}},Ha={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},za="disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-surface-secondary";function Va(r,e,n){let o={xs:"pl-6",sm:"pl-8",md:"pl-9",lg:"pl-10",xl:"pl-11"},i={xs:"pr-6",sm:"pr-8",md:"pr-9",lg:"pr-10",xl:"pr-11"},a=[];return r&&a.push(o[n]),e&&a.push(i[n]),a.join(" ")}function Fa(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}function br({children:r,side:e,size:n,pointerEvents:o=false}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("absolute top-1/2 -translate-y-1/2 text-text-secondary flex items-center justify-center",!o&&"pointer-events-none",e==="left"?"left-3":"right-3",{xs:"w-3.5 h-3.5",sm:"w-4 h-4",md:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5"}[n]),children:r})}function xr({children:r,side:e}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",e==="left"?"rounded-l-md border-r-0":"rounded-r-md border-l-0"),children:r})}var Bt=ae.forwardRef(function({label:e,required:n=false,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,variant:s="default",size:d="md",state:l="default",fullWidth:f=true,leftElement:m,rightElement:p,prefix:u,suffix:b,wrapperClassName:B,inputGroupClassName:v,inputClassName:I,labelClassName:k,helperClassName:M,id:E,disabled:C,className:x,clearable:y,isLoading:g,value:R,onChange:h,...w},L){let D=ae.useId(),H=E??D,A=`${H}-helper`,F=`${H}-state`,V=y&&typeof R=="string"&&R.length>0,U=m!==void 0,_=p!==void 0||!!V||!!g,X=Fa(l,i,a,c),T=[o?A:null,X?F:null].filter(Boolean).join(" ")||void 0,O=()=>{if(L&&typeof L!="function"&&L.current){let z=Reflect.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set;z&&Reflect.apply(z,L.current,[""]);let K=new Event("input",{bubbles:true});L.current.dispatchEvent(K);}else h&&h({target:{value:""},currentTarget:{value:""},preventDefault:()=>{},stopPropagation:()=>{}});},N=()=>g?jsxRuntime.jsxs("svg",{className:"animate-spin h-full w-full text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):V?jsxRuntime.jsx("button",{type:"button",onClick:O,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast","aria-label":"Clear input",children:jsxRuntime.jsx(outline.XMarkIcon,{className:"w-full h-full",strokeWidth:2.5})}):p,S=jsxRuntime.jsx("input",{ref:L,id:H,disabled:!!C||!!g,type:"date",value:R,onChange:h,"aria-invalid":l==="error"?true:void 0,"aria-describedby":T,"aria-required":n,className:t("w-full transition-colors duration-150",Ma[d],Da[s],Aa[l][s],za,Va(U,_,d),I),...w});return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",f?"w-full":"w-fit",B,x),children:[e!==void 0&&jsxRuntime.jsxs("label",{htmlFor:H,className:t("font-black leading-none text-text uppercase tracking-widest",Ba[d],k),children:[e,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:t("flex items-stretch",f?"w-full":"w-fit",v),children:[u!==void 0&&jsxRuntime.jsx(xr,{side:"left",children:u}),jsxRuntime.jsxs("div",{className:"relative flex flex-1 items-center",children:[U&&jsxRuntime.jsx(br,{side:"left",size:d,children:m}),jsxRuntime.jsx("div",{className:t("flex-1",u!==void 0&&b!==void 0?"[&>input]:rounded-none":u!==void 0?"[&>input]:rounded-l-none":b!==void 0?"[&>input]:rounded-r-none":""),children:S}),_&&jsxRuntime.jsx(br,{side:"right",size:d,pointerEvents:!p&&!!V,children:N()})]}),b!==void 0&&jsxRuntime.jsx(xr,{side:"right",children:b})]}),o!==void 0&&jsxRuntime.jsx("p",{id:A,className:t("text-xs leading-tight text-text-muted font-medium",M),children:o}),X!==void 0&&jsxRuntime.jsx("p",{id:F,role:l==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1 font-medium",Ha[l],M),children:X})]})});Bt.displayName="DatePicker";var Xa={xs:"w-8 h-8 text-sm",sm:"w-10 h-10 text-base",md:"w-12 h-12 text-lg",lg:"w-14 h-14 text-xl",xl:"w-16 h-16 text-2xl"},Ja={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},Ga={default:"rounded-md border border-border bg-surface shadow-sm focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0",filled:"rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none focus:ring-0",unstyled:"border-0 bg-transparent p-0 focus:outline-none focus:ring-0"},qa={default:{default:"border-border focus:border-primary focus:ring-primary/40",filled:"focus:border-primary focus:ring-primary/40",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error focus:ring-error/20",filled:"bg-error/5 focus:border-error focus:ring-error/20",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success focus:ring-success/20",filled:"bg-success/5 focus:border-success focus:ring-success/20",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning focus:ring-warning/20",filled:"bg-warning/5 focus:border-warning focus:ring-warning/20",flushed:"border-warning focus:border-warning",unstyled:""}},Wa={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},Za="disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-surface-secondary";function Ya(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}var hr=ae.forwardRef(function({length:e=4,value:n="",onChange:o,onComplete:i,label:a,required:c=false,helperText:s,errorMessage:d,successMessage:l,warningMessage:f,variant:m="default",size:p="md",state:u="default",className:b,wrapperClassName:B,inputGroupClassName:v,inputClassName:I,labelClassName:k,helperClassName:M,id:E,disabled:C=false,isLoading:x=false,mask:y=false,alphanumeric:g=false},R){let h=ae.useId(),w=E??h,L=`${w}-helper`,D=`${w}-state`,[H,A]=ae.useState(Array.from({length:e},()=>"")),F=ae.useRef([]);ae.useEffect(()=>{let N=n.split("").slice(0,e),S=Array.from({length:e},()=>"");for(let P=0;P<N.length;P++)S[P]=N[P]??"";requestAnimationFrame(()=>{A(P=>S.some((K,Y)=>K!==P[Y])?S:P);});},[n,e]);let $=N=>{let S=N.join("");o&&o(S),i&&S.length===e&&!N.includes("")&&i(S);},V=N=>{N>=0&&N<e&&(F.current[N]?.focus(),setTimeout(()=>{F.current[N]?.setSelectionRange(1,1);},0));},U=(N,S)=>{let P=N.target.value;if(P.length>1&&(P=P.slice(-1)),!g&&P&&!/^\d+$/.test(P)||g&&P&&!/^[a-zA-Z0-9]+$/.test(P))return;let z=[...H];z[S]=P,A(z),$(z),P&&S<e-1&&V(S+1);},_=(N,S)=>{if(N.key==="Backspace"){if(!H[S]&&S>0){N.preventDefault();let P=[...H];P[S-1]="",A(P),$(P),V(S-1);}}else N.key==="ArrowLeft"&&S>0?(N.preventDefault(),V(S-1)):N.key==="ArrowRight"&&S<e-1&&(N.preventDefault(),V(S+1));},X=N=>{N.preventDefault();let S=N.clipboardData.getData("text/plain").trim();if(g?S=S.replace(/[^a-zA-Z0-9]/g,""):S=S.replace(/[^\d]/g,""),!S)return;let P=[...H],z=-1;for(let K=0;K<e;K++)K<S.length&&(P[K]=S[K]??"",z=K);A(P),$(P),z>-1&&V(Math.min(z+1,e-1));},T=Ya(u,d,l,f),O=C||x;return jsxRuntime.jsxs("div",{ref:R,id:w,className:t("flex flex-col gap-2 w-fit",B,b),children:[a!==void 0&&jsxRuntime.jsxs("label",{htmlFor:`${w}-0`,className:t("font-black leading-none text-text uppercase tracking-widest",Ja[p],k),children:[a,c&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:t("flex items-center gap-2",v),children:[H.map((N,S)=>jsxRuntime.jsx("input",{id:`${w}-${String(S)}`,ref:P=>{F.current[S]=P;},type:y?"password":"text",inputMode:g?"text":"numeric",autoComplete:"one-time-code",maxLength:1,disabled:O,value:N,onChange:P=>{U(P,S);},onKeyDown:P=>{_(P,S);},onPaste:X,"aria-invalid":u==="error"?true:void 0,"aria-describedby":[L,D].filter(Boolean).join(" ")||void 0,className:t("text-center transition-colors duration-150",Xa[p],Ga[m],qa[u][m],Za,I)},`${w}-${String(S)}`)),x&&jsxRuntime.jsx("div",{className:"ml-2",children:jsxRuntime.jsx(outline.ArrowPathIcon,{className:"animate-spin h-5 w-5 text-gray-400"})})]}),s!==void 0&&jsxRuntime.jsx("p",{id:L,className:t("text-xs leading-tight text-text-muted font-medium",M),children:s}),T!==void 0&&jsxRuntime.jsx("p",{id:D,role:u==="error"?"alert":void 0,className:t("text-xs leading-tight font-medium",Wa[u],M),children:T})]})});hr.displayName="OtpInput";var rs={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},ns={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},os={default:"rounded-md border border-border bg-surface shadow-sm focus:outline-none",filled:"rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none",unstyled:"border-0 bg-transparent p-0 focus:outline-none"},as={default:{default:"border-border focus:border-primary",filled:"focus:border-primary",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error",filled:"bg-error/5 focus:border-error",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success",filled:"bg-success/5 focus:border-success",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning",filled:"bg-warning/5 border-warning focus:border-warning",flushed:"border-warning focus:border-warning",unstyled:""}},ss={default:"text-text-muted",error:"text-error",success:"text-success",warning:"text-warning"};function is(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}function wr({children:r,side:e}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",e==="left"?"rounded-l-md border-r-0":"rounded-r-md border-l-0"),children:r})}var yr=ae.forwardRef(function({label:e,required:n=false,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,variant:s="default",size:d="md",state:l="default",fullWidth:f=true,leftElement:m,rightElement:p,prefix:u,suffix:b,wrapperClassName:B,inputGroupClassName:v,inputClassName:I,labelClassName:k,helperClassName:M,id:E,disabled:C,className:x,clearable:y,isLoading:g,multiple:R=false,autoCapitalize:h="none",autoComplete:w="email",spellCheck:L=false,value:D,onChange:H,...A},F){let $=ae.useId(),V=E??$,U=`${V}-helper`,_=`${V}-state`,T=y&&(typeof D=="string"||typeof D=="number")&&String(D).length>0,O=m!==void 0,N=p!==void 0||!!T||!!g,S=is(l,i,a,c),P=[o?U:null,S?_:null].filter(Boolean).join(" ")||void 0,z=()=>{if(F&&typeof F!="function"&&F.current){Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set?.call(F.current,"");let Y=new Event("input",{bubbles:true});F.current.dispatchEvent(Y);}else H&&H({target:{value:""},currentTarget:{value:""},preventDefault:()=>{},stopPropagation:()=>{}});},K=()=>g?jsxRuntime.jsxs("svg",{className:"animate-spin h-5 w-5 text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):T?jsxRuntime.jsx("button",{type:"button",onClick:z,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-interaction-hover p-0.5 transition w-6 h-6 border-0 bg-transparent cursor-pointer","aria-label":"Clear input",children:jsxRuntime.jsx(solid.XMarkIcon,{className:"w-5 h-5"})}):p;return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",f?"w-full":"w-fit",B,x),children:[e!==void 0&&jsxRuntime.jsxs("label",{htmlFor:V,className:t("font-black leading-none text-text mb-2 uppercase tracking-widest",ns[d],k),children:[e,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:t("flex items-stretch transition-all duration-150 overflow-hidden",os[s],as[l][s],f?"w-full":"w-fit","focus-within:ring-4 focus-within:ring-primary/20 focus-within:border-primary",C&&"opacity-50 cursor-not-allowed bg-surface-secondary",v),children:[u!==void 0&&jsxRuntime.jsx(wr,{side:"left",children:u}),jsxRuntime.jsxs("div",{className:"flex flex-1 items-center min-w-0",children:[O&&jsxRuntime.jsx("div",{className:"pl-3 shrink-0 flex items-center justify-center",children:m}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 h-full",children:jsxRuntime.jsx("input",{ref:F,...A,id:V,disabled:!!C||!!g,type:"email",multiple:R,autoCapitalize:h,autoComplete:w,spellCheck:L,value:D,onChange:H,"aria-invalid":l==="error"?true:void 0,"aria-describedby":P,"aria-required":n,className:t("w-full bg-transparent border-0 focus:outline-none focus:ring-0 outline-none h-full",rs[d],I),style:{paddingLeft:O?"0.5rem":void 0,paddingRight:N||T?"0.5rem":void 0}})}),N&&jsxRuntime.jsx("div",{className:"pr-3 shrink-0 flex items-center justify-center text-text-secondary",style:{width:"2.5rem"},children:K()})]}),b!==void 0&&jsxRuntime.jsx(wr,{side:"right",children:b})]}),o!==void 0&&jsxRuntime.jsx("p",{id:U,className:t("text-xs leading-tight text-text-muted",M),children:o}),S!==void 0&&jsxRuntime.jsx("p",{id:_,role:l==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1 ",ss[l],M),children:S})]})});yr.displayName="Email";var ls={default:"bg-surface text-text border border-border shadow-sm",outlined:"bg-surface text-text border border-border",elevated:"bg-surface text-text border-transparent shadow-md",filled:"bg-surface-secondary border-transparent text-text-secondary"},ds={none:"p-0",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},vr=ae.forwardRef(function({className:e,variant:n="default",padding:o="none",...i},a){return jsxRuntime.jsx("div",{ref:a,className:t("rounded-lg flex flex-col transition-all duration-normal",ls[n],ds[o],e),...i})});vr.displayName="Card";var Cr=ae.forwardRef(function({className:e,...n},o){return jsxRuntime.jsx("div",{ref:o,className:t("flex flex-col space-y-1 p-4",e),...n})});Cr.displayName="CardHeader";var Sr=ae.forwardRef(function({className:e,children:n,...o},i){return jsxRuntime.jsx("h3",{ref:i,className:t("font-bold leading-none tracking-tight text-lg text-text",e),...o,children:n})});Sr.displayName="CardTitle";var Rr=ae.forwardRef(function({className:e,...n},o){return jsxRuntime.jsx("p",{ref:o,className:t("text-sm text-text-secondary",e),...n})});Rr.displayName="CardDescription";var kr=ae.forwardRef(function({className:e,...n},o){return jsxRuntime.jsx("div",{ref:o,className:t("p-4 pt-0",e),...n})});kr.displayName="CardContent";var Nr=ae.forwardRef(function({className:e,...n},o){return jsxRuntime.jsx("div",{ref:o,className:t("flex items-center p-4 pt-0",e),...n})});Nr.displayName="CardFooter";var us={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},ms={primary:"text-primary hover:text-primary-hover active:text-primary-active",secondary:"text-text-secondary hover:text-text active:text-text",danger:"text-error hover:text-error/80 active:text-error/90",ghost:"text-text-muted hover:text-text active:text-text hover:bg-hover px-2 py-0.5 rounded-sm transition-all duration-normal"},fs={always:"underline underline-offset-4",hover:"hover:underline hover:underline-offset-4",none:"no-underline"},ps="opacity-50 cursor-not-allowed pointer-events-none",Pr=ae.forwardRef(function({children:e,className:n,variant:o="primary",size:i="md",underline:a="hover",isExternal:c=false,disabled:s=false,leftIcon:d,rightIcon:l,href:f,rel:m,target:p,...u},b){let B=c?"_blank":p,v=c?t("noopener noreferrer",m):m,I=s?void 0:f;return jsxRuntime.jsxs("a",{ref:b,href:I,target:B,rel:v,"aria-disabled":s?"true":void 0,role:s&&!I?"link":void 0,tabIndex:s?-1:void 0,className:t("inline-flex items-center gap-1.5 transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 focus-visible:ring-offset-surface",us[i],ms[o],o==="ghost"?"no-underline":fs[a],s?ps:"",n),...u,children:[d&&jsxRuntime.jsx("span",{className:"inline-flex shrink-0",children:d}),jsxRuntime.jsx("span",{children:e}),l&&jsxRuntime.jsx("span",{className:"inline-flex shrink-0",children:l})]})});Pr.displayName="Link";var ys={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},vs={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},Cs={default:"rounded-md border bg-surface shadow-sm focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0",filled:"rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none focus:ring-0",unstyled:"border-0 bg-transparent p-0 focus:outline-none focus:ring-0"},Ss={default:{default:"border-border focus:border-primary focus:ring-primary/40",filled:"focus:border-primary focus:ring-primary/40",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error focus:ring-error/20",filled:"bg-error/5 focus:border-error focus:ring-error/20",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success focus:ring-success/20",filled:"bg-success/5 focus:border-success focus:ring-success/20",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning focus:ring-warning/20",filled:"bg-warning/5 focus:border-warning focus:ring-warning/20",flushed:"border-warning focus:border-warning",unstyled:""}},Rs={default:"text-text-muted",error:"text-error",success:"text-success",warning:"text-warning"};function ks(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}function Tr({children:r,side:e}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("inline-flex items-center border border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",e==="left"?"rounded-l-md border-r-0":"rounded-r-md border-l-0"),children:r})}var Ir=ae.forwardRef(function({label:e,required:n=false,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,variant:s="default",size:d="md",state:l="default",fullWidth:f=true,leftElement:m,rightElement:p,prefix:u,suffix:b,wrapperClassName:B,inputGroupClassName:v,inputClassName:I,labelClassName:k,helperClassName:M,id:E,disabled:C,className:x,isLoading:y,showPasswordToggle:g=true,value:R,onChange:h,onKeyUp:w,onKeyDown:L,...D},H){let A=ae.useId(),F=E??A,$=`${F}-helper`,V=`${F}-state`,U=`${F}-capslock`,[_,X]=ae.useState(false),[T,O]=ae.useState(false),N=J=>{O(J.getModifierState("CapsLock")),w&&w(J);},S=J=>{O(J.getModifierState("CapsLock")),L&&L(J);},P=m!==void 0,z=p!==void 0||!!y||g,K=ks(l,i,a,c),Y=[o?$:null,K?V:null,T?U:null].filter(Boolean).join(" ")||void 0,Q=()=>y?jsxRuntime.jsxs("svg",{className:"animate-spin h-5 w-5 text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):g?jsxRuntime.jsx("button",{type:"button",tabIndex:-1,onClick:()=>{X(J=>!J);},className:"flex items-center justify-center rounded-full text-text-muted hover:text-text transition focus:outline-none w-6 h-6","aria-label":_?"Hide password":"Show password",children:_?jsxRuntime.jsx(outline.EyeSlashIcon,{className:"w-5 h-5"}):jsxRuntime.jsx(outline.EyeIcon,{className:"w-5 h-5"})}):p;return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",f?"w-full":"w-fit",B,x),children:[e!==void 0&&jsxRuntime.jsxs("label",{htmlFor:F,className:t("font-black leading-none mb-2 text-text uppercase tracking-widest",vs[d],k),children:[e,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:t("flex items-stretch transition-all duration-150 overflow-hidden",Cs[s],Ss[l][s],f?"w-full":"w-fit","focus-within:ring-4 focus-within:ring-primary/20 focus-within:border-primary",C&&"opacity-50 cursor-not-allowed bg-surface-secondary",v),children:[u!==void 0&&jsxRuntime.jsx(Tr,{side:"left",children:u}),jsxRuntime.jsxs("div",{className:"flex flex-1 items-center min-w-0",children:[P&&jsxRuntime.jsx("div",{className:"pl-3 flex-shrink-0 flex items-center justify-center",children:m}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 h-full",children:jsxRuntime.jsx("input",{ref:H,...D,id:F,disabled:!!C||!!y,type:_?"text":"password",value:R,onChange:h,onKeyUp:N,onKeyDown:S,"aria-invalid":l==="error"?true:void 0,"aria-describedby":Y,"aria-required":n,className:t("w-full bg-transparent border-0 focus:outline-none focus:ring-0 outline-none h-full",ys[d],I),style:{paddingLeft:P?"0.5rem":void 0,paddingRight:z?"0.5rem":void 0}})}),z&&jsxRuntime.jsx("div",{className:"pr-3 flex-shrink-0 flex items-center justify-center text-text-secondary",style:{width:"2.5rem"},children:Q()})]}),b!==void 0&&jsxRuntime.jsx(Tr,{side:"right",children:b})]}),o!==void 0&&jsxRuntime.jsx("p",{id:$,className:t("text-xs leading-tight text-text-muted",M),children:o}),T&&jsxRuntime.jsx("p",{id:U,className:"text-xs leading-tight text-warning font-black uppercase tracking-widest",children:"Caps Lock is on"}),K!==void 0&&jsxRuntime.jsx("p",{id:V,role:l==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1",Rs[l],M),children:K})]})});Ir.displayName="PasswordInput";var Is={xs:"h-8 px-3 text-xs tracking-tight",sm:"h-9 px-4 text-sm tracking-tight",md:"h-10 px-5 text-sm font-medium tracking-tight",lg:"h-11 px-6 text-base font-medium tracking-tight",xl:"h-12 px-8 text-lg font-medium tracking-tight"},Ls={default:"border-b border-border/60 bg-transparent gap-2",filled:"bg-surface-secondary/80 p-1.5 rounded-xl gap-1.5 border border-border/40 shadow-inner backdrop-blur-sm",flushed:"border-b border-border/60 bg-transparent gap-8",unstyled:"gap-4"},Ms={default:{default:"border border-transparent text-text-muted hover:text-text hover:bg-hover/5 rounded-t-lg mb-[-1px] transition-all duration-normal",selected:"border border-border border-b-surface text-primary rounded-t-lg mb-[-1px] bg-surface font-bold shadow-[0_-4px_12px_-4px_rgba(0,0,0,0.08)]"},filled:{default:"text-text-muted hover:text-text rounded-lg hover:bg-hover/30 transition-all duration-normal px-4",selected:"bg-surface text-primary shadow-md rounded-lg font-bold scale-[1.02] px-4"},flushed:{default:"border-b-2 border-transparent text-text-muted hover:text-text hover:border-border/40 mb-[-1px] transition-all duration-normal px-1",selected:"border-b-2 border-primary text-primary mb-[-1px] font-bold px-1 tracking-normal"},unstyled:{default:"text-text-muted hover:text-text transition-all duration-normal opacity-70 hover:opacity-100",selected:"text-primary font-bold"}},Mr=ae.forwardRef(function({items:e,defaultSelectedId:n,selectedId:o,onChange:i,variant:a="default",size:c="md",fullWidth:s=false,className:d,tabListClassName:l,tabClassName:f,tabPanelClassName:m,...p},u){let[b,B]=ae.useState(()=>o!==void 0?o:n!==void 0?n:e.length>0?e[0]?.id??"":""),v=ae.useRef(null),[I,k]=ae.useState(false),[M,E]=ae.useState(false),C=o!==void 0,x=C?o:b,y=(w,L)=>{L||(C||B(w),i?.(w));},g=()=>{if(v.current){let{scrollLeft:w,scrollWidth:L,clientWidth:D}=v.current;k(w>5),E(w<L-D-5);}};ae.useEffect(()=>{let w=v.current;if(!w)return;g(),w.addEventListener("scroll",g),window.addEventListener("resize",g);let L=setTimeout(g,100);return ()=>{w.removeEventListener("scroll",g),window.removeEventListener("resize",g),clearTimeout(L);}},[e,s]);let R=w=>{if(v.current){let L=v.current.clientWidth/2;v.current.scrollBy({left:w==="left"?-L:L,behavior:"smooth"});}};ae.useEffect(()=>{if(v.current){let w=v.current.querySelector('[aria-selected="true"]');w&&w.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"});}},[x]);let h=e.find(w=>w.id===x);return e.length===0?null:jsxRuntime.jsxs("div",{ref:u,className:t("w-full",d),...p,children:[jsxRuntime.jsxs("div",{className:"relative group/tabs flex items-center",children:[I&&jsxRuntime.jsxs("div",{className:"absolute left-0 z-20 flex h-full items-center pl-1 lg:hidden pointer-events-none",children:[jsxRuntime.jsx(Be,{icon:jsxRuntime.jsx(outline.ChevronLeftIcon,{className:"w-4 h-4"}),"aria-label":"Scroll left",variant:"ghost",size:"xs",isRound:true,onClick:()=>{R("left");},className:"pointer-events-auto shadow-xl border border-border/20 bg-surface/98 backdrop-blur-xl hover:bg-primary hover:text-surface transition-all duration-300"}),jsxRuntime.jsx("div",{className:"w-12 h-full bg-gradient-to-r from-surface/80 to-transparent pointer-events-none -ml-6"})]}),jsxRuntime.jsx("div",{ref:v,className:t("flex-1 overflow-x-auto scrollbar-none scroll-smooth",a==="filled"?"py-1":"",s&&"w-full"),children:jsxRuntime.jsx("div",{role:"tablist",className:t("flex flex-nowrap",(s||a!=="filled")&&"min-w-full",a==="filled"&&"w-max mx-auto lg:mx-0",Ls[a],l),children:e.map(w=>{let L=w.id===x,D=w.disabled;return jsxRuntime.jsx("button",{type:"button",role:"tab","aria-selected":L,"aria-disabled":D,disabled:D,onClick:()=>{y(w.id,D);},className:t("flex items-center justify-center font-medium transition-all duration-normal outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 focus-visible:ring-offset-surface whitespace-nowrap shrink-0",Is[c],Ms[a][L?"selected":"default"],s&&"flex-1",D&&"opacity-50 cursor-not-allowed pointer-events-none",f),children:w.label},w.id)})})}),M&&jsxRuntime.jsxs("div",{className:"absolute right-0 z-20 flex h-full items-center pr-1 lg:hidden pointer-events-none",children:[jsxRuntime.jsx("div",{className:"w-8 h-full bg-gradient-to-l from-surface to-transparent pointer-events-none -mr-4"}),jsxRuntime.jsx(Be,{icon:jsxRuntime.jsx(outline.ChevronRightIcon,{className:"w-4 h-4"}),"aria-label":"Scroll right",variant:"ghost",size:"xs",isRound:true,onClick:()=>{R("right");},className:"pointer-events-auto shadow-xl border border-border/20 bg-surface/98 backdrop-blur-xl hover:bg-primary hover:text-surface transition-all duration-300"})]})]}),jsxRuntime.jsx("div",{role:"tabpanel",className:t("pt-4",m),tabIndex:0,children:h?.content})]})});Mr.displayName="Tabs";var Hs={"2xs":"w-4 h-4 text-[10px]",xs:"w-6 h-6 text-xs",sm:"w-8 h-8 text-sm",md:"w-10 h-10 text-base",lg:"w-12 h-12 text-lg",xl:"w-14 h-14 text-xl","2xl":"w-16 h-16 text-2xl","3xl":"w-20 h-20 text-3xl","4xl":"w-24 h-24 text-4xl"},zs={circle:"rounded-full",square:"rounded-none",rounded:"rounded-md"},Vs={default:"ring-0",error:"ring-2 ring-error ring-offset-2 ring-offset-surface",success:"ring-2 ring-success ring-offset-2 ring-offset-surface",warning:"ring-2 ring-warning ring-offset-2 ring-offset-surface",offline:"ring-2 ring-border ring-offset-2 ring-offset-surface",online:"ring-2 ring-success ring-offset-2 ring-offset-surface",busy:"ring-2 ring-error ring-offset-2 ring-offset-surface",away:"ring-2 ring-warning ring-offset-2 ring-offset-surface"},Fs={default:"hidden",error:"bg-error",success:"bg-success",warning:"bg-warning",offline:"bg-border",online:"bg-success",busy:"bg-error",away:"bg-warning"};function Br(r){let e=r.trim().split(/\s+/);if(e.length===0)return "";if(e.length===1)return e[0]?.substring(0,2).toUpperCase()??"";let n=e[0],o=e[e.length-1];return `${n?.[0]??""}${o?.[0]??""}`.toUpperCase()}var zt=ae.forwardRef(function({size:e="md",variant:n="circle",state:o="default",stateType:i="border",fallback:a,alt:c,src:s,className:d,containerClassName:l,fallbackClassName:f,...m},p){let[u,b]=ae.useState(false),B=typeof s!="string"||s.length===0||u,v="";typeof a=="string"?v=Br(a):typeof c=="string"&&c.length>0&&(v=Br(c));let I=typeof a=="string"||typeof a>"u"?jsxRuntime.jsx("span",{className:t("flex h-full w-full items-center justify-center font-bold text-text-muted",f),children:v||jsxRuntime.jsx(solid$2.UserIcon,{className:"h-3/5 w-3/5 text-text-muted/40","aria-hidden":"true"})}):jsxRuntime.jsx("span",{className:t("flex h-full w-full items-center justify-center",f),children:a});return jsxRuntime.jsxs("div",{className:t("relative inline-block",l),children:[jsxRuntime.jsx("div",{ref:p,className:t("relative inline-flex shrink-0 items-center justify-center overflow-hidden bg-surface-secondary",Hs[e],zs[n],i==="border"?Vs[o]:"",d),children:B?I:jsxRuntime.jsx("img",{src:s,alt:c,onError:()=>{b(true);},className:"h-full w-full object-cover",...m})}),i==="badge"&&o!=="default"&&jsxRuntime.jsx("span",{className:t("absolute bottom-0 right-0 block rounded-full border-2 border-surface",Fs[o],e==="2xs"||e==="xs"?"h-2 w-2":e==="sm"?"h-2.5 w-2.5":e==="md"?"h-3 w-3":e==="lg"?"h-3.5 w-3.5":e==="xl"?"h-4 w-4":e==="2xl"?"h-4.5 w-4.5":e==="3xl"?"h-5 w-5":"h-6 w-6",n==="square"?"-translate-x-1/2 -translate-y-1/2":"")})]})});zt.displayName="Avatar";var Xs={sm:"p-4 text-sm",md:"p-8 text-sm",lg:"p-12 text-base"},Js={sm:"text-xs",md:"text-sm",lg:"text-sm"},Gs={default:"border-border hover:border-primary-hover bg-surface focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary",error:"border-error bg-error/5 focus-within:ring-2 focus-within:ring-error/20",success:"border-success bg-success/5 focus-within:ring-2 focus-within:ring-success/20",warning:"border-warning bg-warning/5 focus-within:ring-2 focus-within:ring-warning/20"},Dr={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"},Ar=ae.forwardRef(function({label:e,required:n=false,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,size:s="md",state:d="default",fullWidth:l=true,wrapperClassName:f,labelClassName:m,helperClassName:p,dropzoneClassName:u,icon:b,maxSize:B,maxFiles:v,onFilesSelected:I,accept:k,multiple:M,disabled:E,id:C,className:x,...y},g){let R=ae.useId(),h=C??R,w=ae.useRef(null),[L,D]=ae.useState(false),H=N=>{N.preventDefault(),E||D(true);},A=()=>{D(false);},F=N=>{if(N.preventDefault(),D(false),E)return;let S=Array.from(N.dataTransfer.files);V(S);},$=N=>{N.target.files&&V(Array.from(N.target.files));},V=N=>{let S=N;v&&N.length>v&&(S=N.slice(0,v)),B&&(S=S.filter(P=>P.size<=B)),I&&I(S);},U=()=>{w.current&&w.current.click();},_=`${h}-helper`,X=`${h}-state`,T=d==="error"?i:d==="success"?a:d==="warning"?c:void 0,O=N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),U());};return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1.5",l?"w-full":"w-fit",f,x),children:[e&&jsxRuntime.jsxs("label",{htmlFor:h,className:t("font-black leading-none text-text uppercase tracking-widest",Js[s],m),children:[e,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{onDragOver:H,onDragLeave:A,onDrop:F,onClick:U,onKeyDown:O,role:"button",tabIndex:E?-1:0,"aria-disabled":E,className:t("relative flex flex-col items-center justify-center border-2 border-dashed rounded-lg transition-all cursor-pointer group",Xs[s],Gs[d],L&&"border-primary bg-primary/5 scale-[1.01] shadow-md",E&&"opacity-50 cursor-not-allowed bg-surface-secondary border-border",u),children:[jsxRuntime.jsx("input",{...y,ref:N=>{w.current=N,typeof g=="function"?g(N):g&&(g.current=N);},id:h,type:"file",accept:k,multiple:M,disabled:E,onChange:$,className:"sr-only"}),jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center pointer-events-none",children:[b??jsxRuntime.jsx(outline.CloudArrowUpIcon,{className:t("w-10 h-10 mb-2 transition-all duration-normal group-hover:scale-110",d==="default"?"text-text-muted":Dr[d])}),jsxRuntime.jsx("span",{className:"font-bold text-text transition-colors group-hover:text-primary",children:"Click to upload or drag and drop"}),jsxRuntime.jsxs("span",{className:"text-xs text-text-muted font-medium",children:[k?`Available formats: ${k}`:"Any file type",B&&` (Max ${String(Math.round(B/1024/1024))}MB)`]})]})]}),o&&jsxRuntime.jsx("p",{id:_,className:t("text-xs text-text-muted font-medium mt-1",p),children:o}),T&&jsxRuntime.jsx("p",{id:X,role:d==="error"?"alert":void 0,className:t("text-xs font-bold mt-1",Dr[d],p),children:T})]})});Ar.displayName="FileUpload";var Qs={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full m-0 rounded-none h-full"};function ei({isOpen:r,onClose:e,children:n,size:o="md",isCentered:i=false,closeOnOverlayClick:a=true,closeOnEsc:c=true,trapFocus:s=true,lockScroll:d=true,contentClassName:l,overlayClassName:f,showBackdrop:m=true,isModal:p=true,ariaLabel:u,ariaLabelledby:b,ariaDescribedby:B}){let v=ae.useRef(null),I=ae.useRef(null),k=ae.useCallback(()=>{e();},[e]);return ae.useEffect(()=>{if(r){I.current=document.activeElement,p&&d&&(document.body.style.overflow="hidden");let M=E=>{if(c&&E.key==="Escape"){k();return}if(p&&s&&E.key==="Tab"){let C=v.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!C||C.length===0)return;let x=C[0],y=C[C.length-1];E.shiftKey?document.activeElement===x&&(y.focus(),E.preventDefault()):document.activeElement===y&&(x.focus(),E.preventDefault());}};return document.addEventListener("keydown",M),p&&setTimeout(()=>{let E=v.current?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');E!=null?E.focus():v.current?.focus();},0),()=>{document.removeEventListener("keydown",M),p&&d&&(document.body.style.overflow=""),I.current?.focus();}}},[r,c,k,d,s,p]),r?reactDom.createPortal(jsxRuntime.jsx("div",{role:"presentation",className:t("fixed inset-0 z-50 flex items-start justify-center p-4 sm:p-6 overflow-y-auto transition-opacity duration-300",m&&"bg-black/60 backdrop-blur-sm",!p&&"pointer-events-none",i&&"items-center",f),onClick:M=>{a&&M.target===M.currentTarget&&k();},children:jsxRuntime.jsx("div",{ref:v,role:"dialog",tabIndex:-1,"aria-modal":p?"true":"false","aria-label":u,"aria-labelledby":b,"aria-describedby":B,className:t("relative w-full mx-auto bg-surface rounded-xl shadow-lg border border-border transition-all duration-300 transform scale-100 opacity-100 flex flex-col",o!=="full"&&"max-h-[90vh]",!p&&"pointer-events-auto",Qs[o],l),children:n})}),document.body):null}function ti({children:r,className:e}){return jsxRuntime.jsx("div",{className:t("px-6 py-5 border-b border-border/60",e),children:jsxRuntime.jsx("h2",{className:"text-xl font-bold text-text uppercase tracking-wider",children:r})})}function ri({children:r,className:e}){return jsxRuntime.jsx("div",{className:t("px-6 py-6 overflow-y-auto flex-1 text-text-secondary leading-relaxed font-medium",e),children:r})}function ni({children:r,className:e}){return jsxRuntime.jsx("div",{className:t("px-6 py-4 bg-surface-secondary border-t border-border flex items-center justify-end gap-3 rounded-b-xl",e),children:r})}function oi({onClick:r,className:e}){return jsxRuntime.jsx("button",{type:"button",onClick:r,className:t("absolute top-4 right-4 p-2 text-text-muted hover:text-text hover:bg-hover rounded-lg transition-all duration-fast",e),"aria-label":"Close dialog",children:jsxRuntime.jsx(outline.XMarkIcon,{className:"w-5 h-5"})})}var di={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full w-full h-full m-0 rounded-none"},ci={xs:"w-64",sm:"w-80",md:"w-96",lg:"w-[30rem]",xl:"w-[36rem]","2xl":"w-[42rem]","3xl":"w-[48rem]","4xl":"w-[56rem]","5xl":"w-[64rem]","6xl":"w-[72rem]","7xl":"w-[80rem]",full:"w-full"},ui={default:"bg-surface border border-border shadow-[0_20px_60px_-10px_rgba(0,0,0,0.2),0_8px_20px_-8px_rgba(0,0,0,0.1)]",glass:"bg-white/10 dark:bg-black/20 backdrop-blur-xl border border-white/20 dark:border-white/10 shadow-[0_25px_50px_-12px_rgba(0,0,0,0.4)]",flat:"bg-surface shadow-[0_4px_24px_rgba(0,0,0,0.08)]"},mi={top:"items-start pt-16",center:"items-center",bottom:"items-end pb-0",left:"items-stretch justify-start p-0",right:"items-stretch justify-end p-0"},fi={top:"",center:"",bottom:"rounded-b-none w-full max-w-full",left:"rounded-l-none rounded-r-2xl h-full max-h-full my-0",right:"rounded-r-none rounded-l-2xl h-full max-h-full my-0"},ot=function({isOpen:e,onClose:n,children:o,size:i="md",variant:a="default",position:c="center",closeOnOverlayClick:s=true,closeOnEsc:d=true,trapFocus:l=true,lockScroll:f=true,contentClassName:m,overlayClassName:p,showBackdrop:u=true,ariaLabel:b,ariaLabelledby:B,ariaDescribedby:v}){let I=ae.useRef(null),k=ae.useRef(null),M=ae.useCallback(()=>{n();},[n]);if(ae.useEffect(()=>{if(e){k.current=document.activeElement,f&&(document.body.style.overflow="hidden");let h=w=>{if(d&&w.key==="Escape"){M();return}if(l&&w.key==="Tab"){let L=I.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!L||L.length===0)return;let D=L[0],H=L[L.length-1];w.shiftKey?document.activeElement===D&&(H.focus(),w.preventDefault()):document.activeElement===H&&(D.focus(),w.preventDefault());}};return document.addEventListener("keydown",h),setTimeout(()=>{let w=I.current?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');w!=null?w.focus():I.current?.focus();},50),()=>{document.removeEventListener("keydown",h),f&&(document.body.style.overflow=""),k.current?.focus();}}},[e,d,M,f,l]),!e)return null;let E=c==="bottom",C=c==="left",x=c==="right",y=C||x,g="animate-[modal-zoom-in_200ms_cubic-bezier(0.34,1.56,0.64,1)_forwards]";E&&(g="animate-[modal-slide-up_250ms_cubic-bezier(0.32,0.72,0,1)_forwards]"),C&&(g="animate-[modal-slide-right_250ms_cubic-bezier(0.32,0.72,0,1)_forwards]"),x&&(g="animate-[modal-slide-left_250ms_cubic-bezier(0.32,0.72,0,1)_forwards]");let R=y?ci[i]:di[i];return reactDom.createPortal(jsxRuntime.jsx("div",{role:"presentation",className:t("fixed inset-0 z-[1050] flex justify-center",!y&&"overflow-y-auto p-4",u&&"bg-black/50 backdrop-blur-[3px]","animate-[modal-overlay-in_200ms_ease-out_forwards]",mi[c],p),onClick:h=>{s&&h.target===h.currentTarget&&M();},children:jsxRuntime.jsx("div",{ref:I,role:"dialog",tabIndex:-1,"aria-modal":"true","aria-label":b,"aria-labelledby":B,"aria-describedby":v,className:t("relative flex flex-col",!y&&!E&&i!=="full"&&"w-full mx-auto max-h-[90vh] my-4 rounded-2xl",E&&"rounded-2xl",y&&"mx-0",g,ui[a],R,fi[c],m),children:o})}),document.body)};function Vr({children:r,className:e,icon:n,description:o}){return jsxRuntime.jsxs("div",{className:t("relative px-6 py-5 border-b border-border/60 flex-shrink-0",e),children:[n&&jsxRuntime.jsx("div",{className:"mb-3 w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:n}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold text-text leading-tight tracking-tight",children:r}),o&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-text-muted leading-relaxed",children:o})]})}function Fr({children:r,className:e,noPadding:n=false}){return jsxRuntime.jsx("div",{className:t("flex-1 overflow-y-auto text-text-secondary text-sm leading-relaxed",!n&&"px-6 py-5",e),children:r})}var pi={left:"justify-start",center:"justify-center",right:"justify-end"};function _r({children:r,className:e,align:n="right"}){return jsxRuntime.jsx("div",{className:t("flex-shrink-0 px-6 py-4 border-t border-border/60 bg-surface-secondary/30 flex flex-wrap items-center gap-3 rounded-b-2xl",pi[n],e),children:r})}function Or({onClick:r,className:e}){return jsxRuntime.jsx("button",{type:"button",onClick:r,className:t("absolute top-4 right-4 z-10","w-8 h-8 flex items-center justify-center rounded-lg","text-text-muted hover:text-text","bg-transparent hover:bg-hover","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",e),"aria-label":"Close modal",children:jsxRuntime.jsx(outline.XMarkIcon,{className:"w-4 h-4",strokeWidth:2})})}ot.Header=Vr;ot.Body=Fr;ot.Footer=_r;ot.CloseButton=Or;var Ci={xs:"h-6 px-2 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-4 text-lg"},Si={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},Kr={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-xs",md:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base",xl:"px-4 py-3 text-lg"},Ri={default:"border-border focus-within:border-primary focus-within:ring-2 focus-within:ring-primary/40",error:"border-error focus-within:ring-2 focus-within:ring-error/20",success:"border-success focus-within:ring-2 focus-within:ring-success/20",warning:"border-warning focus-within:ring-2 focus-within:ring-warning/20"},ki={default:"text-text-muted",error:"text-error font-medium",success:"text-success font-medium",warning:"text-warning font-medium"};function Ni(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}var Ur=ae.forwardRef(function({options:e,value:n,onChange:o,multiple:i=false,searchable:a=true,clearable:c=false,label:s,required:d=false,helperText:l,errorMessage:f,successMessage:m,warningMessage:p,state:u="default",size:b="md",fullWidth:B=true,placeholder:v="Select\u2026",noOptionsMessage:I="No options",wrapperClassName:k,inputClassName:M,listClassName:E,labelClassName:C,helperClassName:x,disabled:y,id:g,className:R,...h},w){let L=ae.useId(),D=g??L,H=`${D}-listbox`,A=`${D}-helper`,F=`${D}-state`,[$,V]=ae.useState(false),[U,_]=ae.useState(""),[X,T]=ae.useState(-1),O=ae.useRef(null),N=ae.useRef(null),S=ae.useMemo(()=>n==null?[]:Array.isArray(n)?n:[n],[n]),P=$&&a?U:S.map(j=>e.find(W=>W.value===j)?.label??j).join(", "),z=$&&a&&U.length>0?e.filter(j=>j.label.toLowerCase().includes(U.toLowerCase())):e;ae.useEffect(()=>{let j=W=>{O.current&&!O.current.contains(W.target)&&(V(false),_(""));};return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j);}},[]);let K=ae.useCallback(()=>{y||(V(true),_(""),T(-1));},[y]),Y=ae.useCallback(()=>{V(false),_(""),T(-1);},[]),Q=ae.useCallback(j=>{if(!j.disabled)if(i){let W=S.includes(j.value)?S.filter(ve=>ve!==j.value):[...S,j.value];o?.(W);}else o?.(j.value),Y();},[i,S,o,Y]),J=ae.useCallback(()=>{o?.(i?[]:""),_(""),N.current?.focus();},[i,o]),ee=j=>{_(j.target.value),T(-1),$||V(true);},xe=j=>{if(!y)switch(j.key){case "ArrowDown":j.preventDefault(),$?T(W=>W<z.length-1?W+1:W):K();break;case "ArrowUp":j.preventDefault(),T(W=>W>0?W-1:0);break;case "Enter":if(j.preventDefault(),!$)K();else if(X>=0&&X<z.length){let W=z[X];W!=null&&Q(W);}break;case "Escape":j.preventDefault(),Y();break;case "Tab":Y();break;}},ye=Ni(u,f,m,p),yt=[l?A:null,ye?F:null].filter(Boolean).join(" ")||void 0,vt=c&&S.length>0&&!y,Le=j=>S.includes(j);return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",B?"w-full":"w-fit",$&&"z-[60]",k,R),children:[s!=null&&jsxRuntime.jsxs("label",{htmlFor:D,className:t("font-black leading-none text-text uppercase tracking-widest",Si[b],C),children:[s,d&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{ref:O,className:"relative",onKeyDown:xe,children:[jsxRuntime.jsxs("div",{className:t("flex items-center w-full rounded-md border bg-surface shadow-sm transition-all duration-normal",Ci[b],Ri[u],y&&"cursor-not-allowed opacity-50 bg-surface-secondary"),children:[jsxRuntime.jsx("input",{...h,ref:j=>{N.current=j,typeof w=="function"?w(j):w!=null&&(w.current=j);},id:D,role:"combobox",type:"text",autoComplete:"off","aria-expanded":$,"aria-haspopup":"listbox","aria-controls":H,"aria-autocomplete":a?"list":"none","aria-activedescendant":X>=0?`${H}-opt-${String(X)}`:void 0,"aria-invalid":u==="error"?true:void 0,"aria-required":d,"aria-describedby":yt,disabled:y,readOnly:!a,placeholder:S.length===0?v:void 0,value:P,onChange:a?ee:void 0,onFocus:K,onClick:K,className:t("flex-1 min-w-0 bg-transparent outline-none placeholder:text-text-muted transition-all duration-normal",!a&&"cursor-pointer select-none",M)}),jsxRuntime.jsxs("div",{className:"flex items-center gap-0.5 ml-1 shrink-0",children:[vt&&jsxRuntime.jsx("button",{type:"button","aria-label":"Clear selection",onMouseDown:j=>{j.preventDefault();},onClick:J,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast",children:jsxRuntime.jsx(solid.XMarkIcon,{className:"w-3.5 h-3.5"})}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("text-text-muted transition-transform duration-200",$&&"rotate-180"),children:jsxRuntime.jsx(solid.ChevronDownIcon,{className:"w-4 h-4"})})]})]}),$&&jsxRuntime.jsx("ul",{id:H,role:"listbox","aria-multiselectable":i,"aria-label":s??"Options",className:t("absolute z-dropdown mt-1 w-full bg-surface border border-border rounded-lg shadow-lg overflow-y-auto max-h-60 py-1.5 animate-in fade-in zoom-in-95 duration-normal",E),children:z.length===0?jsxRuntime.jsx("li",{className:t("text-text-muted italic select-none font-medium",Kr[b]),children:I}):z.map((j,W)=>{let ve=Le(j.value),Ae=W===X;return jsxRuntime.jsxs("li",{id:`${H}-opt-${String(W)}`,role:"option","aria-selected":ve,"aria-disabled":j.disabled,onMouseDown:Me=>{Me.preventDefault();},onClick:()=>{Q(j);},onKeyDown:Me=>{(Me.key==="Enter"||Me.key===" ")&&(Me.preventDefault(),Q(j));},onMouseEnter:()=>{T(W);},className:t("flex items-center gap-2 cursor-pointer select-none transition-all duration-fast font-medium",Kr[b],Ae&&!j.disabled&&"bg-hover",ve&&"text-primary font-bold",j.disabled&&"cursor-not-allowed opacity-40"),children:[i&&jsxRuntime.jsx("span",{className:t("shrink-0 w-4 h-4 rounded-sm border flex items-center justify-center transition-all duration-normal",ve?"bg-primary border-primary":"border-border"),"aria-hidden":"true",children:ve&&jsxRuntime.jsx(solid.CheckIcon,{className:"w-2.5 h-2.5 text-text-inverse"})}),!i&&jsxRuntime.jsx("span",{className:"w-4 shrink-0","aria-hidden":"true",children:ve&&jsxRuntime.jsx(solid.CheckIcon,{className:"w-4 h-4 text-primary"})}),j.label]},j.value)})})]}),l!=null&&jsxRuntime.jsx("p",{id:A,className:t("text-xs leading-tight text-text-muted font-medium",x),children:l}),ye!=null&&jsxRuntime.jsx("p",{id:F,role:u==="error"?"alert":void 0,className:t("text-xs leading-tight font-medium",ki[u],x),children:ye})]})});Ur.displayName="ComboBox";var Li=[10,20,50];function Ft({total:r,page:e,pageSize:n,totalPages:o,hasNextPage:i,hasPrevPage:a,onPageChange:c,onPageSizeChange:s,pageSizeOptions:d=Li,showSizeChanger:l,className:f}){let m=o??Math.max(1,Math.ceil(r/n)),p=a??e>1,u=i??e<m,b=Mi(e,m),B=Math.min((e-1)*n+1,r),v=Math.min(e*n,r),I=l??s!=null;return jsxRuntime.jsxs("div",{className:t("flex flex-col sm:flex-row items-center justify-between gap-3 py-3 px-4 border-t border-border bg-surface-secondary/50 rounded-b-xl text-sm",f),children:[jsxRuntime.jsx("p",{className:"text-text-secondary shrink-0",children:r===0?"No items":`${String(B)}\u2013${String(v)} of ${String(r)} items`}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 flex-wrap justify-center",children:[I&&s!=null&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:"text-text-muted",children:"Rows:"}),jsxRuntime.jsx("select",{value:n,"aria-label":"Rows per page",onChange:k=>{s(Number(k.target.value));},className:"border border-border rounded-sm py-1 pl-2 pr-6 text-sm text-text bg-surface focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary cursor-pointer transition-all duration-normal",children:d.map(k=>jsxRuntime.jsx("option",{value:k,children:k},k))})]}),jsxRuntime.jsxs("nav",{"aria-label":"Pagination",className:"flex items-center gap-1",children:[jsxRuntime.jsx(at,{onClick:()=>{c(1);},disabled:!p,"aria-label":"First page",children:jsxRuntime.jsx(outline.ChevronDoubleLeftIcon,{className:"w-3.5 h-3.5"})}),jsxRuntime.jsx(at,{onClick:()=>{c(e-1);},disabled:!p,"aria-label":"Previous page",children:jsxRuntime.jsx(outline.ChevronLeftIcon,{className:"w-3.5 h-3.5"})}),b.map((k,M)=>k==="\u2026"?jsxRuntime.jsx("span",{className:"w-8 text-center text-text-muted/60 select-none","aria-hidden":"true",children:"\u2026"},`ellipsis-${String(M)}`):jsxRuntime.jsx(at,{onClick:()=>{c(k);},active:k===e,"aria-label":`Page ${String(k)}`,"aria-current":k===e?"page":void 0,children:k},k)),jsxRuntime.jsx(at,{onClick:()=>{c(e+1);},disabled:!u,"aria-label":"Next page",children:jsxRuntime.jsx(outline.ChevronRightIcon,{className:"w-3.5 h-3.5"})}),jsxRuntime.jsx(at,{onClick:()=>{c(m);},disabled:!u,"aria-label":"Last page",children:jsxRuntime.jsx(outline.ChevronDoubleRightIcon,{className:"w-3.5 h-3.5"})})]})]})]})}function at({children:r,active:e=false,disabled:n=false,className:o,...i}){return jsxRuntime.jsx("button",{type:"button",disabled:n,className:t("min-w-[32px] h-8 px-2 rounded-sm font-medium transition-all duration-normal text-sm flex items-center justify-center",e?"bg-primary text-text-inverse shadow-sm":"text-text-secondary hover:bg-hover active:bg-active",n&&"opacity-40 cursor-not-allowed pointer-events-none",o),...i,children:r})}function Mi(r,e){if(e<=7)return Array.from({length:e},(a,c)=>c+1);let n=[1];r>3&&n.push("\u2026");let o=Math.max(2,r-1),i=Math.min(e-1,r+1);for(let a=o;a<=i;a++)n.push(a);return r<e-2&&n.push("\u2026"),n.push(e),n}var Xr={sm:"px-3 py-1.5 text-xs",md:"px-4 py-3 text-sm",lg:"px-5 py-4 text-base"},Vi={sm:"px-3 py-2 text-xs",md:"px-4 py-3 text-sm",lg:"px-5 py-4 text-base"};function Fi({direction:r}){return jsxRuntime.jsxs("span",{"aria-hidden":"true",className:"inline-flex flex-col ml-1 -space-y-1.5",children:[jsxRuntime.jsx(solid.ChevronUpIcon,{className:t("w-3.5 h-3.5 transition-all duration-normal",r==="asc"?"text-primary":"text-text-muted/30")}),jsxRuntime.jsx(solid.ChevronDownIcon,{className:t("w-3.5 h-3.5 transition-all duration-normal",r==="desc"?"text-primary":"text-text-muted/30")})]})}function _i({cols:r,size:e}){return jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:5}).map((n,o)=>jsxRuntime.jsx("tr",{children:Array.from({length:r}).map((i,a)=>jsxRuntime.jsx("td",{className:Xr[e],children:jsxRuntime.jsx("div",{className:"h-4 bg-surface-secondary rounded-sm animate-pulse",style:{width:`${String(Math.floor(60+Math.random()*30))}%`}})},a))},o))})}function Oi({data:r,columns:e,rowKey:n,loading:o=false,emptyMessage:i="No data",striped:a=false,bordered:c=false,hoverable:s=true,stickyHeader:d=false,size:l="md",sortState:f,onSortChange:m,className:p,tableClassName:u,pagination:b,headerVariant:B="light"}){let[v,I]=ae.useState(null),k=f??v,M=ae.useCallback(x=>{if(!x.sortable)return;let y={key:x.key,direction:k?.key===x.key&&k.direction==="asc"?"desc":"asc"};m?m(y):I(y);},[k,m]),E=ae.useMemo(()=>!k||m?r:[...r].sort((x,y)=>{let g=x[k.key],R=y[k.key],h=typeof g=="string"&&typeof R=="string"?g.localeCompare(R):String(g).localeCompare(String(R));return k.direction==="asc"?h:-h}),[r,k,m]),C=!o&&E.length===0;return jsxRuntime.jsxs("div",{className:t("w-full overflow-hidden rounded-xl border border-border bg-surface shadow-sm transition-colors duration-normal",c&&"border",p),children:[jsxRuntime.jsx("div",{className:"overflow-x-auto",children:jsxRuntime.jsxs("table",{className:t("w-full border-collapse",u),children:[jsxRuntime.jsx("thead",{className:t(d&&"sticky top-0 z-dropdown"),children:jsxRuntime.jsx("tr",{className:t("border-b border-border transition-colors duration-normal",B==="light"?"bg-surface-secondary":"bg-black"),children:e.map(x=>{let y=k?.key===x.key,g=y?k.direction:null;return jsxRuntime.jsx("th",{scope:"col",style:{width:x.width},"aria-sort":y?g==="asc"?"ascending":"descending":x.sortable?"none":void 0,className:t(Vi[l],"font-black tracking-widest uppercase whitespace-nowrap select-none transition-all duration-normal",B==="light"?"text-text-secondary":"text-white",x.align==="center"&&"text-center",x.align==="right"&&"text-right",x.sortable&&"cursor-pointer hover:bg-hover",B==="dark"&&x.sortable&&"hover:bg-white/10",c&&"border border-border",x.headerClassName),onClick:x.sortable?()=>{M(x);}:void 0,onKeyDown:x.sortable?R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),M(x));}:void 0,tabIndex:x.sortable?0:void 0,children:jsxRuntime.jsxs("span",{className:t("flex items-center gap-1",x.align==="center"&&"justify-center",x.align==="right"&&"justify-end"),children:[x.header,x.sortable&&jsxRuntime.jsx(Fi,{direction:g})]})},x.key)})})}),jsxRuntime.jsx("tbody",{children:o?jsxRuntime.jsx(_i,{cols:e.length,size:l}):C?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length,className:"py-16 text-center text-text-muted text-sm font-medium",children:i})}):E.map((x,y)=>jsxRuntime.jsx("tr",{className:t("border-b border-border-light last:border-0 transition-colors duration-fast",a&&y%2!==0&&"bg-surface-secondary/40",s&&"hover:bg-hover/60"),children:e.map(g=>jsxRuntime.jsx("td",{className:t(Xr[l],"text-text font-medium",g.align==="center"&&"text-center",g.align==="right"&&"text-right",c&&"border border-border",g.cellClassName),children:g.render?g.render(x,y):(()=>{let R=x[g.key];return R==null?"":typeof R=="object"?JSON.stringify(R):String(R)})()},g.key))},n(x)))})]})}),b&&jsxRuntime.jsx(Ft,{...b})]})}var _t={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg"},Jr={slash:jsxRuntime.jsx("span",{"aria-hidden":"true",className:"select-none text-text-muted/60",children:"/"}),chevron:jsxRuntime.jsx(solid.ChevronRightIcon,{"aria-hidden":"true",className:"w-4 h-4 text-text-muted/60 shrink-0"}),dot:jsxRuntime.jsx("span",{"aria-hidden":"true",className:"select-none text-text-muted/60",children:"\xB7"})};function Ui(r){return typeof r=="string"&&r in Jr?Jr[r]:r}function Gr({item:r,isCurrent:e,size:n}){let o=t("inline-flex items-center gap-1 transition-colors leading-none",_t[n],e?"font-bold text-text cursor-default":r.disabled?"text-text-muted cursor-not-allowed":"text-primary hover:text-primary-hover hover:underline underline-offset-4 cursor-pointer");return e?jsxRuntime.jsx("span",{className:o,"aria-current":"page",children:r.label}):r.disabled?jsxRuntime.jsx("span",{className:o,children:r.label}):r.onClick!=null?jsxRuntime.jsx("button",{type:"button",onClick:r.onClick,className:o,children:r.label}):r.href!=null?jsxRuntime.jsx("a",{href:r.href,className:o,children:r.label}):jsxRuntime.jsx("span",{className:o,children:r.label})}function Xi({items:r,separator:e="chevron",size:n="sm",collapsible:o=false,maxItems:i=4,className:a}){let[c,s]=ae.useState(false);if(r.length===0)return null;let d=Ui(e),l,f=false;if(o&&!c&&r.length>i){let p=Math.max(1,i-1);l=r.slice(0,p),f=true;}else l=r;let m=[];if(l.forEach((p,u)=>{let b=!f&&u===r.length-1;u>0&&m.push(jsxRuntime.jsx("li",{role:"presentation",className:"flex items-center",children:d},`sep-${String(u)}`)),m.push(jsxRuntime.jsx("li",{className:"flex items-center",children:jsxRuntime.jsx(Gr,{item:p,isCurrent:b,size:n})},`item-${String(u)}`));}),f){m.push(jsxRuntime.jsx("li",{role:"presentation",className:"flex items-center",children:d},"sep-ellipsis")),m.push(jsxRuntime.jsx("li",{className:"flex items-center",children:jsxRuntime.jsx("button",{type:"button","aria-label":"Show full path",onClick:()=>{s(true);},className:t("text-text-muted hover:text-text-secondary transition-colors leading-none px-1",_t[n]),children:"\xB7\xB7\xB7"})},"ellipsis"));let p=r[r.length-1];p!=null&&(m.push(jsxRuntime.jsx("li",{role:"presentation",className:"flex items-center",children:d},"sep-last")),m.push(jsxRuntime.jsx("li",{className:"flex items-center",children:jsxRuntime.jsx(Gr,{item:p,isCurrent:true,size:n})},"item-last")));}return jsxRuntime.jsx("nav",{"aria-label":"Breadcrumb",className:t("w-full",a),children:jsxRuntime.jsx("ol",{className:t("flex flex-wrap items-center gap-1",_t[n]),children:m})})}var qr={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-6 h-6",lg:"w-9 h-9",xl:"w-12 h-12"},Ji={xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-3 h-3",xl:"w-4 h-4"},Gi={xs:"h-0.5 w-16",sm:"h-1 w-24",md:"h-1.5 w-32",lg:"h-2 w-48",xl:"h-2.5 w-64"},qi={xs:"w-5 h-5",sm:"w-7 h-7",md:"w-10 h-10",lg:"w-14 h-14",xl:"w-20 h-20"},Wr={primary:"text-primary",secondary:"text-secondary",success:"text-success",error:"text-error",warning:"text-warning",white:"text-text-inverse",current:"text-current"},$t={primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",error:"bg-error",warning:"bg-warning",white:"bg-text-inverse",current:"bg-current"};function Wi({size:r,color:e}){return jsxRuntime.jsxs("div",{className:t("relative flex items-center justify-center",qr[r]),children:[jsxRuntime.jsx("div",{className:t("absolute inset-0 rounded-full border-2 border-current opacity-20 animate-ping",Wr[e])}),jsxRuntime.jsxs("svg",{className:t("animate-spin relative z-10",qr[r],Wr[e]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),jsxRuntime.jsx("path",{className:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})]})}function Zi({size:r,color:e}){return jsxRuntime.jsx("div",{className:"flex items-center gap-1","aria-hidden":"true",children:[0,1,2].map(n=>jsxRuntime.jsx("span",{style:{animationDelay:`${String(n*160)}ms`},className:t("rounded-full animate-bounce",Ji[r],$t[e])},n))})}function Yi({size:r,color:e}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("rounded-full animate-ping",qi[r],$t[e],"opacity-75")})}function Qi({size:r,color:e}){return jsxRuntime.jsx("div",{"aria-hidden":"true",className:t("rounded-full overflow-hidden bg-divider",Gi[r]),children:jsxRuntime.jsx("div",{className:t("h-full rounded-full animate-[bar-slide_1.4s_ease-in-out_infinite]",$t[e]),style:{width:"40%",animation:"bar-slide 1.4s ease-in-out infinite"}})})}var el={spinner:Wi,dots:Zi,pulse:Yi,bar:Qi};function tl({variant:r="spinner",size:e="md",color:n="primary",label:o="Loading\u2026",fullscreen:i=false,className:a}){let c=el[r],s=jsxRuntime.jsxs("div",{role:"status","aria-label":o,className:t("inline-flex flex-col items-center justify-center gap-2",!i&&a),children:[jsxRuntime.jsx(c,{size:e,color:n}),jsxRuntime.jsx("span",{className:"sr-only",children:o})]});return i?jsxRuntime.jsx("div",{className:t("fixed inset-0 z-50 flex items-center justify-center bg-surface/80 backdrop-blur-md",a),children:s}):s}var rl={default:"animate-pulse bg-skeleton",wave:"skeleton-wave bg-skeleton",pulse:"animate-pulse bg-skeleton-shine"},nl={rectangle:"rounded-sm",circle:"rounded-full",rounded:"rounded-md"},ge=ae.forwardRef(function({className:e,variant:n="wave",shape:o="rectangle",width:i,height:a,style:c,...s},d){return jsxRuntime.jsx("div",{ref:d,role:"status","aria-busy":"true","aria-label":"Loading",style:{width:i!==void 0?typeof i=="number"?`${String(i)}px`:i:void 0,height:a!==void 0?typeof a=="number"?`${String(a)}px`:a:void 0,...c},className:t("overflow-hidden",rl[n],nl[o],e),...s})});ge.displayName="Skeleton";var jt=ae.forwardRef(function({lines:e=3,variant:n="wave",shortLast:o=true,className:i,...a},c){return jsxRuntime.jsx("div",{ref:c,className:t("flex flex-col gap-2",i),role:"status","aria-busy":"true","aria-label":"Loading",...a,children:Array.from({length:e}).map((s,d)=>{let l=d===e-1;return jsxRuntime.jsx(ge,{variant:n,height:14,className:t(l&&o?"w-3/5":"w-full")},d)})})});jt.displayName="SkeletonText";var Zr=ae.forwardRef(function({size:e=40,variant:n="wave",className:o,...i},a){return jsxRuntime.jsx(ge,{ref:a,variant:n,shape:"circle",width:e,height:e,className:t("shrink-0",o),...i})});Zr.displayName="SkeletonAvatar";var Yr=ae.forwardRef(function({showImage:e=true,imageHeight:n=160,lines:o=3,variant:i="wave",className:a,...c},s){return jsxRuntime.jsxs("div",{ref:s,className:t("rounded-lg border border-border bg-surface overflow-hidden flex flex-col",a),role:"status","aria-busy":"true","aria-label":"Loading",...c,children:[e&&jsxRuntime.jsx(ge,{variant:i,shape:"rectangle",height:n,className:"w-full rounded-none"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-2 p-4",children:[jsxRuntime.jsx(ge,{variant:i,height:20,className:"w-2/3"}),jsxRuntime.jsx(jt,{lines:o,variant:i,className:"mt-1"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[jsxRuntime.jsx(ge,{variant:i,width:80,height:32,shape:"rounded"}),jsxRuntime.jsx(ge,{variant:i,width:80,height:32,shape:"rounded"})]})]})]})});Yr.displayName="SkeletonCard";var Qr=ae.forwardRef(function({rows:e=5,columns:n=4,variant:o="wave",showHeader:i=true,className:a,...c},s){return jsxRuntime.jsxs("div",{ref:s,className:t("w-full rounded-lg border border-border overflow-hidden bg-surface",a),role:"status","aria-busy":"true","aria-label":"Loading",...c,children:[i&&jsxRuntime.jsx("div",{className:"flex items-center gap-4 border-b border-border px-4 py-2 bg-surface-secondary",children:Array.from({length:n}).map((d,l)=>jsxRuntime.jsx(ge,{variant:o,height:14,className:t(l===0?"w-1/4":l===n-1?"w-16":"flex-1")},l))}),Array.from({length:e}).map((d,l)=>jsxRuntime.jsx("div",{className:t("flex items-center gap-4 px-4 py-2",l<e-1&&"border-b border-border"),children:Array.from({length:n}).map((f,m)=>jsxRuntime.jsx(ge,{variant:o,height:14,className:t(m===0?"w-1/4":m===n-1?"w-16":"flex-1")},m))},l))]})});Qr.displayName="SkeletonTable";var al={primary:"bg-primary text-text-inverse shadow-sm shadow-primary/30",secondary:"bg-secondary text-text shadow-sm shadow-secondary/30",success:"bg-success text-text-inverse shadow-sm shadow-success/30",error:"bg-error text-text-inverse shadow-sm shadow-error/30",warning:"bg-warning text-text-inverse shadow-sm shadow-warning/30",info:"bg-info text-text-inverse shadow-sm shadow-info/30",accent:"bg-accent text-text-inverse shadow-sm shadow-accent/30",gray:"bg-surface-secondary text-text-secondary shadow-sm",blue:"bg-primary text-text-inverse shadow-sm shadow-primary/30",green:"bg-success text-text-inverse shadow-sm shadow-success/30",red:"bg-error text-text-inverse shadow-sm shadow-error/30",yellow:"bg-warning text-text-inverse shadow-sm shadow-warning/30",purple:"bg-purple-600 text-white shadow-sm shadow-purple-500/30",pink:"bg-pink-500 text-white shadow-sm shadow-pink-500/30",orange:"bg-orange-500 text-white shadow-sm shadow-orange-500/30",cyan:"bg-cyan-500 text-white shadow-sm shadow-cyan-500/30",teal:"bg-teal-500 text-white shadow-sm shadow-teal-500/30",indigo:"bg-indigo-500 text-white shadow-sm shadow-indigo-500/30"},rn={primary:"bg-primary/10 text-primary ring-1 ring-inset ring-primary/20",secondary:"bg-secondary/10 text-secondary ring-1 ring-inset ring-secondary/20",success:"bg-success/10 text-success ring-1 ring-inset ring-success/20",error:"bg-error/10 text-error ring-1 ring-inset ring-error/20",warning:"bg-warning/10 text-warning ring-1 ring-inset ring-warning/20",info:"bg-info/10 text-info ring-1 ring-inset ring-info/20",accent:"bg-accent/10 text-accent ring-1 ring-inset ring-accent/20",gray:"bg-surface-secondary/60 text-text-secondary ring-1 ring-inset ring-border/40",blue:"bg-primary/10 text-primary ring-1 ring-inset ring-primary/20",green:"bg-success/10 text-success ring-1 ring-inset ring-success/20",red:"bg-error/10 text-error ring-1 ring-inset ring-error/20",yellow:"bg-warning/10 text-warning ring-1 ring-inset ring-warning/20",purple:"bg-purple-500/10 text-purple-500 ring-1 ring-inset ring-purple-500/25",pink:"bg-pink-500/10 text-pink-500 ring-1 ring-inset ring-pink-500/25",orange:"bg-orange-500/10 text-orange-500 ring-1 ring-inset ring-orange-500/25",cyan:"bg-cyan-500/10 text-cyan-500 ring-1 ring-inset ring-cyan-500/25",teal:"bg-teal-500/10 text-teal-500 ring-1 ring-inset ring-teal-500/25",indigo:"bg-indigo-500/10 text-indigo-500 ring-1 ring-inset ring-indigo-500/25"},sl={primary:"border border-primary/60 text-primary bg-transparent",secondary:"border border-secondary/60 text-secondary bg-transparent",success:"border border-success/60 text-success bg-transparent",error:"border border-error/60 text-error bg-transparent",warning:"border border-warning/60 text-warning bg-transparent",info:"border border-info/60 text-info bg-transparent",accent:"border border-accent/60 text-accent bg-transparent",gray:"border border-border text-text-secondary bg-transparent",blue:"border border-primary/60 text-primary bg-transparent",green:"border border-success/60 text-success bg-transparent",red:"border border-error/60 text-error bg-transparent",yellow:"border border-warning/60 text-warning bg-transparent",purple:"border border-purple-500/60 text-purple-500 bg-transparent",pink:"border border-pink-500/60 text-pink-500 bg-transparent",orange:"border border-orange-500/60 text-orange-500 bg-transparent",cyan:"border border-cyan-500/60 text-cyan-500 bg-transparent",teal:"border border-teal-500/60 text-teal-500 bg-transparent",indigo:"border border-indigo-500/60 text-indigo-500 bg-transparent"},il={primary:"bg-gradient-to-r from-blue-500 to-indigo-600 text-white shadow-sm shadow-blue-500/30",secondary:"bg-gradient-to-r from-slate-500 to-slate-700 text-white shadow-sm shadow-slate-500/30",success:"bg-gradient-to-r from-green-400 to-emerald-600 text-white shadow-sm shadow-green-500/30",error:"bg-gradient-to-r from-red-500 to-rose-600 text-white shadow-sm shadow-red-500/30",warning:"bg-gradient-to-r from-amber-400 to-orange-500 text-white shadow-sm shadow-amber-500/30",info:"bg-gradient-to-r from-sky-400 to-blue-600 text-white shadow-sm shadow-blue-500/30",accent:"bg-gradient-to-r from-cyan-400 to-sky-600 text-white shadow-sm shadow-cyan-500/30",gray:"bg-gradient-to-r from-slate-400 to-slate-500 text-white shadow-sm",blue:"bg-gradient-to-r from-blue-500 to-indigo-600 text-white shadow-sm shadow-blue-500/30",green:"bg-gradient-to-r from-green-400 to-emerald-600 text-white shadow-sm shadow-green-500/30",red:"bg-gradient-to-r from-red-500 to-rose-600 text-white shadow-sm shadow-red-500/30",yellow:"bg-gradient-to-r from-amber-400 to-orange-500 text-white shadow-sm shadow-amber-500/30",purple:"bg-gradient-to-r from-purple-500 to-violet-600 text-white shadow-sm shadow-purple-500/30",pink:"bg-gradient-to-r from-pink-500 to-fuchsia-600 text-white shadow-sm shadow-pink-500/30",orange:"bg-gradient-to-r from-orange-400 to-red-500 text-white shadow-sm shadow-orange-500/30",cyan:"bg-gradient-to-r from-cyan-400 to-sky-500 text-white shadow-sm shadow-cyan-500/30",teal:"bg-gradient-to-r from-teal-400 to-cyan-500 text-white shadow-sm shadow-teal-500/30",indigo:"bg-gradient-to-r from-indigo-500 to-purple-600 text-white shadow-sm shadow-indigo-500/30"},en={primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",error:"bg-error",warning:"bg-warning",info:"bg-info",accent:"bg-accent",gray:"bg-slate-400",blue:"bg-primary",green:"bg-success",red:"bg-error",yellow:"bg-warning",purple:"bg-purple-500",pink:"bg-pink-500",orange:"bg-orange-500",cyan:"bg-cyan-500",teal:"bg-teal-500",indigo:"bg-indigo-500"},ll={solid:r=>al[r],soft:r=>rn[r],outline:r=>sl[r],gradient:r=>il[r]},dl={xs:"px-1.5 py-px text-[10px] leading-4 gap-1",sm:"px-2 py-0.5 text-xs leading-4 gap-1",md:"px-2.5 py-0.5 text-xs leading-5 gap-1",lg:"px-3 py-1 text-sm leading-5 gap-1.5"},cl={xs:"w-1.5 h-1.5",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"},ul={xs:"w-3 h-3",sm:"w-3 h-3",md:"w-3.5 h-3.5",lg:"w-4 h-4"},ml={rounded:"rounded-md",pill:"rounded-full",square:"rounded-none"};function fl(){return jsxRuntime.jsx(solid.XMarkIcon,{className:"w-full h-full","aria-hidden":"true"})}function pl({children:r,variant:e="soft",color:n="blue",size:o="md",shape:i="pill",icon:a,trailingIcon:c,onRemove:s,pulse:d=false,count:l,maxCount:f=99,uppercase:m=false,tracking:p=false,as:u="span",className:b,...B}){let v=e==="dot",I=v?rn[n]:ll[e](n),k=l!==void 0?l>f?`${f.toString()}+`:String(l):null;return jsxRuntime.jsxs(u,{className:t("inline-flex items-center font-medium leading-none select-none whitespace-nowrap","transition-all duration-150 ease-out",dl[o],ml[i],I,m&&"uppercase",p&&"tracking-wide",(u==="button"||u==="a")&&"cursor-pointer",b),...B,children:[v&&jsxRuntime.jsxs("span",{className:"relative inline-flex shrink-0","aria-hidden":"true",children:[d&&jsxRuntime.jsx("span",{className:t("absolute inset-0 rounded-full animate-ping opacity-60",en[n])}),jsxRuntime.jsx("span",{className:t("rounded-full shrink-0",cl[o],en[n])})]}),!v&&a!=null&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"shrink-0 inline-flex",children:a}),k??r,!v&&c!=null&&s==null&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"shrink-0 inline-flex",children:c}),s!=null&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:M=>{M.stopPropagation(),s();},className:t("inline-flex items-center justify-center rounded-full shrink-0 -mr-0.5","opacity-70 hover:opacity-100","hover:bg-black/10 dark:hover:bg-white/15","transition-all duration-100",ul[o]),children:jsxRuntime.jsx(fl,{})})]})}var nn=ae__namespace.createContext(null);function Kt(){let r=ae__namespace.useContext(nn);if(!r)throw new Error("DropdownMenu components must be used within a DropdownMenu");return r}var on=({children:r,open:e,onOpenChange:n,className:o})=>{let[i,a]=ae__namespace.useState(false),[c,s]=ae__namespace.useState(null),d=e??i,l=ae__namespace.useCallback(f=>{a(f),n?.(f);},[n]);return ae__namespace.useEffect(()=>{if(!d)return;let f=m=>{c&&!c.contains(m.target)&&!m.target.closest("[data-dropdown-content]")&&l(false);};return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f);}},[d,l,c]),ae__namespace.useEffect(()=>{if(!d)return;let f=m=>{m.key==="Escape"&&(l(false),c?.focus());};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f);}},[d,l,c]),jsxRuntime.jsx(nn.Provider,{value:{open:d,setOpen:l,triggerElement:c,setTriggerElement:s},children:jsxRuntime.jsx("div",{className:t("relative inline-block",o),children:r})})},bl={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-11 px-5 text-base"},xl={default:"bg-surface border border-border text-text shadow-sm hover:bg-hover focus:ring-2 focus:ring-primary/40",subtle:"bg-surface-secondary text-text hover:bg-active",ghost:"bg-transparent text-text-secondary hover:bg-hover"},an=ae__namespace.forwardRef(({children:r,className:e,size:n="md",variant:o="default",onClick:i,...a},c)=>{let{open:s,setOpen:d,setTriggerElement:l}=Kt(),f=ae__namespace.useCallback(u=>{l(u),typeof c=="function"?c(u):c&&(c.current=u);},[c,l]),m=u=>{d(!s),i?.(u);};return jsxRuntime.jsxs("button",{ref:f,type:"button","aria-expanded":s,"aria-haspopup":"menu",className:t("inline-flex items-center justify-center rounded-md font-bold uppercase tracking-widest transition-all duration-normal focus:outline-none disabled:opacity-50 disabled:pointer-events-none",bl[n],xl[o],e),onClick:m,...a,children:[r,jsxRuntime.jsx(solid.ChevronDownIcon,{className:t("ml-2 h-4 w-4 transition-transform duration-200",s&&"rotate-180")})]})}),sn=ae__namespace.forwardRef(({children:r,className:e,align:n="left",width:o=220,...i},a)=>{let{open:c}=Kt();return c?jsxRuntime.jsx("div",{ref:a,"data-dropdown-content":true,role:"menu",style:{width:o},className:t("absolute top-full z-dropdown mt-2 min-w-32 overflow-hidden rounded-lg border border-border bg-surface p-1.5 text-text shadow-lg ring-1 ring-border/5 animate-in fade-in zoom-in-95 duration-normal",{left:"left-0",right:"right-0",center:"left-1/2 -translate-x-1/2"}[n],e),...i,children:r}):null}),ln=ae__namespace.forwardRef(({children:r,className:e,disabled:n,destructive:o,icon:i,shortcut:a,onClick:c,...s},d)=>{let{setOpen:l}=Kt(),f=p=>{n||(c?.(p),l(false));},m=p=>{n||(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),c?.(p),l(false));};return jsxRuntime.jsxs("div",{ref:d,role:"menuitem","aria-disabled":n,tabIndex:n?-1:0,className:t("relative flex cursor-default select-none items-center rounded-sm px-3 py-2 text-sm outline-none transition-all duration-fast focus:bg-hover data-disabled:pointer-events-none data-disabled:opacity-50 hover:bg-hover font-medium",o&&"text-error hover:bg-error/10 hover:text-error",n&&"opacity-50 pointer-events-none",e),onClick:f,onKeyDown:m,...s,children:[i&&jsxRuntime.jsx("span",{className:"mr-2 flex h-4 w-4 items-center justify-center",children:i}),jsxRuntime.jsx("span",{className:"flex-1",children:r}),a&&jsxRuntime.jsx("span",{className:"ml-auto text-xs tracking-widest text-text-muted font-bold",children:a})]})}),dn=({className:r,...e})=>jsxRuntime.jsx("div",{className:t("-mx-1.5 my-1 h-px bg-divider",r),...e});on.displayName="DropdownMenu";an.displayName="DropdownMenuTrigger";sn.displayName="DropdownMenuContent";ln.displayName="DropdownMenuItem";dn.displayName="DropdownMenuSeparator";var un=ae.createContext(void 0),Ut=({children:r,defaultTheme:e="system",storageKey:n="ui-theme",themeConfig:o,...i})=>{let[a,c]=ae.useState(()=>{if(typeof window>"u")return e;let d=localStorage.getItem(n);return d||e});ae.useEffect(()=>{let d=window.document.documentElement,l=()=>{d.classList.remove("light","dark");let f=a==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;if(d.classList.add(f),o){let m=o[f]??{};Object.entries(m).forEach(([p,u])=>{if(u){let b=`--${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`;d.style.setProperty(b,u);}});}};if(l(),a==="system"){let f=window.matchMedia("(prefers-color-scheme: dark)"),m=()=>{l();};return f.addEventListener("change",m),()=>{f.removeEventListener("change",m);}}},[a,o]);let s={theme:a,setTheme:d=>{localStorage.setItem(n,d),c(d);}};return o!==void 0&&(s.themeConfig=o),jsxRuntime.jsx(un.Provider,{...i,value:s,children:r})},mn=()=>{let r=ae.useContext(un);if(r===void 0)throw new Error("useTheme must be used within a ThemeProvider");return r};Ut.displayName="ThemeProvider";var Nl={xs:"h-6 py-0 pl-2 pr-8 text-xs",sm:"h-8 py-0 pl-3 pr-8 text-sm",md:"h-10 py-0 pl-3 pr-10 text-sm",lg:"h-11 py-0 pl-4 pr-10 text-base",xl:"h-12 py-0 pl-4 pr-12 text-lg"},Pl={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},El={default:"rounded-md border border-border bg-surface shadow-sm focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0 appearance-none transition-all duration-normal",filled:"rounded-md border border-transparent bg-surface-secondary focus:bg-surface focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-0 appearance-none transition-all duration-normal",flushed:"rounded-none border-0 border-b border-border bg-transparent focus:outline-none focus:ring-0 appearance-none transition-all duration-normal",unstyled:"border-0 bg-transparent p-0 focus:outline-none focus:ring-0 appearance-none"},Tl={default:{default:"border-border focus:border-primary focus:ring-primary/40",filled:"focus:border-primary focus:ring-primary/40",flushed:"border-border focus:border-primary",unstyled:""},error:{default:"border-error focus:border-error focus:ring-error/20",filled:"bg-error/5 focus:border-error focus:ring-error/20",flushed:"border-error focus:border-error",unstyled:""},success:{default:"border-success focus:border-success focus:ring-success/20",filled:"bg-success/5 focus:border-success focus:ring-success/20",flushed:"border-success focus:border-success",unstyled:""},warning:{default:"border-warning focus:border-warning focus:ring-warning/20",filled:"bg-warning/5 focus:border-warning focus:ring-warning/20",flushed:"border-warning focus:border-warning",unstyled:""}},Il={default:"text-text-muted",error:"text-error",success:"text-success",warning:"text-warning"},Ll="disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-surface-secondary";function Ml(r,e){return r?{xs:"pl-6",sm:"pl-8",md:"pl-9",lg:"pl-10",xl:"pl-11"}[e]:""}function Bl(r,e,n,o){if(r==="error"&&e)return e;if(r==="success"&&n)return n;if(r==="warning"&&o)return o}function fn({children:r,side:e,size:n,pointerEvents:o=false}){return jsxRuntime.jsx("span",{"aria-hidden":"true",className:t("absolute top-1/2 -translate-y-1/2 text-text-secondary flex items-center justify-center",!o&&"pointer-events-none",e==="left"?"left-3":"right-3",{xs:"w-3.5 h-3.5",sm:"w-4 h-4",md:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5"}[n]),children:r})}var Dl=()=>jsxRuntime.jsx(solid.ChevronUpDownIcon,{className:"w-full h-full","aria-hidden":"true"}),Xt=ae.forwardRef(function({label:e,required:n=false,helperText:o,errorMessage:i,successMessage:a,warningMessage:c,variant:s="default",size:d="md",state:l="default",fullWidth:f=true,leftElement:m,rightElement:p,wrapperClassName:u,inputGroupClassName:b,inputClassName:B,labelClassName:v,helperClassName:I,id:k,disabled:M,className:E,isLoading:C,options:x=[],placeholder:y,children:g,...R},h){let w=ae.useId(),L=k??w,D=`${L}-helper`,H=`${L}-state`,A=m!==void 0,F=Bl(l,i,a,c),$=[o?D:null,F?H:null].filter(Boolean).join(" ")||void 0,V=()=>C?jsxRuntime.jsxs("svg",{className:"animate-spin h-full w-full text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):p!==void 0?p:jsxRuntime.jsx(Dl,{}),U=jsxRuntime.jsxs("select",{...R,ref:h,id:L,disabled:!!M||!!C,"aria-invalid":l==="error"?true:void 0,"aria-describedby":$,"aria-required":n,className:t("w-full transition-colors duration-150",Nl[d],El[s],Tl[l][s],Ll,Ml(A,d),B),children:[y&&jsxRuntime.jsx("option",{value:"",disabled:true,hidden:true,children:y}),x.length>0?x.map((_,X)=>jsxRuntime.jsx("option",{value:_.value,disabled:_.disabled,children:_.label},X)):g]});return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1",f?"w-full":"w-fit",u,E),children:[e!==void 0&&jsxRuntime.jsxs("label",{htmlFor:L,className:t("font-black leading-none text-text mt-1 uppercase tracking-widest",Pl[d],v),children:[e,n&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsx("div",{className:t("flex items-stretch",f?"w-full":"w-fit",b),children:jsxRuntime.jsxs("div",{className:"relative flex flex-1 items-center",children:[A&&jsxRuntime.jsx(fn,{side:"left",size:d,children:m}),jsxRuntime.jsx("div",{className:"flex-1",children:U}),jsxRuntime.jsx(fn,{side:"right",size:d,pointerEvents:!p,children:V()})]})}),o!==void 0&&jsxRuntime.jsx("p",{id:D,className:t("text-xs leading-tight text-text-muted",I),children:o}),F!==void 0&&jsxRuntime.jsx("p",{id:H,role:l==="error"?"alert":void 0,className:t("text-xs leading-tight mt-1",Il[l],I),children:F})]})});Xt.displayName="Select";var pn=ae.forwardRef(function({src:e,alt:n,fallback:o,loadingComponent:i,showSkeleton:a=true,aspectRatio:c,objectFit:s="cover",className:d,containerClassName:l,onLoad:f,onError:m,style:p,...u},b){let[B,v]=ae.useState(true),[I,k]=ae.useState(false),[M,E]=ae.useState(e);e!==M&&(E(e),v(true),k(false));let C=R=>{v(false),f?.(R);},x=R=>{v(false),k(true),m?.(R);},y=()=>{let R=t("h-full w-full",s==="cover"&&"object-cover",s==="contain"&&"object-contain",s==="fill"&&"object-fill",s==="none"&&"object-none",s==="scale-down"&&"object-scale-down",d);return typeof o=="string"?jsxRuntime.jsx("img",{src:o,alt:n,className:R,...u}):jsxRuntime.jsx("div",{className:R,children:o??jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center bg-surface-secondary text-text-tertiary",children:jsxRuntime.jsx("svg",{className:"h-1/3 w-1/3 opacity-20",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})})})},g={aspectRatio:c,...p};return jsxRuntime.jsxs("div",{className:t("relative overflow-hidden",!c&&"h-full w-full",l),style:g,children:[B&&a&&jsxRuntime.jsx("div",{className:"absolute inset-0 z-10",children:i??jsxRuntime.jsx(ge,{className:"h-full w-full",variant:"wave"})}),I?y():jsxRuntime.jsx("img",{ref:b,src:e,alt:n,onLoad:C,onError:x,className:t("transition-opacity duration-500 ease-in-out",B?"opacity-0":"opacity-100",s==="cover"&&"object-cover",s==="contain"&&"object-contain",s==="fill"&&"object-fill",s==="none"&&"object-none",s==="scale-down"&&"object-scale-down","h-full w-full",d),...u})]})});pn.displayName="Image";function gn(r,e,n){return n||(r<e?"completed":r===e?"active":"upcoming")}var Fl={sm:"w-7 h-7 text-xs",md:"w-9 h-9 text-sm",lg:"w-11 h-11 text-base"},_l={sm:"mt-[14px]",md:"mt-[18px]",lg:"mt-[22px]"},Ol={sm:"ml-[13px]",md:"ml-[17px]",lg:"ml-[21px]"},bn={sm:"text-xs",md:"text-sm",lg:"text-base"},xn={sm:"text-[10px]",md:"text-xs",lg:"text-sm"},$l={default:{completed:"bg-primary text-text-inverse shadow-md shadow-primary/30 ring-2 ring-primary/20 ring-offset-2 ring-offset-surface",active:"bg-primary text-text-inverse shadow-lg shadow-primary/40 ring-2 ring-primary/30 ring-offset-2 ring-offset-surface scale-110",upcoming:"bg-surface-secondary text-text-muted border border-border ring-2 ring-transparent ring-offset-2 ring-offset-surface",error:"bg-error text-text-inverse shadow-md shadow-error/30 ring-2 ring-error/20 ring-offset-2 ring-offset-surface"},filled:{completed:"bg-primary text-text-inverse shadow-md shadow-primary/30",active:"bg-gradient-to-br from-primary to-accent text-text-inverse shadow-lg shadow-primary/40 scale-110",upcoming:"bg-surface-secondary text-text-muted",error:"bg-error text-text-inverse shadow-md shadow-error/30"},outlined:{completed:"bg-transparent border-2 border-primary text-primary ring-2 ring-primary/10 ring-offset-2 ring-offset-surface",active:"bg-primary/10 border-2 border-primary text-primary ring-2 ring-primary/20 ring-offset-2 ring-offset-surface scale-110",upcoming:"bg-transparent border-2 border-border text-text-muted",error:"bg-transparent border-2 border-error text-error ring-2 ring-error/10"},minimal:{completed:"bg-primary/15 text-primary",active:"bg-primary text-text-inverse shadow-md shadow-primary/30 scale-110",upcoming:"bg-surface-secondary text-text-muted",error:"bg-error/15 text-error"}};function hn(r){return r==="completed"?"bg-primary":r==="error"?"bg-error":"bg-border"}function jl({className:r}){return jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:r,"aria-hidden":"true",children:jsxRuntime.jsx("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"})})}function Kl({className:r}){return jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:r,"aria-hidden":"true",children:jsxRuntime.jsx("path",{d:"M10 8.586L7.707 6.293a1 1 0 00-1.414 1.414L8.586 10l-2.293 2.293a1 1 0 101.414 1.414L10 11.414l2.293 2.293a1 1 0 001.414-1.414L11.414 10l2.293-2.293a1 1 0 00-1.414-1.414L10 8.586z"})})}function wn({step:r,index:e,status:n,variant:o,size:i}){let a={sm:"w-3 h-3",md:"w-4 h-4",lg:"w-5 h-5"},c;return n==="completed"&&!r.icon?c=jsxRuntime.jsx(jl,{className:a[i]}):n==="error"&&!r.icon?c=jsxRuntime.jsx(Kl,{className:a[i]}):r.icon?c=r.icon:c=jsxRuntime.jsx("span",{className:"font-bold leading-none",children:e+1}),jsxRuntime.jsxs("div",{className:t("relative shrink-0 flex items-center justify-center rounded-full","transition-all duration-300 ease-out",Fl[i],$l[o][n]),"aria-current":n==="active"?"step":void 0,children:[c,n==="active"&&jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-full animate-ping opacity-20 bg-primary"})]})}var yn=ae.forwardRef(function({steps:e,currentStep:n,onChange:o,variant:i="default",size:a="md",orientation:c="horizontal",clickable:s=false,showContent:d=true,className:l,connectorClassName:f,stepClassName:m,...p},u){let[b,B]=ae.useState(0),v=n!==void 0,I=v?n:b,k=(C,x)=>{!s||x||(v||B(C),o?.(C));},M=c==="horizontal",E=e[I];return jsxRuntime.jsxs("div",{ref:u,className:t("w-full",M?"flex flex-col gap-6":"flex gap-6",l),...p,children:[M?jsxRuntime.jsx("div",{role:"list","aria-label":"Progress steps",className:"flex flex-row items-start w-full",children:e.map((C,x)=>{let y=gn(x,I,C.status),g=x===e.length-1,R=s&&!C.disabled;return jsxRuntime.jsxs("div",{role:"listitem",className:t("flex flex-row items-start",g?"shrink-0":"flex-1"),children:[jsxRuntime.jsxs("div",{className:t("flex flex-col items-center gap-2 shrink-0",m),children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>{k(x,C.disabled);},disabled:!R,"aria-disabled":!R||C.disabled,className:t("block focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 rounded-full",R?"cursor-pointer hover:opacity-80 transition-opacity":"cursor-default"),children:jsxRuntime.jsx(wn,{step:C,index:x,status:y,variant:i,size:a})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-center text-center max-w-[80px]",children:[jsxRuntime.jsx("span",{className:t("font-semibold leading-tight transition-colors duration-200",bn[a],y==="active"&&"text-primary",y==="completed"&&"text-text",y==="upcoming"&&"text-text-muted",y==="error"&&"text-error"),children:C.label}),C.description&&jsxRuntime.jsx("span",{className:t("text-text-muted leading-tight mt-0.5",xn[a],y==="active"&&"text-text-secondary"),children:C.description})]})]}),!g&&jsxRuntime.jsx("div",{className:t("flex-1 h-[2px] rounded-full transition-all duration-500",_l[a],hn(y),f),"aria-hidden":"true"})]},C.id)})}):jsxRuntime.jsx("div",{role:"list","aria-label":"Progress steps",className:"flex flex-col items-start",children:e.map((C,x)=>{let y=gn(x,I,C.status),g=x===e.length-1,R=s&&!C.disabled;return jsxRuntime.jsxs("div",{role:"listitem",className:t("flex flex-col",m),children:[jsxRuntime.jsxs("div",{className:"flex flex-row items-start gap-3",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>{k(x,C.disabled);},disabled:!R,"aria-disabled":!R||C.disabled,className:t("block shrink-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 rounded-full",R?"cursor-pointer hover:opacity-80 transition-opacity":"cursor-default"),children:jsxRuntime.jsx(wn,{step:C,index:x,status:y,variant:i,size:a})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start pt-1",children:[jsxRuntime.jsx("span",{className:t("font-semibold leading-tight transition-colors duration-200",bn[a],y==="active"&&"text-primary",y==="completed"&&"text-text",y==="upcoming"&&"text-text-muted",y==="error"&&"text-error"),children:C.label}),C.description&&jsxRuntime.jsx("span",{className:t("text-text-muted leading-tight mt-0.5",xn[a],y==="active"&&"text-text-secondary"),children:C.description})]})]}),!g&&jsxRuntime.jsx("div",{className:t("w-[2px] min-h-[28px] rounded-full transition-all duration-500 my-1",Ol[a],hn(y),f),"aria-hidden":"true"})]},C.id)})}),d&&E?.content&&jsxRuntime.jsx("div",{role:"region","aria-live":"polite",className:"w-full rounded-lg border border-border bg-surface p-5 shadow-sm",children:E.content})]})});yn.displayName="Stepper";var Xl={sm:{track:"w-8 h-4",thumb:"w-3 h-3 translate-x-0.5 peer-checked:translate-x-[1.125rem]"},md:{track:"w-11 h-6",thumb:"w-5 h-5 translate-x-0.5 peer-checked:translate-x-[1.375rem]"},lg:{track:"w-14 h-8",thumb:"w-7 h-7 translate-x-0.5 peer-checked:translate-x-[1.625rem]"}},Jl={default:"peer-checked:bg-primary",error:"peer-checked:bg-error",success:"peer-checked:bg-success",warning:"peer-checked:bg-warning"},Cn=ae.forwardRef(({className:r,size:e="md",state:n="default",label:o,helperText:i,errorText:a,disabled:c,...s},d)=>{let{track:l,thumb:f}=Xl[e];return jsxRuntime.jsxs("div",{className:t("flex flex-col gap-1.5",r),children:[jsxRuntime.jsxs("label",{className:t("relative inline-flex items-center cursor-pointer select-none",c&&"cursor-not-allowed"),children:[jsxRuntime.jsx("input",{type:"checkbox",ref:d,className:"sr-only peer",disabled:c,...s}),jsxRuntime.jsx("div",{className:t("rounded-full transition-colors duration-200 bg-border peer-focus:ring-2 peer-focus:ring-primary/20",l,Jl[n],c&&"opacity-50")}),jsxRuntime.jsx("div",{className:t("absolute top-0.5 left-0 bg-white rounded-full transition-transform duration-200 shadow-sm",f)}),o&&jsxRuntime.jsx("span",{className:t("ml-3 text-sm font-medium text-text",c&&"opacity-50"),children:o})]}),(a!==void 0||i!==void 0)&&jsxRuntime.jsx("p",{className:t("text-xs",a?"text-error":"text-text-muted"),children:a??i})]})});Cn.displayName="Toggle";var Nn=ae.createContext(void 0),Pn=ae.createContext(void 0),qt=ae.createContext(void 0),Wl=({children:r,className:e,isOpen:n,onToggle:o,disabled:i=false})=>{let a=ae.useContext(Nn),c=ae.useContext(Pn),[s,d]=ae.useState(false),l=a!==void 0&&c!==void 0,f=n??(l?a.openIndices.includes(c):s),m=ae.useCallback(()=>{i||(o?o():l?a.toggleIndex(c):d(p=>!p));},[i,o,l,a,c]);return jsxRuntime.jsx(qt.Provider,{value:{isOpen:f,toggle:m,disabled:i},children:jsxRuntime.jsx("div",{className:t("border border-border rounded-lg overflow-hidden mb-2 last:mb-0",e),children:r})})},Zl=({children:r,className:e,hideChevron:n=false,icon:o,rightContent:i})=>{let a=ae.useContext(qt);if(!a)throw new Error("AccordionTrigger must be used within an AccordionItem");let{isOpen:c,toggle:s,disabled:d}=a;return jsxRuntime.jsxs("div",{className:t("flex items-center justify-between bg-surface transition-colors",!d&&"hover:bg-interaction-hover",c&&"border-b border-border",e),children:[jsxRuntime.jsxs("button",{type:"button",className:t("flex flex-1 items-center gap-3 p-4 cursor-pointer select-none focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary/20 text-left",d&&"cursor-not-allowed opacity-50"),onClick:s,disabled:d,"aria-expanded":c,children:[!n&&(o??jsxRuntime.jsx(outline.ChevronDownIcon,{className:t("w-5 h-5 transition-transform duration-200 text-text-muted",c&&"rotate-180")})),jsxRuntime.jsx("div",{className:"font-medium text-text",children:r})]}),i&&jsxRuntime.jsx("div",{className:"flex items-center p-4",role:"presentation",onClick:l=>{l.stopPropagation();},onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&l.stopPropagation();},children:i})]})},Yl=({children:r,className:e})=>{let n=ae.useContext(qt);if(!n)throw new Error("AccordionContent must be used within an AccordionItem");let{isOpen:o}=n;return o?jsxRuntime.jsx("div",{className:t("p-4 bg-surface animate-in fade-in slide-in-from-top-2 duration-200",e),children:r}):null},Ql=({children:r,className:e,allowMultiple:n=false,defaultOpenIndices:o=[]})=>{let[i,a]=ae.useState(o),c=ae.useCallback(s=>{a(d=>d.includes(s)?d.filter(l=>l!==s):n?[...d,s]:[s]);},[n]);return jsxRuntime.jsx(Nn.Provider,{value:{openIndices:i,toggleIndex:c},children:jsxRuntime.jsx("div",{className:t("w-full",e),children:ae.Children.map(r,(s,d)=>jsxRuntime.jsx(Pn.Provider,{value:d,children:s},d))})})};
2
+ exports.Accordion=Ql;exports.AccordionContent=Yl;exports.AccordionItem=Wl;exports.AccordionTrigger=Zl;exports.Avatar=zt;exports.Badge=pl;exports.Breadcrumbs=Xi;exports.Button=mt;exports.Card=vr;exports.CardContent=kr;exports.CardDescription=Rr;exports.CardFooter=Nr;exports.CardHeader=Cr;exports.CardTitle=Sr;exports.Checkbox=lr;exports.ComboBox=Ur;exports.DatePicker=Bt;exports.Dialog=ei;exports.DialogBody=ri;exports.DialogCloseButton=oi;exports.DialogFooter=ni;exports.DialogHeader=ti;exports.DropdownMenu=on;exports.DropdownMenuContent=sn;exports.DropdownMenuItem=ln;exports.DropdownMenuSeparator=dn;exports.DropdownMenuTrigger=an;exports.Email=yr;exports.FileUpload=Ar;exports.Header=Tt;exports.IconButton=Be;exports.Image=pn;exports.Link=Pr;exports.Loader=tl;exports.Modal=ot;exports.ModalBody=Fr;exports.ModalCloseButton=Or;exports.ModalFooter=_r;exports.ModalHeader=Vr;exports.MultiSelect=It;exports.OtpInput=hr;exports.Pagination=Ft;exports.PasswordInput=Ir;exports.Phone=Zt;exports.RadioButton=Lt;exports.SearchInput=er;exports.Select=Xt;exports.Sidebar=Pt;exports.Skeleton=ge;exports.SkeletonAvatar=Zr;exports.SkeletonCard=Yr;exports.SkeletonTable=Qr;exports.SkeletonText=jt;exports.Stepper=yn;exports.Table=Oi;exports.Tabs=Mr;exports.TextInput=Xe;exports.ThemeProvider=Ut;exports.TimePicker=Mt;exports.Toaster=cr;exports.Toggle=Cn;exports.Tooltip=Nt;exports.cn=t;exports.useTheme=mn;
@@ -0,0 +1,141 @@
1
+ export { Phone, PhoneProps } from './phone/index.mjs';
2
+ export { SearchInput, SearchInputProps } from './search-input/index.mjs';
3
+ export { TextInput } from './text-input/index.mjs';
4
+ export { T as TextInputProps, a as TextInputSize, b as TextInputState } from './TextInput.types-DRI8HQza.mjs';
5
+ export { Button } from './button/index.mjs';
6
+ export { B as ButtonProps, a as ButtonSize, b as ButtonVariant } from './Button.types-D-srlWFf.mjs';
7
+ export { IconButton, IconButtonProps } from './icon-button/index.mjs';
8
+ export { Sidebar, SidebarGroup, SidebarItem, SidebarProps } from './sidebar/index.mjs';
9
+ export { Header, HeaderProps } from './header/index.mjs';
10
+ export { Checkbox, CheckboxProps, CheckboxSize, CheckboxState } from './checkbox/index.mjs';
11
+ export { Toaster, ToasterProps, ToasterStatus, ToasterVariant } from './toaster/index.mjs';
12
+ export { MultiSelect, MultiSelectProps, MultiSelectSize, MultiSelectState, MultiSelectVariant } from './multi-select/index.mjs';
13
+ export { RadioButton, RadioButtonProps, RadioButtonSize, RadioButtonState } from './radio-button/index.mjs';
14
+ export { TimePicker, TimePickerProps, TimePickerSize, TimePickerState, TimePickerVariant } from './time-picker/index.mjs';
15
+ export { DatePicker, DatePickerProps, DatePickerSize, DatePickerState, DatePickerVariant } from './date-picker/index.mjs';
16
+ export { OtpInput, OtpInputProps } from './otp-input/index.mjs';
17
+ export { Email, EmailProps } from './email/index.mjs';
18
+ export { Card, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardPadding, CardProps, CardTitle, CardTitleProps, CardVariant } from './card/index.mjs';
19
+ export { Link, LinkProps, LinkSize, LinkUnderline, LinkVariant } from './link/index.mjs';
20
+ export { PasswordInput, PasswordInputProps, PasswordInputSize, PasswordInputState, PasswordInputVariant } from './password-input/index.mjs';
21
+ export { TabItem, Tabs, TabsProps, TabsSize, TabsVariant } from './tabs/index.mjs';
22
+ export { Avatar, AvatarProps, AvatarSize, AvatarState, AvatarVariant } from './avatar/index.mjs';
23
+ export { FileUpload, FileUploadProps, FileUploadSize, FileUploadState } from './file-upload/index.mjs';
24
+ export { Dialog, DialogBody, DialogBodyProps, DialogCloseButton, DialogCloseButtonProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogSize } from './dialog/index.mjs';
25
+ export { Modal, ModalBody, ModalBodyProps, ModalCloseButton, ModalCloseButtonProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, ModalSize } from './modal/index.mjs';
26
+ export { ComboBox, ComboBoxOption, ComboBoxProps, ComboBoxSize, ComboBoxState } from './combo-box/index.mjs';
27
+ export { Pagination, PaginationProps, SortDirection, SortState, Table, TableAlign, TableColumn, TableProps, TableSize } from './table/index.mjs';
28
+ export { BreadcrumbItem, BreadcrumbSeparator, BreadcrumbSize, Breadcrumbs, BreadcrumbsProps } from './breadcrumbs/index.mjs';
29
+ export { Loader, LoaderColor, LoaderProps, LoaderSize, LoaderVariant } from './loader/index.mjs';
30
+ export { Skeleton, SkeletonAvatar, SkeletonAvatarProps, SkeletonCard, SkeletonCardProps, SkeletonProps, SkeletonShape, SkeletonTable, SkeletonTableProps, SkeletonText, SkeletonTextProps, SkeletonVariant } from './skeleton/index.mjs';
31
+ export { Tooltip } from './tooltip/index.mjs';
32
+ export { T as TooltipPlacement, a as TooltipProps, b as TooltipSize, c as TooltipTrigger } from './Tooltip.types-PbUasE3C.mjs';
33
+ export { Badge, BadgeColor, BadgeProps, BadgeShape, BadgeSize, BadgeVariant } from './badge/index.mjs';
34
+ export { DropdownMenu, DropdownMenuContent, DropdownMenuContentProps, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuProps, DropdownMenuSeparator, DropdownMenuSeparatorProps, DropdownMenuSize, DropdownMenuTrigger, DropdownMenuTriggerProps, DropdownMenuVariant } from './dropdown-menu/index.mjs';
35
+ export { SemanticColors, ThemeConfig, ThemeMode, ThemeProvider, ThemeProviderProps, ThemeProviderState, useTheme } from './theme-provider/index.mjs';
36
+ import { ClassValue } from 'clsx';
37
+ export { Select, SelectOption, SelectProps, SelectSize, SelectState, SelectVariant } from './select/index.mjs';
38
+ export { Image, ImageProps } from './image/index.mjs';
39
+ import { ReactNode, HTMLAttributes, InputHTMLAttributes } from 'react';
40
+
41
+ declare function cn(...inputs: ClassValue[]): string;
42
+
43
+ /** Visual style of the stepper. */
44
+ type StepperVariant = 'default' | 'filled' | 'outlined' | 'minimal';
45
+ /** Size token for the stepper. */
46
+ type StepperSize = 'sm' | 'md' | 'lg';
47
+ /** Layout orientation. */
48
+ type StepperOrientation = 'horizontal' | 'vertical';
49
+ /** State of an individual step. */
50
+ type StepStatus = 'completed' | 'active' | 'upcoming' | 'error';
51
+ interface StepItem {
52
+ /** Unique identifier for the step. */
53
+ id: string;
54
+ /** Primary label shown below / beside the step indicator. */
55
+ label: ReactNode;
56
+ /** Optional secondary description text. */
57
+ description?: ReactNode;
58
+ /** Optional custom icon to render inside the step indicator (overrides the step number). */
59
+ icon?: ReactNode;
60
+ /** Marks the step as disabled — cannot be clicked. */
61
+ disabled?: boolean;
62
+ /** Optional extra content/panel revealed when this step is active. */
63
+ content?: ReactNode;
64
+ /** Override status explicitly. When omitted, status is derived from `currentStep`. */
65
+ status?: StepStatus;
66
+ }
67
+ interface StepperProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
68
+ /** Ordered list of steps to render. */
69
+ steps: StepItem[];
70
+ /** Zero-based index of the currently active step. */
71
+ currentStep?: number;
72
+ /** Callback fired when the user clicks a step (passes zero-based index). */
73
+ onChange?: (index: number) => void;
74
+ /** Visual style. Defaults to `'default'`. */
75
+ variant?: StepperVariant;
76
+ /** Size. Defaults to `'md'`. */
77
+ size?: StepperSize;
78
+ /** Layout direction. Defaults to `'horizontal'`. */
79
+ orientation?: StepperOrientation;
80
+ /** Whether steps are clickable for navigation. Defaults to `false`. */
81
+ clickable?: boolean;
82
+ /** Show content panel of the active step below the stepper. Defaults to `true`. */
83
+ showContent?: boolean;
84
+ /** Extra class applied to the step connector line. */
85
+ connectorClassName?: string;
86
+ /** Extra class applied to each step wrapper. */
87
+ stepClassName?: string;
88
+ }
89
+
90
+ declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>;
91
+
92
+ type ToggleSize = 'sm' | 'md' | 'lg';
93
+ type ToggleState = 'default' | 'error' | 'success' | 'warning';
94
+ interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
95
+ size?: ToggleSize;
96
+ state?: ToggleState;
97
+ label?: string;
98
+ helperText?: string;
99
+ errorText?: string;
100
+ }
101
+
102
+ declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
103
+
104
+ interface AccordionProps {
105
+ children: ReactNode;
106
+ className?: string;
107
+ allowMultiple?: boolean;
108
+ defaultOpenIndices?: number[];
109
+ }
110
+ interface AccordionItemProps {
111
+ children: ReactNode;
112
+ className?: string;
113
+ /**
114
+ * Optional manual control over open state.
115
+ * If provided, the Accordion's internal group logic is ignored for this item.
116
+ */
117
+ isOpen?: boolean;
118
+ onToggle?: () => void;
119
+ disabled?: boolean;
120
+ }
121
+ interface AccordionTriggerProps {
122
+ children: ReactNode;
123
+ className?: string;
124
+ /** Hide the default chevron icon */
125
+ hideChevron?: boolean;
126
+ /** Provide a custom icon instead of the default chevron */
127
+ icon?: ReactNode;
128
+ /** Extra content rendered on the right, independent of the toggle button */
129
+ rightContent?: ReactNode;
130
+ }
131
+ interface AccordionContentProps {
132
+ children: ReactNode;
133
+ className?: string;
134
+ }
135
+
136
+ declare const AccordionItem: ({ children, className, isOpen: controlledIsOpen, onToggle, disabled, }: AccordionItemProps) => React.ReactElement;
137
+ declare const AccordionTrigger: ({ children, className, hideChevron, icon, rightContent, }: AccordionTriggerProps) => React.ReactElement;
138
+ declare const AccordionContent: ({ children, className, }: AccordionContentProps) => React.ReactElement | null;
139
+ declare const Accordion: ({ children, className, allowMultiple, defaultOpenIndices, }: AccordionProps) => React.ReactElement;
140
+
141
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type StepItem, type StepStatus, Stepper, type StepperOrientation, type StepperProps, type StepperSize, type StepperVariant, Toggle, type ToggleProps, type ToggleSize, type ToggleState, cn };