@fluid-app/fluid-cli-theme-dev 0.1.58 → 0.1.60

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 (252) hide show
  1. package/README.md +109 -0
  2. package/dist/dist-cli-preview/.vite/manifest.json +1831 -0
  3. package/dist/dist-cli-preview/account-screens.js +1 -0
  4. package/dist/dist-cli-preview/capabilities.json +1 -0
  5. package/dist/dist-cli-preview/chunks/Breadcrumb-CZ-skiUy.js +91 -0
  6. package/dist/dist-cli-preview/chunks/Combobox-BGiCYa56.js +1455 -0
  7. package/dist/dist-cli-preview/chunks/ContactsScreen-vsNgy_gn.js +6930 -0
  8. package/dist/dist-cli-preview/chunks/MemberManagementProviders-DMwkh3JW.js +1509 -0
  9. package/dist/dist-cli-preview/chunks/MessagingScreen-DzJOwPGH.js +38475 -0
  10. package/dist/dist-cli-preview/chunks/MobileActionSheet-DqVPgFKI.js +2895 -0
  11. package/dist/dist-cli-preview/chunks/MySiteScreen-BSmWlCKA.js +4950 -0
  12. package/dist/dist-cli-preview/chunks/OrdersScreen-CVEl9FnN.js +1349 -0
  13. package/dist/dist-cli-preview/chunks/OrdersScreen-d4fJE_dm.js +9 -0
  14. package/dist/dist-cli-preview/chunks/ProfileScreen-BC5gyJDY.js +2581 -0
  15. package/dist/dist-cli-preview/chunks/SubscriptionsScreen-CFM4Pufg.js +38 -0
  16. package/dist/dist-cli-preview/chunks/account-screen-runtime-DxhJm6Qd.js +12407 -0
  17. package/dist/dist-cli-preview/chunks/ar-4OhalXtk.js +628 -0
  18. package/dist/dist-cli-preview/chunks/ar-8iaFSgop.js +189 -0
  19. package/dist/dist-cli-preview/chunks/ar-B7NQmkZ1.js +341 -0
  20. package/dist/dist-cli-preview/chunks/ar-DEUMqcX3.js +563 -0
  21. package/dist/dist-cli-preview/chunks/ar-DT9j-dOi.js +720 -0
  22. package/dist/dist-cli-preview/chunks/ar-D_B30x0o.js +176 -0
  23. package/dist/dist-cli-preview/chunks/arrow-left-UFKI-PQf.js +14 -0
  24. package/dist/dist-cli-preview/chunks/bg-CIgMfa9k.js +176 -0
  25. package/dist/dist-cli-preview/chunks/bg-CS2zt-UV.js +720 -0
  26. package/dist/dist-cli-preview/chunks/bg-CxfL8rZN.js +341 -0
  27. package/dist/dist-cli-preview/chunks/bg-DOdbUYGw.js +563 -0
  28. package/dist/dist-cli-preview/chunks/bg-D_C_HmWn.js +189 -0
  29. package/dist/dist-cli-preview/chunks/bg-DeBjzn9B.js +628 -0
  30. package/dist/dist-cli-preview/chunks/bn-BAGJspTJ.js +563 -0
  31. package/dist/dist-cli-preview/chunks/bn-BgnBXWHo.js +176 -0
  32. package/dist/dist-cli-preview/chunks/bn-CRBwi_3N.js +628 -0
  33. package/dist/dist-cli-preview/chunks/bn-CdhHCK--.js +341 -0
  34. package/dist/dist-cli-preview/chunks/bn-DiqHsF7K.js +720 -0
  35. package/dist/dist-cli-preview/chunks/bn-UEAt87N9.js +189 -0
  36. package/dist/dist-cli-preview/chunks/cli-preview-DunPfnjU.js +151 -0
  37. package/dist/dist-cli-preview/chunks/client.gen-CSTBgfxj.js +672 -0
  38. package/dist/dist-cli-preview/chunks/contacts-CpYlEgAq.js +4 -0
  39. package/dist/dist-cli-preview/chunks/countries-api-adapter-B3usO25w.js +108 -0
  40. package/dist/dist-cli-preview/chunks/create-card-entry-container-DHgsbSyr.js +23942 -0
  41. package/dist/dist-cli-preview/chunks/cs-B8rJsMOS.js +189 -0
  42. package/dist/dist-cli-preview/chunks/cs-ChKaPMtV.js +563 -0
  43. package/dist/dist-cli-preview/chunks/cs-CkdXQxaf.js +720 -0
  44. package/dist/dist-cli-preview/chunks/cs-DTe-xGeI.js +341 -0
  45. package/dist/dist-cli-preview/chunks/cs-DmLSumGB.js +176 -0
  46. package/dist/dist-cli-preview/chunks/cs-jXPm6Nhj.js +628 -0
  47. package/dist/dist-cli-preview/chunks/da-7uI_CROE.js +628 -0
  48. package/dist/dist-cli-preview/chunks/da-B8Cl_vkl.js +341 -0
  49. package/dist/dist-cli-preview/chunks/da-Bee-xQNq.js +563 -0
  50. package/dist/dist-cli-preview/chunks/da-DYlEkykt.js +720 -0
  51. package/dist/dist-cli-preview/chunks/da-EfkyseOR.js +176 -0
  52. package/dist/dist-cli-preview/chunks/da-J--1RxZp.js +189 -0
  53. package/dist/dist-cli-preview/chunks/de-BTNiErdB.js +189 -0
  54. package/dist/dist-cli-preview/chunks/de-CIhZnrdS.js +720 -0
  55. package/dist/dist-cli-preview/chunks/de-CKtChtTF.js +628 -0
  56. package/dist/dist-cli-preview/chunks/de-D8cYy8G-.js +341 -0
  57. package/dist/dist-cli-preview/chunks/de-EARi-xk5.js +176 -0
  58. package/dist/dist-cli-preview/chunks/de-zeOnL7Nl.js +563 -0
  59. package/dist/dist-cli-preview/chunks/el-0NNTwBnJ.js +563 -0
  60. package/dist/dist-cli-preview/chunks/el-BPz4rb5a.js +176 -0
  61. package/dist/dist-cli-preview/chunks/el-Bg6zRbVK.js +720 -0
  62. package/dist/dist-cli-preview/chunks/el-CUjODD23.js +628 -0
  63. package/dist/dist-cli-preview/chunks/el-Chjin2JW.js +341 -0
  64. package/dist/dist-cli-preview/chunks/el-DYay96x-.js +189 -0
  65. package/dist/dist-cli-preview/chunks/es-CFZtv6aF.js +176 -0
  66. package/dist/dist-cli-preview/chunks/es-CGgD1AV1.js +720 -0
  67. package/dist/dist-cli-preview/chunks/es-CXXB8ubn.js +628 -0
  68. package/dist/dist-cli-preview/chunks/es-Cf56ydFZ.js +189 -0
  69. package/dist/dist-cli-preview/chunks/es-DirUtV7k.js +563 -0
  70. package/dist/dist-cli-preview/chunks/es-mp8RwFN4.js +341 -0
  71. package/dist/dist-cli-preview/chunks/fi-91gcpxoy.js +341 -0
  72. package/dist/dist-cli-preview/chunks/fi-BfDoQ1rt.js +628 -0
  73. package/dist/dist-cli-preview/chunks/fi-Bn9_l4IH.js +176 -0
  74. package/dist/dist-cli-preview/chunks/fi-Bo5QdhP_.js +563 -0
  75. package/dist/dist-cli-preview/chunks/fi-CC2YqekN.js +189 -0
  76. package/dist/dist-cli-preview/chunks/fi-DUhIWph7.js +720 -0
  77. package/dist/dist-cli-preview/chunks/fr-BSouGEGN.js +176 -0
  78. package/dist/dist-cli-preview/chunks/fr-BnYsse99.js +563 -0
  79. package/dist/dist-cli-preview/chunks/fr-C32S8PvA.js +720 -0
  80. package/dist/dist-cli-preview/chunks/fr-DIQcYUq-.js +628 -0
  81. package/dist/dist-cli-preview/chunks/fr-Do6AIa1z.js +189 -0
  82. package/dist/dist-cli-preview/chunks/fr-ekvUCKTH.js +341 -0
  83. package/dist/dist-cli-preview/chunks/he-B7QiuquT.js +341 -0
  84. package/dist/dist-cli-preview/chunks/he-BYEZTUry.js +176 -0
  85. package/dist/dist-cli-preview/chunks/he-CO8gUz9X.js +628 -0
  86. package/dist/dist-cli-preview/chunks/he-DaWGyHjM.js +189 -0
  87. package/dist/dist-cli-preview/chunks/he-pFefco4W.js +563 -0
  88. package/dist/dist-cli-preview/chunks/he-xSGbvsti.js +720 -0
  89. package/dist/dist-cli-preview/chunks/hey-api-client-DSvKWGPq.js +153 -0
  90. package/dist/dist-cli-preview/chunks/hi-BLnEaAml.js +176 -0
  91. package/dist/dist-cli-preview/chunks/hi-BMFNssNU.js +720 -0
  92. package/dist/dist-cli-preview/chunks/hi-BXBdXuFm.js +189 -0
  93. package/dist/dist-cli-preview/chunks/hi-DNNhi7ud.js +341 -0
  94. package/dist/dist-cli-preview/chunks/hi-DVSXxEzh.js +628 -0
  95. package/dist/dist-cli-preview/chunks/hi-Uqd1FKtv.js +563 -0
  96. package/dist/dist-cli-preview/chunks/hr-B1T2UY_p.js +176 -0
  97. package/dist/dist-cli-preview/chunks/hr-B432GvmU.js +720 -0
  98. package/dist/dist-cli-preview/chunks/hr-BJR58Xci.js +563 -0
  99. package/dist/dist-cli-preview/chunks/hr-CAwxMKX_.js +341 -0
  100. package/dist/dist-cli-preview/chunks/hr-DBrPFNLx.js +189 -0
  101. package/dist/dist-cli-preview/chunks/hr-yH6ab4ea.js +628 -0
  102. package/dist/dist-cli-preview/chunks/hu-BcC628Ln.js +189 -0
  103. package/dist/dist-cli-preview/chunks/hu-Bv0_YQEn.js +628 -0
  104. package/dist/dist-cli-preview/chunks/hu-D_oQwH4Q.js +341 -0
  105. package/dist/dist-cli-preview/chunks/hu-Q0aE9GvJ.js +720 -0
  106. package/dist/dist-cli-preview/chunks/hu-TNzzMEzp.js +563 -0
  107. package/dist/dist-cli-preview/chunks/hu-cQw9hgLe.js +176 -0
  108. package/dist/dist-cli-preview/chunks/id-Becf5X73.js +720 -0
  109. package/dist/dist-cli-preview/chunks/id-CLvNjXjm.js +189 -0
  110. package/dist/dist-cli-preview/chunks/id-CzSVbo5E.js +628 -0
  111. package/dist/dist-cli-preview/chunks/id-Vudf_d_f.js +563 -0
  112. package/dist/dist-cli-preview/chunks/id-Zd_5csjz.js +176 -0
  113. package/dist/dist-cli-preview/chunks/id-oeAszBoo.js +341 -0
  114. package/dist/dist-cli-preview/chunks/isAfter-BUGgByEf.js +1414 -0
  115. package/dist/dist-cli-preview/chunks/it-BlwQOBaX.js +720 -0
  116. package/dist/dist-cli-preview/chunks/it-C0jghILa.js +563 -0
  117. package/dist/dist-cli-preview/chunks/it-CmxC_FIJ.js +176 -0
  118. package/dist/dist-cli-preview/chunks/it-D5BXSiSl.js +189 -0
  119. package/dist/dist-cli-preview/chunks/it-Dme6GXSG.js +341 -0
  120. package/dist/dist-cli-preview/chunks/it-xT70eFoJ.js +628 -0
  121. package/dist/dist-cli-preview/chunks/ja-BJ7phJBG.js +720 -0
  122. package/dist/dist-cli-preview/chunks/ja-Bc8dA1LN.js +189 -0
  123. package/dist/dist-cli-preview/chunks/ja-BcOunH2q.js +176 -0
  124. package/dist/dist-cli-preview/chunks/ja-CRnvQNCa.js +341 -0
  125. package/dist/dist-cli-preview/chunks/ja-CfYfDP_F.js +563 -0
  126. package/dist/dist-cli-preview/chunks/ja-Dh3z4uJk.js +628 -0
  127. package/dist/dist-cli-preview/chunks/ko-8mk8A3_I.js +341 -0
  128. package/dist/dist-cli-preview/chunks/ko-Bnp-5GAn.js +720 -0
  129. package/dist/dist-cli-preview/chunks/ko-CG_0ufw6.js +176 -0
  130. package/dist/dist-cli-preview/chunks/ko-CJ-8gCc9.js +189 -0
  131. package/dist/dist-cli-preview/chunks/ko-CnpxBQ2W.js +628 -0
  132. package/dist/dist-cli-preview/chunks/ko-CtkKNEZB.js +563 -0
  133. package/dist/dist-cli-preview/chunks/log-out-CBUq5Hd-.js +15 -0
  134. package/dist/dist-cli-preview/chunks/map-pin-DHfjSyoR.js +20 -0
  135. package/dist/dist-cli-preview/chunks/messaging-DkyH4CPP.js +4 -0
  136. package/dist/dist-cli-preview/chunks/mount-account-screen-pc1VISwF.js +11041 -0
  137. package/dist/dist-cli-preview/chunks/ms-BF5gF9D5.js +189 -0
  138. package/dist/dist-cli-preview/chunks/ms-Bs0GvdOw.js +341 -0
  139. package/dist/dist-cli-preview/chunks/ms-CyhqvfOb.js +563 -0
  140. package/dist/dist-cli-preview/chunks/ms-D6Cf3VUm.js +628 -0
  141. package/dist/dist-cli-preview/chunks/ms-DR0U3aeO.js +720 -0
  142. package/dist/dist-cli-preview/chunks/ms-DTN7PIDq.js +176 -0
  143. package/dist/dist-cli-preview/chunks/mysite-wvfITV7T.js +4 -0
  144. package/dist/dist-cli-preview/chunks/nl-C1v8tc97.js +720 -0
  145. package/dist/dist-cli-preview/chunks/nl-C5fWLZkK.js +189 -0
  146. package/dist/dist-cli-preview/chunks/nl-Cgt3zlZ8.js +628 -0
  147. package/dist/dist-cli-preview/chunks/nl-DWtWnOvH.js +563 -0
  148. package/dist/dist-cli-preview/chunks/nl-tsI6lLxl.js +341 -0
  149. package/dist/dist-cli-preview/chunks/nl-x2lc8Ct5.js +176 -0
  150. package/dist/dist-cli-preview/chunks/no-BeVycdYu.js +563 -0
  151. package/dist/dist-cli-preview/chunks/no-DMot6qX0.js +341 -0
  152. package/dist/dist-cli-preview/chunks/no-Dk9D1gjY.js +189 -0
  153. package/dist/dist-cli-preview/chunks/no-R8FScfrK.js +176 -0
  154. package/dist/dist-cli-preview/chunks/no-dhNRqvE4.js +720 -0
  155. package/dist/dist-cli-preview/chunks/no-xVFexdWN.js +628 -0
  156. package/dist/dist-cli-preview/chunks/orders-c13r499A.js +4 -0
  157. package/dist/dist-cli-preview/chunks/pl-BH1bEHfg.js +720 -0
  158. package/dist/dist-cli-preview/chunks/pl-Bl9G1yOR.js +176 -0
  159. package/dist/dist-cli-preview/chunks/pl-Cu0JzUUV.js +563 -0
  160. package/dist/dist-cli-preview/chunks/pl-D7AZQwtK.js +189 -0
  161. package/dist/dist-cli-preview/chunks/pl-Dl0M9JDp.js +628 -0
  162. package/dist/dist-cli-preview/chunks/pl-DmTxONNg.js +341 -0
  163. package/dist/dist-cli-preview/chunks/plus-C-lo0pFM.js +14 -0
  164. package/dist/dist-cli-preview/chunks/profile-CoWo9Sxe.js +4 -0
  165. package/dist/dist-cli-preview/chunks/pt-62Kd-NN1.js +189 -0
  166. package/dist/dist-cli-preview/chunks/pt-BAq7bseT.js +628 -0
  167. package/dist/dist-cli-preview/chunks/pt-DgmwnAV-.js +341 -0
  168. package/dist/dist-cli-preview/chunks/pt-K0EDcWuR.js +720 -0
  169. package/dist/dist-cli-preview/chunks/pt-nD60RpwN.js +176 -0
  170. package/dist/dist-cli-preview/chunks/pt-voHVxH2b.js +563 -0
  171. package/dist/dist-cli-preview/chunks/ro-B4M17oRc.js +341 -0
  172. package/dist/dist-cli-preview/chunks/ro-CFfjUJ1T.js +563 -0
  173. package/dist/dist-cli-preview/chunks/ro-CtL0oK2c.js +628 -0
  174. package/dist/dist-cli-preview/chunks/ro-D6ybG7vp.js +176 -0
  175. package/dist/dist-cli-preview/chunks/ro-DTauvv2V.js +189 -0
  176. package/dist/dist-cli-preview/chunks/ro-DUxhal7c.js +720 -0
  177. package/dist/dist-cli-preview/chunks/ru-45VizwWQ.js +628 -0
  178. package/dist/dist-cli-preview/chunks/ru-BS2gZnbs.js +341 -0
  179. package/dist/dist-cli-preview/chunks/ru-C0oMeuhb.js +176 -0
  180. package/dist/dist-cli-preview/chunks/ru-COxlz18L.js +563 -0
  181. package/dist/dist-cli-preview/chunks/ru-CjEXCUxb.js +720 -0
  182. package/dist/dist-cli-preview/chunks/ru-g5Cz5HSk.js +189 -0
  183. package/dist/dist-cli-preview/chunks/schemas-9_ZwC5nC.js +3977 -0
  184. package/dist/dist-cli-preview/chunks/screen-route-slug-utils-B254xI_J.js +14954 -0
  185. package/dist/dist-cli-preview/chunks/sheet-haptics-context-D2WUiXJm.js +116 -0
  186. package/dist/dist-cli-preview/chunks/sidebar-CMSWZCPS.js +848 -0
  187. package/dist/dist-cli-preview/chunks/sk-BGDxj2sS.js +563 -0
  188. package/dist/dist-cli-preview/chunks/sk-BdDjjHfn.js +341 -0
  189. package/dist/dist-cli-preview/chunks/sk-Bpdt_mn0.js +176 -0
  190. package/dist/dist-cli-preview/chunks/sk-DX2wOf1g.js +628 -0
  191. package/dist/dist-cli-preview/chunks/sk-QbdQWjZy.js +714 -0
  192. package/dist/dist-cli-preview/chunks/sk-YuAeAaeZ.js +189 -0
  193. package/dist/dist-cli-preview/chunks/store-api-context-BIdILNWL.js +16 -0
  194. package/dist/dist-cli-preview/chunks/subscriptions-BHALQrcU.js +4 -0
  195. package/dist/dist-cli-preview/chunks/sv-BlNLvbmj.js +628 -0
  196. package/dist/dist-cli-preview/chunks/sv-CEmTDhJy.js +176 -0
  197. package/dist/dist-cli-preview/chunks/sv-CW7FL5HA.js +341 -0
  198. package/dist/dist-cli-preview/chunks/sv-CiCeNX1x.js +720 -0
  199. package/dist/dist-cli-preview/chunks/sv-DefBhX0c.js +563 -0
  200. package/dist/dist-cli-preview/chunks/sv-iaAh80e4.js +189 -0
  201. package/dist/dist-cli-preview/chunks/th-BNEA6ESz.js +720 -0
  202. package/dist/dist-cli-preview/chunks/th-BYBMKmSh.js +341 -0
  203. package/dist/dist-cli-preview/chunks/th-DMPCj1Fg.js +189 -0
  204. package/dist/dist-cli-preview/chunks/th-DV3lk4-6.js +563 -0
  205. package/dist/dist-cli-preview/chunks/th-F8oLBw5n.js +176 -0
  206. package/dist/dist-cli-preview/chunks/th-fPXxGW_m.js +628 -0
  207. package/dist/dist-cli-preview/chunks/tl-BMLmbhme.js +628 -0
  208. package/dist/dist-cli-preview/chunks/tl-BXIS85ly.js +176 -0
  209. package/dist/dist-cli-preview/chunks/tl-CDigaLsK.js +341 -0
  210. package/dist/dist-cli-preview/chunks/tl-DVdSJCnc.js +563 -0
  211. package/dist/dist-cli-preview/chunks/tl-fdtlfqan.js +720 -0
  212. package/dist/dist-cli-preview/chunks/tl-w5CgYWXn.js +189 -0
  213. package/dist/dist-cli-preview/chunks/tr-BA1MDk8A.js +563 -0
  214. package/dist/dist-cli-preview/chunks/tr-CHri_kqV.js +189 -0
  215. package/dist/dist-cli-preview/chunks/tr-DD75kuPl.js +720 -0
  216. package/dist/dist-cli-preview/chunks/tr-Mq5Hfqt2.js +628 -0
  217. package/dist/dist-cli-preview/chunks/tr-PxiurNCr.js +341 -0
  218. package/dist/dist-cli-preview/chunks/tr-YXIIDIEV.js +176 -0
  219. package/dist/dist-cli-preview/chunks/trash-2-Bq4IqH0j.js +137 -0
  220. package/dist/dist-cli-preview/chunks/uk-B4aYnJ8t.js +341 -0
  221. package/dist/dist-cli-preview/chunks/uk-ByJtQJHi.js +189 -0
  222. package/dist/dist-cli-preview/chunks/uk-CCVTTskN.js +720 -0
  223. package/dist/dist-cli-preview/chunks/uk-CS0tJc6H.js +628 -0
  224. package/dist/dist-cli-preview/chunks/uk-CYYjeT-V.js +176 -0
  225. package/dist/dist-cli-preview/chunks/uk-DGb0m_JV.js +563 -0
  226. package/dist/dist-cli-preview/chunks/use-optional-store-Csor1Z3z.js +22 -0
  227. package/dist/dist-cli-preview/chunks/useInfiniteQuery-BpFtQ7DH.js +67 -0
  228. package/dist/dist-cli-preview/chunks/user-BGrQJ1GJ.js +31 -0
  229. package/dist/dist-cli-preview/chunks/users-DBL0isYy.js +27 -0
  230. package/dist/dist-cli-preview/chunks/vi-BoKSdzH3.js +341 -0
  231. package/dist/dist-cli-preview/chunks/vi-CHKjehVL.js +628 -0
  232. package/dist/dist-cli-preview/chunks/vi-DFicISRE.js +189 -0
  233. package/dist/dist-cli-preview/chunks/vi-DT4XS4HU.js +176 -0
  234. package/dist/dist-cli-preview/chunks/vi-RFwPNQ96.js +720 -0
  235. package/dist/dist-cli-preview/chunks/vi-SG6trKny.js +563 -0
  236. package/dist/dist-cli-preview/chunks/zh_CN-BJVGrpVl.js +714 -0
  237. package/dist/dist-cli-preview/chunks/zh_CN-BeGANQIJ.js +176 -0
  238. package/dist/dist-cli-preview/chunks/zh_CN-BwpNGMQN.js +189 -0
  239. package/dist/dist-cli-preview/chunks/zh_CN-CFu3GI2I.js +563 -0
  240. package/dist/dist-cli-preview/chunks/zh_CN-DrCrXsZC.js +341 -0
  241. package/dist/dist-cli-preview/chunks/zh_CN-x6mJyUQH.js +628 -0
  242. package/dist/dist-cli-preview/chunks/zh_TW-CorN6cwY.js +720 -0
  243. package/dist/dist-cli-preview/chunks/zh_TW-D9gGVyEb.js +176 -0
  244. package/dist/dist-cli-preview/chunks/zh_TW-DdD6Hf_A.js +628 -0
  245. package/dist/dist-cli-preview/chunks/zh_TW-JmyC1W5K.js +341 -0
  246. package/dist/dist-cli-preview/chunks/zh_TW-Oq4Chn8F.js +189 -0
  247. package/dist/dist-cli-preview/chunks/zh_TW-kUnD3TL4.js +563 -0
  248. package/dist/index.mjs +1220 -513
  249. package/dist/index.mjs.map +1 -1
  250. package/dist/skills/themes-review/SKILL.md +2 -2
  251. package/dist/skills/themes-review/references/navigation.md +3 -1
  252. package/package.json +60 -10
