konsolpro-custom-ui 0.0.327

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 (369) hide show
  1. package/README.md +146 -0
  2. package/dist/chunks/accept-icon-X_bMUe5T.js +17 -0
  3. package/dist/chunks/account-balance-icon-CKxx1j3X.js +17 -0
  4. package/dist/chunks/add-circle-icon-D3XpY2oT.js +17 -0
  5. package/dist/chunks/add-icon-CZXR66VL.js +17 -0
  6. package/dist/chunks/alfa-icon-Cx0WqCux.js +17 -0
  7. package/dist/chunks/android-icon-6SCGu50U.js +17 -0
  8. package/dist/chunks/apple-icon-yya6O1xg.js +17 -0
  9. package/dist/chunks/arrow-back-icon-C_VwBDNK.js +17 -0
  10. package/dist/chunks/arrow-back-ios-icon-CB5K_mmJ.js +17 -0
  11. package/dist/chunks/arrow-down-icon-DFvg75P7.js +17 -0
  12. package/dist/chunks/arrow-forward-icon-BI4dm_L2.js +17 -0
  13. package/dist/chunks/arrow-left-icon-8yWT42A8.js +17 -0
  14. package/dist/chunks/arrow-right-icon-Bnx7GHux.js +17 -0
  15. package/dist/chunks/arrow-up-icon-DU7VVzN8.js +17 -0
  16. package/dist/chunks/attach-file-icon-OrT7tthI.js +17 -0
  17. package/dist/chunks/autorenew-icon-B0bI6Xt-.js +17 -0
  18. package/dist/chunks/baltiyskiy-icon-CXAJY9LH.js +17 -0
  19. package/dist/chunks/bill-error-icon-q8_KROAY.js +17 -0
  20. package/dist/chunks/bill-icon-Cw2GE_VB.js +17 -0
  21. package/dist/chunks/bill-in-progress-icon-BTsO5Mh5.js +17 -0
  22. package/dist/chunks/bill-warning-icon-3Y-dONd_.js +17 -0
  23. package/dist/chunks/bills-error-icon-CcDGUJrx.js +17 -0
  24. package/dist/chunks/bills-icon-BU_adAs0.js +17 -0
  25. package/dist/chunks/bills-in-progress-icon-RVEtPz7l.js +17 -0
  26. package/dist/chunks/bills-warning-icon-CNgWvumi.js +17 -0
  27. package/dist/chunks/block-icon-DGlp9c33.js +17 -0
  28. package/dist/chunks/bolt-fill-icon-DZjyKq8N.js +17 -0
  29. package/dist/chunks/bolt-icon-CJsvLlL-.js +17 -0
  30. package/dist/chunks/book-icon-BdaCKIQB.js +17 -0
  31. package/dist/chunks/business-center-icon-C5X-e-6I.js +17 -0
  32. package/dist/chunks/calendar-icon-B1cogiSd.js +17 -0
  33. package/dist/chunks/call-icon-DslHaQOP.js +17 -0
  34. package/dist/chunks/cancel-fill-DPYenlCk.js +17 -0
  35. package/dist/chunks/check-circle-fill-ne1MhahL.js +17 -0
  36. package/dist/chunks/check-circle-icon-BWhJprgU.js +17 -0
  37. package/dist/chunks/close-icon-CtbXesC0.js +17 -0
  38. package/dist/chunks/clsx-OuTLNxxd.js +16 -0
  39. package/dist/chunks/combobox-primitive-context-B_ldR_VA.js +4030 -0
  40. package/dist/chunks/cookie-DJ-U7h-A.js +17 -0
  41. package/dist/chunks/copy-icon-BWyncDVB.js +17 -0
  42. package/dist/chunks/credit-card-icon-DS1ckDU7.js +17 -0
  43. package/dist/chunks/delete-icon-Bk1ZmhBo.js +17 -0
  44. package/dist/chunks/document-icon-DcmQhRhY.js +17 -0
  45. package/dist/chunks/done-icon-BZEAL7mI.js +17 -0
  46. package/dist/chunks/download-icon-BvWPcT7W.js +17 -0
  47. package/dist/chunks/edit-icon-_3venQRC.js +17 -0
  48. package/dist/chunks/embla-carousel-react.esm-ZaRSnfTq.js +1252 -0
  49. package/dist/chunks/error-fill-icon--8j3Zcfq.js +17 -0
  50. package/dist/chunks/error-icon-BJWk5B-s.js +17 -0
  51. package/dist/chunks/error-icon-CgJ3zr06.js +17 -0
  52. package/dist/chunks/europa-icon-DbElF2Uc.js +17 -0
  53. package/dist/chunks/failed-icon-YP2jq4UN.js +17 -0
  54. package/dist/chunks/file-error-icon-630wBy1K.js +17 -0
  55. package/dist/chunks/file-success-icon-BTk5SYAM.js +17 -0
  56. package/dist/chunks/filter-icon-D_3_SQsN.js +17 -0
  57. package/dist/chunks/flag-icon-DmWEp4ya.js +17 -0
  58. package/dist/chunks/format-DoKcg9cH.js +1223 -0
  59. package/dist/chunks/full-screen-exit-icon-BHwq-9P-.js +17 -0
  60. package/dist/chunks/full-screen-icon-Dpl__xtk.js +17 -0
  61. package/dist/chunks/gazprom-icon-CRfKLTvP.js +17 -0
  62. package/dist/chunks/group-icon-BfSRHuvp.js +17 -0
  63. package/dist/chunks/help-icon-BMdlItds.js +17 -0
  64. package/dist/chunks/home-icon-Dc6LzbVw.js +17 -0
  65. package/dist/chunks/home-icon-Mag5Wxqq.js +17 -0
  66. package/dist/chunks/index-1Er1dKQf.js +13 -0
  67. package/dist/chunks/index-BJD1rYeT.js +57 -0
  68. package/dist/chunks/index-BO6p208a.js +48 -0
  69. package/dist/chunks/index-BZPx6jYI.js +8 -0
  70. package/dist/chunks/index-BxWD79NI.js +517 -0
  71. package/dist/chunks/index-ByaXH_ih.js +10 -0
  72. package/dist/chunks/index-CHDs-SiB.js +27 -0
  73. package/dist/chunks/index-CN5JEZ5H.js +79 -0
  74. package/dist/chunks/index-Ctjv6tIJ.js +1381 -0
  75. package/dist/chunks/index-DLcqcWxM.js +29 -0
  76. package/dist/chunks/index-DLeNytVF.js +9 -0
  77. package/dist/chunks/index-DYfkNB0n.js +54 -0
  78. package/dist/chunks/index-DuekHEmj.js +6 -0
  79. package/dist/chunks/index-DwYXX2sM.js +13 -0
  80. package/dist/chunks/index-E4d_Gd-w.js +91 -0
  81. package/dist/chunks/index-I8P2QgPV.js +258 -0
  82. package/dist/chunks/index-NPrw3_0K.js +14 -0
  83. package/dist/chunks/index-PsqJG3fE.js +75 -0
  84. package/dist/chunks/info-fill-icon-BzE09Xg8.js +17 -0
  85. package/dist/chunks/info-icon-BcUNe5kE.js +17 -0
  86. package/dist/chunks/inventory-icon-CFV8amBs.js +17 -0
  87. package/dist/chunks/link-icon-BUAymb0P.js +17 -0
  88. package/dist/chunks/list-icon-ChePCGxK.js +17 -0
  89. package/dist/chunks/location-icon-Bf9Wbg65.js +17 -0
  90. package/dist/chunks/logout-icon-DN86wp7N.js +17 -0
  91. package/dist/chunks/mail-icon-DCZPsZFE.js +17 -0
  92. package/dist/chunks/manage-accounts-icon-BkyuUTj3.js +17 -0
  93. package/dist/chunks/menu-icon-DWObHD95.js +17 -0
  94. package/dist/chunks/mkb-icon-CEkVt-7P.js +17 -0
  95. package/dist/chunks/more-horiz-icon-CSK7Ackl.js +17 -0
  96. package/dist/chunks/more-vert-icon-NA1tYTse.js +17 -0
  97. package/dist/chunks/mts-icon-Bq4YDYEy.js +17 -0
  98. package/dist/chunks/normal-icon-CYvIFN5j.js +17 -0
  99. package/dist/chunks/north-east-icon-Dh7-1BBW.js +17 -0
  100. package/dist/chunks/open-in-full-icon-DzhRd5Mx.js +17 -0
  101. package/dist/chunks/open-in-new-icon-A7MgnnyP.js +17 -0
  102. package/dist/chunks/otkritie-icon-yGwVocEY.js +17 -0
  103. package/dist/chunks/otp-icon-BQQXMe3b.js +17 -0
  104. package/dist/chunks/outgoing-main-icon-BAH2vddG.js +17 -0
  105. package/dist/chunks/page-info-icon-BiVNFu71.js +17 -0
  106. package/dist/chunks/passport-main-DNL65kJJ.js +17 -0
  107. package/dist/chunks/passport-registration-BGywpRar.js +17 -0
  108. package/dist/chunks/passport-selfie-Dsqd0uOf.js +17 -0
  109. package/dist/chunks/payment-icon-C-B7L4WP.js +17 -0
  110. package/dist/chunks/person-add-C-3pZhgM.js +17 -0
  111. package/dist/chunks/person-icon-Bo5NxPRQ.js +17 -0
  112. package/dist/chunks/person-search-icon-CwVm_XAL.js +17 -0
  113. package/dist/chunks/pincode-icon-BA-e4pBH.js +17 -0
  114. package/dist/chunks/play-icon-Bnj3hsIf.js +17 -0
  115. package/dist/chunks/popover-kFSgc5Lv.js +748 -0
  116. package/dist/chunks/progress-activity-icon-YbJGzvxH.js +17 -0
  117. package/dist/chunks/psb-icon-CxKzLVG5.js +17 -0
  118. package/dist/chunks/qiwi-icon-B795Q_fW.js +17 -0
  119. package/dist/chunks/raiffeisen-icon-CgcBX8eY.js +17 -0
  120. package/dist/chunks/refresh-icon-ac1oOwX8.js +17 -0
  121. package/dist/chunks/remove-icon-CTuoG0Vq.js +17 -0
  122. package/dist/chunks/ru-CUCVR8Pn.js +661 -0
  123. package/dist/chunks/russian-standart-icon-CI8j1Do6.js +17 -0
  124. package/dist/chunks/saint-petersburg-icon-DbffjI2W.js +17 -0
  125. package/dist/chunks/save-icon-DnF5revo.js +17 -0
  126. package/dist/chunks/sber-icon-b7d9_o7J.js +17 -0
  127. package/dist/chunks/sberid-icon-DgQtjRjD.js +17 -0
  128. package/dist/chunks/scenario-icon-BcnFsqUA.js +17 -0
  129. package/dist/chunks/scroll-area-TRRhxrjX.js +629 -0
  130. package/dist/chunks/search-icon-CortrXrC.js +17 -0
  131. package/dist/chunks/segment-icon-Bzm7cziF.js +17 -0
  132. package/dist/chunks/send-icon-BTztERTu.js +17 -0
  133. package/dist/chunks/settings-icon-D_wgjUsM.js +17 -0
  134. package/dist/chunks/shield-icon-BwpxkU5E.js +17 -0
  135. package/dist/chunks/signed-icon-DTQlKmWU.js +17 -0
  136. package/dist/chunks/skb-icon-BgDQolTL.js +17 -0
  137. package/dist/chunks/sms-icon-4p-ON5VX.js +17 -0
  138. package/dist/chunks/support-icon-CBHKGKq8.js +17 -0
  139. package/dist/chunks/tbank-icon-ByKW0pBb.js +17 -0
  140. package/dist/chunks/telegramm-icon-C2ZR2jdg.js +17 -0
  141. package/dist/chunks/thumbs-up-icon-BArjyDfk.js +17 -0
  142. package/dist/chunks/time-icon-DsWMo47L.js +17 -0
  143. package/dist/chunks/tinkoffid-icon-C6lsspZk.js +19 -0
  144. package/dist/chunks/tochka-icon-CoQ_r9Lz.js +17 -0
  145. package/dist/chunks/tooltip-BxRtZLBR.js +836 -0
  146. package/dist/chunks/trending-down-icon-DlHKI37F.js +17 -0
  147. package/dist/chunks/trending-up-icon-IEwGHi9c.js +17 -0
  148. package/dist/chunks/trust-icon-DcfUVGZ_.js +17 -0
  149. package/dist/chunks/tslib.es6-fInlAbov.js +27 -0
  150. package/dist/chunks/unfold-icon-S3J7xXHf.js +17 -0
  151. package/dist/chunks/uni-icon-gK006vr0.js +17 -0
  152. package/dist/chunks/upload-icon-CwzthQEL.js +17 -0
  153. package/dist/chunks/uploader-BN38rjbw.js +28387 -0
  154. package/dist/chunks/uralsib-icon-C-ZbdvlL.js +17 -0
  155. package/dist/chunks/uralskiy-icon-Djqv-ZYN.js +17 -0
  156. package/dist/chunks/utils-TbLXCoKm.js +2752 -0
  157. package/dist/chunks/visibility-off-icon-BA_I97Vw.js +17 -0
  158. package/dist/chunks/visibility-on-icon-C9VmKsvX.js +17 -0
  159. package/dist/chunks/vozrozhdenie-icon-CCMRNn95.js +17 -0
  160. package/dist/chunks/vtb-icon-BtfO1_Gx.js +17 -0
  161. package/dist/chunks/waiting-icon-lpQJA4wB.js +17 -0
  162. package/dist/chunks/wallet-icon-D0r9bDRg.js +17 -0
  163. package/dist/chunks/warning-icon-BmlgMY27.js +17 -0
  164. package/dist/chunks/work-icon-D7I-74Mk.js +17 -0
  165. package/dist/chunks/yandex-icon-CepqpI49.js +17 -0
  166. package/dist/chunks/zoom-in-icon-ZWEJANob.js +17 -0
  167. package/dist/chunks/zoom-out-icon-CeFz3G6V.js +17 -0
  168. package/dist/fonts/CoFoSansMono-Regular.otf +0 -0
  169. package/dist/fonts/Graphik-Bold.otf +0 -0
  170. package/dist/fonts/Graphik-Medium.otf +0 -0
  171. package/dist/fonts/Graphik-Regular.otf +0 -0
  172. package/dist/lib/icon/icon.js +38 -0
  173. package/dist/lib/icon/icons.js +353 -0
  174. package/dist/lib/icon/index.js +4 -0
  175. package/dist/lib/icon-banks/icon-banks.js +21 -0
  176. package/dist/lib/icon-banks/icons-banks.js +106 -0
  177. package/dist/lib/icon-banks/index.js +4 -0
  178. package/dist/lib/icon-documents/icon-document.js +26 -0
  179. package/dist/lib/icon-documents/icons-document.js +57 -0
  180. package/dist/lib/icon-documents/index.js +4 -0
  181. package/dist/lib/index.js +192 -0
  182. package/dist/lib/ui/accordion.js +474 -0
  183. package/dist/lib/ui/alert.js +8 -0
  184. package/dist/lib/ui/autocomplete.js +110 -0
  185. package/dist/lib/ui/avatar.js +333 -0
  186. package/dist/lib/ui/button.js +37 -0
  187. package/dist/lib/ui/calendar.js +121 -0
  188. package/dist/lib/ui/card.js +121 -0
  189. package/dist/lib/ui/carousel.js +55 -0
  190. package/dist/lib/ui/checkbox.js +363 -0
  191. package/dist/lib/ui/combobox-base/combobox-base.js +16 -0
  192. package/dist/lib/ui/combobox-base/index.js +4 -0
  193. package/dist/lib/ui/combobox-primitive/combobox-primitive-context.js +7 -0
  194. package/dist/lib/ui/combobox-primitive/components/Item.js +9 -0
  195. package/dist/lib/ui/combobox-primitive/components/combobox-actions.js +35 -0
  196. package/dist/lib/ui/combobox-primitive/components/combobox-container.js +59 -0
  197. package/dist/lib/ui/combobox-primitive/components/combobox-input.js +52 -0
  198. package/dist/lib/ui/combobox-primitive/components/combobox-item-renderer.js +101 -0
  199. package/dist/lib/ui/combobox-primitive/components/combobox-menu.js +56 -0
  200. package/dist/lib/ui/combobox-primitive/components/index.js +18 -0
  201. package/dist/lib/ui/combobox-primitive/components/item-view.js +53 -0
  202. package/dist/lib/ui/combobox-primitive/components/list.js +9 -0
  203. package/dist/lib/ui/combobox-primitive/constants.js +129 -0
  204. package/dist/lib/ui/combobox-primitive/hooks.js +31 -0
  205. package/dist/lib/ui/combobox-primitive/index.js +21 -0
  206. package/dist/lib/ui/combobox-primitive/types.js +1 -0
  207. package/dist/lib/ui/combobox-primitive/utils.js +60 -0
  208. package/dist/lib/ui/combobox.js +9 -0
  209. package/dist/lib/ui/command.js +1016 -0
  210. package/dist/lib/ui/customizable-carousel.js +431 -0
  211. package/dist/lib/ui/date-picker.js +288 -0
  212. package/dist/lib/ui/date-range-picker/constants.js +25 -0
  213. package/dist/lib/ui/date-range-picker/locales.js +116 -0
  214. package/dist/lib/ui/date-range-picker.js +392 -0
  215. package/dist/lib/ui/dialog/dialog-base/dialog-base.js +9 -0
  216. package/dist/lib/ui/dialog/dialog-base/index.js +6 -0
  217. package/dist/lib/ui/dialog/dialog-base/use-base-dialog.js +57 -0
  218. package/dist/lib/ui/dialog/dialog-primitive/dialog-primitive.js +17 -0
  219. package/dist/lib/ui/dialog/dialog-primitive/index.js +4 -0
  220. package/dist/lib/ui/dialog/index.js +7 -0
  221. package/dist/lib/ui/dialog/utils.js +32 -0
  222. package/dist/lib/ui/divider.js +8 -0
  223. package/dist/lib/ui/dropdown.js +13 -0
  224. package/dist/lib/ui/input-number/index.js +4 -0
  225. package/dist/lib/ui/input-number/input-number.js +6 -0
  226. package/dist/lib/ui/input.js +12 -0
  227. package/dist/lib/ui/link.js +167 -0
  228. package/dist/lib/ui/masked-input.js +6 -0
  229. package/dist/lib/ui/modal.js +41 -0
  230. package/dist/lib/ui/otp-input.js +8 -0
  231. package/dist/lib/ui/phone-input/constants.js +21 -0
  232. package/dist/lib/ui/phone-input/locales/ru.json.js +277 -0
  233. package/dist/lib/ui/phone-input/locales/tg.json.js +263 -0
  234. package/dist/lib/ui/phone-input/locales/uz.json.js +263 -0
  235. package/dist/lib/ui/phone-input/phone-input-utils.js +15 -0
  236. package/dist/lib/ui/phone-input/phone-input.js +20 -0
  237. package/dist/lib/ui/phone-input/phone-mask.js +261 -0
  238. package/dist/lib/ui/popover.js +10 -0
  239. package/dist/lib/ui/progress.js +140 -0
  240. package/dist/lib/ui/radio.js +10 -0
  241. package/dist/lib/ui/schedule-calendar/calendar-day-card.js +37 -0
  242. package/dist/lib/ui/schedule-calendar/constants.js +6 -0
  243. package/dist/lib/ui/schedule-calendar/embla-calendar-card.js +46 -0
  244. package/dist/lib/ui/schedule-calendar/embla-calendar-strip.js +52 -0
  245. package/dist/lib/ui/schedule-calendar/index.js +27 -0
  246. package/dist/lib/ui/schedule-calendar/schedule-calendar-strip.js +163 -0
  247. package/dist/lib/ui/schedule-calendar/schedule-header.js +66 -0
  248. package/dist/lib/ui/schedule-calendar/use-schedule-calendar.js +44 -0
  249. package/dist/lib/ui/schedule-calendar/use-schedule-sync.js +45 -0
  250. package/dist/lib/ui/schedule-calendar/utils.js +49 -0
  251. package/dist/lib/ui/scroll-area.js +7 -0
  252. package/dist/lib/ui/segments.js +376 -0
  253. package/dist/lib/ui/select.js +18 -0
  254. package/dist/lib/ui/spinner.js +57 -0
  255. package/dist/lib/ui/stepper.js +70 -0
  256. package/dist/lib/ui/switch.js +281 -0
  257. package/dist/lib/ui/tabs.js +301 -0
  258. package/dist/lib/ui/tag.js +113 -0
  259. package/dist/lib/ui/textarea.js +8 -0
  260. package/dist/lib/ui/time-picker.js +130 -0
  261. package/dist/lib/ui/time-range-picker.js +198 -0
  262. package/dist/lib/ui/timeline.js +36 -0
  263. package/dist/lib/ui/toaster.js +1002 -0
  264. package/dist/lib/ui/tooltip.js +10 -0
  265. package/dist/lib/ui/typography.js +36 -0
  266. package/dist/lib/ui/uploader.js +10 -0
  267. package/dist/styles/konsolpro-custom-ui.css +1 -0
  268. package/dist/styles/variables.css +279 -0
  269. package/dist/types/components/icon/icon.d.ts +10 -0
  270. package/dist/types/components/icon/icons.d.ts +105 -0
  271. package/dist/types/components/icon/index.d.ts +3 -0
  272. package/dist/types/components/icon-banks/icon-banks.d.ts +7 -0
  273. package/dist/types/components/icon-banks/icons-banks.d.ts +28 -0
  274. package/dist/types/components/icon-banks/index.d.ts +3 -0
  275. package/dist/types/components/icon-documents/icon-document.d.ts +9 -0
  276. package/dist/types/components/icon-documents/icons-document.d.ts +13 -0
  277. package/dist/types/components/icon-documents/index.d.ts +3 -0
  278. package/dist/types/components/index.d.ts +49 -0
  279. package/dist/types/components/ui/accordion.d.ts +13 -0
  280. package/dist/types/components/ui/alert.d.ts +16 -0
  281. package/dist/types/components/ui/autocomplete.d.ts +23 -0
  282. package/dist/types/components/ui/avatar.d.ts +27 -0
  283. package/dist/types/components/ui/button.d.ts +35 -0
  284. package/dist/types/components/ui/calendar.d.ts +4 -0
  285. package/dist/types/components/ui/card.d.ts +38 -0
  286. package/dist/types/components/ui/carousel.d.ts +11 -0
  287. package/dist/types/components/ui/checkbox.d.ts +26 -0
  288. package/dist/types/components/ui/combobox-base/combobox-base.d.ts +10 -0
  289. package/dist/types/components/ui/combobox-base/index.d.ts +1 -0
  290. package/dist/types/components/ui/combobox-primitive/combobox-primitive-context.d.ts +54 -0
  291. package/dist/types/components/ui/combobox-primitive/components/Item.d.ts +3 -0
  292. package/dist/types/components/ui/combobox-primitive/components/combobox-actions.d.ts +5 -0
  293. package/dist/types/components/ui/combobox-primitive/components/combobox-container.d.ts +5 -0
  294. package/dist/types/components/ui/combobox-primitive/components/combobox-input.d.ts +5 -0
  295. package/dist/types/components/ui/combobox-primitive/components/combobox-item-renderer.d.ts +10 -0
  296. package/dist/types/components/ui/combobox-primitive/components/combobox-menu.d.ts +6 -0
  297. package/dist/types/components/ui/combobox-primitive/components/index.d.ts +8 -0
  298. package/dist/types/components/ui/combobox-primitive/components/item-view.d.ts +3 -0
  299. package/dist/types/components/ui/combobox-primitive/components/list.d.ts +3 -0
  300. package/dist/types/components/ui/combobox-primitive/constants.d.ts +47 -0
  301. package/dist/types/components/ui/combobox-primitive/hooks.d.ts +8 -0
  302. package/dist/types/components/ui/combobox-primitive/index.d.ts +3 -0
  303. package/dist/types/components/ui/combobox-primitive/types.d.ts +62 -0
  304. package/dist/types/components/ui/combobox-primitive/utils.d.ts +25 -0
  305. package/dist/types/components/ui/combobox.d.ts +34 -0
  306. package/dist/types/components/ui/command.d.ts +78 -0
  307. package/dist/types/components/ui/customizable-carousel.d.ts +148 -0
  308. package/dist/types/components/ui/date-picker.d.ts +37 -0
  309. package/dist/types/components/ui/date-range-picker/constants.d.ts +22 -0
  310. package/dist/types/components/ui/date-range-picker/locales.d.ts +3 -0
  311. package/dist/types/components/ui/date-range-picker.d.ts +46 -0
  312. package/dist/types/components/ui/dialog/dialog-base/dialog-base.d.ts +41 -0
  313. package/dist/types/components/ui/dialog/dialog-base/index.d.ts +3 -0
  314. package/dist/types/components/ui/dialog/dialog-base/use-base-dialog.d.ts +35 -0
  315. package/dist/types/components/ui/dialog/dialog-primitive/dialog-primitive.d.ts +36 -0
  316. package/dist/types/components/ui/dialog/dialog-primitive/index.d.ts +2 -0
  317. package/dist/types/components/ui/dialog/index.d.ts +2 -0
  318. package/dist/types/components/ui/dialog/utils.d.ts +6 -0
  319. package/dist/types/components/ui/divider.d.ts +6 -0
  320. package/dist/types/components/ui/dropdown.d.ts +53 -0
  321. package/dist/types/components/ui/input-number/index.d.ts +2 -0
  322. package/dist/types/components/ui/input-number/input-number.d.ts +43 -0
  323. package/dist/types/components/ui/input.d.ts +58 -0
  324. package/dist/types/components/ui/link.d.ts +28 -0
  325. package/dist/types/components/ui/masked-input.d.ts +12 -0
  326. package/dist/types/components/ui/modal.d.ts +26 -0
  327. package/dist/types/components/ui/otp-input.d.ts +49 -0
  328. package/dist/types/components/ui/phone-input/constants.d.ts +18 -0
  329. package/dist/types/components/ui/phone-input/locales/ru.json.d.ts +252 -0
  330. package/dist/types/components/ui/phone-input/locales/tg.json.d.ts +261 -0
  331. package/dist/types/components/ui/phone-input/locales/uz.json.d.ts +261 -0
  332. package/dist/types/components/ui/phone-input/phone-input-utils.d.ts +2 -0
  333. package/dist/types/components/ui/phone-input/phone-input.d.ts +24 -0
  334. package/dist/types/components/ui/phone-input/phone-mask.d.ts +233 -0
  335. package/dist/types/components/ui/popover.d.ts +7 -0
  336. package/dist/types/components/ui/progress.d.ts +4 -0
  337. package/dist/types/components/ui/radio.d.ts +37 -0
  338. package/dist/types/components/ui/schedule-calendar/calendar-day-card.d.ts +9 -0
  339. package/dist/types/components/ui/schedule-calendar/constants.d.ts +3 -0
  340. package/dist/types/components/ui/schedule-calendar/embla-calendar-card.d.ts +9 -0
  341. package/dist/types/components/ui/schedule-calendar/embla-calendar-strip.d.ts +14 -0
  342. package/dist/types/components/ui/schedule-calendar/index.d.ts +16 -0
  343. package/dist/types/components/ui/schedule-calendar/schedule-calendar-strip.d.ts +36 -0
  344. package/dist/types/components/ui/schedule-calendar/schedule-header.d.ts +26 -0
  345. package/dist/types/components/ui/schedule-calendar/use-schedule-calendar.d.ts +27 -0
  346. package/dist/types/components/ui/schedule-calendar/use-schedule-sync.d.ts +39 -0
  347. package/dist/types/components/ui/schedule-calendar/utils.d.ts +12 -0
  348. package/dist/types/components/ui/scroll-area.d.ts +9 -0
  349. package/dist/types/components/ui/segments.d.ts +44 -0
  350. package/dist/types/components/ui/select.d.ts +95 -0
  351. package/dist/types/components/ui/spinner.d.ts +12 -0
  352. package/dist/types/components/ui/stepper.d.ts +11 -0
  353. package/dist/types/components/ui/switch.d.ts +24 -0
  354. package/dist/types/components/ui/tabs.d.ts +25 -0
  355. package/dist/types/components/ui/tag.d.ts +28 -0
  356. package/dist/types/components/ui/textarea.d.ts +17 -0
  357. package/dist/types/components/ui/time-picker.d.ts +15 -0
  358. package/dist/types/components/ui/time-range-picker.d.ts +26 -0
  359. package/dist/types/components/ui/timeline.d.ts +17 -0
  360. package/dist/types/components/ui/toaster.d.ts +45 -0
  361. package/dist/types/components/ui/tooltip.d.ts +8 -0
  362. package/dist/types/components/ui/typography.d.ts +25 -0
  363. package/dist/types/components/ui/uploader.d.ts +52 -0
  364. package/dist/types/index.d.ts +1 -0
  365. package/dist/types/lib/utils.d.ts +14 -0
  366. package/dist/types/main.d.ts +0 -0
  367. package/dist/types/utils/use-device-detector.d.ts +1 -0
  368. package/dist/vite.svg +1 -0
  369. package/package.json +171 -0