@@ -0,0 +1,1455 @@
1
+ import { c as jt, l as r, a8 as _t, a3 as ze, j as d, G as kt, ar as ee, aN as Mt, a4 as Q, H as $, a5 as L, K as te, as as At, Z as Ge, a6 as Dt, J as Ot, aO as Lt, aP as Vt, aQ as Bt, aR as Ht, aS as Ft, at as zt, a9 as Ke, aT as re, aU as Kt, aV as Ut, aW as $t, aX as Wt, aY as Se, M as z, av as Gt } from "./account-screen-runtime-DxhJm6Qd.js";
2
+ import { g as qe, R as qt, A as Yt, V as Xt, h as Zt, j as Jt, C as Be, P as Qt, e as en, f as tn } from "./MobileActionSheet-DqVPgFKI.js";
3
+ import { C as Ye } from "./schemas-9_ZwC5nC.js";
4
+ import { S as nn } from "./useInfiniteQuery-BpFtQ7DH.js";
5
+ /**
6
+ * @license lucide-react v0.575.0 - ISC
7
+ *
8
+ * This source code is licensed under the ISC license.
9
+ * See the LICENSE file in the root directory of this source tree.
10
+ */
11
+ const rn = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], on = jt("chevron-up", rn);
12
+ var ln = [" ", "Enter", "ArrowUp", "ArrowDown"], an = [" ", "Enter"], ce = "Select", [ye, Ce, sn] = Mt(ce), [he] = kt(ce, [
13
+ sn,
14
+ qe
15
+ ]), Ie = qe(), [cn, oe] = he(ce), [dn, un] = he(ce), Xe = (e) => {
16
+ const {
17
+ __scopeSelect: n,
18
+ children: t,
19
+ open: s,
20
+ defaultOpen: o,
21
+ onOpenChange: c,
22
+ value: l,
23
+ defaultValue: a,
24
+ onValueChange: p,
25
+ dir: u,
26
+ name: m,
27
+ autoComplete: g,
28
+ disabled: E,
29
+ required: x,
30
+ form: T
31
+ } = e, v = Ie(n), [b, j] = r.useState(null), [w, R] = r.useState(null), [W, A] = r.useState(!1), k = _t(u), [P, H] = ze({
32
+ prop: s,
33
+ defaultProp: o ?? !1,
34
+ onChange: c,
35
+ caller: ce
36
+ }), [q, Y] = ze({
37
+ prop: l,
38
+ defaultProp: a,
39
+ onChange: p,
40
+ caller: ce
41
+ }), K = r.useRef(null), U = b ? T || !!b.closest("form") : !0, [X, V] = r.useState(/* @__PURE__ */ new Set()), B = Array.from(X).map((D) => D.props.value).join(";");
42
+ return /* @__PURE__ */ d.jsx(qt, { ...v, children: /* @__PURE__ */ d.jsxs(
43
+ cn,
44
+ {
45
+ required: x,
46
+ scope: n,
47
+ trigger: b,
48
+ onTriggerChange: j,
49
+ valueNode: w,
50
+ onValueNodeChange: R,
51
+ valueNodeHasChildren: W,
52
+ onValueNodeHasChildrenChange: A,
53
+ contentId: ee(),
54
+ value: q,
55
+ onValueChange: Y,
56
+ open: P,
57
+ onOpenChange: H,
58
+ dir: k,
59
+ triggerPointerDownPosRef: K,
60
+ disabled: E,
61
+ children: [
62
+ /* @__PURE__ */ d.jsx(ye.Provider, { scope: n, children: /* @__PURE__ */ d.jsx(
63
+ dn,
64
+ {
65
+ scope: e.__scopeSelect,
66
+ onNativeOptionAdd: r.useCallback((D) => {
67
+ V((F) => new Set(F).add(D));
68
+ }, []),
69
+ onNativeOptionRemove: r.useCallback((D) => {
70
+ V((F) => {
71
+ const G = new Set(F);
72
+ return G.delete(D), G;
73
+ });
74
+ }, []),
75
+ children: t
76
+ }
77
+ ) }),
78
+ U ? /* @__PURE__ */ d.jsxs(
79
+ xt,
80
+ {
81
+ "aria-hidden": !0,
82
+ required: x,
83
+ tabIndex: -1,
84
+ name: m,
85
+ autoComplete: g,
86
+ value: q,
87
+ onChange: (D) => Y(D.target.value),
88
+ disabled: E,
89
+ form: T,
90
+ children: [
91
+ q === void 0 ? /* @__PURE__ */ d.jsx("option", { value: "" }) : null,
92
+ Array.from(X)
93
+ ]
94
+ },
95
+ B
96
+ ) : null
97
+ ]
98
+ }
99
+ ) });
100
+ };
101
+ Xe.displayName = ce;
102
+ var Ze = "SelectTrigger", Je = r.forwardRef(
103
+ (e, n) => {
104
+ const { __scopeSelect: t, disabled: s = !1, ...o } = e, c = Ie(t), l = oe(Ze, t), a = l.disabled || s, p = Q(n, l.onTriggerChange), u = Ce(t), m = r.useRef("touch"), [g, E, x] = wt((v) => {
105
+ const b = u().filter((R) => !R.disabled), j = b.find((R) => R.value === l.value), w = bt(b, v, j);
106
+ w !== void 0 && l.onValueChange(w.value);
107
+ }), T = (v) => {
108
+ a || (l.onOpenChange(!0), x()), v && (l.triggerPointerDownPosRef.current = {
109
+ x: Math.round(v.pageX),
110
+ y: Math.round(v.pageY)
111
+ });
112
+ };
113
+ return /* @__PURE__ */ d.jsx(Yt, { asChild: !0, ...c, children: /* @__PURE__ */ d.jsx(
114
+ $.button,
115
+ {
116
+ type: "button",
117
+ role: "combobox",
118
+ "aria-controls": l.contentId,
119
+ "aria-expanded": l.open,
120
+ "aria-required": l.required,
121
+ "aria-autocomplete": "none",
122
+ dir: l.dir,
123
+ "data-state": l.open ? "open" : "closed",
124
+ disabled: a,
125
+ "data-disabled": a ? "" : void 0,
126
+ "data-placeholder": St(l.value) ? "" : void 0,
127
+ ...o,
128
+ ref: p,
129
+ onClick: L(o.onClick, (v) => {
130
+ v.currentTarget.focus(), m.current !== "mouse" && T(v);
131
+ }),
132
+ onPointerDown: L(o.onPointerDown, (v) => {
133
+ m.current = v.pointerType;
134
+ const b = v.target;
135
+ b.hasPointerCapture(v.pointerId) && b.releasePointerCapture(v.pointerId), v.button === 0 && v.ctrlKey === !1 && v.pointerType === "mouse" && (T(v), v.preventDefault());
136
+ }),
137
+ onKeyDown: L(o.onKeyDown, (v) => {
138
+ const b = g.current !== "";
139
+ !(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && E(v.key), !(b && v.key === " ") && ln.includes(v.key) && (T(), v.preventDefault());
140
+ })
141
+ }
142
+ ) });
143
+ }
144
+ );
145
+ Je.displayName = Ze;
146
+ var Qe = "SelectValue", et = r.forwardRef(
147
+ (e, n) => {
148
+ const { __scopeSelect: t, className: s, style: o, children: c, placeholder: l = "", ...a } = e, p = oe(Qe, t), { onValueNodeHasChildrenChange: u } = p, m = c !== void 0, g = Q(n, p.onValueNodeChange);
149
+ return te(() => {
150
+ u(m);
151
+ }, [u, m]), /* @__PURE__ */ d.jsx(
152
+ $.span,
153
+ {
154
+ ...a,
155
+ ref: g,
156
+ style: { pointerEvents: "none" },
157
+ children: St(p.value) ? /* @__PURE__ */ d.jsx(d.Fragment, { children: l }) : c
158
+ }
159
+ );
160
+ }
161
+ );
162
+ et.displayName = Qe;
163
+ var pn = "SelectIcon", tt = r.forwardRef(
164
+ (e, n) => {
165
+ const { __scopeSelect: t, children: s, ...o } = e;
166
+ return /* @__PURE__ */ d.jsx($.span, { "aria-hidden": !0, ...o, ref: n, children: s || "▼" });
167
+ }
168
+ );
169
+ tt.displayName = pn;
170
+ var fn = "SelectPortal", nt = (e) => /* @__PURE__ */ d.jsx(At, { asChild: !0, ...e });
171
+ nt.displayName = fn;
172
+ var de = "SelectContent", rt = r.forwardRef(
173
+ (e, n) => {
174
+ const t = oe(de, e.__scopeSelect), [s, o] = r.useState();
175
+ if (te(() => {
176
+ o(new DocumentFragment());
177
+ }, []), !t.open) {
178
+ const c = s;
179
+ return c ? Ge.createPortal(
180
+ /* @__PURE__ */ d.jsx(ot, { scope: e.__scopeSelect, children: /* @__PURE__ */ d.jsx(ye.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ d.jsx("div", { children: e.children }) }) }),
181
+ c
182
+ ) : null;
183
+ }
184
+ return /* @__PURE__ */ d.jsx(lt, { ...e, ref: n });
185
+ }
186
+ );
187
+ rt.displayName = de;
188
+ var J = 10, [ot, le] = he(de), mn = "SelectContentImpl", hn = Ht("SelectContent.RemoveScroll"), lt = r.forwardRef(
189
+ (e, n) => {
190
+ const {
191
+ __scopeSelect: t,
192
+ position: s = "item-aligned",
193
+ onCloseAutoFocus: o,
194
+ onEscapeKeyDown: c,
195
+ onPointerDownOutside: l,
196
+ //
197
+ // PopperContent props
198
+ side: a,
199
+ sideOffset: p,
200
+ align: u,
201
+ alignOffset: m,
202
+ arrowPadding: g,
203
+ collisionBoundary: E,
204
+ collisionPadding: x,
205
+ sticky: T,
206
+ hideWhenDetached: v,
207
+ avoidCollisions: b,
208
+ //
209
+ ...j
210
+ } = e, w = oe(de, t), [R, W] = r.useState(null), [A, k] = r.useState(null), P = Q(n, (f) => W(f)), [H, q] = r.useState(null), [Y, K] = r.useState(
211
+ null
212
+ ), U = Ce(t), [X, V] = r.useState(!1), B = r.useRef(!1);
213
+ r.useEffect(() => {
214
+ if (R) return Lt(R);
215
+ }, [R]), Vt();
216
+ const D = r.useCallback(
217
+ (f) => {
218
+ const [I, ...N] = U().map((O) => O.ref.current), [_] = N.slice(-1), M = document.activeElement;
219
+ for (const O of f)
220
+ if (O === M || (O?.scrollIntoView({ block: "nearest" }), O === I && A && (A.scrollTop = 0), O === _ && A && (A.scrollTop = A.scrollHeight), O?.focus(), document.activeElement !== M)) return;
221
+ },
222
+ [U, A]
223
+ ), F = r.useCallback(
224
+ () => D([H, R]),
225
+ [D, H, R]
226
+ );
227
+ r.useEffect(() => {
228
+ X && F();
229
+ }, [X, F]);
230
+ const { onOpenChange: G, triggerPointerDownPosRef: Z } = w;
231
+ r.useEffect(() => {
232
+ if (R) {
233
+ let f = { x: 0, y: 0 };
234
+ const I = (_) => {
235
+ f = {
236
+ x: Math.abs(Math.round(_.pageX) - (Z.current?.x ?? 0)),
237
+ y: Math.abs(Math.round(_.pageY) - (Z.current?.y ?? 0))
238
+ };
239
+ }, N = (_) => {
240
+ f.x <= 10 && f.y <= 10 ? _.preventDefault() : R.contains(_.target) || G(!1), document.removeEventListener("pointermove", I), Z.current = null;
241
+ };
242
+ return Z.current !== null && (document.addEventListener("pointermove", I), document.addEventListener("pointerup", N, { capture: !0, once: !0 })), () => {
243
+ document.removeEventListener("pointermove", I), document.removeEventListener("pointerup", N, { capture: !0 });
244
+ };
245
+ }
246
+ }, [R, G, Z]), r.useEffect(() => {
247
+ const f = () => G(!1);
248
+ return window.addEventListener("blur", f), window.addEventListener("resize", f), () => {
249
+ window.removeEventListener("blur", f), window.removeEventListener("resize", f);
250
+ };
251
+ }, [G]);
252
+ const [pe, ae] = wt((f) => {
253
+ const I = U().filter((M) => !M.disabled), N = I.find((M) => M.ref.current === document.activeElement), _ = bt(I, f, N);
254
+ _ && setTimeout(() => _.ref.current.focus());
255
+ }), i = r.useCallback(
256
+ (f, I, N) => {
257
+ const _ = !B.current && !N;
258
+ (w.value !== void 0 && w.value === I || _) && (q(f), _ && (B.current = !0));
259
+ },
260
+ [w.value]
261
+ ), S = r.useCallback(() => R?.focus(), [R]), y = r.useCallback(
262
+ (f, I, N) => {
263
+ const _ = !B.current && !N;
264
+ (w.value !== void 0 && w.value === I || _) && K(f);
265
+ },
266
+ [w.value]
267
+ ), h = s === "popper" ? ke : at, C = h === ke ? {
268
+ side: a,
269
+ sideOffset: p,
270
+ align: u,
271
+ alignOffset: m,
272
+ arrowPadding: g,
273
+ collisionBoundary: E,
274
+ collisionPadding: x,
275
+ sticky: T,
276
+ hideWhenDetached: v,
277
+ avoidCollisions: b
278
+ } : {};
279
+ return /* @__PURE__ */ d.jsx(
280
+ ot,
281
+ {
282
+ scope: t,
283
+ content: R,
284
+ viewport: A,
285
+ onViewportChange: k,
286
+ itemRefCallback: i,
287
+ selectedItem: H,
288
+ onItemLeave: S,
289
+ itemTextRefCallback: y,
290
+ focusSelectedItem: F,
291
+ selectedItemText: Y,
292
+ position: s,
293
+ isPositioned: X,
294
+ searchRef: pe,
295
+ children: /* @__PURE__ */ d.jsx(Bt, { as: hn, allowPinchZoom: !0, children: /* @__PURE__ */ d.jsx(
296
+ Ft,
297
+ {
298
+ asChild: !0,
299
+ trapped: w.open,
300
+ onMountAutoFocus: (f) => {
301
+ f.preventDefault();
302
+ },
303
+ onUnmountAutoFocus: L(o, (f) => {
304
+ w.trigger?.focus({ preventScroll: !0 }), f.preventDefault();
305
+ }),
306
+ children: /* @__PURE__ */ d.jsx(
307
+ zt,
308
+ {
309
+ asChild: !0,
310
+ disableOutsidePointerEvents: !0,
311
+ onEscapeKeyDown: c,
312
+ onPointerDownOutside: l,
313
+ onFocusOutside: (f) => f.preventDefault(),
314
+ onDismiss: () => w.onOpenChange(!1),
315
+ children: /* @__PURE__ */ d.jsx(
316
+ h,
317
+ {
318
+ role: "listbox",
319
+ id: w.contentId,
320
+ "data-state": w.open ? "open" : "closed",
321
+ dir: w.dir,
322
+ onContextMenu: (f) => f.preventDefault(),
323
+ ...j,
324
+ ...C,
325
+ onPlaced: () => V(!0),
326
+ ref: P,
327
+ style: {
328
+ // flex layout so we can place the scroll buttons properly
329
+ display: "flex",
330
+ flexDirection: "column",
331
+ // reset the outline by default as the content MAY get focused
332
+ outline: "none",
333
+ ...j.style
334
+ },
335
+ onKeyDown: L(j.onKeyDown, (f) => {
336
+ const I = f.ctrlKey || f.altKey || f.metaKey;
337
+ if (f.key === "Tab" && f.preventDefault(), !I && f.key.length === 1 && ae(f.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(f.key)) {
338
+ let _ = U().filter((M) => !M.disabled).map((M) => M.ref.current);
339
+ if (["ArrowUp", "End"].includes(f.key) && (_ = _.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(f.key)) {
340
+ const M = f.target, O = _.indexOf(M);
341
+ _ = _.slice(O + 1);
342
+ }
343
+ setTimeout(() => D(_)), f.preventDefault();
344
+ }
345
+ })
346
+ }
347
+ )
348
+ }
349
+ )
350
+ }
351
+ ) })
352
+ }
353
+ );
354
+ }
355
+ );
356
+ lt.displayName = mn;
357
+ var vn = "SelectItemAlignedPosition", at = r.forwardRef((e, n) => {
358
+ const { __scopeSelect: t, onPlaced: s, ...o } = e, c = oe(de, t), l = le(de, t), [a, p] = r.useState(null), [u, m] = r.useState(null), g = Q(n, (P) => m(P)), E = Ce(t), x = r.useRef(!1), T = r.useRef(!0), { viewport: v, selectedItem: b, selectedItemText: j, focusSelectedItem: w } = l, R = r.useCallback(() => {
359
+ if (c.trigger && c.valueNode && a && u && v && b && j) {
360
+ const P = c.trigger.getBoundingClientRect(), H = u.getBoundingClientRect(), q = c.valueNode.getBoundingClientRect(), Y = j.getBoundingClientRect();
361
+ if (c.dir !== "rtl") {
362
+ const M = Y.left - H.left, O = q.left - M, se = P.left - O, ie = P.width + se, Re = Math.max(ie, H.width), Te = window.innerWidth - J, Pe = Ke(O, [
363
+ J,
364
+ // Prevents the content from going off the starting edge of the
365
+ // viewport. It may still go off the ending edge, but this can be
366
+ // controlled by the user since they may want to manage overflow in a
367
+ // specific way.
368
+ // https://github.com/radix-ui/primitives/issues/2049
369
+ Math.max(J, Te - Re)
370
+ ]);
371
+ a.style.minWidth = ie + "px", a.style.left = Pe + "px";
372
+ } else {
373
+ const M = H.right - Y.right, O = window.innerWidth - q.right - M, se = window.innerWidth - P.right - O, ie = P.width + se, Re = Math.max(ie, H.width), Te = window.innerWidth - J, Pe = Ke(O, [
374
+ J,
375
+ Math.max(J, Te - Re)
376
+ ]);
377
+ a.style.minWidth = ie + "px", a.style.right = Pe + "px";
378
+ }
379
+ const K = E(), U = window.innerHeight - J * 2, X = v.scrollHeight, V = window.getComputedStyle(u), B = parseInt(V.borderTopWidth, 10), D = parseInt(V.paddingTop, 10), F = parseInt(V.borderBottomWidth, 10), G = parseInt(V.paddingBottom, 10), Z = B + D + X + G + F, pe = Math.min(b.offsetHeight * 5, Z), ae = window.getComputedStyle(v), i = parseInt(ae.paddingTop, 10), S = parseInt(ae.paddingBottom, 10), y = P.top + P.height / 2 - J, h = U - y, C = b.offsetHeight / 2, f = b.offsetTop + C, I = B + D + f, N = Z - I;
380
+ if (I <= y) {
381
+ const M = K.length > 0 && b === K[K.length - 1].ref.current;
382
+ a.style.bottom = "0px";
383
+ const O = u.clientHeight - v.offsetTop - v.offsetHeight, se = Math.max(
384
+ h,
385
+ C + // viewport might have padding bottom, include it to avoid a scrollable viewport
386
+ (M ? S : 0) + O + F
387
+ ), ie = I + se;
388
+ a.style.height = ie + "px";
389
+ } else {
390
+ const M = K.length > 0 && b === K[0].ref.current;
391
+ a.style.top = "0px";
392
+ const se = Math.max(
393
+ y,
394
+ B + v.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
395
+ (M ? i : 0) + C
396
+ ) + N;
397
+ a.style.height = se + "px", v.scrollTop = I - y + v.offsetTop;
398
+ }
399
+ a.style.margin = `${J}px 0`, a.style.minHeight = pe + "px", a.style.maxHeight = U + "px", s?.(), requestAnimationFrame(() => x.current = !0);
400
+ }
401
+ }, [
402
+ E,
403
+ c.trigger,
404
+ c.valueNode,
405
+ a,
406
+ u,
407
+ v,
408
+ b,
409
+ j,
410
+ c.dir,
411
+ s
412
+ ]);
413
+ te(() => R(), [R]);
414
+ const [W, A] = r.useState();
415
+ te(() => {
416
+ u && A(window.getComputedStyle(u).zIndex);
417
+ }, [u]);
418
+ const k = r.useCallback(
419
+ (P) => {
420
+ P && T.current === !0 && (R(), w?.(), T.current = !1);
421
+ },
422
+ [R, w]
423
+ );
424
+ return /* @__PURE__ */ d.jsx(
425
+ xn,
426
+ {
427
+ scope: t,
428
+ contentWrapper: a,
429
+ shouldExpandOnScrollRef: x,
430
+ onScrollButtonChange: k,
431
+ children: /* @__PURE__ */ d.jsx(
432
+ "div",
433
+ {
434
+ ref: p,
435
+ style: {
436
+ display: "flex",
437
+ flexDirection: "column",
438
+ position: "fixed",
439
+ zIndex: W
440
+ },
441
+ children: /* @__PURE__ */ d.jsx(
442
+ $.div,
443
+ {
444
+ ...o,
445
+ ref: g,
446
+ style: {
447
+ // When we get the height of the content, it includes borders. If we were to set
448
+ // the height without having `boxSizing: 'border-box'` it would be too big.
449
+ boxSizing: "border-box",
450
+ // We need to ensure the content doesn't get taller than the wrapper
451
+ maxHeight: "100%",
452
+ ...o.style
453
+ }
454
+ }
455
+ )
456
+ }
457
+ )
458
+ }
459
+ );
460
+ });
461
+ at.displayName = vn;
462
+ var gn = "SelectPopperPosition", ke = r.forwardRef((e, n) => {
463
+ const {
464
+ __scopeSelect: t,
465
+ align: s = "start",
466
+ collisionPadding: o = J,
467
+ ...c
468
+ } = e, l = Ie(t);
469
+ return /* @__PURE__ */ d.jsx(
470
+ Zt,
471
+ {
472
+ ...l,
473
+ ...c,
474
+ ref: n,
475
+ align: s,
476
+ collisionPadding: o,
477
+ style: {
478
+ // Ensure border-box for floating-ui calculations
479
+ boxSizing: "border-box",
480
+ ...c.style,
481
+ "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
482
+ "--radix-select-content-available-width": "var(--radix-popper-available-width)",
483
+ "--radix-select-content-available-height": "var(--radix-popper-available-height)",
484
+ "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
485
+ "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
486
+ }
487
+ }
488
+ );
489
+ });
490
+ ke.displayName = gn;
491
+ var [xn, He] = he(de, {}), Me = "SelectViewport", st = r.forwardRef(
492
+ (e, n) => {
493
+ const { __scopeSelect: t, nonce: s, ...o } = e, c = le(Me, t), l = He(Me, t), a = Q(n, c.onViewportChange), p = r.useRef(0);
494
+ return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
495
+ /* @__PURE__ */ d.jsx(
496
+ "style",
497
+ {
498
+ dangerouslySetInnerHTML: {
499
+ __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
500
+ },
501
+ nonce: s
502
+ }
503
+ ),
504
+ /* @__PURE__ */ d.jsx(ye.Slot, { scope: t, children: /* @__PURE__ */ d.jsx(
505
+ $.div,
506
+ {
507
+ "data-radix-select-viewport": "",
508
+ role: "presentation",
509
+ ...o,
510
+ ref: a,
511
+ style: {
512
+ // we use position: 'relative' here on the `viewport` so that when we call
513
+ // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
514
+ // (independent of the scrollUpButton).
515
+ position: "relative",
516
+ flex: 1,
517
+ // Viewport should only be scrollable in the vertical direction.
518
+ // This won't work in vertical writing modes, so we'll need to
519
+ // revisit this if/when that is supported
520
+ // https://developer.chrome.com/blog/vertical-form-controls
521
+ overflow: "hidden auto",
522
+ ...o.style
523
+ },
524
+ onScroll: L(o.onScroll, (u) => {
525
+ const m = u.currentTarget, { contentWrapper: g, shouldExpandOnScrollRef: E } = l;
526
+ if (E?.current && g) {
527
+ const x = Math.abs(p.current - m.scrollTop);
528
+ if (x > 0) {
529
+ const T = window.innerHeight - J * 2, v = parseFloat(g.style.minHeight), b = parseFloat(g.style.height), j = Math.max(v, b);
530
+ if (j < T) {
531
+ const w = j + x, R = Math.min(T, w), W = w - R;
532
+ g.style.height = R + "px", g.style.bottom === "0px" && (m.scrollTop = W > 0 ? W : 0, g.style.justifyContent = "flex-end");
533
+ }
534
+ }
535
+ }
536
+ p.current = m.scrollTop;
537
+ })
538
+ }
539
+ ) })
540
+ ] });
541
+ }
542
+ );
543
+ st.displayName = Me;
544
+ var it = "SelectGroup", [Sn, wn] = he(it), bn = r.forwardRef(
545
+ (e, n) => {
546
+ const { __scopeSelect: t, ...s } = e, o = ee();
547
+ return /* @__PURE__ */ d.jsx(Sn, { scope: t, id: o, children: /* @__PURE__ */ d.jsx($.div, { role: "group", "aria-labelledby": o, ...s, ref: n }) });
548
+ }
549
+ );
550
+ bn.displayName = it;
551
+ var ct = "SelectLabel", yn = r.forwardRef(
552
+ (e, n) => {
553
+ const { __scopeSelect: t, ...s } = e, o = wn(ct, t);
554
+ return /* @__PURE__ */ d.jsx($.div, { id: o.id, ...s, ref: n });
555
+ }
556
+ );
557
+ yn.displayName = ct;
558
+ var be = "SelectItem", [Cn, dt] = he(be), ut = r.forwardRef(
559
+ (e, n) => {
560
+ const {
561
+ __scopeSelect: t,
562
+ value: s,
563
+ disabled: o = !1,
564
+ textValue: c,
565
+ ...l
566
+ } = e, a = oe(be, t), p = le(be, t), u = a.value === s, [m, g] = r.useState(c ?? ""), [E, x] = r.useState(!1), T = Q(
567
+ n,
568
+ (w) => p.itemRefCallback?.(w, s, o)
569
+ ), v = ee(), b = r.useRef("touch"), j = () => {
570
+ o || (a.onValueChange(s), a.onOpenChange(!1));
571
+ };
572
+ if (s === "")
573
+ throw new Error(
574
+ "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
575
+ );
576
+ return /* @__PURE__ */ d.jsx(
577
+ Cn,
578
+ {
579
+ scope: t,
580
+ value: s,
581
+ disabled: o,
582
+ textId: v,
583
+ isSelected: u,
584
+ onItemTextChange: r.useCallback((w) => {
585
+ g((R) => R || (w?.textContent ?? "").trim());
586
+ }, []),
587
+ children: /* @__PURE__ */ d.jsx(
588
+ ye.ItemSlot,
589
+ {
590
+ scope: t,
591
+ value: s,
592
+ disabled: o,
593
+ textValue: m,
594
+ children: /* @__PURE__ */ d.jsx(
595
+ $.div,
596
+ {
597
+ role: "option",
598
+ "aria-labelledby": v,
599
+ "data-highlighted": E ? "" : void 0,
600
+ "aria-selected": u && E,
601
+ "data-state": u ? "checked" : "unchecked",
602
+ "aria-disabled": o || void 0,
603
+ "data-disabled": o ? "" : void 0,
604
+ tabIndex: o ? void 0 : -1,
605
+ ...l,
606
+ ref: T,
607
+ onFocus: L(l.onFocus, () => x(!0)),
608
+ onBlur: L(l.onBlur, () => x(!1)),
609
+ onClick: L(l.onClick, () => {
610
+ b.current !== "mouse" && j();
611
+ }),
612
+ onPointerUp: L(l.onPointerUp, () => {
613
+ b.current === "mouse" && j();
614
+ }),
615
+ onPointerDown: L(l.onPointerDown, (w) => {
616
+ b.current = w.pointerType;
617
+ }),
618
+ onPointerMove: L(l.onPointerMove, (w) => {
619
+ b.current = w.pointerType, o ? p.onItemLeave?.() : b.current === "mouse" && w.currentTarget.focus({ preventScroll: !0 });
620
+ }),
621
+ onPointerLeave: L(l.onPointerLeave, (w) => {
622
+ w.currentTarget === document.activeElement && p.onItemLeave?.();
623
+ }),
624
+ onKeyDown: L(l.onKeyDown, (w) => {
625
+ p.searchRef?.current !== "" && w.key === " " || (an.includes(w.key) && j(), w.key === " " && w.preventDefault());
626
+ })
627
+ }
628
+ )
629
+ }
630
+ )
631
+ }
632
+ );
633
+ }
634
+ );
635
+ ut.displayName = be;
636
+ var xe = "SelectItemText", pt = r.forwardRef(
637
+ (e, n) => {
638
+ const { __scopeSelect: t, className: s, style: o, ...c } = e, l = oe(xe, t), a = le(xe, t), p = dt(xe, t), u = un(xe, t), [m, g] = r.useState(null), E = Q(
639
+ n,
640
+ (j) => g(j),
641
+ p.onItemTextChange,
642
+ (j) => a.itemTextRefCallback?.(j, p.value, p.disabled)
643
+ ), x = m?.textContent, T = r.useMemo(
644
+ () => /* @__PURE__ */ d.jsx("option", { value: p.value, disabled: p.disabled, children: x }, p.value),
645
+ [p.disabled, p.value, x]
646
+ ), { onNativeOptionAdd: v, onNativeOptionRemove: b } = u;
647
+ return te(() => (v(T), () => b(T)), [v, b, T]), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
648
+ /* @__PURE__ */ d.jsx($.span, { id: p.textId, ...c, ref: E }),
649
+ p.isSelected && l.valueNode && !l.valueNodeHasChildren ? Ge.createPortal(c.children, l.valueNode) : null
650
+ ] });
651
+ }
652
+ );
653
+ pt.displayName = xe;
654
+ var ft = "SelectItemIndicator", mt = r.forwardRef(
655
+ (e, n) => {
656
+ const { __scopeSelect: t, ...s } = e;
657
+ return dt(ft, t).isSelected ? /* @__PURE__ */ d.jsx($.span, { "aria-hidden": !0, ...s, ref: n }) : null;
658
+ }
659
+ );
660
+ mt.displayName = ft;
661
+ var Ae = "SelectScrollUpButton", ht = r.forwardRef((e, n) => {
662
+ const t = le(Ae, e.__scopeSelect), s = He(Ae, e.__scopeSelect), [o, c] = r.useState(!1), l = Q(n, s.onScrollButtonChange);
663
+ return te(() => {
664
+ if (t.viewport && t.isPositioned) {
665
+ let a = function() {
666
+ const u = p.scrollTop > 0;
667
+ c(u);
668
+ };
669
+ const p = t.viewport;
670
+ return a(), p.addEventListener("scroll", a), () => p.removeEventListener("scroll", a);
671
+ }
672
+ }, [t.viewport, t.isPositioned]), o ? /* @__PURE__ */ d.jsx(
673
+ gt,
674
+ {
675
+ ...e,
676
+ ref: l,
677
+ onAutoScroll: () => {
678
+ const { viewport: a, selectedItem: p } = t;
679
+ a && p && (a.scrollTop = a.scrollTop - p.offsetHeight);
680
+ }
681
+ }
682
+ ) : null;
683
+ });
684
+ ht.displayName = Ae;
685
+ var De = "SelectScrollDownButton", vt = r.forwardRef((e, n) => {
686
+ const t = le(De, e.__scopeSelect), s = He(De, e.__scopeSelect), [o, c] = r.useState(!1), l = Q(n, s.onScrollButtonChange);
687
+ return te(() => {
688
+ if (t.viewport && t.isPositioned) {
689
+ let a = function() {
690
+ const u = p.scrollHeight - p.clientHeight, m = Math.ceil(p.scrollTop) < u;
691
+ c(m);
692
+ };
693
+ const p = t.viewport;
694
+ return a(), p.addEventListener("scroll", a), () => p.removeEventListener("scroll", a);
695
+ }
696
+ }, [t.viewport, t.isPositioned]), o ? /* @__PURE__ */ d.jsx(
697
+ gt,
698
+ {
699
+ ...e,
700
+ ref: l,
701
+ onAutoScroll: () => {
702
+ const { viewport: a, selectedItem: p } = t;
703
+ a && p && (a.scrollTop = a.scrollTop + p.offsetHeight);
704
+ }
705
+ }
706
+ ) : null;
707
+ });
708
+ vt.displayName = De;
709
+ var gt = r.forwardRef((e, n) => {
710
+ const { __scopeSelect: t, onAutoScroll: s, ...o } = e, c = le("SelectScrollButton", t), l = r.useRef(null), a = Ce(t), p = r.useCallback(() => {
711
+ l.current !== null && (window.clearInterval(l.current), l.current = null);
712
+ }, []);
713
+ return r.useEffect(() => () => p(), [p]), te(() => {
714
+ a().find((m) => m.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
715
+ }, [a]), /* @__PURE__ */ d.jsx(
716
+ $.div,
717
+ {
718
+ "aria-hidden": !0,
719
+ ...o,
720
+ ref: n,
721
+ style: { flexShrink: 0, ...o.style },
722
+ onPointerDown: L(o.onPointerDown, () => {
723
+ l.current === null && (l.current = window.setInterval(s, 50));
724
+ }),
725
+ onPointerMove: L(o.onPointerMove, () => {
726
+ c.onItemLeave?.(), l.current === null && (l.current = window.setInterval(s, 50));
727
+ }),
728
+ onPointerLeave: L(o.onPointerLeave, () => {
729
+ p();
730
+ })
731
+ }
732
+ );
733
+ }), In = "SelectSeparator", En = r.forwardRef(
734
+ (e, n) => {
735
+ const { __scopeSelect: t, ...s } = e;
736
+ return /* @__PURE__ */ d.jsx($.div, { "aria-hidden": !0, ...s, ref: n });
737
+ }
738
+ );
739
+ En.displayName = In;
740
+ var Oe = "SelectArrow", Rn = r.forwardRef(
741
+ (e, n) => {
742
+ const { __scopeSelect: t, ...s } = e, o = Ie(t), c = oe(Oe, t), l = le(Oe, t);
743
+ return c.open && l.position === "popper" ? /* @__PURE__ */ d.jsx(Jt, { ...o, ...s, ref: n }) : null;
744
+ }
745
+ );
746
+ Rn.displayName = Oe;
747
+ var Tn = "SelectBubbleInput", xt = r.forwardRef(
748
+ ({ __scopeSelect: e, value: n, ...t }, s) => {
749
+ const o = r.useRef(null), c = Q(s, o), l = Dt(n);
750
+ return r.useEffect(() => {
751
+ const a = o.current;
752
+ if (!a) return;
753
+ const p = window.HTMLSelectElement.prototype, m = Object.getOwnPropertyDescriptor(
754
+ p,
755
+ "value"
756
+ ).set;
757
+ if (l !== n && m) {
758
+ const g = new Event("change", { bubbles: !0 });
759
+ m.call(a, n), a.dispatchEvent(g);
760
+ }
761
+ }, [l, n]), /* @__PURE__ */ d.jsx(
762
+ $.select,
763
+ {
764
+ ...t,
765
+ style: { ...Xt, ...t.style },
766
+ ref: c,
767
+ defaultValue: n
768
+ }
769
+ );
770
+ }
771
+ );
772
+ xt.displayName = Tn;
773
+ function St(e) {
774
+ return e === "" || e === void 0;
775
+ }
776
+ function wt(e) {
777
+ const n = Ot(e), t = r.useRef(""), s = r.useRef(0), o = r.useCallback(
778
+ (l) => {
779
+ const a = t.current + l;
780
+ n(a), (function p(u) {
781
+ t.current = u, window.clearTimeout(s.current), u !== "" && (s.current = window.setTimeout(() => p(""), 1e3));
782
+ })(a);
783
+ },
784
+ [n]
785
+ ), c = r.useCallback(() => {
786
+ t.current = "", window.clearTimeout(s.current);
787
+ }, []);
788
+ return r.useEffect(() => () => window.clearTimeout(s.current), []), [t, o, c];
789
+ }
790
+ function bt(e, n, t) {
791
+ const o = n.length > 1 && Array.from(n).every((u) => u === n[0]) ? n[0] : n, c = t ? e.indexOf(t) : -1;
792
+ let l = Pn(e, Math.max(c, 0));
793
+ o.length === 1 && (l = l.filter((u) => u !== t));
794
+ const p = l.find(
795
+ (u) => u.textValue.toLowerCase().startsWith(o.toLowerCase())
796
+ );
797
+ return p !== t ? p : void 0;
798
+ }
799
+ function Pn(e, n) {
800
+ return e.map((t, s) => e[(n + s) % e.length]);
801
+ }
802
+ var Nn = Xe, jn = Je, _n = et, kn = tt, Mn = nt, An = rt, Dn = st, On = ut, Ln = pt, Vn = mt, Bn = ht, Hn = vt, Ue = 1, Fn = 0.9, zn = 0.8, Kn = 0.17, Ne = 0.1, je = 0.999, Un = 0.9999, $n = 0.99, Wn = /[\\\/_+.#"@\[\(\{&]/, Gn = /[\\\/_+.#"@\[\(\{&]/g, qn = /[\s-]/, yt = /[\s-]/g;
803
+ function Le(e, n, t, s, o, c, l) {
804
+ if (c === n.length) return o === e.length ? Ue : $n;
805
+ var a = `${o},${c}`;
806
+ if (l[a] !== void 0) return l[a];
807
+ for (var p = s.charAt(c), u = t.indexOf(p, o), m = 0, g, E, x, T; u >= 0; ) g = Le(e, n, t, s, u + 1, c + 1, l), g > m && (u === o ? g *= Ue : Wn.test(e.charAt(u - 1)) ? (g *= zn, x = e.slice(o, u - 1).match(Gn), x && o > 0 && (g *= Math.pow(je, x.length))) : qn.test(e.charAt(u - 1)) ? (g *= Fn, T = e.slice(o, u - 1).match(yt), T && o > 0 && (g *= Math.pow(je, T.length))) : (g *= Kn, o > 0 && (g *= Math.pow(je, u - o))), e.charAt(u) !== n.charAt(c) && (g *= Un)), (g < Ne && t.charAt(u - 1) === s.charAt(c + 1) || s.charAt(c + 1) === s.charAt(c) && t.charAt(u - 1) !== s.charAt(c)) && (E = Le(e, n, t, s, u + 1, c + 2, l), E * Ne > g && (g = E * Ne)), g > m && (m = g), u = t.indexOf(p, u + 1);
808
+ return l[a] = m, m;
809
+ }
810
+ function $e(e) {
811
+ return e.toLowerCase().replace(yt, " ");
812
+ }
813
+ function Yn(e, n, t) {
814
+ return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, Le(e, n, $e(e), $e(n), 0, 0, {});
815
+ }
816
+ var ge = '[cmdk-group=""]', _e = '[cmdk-group-items=""]', Xn = '[cmdk-group-heading=""]', Ct = '[cmdk-item=""]', We = `${Ct}:not([aria-disabled="true"])`, Ve = "cmdk-item-select", fe = "data-value", Zn = (e, n, t) => Yn(e, n, t), It = r.createContext(void 0), we = () => r.useContext(It), Et = r.createContext(void 0), Fe = () => r.useContext(Et), Rt = r.createContext(void 0), Tt = r.forwardRef((e, n) => {
817
+ let t = me(() => {
818
+ var i, S;
819
+ return { search: "", value: (S = (i = e.value) != null ? i : e.defaultValue) != null ? S : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
820
+ }), s = me(() => /* @__PURE__ */ new Set()), o = me(() => /* @__PURE__ */ new Map()), c = me(() => /* @__PURE__ */ new Map()), l = me(() => /* @__PURE__ */ new Set()), a = Pt(e), { label: p, children: u, value: m, onValueChange: g, filter: E, shouldFilter: x, loop: T, disablePointerSelection: v = !1, vimBindings: b = !0, ...j } = e, w = ee(), R = ee(), W = ee(), A = r.useRef(null), k = ir();
821
+ ue(() => {
822
+ if (m !== void 0) {
823
+ let i = m.trim();
824
+ t.current.value = i, P.emit();
825
+ }
826
+ }, [m]), ue(() => {
827
+ k(6, X);
828
+ }, []);
829
+ let P = r.useMemo(() => ({ subscribe: (i) => (l.current.add(i), () => l.current.delete(i)), snapshot: () => t.current, setState: (i, S, y) => {
830
+ var h, C, f, I;
831
+ if (!Object.is(t.current[i], S)) {
832
+ if (t.current[i] = S, i === "search") U(), Y(), k(1, K);
833
+ else if (i === "value") {
834
+ if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
835
+ let N = document.getElementById(W);
836
+ N ? N.focus() : (h = document.getElementById(w)) == null || h.focus();
837
+ }
838
+ if (k(7, () => {
839
+ var N;
840
+ t.current.selectedItemId = (N = V()) == null ? void 0 : N.id, P.emit();
841
+ }), y || k(5, X), ((C = a.current) == null ? void 0 : C.value) !== void 0) {
842
+ let N = S ?? "";
843
+ (I = (f = a.current).onValueChange) == null || I.call(f, N);
844
+ return;
845
+ }
846
+ }
847
+ P.emit();
848
+ }
849
+ }, emit: () => {
850
+ l.current.forEach((i) => i());
851
+ } }), []), H = r.useMemo(() => ({ value: (i, S, y) => {
852
+ var h;
853
+ S !== ((h = c.current.get(i)) == null ? void 0 : h.value) && (c.current.set(i, { value: S, keywords: y }), t.current.filtered.items.set(i, q(S, y)), k(2, () => {
854
+ Y(), P.emit();
855
+ }));
856
+ }, item: (i, S) => (s.current.add(i), S && (o.current.has(S) ? o.current.get(S).add(i) : o.current.set(S, /* @__PURE__ */ new Set([i]))), k(3, () => {
857
+ U(), Y(), t.current.value || K(), P.emit();
858
+ }), () => {
859
+ c.current.delete(i), s.current.delete(i), t.current.filtered.items.delete(i);
860
+ let y = V();
861
+ k(4, () => {
862
+ U(), y?.getAttribute("id") === i && K(), P.emit();
863
+ });
864
+ }), group: (i) => (o.current.has(i) || o.current.set(i, /* @__PURE__ */ new Set()), () => {
865
+ c.current.delete(i), o.current.delete(i);
866
+ }), filter: () => a.current.shouldFilter, label: p || e["aria-label"], getDisablePointerSelection: () => a.current.disablePointerSelection, listId: w, inputId: W, labelId: R, listInnerRef: A }), []);
867
+ function q(i, S) {
868
+ var y, h;
869
+ let C = (h = (y = a.current) == null ? void 0 : y.filter) != null ? h : Zn;
870
+ return i ? C(i, t.current.search, S) : 0;
871
+ }
872
+ function Y() {
873
+ if (!t.current.search || a.current.shouldFilter === !1) return;
874
+ let i = t.current.filtered.items, S = [];
875
+ t.current.filtered.groups.forEach((h) => {
876
+ let C = o.current.get(h), f = 0;
877
+ C.forEach((I) => {
878
+ let N = i.get(I);
879
+ f = Math.max(N, f);
880
+ }), S.push([h, f]);
881
+ });
882
+ let y = A.current;
883
+ B().sort((h, C) => {
884
+ var f, I;
885
+ let N = h.getAttribute("id"), _ = C.getAttribute("id");
886
+ return ((f = i.get(_)) != null ? f : 0) - ((I = i.get(N)) != null ? I : 0);
887
+ }).forEach((h) => {
888
+ let C = h.closest(_e);
889
+ C ? C.appendChild(h.parentElement === C ? h : h.closest(`${_e} > *`)) : y.appendChild(h.parentElement === y ? h : h.closest(`${_e} > *`));
890
+ }), S.sort((h, C) => C[1] - h[1]).forEach((h) => {
891
+ var C;
892
+ let f = (C = A.current) == null ? void 0 : C.querySelector(`${ge}[${fe}="${encodeURIComponent(h[0])}"]`);
893
+ f?.parentElement.appendChild(f);
894
+ });
895
+ }
896
+ function K() {
897
+ let i = B().find((y) => y.getAttribute("aria-disabled") !== "true"), S = i?.getAttribute(fe);
898
+ P.setState("value", S || void 0);
899
+ }
900
+ function U() {
901
+ var i, S, y, h;
902
+ if (!t.current.search || a.current.shouldFilter === !1) {
903
+ t.current.filtered.count = s.current.size;
904
+ return;
905
+ }
906
+ t.current.filtered.groups = /* @__PURE__ */ new Set();
907
+ let C = 0;
908
+ for (let f of s.current) {
909
+ let I = (S = (i = c.current.get(f)) == null ? void 0 : i.value) != null ? S : "", N = (h = (y = c.current.get(f)) == null ? void 0 : y.keywords) != null ? h : [], _ = q(I, N);
910
+ t.current.filtered.items.set(f, _), _ > 0 && C++;
911
+ }
912
+ for (let [f, I] of o.current) for (let N of I) if (t.current.filtered.items.get(N) > 0) {
913
+ t.current.filtered.groups.add(f);
914
+ break;
915
+ }
916
+ t.current.filtered.count = C;
917
+ }
918
+ function X() {
919
+ var i, S, y;
920
+ let h = V();
921
+ h && (((i = h.parentElement) == null ? void 0 : i.firstChild) === h && ((y = (S = h.closest(ge)) == null ? void 0 : S.querySelector(Xn)) == null || y.scrollIntoView({ block: "nearest" })), h.scrollIntoView({ block: "nearest" }));
922
+ }
923
+ function V() {
924
+ var i;
925
+ return (i = A.current) == null ? void 0 : i.querySelector(`${Ct}[aria-selected="true"]`);
926
+ }
927
+ function B() {
928
+ var i;
929
+ return Array.from(((i = A.current) == null ? void 0 : i.querySelectorAll(We)) || []);
930
+ }
931
+ function D(i) {
932
+ let S = B()[i];
933
+ S && P.setState("value", S.getAttribute(fe));
934
+ }
935
+ function F(i) {
936
+ var S;
937
+ let y = V(), h = B(), C = h.findIndex((I) => I === y), f = h[C + i];
938
+ (S = a.current) != null && S.loop && (f = C + i < 0 ? h[h.length - 1] : C + i === h.length ? h[0] : h[C + i]), f && P.setState("value", f.getAttribute(fe));
939
+ }
940
+ function G(i) {
941
+ let S = V(), y = S?.closest(ge), h;
942
+ for (; y && !h; ) y = i > 0 ? ar(y, ge) : sr(y, ge), h = y?.querySelector(We);
943
+ h ? P.setState("value", h.getAttribute(fe)) : F(i);
944
+ }
945
+ let Z = () => D(B().length - 1), pe = (i) => {
946
+ i.preventDefault(), i.metaKey ? Z() : i.altKey ? G(1) : F(1);
947
+ }, ae = (i) => {
948
+ i.preventDefault(), i.metaKey ? D(0) : i.altKey ? G(-1) : F(-1);
949
+ };
950
+ return r.createElement(re.div, { ref: n, tabIndex: -1, ...j, "cmdk-root": "", onKeyDown: (i) => {
951
+ var S;
952
+ (S = j.onKeyDown) == null || S.call(j, i);
953
+ let y = i.nativeEvent.isComposing || i.keyCode === 229;
954
+ if (!(i.defaultPrevented || y)) switch (i.key) {
955
+ case "n":
956
+ case "j": {
957
+ b && i.ctrlKey && pe(i);
958
+ break;
959
+ }
960
+ case "ArrowDown": {
961
+ pe(i);
962
+ break;
963
+ }
964
+ case "p":
965
+ case "k": {
966
+ b && i.ctrlKey && ae(i);
967
+ break;
968
+ }
969
+ case "ArrowUp": {
970
+ ae(i);
971
+ break;
972
+ }
973
+ case "Home": {
974
+ i.preventDefault(), D(0);
975
+ break;
976
+ }
977
+ case "End": {
978
+ i.preventDefault(), Z();
979
+ break;
980
+ }
981
+ case "Enter": {
982
+ i.preventDefault();
983
+ let h = V();
984
+ if (h) {
985
+ let C = new Event(Ve);
986
+ h.dispatchEvent(C);
987
+ }
988
+ }
989
+ }
990
+ } }, r.createElement("label", { "cmdk-label": "", htmlFor: H.inputId, id: H.labelId, style: dr }, p), Ee(e, (i) => r.createElement(Et.Provider, { value: P }, r.createElement(It.Provider, { value: H }, i))));
991
+ }), Jn = r.forwardRef((e, n) => {
992
+ var t, s;
993
+ let o = ee(), c = r.useRef(null), l = r.useContext(Rt), a = we(), p = Pt(e), u = (s = (t = p.current) == null ? void 0 : t.forceMount) != null ? s : l?.forceMount;
994
+ ue(() => {
995
+ if (!u) return a.item(o, l?.id);
996
+ }, [u]);
997
+ let m = Nt(o, c, [e.value, e.children, c], e.keywords), g = Fe(), E = ne((k) => k.value && k.value === m.current), x = ne((k) => u || a.filter() === !1 ? !0 : k.search ? k.filtered.items.get(o) > 0 : !0);
998
+ r.useEffect(() => {
999
+ let k = c.current;
1000
+ if (!(!k || e.disabled)) return k.addEventListener(Ve, T), () => k.removeEventListener(Ve, T);
1001
+ }, [x, e.onSelect, e.disabled]);
1002
+ function T() {
1003
+ var k, P;
1004
+ v(), (P = (k = p.current).onSelect) == null || P.call(k, m.current);
1005
+ }
1006
+ function v() {
1007
+ g.setState("value", m.current, !0);
1008
+ }
1009
+ if (!x) return null;
1010
+ let { disabled: b, value: j, onSelect: w, forceMount: R, keywords: W, ...A } = e;
1011
+ return r.createElement(re.div, { ref: Se(c, n), ...A, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!b, "aria-selected": !!E, "data-disabled": !!b, "data-selected": !!E, onPointerMove: b || a.getDisablePointerSelection() ? void 0 : v, onClick: b ? void 0 : T }, e.children);
1012
+ }), Qn = r.forwardRef((e, n) => {
1013
+ let { heading: t, children: s, forceMount: o, ...c } = e, l = ee(), a = r.useRef(null), p = r.useRef(null), u = ee(), m = we(), g = ne((x) => o || m.filter() === !1 ? !0 : x.search ? x.filtered.groups.has(l) : !0);
1014
+ ue(() => m.group(l), []), Nt(l, a, [e.value, e.heading, p]);
1015
+ let E = r.useMemo(() => ({ id: l, forceMount: o }), [o]);
1016
+ return r.createElement(re.div, { ref: Se(a, n), ...c, "cmdk-group": "", role: "presentation", hidden: g ? void 0 : !0 }, t && r.createElement("div", { ref: p, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, t), Ee(e, (x) => r.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? u : void 0 }, r.createElement(Rt.Provider, { value: E }, x))));
1017
+ }), er = r.forwardRef((e, n) => {
1018
+ let { alwaysRender: t, ...s } = e, o = r.useRef(null), c = ne((l) => !l.search);
1019
+ return !t && !c ? null : r.createElement(re.div, { ref: Se(o, n), ...s, "cmdk-separator": "", role: "separator" });
1020
+ }), tr = r.forwardRef((e, n) => {
1021
+ let { onValueChange: t, ...s } = e, o = e.value != null, c = Fe(), l = ne((u) => u.search), a = ne((u) => u.selectedItemId), p = we();
1022
+ return r.useEffect(() => {
1023
+ e.value != null && c.setState("search", e.value);
1024
+ }, [e.value]), r.createElement(re.input, { ref: n, ...s, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": p.listId, "aria-labelledby": p.labelId, "aria-activedescendant": a, id: p.inputId, type: "text", value: o ? e.value : l, onChange: (u) => {
1025
+ o || c.setState("search", u.target.value), t?.(u.target.value);
1026
+ } });
1027
+ }), nr = r.forwardRef((e, n) => {
1028
+ let { children: t, label: s = "Suggestions", ...o } = e, c = r.useRef(null), l = r.useRef(null), a = ne((u) => u.selectedItemId), p = we();
1029
+ return r.useEffect(() => {
1030
+ if (l.current && c.current) {
1031
+ let u = l.current, m = c.current, g, E = new ResizeObserver(() => {
1032
+ g = requestAnimationFrame(() => {
1033
+ let x = u.offsetHeight;
1034
+ m.style.setProperty("--cmdk-list-height", x.toFixed(1) + "px");
1035
+ });
1036
+ });
1037
+ return E.observe(u), () => {
1038
+ cancelAnimationFrame(g), E.unobserve(u);
1039
+ };
1040
+ }
1041
+ }, []), r.createElement(re.div, { ref: Se(c, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": a, "aria-label": s, id: p.listId }, Ee(e, (u) => r.createElement("div", { ref: Se(l, p.listInnerRef), "cmdk-list-sizer": "" }, u)));
1042
+ }), rr = r.forwardRef((e, n) => {
1043
+ let { open: t, onOpenChange: s, overlayClassName: o, contentClassName: c, container: l, ...a } = e;
1044
+ return r.createElement(Kt, { open: t, onOpenChange: s }, r.createElement(Ut, { container: l }, r.createElement($t, { "cmdk-overlay": "", className: o }), r.createElement(Wt, { "aria-label": e.label, "cmdk-dialog": "", className: c }, r.createElement(Tt, { ref: n, ...a }))));
1045
+ }), or = r.forwardRef((e, n) => ne((t) => t.filtered.count === 0) ? r.createElement(re.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), lr = r.forwardRef((e, n) => {
1046
+ let { progress: t, children: s, label: o = "Loading...", ...c } = e;
1047
+ return r.createElement(re.div, { ref: n, ...c, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, Ee(e, (l) => r.createElement("div", { "aria-hidden": !0 }, l)));
1048
+ }), ve = Object.assign(Tt, { List: nr, Item: Jn, Input: tr, Group: Qn, Separator: er, Dialog: rr, Empty: or, Loading: lr });
1049
+ function ar(e, n) {
1050
+ let t = e.nextElementSibling;
1051
+ for (; t; ) {
1052
+ if (t.matches(n)) return t;
1053
+ t = t.nextElementSibling;
1054
+ }
1055
+ }
1056
+ function sr(e, n) {
1057
+ let t = e.previousElementSibling;
1058
+ for (; t; ) {
1059
+ if (t.matches(n)) return t;
1060
+ t = t.previousElementSibling;
1061
+ }
1062
+ }
1063
+ function Pt(e) {
1064
+ let n = r.useRef(e);
1065
+ return ue(() => {
1066
+ n.current = e;
1067
+ }), n;
1068
+ }
1069
+ var ue = typeof window > "u" ? r.useEffect : r.useLayoutEffect;
1070
+ function me(e) {
1071
+ let n = r.useRef();
1072
+ return n.current === void 0 && (n.current = e()), n;
1073
+ }
1074
+ function ne(e) {
1075
+ let n = Fe(), t = () => e(n.snapshot());
1076
+ return r.useSyncExternalStore(n.subscribe, t, t);
1077
+ }
1078
+ function Nt(e, n, t, s = []) {
1079
+ let o = r.useRef(), c = we();
1080
+ return ue(() => {
1081
+ var l;
1082
+ let a = (() => {
1083
+ var u;
1084
+ for (let m of t) {
1085
+ if (typeof m == "string") return m.trim();
1086
+ if (typeof m == "object" && "current" in m) return m.current ? (u = m.current.textContent) == null ? void 0 : u.trim() : o.current;
1087
+ }
1088
+ })(), p = s.map((u) => u.trim());
1089
+ c.value(e, a, p), (l = n.current) == null || l.setAttribute(fe, a), o.current = a;
1090
+ }), o;
1091
+ }
1092
+ var ir = () => {
1093
+ let [e, n] = r.useState(), t = me(() => /* @__PURE__ */ new Map());
1094
+ return ue(() => {
1095
+ t.current.forEach((s) => s()), t.current = /* @__PURE__ */ new Map();
1096
+ }, [e]), (s, o) => {
1097
+ t.current.set(s, o), n({});
1098
+ };
1099
+ };
1100
+ function cr(e) {
1101
+ let n = e.type;
1102
+ return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
1103
+ }
1104
+ function Ee({ asChild: e, children: n }, t) {
1105
+ return e && r.isValidElement(n) ? r.cloneElement(cr(n), { ref: n.ref }, t(n.props.children)) : t(n);
1106
+ }
1107
+ var dr = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
1108
+ function ur({
1109
+ className: e,
1110
+ ...n
1111
+ }) {
1112
+ return /* @__PURE__ */ d.jsx(
1113
+ ve,
1114
+ {
1115
+ "data-slot": "command",
1116
+ className: z(
1117
+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
1118
+ e
1119
+ ),
1120
+ ...n
1121
+ }
1122
+ );
1123
+ }
1124
+ function pr({
1125
+ className: e,
1126
+ ...n
1127
+ }) {
1128
+ return /* @__PURE__ */ d.jsxs(
1129
+ "div",
1130
+ {
1131
+ "data-slot": "command-input-wrapper",
1132
+ className: "flex h-9 items-center gap-2 border-b px-3",
1133
+ children: [
1134
+ /* @__PURE__ */ d.jsx(nn, { className: "size-4 shrink-0 opacity-50" }),
1135
+ /* @__PURE__ */ d.jsx(
1136
+ ve.Input,
1137
+ {
1138
+ "data-slot": "command-input",
1139
+ className: z(
1140
+ "placeholder:text-muted-foreground flex h-full w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
1141
+ e
1142
+ ),
1143
+ ...n
1144
+ }
1145
+ )
1146
+ ]
1147
+ }
1148
+ );
1149
+ }
1150
+ function fr({
1151
+ className: e,
1152
+ ...n
1153
+ }) {
1154
+ return /* @__PURE__ */ d.jsx(
1155
+ ve.List,
1156
+ {
1157
+ "data-slot": "command-list",
1158
+ className: z(
1159
+ "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
1160
+ e
1161
+ ),
1162
+ ...n
1163
+ }
1164
+ );
1165
+ }
1166
+ function mr({
1167
+ ...e
1168
+ }) {
1169
+ return /* @__PURE__ */ d.jsx(
1170
+ ve.Empty,
1171
+ {
1172
+ "data-slot": "command-empty",
1173
+ className: "py-6 text-center text-sm",
1174
+ ...e
1175
+ }
1176
+ );
1177
+ }
1178
+ function hr({
1179
+ className: e,
1180
+ ...n
1181
+ }) {
1182
+ return /* @__PURE__ */ d.jsx(
1183
+ ve.Group,
1184
+ {
1185
+ "data-slot": "command-group",
1186
+ className: z(
1187
+ "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",
1188
+ e
1189
+ ),
1190
+ ...n
1191
+ }
1192
+ );
1193
+ }
1194
+ function vr({
1195
+ className: e,
1196
+ ...n
1197
+ }) {
1198
+ return /* @__PURE__ */ d.jsx(
1199
+ ve.Item,
1200
+ {
1201
+ "data-slot": "command-item",
1202
+ className: z(
1203
+ "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1204
+ e
1205
+ ),
1206
+ ...n
1207
+ }
1208
+ );
1209
+ }
1210
+ function Cr({
1211
+ ...e
1212
+ }) {
1213
+ return /* @__PURE__ */ d.jsx(Nn, { "data-slot": "select", ...e });
1214
+ }
1215
+ function Ir({
1216
+ ...e
1217
+ }) {
1218
+ return /* @__PURE__ */ d.jsx(_n, { "data-slot": "select-value", ...e });
1219
+ }
1220
+ function Er({
1221
+ className: e,
1222
+ size: n = "default",
1223
+ children: t,
1224
+ ...s
1225
+ }) {
1226
+ return /* @__PURE__ */ d.jsxs(
1227
+ jn,
1228
+ {
1229
+ "data-slot": "select-trigger",
1230
+ "data-size": n,
1231
+ className: z(
1232
+ "border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1233
+ e
1234
+ ),
1235
+ ...s,
1236
+ children: [
1237
+ t,
1238
+ /* @__PURE__ */ d.jsx(kn, { asChild: !0, children: /* @__PURE__ */ d.jsx(Be, { className: "size-4 opacity-50" }) })
1239
+ ]
1240
+ }
1241
+ );
1242
+ }
1243
+ function Rr({
1244
+ className: e,
1245
+ children: n,
1246
+ position: t = "item-aligned",
1247
+ align: s = "center",
1248
+ ...o
1249
+ }) {
1250
+ const c = Gt();
1251
+ return /* @__PURE__ */ d.jsx(Mn, { container: c, children: /* @__PURE__ */ d.jsxs(
1252
+ An,
1253
+ {
1254
+ "data-slot": "select-content",
1255
+ className: z(
1256
+ "bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
1257
+ t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1258
+ e
1259
+ ),
1260
+ position: t,
1261
+ align: s,
1262
+ ...o,
1263
+ children: [
1264
+ /* @__PURE__ */ d.jsx(gr, {}),
1265
+ /* @__PURE__ */ d.jsx(
1266
+ Dn,
1267
+ {
1268
+ className: z(
1269
+ "p-1",
1270
+ t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
1271
+ ),
1272
+ children: n
1273
+ }
1274
+ ),
1275
+ /* @__PURE__ */ d.jsx(xr, {})
1276
+ ]
1277
+ }
1278
+ ) });
1279
+ }
1280
+ function Tr({
1281
+ className: e,
1282
+ children: n,
1283
+ ...t
1284
+ }) {
1285
+ return /* @__PURE__ */ d.jsxs(
1286
+ On,
1287
+ {
1288
+ "data-slot": "select-item",
1289
+ className: z(
1290
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
1291
+ e
1292
+ ),
1293
+ ...t,
1294
+ children: [
1295
+ /* @__PURE__ */ d.jsx(
1296
+ "span",
1297
+ {
1298
+ "data-slot": "select-item-indicator",
1299
+ className: "absolute right-2 flex size-3.5 items-center justify-center",
1300
+ children: /* @__PURE__ */ d.jsx(Vn, { children: /* @__PURE__ */ d.jsx(Ye, { className: "size-4" }) })
1301
+ }
1302
+ ),
1303
+ /* @__PURE__ */ d.jsx(Ln, { children: n })
1304
+ ]
1305
+ }
1306
+ );
1307
+ }
1308
+ function gr({
1309
+ className: e,
1310
+ ...n
1311
+ }) {
1312
+ return /* @__PURE__ */ d.jsx(
1313
+ Bn,
1314
+ {
1315
+ "data-slot": "select-scroll-up-button",
1316
+ className: z(
1317
+ "flex cursor-default items-center justify-center py-1",
1318
+ e
1319
+ ),
1320
+ ...n,
1321
+ children: /* @__PURE__ */ d.jsx(on, { className: "size-4" })
1322
+ }
1323
+ );
1324
+ }
1325
+ function xr({
1326
+ className: e,
1327
+ ...n
1328
+ }) {
1329
+ return /* @__PURE__ */ d.jsx(
1330
+ Hn,
1331
+ {
1332
+ "data-slot": "select-scroll-down-button",
1333
+ className: z(
1334
+ "flex cursor-default items-center justify-center py-1",
1335
+ e
1336
+ ),
1337
+ ...n,
1338
+ children: /* @__PURE__ */ d.jsx(Be, { className: "size-4" })
1339
+ }
1340
+ );
1341
+ }
1342
+ function Pr({
1343
+ options: e,
1344
+ value: n,
1345
+ onValueChange: t,
1346
+ placeholder: s = "Select...",
1347
+ emptyText: o = "No results found.",
1348
+ disabled: c = !1,
1349
+ zIndex: l
1350
+ }) {
1351
+ const [a, p] = r.useState(!1), [u, m] = r.useState(""), g = e.find((x) => x.value === n), E = u ? e.filter(
1352
+ (x) => x.label.toLowerCase().includes(u.toLowerCase())
1353
+ ) : e;
1354
+ return (
1355
+ // `modal` gives the popover its own scroll lock. Without it, a surrounding
1356
+ // dialog's lock swallows wheel events over the option list.
1357
+ /* @__PURE__ */ d.jsxs(
1358
+ Qt,
1359
+ {
1360
+ open: a,
1361
+ onOpenChange: (x) => {
1362
+ p(x), x || m("");
1363
+ },
1364
+ modal: !0,
1365
+ children: [
1366
+ /* @__PURE__ */ d.jsx(en, { asChild: !0, children: /* @__PURE__ */ d.jsxs(
1367
+ "button",
1368
+ {
1369
+ type: "button",
1370
+ role: "combobox",
1371
+ "aria-expanded": a,
1372
+ disabled: c,
1373
+ className: z(
1374
+ "border-input flex h-9 w-full cursor-pointer items-center justify-between gap-2 rounded-md border bg-transparent px-3 text-sm shadow-xs transition-[color,box-shadow]",
1375
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:outline-none",
1376
+ a && "border-ring ring-ring/50 ring-[3px]",
1377
+ c && "cursor-not-allowed opacity-50"
1378
+ ),
1379
+ children: [
1380
+ /* @__PURE__ */ d.jsx(
1381
+ "span",
1382
+ {
1383
+ className: z(
1384
+ "truncate",
1385
+ !g && "text-muted-foreground"
1386
+ ),
1387
+ children: g ? g.label : s
1388
+ }
1389
+ ),
1390
+ /* @__PURE__ */ d.jsx(Be, { className: "size-4 shrink-0 opacity-50" })
1391
+ ]
1392
+ }
1393
+ ) }),
1394
+ /* @__PURE__ */ d.jsx(
1395
+ tn,
1396
+ {
1397
+ className: "bg-popover w-[var(--radix-popover-trigger-width)] rounded-md border p-0 shadow-md",
1398
+ align: "start",
1399
+ style: l === void 0 ? void 0 : { zIndex: l },
1400
+ children: /* @__PURE__ */ d.jsxs(ur, { shouldFilter: !1, children: [
1401
+ /* @__PURE__ */ d.jsx(
1402
+ pr,
1403
+ {
1404
+ placeholder: s,
1405
+ value: u,
1406
+ onValueChange: m
1407
+ }
1408
+ ),
1409
+ /* @__PURE__ */ d.jsxs(fr, { children: [
1410
+ E.length === 0 && /* @__PURE__ */ d.jsx(mr, { children: o }),
1411
+ /* @__PURE__ */ d.jsx(hr, { children: E.map((x) => /* @__PURE__ */ d.jsxs(
1412
+ vr,
1413
+ {
1414
+ value: x.label,
1415
+ onSelect: () => {
1416
+ t(x.value === n ? "" : x.value), p(!1), m("");
1417
+ },
1418
+ children: [
1419
+ x.label,
1420
+ /* @__PURE__ */ d.jsx(
1421
+ Ye,
1422
+ {
1423
+ className: z(
1424
+ "ml-auto size-4",
1425
+ n === x.value ? "opacity-100" : "opacity-0"
1426
+ )
1427
+ }
1428
+ )
1429
+ ]
1430
+ },
1431
+ x.value
1432
+ )) })
1433
+ ] })
1434
+ ] })
1435
+ }
1436
+ )
1437
+ ]
1438
+ }
1439
+ )
1440
+ );
1441
+ }
1442
+ export {
1443
+ Pr as C,
1444
+ Cr as S,
1445
+ Er as a,
1446
+ Ir as b,
1447
+ Rr as c,
1448
+ Tr as d,
1449
+ ur as e,
1450
+ pr as f,
1451
+ fr as g,
1452
+ mr as h,
1453
+ hr as i,
1454
+ vr as j
1455
+ };