@@ -0,0 +1,1016 @@
1
+ var Ct = Object.defineProperty, Rt = Object.defineProperties;
2
+ var wt = Object.getOwnPropertyDescriptors;
3
+ var se = Object.getOwnPropertySymbols;
4
+ var Le = Object.prototype.hasOwnProperty, Me = Object.prototype.propertyIsEnumerable;
5
+ var _e = (e, r, t) => r in e ? Ct(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, p = (e, r) => {
6
+ for (var t in r || (r = {}))
7
+ Le.call(r, t) && _e(e, t, r[t]);
8
+ if (se)
9
+ for (var t of se(r))
10
+ Me.call(r, t) && _e(e, t, r[t]);
11
+ return e;
12
+ }, C = (e, r) => Rt(e, wt(r));
13
+ var y = (e, r) => {
14
+ var t = {};
15
+ for (var o in e)
16
+ Le.call(e, o) && r.indexOf(o) < 0 && (t[o] = e[o]);
17
+ if (e != null && se)
18
+ for (var o of se(e))
19
+ r.indexOf(o) < 0 && Me.call(e, o) && (t[o] = e[o]);
20
+ return t;
21
+ };
22
+ import { jsx as g, jsxs as ye, Fragment as We } from "react/jsx-runtime";
23
+ import * as i from "react";
24
+ import X from "react";
25
+ import { c as G } from "../../chunks/index-DLeNytVF.js";
26
+ import { c as re, u as ne } from "../../chunks/index-DLcqcWxM.js";
27
+ import { c as Dt, a as xt } from "../../chunks/index-E4d_Gd-w.js";
28
+ import { u as K } from "../../chunks/index-1Er1dKQf.js";
29
+ import { u as St } from "../../chunks/index-DYfkNB0n.js";
30
+ import * as It from "react-dom";
31
+ import Nt from "react-dom";
32
+ import { u as ue } from "../../chunks/index-DwYXX2sM.js";
33
+ import { u as Pt } from "../../chunks/index-NPrw3_0K.js";
34
+ import { u as Ot } from "../../chunks/index-DuekHEmj.js";
35
+ import { P as De } from "../../chunks/index-PsqJG3fE.js";
36
+ import { R as At, h as kt, u as Ft } from "../../chunks/index-BxWD79NI.js";
37
+ import { c as Z } from "../../chunks/utils-TbLXCoKm.js";
38
+ import { Icon as Tt } from "../icon/icon.js";
39
+ var $e = 1, _t = 0.9, Lt = 0.8, Mt = 0.17, ve = 0.1, ge = 0.999, Wt = 0.9999, $t = 0.99, Bt = /[\\\/_+.#"@\[\(\{&]/, Ut = /[\\\/_+.#"@\[\(\{&]/g, Kt = /[\s-]/, ze = /[\s-]/g;
40
+ function Ce(e, r, t, o, n, a, s) {
41
+ if (a === r.length) return n === e.length ? $e : $t;
42
+ var l = `${n},${a}`;
43
+ if (s[l] !== void 0) return s[l];
44
+ for (var f = o.charAt(a), d = t.indexOf(f, n), c = 0, h, D, x, P; d >= 0; ) h = Ce(e, r, t, o, d + 1, a + 1, s), h > c && (d === n ? h *= $e : Bt.test(e.charAt(d - 1)) ? (h *= Lt, x = e.slice(n, d - 1).match(Ut), x && n > 0 && (h *= Math.pow(ge, x.length))) : Kt.test(e.charAt(d - 1)) ? (h *= _t, P = e.slice(n, d - 1).match(ze), P && n > 0 && (h *= Math.pow(ge, P.length))) : (h *= Mt, n > 0 && (h *= Math.pow(ge, d - n))), e.charAt(d) !== r.charAt(a) && (h *= Wt)), (h < ve && t.charAt(d - 1) === o.charAt(a + 1) || o.charAt(a + 1) === o.charAt(a) && t.charAt(d - 1) !== o.charAt(a)) && (D = Ce(e, r, t, o, d + 1, a + 2, s), D * ve > h && (h = D * ve)), h > c && (c = h), d = t.indexOf(f, d + 1);
45
+ return s[l] = c, c;
46
+ }
47
+ function Be(e) {
48
+ return e.toLowerCase().replace(ze, " ");
49
+ }
50
+ function Vt(e, r, t) {
51
+ return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, Ce(e, r, Be(e), Be(r), 0, 0, {});
52
+ }
53
+ // @__NO_SIDE_EFFECTS__
54
+ function Ye(e) {
55
+ const r = /* @__PURE__ */ Ht(e), t = i.forwardRef((o, n) => {
56
+ const d = o, { children: a } = d, s = y(d, ["children"]), l = i.Children.toArray(a), f = l.find(jt);
57
+ if (f) {
58
+ const c = f.props.children, h = l.map((D) => D === f ? i.Children.count(c) > 1 ? i.Children.only(null) : i.isValidElement(c) ? c.props.children : null : D);
59
+ return /* @__PURE__ */ g(r, C(p({}, s), { ref: n, children: i.isValidElement(c) ? i.cloneElement(c, void 0, h) : null }));
60
+ }
61
+ return /* @__PURE__ */ g(r, C(p({}, s), { ref: n, children: a }));
62
+ });
63
+ return t.displayName = `${e}.Slot`, t;
64
+ }
65
+ // @__NO_SIDE_EFFECTS__
66
+ function Ht(e) {
67
+ const r = i.forwardRef((t, o) => {
68
+ const s = t, { children: n } = s, a = y(s, ["children"]);
69
+ if (i.isValidElement(n)) {
70
+ const l = zt(n), f = qt(a, n.props);
71
+ return n.type !== i.Fragment && (f.ref = o ? re(o, l) : l), i.cloneElement(n, f);
72
+ }
73
+ return i.Children.count(n) > 1 ? i.Children.only(null) : null;
74
+ });
75
+ return r.displayName = `${e}.SlotClone`, r;
76
+ }
77
+ var Gt = Symbol("radix.slottable");
78
+ function jt(e) {
79
+ return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Gt;
80
+ }
81
+ function qt(e, r) {
82
+ const t = p({}, r);
83
+ for (const o in r) {
84
+ const n = e[o], a = r[o];
85
+ /^on[A-Z]/.test(o) ? n && a ? t[o] = (...l) => {
86
+ a(...l), n(...l);
87
+ } : n && (t[o] = n) : o === "style" ? t[o] = p(p({}, n), a) : o === "className" && (t[o] = [n, a].filter(Boolean).join(" "));
88
+ }
89
+ return p(p({}, e), t);
90
+ }
91
+ function zt(e) {
92
+ var o, n;
93
+ let r = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning;
94
+ return t ? e.ref : (r = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
95
+ }
96
+ var Yt = [
97
+ "a",
98
+ "button",
99
+ "div",
100
+ "form",
101
+ "h2",
102
+ "h3",
103
+ "img",
104
+ "input",
105
+ "label",
106
+ "li",
107
+ "nav",
108
+ "ol",
109
+ "p",
110
+ "select",
111
+ "span",
112
+ "svg",
113
+ "ul"
114
+ ], A = Yt.reduce((e, r) => {
115
+ const t = /* @__PURE__ */ Ye(`Primitive.${r}`), o = i.forwardRef((n, a) => {
116
+ const d = n, { asChild: s } = d, l = y(d, ["asChild"]), f = s ? t : r;
117
+ return typeof window != "undefined" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(f, C(p({}, l), { ref: a }));
118
+ });
119
+ return o.displayName = `Primitive.${r}`, C(p({}, e), { [r]: o });
120
+ }, {});
121
+ function Xt(e, r) {
122
+ e && It.flushSync(() => e.dispatchEvent(r));
123
+ }
124
+ var Zt = "DismissableLayer", Re = "dismissableLayer.update", Jt = "dismissableLayer.pointerDownOutside", Qt = "dismissableLayer.focusOutside", Ue, Xe = i.createContext({
125
+ layers: /* @__PURE__ */ new Set(),
126
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
127
+ branches: /* @__PURE__ */ new Set()
128
+ }), Ze = i.forwardRef(
129
+ (e, r) => {
130
+ var U;
131
+ const R = e, {
132
+ disableOutsidePointerEvents: t = !1,
133
+ onEscapeKeyDown: o,
134
+ onPointerDownOutside: n,
135
+ onFocusOutside: a,
136
+ onInteractOutside: s,
137
+ onDismiss: l
138
+ } = R, f = y(R, [
139
+ "disableOutsidePointerEvents",
140
+ "onEscapeKeyDown",
141
+ "onPointerDownOutside",
142
+ "onFocusOutside",
143
+ "onInteractOutside",
144
+ "onDismiss"
145
+ ]), d = i.useContext(Xe), [c, h] = i.useState(null), D = (U = c == null ? void 0 : c.ownerDocument) != null ? U : globalThis == null ? void 0 : globalThis.document, [, x] = i.useState({}), P = ne(r, (I) => h(I)), B = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), M = B.indexOf(b), O = c ? B.indexOf(c) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, k = O >= M, N = rr((I) => {
146
+ const V = I.target, J = [...d.branches].some((q) => q.contains(V));
147
+ !k || J || (n == null || n(I), s == null || s(I), I.defaultPrevented || l == null || l());
148
+ }, D), F = nr((I) => {
149
+ const V = I.target;
150
+ [...d.branches].some((q) => q.contains(V)) || (a == null || a(I), s == null || s(I), I.defaultPrevented || l == null || l());
151
+ }, D);
152
+ return Pt((I) => {
153
+ O === d.layers.size - 1 && (o == null || o(I), !I.defaultPrevented && l && (I.preventDefault(), l()));
154
+ }, D), i.useEffect(() => {
155
+ if (c)
156
+ return t && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Ue = D.body.style.pointerEvents, D.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(c)), d.layers.add(c), Ke(), () => {
157
+ t && d.layersWithOutsidePointerEventsDisabled.size === 1 && (D.body.style.pointerEvents = Ue);
158
+ };
159
+ }, [c, D, t, d]), i.useEffect(() => () => {
160
+ c && (d.layers.delete(c), d.layersWithOutsidePointerEventsDisabled.delete(c), Ke());
161
+ }, [c, d]), i.useEffect(() => {
162
+ const I = () => x({});
163
+ return document.addEventListener(Re, I), () => document.removeEventListener(Re, I);
164
+ }, []), /* @__PURE__ */ g(
165
+ A.div,
166
+ C(p({}, f), {
167
+ ref: P,
168
+ style: p({
169
+ pointerEvents: $ ? k ? "auto" : "none" : void 0
170
+ }, e.style),
171
+ onFocusCapture: G(e.onFocusCapture, F.onFocusCapture),
172
+ onBlurCapture: G(e.onBlurCapture, F.onBlurCapture),
173
+ onPointerDownCapture: G(
174
+ e.onPointerDownCapture,
175
+ N.onPointerDownCapture
176
+ )
177
+ })
178
+ );
179
+ }
180
+ );
181
+ Ze.displayName = Zt;
182
+ var er = "DismissableLayerBranch", tr = i.forwardRef((e, r) => {
183
+ const t = i.useContext(Xe), o = i.useRef(null), n = ne(r, o);
184
+ return i.useEffect(() => {
185
+ const a = o.current;
186
+ if (a)
187
+ return t.branches.add(a), () => {
188
+ t.branches.delete(a);
189
+ };
190
+ }, [t.branches]), /* @__PURE__ */ g(A.div, C(p({}, e), { ref: n }));
191
+ });
192
+ tr.displayName = er;
193
+ function rr(e, r = globalThis == null ? void 0 : globalThis.document) {
194
+ const t = ue(e), o = i.useRef(!1), n = i.useRef(() => {
195
+ });
196
+ return i.useEffect(() => {
197
+ const a = (l) => {
198
+ if (l.target && !o.current) {
199
+ let f = function() {
200
+ Je(
201
+ Jt,
202
+ t,
203
+ d,
204
+ { discrete: !0 }
205
+ );
206
+ };
207
+ const d = { originalEvent: l };
208
+ l.pointerType === "touch" ? (r.removeEventListener("click", n.current), n.current = f, r.addEventListener("click", n.current, { once: !0 })) : f();
209
+ } else
210
+ r.removeEventListener("click", n.current);
211
+ o.current = !1;
212
+ }, s = window.setTimeout(() => {
213
+ r.addEventListener("pointerdown", a);
214
+ }, 0);
215
+ return () => {
216
+ window.clearTimeout(s), r.removeEventListener("pointerdown", a), r.removeEventListener("click", n.current);
217
+ };
218
+ }, [r, t]), {
219
+ // ensures we check React component tree (not just DOM tree)
220
+ onPointerDownCapture: () => o.current = !0
221
+ };
222
+ }
223
+ function nr(e, r = globalThis == null ? void 0 : globalThis.document) {
224
+ const t = ue(e), o = i.useRef(!1);
225
+ return i.useEffect(() => {
226
+ const n = (a) => {
227
+ a.target && !o.current && Je(Qt, t, { originalEvent: a }, {
228
+ discrete: !1
229
+ });
230
+ };
231
+ return r.addEventListener("focusin", n), () => r.removeEventListener("focusin", n);
232
+ }, [r, t]), {
233
+ onFocusCapture: () => o.current = !0,
234
+ onBlurCapture: () => o.current = !1
235
+ };
236
+ }
237
+ function Ke() {
238
+ const e = new CustomEvent(Re);
239
+ document.dispatchEvent(e);
240
+ }
241
+ function Je(e, r, t, { discrete: o }) {
242
+ const n = t.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: t });
243
+ r && n.addEventListener(e, r, { once: !0 }), o ? Xt(n, a) : n.dispatchEvent(a);
244
+ }
245
+ var he = "focusScope.autoFocusOnMount", Ee = "focusScope.autoFocusOnUnmount", Ve = { bubbles: !1, cancelable: !0 }, or = "FocusScope", Qe = i.forwardRef((e, r) => {
246
+ const B = e, {
247
+ loop: t = !1,
248
+ trapped: o = !1,
249
+ onMountAutoFocus: n,
250
+ onUnmountAutoFocus: a
251
+ } = B, s = y(B, [
252
+ "loop",
253
+ "trapped",
254
+ "onMountAutoFocus",
255
+ "onUnmountAutoFocus"
256
+ ]), [l, f] = i.useState(null), d = ue(n), c = ue(a), h = i.useRef(null), D = ne(r, (b) => f(b)), x = i.useRef({
257
+ paused: !1,
258
+ pause() {
259
+ this.paused = !0;
260
+ },
261
+ resume() {
262
+ this.paused = !1;
263
+ }
264
+ }).current;
265
+ i.useEffect(() => {
266
+ if (o) {
267
+ let b = function(k) {
268
+ if (x.paused || !l) return;
269
+ const N = k.target;
270
+ l.contains(N) ? h.current = N : H(h.current, { select: !0 });
271
+ }, M = function(k) {
272
+ if (x.paused || !l) return;
273
+ const N = k.relatedTarget;
274
+ N !== null && (l.contains(N) || H(h.current, { select: !0 }));
275
+ }, O = function(k) {
276
+ if (document.activeElement === document.body)
277
+ for (const F of k)
278
+ F.removedNodes.length > 0 && H(l);
279
+ };
280
+ document.addEventListener("focusin", b), document.addEventListener("focusout", M);
281
+ const $ = new MutationObserver(O);
282
+ return l && $.observe(l, { childList: !0, subtree: !0 }), () => {
283
+ document.removeEventListener("focusin", b), document.removeEventListener("focusout", M), $.disconnect();
284
+ };
285
+ }
286
+ }, [o, l, x.paused]), i.useEffect(() => {
287
+ if (l) {
288
+ Ge.add(x);
289
+ const b = document.activeElement;
290
+ if (!l.contains(b)) {
291
+ const O = new CustomEvent(he, Ve);
292
+ l.addEventListener(he, d), l.dispatchEvent(O), O.defaultPrevented || (ar(cr(et(l)), { select: !0 }), document.activeElement === b && H(l));
293
+ }
294
+ return () => {
295
+ l.removeEventListener(he, d), setTimeout(() => {
296
+ const O = new CustomEvent(Ee, Ve);
297
+ l.addEventListener(Ee, c), l.dispatchEvent(O), O.defaultPrevented || H(b != null ? b : document.body, { select: !0 }), l.removeEventListener(Ee, c), Ge.remove(x);
298
+ }, 0);
299
+ };
300
+ }
301
+ }, [l, d, c, x]);
302
+ const P = i.useCallback(
303
+ (b) => {
304
+ if (!t && !o || x.paused) return;
305
+ const M = b.key === "Tab" && !b.altKey && !b.ctrlKey && !b.metaKey, O = document.activeElement;
306
+ if (M && O) {
307
+ const $ = b.currentTarget, [k, N] = ir($);
308
+ k && N ? !b.shiftKey && O === N ? (b.preventDefault(), t && H(k, { select: !0 })) : b.shiftKey && O === k && (b.preventDefault(), t && H(N, { select: !0 })) : O === $ && b.preventDefault();
309
+ }
310
+ },
311
+ [t, o, x.paused]
312
+ );
313
+ return /* @__PURE__ */ g(A.div, C(p({ tabIndex: -1 }, s), { ref: D, onKeyDown: P }));
314
+ });
315
+ Qe.displayName = or;
316
+ function ar(e, { select: r = !1 } = {}) {
317
+ const t = document.activeElement;
318
+ for (const o of e)
319
+ if (H(o, { select: r }), document.activeElement !== t) return;
320
+ }
321
+ function ir(e) {
322
+ const r = et(e), t = He(r, e), o = He(r.reverse(), e);
323
+ return [t, o];
324
+ }
325
+ function et(e) {
326
+ const r = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
327
+ acceptNode: (o) => {
328
+ const n = o.tagName === "INPUT" && o.type === "hidden";
329
+ return o.disabled || o.hidden || n ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
330
+ }
331
+ });
332
+ for (; t.nextNode(); ) r.push(t.currentNode);
333
+ return r;
334
+ }
335
+ function He(e, r) {
336
+ for (const t of e)
337
+ if (!lr(t, { upTo: r })) return t;
338
+ }
339
+ function lr(e, { upTo: r }) {
340
+ if (getComputedStyle(e).visibility === "hidden") return !0;
341
+ for (; e; ) {
342
+ if (r !== void 0 && e === r) return !1;
343
+ if (getComputedStyle(e).display === "none") return !0;
344
+ e = e.parentElement;
345
+ }
346
+ return !1;
347
+ }
348
+ function sr(e) {
349
+ return e instanceof HTMLInputElement && "select" in e;
350
+ }
351
+ function H(e, { select: r = !1 } = {}) {
352
+ if (e && e.focus) {
353
+ const t = document.activeElement;
354
+ e.focus({ preventScroll: !0 }), e !== t && sr(e) && r && e.select();
355
+ }
356
+ }
357
+ var Ge = ur();
358
+ function ur() {
359
+ let e = [];
360
+ return {
361
+ add(r) {
362
+ const t = e[0];
363
+ r !== t && (t == null || t.pause()), e = je(e, r), e.unshift(r);
364
+ },
365
+ remove(r) {
366
+ var t;
367
+ e = je(e, r), (t = e[0]) == null || t.resume();
368
+ }
369
+ };
370
+ }
371
+ function je(e, r) {
372
+ const t = [...e], o = t.indexOf(r);
373
+ return o !== -1 && t.splice(o, 1), t;
374
+ }
375
+ function cr(e) {
376
+ return e.filter((r) => r.tagName !== "A");
377
+ }
378
+ var dr = "Portal", tt = i.forwardRef((e, r) => {
379
+ var f;
380
+ const l = e, { container: t } = l, o = y(l, ["container"]), [n, a] = i.useState(!1);
381
+ Ot(() => a(!0), []);
382
+ const s = t || n && ((f = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : f.body);
383
+ return s ? Nt.createPortal(/* @__PURE__ */ g(A.div, C(p({}, o), { ref: r })), s) : null;
384
+ });
385
+ tt.displayName = dr;
386
+ var de = "Dialog", [rt, vn] = Dt(de), [fr, W] = rt(de), nt = (e) => {
387
+ const {
388
+ __scopeDialog: r,
389
+ children: t,
390
+ open: o,
391
+ defaultOpen: n,
392
+ onOpenChange: a,
393
+ modal: s = !0
394
+ } = e, l = i.useRef(null), f = i.useRef(null), [d, c] = St({
395
+ prop: o,
396
+ defaultProp: n != null ? n : !1,
397
+ onChange: a,
398
+ caller: de
399
+ });
400
+ return /* @__PURE__ */ g(
401
+ fr,
402
+ {
403
+ scope: r,
404
+ triggerRef: l,
405
+ contentRef: f,
406
+ contentId: K(),
407
+ titleId: K(),
408
+ descriptionId: K(),
409
+ open: d,
410
+ onOpenChange: c,
411
+ onOpenToggle: i.useCallback(() => c((h) => !h), [c]),
412
+ modal: s,
413
+ children: t
414
+ }
415
+ );
416
+ };
417
+ nt.displayName = de;
418
+ var ot = "DialogTrigger", mr = i.forwardRef(
419
+ (e, r) => {
420
+ const s = e, { __scopeDialog: t } = s, o = y(s, ["__scopeDialog"]), n = W(ot, t), a = ne(r, n.triggerRef);
421
+ return /* @__PURE__ */ g(
422
+ A.button,
423
+ C(p({
424
+ type: "button",
425
+ "aria-haspopup": "dialog",
426
+ "aria-expanded": n.open,
427
+ "aria-controls": n.contentId,
428
+ "data-state": Ie(n.open)
429
+ }, o), {
430
+ ref: a,
431
+ onClick: G(e.onClick, n.onOpenToggle)
432
+ })
433
+ );
434
+ }
435
+ );
436
+ mr.displayName = ot;
437
+ var xe = "DialogPortal", [pr, at] = rt(xe, {
438
+ forceMount: void 0
439
+ }), it = (e) => {
440
+ const { __scopeDialog: r, forceMount: t, children: o, container: n } = e, a = W(xe, r);
441
+ return /* @__PURE__ */ g(pr, { scope: r, forceMount: t, children: i.Children.map(o, (s) => /* @__PURE__ */ g(De, { present: t || a.open, children: /* @__PURE__ */ g(tt, { asChild: !0, container: n, children: s }) })) });
442
+ };
443
+ it.displayName = xe;
444
+ var ce = "DialogOverlay", lt = i.forwardRef(
445
+ (e, r) => {
446
+ const t = at(ce, e.__scopeDialog), s = e, { forceMount: o = t.forceMount } = s, n = y(s, ["forceMount"]), a = W(ce, e.__scopeDialog);
447
+ return a.modal ? /* @__PURE__ */ g(De, { present: o || a.open, children: /* @__PURE__ */ g(gr, C(p({}, n), { ref: r })) }) : null;
448
+ }
449
+ );
450
+ lt.displayName = ce;
451
+ var vr = /* @__PURE__ */ Ye("DialogOverlay.RemoveScroll"), gr = i.forwardRef(
452
+ (e, r) => {
453
+ const a = e, { __scopeDialog: t } = a, o = y(a, ["__scopeDialog"]), n = W(ce, t);
454
+ return (
455
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
456
+ // ie. when `Overlay` and `Content` are siblings
457
+ /* @__PURE__ */ g(At, { as: vr, allowPinchZoom: !0, shards: [n.contentRef], children: /* @__PURE__ */ g(
458
+ A.div,
459
+ C(p({
460
+ "data-state": Ie(n.open)
461
+ }, o), {
462
+ ref: r,
463
+ style: p({ pointerEvents: "auto" }, o.style)
464
+ })
465
+ ) })
466
+ );
467
+ }
468
+ ), z = "DialogContent", st = i.forwardRef(
469
+ (e, r) => {
470
+ const t = at(z, e.__scopeDialog), s = e, { forceMount: o = t.forceMount } = s, n = y(s, ["forceMount"]), a = W(z, e.__scopeDialog);
471
+ return /* @__PURE__ */ g(De, { present: o || a.open, children: a.modal ? /* @__PURE__ */ g(hr, C(p({}, n), { ref: r })) : /* @__PURE__ */ g(Er, C(p({}, n), { ref: r })) });
472
+ }
473
+ );
474
+ st.displayName = z;
475
+ var hr = i.forwardRef(
476
+ (e, r) => {
477
+ const t = W(z, e.__scopeDialog), o = i.useRef(null), n = ne(r, t.contentRef, o);
478
+ return i.useEffect(() => {
479
+ const a = o.current;
480
+ if (a) return kt(a);
481
+ }, []), /* @__PURE__ */ g(
482
+ ut,
483
+ C(p({}, e), {
484
+ ref: n,
485
+ trapFocus: t.open,
486
+ disableOutsidePointerEvents: !0,
487
+ onCloseAutoFocus: G(e.onCloseAutoFocus, (a) => {
488
+ var s;
489
+ a.preventDefault(), (s = t.triggerRef.current) == null || s.focus();
490
+ }),
491
+ onPointerDownOutside: G(e.onPointerDownOutside, (a) => {
492
+ const s = a.detail.originalEvent, l = s.button === 0 && s.ctrlKey === !0;
493
+ (s.button === 2 || l) && a.preventDefault();
494
+ }),
495
+ onFocusOutside: G(
496
+ e.onFocusOutside,
497
+ (a) => a.preventDefault()
498
+ )
499
+ })
500
+ );
501
+ }
502
+ ), Er = i.forwardRef(
503
+ (e, r) => {
504
+ const t = W(z, e.__scopeDialog), o = i.useRef(!1), n = i.useRef(!1);
505
+ return /* @__PURE__ */ g(
506
+ ut,
507
+ C(p({}, e), {
508
+ ref: r,
509
+ trapFocus: !1,
510
+ disableOutsidePointerEvents: !1,
511
+ onCloseAutoFocus: (a) => {
512
+ var s, l;
513
+ (s = e.onCloseAutoFocus) == null || s.call(e, a), a.defaultPrevented || (o.current || (l = t.triggerRef.current) == null || l.focus(), a.preventDefault()), o.current = !1, n.current = !1;
514
+ },
515
+ onInteractOutside: (a) => {
516
+ var f, d;
517
+ (f = e.onInteractOutside) == null || f.call(e, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (n.current = !0));
518
+ const s = a.target;
519
+ ((d = t.triggerRef.current) == null ? void 0 : d.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && n.current && a.preventDefault();
520
+ }
521
+ })
522
+ );
523
+ }
524
+ ), ut = i.forwardRef(
525
+ (e, r) => {
526
+ const c = e, { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: n, onCloseAutoFocus: a } = c, s = y(c, ["__scopeDialog", "trapFocus", "onOpenAutoFocus", "onCloseAutoFocus"]), l = W(z, t), f = i.useRef(null), d = ne(r, f);
527
+ return Ft(), /* @__PURE__ */ ye(We, { children: [
528
+ /* @__PURE__ */ g(
529
+ Qe,
530
+ {
531
+ asChild: !0,
532
+ loop: !0,
533
+ trapped: o,
534
+ onMountAutoFocus: n,
535
+ onUnmountAutoFocus: a,
536
+ children: /* @__PURE__ */ g(
537
+ Ze,
538
+ C(p({
539
+ role: "dialog",
540
+ id: l.contentId,
541
+ "aria-describedby": l.descriptionId,
542
+ "aria-labelledby": l.titleId,
543
+ "data-state": Ie(l.open)
544
+ }, s), {
545
+ ref: d,
546
+ onDismiss: () => l.onOpenChange(!1)
547
+ })
548
+ )
549
+ }
550
+ ),
551
+ /* @__PURE__ */ ye(We, { children: [
552
+ /* @__PURE__ */ g(Rr, { titleId: l.titleId }),
553
+ /* @__PURE__ */ g(Dr, { contentRef: f, descriptionId: l.descriptionId })
554
+ ] })
555
+ ] });
556
+ }
557
+ ), Se = "DialogTitle", br = i.forwardRef(
558
+ (e, r) => {
559
+ const a = e, { __scopeDialog: t } = a, o = y(a, ["__scopeDialog"]), n = W(Se, t);
560
+ return /* @__PURE__ */ g(A.h2, C(p({ id: n.titleId }, o), { ref: r }));
561
+ }
562
+ );
563
+ br.displayName = Se;
564
+ var ct = "DialogDescription", yr = i.forwardRef(
565
+ (e, r) => {
566
+ const a = e, { __scopeDialog: t } = a, o = y(a, ["__scopeDialog"]), n = W(ct, t);
567
+ return /* @__PURE__ */ g(A.p, C(p({ id: n.descriptionId }, o), { ref: r }));
568
+ }
569
+ );
570
+ yr.displayName = ct;
571
+ var dt = "DialogClose", Cr = i.forwardRef(
572
+ (e, r) => {
573
+ const a = e, { __scopeDialog: t } = a, o = y(a, ["__scopeDialog"]), n = W(dt, t);
574
+ return /* @__PURE__ */ g(
575
+ A.button,
576
+ C(p({
577
+ type: "button"
578
+ }, o), {
579
+ ref: r,
580
+ onClick: G(e.onClick, () => n.onOpenChange(!1))
581
+ })
582
+ );
583
+ }
584
+ );
585
+ Cr.displayName = dt;
586
+ function Ie(e) {
587
+ return e ? "open" : "closed";
588
+ }
589
+ var ft = "DialogTitleWarning", [gn, mt] = xt(ft, {
590
+ contentName: z,
591
+ titleName: Se,
592
+ docsSlug: "dialog"
593
+ }), Rr = ({ titleId: e }) => {
594
+ const r = mt(ft), t = `\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
595
+
596
+ If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
597
+
598
+ For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;
599
+ return i.useEffect(() => {
600
+ e && (document.getElementById(e) || console.error(t));
601
+ }, [t, e]), null;
602
+ }, wr = "DialogDescriptionWarning", Dr = ({ contentRef: e, descriptionId: r }) => {
603
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mt(wr).contentName}}.`;
604
+ return i.useEffect(() => {
605
+ var a;
606
+ const n = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
607
+ r && n && (document.getElementById(r) || console.warn(o));
608
+ }, [o, e, r]), null;
609
+ }, xr = nt, Sr = it, Ir = lt, Nr = st, ae = '[cmdk-group=""]', be = '[cmdk-group-items=""]', Pr = '[cmdk-group-heading=""]', pt = '[cmdk-item=""]', qe = `${pt}:not([aria-disabled="true"])`, we = "cmdk-item-select", ee = "data-value", Or = (e, r, t) => Vt(e, r, t), vt = i.createContext(void 0), ie = () => i.useContext(vt), gt = i.createContext(void 0), Ne = () => i.useContext(gt), ht = i.createContext(void 0), Et = i.forwardRef((e, r) => {
610
+ let t = te(() => {
611
+ var u, v;
612
+ return { search: "", value: (v = (u = e.value) != null ? u : e.defaultValue) != null ? v : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
613
+ }), o = te(() => /* @__PURE__ */ new Set()), n = te(() => /* @__PURE__ */ new Map()), a = te(() => /* @__PURE__ */ new Map()), s = te(() => /* @__PURE__ */ new Set()), l = bt(e), Te = e, { label: f, children: d, value: c, onValueChange: h, filter: D, shouldFilter: x, loop: P, disablePointerSelection: B = !1, vimBindings: b = !0 } = Te, M = y(Te, ["label", "children", "value", "onValueChange", "filter", "shouldFilter", "loop", "disablePointerSelection", "vimBindings"]), O = K(), $ = K(), k = K(), N = i.useRef(null), F = Ur();
614
+ Y(() => {
615
+ if (c !== void 0) {
616
+ let u = c.trim();
617
+ t.current.value = u, R.emit();
618
+ }
619
+ }, [c]), Y(() => {
620
+ F(6, Pe);
621
+ }, []);
622
+ let R = i.useMemo(() => ({ subscribe: (u) => (s.current.add(u), () => s.current.delete(u)), snapshot: () => t.current, setState: (u, v, E) => {
623
+ var m, w, S, L;
624
+ if (!Object.is(t.current[u], v)) {
625
+ if (t.current[u] = v, u === "search") q(), V(), F(1, J);
626
+ else if (u === "value") {
627
+ if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
628
+ let T = document.getElementById(k);
629
+ T ? T.focus() : (m = document.getElementById(O)) == null || m.focus();
630
+ }
631
+ if (F(7, () => {
632
+ var T;
633
+ t.current.selectedItemId = (T = Q()) == null ? void 0 : T.id, R.emit();
634
+ }), E || F(5, Pe), ((w = l.current) == null ? void 0 : w.value) !== void 0) {
635
+ let T = v != null ? v : "";
636
+ (L = (S = l.current).onValueChange) == null || L.call(S, T);
637
+ return;
638
+ }
639
+ }
640
+ R.emit();
641
+ }
642
+ }, emit: () => {
643
+ s.current.forEach((u) => u());
644
+ } }), []), U = i.useMemo(() => ({ value: (u, v, E) => {
645
+ var m;
646
+ v !== ((m = a.current.get(u)) == null ? void 0 : m.value) && (a.current.set(u, { value: v, keywords: E }), t.current.filtered.items.set(u, I(v, E)), F(2, () => {
647
+ V(), R.emit();
648
+ }));
649
+ }, item: (u, v) => (o.current.add(u), v && (n.current.has(v) ? n.current.get(v).add(u) : n.current.set(v, /* @__PURE__ */ new Set([u]))), F(3, () => {
650
+ q(), V(), t.current.value || J(), R.emit();
651
+ }), () => {
652
+ a.current.delete(u), o.current.delete(u), t.current.filtered.items.delete(u);
653
+ let E = Q();
654
+ F(4, () => {
655
+ q(), (E == null ? void 0 : E.getAttribute("id")) === u && J(), R.emit();
656
+ });
657
+ }), group: (u) => (n.current.has(u) || n.current.set(u, /* @__PURE__ */ new Set()), () => {
658
+ a.current.delete(u), n.current.delete(u);
659
+ }), filter: () => l.current.shouldFilter, label: f || e["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: O, inputId: k, labelId: $, listInnerRef: N }), []);
660
+ function I(u, v) {
661
+ var E, m;
662
+ let w = (m = (E = l.current) == null ? void 0 : E.filter) != null ? m : Or;
663
+ return u ? w(u, t.current.search, v) : 0;
664
+ }
665
+ function V() {
666
+ if (!t.current.search || l.current.shouldFilter === !1) return;
667
+ let u = t.current.filtered.items, v = [];
668
+ t.current.filtered.groups.forEach((m) => {
669
+ let w = n.current.get(m), S = 0;
670
+ w.forEach((L) => {
671
+ let T = u.get(L);
672
+ S = Math.max(T, S);
673
+ }), v.push([m, S]);
674
+ });
675
+ let E = N.current;
676
+ oe().sort((m, w) => {
677
+ var S, L;
678
+ let T = m.getAttribute("id"), le = w.getAttribute("id");
679
+ return ((S = u.get(le)) != null ? S : 0) - ((L = u.get(T)) != null ? L : 0);
680
+ }).forEach((m) => {
681
+ let w = m.closest(be);
682
+ w ? w.appendChild(m.parentElement === w ? m : m.closest(`${be} > *`)) : E.appendChild(m.parentElement === E ? m : m.closest(`${be} > *`));
683
+ }), v.sort((m, w) => w[1] - m[1]).forEach((m) => {
684
+ var w;
685
+ let S = (w = N.current) == null ? void 0 : w.querySelector(`${ae}[${ee}="${encodeURIComponent(m[0])}"]`);
686
+ S == null || S.parentElement.appendChild(S);
687
+ });
688
+ }
689
+ function J() {
690
+ let u = oe().find((E) => E.getAttribute("aria-disabled") !== "true"), v = u == null ? void 0 : u.getAttribute(ee);
691
+ R.setState("value", v || void 0);
692
+ }
693
+ function q() {
694
+ var u, v, E, m;
695
+ if (!t.current.search || l.current.shouldFilter === !1) {
696
+ t.current.filtered.count = o.current.size;
697
+ return;
698
+ }
699
+ t.current.filtered.groups = /* @__PURE__ */ new Set();
700
+ let w = 0;
701
+ for (let S of o.current) {
702
+ let L = (v = (u = a.current.get(S)) == null ? void 0 : u.value) != null ? v : "", T = (m = (E = a.current.get(S)) == null ? void 0 : E.keywords) != null ? m : [], le = I(L, T);
703
+ t.current.filtered.items.set(S, le), le > 0 && w++;
704
+ }
705
+ for (let [S, L] of n.current) for (let T of L) if (t.current.filtered.items.get(T) > 0) {
706
+ t.current.filtered.groups.add(S);
707
+ break;
708
+ }
709
+ t.current.filtered.count = w;
710
+ }
711
+ function Pe() {
712
+ var u, v, E;
713
+ let m = Q();
714
+ m && (((u = m.parentElement) == null ? void 0 : u.firstChild) === m && ((E = (v = m.closest(ae)) == null ? void 0 : v.querySelector(Pr)) == null || E.scrollIntoView({ block: "nearest" })), m.scrollIntoView({ block: "nearest" }));
715
+ }
716
+ function Q() {
717
+ var u;
718
+ return (u = N.current) == null ? void 0 : u.querySelector(`${pt}[aria-selected="true"]`);
719
+ }
720
+ function oe() {
721
+ var u;
722
+ return Array.from(((u = N.current) == null ? void 0 : u.querySelectorAll(qe)) || []);
723
+ }
724
+ function me(u) {
725
+ let v = oe()[u];
726
+ v && R.setState("value", v.getAttribute(ee));
727
+ }
728
+ function pe(u) {
729
+ var v;
730
+ let E = Q(), m = oe(), w = m.findIndex((L) => L === E), S = m[w + u];
731
+ (v = l.current) != null && v.loop && (S = w + u < 0 ? m[m.length - 1] : w + u === m.length ? m[0] : m[w + u]), S && R.setState("value", S.getAttribute(ee));
732
+ }
733
+ function Oe(u) {
734
+ let v = Q(), E = v == null ? void 0 : v.closest(ae), m;
735
+ for (; E && !m; ) E = u > 0 ? $r(E, ae) : Br(E, ae), m = E == null ? void 0 : E.querySelector(qe);
736
+ m ? R.setState("value", m.getAttribute(ee)) : pe(u);
737
+ }
738
+ let Ae = () => me(oe().length - 1), ke = (u) => {
739
+ u.preventDefault(), u.metaKey ? Ae() : u.altKey ? Oe(1) : pe(1);
740
+ }, Fe = (u) => {
741
+ u.preventDefault(), u.metaKey ? me(0) : u.altKey ? Oe(-1) : pe(-1);
742
+ };
743
+ return i.createElement(A.div, C(p({ ref: r, tabIndex: -1 }, M), { "cmdk-root": "", onKeyDown: (u) => {
744
+ var v;
745
+ (v = M.onKeyDown) == null || v.call(M, u);
746
+ let E = u.nativeEvent.isComposing || u.keyCode === 229;
747
+ if (!(u.defaultPrevented || E)) switch (u.key) {
748
+ case "n":
749
+ case "j": {
750
+ b && u.ctrlKey && ke(u);
751
+ break;
752
+ }
753
+ case "ArrowDown": {
754
+ ke(u);
755
+ break;
756
+ }
757
+ case "p":
758
+ case "k": {
759
+ b && u.ctrlKey && Fe(u);
760
+ break;
761
+ }
762
+ case "ArrowUp": {
763
+ Fe(u);
764
+ break;
765
+ }
766
+ case "Home": {
767
+ u.preventDefault(), me(0);
768
+ break;
769
+ }
770
+ case "End": {
771
+ u.preventDefault(), Ae();
772
+ break;
773
+ }
774
+ case "Enter": {
775
+ u.preventDefault();
776
+ let m = Q();
777
+ if (m) {
778
+ let w = new Event(we);
779
+ m.dispatchEvent(w);
780
+ }
781
+ }
782
+ }
783
+ } }), i.createElement("label", { "cmdk-label": "", htmlFor: U.inputId, id: U.labelId, style: Vr }, f), fe(e, (u) => i.createElement(gt.Provider, { value: R }, i.createElement(vt.Provider, { value: U }, u))));
784
+ }), Ar = i.forwardRef((e, r) => {
785
+ var t, o;
786
+ let n = K(), a = i.useRef(null), s = i.useContext(ht), l = ie(), f = bt(e), d = (o = (t = f.current) == null ? void 0 : t.forceMount) != null ? o : s == null ? void 0 : s.forceMount;
787
+ Y(() => {
788
+ if (!d) return l.item(n, s == null ? void 0 : s.id);
789
+ }, [d]);
790
+ let c = yt(n, a, [e.value, e.children, a], e.keywords), h = Ne(), D = j((R) => R.value && R.value === c.current), x = j((R) => d || l.filter() === !1 ? !0 : R.search ? R.filtered.items.get(n) > 0 : !0);
791
+ i.useEffect(() => {
792
+ let R = a.current;
793
+ if (!(!R || e.disabled)) return R.addEventListener(we, P), () => R.removeEventListener(we, P);
794
+ }, [x, e.onSelect, e.disabled]);
795
+ function P() {
796
+ var R, U;
797
+ B(), (U = (R = f.current).onSelect) == null || U.call(R, c.current);
798
+ }
799
+ function B() {
800
+ h.setState("value", c.current, !0);
801
+ }
802
+ if (!x) return null;
803
+ let F = e, { disabled: b, value: M, onSelect: O, forceMount: $, keywords: k } = F, N = y(F, ["disabled", "value", "onSelect", "forceMount", "keywords"]);
804
+ return i.createElement(A.div, C(p({ ref: re(a, r) }, N), { id: n, "cmdk-item": "", role: "option", "aria-disabled": !!b, "aria-selected": !!D, "data-disabled": !!b, "data-selected": !!D, onPointerMove: b || l.getDisablePointerSelection() ? void 0 : B, onClick: b ? void 0 : P }), e.children);
805
+ }), kr = i.forwardRef((e, r) => {
806
+ let x = e, { heading: t, children: o, forceMount: n } = x, a = y(x, ["heading", "children", "forceMount"]), s = K(), l = i.useRef(null), f = i.useRef(null), d = K(), c = ie(), h = j((P) => n || c.filter() === !1 ? !0 : P.search ? P.filtered.groups.has(s) : !0);
807
+ Y(() => c.group(s), []), yt(s, l, [e.value, e.heading, f]);
808
+ let D = i.useMemo(() => ({ id: s, forceMount: n }), [n]);
809
+ return i.createElement(A.div, C(p({ ref: re(l, r) }, a), { "cmdk-group": "", role: "presentation", hidden: h ? void 0 : !0 }), t && i.createElement("div", { ref: f, "cmdk-group-heading": "", "aria-hidden": !0, id: d }, t), fe(e, (P) => i.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? d : void 0 }, i.createElement(ht.Provider, { value: D }, P))));
810
+ }), Fr = i.forwardRef((e, r) => {
811
+ let s = e, { alwaysRender: t } = s, o = y(s, ["alwaysRender"]), n = i.useRef(null), a = j((l) => !l.search);
812
+ return !t && !a ? null : i.createElement(A.div, C(p({ ref: re(n, r) }, o), { "cmdk-separator": "", role: "separator" }));
813
+ }), Tr = i.forwardRef((e, r) => {
814
+ let d = e, { onValueChange: t } = d, o = y(d, ["onValueChange"]), n = e.value != null, a = Ne(), s = j((c) => c.search), l = j((c) => c.selectedItemId), f = ie();
815
+ return i.useEffect(() => {
816
+ e.value != null && a.setState("search", e.value);
817
+ }, [e.value]), i.createElement(A.input, C(p({ ref: r }, o), { "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": f.listId, "aria-labelledby": f.labelId, "aria-activedescendant": l, id: f.inputId, type: "text", value: n ? e.value : s, onChange: (c) => {
818
+ n || a.setState("search", c.target.value), t == null || t(c.target.value);
819
+ } }));
820
+ }), _r = i.forwardRef((e, r) => {
821
+ let d = e, { children: t, label: o = "Suggestions" } = d, n = y(d, ["children", "label"]), a = i.useRef(null), s = i.useRef(null), l = j((c) => c.selectedItemId), f = ie();
822
+ return i.useEffect(() => {
823
+ if (s.current && a.current) {
824
+ let c = s.current, h = a.current, D, x = new ResizeObserver(() => {
825
+ D = requestAnimationFrame(() => {
826
+ let P = c.offsetHeight;
827
+ h.style.setProperty("--cmdk-list-height", P.toFixed(1) + "px");
828
+ });
829
+ });
830
+ return x.observe(c), () => {
831
+ cancelAnimationFrame(D), x.unobserve(c);
832
+ };
833
+ }
834
+ }, []), i.createElement(A.div, C(p({ ref: re(a, r) }, n), { "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": l, "aria-label": o, id: f.listId }), fe(e, (c) => i.createElement("div", { ref: re(s, f.listInnerRef), "cmdk-list-sizer": "" }, c)));
835
+ }), Lr = i.forwardRef((e, r) => {
836
+ let f = e, { open: t, onOpenChange: o, overlayClassName: n, contentClassName: a, container: s } = f, l = y(f, ["open", "onOpenChange", "overlayClassName", "contentClassName", "container"]);
837
+ return i.createElement(xr, { open: t, onOpenChange: o }, i.createElement(Sr, { container: s }, i.createElement(Ir, { "cmdk-overlay": "", className: n }), i.createElement(Nr, { "aria-label": e.label, "cmdk-dialog": "", className: a }, i.createElement(Et, p({ ref: r }, l)))));
838
+ }), Mr = i.forwardRef((e, r) => j((t) => t.filtered.count === 0) ? i.createElement(A.div, C(p({ ref: r }, e), { "cmdk-empty": "", role: "presentation" })) : null), Wr = i.forwardRef((e, r) => {
839
+ let s = e, { progress: t, children: o, label: n = "Loading..." } = s, a = y(s, ["progress", "children", "label"]);
840
+ return i.createElement(A.div, C(p({ ref: r }, a), { "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": n }), fe(e, (l) => i.createElement("div", { "aria-hidden": !0 }, l)));
841
+ }), _ = Object.assign(Et, { List: _r, Item: Ar, Input: Tr, Group: kr, Separator: Fr, Dialog: Lr, Empty: Mr, Loading: Wr });
842
+ function $r(e, r) {
843
+ let t = e.nextElementSibling;
844
+ for (; t; ) {
845
+ if (t.matches(r)) return t;
846
+ t = t.nextElementSibling;
847
+ }
848
+ }
849
+ function Br(e, r) {
850
+ let t = e.previousElementSibling;
851
+ for (; t; ) {
852
+ if (t.matches(r)) return t;
853
+ t = t.previousElementSibling;
854
+ }
855
+ }
856
+ function bt(e) {
857
+ let r = i.useRef(e);
858
+ return Y(() => {
859
+ r.current = e;
860
+ }), r;
861
+ }
862
+ var Y = typeof window == "undefined" ? i.useEffect : i.useLayoutEffect;
863
+ function te(e) {
864
+ let r = i.useRef();
865
+ return r.current === void 0 && (r.current = e()), r;
866
+ }
867
+ function j(e) {
868
+ let r = Ne(), t = () => e(r.snapshot());
869
+ return i.useSyncExternalStore(r.subscribe, t, t);
870
+ }
871
+ function yt(e, r, t, o = []) {
872
+ let n = i.useRef(), a = ie();
873
+ return Y(() => {
874
+ var s;
875
+ let l = (() => {
876
+ var d;
877
+ for (let c of t) {
878
+ if (typeof c == "string") return c.trim();
879
+ if (typeof c == "object" && "current" in c) return c.current ? (d = c.current.textContent) == null ? void 0 : d.trim() : n.current;
880
+ }
881
+ })(), f = o.map((d) => d.trim());
882
+ a.value(e, l, f), (s = r.current) == null || s.setAttribute(ee, l), n.current = l;
883
+ }), n;
884
+ }
885
+ var Ur = () => {
886
+ let [e, r] = i.useState(), t = te(() => /* @__PURE__ */ new Map());
887
+ return Y(() => {
888
+ t.current.forEach((o) => o()), t.current = /* @__PURE__ */ new Map();
889
+ }, [e]), (o, n) => {
890
+ t.current.set(o, n), r({});
891
+ };
892
+ };
893
+ function Kr(e) {
894
+ let r = e.type;
895
+ return typeof r == "function" ? r(e.props) : "render" in r ? r.render(e.props) : e;
896
+ }
897
+ function fe({ asChild: e, children: r }, t) {
898
+ return e && i.isValidElement(r) ? i.cloneElement(Kr(r), { ref: r.ref }, t(r.props.children)) : t(r);
899
+ }
900
+ var Vr = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
901
+ const Hr = X.forwardRef((o, t) => {
902
+ var n = o, { className: e } = n, r = y(n, ["className"]);
903
+ return /* @__PURE__ */ g(
904
+ _,
905
+ p({
906
+ ref: t,
907
+ className: Z(
908
+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
909
+ e
910
+ )
911
+ }, r)
912
+ );
913
+ });
914
+ Hr.displayName = _.displayName;
915
+ const Gr = X.forwardRef((o, t) => {
916
+ var n = o, { className: e } = n, r = y(n, ["className"]);
917
+ return /* @__PURE__ */ ye("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
918
+ /* @__PURE__ */ g(Tt, { icon: "SearchIcon" }),
919
+ /* @__PURE__ */ g(
920
+ _.Input,
921
+ p({
922
+ ref: t,
923
+ className: Z(
924
+ "placeholder:text-muted-foreground flex h-11 w-full rounded-md border-0 py-3 outline-none",
925
+ e
926
+ )
927
+ }, r)
928
+ )
929
+ ] });
930
+ });
931
+ Gr.displayName = _.Input.displayName;
932
+ const jr = X.forwardRef((o, t) => {
933
+ var n = o, { className: e } = n, r = y(n, ["className"]);
934
+ return /* @__PURE__ */ g(
935
+ _.List,
936
+ p({
937
+ ref: t,
938
+ className: Z("max-h-[300px] overflow-x-hidden overflow-y-auto", e)
939
+ }, r)
940
+ );
941
+ });
942
+ jr.displayName = _.List.displayName;
943
+ const qr = X.forwardRef((e, r) => /* @__PURE__ */ g(
944
+ _.Empty,
945
+ p({
946
+ ref: r,
947
+ className: "py-6 text-center text-[14px]"
948
+ }, e)
949
+ ));
950
+ qr.displayName = _.Empty.displayName;
951
+ const zr = X.forwardRef((o, t) => {
952
+ var n = o, { className: e } = n, r = y(n, ["className"]);
953
+ return /* @__PURE__ */ g(
954
+ _.Group,
955
+ p({
956
+ ref: t,
957
+ className: Z(
958
+ "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
959
+ e
960
+ )
961
+ }, r)
962
+ );
963
+ });
964
+ zr.displayName = _.Group.displayName;
965
+ const Yr = X.forwardRef((o, t) => {
966
+ var n = o, { className: e } = n, r = y(n, ["className"]);
967
+ return /* @__PURE__ */ g(
968
+ _.Separator,
969
+ p({
970
+ ref: t,
971
+ className: Z("bg-border -mx-1 h-px", e)
972
+ }, r)
973
+ );
974
+ });
975
+ Yr.displayName = _.Separator.displayName;
976
+ const Xr = X.forwardRef((o, t) => {
977
+ var n = o, { className: e } = n, r = y(n, ["className"]);
978
+ return /* @__PURE__ */ g(
979
+ _.Item,
980
+ p({
981
+ ref: t,
982
+ className: Z(
983
+ "font-graphik relative flex w-full cursor-pointer items-center rounded-sm px-4 py-2.5 text-[14px] leading-5 outline-none select-none hover:bg-[#F9FAFB] focus:bg-[#F9FAFB]",
984
+ e
985
+ )
986
+ }, r)
987
+ );
988
+ });
989
+ Xr.displayName = _.Item.displayName;
990
+ function Zr(t) {
991
+ var o = t, {
992
+ className: e
993
+ } = o, r = y(o, [
994
+ "className"
995
+ ]);
996
+ return /* @__PURE__ */ g(
997
+ "span",
998
+ p({
999
+ className: Z(
1000
+ "text-muted-foreground ml-auto text-xs tracking-widest",
1001
+ e
1002
+ )
1003
+ }, r)
1004
+ );
1005
+ }
1006
+ Zr.displayName = "CommandShortcut";
1007
+ export {
1008
+ Hr as Command,
1009
+ qr as CommandEmpty,
1010
+ zr as CommandGroup,
1011
+ Gr as CommandInput,
1012
+ Xr as CommandItem,
1013
+ jr as CommandList,
1014
+ Yr as CommandSeparator,
1015
+ Zr as CommandShortcut
1016
+ };