efficient-shell 8.33.0 → 8.35.0

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 (476) hide show
  1. package/README.md +66 -15
  2. package/THIRD_PARTY_NOTICES.md +11 -2
  3. package/dist/{Browser-V3NK5J6A.js → Browser-ERZNOFN7.js} +14 -14
  4. package/dist/Calculator-NXIOZMML.js +29 -0
  5. package/dist/{CurrencyConverter-S7LG5PMX.js → CurrencyConverter-57WUTV4H.js} +12 -12
  6. package/dist/{Documents-EKGXGENC.js → Documents-POWS4L44.js} +7 -7
  7. package/dist/{Files-5J4CR3CU.js → Files-O44UH6ZF.js} +40 -40
  8. package/dist/{Notepad-GTU3U27L.js → Notepad-66ZCGUHC.js} +9 -9
  9. package/dist/PdfViewer-KSLOYXMD.js +1 -0
  10. package/dist/{PomodoroTimer-2HPCAEI5.js → PomodoroTimer-GLYNCO4H.js} +17 -17
  11. package/dist/{Preview-TMS6JTPA.js → Preview-WZDFVBNJ.js} +15 -15
  12. package/dist/Sidebar-QQFJJWE2.js +43 -0
  13. package/dist/{Spreadsheet-P77Z2TVQ.js → Spreadsheet-OYAVNRCT.js} +14 -14
  14. package/dist/{Stock-VNFYS73L.js → Stock-CIHUZOQS.js} +7 -7
  15. package/dist/{Weather-DS4YZ6SH.js → Weather-UKLNJ3VF.js} +13 -13
  16. package/dist/{WorldClock-7S4TITSF.js → WorldClock-OZ3I7D2M.js} +6 -6
  17. package/dist/ai/index.d.ts +48 -10
  18. package/dist/ai/index.js +38 -33
  19. package/dist/ai.css +1 -1
  20. package/dist/apps/index.js +1 -1
  21. package/dist/bin/media-host-check.js +1 -1
  22. package/dist/bin/ui-check.js +1 -1
  23. package/dist/chunk-243NPEG6.js +2 -0
  24. package/dist/{chunk-L3NYH4QV.js → chunk-2AHHM4SK.js} +39 -39
  25. package/dist/{chunk-7CFH6Y4T.js → chunk-2F7ZOMKK.js} +1 -1
  26. package/dist/chunk-2PWZNFFP.js +19 -0
  27. package/dist/{chunk-KIBL6M3T.js → chunk-2SHYR3RA.js} +4 -3
  28. package/dist/{chunk-G433MKIN.js → chunk-2U2GJCSP.js} +5 -5
  29. package/dist/chunk-2UCDJCGZ.js +4 -0
  30. package/dist/{chunk-ZN3O2KJ7.js → chunk-2WL3Q7VW.js} +12 -12
  31. package/dist/chunk-2ZD67TDP.js +2 -0
  32. package/dist/chunk-3ER2WJNL.js +2 -0
  33. package/dist/chunk-44F7JLNV.js +2 -0
  34. package/dist/chunk-474G67EG.js +6 -0
  35. package/dist/chunk-47OCVZXD.js +2 -0
  36. package/dist/chunk-4CFQXH5N.js +2 -0
  37. package/dist/chunk-4FNGR474.js +2 -0
  38. package/dist/{chunk-XWLWG4HS.js → chunk-4GVH4ZUH.js} +1 -1
  39. package/dist/{chunk-YRWRA7MW.js → chunk-4HCRZHIX.js} +1 -1
  40. package/dist/chunk-4L7GLO5W.js +2 -0
  41. package/dist/{chunk-MXHEREC6.js → chunk-4MO375G3.js} +3 -3
  42. package/dist/chunk-4RDYNULI.js +2 -0
  43. package/dist/{chunk-WFWDABGV.js → chunk-4RNF6MNW.js} +2 -2
  44. package/dist/chunk-5DFKPSJQ.js +1 -0
  45. package/dist/chunk-5FCEBKT2.js +7 -0
  46. package/dist/chunk-5HDMPCZP.js +2 -0
  47. package/dist/chunk-5KZ4WKUI.js +2 -0
  48. package/dist/{chunk-DGLCMYSQ.js → chunk-5N5DBTTF.js} +11 -11
  49. package/dist/{chunk-KNVE7CMS.js → chunk-5OX6KXWY.js} +1 -1
  50. package/dist/{chunk-PNQ4EYYM.js → chunk-5YELPBUT.js} +3 -3
  51. package/dist/chunk-64ZHCEZN.js +5 -0
  52. package/dist/{chunk-Y2D2YMFY.js → chunk-6ANFVX4M.js} +12 -12
  53. package/dist/chunk-6I7EODFJ.js +7 -0
  54. package/dist/chunk-6IUDFVTN.js +2 -0
  55. package/dist/chunk-75IWV4ZF.js +2 -0
  56. package/dist/chunk-77SI7AKG.js +2 -0
  57. package/dist/{chunk-KK5MX7EH.js → chunk-7ACSSYEZ.js} +13 -13
  58. package/dist/chunk-7GB7CVQI.js +2 -0
  59. package/dist/chunk-7KCJ77BP.js +2 -0
  60. package/dist/chunk-7P3DXO3E.js +2 -0
  61. package/dist/{chunk-GI7FOLDX.js → chunk-ACW3J77L.js} +1 -1
  62. package/dist/{chunk-ERMZ75FO.js → chunk-AF7R2MV4.js} +1 -1
  63. package/dist/{chunk-QQK3XS6H.js → chunk-AZU7YOES.js} +8 -8
  64. package/dist/{chunk-NFR4QZL2.js → chunk-BHMUOWAE.js} +4 -4
  65. package/dist/chunk-BWIX3YIH.js +2 -0
  66. package/dist/{chunk-XEKPJGVZ.js → chunk-BX2IOAD5.js} +1 -1
  67. package/dist/chunk-BXQYRG7P.js +2 -0
  68. package/dist/{chunk-UB4BTRSB.js → chunk-BYCOB6WT.js} +1 -1
  69. package/dist/chunk-BZMZTPS6.js +1 -0
  70. package/dist/chunk-BZR43D3G.js +2 -0
  71. package/dist/chunk-CAMLFCGY.js +29 -0
  72. package/dist/chunk-CAUWHLN7.js +4 -0
  73. package/dist/{chunk-3GT6LKCC.js → chunk-CCPNMYCK.js} +1 -1
  74. package/dist/{chunk-RAAUW5OZ.js → chunk-DG2WU3BU.js} +2 -2
  75. package/dist/chunk-DIN3EFOM.js +14 -0
  76. package/dist/chunk-DS6R5R3O.js +2 -0
  77. package/dist/{chunk-WJ3XSJ6B.js → chunk-EBC4XFL2.js} +1 -1
  78. package/dist/{chunk-37JDUDCO.js → chunk-ECCUEG3J.js} +1 -1
  79. package/dist/chunk-EHMDGAWA.js +2 -0
  80. package/dist/{chunk-FJXYKN7R.js → chunk-EM6BEHAD.js} +8 -8
  81. package/dist/chunk-EQPVQY5E.js +2 -0
  82. package/dist/{chunk-KFXVHP37.js → chunk-EVB35JP5.js} +1 -1
  83. package/dist/{chunk-FL2PUQX7.js → chunk-EW6FRPFJ.js} +1 -1
  84. package/dist/{chunk-JCMP5KMS.js → chunk-EZY4CO4A.js} +6 -6
  85. package/dist/chunk-FATXXVV3.js +2 -0
  86. package/dist/chunk-FEVWWOGL.js +2 -0
  87. package/dist/{chunk-PJCVNFWM.js → chunk-FKZEGBLK.js} +10 -10
  88. package/dist/chunk-FMERDO2X.js +2 -0
  89. package/dist/{chunk-DTSCO7VM.js → chunk-FMKTVZAO.js} +1 -1
  90. package/dist/chunk-FOXMWLVS.js +2 -0
  91. package/dist/{chunk-IZCODCSC.js → chunk-FTKKGGOQ.js} +1 -1
  92. package/dist/chunk-FUSCAZEK.js +2 -0
  93. package/dist/{chunk-4S4523B2.js → chunk-G2MJTE6X.js} +12 -12
  94. package/dist/chunk-G4GQOAWS.js +2 -0
  95. package/dist/{chunk-EZGY6CFN.js → chunk-GK3QH63P.js} +1 -1
  96. package/dist/{chunk-QGDZ6RAI.js → chunk-HAIMJAI4.js} +2 -2
  97. package/dist/chunk-HMHL27AU.js +6 -0
  98. package/dist/chunk-I27TFZJH.js +2 -0
  99. package/dist/chunk-IBHBPSQN.js +2 -0
  100. package/dist/{chunk-4AAGZQX7.js → chunk-IHEEJO5S.js} +1 -1
  101. package/dist/chunk-INUXPG27.js +2 -0
  102. package/dist/{chunk-WQNIXV4T.js → chunk-IUCIYWTT.js} +8 -8
  103. package/dist/chunk-IWQSBA3D.js +2 -0
  104. package/dist/chunk-JBQWR4SX.js +8 -0
  105. package/dist/{chunk-AX7KPMDV.js → chunk-JDKRQG7X.js} +2 -2
  106. package/dist/chunk-JMWKD4R5.js +2 -0
  107. package/dist/chunk-JREQY3YN.js +2 -0
  108. package/dist/chunk-JVIOAZHW.js +14 -0
  109. package/dist/chunk-K4RFJ7P2.js +2 -0
  110. package/dist/chunk-KTMEHSTB.js +2 -0
  111. package/dist/{chunk-FOLZVO2Z.js → chunk-L3G3YHVN.js} +13 -13
  112. package/dist/chunk-L65BESIE.js +1 -0
  113. package/dist/chunk-LQD7K7HK.js +2 -0
  114. package/dist/{chunk-ZEKM6HAA.js → chunk-M2AIC7IK.js} +2 -2
  115. package/dist/{chunk-KDZUWQEG.js → chunk-M2KV4WKR.js} +1 -1
  116. package/dist/{chunk-H3BC4KDE.js → chunk-M2LLVSBR.js} +1 -1
  117. package/dist/{chunk-SAKHGHF5.js → chunk-MC43PRTL.js} +1 -1
  118. package/dist/{chunk-VRUDENTZ.js → chunk-MICWRC72.js} +7 -7
  119. package/dist/chunk-MTZUYC4Y.js +5 -0
  120. package/dist/chunk-MVJ34HIV.js +2 -0
  121. package/dist/{chunk-WTY3SXO7.js → chunk-MY755PTJ.js} +1 -1
  122. package/dist/chunk-NEQFHRF3.js +2 -0
  123. package/dist/chunk-NFMDU4EJ.js +4 -0
  124. package/dist/chunk-NK7HBFNQ.js +2 -0
  125. package/dist/chunk-NKZNPYDB.js +3 -0
  126. package/dist/chunk-NTME34BP.js +2 -0
  127. package/dist/chunk-NTWI7EGJ.js +4 -0
  128. package/dist/{chunk-YSFLXPUS.js → chunk-NUSSZJF2.js} +5 -5
  129. package/dist/chunk-NZBQVE3Q.js +2 -0
  130. package/dist/{chunk-RGBX3EVC.js → chunk-O2YAB6WK.js} +8 -8
  131. package/dist/{chunk-TRZPF2CE.js → chunk-OFKWTOXK.js} +3 -3
  132. package/dist/chunk-OIH56GH5.js +2 -0
  133. package/dist/chunk-OKRAYHGW.js +2 -0
  134. package/dist/chunk-OM5K4WCB.js +2 -0
  135. package/dist/chunk-ONC3BFFM.js +2 -0
  136. package/dist/chunk-OSXM35MX.js +2 -0
  137. package/dist/{chunk-ZT5Y5JZB.js → chunk-P42YNSKI.js} +4 -4
  138. package/dist/chunk-PAZU27H5.js +2 -0
  139. package/dist/chunk-PBGMVLOF.js +2 -0
  140. package/dist/{chunk-TFMOGKW2.js → chunk-PCKYNZ5Y.js} +10 -10
  141. package/dist/chunk-PRJJK7VR.js +2 -0
  142. package/dist/chunk-PYW3HX7A.js +2 -0
  143. package/dist/{chunk-YW2DH6YQ.js → chunk-QPWD5CCS.js} +5 -5
  144. package/dist/chunk-QTM26JQP.js +2 -0
  145. package/dist/chunk-QYEMC2OA.js +2 -0
  146. package/dist/chunk-R2IXRW5N.js +2 -0
  147. package/dist/{chunk-RUQEB2ZC.js → chunk-R4C3GGCS.js} +3 -3
  148. package/dist/chunk-RAHDUMQ5.js +2 -0
  149. package/dist/{chunk-3V5Z2BJY.js → chunk-RB2F65YJ.js} +12 -12
  150. package/dist/chunk-RBXMTHOT.js +4 -0
  151. package/dist/chunk-ROUTBYMG.js +5 -0
  152. package/dist/{chunk-BZV4K6GR.js → chunk-RPJ2GC3K.js} +20 -20
  153. package/dist/{chunk-XC55NMXR.js → chunk-S4IW5OL3.js} +1 -1
  154. package/dist/chunk-S4J4B7LY.js +5 -0
  155. package/dist/{chunk-HVX37PKU.js → chunk-SEXLHFMR.js} +1 -1
  156. package/dist/{chunk-SYSDAVZ3.js → chunk-SWHRP52Y.js} +1 -1
  157. package/dist/chunk-T3NJAOJL.js +2 -0
  158. package/dist/{chunk-NWP6IJYK.js → chunk-TANR67XF.js} +2 -2
  159. package/dist/chunk-TI5WUO3V.js +2 -0
  160. package/dist/{chunk-4F3IKYUO.js → chunk-TOVHLONK.js} +6 -6
  161. package/dist/{chunk-JOIWDQRJ.js → chunk-TRD22FC7.js} +6 -6
  162. package/dist/{chunk-YGZMD6TZ.js → chunk-TTY62G5D.js} +16 -16
  163. package/dist/{chunk-YCQVEJOT.js → chunk-TW6WYYBC.js} +2 -2
  164. package/dist/{chunk-B55IXYDR.js → chunk-TZHWF3P5.js} +2 -2
  165. package/dist/chunk-UKC6VJE4.js +2 -0
  166. package/dist/chunk-URWQO4KB.js +2 -0
  167. package/dist/{chunk-IAQC775L.js → chunk-UZ3CZQA4.js} +1 -1
  168. package/dist/chunk-V3GM5NXB.js +2 -0
  169. package/dist/chunk-V6Q2GZAI.js +2 -0
  170. package/dist/chunk-VRODVMV3.js +1 -0
  171. package/dist/chunk-VW4FHT46.js +2 -0
  172. package/dist/chunk-W5DLG5T2.js +2 -0
  173. package/dist/chunk-W5I35GZZ.js +2 -0
  174. package/dist/{chunk-V4KQUOUP.js → chunk-WKRFD4E4.js} +8 -8
  175. package/dist/{chunk-PDXD6DT7.js → chunk-WME5DFB6.js} +1 -1
  176. package/dist/chunk-WYDD26UO.js +2 -0
  177. package/dist/{chunk-3C67XRVJ.js → chunk-XB2YPUKR.js} +8 -8
  178. package/dist/{chunk-DWYNPXSB.js → chunk-XDDTFV32.js} +1 -1
  179. package/dist/chunk-XUYWUGDM.js +2 -0
  180. package/dist/{chunk-UQBPKZUR.js → chunk-XZL3HCWH.js} +1 -1
  181. package/dist/{chunk-IK4Y7WEP.js → chunk-YBB56N6X.js} +1 -1
  182. package/dist/chunk-YHYAGJ6V.js +2 -0
  183. package/dist/chunk-YKKMR5DU.js +8 -0
  184. package/dist/chunk-YVULGIDQ.js +2 -0
  185. package/dist/chunk-Z5XEAC32.js +2 -0
  186. package/dist/chunk-ZBL4CN2E.js +2 -0
  187. package/dist/chunk-ZEN67DFI.js +2 -0
  188. package/dist/{chunk-X5AZHR2J.js → chunk-ZRHQGFO5.js} +2 -2
  189. package/dist/{chunk-O3HRFXNN.js → chunk-ZXSMSVLU.js} +3 -3
  190. package/dist/chunk-ZXU4DEQM.js +2 -0
  191. package/dist/chunk-ZZIVSJ2B.js +2 -0
  192. package/dist/data/ListLoadError.js +1 -1
  193. package/dist/format/index.js +1 -1
  194. package/dist/forms/BorderInput.js +1 -1
  195. package/dist/forms/BrandAssetEditor.js +1 -1
  196. package/dist/forms/Calendar.js +1 -1
  197. package/dist/forms/ColorPicker.js +1 -1
  198. package/dist/forms/ComposerAttachments.js +1 -1
  199. package/dist/forms/CornersInput.js +1 -1
  200. package/dist/forms/DatePicker.js +1 -1
  201. package/dist/forms/DateRangePicker.js +1 -1
  202. package/dist/forms/DisplayChips.js +1 -1
  203. package/dist/forms/FilePicker.js +1 -1
  204. package/dist/forms/IconPicker.js +1 -1
  205. package/dist/forms/InputNumber.js +1 -1
  206. package/dist/forms/LinkPicker.js +1 -1
  207. package/dist/forms/MediaLibrary.js +1 -1
  208. package/dist/forms/MediaUploadField.js +1 -1
  209. package/dist/forms/MediaUploadGrid.js +1 -1
  210. package/dist/forms/MediaUsedInList.js +1 -1
  211. package/dist/forms/PositionInput.js +1 -1
  212. package/dist/forms/Select.d.ts +1 -1
  213. package/dist/forms/Select.js +1 -1
  214. package/dist/forms/SidesInput.js +1 -1
  215. package/dist/forms/Slider.js +1 -1
  216. package/dist/forms/Snippet.js +1 -1
  217. package/dist/forms/SplitButton.js +1 -1
  218. package/dist/forms/Switch.js +1 -1
  219. package/dist/forms/TagInput.js +1 -1
  220. package/dist/forms/TextToolbar.d.ts +4 -1
  221. package/dist/forms/TextToolbar.js +1 -1
  222. package/dist/forms/WidthsBar.js +1 -1
  223. package/dist/forms/mediaLibraryMenu.js +1 -1
  224. package/dist/forms/settingRowContext.d.ts +11 -1
  225. package/dist/forms/settingRowContext.js +1 -1
  226. package/dist/forms/textAlign.d.ts +89 -0
  227. package/dist/forms/textAlign.js +2 -0
  228. package/dist/icons/efficient-glyphs.d.ts +61 -0
  229. package/dist/icons/efficient-glyphs.js +1 -1
  230. package/dist/icons/efficient-looks.d.ts +22 -0
  231. package/dist/icons/efficient-looks.js +1 -1
  232. package/dist/icons/efficient-meanings.d.ts +61 -0
  233. package/dist/icons/efficient-meanings.js +1 -1
  234. package/dist/icons/efficient.d.ts +61 -0
  235. package/dist/icons/efficient.js +1 -1
  236. package/dist/icons/glyphs/BrandAdyenIcon.d.ts +11 -0
  237. package/dist/icons/glyphs/BrandAdyenIcon.js +1 -0
  238. package/dist/icons/glyphs/BrandAfterpayIcon.d.ts +11 -0
  239. package/dist/icons/glyphs/BrandAfterpayIcon.js +1 -0
  240. package/dist/icons/glyphs/BrandAircallIcon.d.ts +11 -0
  241. package/dist/icons/glyphs/BrandAircallIcon.js +1 -0
  242. package/dist/icons/glyphs/BrandAmericanexpressIcon.d.ts +11 -0
  243. package/dist/icons/glyphs/BrandAmericanexpressIcon.js +1 -0
  244. package/dist/icons/glyphs/BrandApplepayIcon.d.ts +11 -0
  245. package/dist/icons/glyphs/BrandApplepayIcon.js +1 -0
  246. package/dist/icons/glyphs/BrandBigcommerceIcon.d.ts +11 -0
  247. package/dist/icons/glyphs/BrandBigcommerceIcon.js +1 -0
  248. package/dist/icons/glyphs/BrandBrevoIcon.d.ts +11 -0
  249. package/dist/icons/glyphs/BrandBrevoIcon.js +1 -0
  250. package/dist/icons/glyphs/BrandCalendlyIcon.d.ts +11 -0
  251. package/dist/icons/glyphs/BrandCalendlyIcon.js +1 -0
  252. package/dist/icons/glyphs/BrandCampaignmonitorIcon.d.ts +11 -0
  253. package/dist/icons/glyphs/BrandCampaignmonitorIcon.js +1 -0
  254. package/dist/icons/glyphs/BrandDhlIcon.d.ts +11 -0
  255. package/dist/icons/glyphs/BrandDhlIcon.js +1 -0
  256. package/dist/icons/glyphs/BrandDropboxIcon.d.ts +11 -0
  257. package/dist/icons/glyphs/BrandDropboxIcon.js +1 -0
  258. package/dist/icons/glyphs/BrandEbayIcon.d.ts +11 -0
  259. package/dist/icons/glyphs/BrandEbayIcon.js +1 -0
  260. package/dist/icons/glyphs/BrandEtsyIcon.d.ts +11 -0
  261. package/dist/icons/glyphs/BrandEtsyIcon.js +1 -0
  262. package/dist/icons/glyphs/BrandFacebookIcon.d.ts +11 -0
  263. package/dist/icons/glyphs/BrandFacebookIcon.js +1 -0
  264. package/dist/icons/glyphs/BrandFedexIcon.d.ts +11 -0
  265. package/dist/icons/glyphs/BrandFedexIcon.js +1 -0
  266. package/dist/icons/glyphs/BrandGmailIcon.d.ts +11 -0
  267. package/dist/icons/glyphs/BrandGmailIcon.js +1 -0
  268. package/dist/icons/glyphs/BrandGoogleadsIcon.d.ts +11 -0
  269. package/dist/icons/glyphs/BrandGoogleadsIcon.js +1 -0
  270. package/dist/icons/glyphs/BrandGoogleanalyticsIcon.d.ts +11 -0
  271. package/dist/icons/glyphs/BrandGoogleanalyticsIcon.js +1 -0
  272. package/dist/icons/glyphs/BrandGooglecalendarIcon.d.ts +11 -0
  273. package/dist/icons/glyphs/BrandGooglecalendarIcon.js +1 -0
  274. package/dist/icons/glyphs/BrandGoogledriveIcon.d.ts +11 -0
  275. package/dist/icons/glyphs/BrandGoogledriveIcon.js +1 -0
  276. package/dist/icons/glyphs/BrandGooglepayIcon.d.ts +11 -0
  277. package/dist/icons/glyphs/BrandGooglepayIcon.js +1 -0
  278. package/dist/icons/glyphs/BrandGooglesheetsIcon.d.ts +11 -0
  279. package/dist/icons/glyphs/BrandGooglesheetsIcon.js +1 -0
  280. package/dist/icons/glyphs/BrandHubspotIcon.d.ts +11 -0
  281. package/dist/icons/glyphs/BrandHubspotIcon.js +1 -0
  282. package/dist/icons/glyphs/BrandInstagramIcon.d.ts +11 -0
  283. package/dist/icons/glyphs/BrandInstagramIcon.js +1 -0
  284. package/dist/icons/glyphs/BrandIntercomIcon.d.ts +11 -0
  285. package/dist/icons/glyphs/BrandIntercomIcon.js +1 -0
  286. package/dist/icons/glyphs/BrandKlarnaIcon.d.ts +11 -0
  287. package/dist/icons/glyphs/BrandKlarnaIcon.js +1 -0
  288. package/dist/icons/glyphs/BrandLineIcon.d.ts +11 -0
  289. package/dist/icons/glyphs/BrandLineIcon.js +1 -0
  290. package/dist/icons/glyphs/BrandLinkedinIcon.d.ts +11 -0
  291. package/dist/icons/glyphs/BrandLinkedinIcon.js +1 -0
  292. package/dist/icons/glyphs/BrandMailchimpIcon.d.ts +11 -0
  293. package/dist/icons/glyphs/BrandMailchimpIcon.js +1 -0
  294. package/dist/icons/glyphs/BrandMailgunIcon.d.ts +11 -0
  295. package/dist/icons/glyphs/BrandMailgunIcon.js +1 -0
  296. package/dist/icons/glyphs/BrandMakeIcon.d.ts +11 -0
  297. package/dist/icons/glyphs/BrandMakeIcon.js +1 -0
  298. package/dist/icons/glyphs/BrandMastercardIcon.d.ts +11 -0
  299. package/dist/icons/glyphs/BrandMastercardIcon.js +1 -0
  300. package/dist/icons/glyphs/BrandMessengerIcon.d.ts +11 -0
  301. package/dist/icons/glyphs/BrandMessengerIcon.js +1 -0
  302. package/dist/icons/glyphs/BrandMetaIcon.d.ts +11 -0
  303. package/dist/icons/glyphs/BrandMetaIcon.js +1 -0
  304. package/dist/icons/glyphs/BrandMyobIcon.d.ts +11 -0
  305. package/dist/icons/glyphs/BrandMyobIcon.js +1 -0
  306. package/dist/icons/glyphs/BrandNotionIcon.d.ts +11 -0
  307. package/dist/icons/glyphs/BrandNotionIcon.js +1 -0
  308. package/dist/icons/glyphs/BrandPaypalIcon.d.ts +11 -0
  309. package/dist/icons/glyphs/BrandPaypalIcon.js +1 -0
  310. package/dist/icons/glyphs/BrandPinterestIcon.d.ts +11 -0
  311. package/dist/icons/glyphs/BrandPinterestIcon.js +1 -0
  312. package/dist/icons/glyphs/BrandQuickbooksIcon.d.ts +11 -0
  313. package/dist/icons/glyphs/BrandQuickbooksIcon.js +1 -0
  314. package/dist/icons/glyphs/BrandSageIcon.d.ts +11 -0
  315. package/dist/icons/glyphs/BrandSageIcon.js +1 -0
  316. package/dist/icons/glyphs/BrandShopifyIcon.d.ts +11 -0
  317. package/dist/icons/glyphs/BrandShopifyIcon.js +1 -0
  318. package/dist/icons/glyphs/BrandSquareIcon.d.ts +11 -0
  319. package/dist/icons/glyphs/BrandSquareIcon.js +1 -0
  320. package/dist/icons/glyphs/BrandSquarespaceIcon.d.ts +11 -0
  321. package/dist/icons/glyphs/BrandSquarespaceIcon.js +1 -0
  322. package/dist/icons/glyphs/BrandStripeIcon.d.ts +11 -0
  323. package/dist/icons/glyphs/BrandStripeIcon.js +1 -0
  324. package/dist/icons/glyphs/BrandTelegramIcon.d.ts +11 -0
  325. package/dist/icons/glyphs/BrandTelegramIcon.js +1 -0
  326. package/dist/icons/glyphs/BrandTiktokIcon.d.ts +11 -0
  327. package/dist/icons/glyphs/BrandTiktokIcon.js +1 -0
  328. package/dist/icons/glyphs/BrandTrelloIcon.d.ts +11 -0
  329. package/dist/icons/glyphs/BrandTrelloIcon.js +1 -0
  330. package/dist/icons/glyphs/BrandUpsIcon.d.ts +11 -0
  331. package/dist/icons/glyphs/BrandUpsIcon.js +1 -0
  332. package/dist/icons/glyphs/BrandVisaIcon.d.ts +11 -0
  333. package/dist/icons/glyphs/BrandVisaIcon.js +1 -0
  334. package/dist/icons/glyphs/BrandVonageIcon.d.ts +11 -0
  335. package/dist/icons/glyphs/BrandVonageIcon.js +1 -0
  336. package/dist/icons/glyphs/BrandWechatIcon.d.ts +11 -0
  337. package/dist/icons/glyphs/BrandWechatIcon.js +1 -0
  338. package/dist/icons/glyphs/BrandWhatsappIcon.d.ts +11 -0
  339. package/dist/icons/glyphs/BrandWhatsappIcon.js +1 -0
  340. package/dist/icons/glyphs/BrandWiseIcon.d.ts +11 -0
  341. package/dist/icons/glyphs/BrandWiseIcon.js +1 -0
  342. package/dist/icons/glyphs/BrandWixIcon.d.ts +11 -0
  343. package/dist/icons/glyphs/BrandWixIcon.js +1 -0
  344. package/dist/icons/glyphs/BrandWoocommerceIcon.d.ts +11 -0
  345. package/dist/icons/glyphs/BrandWoocommerceIcon.js +1 -0
  346. package/dist/icons/glyphs/BrandXIcon.d.ts +11 -0
  347. package/dist/icons/glyphs/BrandXIcon.js +1 -0
  348. package/dist/icons/glyphs/BrandXeroIcon.d.ts +11 -0
  349. package/dist/icons/glyphs/BrandXeroIcon.js +1 -0
  350. package/dist/icons/glyphs/BrandYoutubeIcon.d.ts +11 -0
  351. package/dist/icons/glyphs/BrandYoutubeIcon.js +1 -0
  352. package/dist/icons/glyphs/BrandZapierIcon.d.ts +11 -0
  353. package/dist/icons/glyphs/BrandZapierIcon.js +1 -0
  354. package/dist/icons/glyphs/BrandZendeskIcon.d.ts +11 -0
  355. package/dist/icons/glyphs/BrandZendeskIcon.js +1 -0
  356. package/dist/icons/glyphs/BrandZoomIcon.d.ts +11 -0
  357. package/dist/icons/glyphs/BrandZoomIcon.js +1 -0
  358. package/dist/icons/index.d.ts +6 -4
  359. package/dist/icons/index.js +1 -1
  360. package/dist/icons/looks/BrandFacebookOutlineIcon.d.ts +11 -0
  361. package/dist/icons/looks/BrandFacebookOutlineIcon.js +1 -0
  362. package/dist/icons/looks/BrandFacebookSolidIcon.d.ts +11 -0
  363. package/dist/icons/looks/BrandFacebookSolidIcon.js +1 -0
  364. package/dist/icons/looks/BrandInstagramOutlineIcon.d.ts +11 -0
  365. package/dist/icons/looks/BrandInstagramOutlineIcon.js +1 -0
  366. package/dist/icons/looks/BrandInstagramSolidIcon.d.ts +11 -0
  367. package/dist/icons/looks/BrandInstagramSolidIcon.js +1 -0
  368. package/dist/icons/looks/BrandLineOutlineIcon.d.ts +11 -0
  369. package/dist/icons/looks/BrandLineOutlineIcon.js +1 -0
  370. package/dist/icons/looks/BrandLineSolidIcon.d.ts +11 -0
  371. package/dist/icons/looks/BrandLineSolidIcon.js +1 -0
  372. package/dist/icons/looks/BrandLinkedinOutlineIcon.d.ts +11 -0
  373. package/dist/icons/looks/BrandLinkedinOutlineIcon.js +1 -0
  374. package/dist/icons/looks/BrandLinkedinSolidIcon.d.ts +11 -0
  375. package/dist/icons/looks/BrandLinkedinSolidIcon.js +1 -0
  376. package/dist/icons/looks/BrandPinterestOutlineIcon.d.ts +11 -0
  377. package/dist/icons/looks/BrandPinterestOutlineIcon.js +1 -0
  378. package/dist/icons/looks/BrandPinterestSolidIcon.d.ts +11 -0
  379. package/dist/icons/looks/BrandPinterestSolidIcon.js +1 -0
  380. package/dist/icons/looks/BrandTelegramOutlineIcon.d.ts +11 -0
  381. package/dist/icons/looks/BrandTelegramOutlineIcon.js +1 -0
  382. package/dist/icons/looks/BrandTelegramSolidIcon.d.ts +11 -0
  383. package/dist/icons/looks/BrandTelegramSolidIcon.js +1 -0
  384. package/dist/icons/looks/BrandTiktokOutlineIcon.d.ts +11 -0
  385. package/dist/icons/looks/BrandTiktokOutlineIcon.js +1 -0
  386. package/dist/icons/looks/BrandTiktokSolidIcon.d.ts +11 -0
  387. package/dist/icons/looks/BrandTiktokSolidIcon.js +1 -0
  388. package/dist/icons/looks/BrandWechatOutlineIcon.d.ts +11 -0
  389. package/dist/icons/looks/BrandWechatOutlineIcon.js +1 -0
  390. package/dist/icons/looks/BrandWechatSolidIcon.d.ts +11 -0
  391. package/dist/icons/looks/BrandWechatSolidIcon.js +1 -0
  392. package/dist/icons/looks/BrandWhatsappOutlineIcon.d.ts +11 -0
  393. package/dist/icons/looks/BrandWhatsappOutlineIcon.js +1 -0
  394. package/dist/icons/looks/BrandWhatsappSolidIcon.d.ts +11 -0
  395. package/dist/icons/looks/BrandWhatsappSolidIcon.js +1 -0
  396. package/dist/icons/looks/BrandXOutlineIcon.d.ts +11 -0
  397. package/dist/icons/looks/BrandXOutlineIcon.js +1 -0
  398. package/dist/icons/looks/BrandXSolidIcon.d.ts +11 -0
  399. package/dist/icons/looks/BrandXSolidIcon.js +1 -0
  400. package/dist/icons/looks/BrandYoutubeOutlineIcon.d.ts +11 -0
  401. package/dist/icons/looks/BrandYoutubeOutlineIcon.js +1 -0
  402. package/dist/icons/looks/BrandYoutubeSolidIcon.d.ts +11 -0
  403. package/dist/icons/looks/BrandYoutubeSolidIcon.js +1 -0
  404. package/dist/icons/looks/map.d.ts +1 -1
  405. package/dist/icons/looks/map.js +1 -1
  406. package/dist/icons/sets.js +1 -1
  407. package/dist/index.d.ts +3 -2
  408. package/dist/index.js +174 -174
  409. package/dist/map/index.js +6 -6
  410. package/dist/markdown/index.js +1 -1
  411. package/dist/names-mX74Rrmy.d.ts +23 -0
  412. package/dist/page-tabs/index.js +5 -5
  413. package/dist/pdf/index.js +1 -1
  414. package/dist/shell/Accordion.js +1 -1
  415. package/dist/shell/AppUpdateBanner.js +1 -1
  416. package/dist/shell/Banner.js +1 -1
  417. package/dist/shell/Breadcrumbs.js +1 -1
  418. package/dist/shell/ColoredBadge.js +1 -1
  419. package/dist/shell/ConfirmDialog.js +1 -1
  420. package/dist/shell/ContextMenu.js +1 -1
  421. package/dist/shell/Dialog.js +1 -1
  422. package/dist/shell/Drawer.js +1 -1
  423. package/dist/shell/DropdownMenu.js +1 -1
  424. package/dist/shell/EmptyState.js +1 -1
  425. package/dist/shell/HelpCenter.js +1 -1
  426. package/dist/shell/ImageLightbox.js +1 -1
  427. package/dist/shell/LanguageSelect.js +1 -1
  428. package/dist/shell/Markdown.d.ts +1 -1
  429. package/dist/shell/Markdown.js +1 -1
  430. package/dist/shell/PageHeader.js +1 -1
  431. package/dist/shell/PopupMenu.js +1 -1
  432. package/dist/shell/ProductionTimeline.js +1 -1
  433. package/dist/shell/Result.js +1 -1
  434. package/dist/shell/SearchableSelect.js +1 -1
  435. package/dist/shell/SettingReset.js +1 -1
  436. package/dist/shell/SettingRow.d.ts +9 -1
  437. package/dist/shell/SettingRow.js +1 -1
  438. package/dist/shell/SidebarLayout.js +1 -1
  439. package/dist/shell/SidebarNav.js +1 -1
  440. package/dist/shell/SortableList.js +1 -1
  441. package/dist/shell/StepChain.js +1 -1
  442. package/dist/shell/Stepper.js +1 -1
  443. package/dist/shell/TopNav.js +1 -1
  444. package/dist/shell/Tree.js +1 -1
  445. package/dist/telemetry/index.js +1 -1
  446. package/dist/templates/AuthScreen.js +1 -1
  447. package/dist/templates/ChatTemplate.js +1 -1
  448. package/dist/templates/CheckoutTemplate.js +1 -1
  449. package/dist/templates/DashboardTemplate.js +1 -1
  450. package/dist/templates/DataTablePage.js +1 -1
  451. package/dist/templates/EmailTemplate.js +1 -1
  452. package/dist/templates/FormLayoutPage.js +1 -1
  453. package/dist/ui/index.d.ts +3 -2
  454. package/dist/ui/index.js +1 -1
  455. package/dist/version.js +1 -1
  456. package/package.json +1 -1
  457. package/dist/Calculator-4JDJKSA7.js +0 -29
  458. package/dist/PdfViewer-67VBUIRD.js +0 -1
  459. package/dist/Sidebar-YB4OVUG5.js +0 -43
  460. package/dist/chunk-367OG4UV.js +0 -5
  461. package/dist/chunk-3JJFBUK6.js +0 -3
  462. package/dist/chunk-4AXJIJDC.js +0 -14
  463. package/dist/chunk-AS4CTEZD.js +0 -8
  464. package/dist/chunk-E4Z5OXBI.js +0 -1
  465. package/dist/chunk-GSS4E7X3.js +0 -1
  466. package/dist/chunk-PNGL4ZW2.js +0 -6
  467. package/dist/chunk-QWPFFWUG.js +0 -29
  468. package/dist/chunk-R3XAXBYV.js +0 -1
  469. package/dist/chunk-STA76WXF.js +0 -2
  470. package/dist/chunk-W7S56JZ7.js +0 -7
  471. package/dist/chunk-WZNGOA4Z.js +0 -1
  472. package/dist/chunk-X7XJBK2E.js +0 -14
  473. package/dist/chunk-ZLXLHKE5.js +0 -19
  474. package/dist/names-DYWfNBkN.d.ts +0 -21
  475. /package/dist/{chunk-2HDDCXTW.js → chunk-EHPZIBOL.js} +0 -0
  476. /package/dist/{chunk-WYHRPXEX.js → chunk-KJRYEKQP.js} +0 -0
@@ -0,0 +1,19 @@
1
+ import{firstEnabledIndex as e,matchTypeahead as t,lastEnabledIndex as r,nextEnabledIndex as i}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as n,groupedRows as a,isOptionGroup as l,OptionCheck as o}from"./chunk-XZL3HCWH.js";import{useSettingAuto as d}from"./chunk-L65BESIE.js";import{inputClasses as s,PLACEHOLDER_INK as c}from"./chunk-PF3ANJFI.js";import{useIsMobile as u}from"./chunk-UGTRSRIW.js";import{optionNoteClass as p}from"./chunk-QR4RM7PO.js";import{Icon as m}from"./chunk-2SHYR3RA.js";import{onOverlayOpen as v}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as h}from"./chunk-62LW225J.js";import{useDropdownPosition as f,MENU_MAX_HEIGHT as b}from"./chunk-GLUJS42B.js";import{solidSurfaceStyle as g}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as x}from"./chunk-E6UCGCOC.js";import{forwardRef as w,useId as k,useState as N,useRef as $,useMemo as D,useCallback as S,useEffect as j,useLayoutEffect as C}from"react";import{createPortal as E}from"react-dom";import{jsxs as H,jsx as I,Fragment as T}from"react/jsx-runtime";var O=e=>e.labelStyle?{lineHeight:1.25,...e.labelStyle}:void 0,R=w(function({value:e,onChange:t,options:r,placeholder:i,invalid:n,className:a="",size:l,touchSize:o,renderOption:c,renderValue:u,valueText:p,readOnly:m,footer:v,changed:h,auto:f,multiple:b,"aria-describedby":g,...y},w){const N=t,$=x(),D=d(),S=f??D,j=k(),C=/* @__PURE__ */H("select",{ref:w,value:e,multiple:b||void 0,onChange:e=>N(b?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),"aria-invalid":n||void 0,"aria-describedby":[g,S?j:void 0].filter(Boolean).join(" ")||void 0,className:s({invalid:n,size:l,auto:S,className:`pr-8 ${a}`.trim()}),...y,children:[void 0!==i&&!b&&/* @__PURE__ */I("option",{value:"",disabled:!0,children:i}),
2
+ /* @__PURE__ */I(z,{items:r})]});return S?/* @__PURE__ */H(T,{children:[C,
3
+ /* @__PURE__ */I("span",{id:j,hidden:!0,children:$.settingView.auto})]}):C});function z({items:e}){const t=e=>/* @__PURE__ */I("option",{value:e.value,disabled:e.disabled,lang:e.lang,children:e.label},e.value);/* @__PURE__ */
4
+ return I(T,{children:e.map((e,r)=>(e=>l(e))(e)?/* @__PURE__ */I("optgroup",{label:e.label,children:e.options.map(t)},`group-${r}`):t(e))})}var A=w(function({value:l,onChange:u,options:w,placeholder:R,invalid:A,className:B="",id:U,disabled:F,size:K,touchSize:L,title:P,multiple:V,renderOption:W,renderValue:M,valueText:G,readOnly:J=!1,footer:q,changed:Q=!1,auto:X,"aria-describedby":Y,"aria-label":Z,"aria-labelledby":_,...ee},te){const[re,ie]=N(!1),[ne,ae]=N(-1),le=$(null),oe=$(null),de=$(null),se=$(null),ce=$([]),ue=()=>se.current??de.current,pe=!!q?.length,me="sm"===K,ve=me?"min-h-7 px-3 py-1 text-xs leading-4":"min-h-(--row-height-menu) px-3 py-2 text-sm leading-5",he=p(me),[fe,be]=N(null),ge=x(),ye=$(re);ye.current=re;const xe=$({buffer:"",timer:null}),we=k(),ke=`${we}-listbox`,Ne=U??`${we}-trigger`,$e=e=>`${we}-opt-${e}`,De=`${we}-changed`,Se=d(),je=X??Se,Ce=`${we}-auto`,Ee=[Y,Q?De:void 0,je?Ce:void 0].filter(Boolean).join(" ")||void 0,He=D(()=>n(w),[w]),Ie=V?l:[],Te=u,Oe=f(oe,re,{matchTriggerWidth:!0,...q?.length?{preferredMaxHeight:Number.POSITIVE_INFINITY}:{}}),Re="undefined"==typeof window?j:C,ze=`${re}|${Oe?.top}|${Oe?.bottom}|${Oe?.maxHeight}|${w.length}`;Re(()=>{be(null)},[ze]),Re(()=>{const e=de.current;if(!re||!e||null!==fe)return;if(e.scrollHeight<=e.clientHeight+1)return;const t=getComputedStyle(e),r=parseFloat(t.paddingTop)||0;parseFloat(t.paddingBottom);const i=e.getBoundingClientRect().top;let n=0;for(const t of e.querySelectorAll('[role="option"]')){const r=t.getBoundingClientRect().bottom-i+e.scrollTop;if(!(r<=e.clientHeight+.5))break;n=r}n>r&&be(Math.floor(n))},[re,fe,ze]);const Ae=V?He.findIndex(e=>Ie.includes(e.value)):He.findIndex(e=>e.value===l),Be=V?He.filter(e=>Ie.includes(e.value)).map(e=>e.label).join(", ")||void 0:Ae>=0?He[Ae].label:void 0,Ue=!V&&Ae>=0?He[Ae].lang:void 0,Fe=V?He.filter(e=>Ie.includes(e.value)):Ae>=0?[He[Ae]]:[],Ke=M&&Fe.length?M(Fe):void 0,Le=void 0!==Ke&&G?G(Fe):void 0,Pe=S((e=!0)=>{ie(!1),ae(-1),e&&oe.current?.focus()},[]),Ve=S(()=>{F||J||(ae(Ae>=0?Ae:e(He)),ie(!0))},[F,J,He,Ae]),We=S(e=>{const t=He[e];if(t&&!t.disabled){if(V){const r=l;return Te(r.includes(t.value)?r.filter(e=>e!==t.value):[...r,t.value]),void ae(e)}Te(t.value),Pe()}},[He,V,l,Te,Pe]);j(()=>{if(!re)return;return y(e=>!("Escape"!==e.key||!ye.current)&&(Pe(),!0),ue)},[re,Pe]),j(()=>{if(!re)return;const e=e=>{const t=e.target;le.current?.contains(t)||ue()?.contains(t)||Pe(!1)};document.addEventListener("pointerdown",e);const t=v(()=>Pe(!1));return()=>{document.removeEventListener("pointerdown",e),t()}},[re,Pe]),j(()=>{!re||ne<0||de.current?.querySelector(`#${CSS.escape($e(ne))}`)?.scrollIntoView({block:"nearest"})},[re,ne]);const Me=S(e=>{const r=xe.current;r.timer&&clearTimeout(r.timer),r.buffer+=e,r.timer=setTimeout(()=>{r.buffer="",r.timer=null},500);const i=re?ne:Ae,n=t(He,r.buffer,i);n<0||(re?ae(n):V?(ae(n),ie(!0)):We(n))},[re,ne,Ae,He,We,V]),Ge=re?a(w,(e,t)=>{const r=(i=e.value,V?Ie.includes(i):l===i);var i;const n=t===ne;/* @__PURE__ */
5
+ return H("div",{id:$e(t),role:"option",lang:e.description||e.labelStyle||W?void 0:e.lang,"aria-selected":r,"aria-disabled":e.disabled||void 0,onPointerEnter:()=>{e.disabled||ae(t)},onClick:()=>We(t),className:`mx-1 cursor-pointer truncate rounded-lg ${ve}${V?" flex items-center gap-2":""}\n ${e.disabled?"cursor-not-allowed text-gray-400":n?"bg-blue-50 text-blue-700":r?"font-medium text-blue-600":"text-gray-700"}`,children:[V&&/* @__PURE__ */I(o,{selected:r}),W?/* @__PURE__ */I("span",{className:"block min-w-0 flex-1 truncate",children:W(e,{selected:r,active:n})}):V?/* @__PURE__ */H("span",{className:"block min-w-0 flex-1",children:[
6
+ /* @__PURE__ */I("span",{lang:e.lang,className:"block truncate",style:O(e),children:e.label}),e.description&&/* @__PURE__ */I("span",{className:he,children:e.description})]}):e.description||e.labelStyle?
7
+ /* @__PURE__ */H(T,{children:[
8
+ /* @__PURE__ */I("span",{lang:e.lang,className:"block truncate",style:O(e),children:e.label}),e.description&&/* @__PURE__ */I("span",{className:he,children:e.description})]}):e.label]},e.value)},we,"mx-1"):null,Je=void 0!==Ke?
9
+ /* @__PURE__ */H("span",{className:"relative block min-w-0 truncate",children:[
10
+ /* @__PURE__ */I("span",{"aria-hidden":"true","data-select-value":"",className:"flex min-w-0 items-center gap-2 truncate",children:Ke}),
11
+ /* @__PURE__ */I("span",{lang:void 0===Le?Ue:void 0,className:"sr-only",children:Le??Be})]}):/* @__PURE__ */I("span",{lang:Ue,className:`block truncate ${void 0===Be?c:""}`,children:Be??R??" "}),qe={zIndex:h.popup,left:Oe?.left,top:Oe?.top,bottom:Oe?.bottom,width:Oe?.width,maxHeight:Oe?.maxHeight??b,visibility:Oe?void 0:"hidden",...g()},Qe=/* @__PURE__ */I("div",{ref:de,id:ke,role:"listbox","aria-labelledby":_??(Z?void 0:Ne),"aria-label":_?void 0:Z,"aria-multiselectable":V||void 0,className:pe?"min-h-0 shrink overflow-y-auto py-1":"fixed overflow-y-auto rounded-(--radius-popup) py-1",style:pe?null!==fe?{maxHeight:fe}:void 0:null!==fe?{...qe,maxHeight:fe}:qe,children:Ge}),Xe=pe?/* @__PURE__ */H("div",{ref:se,className:"fixed flex flex-col overflow-hidden rounded-(--radius-popup)",style:qe,children:[Qe,
12
+ /* @__PURE__ */I("div",{className:"shrink-0 border-t border-(--rosh-glass-solid-border) px-1 py-1",children:q.map((e,t)=>/* @__PURE__ */H("button",{ref:e=>{ce.current[t]=e},type:"button","data-select-action":"","aria-disabled":e.disabled||void 0,onClick:()=>(e=>{e.disabled||(Pe(),e.onSelect())})(e),onKeyDown:e=>((e,t)=>{const r=(q?.length??0)-1,i=t=>{e.preventDefault(),ce.current[t]?.focus()},n=()=>{e.preventDefault(),oe.current?.focus()};switch(e.key){case"ArrowDown":return void i(Math.min(t+1,r));case"ArrowUp":return void(0===t?n():i(t-1));case"Home":return void i(0);case"End":return void i(r);case"Tab":return e.shiftKey?void(0===t?n():i(t-1)):t<r?void i(t+1):(e.preventDefault(),void Pe());case"Escape":return e.preventDefault(),e.stopPropagation(),void Pe()}})(e,t),className:`flex w-full items-center gap-2 rounded-lg ${ve} text-left rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${e.disabled?"cursor-not-allowed text-gray-400":"cursor-pointer text-gray-700 hover:bg-blue-50 hover:text-blue-700"}`,children:[e.icon&&/* @__PURE__ */I(m,{name:e.icon,"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
13
+ /* @__PURE__ */I("span",{className:"min-w-0 flex-1 truncate",children:e.label})]},e.label))})]}):Qe;/* @__PURE__ */
14
+ return H("div",{ref:le,className:"relative",children:[
15
+ /* @__PURE__ */I("button",{ref:oe,id:Ne,type:"button",role:"combobox","aria-haspopup":"listbox","aria-expanded":re,"aria-controls":re?ke:void 0,"aria-activedescendant":re&&ne>=0?$e(ne):void 0,"aria-invalid":A||void 0,"aria-describedby":Ee,"aria-label":Z,"aria-labelledby":_,title:P,disabled:F,"aria-readonly":J||void 0,onClick:()=>re?Pe():Ve(),onKeyDown:t=>{if(!F&&!J)switch(t.key){case"ArrowDown":return t.preventDefault(),void(re?ae(e=>i(He,e,1)):Ve());case"ArrowUp":return t.preventDefault(),void(re?ae(e=>i(He,e,-1)):Ve());case"Home":return void(re&&(t.preventDefault(),ae(e(He))));case"End":return void(re&&(t.preventDefault(),ae(r(He))));case"Enter":return void(re&&(t.preventDefault(),We(ne)));case" ":return t.preventDefault(),void(re?We(ne):Ve());case"Escape":return void(re&&(t.preventDefault(),t.stopPropagation(),Pe()));case"Tab":return re&&pe&&!t.shiftKey?(t.preventDefault(),void ce.current[0]?.focus()):void(re&&Pe(!1));default:1!==t.key.length||t.metaKey||t.ctrlKey||t.altKey||(t.preventDefault(),Me(t.key))}},className:s({invalid:A,size:K,readOnly:J,auto:je,className:`${J?"":"pr-8 "}text-left ${B}`.trim()}),children:Q?
16
+ /* @__PURE__ */H("span",{className:"flex min-w-0 items-center gap-1",children:[Je,
17
+ /* @__PURE__ */I("span",{"aria-hidden":"true","data-select-changed":"",className:"shrink-0",children:"*"})]}):Je}),Q&&/* @__PURE__ */I("span",{id:De,hidden:!0,children:ge.select.changed}),je&&/* @__PURE__ */I("span",{id:Ce,hidden:!0,children:ge.settingView.auto}),!J&&/* @__PURE__ */I(m,{name:"chevron-up-down","aria-hidden":"true",className:`pointer-events-none absolute right-2.5 top-1/2 h-4 w-4 -translate-y-1/2 ${c}`,strokeWidth:2}),
18
+ /* @__PURE__ */H("select",{ref:te,value:l,multiple:V||void 0,onChange:e=>Te(V?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),disabled:F,"aria-hidden":"true",tabIndex:-1,className:"sr-only",...ee,children:[void 0!==R&&!V&&/* @__PURE__ */I("option",{value:"",disabled:!0,children:R}),
19
+ /* @__PURE__ */I(z,{items:w})]}),re&&E(Xe,document.body)]})}),B=w(function({touchSize:e="touch",...t},r){const i=u();return!i||void 0===t.footer&&void 0===t.changed||t.readOnly?i&&!t.readOnly?/* @__PURE__ */I(R,{ref:r,...t,size:e}):/* @__PURE__ */I(A,{ref:r,...t}):/* @__PURE__ */I(A,{ref:r,...t,size:e})});export{R as NativeSelect,B as Select_default};
@@ -87,7 +87,8 @@ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"current
87
87
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 10.5v6m3-3H9m4.06-7.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})})},"folder:solid":function({size:e=18,...r}){/* @__PURE__ */
88
88
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z"})})},globe:function({size:e=18,...r}){/* @__PURE__ */
89
89
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})})},grid:function({size:e=18,...r}){/* @__PURE__ */
90
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"})})},help:function({size:e=18,...r}){/* @__PURE__ */
90
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"})})},"hand-thumb-up":function({size:e=18,...r}){/* @__PURE__ */
91
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"})})},help:function({size:e=18,...r}){/* @__PURE__ */
91
92
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})})},home:function({size:e=18,...r}){/* @__PURE__ */
92
93
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})})},image:function({size:e=18,...r}){/* @__PURE__ */
93
94
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M6 3.75h12a2.25 2.25 0 0 1 2.25 2.25v12a2.25 2.25 0 0 1 -2.25 2.25h-12a2.25 2.25 0 0 1 -2.25 -2.25v-12a2.25 2.25 0 0 1 2.25 -2.25ZM3.75 17.075L8.114 12.71A1.903 1.903 0 0 1 10.806 12.71L15.171 17.075M13.902 15.806L15.094 14.613A1.903 1.903 0 0 1 17.785 14.613L20.247 17.075M14.995 8.255a0.75 0.75 0 1 0 1.5 0a0.75 0.75 0 1 0 -1.5 0Z"})})},inbox:function({size:e=18,...r}){/* @__PURE__ */
@@ -165,5 +166,5 @@ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"current
165
166
  return t("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"})})},widgets:function({size:e=18,...r}){/* @__PURE__ */
166
167
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z"})})},window:function({size:e=18,...r}){/* @__PURE__ */
167
168
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})})},"zoom-in":function({size:e=18,...r}){/* @__PURE__ */
168
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"})})}};function h(e,r){return(r?d[`${e}:${r}`]:void 0)??d[e]}var a={muted:"text-gray-500",accent:"text-blue-600",danger:"text-red-600",success:"text-green-600",warning:"text-amber-600"},s=/* @__PURE__ */new Set;function u({name:o,glyph:d,size:u,tone:l,look:c,title:L,fallback:k,className:M,...v}){n(e,r,r);const p=o??d,f=i(p,c)??k??h(p,c);if(!f)return s.has(p)||(s.add(p),console.warn(`efficient-shell/icons: no registered icon set draws "${p}". Register one at startup, for example registerIconSet(efficient) from 'efficient-shell/icons/efficient'.`)),null;const g=void 0!==L||void 0!==v["aria-label"]||void 0!==v["aria-labelledby"],w=[l?a[l]:"",M??""].filter(Boolean).join(" ");/* @__PURE__ */
169
- return t(f,{width:u??"1em",height:u??"1em","data-icon":p,"aria-hidden":!g||void 0,role:g?"img":void 0,"aria-label":L,...v,className:w||void 0})}export{u as Icon,h as kitDrawing};
169
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"})})}};function h(e,r){return(r?d[`${e}:${r}`]:void 0)??d[e]}var a={muted:"text-gray-500",accent:"text-blue-600",danger:"text-red-600",success:"text-green-600",warning:"text-amber-600"},u=/* @__PURE__ */new Set;function s({name:o,glyph:d,size:s,tone:l,look:c,title:L,fallback:k,className:M,...v}){n(e,r,r);const p=o??d,f=i(p,c)??k??h(p,c);if(!f)return u.has(p)||(u.add(p),console.warn(`efficient-shell/icons: no registered icon set draws "${p}". Register one at startup, for example registerIconSet(efficient) from 'efficient-shell/icons/efficient'.`)),null;const g=void 0!==L||void 0!==v["aria-label"]||void 0!==v["aria-labelledby"],w=[l?a[l]:"",M??""].filter(Boolean).join(" ");/* @__PURE__ */
170
+ return t(f,{width:s??"1em",height:s??"1em","data-icon":p,"aria-hidden":!g||void 0,role:g?"img":void 0,"aria-label":L,...v,className:w||void 0})}export{s as Icon,h as kitDrawing};
@@ -1,18 +1,18 @@
1
- import{MOVE_KEYS as e,MoveGrip as r,MoveHint as t,moveFromKey as a}from"./chunk-3PGK3VFS.js";import{GROUP_COLORS as n}from"./chunk-D323R2FT.js";import{Icon as o}from"./chunk-KIBL6M3T.js";import{OneLineLabel as i}from"./chunk-6KO5VTL7.js";import{Tooltip as s}from"./chunk-22S6LG6D.js";import{useBrowserLayoutEffect as l}from"./chunk-D65T4H6J.js";import{useShellStrings as c}from"./chunk-E6UCGCOC.js";import{useRef as d,useCallback as u,useId as p,isValidElement as m}from"react";import{jsx as g,jsxs as h}from"react/jsx-runtime";var f='[role="treeitem"]';function b(e){return[...e.querySelectorAll(f)].filter(r=>{for(let t=r.parentElement?.closest('[role="group"]');t&&e.contains(t);t=t.parentElement?.closest('[role="group"]')??null)if(t.hasAttribute("hidden"))return!1;return!0})}function y({"aria-label":e,"aria-labelledby":r,children:t,className:a="",rootProps:n}){const o=d(null);l(()=>{const e=o.current;if(!e)return;const r=[...e.querySelectorAll(f)];if(0===r.length)return;const t=r.find(e=>e===document.activeElement)??r.find(e=>"true"===e.getAttribute("aria-selected"))??b(e)[0]??r[0];for(const e of r)e.tabIndex=e===t?0:-1});const i=u(e=>{n?.onKeyDown?.(e);const r=o.current,t=e.target.closest?.(f);if(!r||!t||e.target!==t||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const a=b(r),i=a.indexOf(t),s=Number(t.getAttribute("aria-level")??"1"),l=t=>{e.preventDefault(),function(e,r){if(r){for(const t of e.querySelectorAll(f))t.tabIndex=t===r?0:-1;r.focus()}}(r,t)};switch(e.key){case"ArrowDown":l(a[i+1]);break;case"ArrowUp":l(a[i-1]);break;case"Home":l(a[0]);break;case"End":l(a[a.length-1]);break;case"ArrowRight":if("true"===t.getAttribute("aria-expanded")){const r=a[i+1];r&&Number(r.getAttribute("aria-level")??"1")>s?l(r):e.preventDefault()}break;case"ArrowLeft":if("true"!==t.getAttribute("aria-expanded"))for(let e=i-1;e>=0;e--)if(Number(a[e].getAttribute("aria-level")??"1")<s){l(a[e]);break}}},[n]);/* @__PURE__ */
1
+ import{MOVE_KEYS as e,MoveGrip as r,MoveHint as t,moveFromKey as a}from"./chunk-3PGK3VFS.js";import{GROUP_COLORS as n}from"./chunk-D323R2FT.js";import{Icon as o}from"./chunk-2SHYR3RA.js";import{OneLineLabel as i}from"./chunk-6KO5VTL7.js";import{Tooltip as s}from"./chunk-22S6LG6D.js";import{useBrowserLayoutEffect as l}from"./chunk-D65T4H6J.js";import{useShellStrings as c}from"./chunk-E6UCGCOC.js";import{useRef as d,useCallback as u,useId as p,isValidElement as m}from"react";import{jsx as g,jsxs as h}from"react/jsx-runtime";var f='[role="treeitem"]';function b(e){return[...e.querySelectorAll(f)].filter(r=>{for(let t=r.parentElement?.closest('[role="group"]');t&&e.contains(t);t=t.parentElement?.closest('[role="group"]')??null)if(t.hasAttribute("hidden"))return!1;return!0})}function y({"aria-label":e,"aria-labelledby":r,children:t,className:a="",rootProps:n}){const o=d(null);l(()=>{const e=o.current;if(!e)return;const r=[...e.querySelectorAll(f)];if(0===r.length)return;const t=r.find(e=>e===document.activeElement)??r.find(e=>"true"===e.getAttribute("aria-selected"))??b(e)[0]??r[0];for(const e of r)e.tabIndex=e===t?0:-1});const i=u(e=>{n?.onKeyDown?.(e);const r=o.current,t=e.target.closest?.(f);if(!r||!t||e.target!==t||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const a=b(r),i=a.indexOf(t),s=Number(t.getAttribute("aria-level")??"1"),l=t=>{e.preventDefault(),function(e,r){if(r){for(const t of e.querySelectorAll(f))t.tabIndex=t===r?0:-1;r.focus()}}(r,t)};switch(e.key){case"ArrowDown":l(a[i+1]);break;case"ArrowUp":l(a[i-1]);break;case"Home":l(a[0]);break;case"End":l(a[a.length-1]);break;case"ArrowRight":if("true"===t.getAttribute("aria-expanded")){const r=a[i+1];r&&Number(r.getAttribute("aria-level")??"1")>s?l(r):e.preventDefault()}break;case"ArrowLeft":if("true"!==t.getAttribute("aria-expanded"))for(let e=i-1;e>=0;e--)if(Number(a[e].getAttribute("aria-level")??"1")<s){l(a[e]);break}}},[n]);/* @__PURE__ */
2
2
  return g("div",{...n,ref:o,role:"tree","aria-label":r?void 0:e,"aria-labelledby":r,onKeyDown:i,className:`flex flex-col gap-1 ${a}`.trim(),children:t})}function v({children:e,hidden:r,className:t=""}){/* @__PURE__ */
3
3
  return g("div",{role:"group",hidden:r,className:`ml-4 flex flex-col gap-1 border-l border-gray-200 pl-2 ${t}`.trim(),children:e})}var x=["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full px-2","text-2xs font-medium normal-case tabular-nums tracking-normal"].join(" "),k=`${x} bg-[color:color-mix(in_srgb,var(--ink-faint)_12%,transparent)] text-gray-600`;function w(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!m(e)&&"label"in e}function N(e){if(null==e||!1===e)return null;const r=Array.isArray(e)&&e.length>0&&e.every(w)?e:w(e)?[e]:null;return r?r.map((e,r)=>/* @__PURE__ */g("span",{"data-tree-count":"","data-tone":e.tone,className:e.tone?`${x} ${n[e.tone]}`:k,children:e.label},r)):/* @__PURE__ */g("span",{"data-tree-count":"",className:k,children:e})}function A({children:e,count:r,expanded:t,onToggle:a}){const n=void 0!==t,o=
4
4
  /* @__PURE__ */g("span",{"data-tree-label-text":"",className:"flex min-w-0 flex-1 text-left",children:/* @__PURE__ */g(i,{children:e})}),s=null!=r&&!1!==r&&/* @__PURE__ */g("span",{"data-tree-count":"",className:k,children:r}),l="text-xs font-semibold uppercase tracking-wide text-gray-500";return n?/* @__PURE__ */g("div",{role:"presentation",className:"pb-1 pt-3",children:/* @__PURE__ */h("button",{type:"button","aria-expanded":t,onClick:a,className:["flex w-full items-center gap-2 rounded-md px-2 hover:text-gray-900","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",l].join(" "),children:[
5
5
  /* @__PURE__ */g("span",{"aria-hidden":"true","data-tree-caret":"",className:"flex h-4 w-4 shrink-0 items-center justify-center",children:j(!!t)}),o,s]})}):/* @__PURE__ */h("div",{role:"presentation",className:`flex items-center gap-2 px-2 pb-1 pt-3 ${l}`,children:[
6
- /* @__PURE__ */g("span",{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),o,s]})}var j=e=>/* @__PURE__ */g(o,{name:"chevron-right","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3 transition-transform "+(e?"rotate-90":"")}),D={backgroundColor:"inherit",maskImage:"linear-gradient(to right, transparent, black 12px)",WebkitMaskImage:"linear-gradient(to right, transparent, black 12px)"};function C({label:n,level:o=1,icon:s,preview:l,selected:c=!1,tone:d,expanded:u,onToggle:m,onSelect:f,muted:b=!1,badge:y,actions:v,actionsPinned:x=!1,actionsOverlay:k=!0,rename:w,drop:A,dragging:C=!1,draggable:P=!1,dragHint:$,onMove:K,rowProps:I,className:T=""}){const E=void 0!==u,S=p(),H=[I?.["aria-describedby"],K?S:void 0].filter(Boolean).join(" ")||void 0,L="shared"===d?"text-[color:var(--status-success-soft-ink)]":null,O=c?L?`bg-[var(--status-success-soft)] ${L}`:"bg-blue-50 text-blue-700":"into"===A?`bg-blue-50 ${L??"text-gray-900"}`:`${L??"text-gray-700"} hover:bg-gray-100`;/* @__PURE__ */
7
- return h("div",{...I,role:"treeitem","aria-level":o,"aria-selected":c,"aria-expanded":E?u:void 0,"data-tone":d,tabIndex:c?0:-1,"aria-keyshortcuts":I?.["aria-keyshortcuts"]??(K?e:void 0),"aria-describedby":H,"data-drop":A,"data-draggable":P||void 0,onKeyDown:e=>{if(I?.onKeyDown?.(e),e.target!==e.currentTarget||e.defaultPrevented)return;const r=a(e);r&&K?(e.preventDefault(),K(r)):"Enter"!==e.key&&" "!==e.key||!f?("ArrowRight"===e.key&&E&&!u&&m||"ArrowLeft"===e.key&&E&&u&&m)&&(e.preventDefault(),m()):(e.preventDefault(),f())},onClick:e=>{I?.onClick?.(e),e.defaultPrevented||f?.()},className:["group/treerow relative flex h-8 shrink-0 select-none items-center gap-2 rounded-md px-2 text-sm",P?"cursor-grab active:cursor-grabbing":"cursor-pointer","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",O,"into"===A?"ring-2 ring-inset ring-[color:var(--rosh-drop-ring)]":"",C?"opacity-40":"",T].filter(Boolean).join(" "),children:["before"===A&&/* @__PURE__ */g("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -top-0.5 h-0.5 rounded-full bg-blue-500"}),"after"===A&&/* @__PURE__ */g("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -bottom-0.5 h-0.5 rounded-full bg-blue-500"}),P&&
6
+ /* @__PURE__ */g("span",{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),o,s]})}var j=e=>/* @__PURE__ */g(o,{name:"chevron-right","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3 transition-transform "+(e?"rotate-90":"")}),D={backgroundColor:"inherit",maskImage:"linear-gradient(to right, transparent, black 12px)",WebkitMaskImage:"linear-gradient(to right, transparent, black 12px)"};function C({label:n,level:o=1,icon:s,preview:l,selected:c=!1,tone:d,expanded:u,onToggle:m,onSelect:f,muted:b=!1,badge:y,actions:v,actionsPinned:x=!1,actionsOverlay:k=!0,rename:w,drop:A,dragging:C=!1,draggable:P=!1,dragHint:$,onMove:K,rowProps:S,className:E=""}){const H=void 0!==u,I=p(),T=[S?.["aria-describedby"],K?I:void 0].filter(Boolean).join(" ")||void 0,R="shared"===d?"text-[color:var(--status-success-soft-ink)]":null,L=c?R?`bg-[var(--status-success-soft)] ${R}`:"bg-blue-50 text-blue-700":"into"===A?`bg-blue-50 ${R??"text-gray-900"}`:`${R??"text-gray-700"} hover:bg-gray-100`;/* @__PURE__ */
7
+ return h("div",{...S,role:"treeitem","aria-level":o,"aria-selected":c,"aria-expanded":H?u:void 0,"data-tone":d,tabIndex:c?0:-1,"aria-keyshortcuts":S?.["aria-keyshortcuts"]??(K?e:void 0),"aria-describedby":T,"data-drop":A,"data-draggable":P||void 0,onKeyDown:e=>{if(S?.onKeyDown?.(e),e.target!==e.currentTarget||e.defaultPrevented)return;const r=a(e);r&&K?(e.preventDefault(),K(r)):"Enter"!==e.key&&" "!==e.key||!f?("ArrowRight"===e.key&&H&&!u&&m||"ArrowLeft"===e.key&&H&&u&&m)&&(e.preventDefault(),m()):(e.preventDefault(),f())},onClick:e=>{S?.onClick?.(e),e.defaultPrevented||f?.()},className:["group/treerow relative flex h-8 shrink-0 select-none items-center gap-2 rounded-md px-2 text-sm",P?"cursor-grab active:cursor-grabbing":"cursor-pointer","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",L,"into"===A?"ring-2 ring-inset ring-[color:var(--rosh-drop-ring)]":"",C?"opacity-40":"",E].filter(Boolean).join(" "),children:["before"===A&&/* @__PURE__ */g("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -top-0.5 h-0.5 rounded-full bg-blue-500"}),"after"===A&&/* @__PURE__ */g("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -bottom-0.5 h-0.5 rounded-full bg-blue-500"}),P&&
8
8
  /* @__PURE__ */g(r,{marker:"tree",hint:$,dragging:C,revealClassName:"group-hover/treerow:opacity-100"}),
9
- /* @__PURE__ */g("span",E?{"aria-hidden":"true","data-tree-caret":"",onClick:e=>{e.stopPropagation(),m?.()},className:"flex h-4 w-4 shrink-0 items-center justify-center rounded text-gray-500 hover:bg-gray-200 hover:text-gray-900",children:j(!!u)}:{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),null!=s&&/* @__PURE__ */g("span",{"aria-hidden":"true",className:"flex h-4 w-4 shrink-0 items-center justify-center "+(b?"text-gray-400":""),children:s}),
9
+ /* @__PURE__ */g("span",H?{"aria-hidden":"true","data-tree-caret":"",onClick:e=>{e.stopPropagation(),m?.()},className:"flex h-4 w-4 shrink-0 items-center justify-center rounded text-gray-500 hover:bg-gray-200 hover:text-gray-900",children:j(!!u)}:{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),null!=s&&/* @__PURE__ */g("span",{"aria-hidden":"true",className:"flex h-4 w-4 shrink-0 items-center justify-center "+(b?"text-gray-400":""),children:s}),
10
10
  /* @__PURE__ */h("span",{className:"relative flex min-w-0 flex-1 items-center gap-2",children:[w??
11
11
  /* @__PURE__ */g("span",{className:`flex min-w-0 ${c?"font-semibold":"font-medium"} ${b?"text-gray-400 line-through":""}`,children:/* @__PURE__ */h(i,{children:[n,null!=l&&/* @__PURE__ */g("span",{className:"ml-2 font-normal text-gray-500",children:l})]})}),N(y),null!=v&&!k&&/* @__PURE__ */g("span",{"data-tree-actions":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),className:"ml-auto flex shrink-0 items-center gap-0.5 transition-opacity "+(x||b?"opacity-100":"opacity-0 group-hover/treerow:opacity-100 group-focus-within/treerow:opacity-100"),children:v})]}),null!=v&&k&&
12
12
  /* @__PURE__ */h("span",{"data-tree-actions":"","data-tree-actions-overlay":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:D,className:"absolute inset-y-0 right-0 grid rounded-r-md transition-opacity "+(x||b||c?"opacity-100":"pointer-events-none opacity-0 group-hover/treerow:pointer-events-auto group-hover/treerow:opacity-100 group-focus-within/treerow:pointer-events-auto group-focus-within/treerow:opacity-100"),children:[
13
13
  /* @__PURE__ */g("span",{"aria-hidden":"true","data-tree-actions-scrim":"",className:"col-start-1 row-start-1",style:{background:"var(--rosh-tree-ground, var(--surface))"}}),
14
14
  /* @__PURE__ */g("span",{"aria-hidden":"true",className:"col-start-1 row-start-1",style:{backgroundColor:"inherit"}}),
15
- /* @__PURE__ */g("span",{className:"col-start-1 row-start-1 flex items-center gap-0.5 pl-4 pr-2",children:v})]}),K&&/* @__PURE__ */g(t,{id:S})]})}function P({onAdd:e,label:r,drop:t=!1,slotProps:a}){const n=c().tree,o=t?n.dropHere:r??n.empty,i="flex min-h-8 w-full items-center gap-2 rounded-md border border-dashed px-3 text-sm "+(t?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-300 text-gray-500");/* @__PURE__ */
15
+ /* @__PURE__ */g("span",{className:"col-start-1 row-start-1 flex items-center gap-0.5 pl-4 pr-2",children:v})]}),K&&/* @__PURE__ */g(t,{id:I})]})}function P({onAdd:e,label:r,drop:t=!1,slotProps:a}){const n=c().tree,o=t?n.dropHere:r??n.empty,i="flex min-h-8 w-full items-center gap-2 rounded-md border border-dashed px-3 text-sm "+(t?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-300 text-gray-500");/* @__PURE__ */
16
16
  return g("div",{...a,role:"presentation","data-drop":t||void 0,children:e?/* @__PURE__ */h("button",{type:"button",onClick:e,className:`${i} text-left hover:bg-gray-100 hover:text-gray-900 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]`,children:[
17
17
  /* @__PURE__ */g("span",{"aria-hidden":"true",children:"+"}),o]}):/* @__PURE__ */g("span",{className:i,children:o})})}function $({onInsert:e,label:r,drop:t=!1,seamProps:a}){const n=c().tree,i=r??n.insertHere,l=t?"opacity-100":e?"opacity-0 group-hover/seam:opacity-100 group-focus-within/seam:opacity-100":"opacity-0";/* @__PURE__ */
18
18
  return h("div",{...a,role:"presentation","data-tree-seam":"","data-drop":t||void 0,className:`group/seam relative z-10 -my-1 h-1 shrink-0 ${a?.className??""}`.trim(),children:[
@@ -0,0 +1,4 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...i}){/* @__PURE__ */
2
+ return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:[
3
+ /* @__PURE__ */e("path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0"}),
4
+ /* @__PURE__ */e("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})]})}export{t as BrandXOutlineIcon};
@@ -1,16 +1,16 @@
1
- import{Dialog as e}from"./chunk-YCQVEJOT.js";import{buttonClasses as t}from"./chunk-K7U4RWXJ.js";import{Icon as r}from"./chunk-KIBL6M3T.js";import{useShellStrings as n,splitAround as o}from"./chunk-E6UCGCOC.js";import{createContext as l,useContext as a,useState as i,useRef as s,useCallback as c,useEffect as u}from"react";import{jsxs as d,jsx as m,Fragment as h}from"react/jsx-runtime";var b=l(()=>Promise.resolve(!1)),f=()=>a(b),g=()=>Promise.resolve(!1),p=e=>g(e),y=()=>Promise.resolve(!1),v=e=>y(e),x=()=>Promise.resolve(null),N=e=>x(e),k={danger:{icon:"text-red-600 bg-red-100",button:t({variant:"danger"})},warning:{icon:"text-yellow-600 bg-yellow-100",button:t({variant:"warning"})},info:{icon:"text-blue-600 bg-blue-100",button:t({variant:"primary"})}},w=t({variant:"secondary"}),C=t({variant:"primary"}),L="w-full rounded-md border border-gray-300 h-8 px-3 text-sm";function P(){/* @__PURE__ */
1
+ import{Dialog as e}from"./chunk-TW6WYYBC.js";import{buttonClasses as t}from"./chunk-K7U4RWXJ.js";import{Icon as r}from"./chunk-2SHYR3RA.js";import{useShellStrings as n,splitAround as o}from"./chunk-E6UCGCOC.js";import{createContext as l,useContext as a,useState as i,useRef as s,useCallback as c,useEffect as u}from"react";import{jsxs as d,jsx as m,Fragment as h}from"react/jsx-runtime";var b=l(()=>Promise.resolve(!1)),f=()=>a(b),g=()=>Promise.resolve(!1),p=e=>g(e),y=()=>Promise.resolve(!1),v=e=>y(e),x=()=>Promise.resolve(null),N=e=>x(e),k={danger:{icon:"text-red-600 bg-red-100",button:t({variant:"danger"})},warning:{icon:"text-yellow-600 bg-yellow-100",button:t({variant:"warning"})},info:{icon:"text-blue-600 bg-blue-100",button:t({variant:"primary"})}},w=t({variant:"secondary"}),C=t({variant:"primary"}),L="w-full rounded-md border border-gray-300 h-8 px-3 text-sm";function P(){/* @__PURE__ */
2
2
  return m(r,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function j(){/* @__PURE__ */
3
- return m(r,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function E({children:t}){const[r,l]=i(!1),[a,f]=i({message:""}),[p,v]=i(0),N=s(),E=s(null),T=s(0),F=s([]),K=s(null),W=s(null),$=c(e=>{E.current=e.id,N.current=e.resolve,v(e.id),f(e.options),l(!0)},[]),D=c(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const r={id:++T.current,options:t,resolve:e};null===E.current?$(r):F.current.push(r)})},[$]),[J,O]=i(!1),[U,V]=i({message:""}),[B,G]=i(""),I=s(),M=c(e=>(V(e),G(""),O(!0),new Promise(e=>{I.current=e})),[]),[Q,R]=i(!1),[X,Y]=i({}),[q,z]=i(""),A=s(),H=c(e=>{const t="string"==typeof e?{message:e}:e;return Y(t),z(t.defaultValue??""),R(!0),new Promise(e=>{A.current=e})},[]);u(()=>{g=D,y=M,x=H},[D,M,H]);const S=(e,t)=>{if(E.current!==e)return;const r=N.current,n=F.current.shift();n?$(n):(E.current=null,N.current=void 0,l(!1)),r?.(t)},Z=e=>{O(!1),G(""),I.current?.(e)},_=e=>{if(e){const e=q.trim();if(!e&&!X.allowEmpty)return R(!1),void A.current?.(null);R(!1),A.current?.(e)}else R(!1),A.current?.(null)},ee=a.variant||(a.confirmLabel?.toLowerCase().includes("delete")||a.message.toLowerCase().includes("delete")?"danger":"info"),te=k[ee],re=k["warning"===U.variant?"warning":"danger"],ne=U.confirmWord,oe=null==ne||B===ne,le=n().dialog,[ae,ie]=o(le.typeToConfirm);/* @__PURE__ */
4
- return d(b.Provider,{value:D,children:[t,
5
- /* @__PURE__ */m(e,{open:r,onClose:()=>S(p,!1),initialFocus:K,footer:/* @__PURE__ */d(h,{children:[
6
- /* @__PURE__ */m("button",{ref:K,type:"button",onClick:()=>S(p,!1),className:w,children:a.cancelLabel||le.cancel}),
7
- /* @__PURE__ */m("button",{type:"button",onClick:()=>S(p,!0),className:te.button,children:a.confirmLabel||le.ok})]}),children:/* @__PURE__ */d("div",{className:"flex gap-4",children:[
3
+ return m(r,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function E({children:t}){const[r,l]=i(!1),[a,f]=i({message:""}),[p,v]=i(0),N=s(),E=s(null),W=s(0),F=s([]),T=s(null),$=s(null),K=c(e=>{E.current=e.id,N.current=e.resolve,v(e.id),f(e.options),l(!0)},[]),R=c(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const r={id:++W.current,options:t,resolve:e};null===E.current?K(r):F.current.push(r)})},[K]),[Y,D]=i(!1),[U,A]=i({message:""}),[B,G]=i(""),H=s(),J=c(e=>(A(e),G(""),D(!0),new Promise(e=>{H.current=e})),[]),[O,S]=i(!1),[V,X]=i({}),[q,z]=i(""),I=s(),M=c(e=>{const t="string"==typeof e?{message:e}:e;return X(t),z(t.defaultValue??""),S(!0),new Promise(e=>{I.current=e})},[]);u(()=>{g=R,y=J,x=M},[R,J,M]);const Q=(e,t)=>{if(E.current!==e)return;const r=N.current,n=F.current.shift();n?K(n):(E.current=null,N.current=void 0,l(!1)),r?.(t)},Z=e=>{D(!1),G(""),H.current?.(e)},_=e=>{if(e){const e=q.trim();if(!e&&!V.allowEmpty)return S(!1),void I.current?.(null);S(!1),I.current?.(e)}else S(!1),I.current?.(null)},ee=a.variant||(a.confirmLabel?.toLowerCase().includes("delete")||a.message.toLowerCase().includes("delete")?"danger":"info"),te=k[ee],re=k["warning"===U.variant?"warning":"danger"],ne=U.confirmWord,oe=null==ne||B===ne,le=n().dialog,[ae,ie]=o(le.typeToConfirm);/* @__PURE__ */
4
+ return d(b.Provider,{value:R,children:[t,
5
+ /* @__PURE__ */m(e,{open:r,onClose:()=>Q(p,!1),initialFocus:T,footer:/* @__PURE__ */d(h,{children:[
6
+ /* @__PURE__ */m("button",{ref:T,type:"button",onClick:()=>Q(p,!1),className:w,children:a.cancelLabel||le.cancel}),
7
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>Q(p,!0),className:te.button,children:a.confirmLabel||le.ok})]}),children:/* @__PURE__ */d("div",{className:"flex gap-4",children:[
8
8
  /* @__PURE__ */m("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${te.icon}`,children:/* @__PURE__ */m(P,{})}),
9
9
  /* @__PURE__ */d("div",{className:"flex-1",children:[
10
10
  /* @__PURE__ */m("h2",{className:"text-base font-semibold text-gray-900",children:a.title||le.confirmTitle}),
11
11
  /* @__PURE__ */m("p",{className:"mt-2 text-sm text-gray-600",children:a.message})]})]})}),
12
- /* @__PURE__ */d(e,{open:J,onClose:()=>Z(!1),initialFocus:null!=ne?void 0:W,footer:/* @__PURE__ */d(h,{children:[
13
- /* @__PURE__ */m("button",{ref:W,type:"button",onClick:()=>Z(!1),className:w,children:U.cancelLabel||le.destructiveCancel}),
12
+ /* @__PURE__ */d(e,{open:Y,onClose:()=>Z(!1),initialFocus:null!=ne?void 0:$,footer:/* @__PURE__ */d(h,{children:[
13
+ /* @__PURE__ */m("button",{ref:$,type:"button",onClick:()=>Z(!1),className:w,children:U.cancelLabel||le.destructiveCancel}),
14
14
  /* @__PURE__ */m("button",{type:"button",onClick:()=>Z(!0),disabled:!oe,className:re.button,children:ne??U.confirmLabel??le.destructiveConfirm})]}),children:[
15
15
  /* @__PURE__ */m("button",{type:"button",onClick:()=>Z(!1),"aria-label":le.close,className:"absolute right-4 top-4 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600",children:/* @__PURE__ */m(j,{})}),
16
16
  /* @__PURE__ */d("div",{className:"flex gap-4",children:[
@@ -21,7 +21,7 @@ return d(b.Provider,{value:D,children:[t,
21
21
  /* @__PURE__ */d("p",{className:"mt-3 text-sm text-gray-700",children:[ae,
22
22
  /* @__PURE__ */m("kbd",{className:"rounded border border-gray-300 bg-gray-50 px-2 py-0.5 text-xs font-bold text-red-600 font-mono",children:ne}),ie]}),
23
23
  /* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:B,onChange:e=>G(e.target.value),onKeyDown:e=>{"Enter"===e.key&&B===ne&&Z(!0)},placeholder:ne,className:`mt-2 ${L} focus:border-red-500`})]})]})]})]}),
24
- /* @__PURE__ */d(e,{open:Q,onClose:()=>_(!1),title:X.title||le.promptTitle,footer:/* @__PURE__ */d(h,{children:[
25
- /* @__PURE__ */m("button",{type:"button",onClick:()=>_(!1),className:w,children:X.cancelLabel||le.cancel}),
26
- /* @__PURE__ */m("button",{type:"button",onClick:()=>_(!0),disabled:!X.allowEmpty&&!q.trim(),className:C,children:X.confirmLabel||le.ok})]}),children:[X.message&&/* @__PURE__ */m("p",{className:"text-sm text-gray-600",children:X.message}),
27
- /* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:q,onChange:e=>z(e.target.value),onKeyDown:e=>{"Enter"===e.key?_(!0):"Escape"===e.key&&_(!1)},onFocus:e=>e.target.select(),placeholder:X.placeholder,className:`mt-3 ${L} focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]`})]})]})}export{E as ConfirmProvider,p as confirm,v as confirmDestructive,N as prompt,f as useConfirm};
24
+ /* @__PURE__ */d(e,{open:O,onClose:()=>_(!1),title:V.title||le.promptTitle,footer:/* @__PURE__ */d(h,{children:[
25
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>_(!1),className:w,children:V.cancelLabel||le.cancel}),
26
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>_(!0),disabled:!V.allowEmpty&&!q.trim(),className:C,children:V.confirmLabel||le.ok})]}),children:[V.message&&/* @__PURE__ */m("p",{className:"text-sm text-gray-600",children:V.message}),
27
+ /* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:q,onChange:e=>z(e.target.value),onKeyDown:e=>{"Enter"===e.key?_(!0):"Escape"===e.key&&_(!1)},onFocus:e=>e.target.select(),placeholder:V.placeholder,className:`mt-3 ${L} focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]`})]})]})}export{E as ConfirmProvider,p as confirm,v as confirmDestructive,N as prompt,f as useConfirm};
@@ -0,0 +1,2 @@
1
+ import{brandBox as c}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function h({size:h,width:e,height:i,style:r,...l}){const o=c(h??e??i??18,1.049);/* @__PURE__ */
2
+ return t("svg",{width:o.width,height:o.height,viewBox:"-0.2 0.372 24.4 23.256",fill:"currentColor","aria-hidden":"true",...l,style:{...o.style,...r},children:/* @__PURE__ */t("path",{d:"M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314"})})}export{h as BrandLineIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function i({size:i,width:r,height:h,style:o,...c}){const n=t(i??r??h??18,1);/* @__PURE__ */
2
+ return e("svg",{width:n.width,height:n.height,viewBox:"-0.2 -0.2 24.4 24.4",fill:"currentColor","aria-hidden":"true",...c,style:{...n.style,...o},children:/* @__PURE__ */e("path",{d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"})})}export{i as BrandInstagramIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as c}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function e({size:e,width:i,height:r,style:a,...h}){const l=c(e??i??r??18,1.219);/* @__PURE__ */
2
+ return t("svg",{width:l.width,height:l.height,viewBox:"-0.2 1.988 24.4 20.024",fill:"currentColor","aria-hidden":"true",...h,style:{...l.style,...a},children:/* @__PURE__ */t("path",{d:"M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z"})})}export{e as BrandWechatIcon};
@@ -0,0 +1,6 @@
1
+ import{jsxs as L,jsx as e}from"react/jsx-runtime";function r({size:r=18,...o}){/* @__PURE__ */
2
+ return L("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none","aria-hidden":"true",...o,children:[
3
+ /* @__PURE__ */e("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"}),
4
+ /* @__PURE__ */e("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"}),
5
+ /* @__PURE__ */e("path",{fillRule:"evenodd",d:"M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"}),
6
+ /* @__PURE__ */e("path",{fillRule:"evenodd",d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5zM14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"})]})}export{r as BrandWechatSolidIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function i({size:i,width:r,height:h,style:c,...o}){const n=t(i??r??h??18,1.466);/* @__PURE__ */
2
+ return e("svg",{width:n.width,height:n.height,viewBox:"-0.2 3.678 24.4 16.642",fill:"currentColor","aria-hidden":"true",...o,style:{...n.style,...c},children:/* @__PURE__ */e("path",{d:"M23.836 4.27c-.29-.413-.86-.515-1.273-.226L.163 19.73c.167.235.437.39.747.39h22.18c.503 0 .91-.41.91-.914V4.78c-.004-.176-.058-.352-.164-.51zm-22.4-.226c-.413-.29-.982-.19-1.272.226-.107.154-.162.332-.164.51v14.45l10.664-8.736-9.227-6.45v-.002z"})})}export{i as BrandCampaignmonitorIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as h}from"./chunk-64ACCUNN.js";import{jsx as v}from"react/jsx-runtime";function c({size:c,width:t,height:l,style:e,...i}){const r=h(c??t??l??18,3.528);/* @__PURE__ */
2
+ return v("svg",{width:r.width,height:r.height,viewBox:"-0.2 8.541 24.4 6.917",fill:"currentColor","aria-hidden":"true",...i,style:{...r.style,...e},children:/* @__PURE__ */v("path",{d:"M22.498 14.298c-.016-.414.345-.751.75-.755a.745.745 0 0 1 .752.755.755.755 0 0 1-.751.745c-.395.002-.759-.346-.751-.745zm.759-.083c.067-.02.164-.042.162-.13.007-.09-.086-.133-.162-.134h-.163v.263c0 .001.165-.002.163.001zm-.163.107v.418h-.14v-.91h.327c.156-.021.294.092.286.253a.218.218 0 0 1-.156.19c.162.083.108.322.173.467h-.156a2.355 2.355 0 0 1-.04-.205c-.018-.093-.047-.229-.17-.213h-.124zm.76-.024a.603.603 0 0 0-.605-.632c-.338-.012-.62.302-.605.632a.619.619 0 0 0 .605.622.61.61 0 0 0 .605-.622zm-5.052-.579l-.878 1.008h-1.306l1.559-1.745-1.56-1.75h1.355l.902.997.878-.998h1.306l-1.543 1.743 1.559 1.753h-1.371l-.901-1.008zm-4.703-.352v-.827h1.904v-1.506l1.724 1.948-1.724 1.941v-1.556h-1.904zm1.56 1.36h-3.2V9.044h3.224v1.024H13.77v1.163h1.888v.958h-1.904v1.522h1.904v1.016zm-5.705-.655c-.54.017-.878-.552-.877-1.04-.01-.507.307-1.123.878-1.105.579-.025.871.6.845 1.103.023.501-.29 1.062-.846 1.042zM4.743 12.41c.076-.358.403-.67.78-.663a.788.788 0 0 1 .803.663H4.743zm15.182.564l1.815-2.047h-2.125l-.74.844-.763-.844h-4.037v-.548h1.912V8.741H10.84v2.58c-.362-.448-.981-.559-1.526-.492-.782.123-1.427.762-1.634 1.514-.254-.958-1.179-1.588-2.157-1.554-.781.009-1.6.365-1.987 1.071v-.818h-1.87v-.9h2.043v-1.4H0v6.287h1.666v-2.644h1.666a7.59 7.59 0 0 0-.082.622c-.013 1.232 1.042 2.27 2.274 2.236a2.204 2.204 0 0 0 2.157-1.432H6.254c-.14.268-.441.38-.73.36-.457.009-.83-.417-.829-.86h2.914c.083 1.027.988 1.966 2.043 1.947a1.53 1.53 0 0 0 1.19-.639v.41h7.215l.754-.86.754.86h2.192l-1.832-2.055z"})})}export{c as BrandFedexIcon};
@@ -0,0 +1,2 @@
1
+ import{brandBox as c}from"./chunk-64ACCUNN.js";import{jsx as l}from"react/jsx-runtime";function t({size:t,width:e,height:i,style:r,...h}){const o=c(t??e??i??18,.96);/* @__PURE__ */
2
+ return l("svg",{width:o.width,height:o.height,viewBox:"0.289 -0.2 23.422 24.4",fill:"currentColor","aria-hidden":"true",...h,style:{...o.style,...r},children:/* @__PURE__ */l("path",{d:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"})})}export{t as BrandNotionIcon};
@@ -1,3 +1,3 @@
1
- import{GROUP_COLORS as e,BADGE_PILL as o}from"./chunk-D323R2FT.js";import{Icon as i}from"./chunk-KIBL6M3T.js";import{OneLineLabel as r}from"./chunk-6KO5VTL7.js";import{useShellStrings as s}from"./chunk-E6UCGCOC.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";function l({colorClass:l,tone:c,children:a,size:m="sm",capitalize:p=!1,closable:u=!1,onClose:f,closeLabel:h,className:x=""}){const d=l??e[c??"neutral"],y="xs"===m?"px-2 py-0.5 text-3xs":"md"===m?"px-3 py-0.5 text-xs":"px-2 py-0.5 text-xs",b=p?"capitalize":"",g=s().badge,j=h??("string"==typeof a?g.removeItem(a):g.remove),k="xs"===m?"h-2.5 w-2.5":"h-3 w-3";/* @__PURE__ */
1
+ import{GROUP_COLORS as e,BADGE_PILL as o}from"./chunk-D323R2FT.js";import{Icon as i}from"./chunk-2SHYR3RA.js";import{OneLineLabel as r}from"./chunk-6KO5VTL7.js";import{useShellStrings as s}from"./chunk-E6UCGCOC.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";function l({colorClass:l,tone:c,children:a,size:m="sm",capitalize:p=!1,closable:u=!1,onClose:f,closeLabel:h,className:x=""}){const d=l??e[c??"neutral"],y="xs"===m?"px-2 py-0.5 text-3xs":"md"===m?"px-3 py-0.5 text-xs":"px-2 py-0.5 text-xs",b=p?"capitalize":"",g=s().badge,j=h??("string"==typeof a?g.removeItem(a):g.remove),k="xs"===m?"h-2.5 w-2.5":"h-3 w-3";/* @__PURE__ */
2
2
  return t("span",{className:[o,"font-medium",y,b,d,x].filter(Boolean).join(" "),children:[
3
3
  /* @__PURE__ */n(r,{children:a}),u&&/* @__PURE__ */n("button",{type:"button",onClick:f,"aria-label":j,className:"-mr-0.5 ml-1 inline-flex shrink-0 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",children:/* @__PURE__ */n(i,{name:"close",look:"mini",className:k,"aria-hidden":"true"})})]})}export{l as ColoredBadge};
@@ -1,4 +1,4 @@
1
- import{SidebarLayout as e}from"./chunk-TFMOGKW2.js";import{Avatar as r}from"./chunk-MMFJBWJC.js";import{Button_default as t}from"./chunk-4IU5BSVE.js";import{useState as a}from"react";import{jsx as i,jsxs as l}from"react/jsx-runtime";var s=[{id:"inbox",label:"Inbox",count:12},{id:"starred",label:"Starred",count:3},{id:"sent",label:"Sent"},{id:"drafts",label:"Drafts",count:1},{id:"archive",label:"Archive"},{id:"trash",label:"Trash"}],n=[{id:1,from:"Marco Reyes",subject:"Q3 roadmap review",preview:"Sharing the deck ahead of Thursday — let me know what you think before the review.",time:"9:14",unread:!0},{id:2,from:"Priya Patel",subject:"Design handoff",preview:"The Figma file is ready for engineering. I exported every icon at 1x and 2x.",time:"8:02",unread:!0},{id:3,from:"GitHub",subject:"[acme/web] PR #482 merged",preview:"Your pull request was merged into main by the release bot after all checks passed.",time:"Yest"},{id:4,from:"Sara Lind",subject:"Lunch Friday?",preview:"A few of us are heading to the new place on 5th at noon if you want to join.",time:"Yest"}];function d(){const[d,c]=a(1),o=n.find(e=>e.id===d)??n[0];/* @__PURE__ */
1
+ import{SidebarLayout as e}from"./chunk-PCKYNZ5Y.js";import{Avatar as r}from"./chunk-MMFJBWJC.js";import{Button_default as t}from"./chunk-4IU5BSVE.js";import{useState as a}from"react";import{jsx as i,jsxs as l}from"react/jsx-runtime";var s=[{id:"inbox",label:"Inbox",count:12},{id:"starred",label:"Starred",count:3},{id:"sent",label:"Sent"},{id:"drafts",label:"Drafts",count:1},{id:"archive",label:"Archive"},{id:"trash",label:"Trash"}],n=[{id:1,from:"Marco Reyes",subject:"Q3 roadmap review",preview:"Sharing the deck ahead of Thursday — let me know what you think before the review.",time:"9:14",unread:!0},{id:2,from:"Priya Patel",subject:"Design handoff",preview:"The Figma file is ready for engineering. I exported every icon at 1x and 2x.",time:"8:02",unread:!0},{id:3,from:"GitHub",subject:"[acme/web] PR #482 merged",preview:"Your pull request was merged into main by the release bot after all checks passed.",time:"Yest"},{id:4,from:"Sara Lind",subject:"Lunch Friday?",preview:"A few of us are heading to the new place on 5th at noon if you want to join.",time:"Yest"}];function d(){const[d,c]=a(1),o=n.find(e=>e.id===d)??n[0];/* @__PURE__ */
2
2
  return i("div",{className:"h-full",children:/* @__PURE__ */i(e,{side:"left",defaultWidth:200,sidebar:/* @__PURE__ */l("div",{className:"flex h-full flex-col p-2",children:[
3
3
  /* @__PURE__ */i(t,{block:!0,className:"mb-2",children:"Compose"}),s.map((e,r)=>/* @__PURE__ */l("button",{className:"flex items-center justify-between rounded-md px-3 py-2 text-left text-sm "+(0===r?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),children:[
4
4
  /* @__PURE__ */i("span",{children:e.label}),null!=e.count&&/* @__PURE__ */i("span",{className:"text-xs text-gray-400",children:e.count})]},e.id))]}),children:/* @__PURE__ */l("div",{className:"flex h-full",children:[
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as h}from"react/jsx-runtime";function e({size:e,width:i,height:r,style:l,...o}){const n=t(e??i??r??18,.979);/* @__PURE__ */
2
+ return h("svg",{width:n.width,height:n.height,viewBox:"0.058 -0.2 23.884 24.4",fill:"currentColor","aria-hidden":"true",...o,style:{...n.style,...l},children:/* @__PURE__ */h("path",{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"})})}export{e as BrandXIcon};
@@ -1,7 +1,7 @@
1
- import{CountBadge as e}from"./chunk-MAOJENIB.js";import{Icon as n}from"./chunk-KIBL6M3T.js";import{useShellStrings as i,useShellLocale as t}from"./chunk-E6UCGCOC.js";import{formatPlain as r}from"./chunk-C3QOHMR6.js";import{useState as a,useId as s}from"react";import{jsx as o,jsxs as c,Fragment as l}from"react/jsx-runtime";var d="px-4 @max-[260px]/acc:px-3",h={band:{head:`${d} py-3 bg-(--rosh-fold-band)`,press:"hover:bg-(--rosh-fold-band-hover)",title:"text-base font-semibold text-(--ink-strongest)",chev:"text-(--ink-strongest)",body:`${d} pb-2`},row:{head:`${d} py-2`,press:"hover:bg-gray-50",title:"text-sm font-medium text-(--ink-strong)",chev:"text-(--ink-strong)",body:`${d} pb-2`}},m=e=>[...e].map(e=>/[A-Za-z0-9_-]/.test(e)?e:`-u${e.codePointAt(0).toString(16)}-`).join(""),u="m-0 p-0 border-0 [font:inherit] [letter-spacing:inherit] [text-transform:inherit]";function f({items:d,defaultOpenIds:f=[],openIds:p,onOpenChange:b,allowMultiple:v=!1,level:x=3,tier:$="band",className:g=""}){const N=h[$],y=i(),k=t(),[w,j]=a(f),C=s(),O=`h${x}`,I=p??w;/* @__PURE__ */
2
- return o("div",{"data-accordion":$,className:`@container/acc flex flex-col ${"band"===$?"gap-0.5":""} ${g}`.trim(),children:d.map(i=>{const t=I.includes(i.id),a=`${C}-${m(i.id)}-head`,s=`${C}-${m(i.id)}-panel`;/* @__PURE__ */
1
+ import{CountBadge as e}from"./chunk-MAOJENIB.js";import{Icon as n}from"./chunk-2SHYR3RA.js";import{useShellStrings as i,useShellLocale as t}from"./chunk-E6UCGCOC.js";import{formatPlain as r}from"./chunk-C3QOHMR6.js";import{useState as a,useId as s}from"react";import{jsx as o,jsxs as c,Fragment as l}from"react/jsx-runtime";var d="px-4 @max-[260px]/acc:px-3",h={band:{head:`${d} py-3 bg-(--rosh-fold-band)`,press:"hover:bg-(--rosh-fold-band-hover)",title:"text-base font-semibold text-(--ink-strongest)",chev:"text-(--ink-strongest)",body:`${d} pb-2`},row:{head:`${d} py-2`,press:"hover:bg-gray-50",title:"text-sm font-medium text-(--ink-strong)",chev:"text-(--ink-strong)",body:`${d} pb-2`}},m=e=>[...e].map(e=>/[A-Za-z0-9_-]/.test(e)?e:`-u${e.codePointAt(0).toString(16)}-`).join(""),u="m-0 p-0 border-0 [font:inherit] [letter-spacing:inherit] [text-transform:inherit]";function f({items:d,defaultOpenIds:f=[],openIds:p,onOpenChange:b,allowMultiple:v=!1,level:x=3,tier:$="band",className:g=""}){const N=h[$],y=i(),k=t(),[w,j]=a(f),C=s(),O=`h${x}`,A=p??w;/* @__PURE__ */
2
+ return o("div",{"data-accordion":$,className:`@container/acc flex flex-col ${"band"===$?"gap-0.5":""} ${g}`.trim(),children:d.map(i=>{const t=A.includes(i.id),a=`${C}-${m(i.id)}-head`,s=`${C}-${m(i.id)}-panel`;/* @__PURE__ */
3
3
  return c("div",{children:[
4
- /* @__PURE__ */o(O,{className:u,children:/* @__PURE__ */c("button",{type:"button",id:a,disabled:i.disabled,"aria-expanded":t,"aria-controls":t?s:void 0,onClick:()=>(e=>{const n=I.includes(e)?I.filter(n=>n!==e):v?[...I,e]:[e];void 0===p&&j(n),b?.(n)})(i.id),className:`flex w-full items-center gap-2 text-left transition-colors duration-(--motion-fast) disabled:cursor-not-allowed disabled:opacity-50 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${N.head} ${N.press}`,children:[null!=i.icon&&/* @__PURE__ */o("span",{"aria-hidden":"true",className:`inline-flex h-4 w-4 shrink-0 items-center justify-center ${N.chev}`,children:i.icon}),
4
+ /* @__PURE__ */o(O,{className:u,children:/* @__PURE__ */c("button",{type:"button",id:a,disabled:i.disabled,"aria-expanded":t,"aria-controls":t?s:void 0,onClick:()=>(e=>{const n=A.includes(e)?A.filter(n=>n!==e):v?[...A,e]:[e];void 0===p&&j(n),b?.(n)})(i.id),className:`flex w-full items-center gap-2 text-left transition-colors duration-(--motion-fast) disabled:cursor-not-allowed disabled:opacity-50 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${N.head} ${N.press}`,children:[null!=i.icon&&/* @__PURE__ */o("span",{"aria-hidden":"true",className:`inline-flex h-4 w-4 shrink-0 items-center justify-center ${N.chev}`,children:i.icon}),
5
5
  /* @__PURE__ */o("span",{className:`min-w-0 flex-1 ${N.title}`,children:i.title}),"number"==typeof i.count&&i.count>0&&
6
6
  /* @__PURE__ */c(l,{children:[
7
7
  /* @__PURE__ */o("span",{"aria-hidden":"true",className:"inline-flex",children:/* @__PURE__ */o(e,{count:i.count,tone:"accent"})}),
@@ -0,0 +1,2 @@
1
+ import{brandBox as h}from"./chunk-64ACCUNN.js";import{jsx as t}from"react/jsx-runtime";function e({size:e,width:i,height:c,style:r,...l}){const v=h(e??i??c??18,1);/* @__PURE__ */
2
+ return t("svg",{width:v.width,height:v.height,viewBox:"-0.2 -0.2 24.4 24.4",fill:"currentColor","aria-hidden":"true",...l,style:{...v.style,...r},children:/* @__PURE__ */t("path",{d:"M18.316 5.684H24v12.632h-5.684V5.684zM5.684 24h12.632v-5.684H5.684V24zM18.316 5.684V0H1.895A1.894 1.894 0 0 0 0 1.895v16.421h5.684V5.684h12.632zm-7.207 6.25v-.065c.272-.144.5-.349.687-.617s.279-.595.279-.982c0-.379-.099-.72-.3-1.025a2.05 2.05 0 0 0-.832-.714 2.703 2.703 0 0 0-1.197-.257c-.6 0-1.094.156-1.481.467-.386.311-.65.671-.793 1.078l1.085.452c.086-.249.224-.461.413-.633.189-.172.445-.257.767-.257.33 0 .602.088.816.264a.86.86 0 0 1 .322.703c0 .33-.12.589-.36.778-.24.19-.535.284-.886.284h-.567v1.085h.633c.407 0 .748.109 1.02.327.272.218.407.499.407.843 0 .336-.129.614-.387.832s-.565.327-.924.327c-.351 0-.651-.103-.897-.311-.248-.208-.422-.502-.521-.881l-1.096.452c.178.616.505 1.082.977 1.401.472.319.984.478 1.538.477a2.84 2.84 0 0 0 1.293-.291c.382-.193.684-.458.902-.794.218-.336.327-.72.327-1.149 0-.429-.115-.797-.344-1.105a2.067 2.067 0 0 0-.881-.689zm2.093-1.931l.602.913L15 10.045v5.744h1.187V8.446h-.827l-2.158 1.557zM22.105 0h-3.289v5.184H24V1.895A1.894 1.894 0 0 0 22.105 0zm-3.289 23.5l4.684-4.684h-4.684V23.5zM0 22.105C0 23.152.848 24 1.895 24h3.289v-5.184H0v3.289z"})})}export{e as BrandGooglecalendarIcon};
@@ -1,4 +1,4 @@
1
- import{useWindowMenuItem as e,Modal as t}from"./chunk-L3NYH4QV.js";import{navIcons as r}from"./chunk-CY5N5OA3.js";import{VERSION as s}from"./chunk-R3XAXBYV.js";import{Icon as o}from"./chunk-KIBL6M3T.js";import{DEFAULT_SHELL_STRINGS as n,useShellStrings as i,splitAround as a}from"./chunk-E6UCGCOC.js";import{useState as m,useCallback as c,isValidElement as l,cloneElement as d}from"react";import{jsx as p,jsxs as h}from"react/jsx-runtime";var u=n.aboutApp,f={spreadsheet:{name:"Spreadsheets",version:"1.2.0",route:"/spreadsheet",description:u.spreadsheet},notepad:{name:"Notepad",version:"1.0.2",route:"/notepad",description:u.notepad},documents:{name:"Documents",version:"1.1.1",route:"/documents",description:u.documents},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:u.preview},files:{name:"Files",version:"1.1.3",route:"/files",description:u.files},browser:{name:"Browser",version:"1.0.2",route:"/browser",description:u.browser}},x=/* @__PURE__ */p(o,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),v=/* @__PURE__ */p(o,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function w({app:o}){const n=f[o],[u,w]=m(!1),N=c(()=>w(!0),[]),g=i().aboutApp,b=g.title(n.name);if(e(b,N,x),!u)return null;const y=r[n.route],k=l(y)?d(y,{className:"h-9 w-9"}):v,[j,C]=a(g.partOf);/* @__PURE__ */
1
+ import{useWindowMenuItem as e,Modal as t}from"./chunk-2AHHM4SK.js";import{navIcons as r}from"./chunk-CY5N5OA3.js";import{VERSION as s}from"./chunk-BZMZTPS6.js";import{Icon as o}from"./chunk-2SHYR3RA.js";import{DEFAULT_SHELL_STRINGS as n,useShellStrings as i,splitAround as a}from"./chunk-E6UCGCOC.js";import{useState as m,useCallback as c,isValidElement as l,cloneElement as d}from"react";import{jsx as p,jsxs as h}from"react/jsx-runtime";var u=n.aboutApp,f={spreadsheet:{name:"Spreadsheets",version:"1.2.0",route:"/spreadsheet",description:u.spreadsheet},notepad:{name:"Notepad",version:"1.0.2",route:"/notepad",description:u.notepad},documents:{name:"Documents",version:"1.1.1",route:"/documents",description:u.documents},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:u.preview},files:{name:"Files",version:"1.1.3",route:"/files",description:u.files},browser:{name:"Browser",version:"1.0.2",route:"/browser",description:u.browser}},x=/* @__PURE__ */p(o,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),v=/* @__PURE__ */p(o,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function w({app:o}){const n=f[o],[u,w]=m(!1),N=c(()=>w(!0),[]),g=i().aboutApp,b=g.title(n.name);if(e(b,N,x),!u)return null;const y=r[n.route],k=l(y)?d(y,{className:"h-9 w-9"}):v,[j,A]=a(g.partOf);/* @__PURE__ */
2
2
  return p(t,{open:!0,onClose:()=>w(!1),title:b,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */h("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
3
3
  /* @__PURE__ */p("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:k}),
4
4
  /* @__PURE__ */p("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:n.name}),
@@ -6,4 +6,4 @@ return p(t,{open:!0,onClose:()=>w(!1),title:b,size:"sm",compact:!0,bodyScroll:!1
6
6
  /* @__PURE__ */p("p",{className:"mt-2 text-xs text-gray-500 leading-relaxed",children:g[o]}),
7
7
  /* @__PURE__ */h("div",{className:"mt-4 pt-3 border-t border-gray-200 w-full",children:[
8
8
  /* @__PURE__ */h("p",{className:"text-2xs text-gray-500",children:[j,
9
- /* @__PURE__ */p("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),C]}),s&&/* @__PURE__ */p("p",{className:"mt-0.5 text-2xs font-mono text-gray-400",children:g.shellVersion(s)})]})]})})}export{w as AboutApp,f as BUILTIN_APP_INFO};
9
+ /* @__PURE__ */p("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),A]}),s&&/* @__PURE__ */p("p",{className:"mt-0.5 text-2xs font-mono text-gray-400",children:g.shellVersion(s)})]})]})})}export{w as AboutApp,f as BUILTIN_APP_INFO};
@@ -0,0 +1 @@
1
+ var a=["academic-cap","accent","account","account-circle","add","add-circle","add-person","adjust","align-center","align-justify","align-left","align-right","align-separate","alignment","anchor","animation","apps","archive-box","arrow","arrow-down","arrow-left","arrow-left-end-on-rectangle","arrow-long-right","arrow-right","arrow-trending-down","arrow-trending-up","arrow-up","arrow-up-right","at-symbol","attach","background","bag","bank","bars-3-bottom-left","battery","beaker","bell","bell-alert","bell-plus","billing","black-and-white","block-badge","block-banner","block-box","block-button","block-column","block-coupon","block-divider","block-footer","block-heading","block-image","block-included-list","block-layered-images","block-product","block-product-title","block-section","block-social","block-spacer","block-text","block-video","blog-post","bold","bolt","book-open","bookmark","bookmark-square","border-all","border-bottom","border-left","border-right","border-top","braces","brand-1password","brand-adyen","brand-afterpay","brand-aircall","brand-amd","brand-americanexpress","brand-anthropic","brand-apple","brand-applepay","brand-aws","brand-bigcommerce","brand-brevo","brand-calendly","brand-campaignmonitor","brand-cloudflare","brand-dell","brand-dhl","brand-dropbox","brand-ebay","brand-etsy","brand-facebook","brand-fedex","brand-github","brand-gmail","brand-googleads","brand-googleanalytics","brand-googlecalendar","brand-googledrive","brand-googlepay","brand-googlesheets","brand-hubspot","brand-instagram","brand-intel","brand-intercom","brand-klarna","brand-line","brand-linkedin","brand-mailchimp","brand-mailgun","brand-make","brand-mastercard","brand-messenger","brand-meta","brand-myob","brand-notion","brand-nvidia","brand-paypal","brand-pinterest","brand-quickbooks","brand-sage","brand-samsung","brand-shopify","brand-square","brand-squarespace","brand-stripe","brand-telegram","brand-tiktok","brand-trello","brand-ups","brand-visa","brand-vonage","brand-wechat","brand-whatsapp","brand-wise","brand-wix","brand-woocommerce","brand-x","brand-xero","brand-youtube","brand-zapier","brand-zendesk","brand-zoom","breadcrumb","briefcase","bug","bug-ant","building-library","building-office-2","button","button-arrow","button-icon","calculator","calendar","calendar-check","camera","caption","car","card-payment","caret","cart","case","case-capitalized","case-lower","case-normal","case-upper","category","chart","chart-bar","chart-bar-square","chart-line","chat","chat-bubble-left-right","chat-bubble-oval-left-ellipsis","check","check-circle","checkbox","chevron","chevron-double","chevron-double-left","chevron-double-right","chevron-down","chevron-left","chevron-right","chevron-up","chevron-up-down","circle-stack","clear-marks","clipboard","clipboard-check","clipboard-document-list","clipboard-list","clock","close","close-circle","cloud","cloud-alert","cloud-arrow-up","cloud-check","cloud-download","cloud-pause","cloud-slash","code","code-bracket","collapse","collapse-all","column-gap","column-widths","columns","company","compose","contrast","cookie","copied","copy","copy-style","copy-to-page","corner","crop","crop-bottom","crop-left","crop-left-right","crop-right","crop-top","crop-y","cube-transparent","cursor","cursor-arrow-rays","cursor-click","dashboard","date","desktop","detach","diagram","direction","direction-down","direction-left","direction-right","direction-up","document","document-check","document-magnifying-glass","dollar","dot","download","drag","drop","duplicate","edit","email","emphasis","eraser","error","expand","external","eye","eye-off","face-smile","filter","finish","fire","flag","flag-au","flag-ca","flag-eu","flag-gb","flag-nz","flag-us","folder","folder-open","folder-plus","forward","full-width","gap","gem","gift","globe","grid","ground","hand","hand-thumb-up","hash","headquarters","heart","height","help","help-off","hexagon","home","hover","icon-after-text","icon-before-text","identification","image","image-off","images","inbox","info","italic","key","layers","layout","letter-spacing","lightbulb","line-between","line-dashed","line-dotted","line-solid","line-spacing","line-style","link","link-slash","list","list-format","list-none","location","lock","logo","logout","map","media","media-layout-big-two","media-layout-inset","media-layout-side-by-side","media-layout-stacked","megaphone","menu","meta","microphone","money","moon","more","more-vertical","move-down","move-up","newspaper","no-symbol","note","nudge","nudge-x","nudge-y","numbered-list","opacity","own-text","package","package-open","padding-all","padding-bottom","padding-left","padding-left-right","padding-right","padding-top","padding-x","padding-y","page","paint-brush","palette","panel-left","panel-right","paragraph-spacing","parcel","paste","paste-style","pause","pen","people","percent","phone","phone-hidden","placement","play","plus-minus","power","presentation-chart-bar","print","product","product-field","product-size","progress","quiet","quote","radio-dot","radius","receipt","receipt-percent","receipt-refund","rectangle-group","redo","refresh","remove","remove-circle","rename","reply","reply-all","revert","robot","rotate","scale","scroll-point","scroll-text","search","select-all","send","server","settings","shadow","shape-ellipse","shape-rect","share","shared","shield-check","shield-exclamation","sides-each","signal","signal-slash","sitemap","slide-arrows-bare","slide-arrows-round","slide-arrows-square","slide-picker-bar","slide-picker-cards","slide-picker-dots","slide-picker-numbers","slide-picker-squares","sort","sparkles","speaker","speaker-wave","spec-table","spinner","split","square","star","state","status-circle","status-dot","sticky","stop-circle","store","strike","styles","subscript","success-burst","sun","superscript","swap","swatch","table","tablet","tabs","tag","target","team","telephone","template","text-color","text-lines","text-size","text-small","text-value","texture","theme","ticket","title","trash","trigger","truck","tv","type","tyre","underline","undo","upload","v-align","verified","video-off","view-columns","wallet","warning","weight","wheel","widgets","width","window","windows","words-from","wrap","wrench","wrench-screwdriver","zoom-in"],e=new Set(a),r=a=>"string"==typeof a&&e.has(a),n=["brand-1password","brand-adyen","brand-afterpay","brand-aircall","brand-amd","brand-americanexpress","brand-anthropic","brand-apple","brand-applepay","brand-aws","brand-bigcommerce","brand-brevo","brand-calendly","brand-campaignmonitor","brand-cloudflare","brand-dell","brand-dhl","brand-dropbox","brand-ebay","brand-etsy","brand-facebook","brand-fedex","brand-github","brand-gmail","brand-googleads","brand-googleanalytics","brand-googlecalendar","brand-googledrive","brand-googlepay","brand-googlesheets","brand-hubspot","brand-instagram","brand-intel","brand-intercom","brand-klarna","brand-line","brand-linkedin","brand-mailchimp","brand-mailgun","brand-make","brand-mastercard","brand-messenger","brand-meta","brand-myob","brand-notion","brand-nvidia","brand-paypal","brand-pinterest","brand-quickbooks","brand-sage","brand-samsung","brand-shopify","brand-square","brand-squarespace","brand-stripe","brand-telegram","brand-tiktok","brand-trello","brand-ups","brand-visa","brand-vonage","brand-wechat","brand-whatsapp","brand-wise","brand-wix","brand-woocommerce","brand-x","brand-xero","brand-youtube","brand-zapier","brand-zendesk","brand-zoom"],o=new Set(n),d=a=>"string"==typeof a&&o.has(a);export{n as BRAND_ICON_NAMES,a as ICON_NAMES,d as isBrandIconName,r as isIconName};
@@ -0,0 +1,7 @@
1
+ import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-TZHWF3P5.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-FKZEGBLK.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{placeMenu as d,popupBounds as c,followAnchor as u}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as p}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useState as m,useRef as h,useId as g,useCallback as v,useEffect as b}from"react";import{jsxs as y,jsx as x}from"react/jsx-runtime";var k=/(^|[\s:])!?z-/,w={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"};function D({trigger:D,items:L,align:K="end",side:j="bottom","aria-label":E,className:W="",triggerClassName:A,menuClassName:C="",minWidth:S=180,linkAs:H,disabled:$,id:N,"aria-describedby":T,"aria-disabled":U=!1,onOpenChange:B,footer:G,footerLabel:I}){const[J,q]=m(!1),[M,P]=m(-1),z=h(null),F=h(null),R=h(null),Z=h(null),O=h(null),Q=null!=G&&!1!==G,V=h({text:"",at:0}),Y=g(),X=g(),_=N??X,ee=h(B);ee.current=B;const te=h(J);te.current=J;const re=v(e=>{q(!1),te.current&&(te.current=!1,ee.current?.(!1)),e&&F.current?.focus()},[]),ne=(t,r)=>{const n=L.length;for(let o=0;o<n;o+=1){const i=((t+r*o)%n+n)%n;if(e(L[i]))return i}return-1},oe=()=>R.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!J)return;const e=e=>{const t=e.target;if(z.current?.contains(t)||oe()?.contains(t))return;const r=oe()?.getAttribute("data-popup-menu-tree"),n=t.closest?.("[data-popup-menu-tree]");r&&n?.getAttribute("data-popup-menu-tree")===r||re(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>re(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[J,re]);const ie=v(()=>{const e=oe(),t=F.current;if(!e||!t)return;const r=e.style;r.left="0px",r.top="0px",r.maxWidth="none",r.maxHeight="none";const n={width:e.offsetWidth,height:e.offsetHeight},o=d({trigger:t.getBoundingClientRect(),menu:n,bounds:c(t),align:K,side:j});r.left=`${o.left}px`,r.top=`${o.top}px`,r.maxWidth=`${o.maxWidth}px`,r.maxHeight=`${o.maxHeight}px`,r.overflowY=n.height>o.maxHeight?"auto":"",e.dataset.side=o.side,e.dataset.align=K},[K,j]);p(()=>{J&&ie()}),b(()=>{if(J)return u(()=>F.current,ie)},[J,ie]),b(()=>{if(!J)return;const t=R.current,r=e(L[M])?t?.querySelector(`[data-dropdown-index="${M}"]`):null;(r??t)?.focus({preventScroll:!0})},[J,M]),b(()=>{if(J)return f(e=>"Escape"===e.key&&(re(!0),!0),()=>Z.current)},[J,re]),n(Z,J&&Q);const ae=h(null),le=e=>"first"===e?ne(0,1):ne(L.length-1,-1),se=e=>{P(le(e)),q(!0),te.current||(te.current=!0,ae.current=e,B?.(!0))};p(()=>{const e=ae.current;if(!J||!e)return;ae.current=null;const t=le(e);t!==M&&P(t)});const de=t(L,Y),ce="function"==typeof G?G({close:()=>re(!0)}):G,ue={...k.test(C)?{}:{zIndex:s.popup},minWidth:S};/* @__PURE__ */
2
+ return y("div",{ref:z,className:`relative inline-flex ${W}`.trim(),children:[
3
+ /* @__PURE__ */x("button",{ref:F,id:_,type:"button","aria-haspopup":"menu","aria-expanded":J,"aria-controls":J?Y:void 0,"aria-label":E,"aria-describedby":T,"aria-disabled":U||void 0,disabled:$,onClick:()=>{U||(J?re(!1):se("first"))},onKeyDown:e=>{U||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),se("first")):"ArrowUp"===e.key&&(e.preventDefault(),se("last")))},className:A??"inline-flex items-center justify-center rounded-(--radius-control) text-gray-600 transition-colors not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-gray-900 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60 "+(E?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"),children:D}),J&&
4
+ /* @__PURE__ */x(i,{portal:!0,className:C,style:ue,children:/* @__PURE__ */y("div",{ref:Z,children:[
5
+ /* @__PURE__ */x("div",{ref:R,id:Y,role:"menu","aria-orientation":"vertical","aria-label":E,"aria-labelledby":E?void 0:_,"aria-describedby":de,tabIndex:-1,onKeyDown:t=>{if(!t.target.closest?.("[data-popup-submenu-panel]")||"Tab"===t.key)if("ArrowDown"===t.key)t.preventDefault(),P(ne(M+1,1));else if("ArrowUp"===t.key)t.preventDefault(),P(ne(M-1,-1));else if("Home"===t.key)t.preventDefault(),P(ne(0,1));else if("End"===t.key)t.preventDefault(),P(ne(L.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&O.current?o(O.current)[0]:void 0;e?e.focus({preventScroll:!0}):re(!0)}else if(" "===t.key){const e=t.target;e.matches?.("a[href]")&&(t.preventDefault(),e.click())}else 1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey||(t=>{const r=Date.now(),n=t.key.toLowerCase(),o=r-V.current.at<500?V.current.text+n:n;V.current={text:o,at:r};const i=[...o].every(e=>e===o[0]),a=i?o[0]:o,l=i?M+1:Math.max(M,0),s=R.current,d=L.length;for(let r=0;r<d;r+=1){const n=((l+r)%d+d)%d;if(e(L[n])&&(s?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return t.preventDefault(),void P(n)}})(t)},children:r(L,{menuId:Y,choose:e=>{e.disabled||(re(!0),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>re(!0),rowProps:(e,t)=>({"data-dropdown-index":e,tabIndex:e===M?0:-1,onMouseEnter:()=>{t.disabled||O.current?.contains(document.activeElement)||P(e)}}),linkAs:H})}),Q&&/* @__PURE__ */y("div",{ref:O,role:"group","aria-label":I,"data-dropdown-footer":"",onKeyDown:e=>{const t=O.current;if("Tab"!==e.key||!t||!t.contains(e.target))return;const r=o(t),n=document.activeElement;if(e.shiftKey){if(r.length>0&&n!==r[0])return;e.preventDefault();const t=R.current?.querySelector(`[data-dropdown-index="${M}"]`);return void(t??R.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),re(!0))},children:[
6
+ /* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(a,{})}),
7
+ /* @__PURE__ */x("div",{style:w,children:ce})]})]})})]})}export{D as DropdownMenu};
@@ -0,0 +1,2 @@
1
+ import{brandBox as t}from"./chunk-64ACCUNN.js";import{jsx as e}from"react/jsx-runtime";function i({size:i,width:r,height:h,style:o,...l}){const n=t(i??r??h??18,1.326);/* @__PURE__ */
2
+ return e("svg",{width:n.width,height:n.height,viewBox:"-0.2 2.797 24.4 18.406",fill:"currentColor","aria-hidden":"true",...l,style:{...n.style,...o},children:/* @__PURE__ */e("path",{d:"M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z"})})}export{i as BrandGmailIcon};
@@ -0,0 +1,2 @@
1
+ import{jsx as r}from"react/jsx-runtime";function e({size:e=18,...t}){/* @__PURE__ */
2
+ return r("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t,children:/* @__PURE__ */r("path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3"})})}export{e as BrandFacebookOutlineIcon};
@@ -1,12 +1,12 @@
1
- import{nextEnabledIndex as e}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as t,filterOptionItems as n,optionMatches as r,groupedRows as l,OptionCheck as o,OptionSublabel as a}from"./chunk-UQBPKZUR.js";import{INPUT_BASE_ON as i,INPUT_BASE as s}from"./chunk-PF3ANJFI.js";import{Button_default as u}from"./chunk-4IU5BSVE.js";import{LoadingSpinner as c}from"./chunk-Q5MD3VY6.js";import{Tooltip as d}from"./chunk-22S6LG6D.js";import{onOverlayOpen as h}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as p}from"./chunk-62LW225J.js";import{useDropdownPosition as m,MENU_MAX_HEIGHT as f}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as g}from"./chunk-D65T4H6J.js";import{GLASS_DIVIDER as b,glassStyle as v}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as w}from"./chunk-E6UCGCOC.js";import{useState as x,useId as k,useRef as $,useMemo as j,useEffect as D}from"react";import{createPortal as N}from"react-dom";import{jsxs as C,jsx as S}from"react/jsx-runtime";function W(e,t){const n=e.length;if(0===n||t(e.join(", ")))return{shown:n,cut:!1};if(1===n)return{shown:1,cut:!0};let r=0;for(let l=1;l<n&&t(`${e.slice(0,l).join(", ")} +${n-l}`);l+=1)r=l;return{shown:r,cut:!1}}function R({onClear:e,ariaLabel:t}){/* @__PURE__ */
2
- return S("button",{type:"button","aria-label":t,onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity text-base leading-none",children:"×"})}function F(F){const{options:L,placeholder:E,emptyOptionLabel:M,className:T="",disabled:U,id:z,filter:I=!1,allowFreeText:O=!1,freeTextOption:A,onSearchChange:B,loading:J=!1,error:G,onRetry:P,rightAdornment:H,renderOption:Q,clearable:V=!0,"aria-label":K,"aria-labelledby":X,"aria-describedby":Y}=F,Z=!0===F.multiple,q=F.multiple?F.value:F.value?[F.value]:[],_=F.multiple?"":F.value,ee=e=>{F.multiple?F.onChange(e):F.onChange(e[0]??"")},te=q.length>0,ne=I&&te&&!U,re=Z||I,le=null!=A,oe=O||le,[ae,ie]=x(!1),[se,ue]=x(-1),ce=k(),de=z??`${ce}-input`,he=`${ce}-listbox`,pe=e=>`${ce}-opt-${e}`,[me,fe]=x(""),ge=w(),be=M??ge.select.none,ve=e=>{fe(e),ue(-1),B?.(e)},ye=$(null),we=$(null),xe=$(null),ke=$(null),$e=$(ae);$e.current=ae;const je=$(!1),De=e=>{$e.current&&($e.current=!1,e&&O&&!le&&Ve&&(Z?q.includes(Ve)||ee([...q,Ve]):Ve!==_&&ee([Ve])),ie(!1),ve(""))},Ne=(e,t)=>{if(!e.disabled){if(Z)return ee(q.includes(e.value)?q.filter(t=>t!==e.value):[...q,e.value]),void(e===Ke?ve(""):ue(t));ee([e.value]),De(!1)}},[Ce,Se]=x(null);g(()=>{if(!H||ae)return void Se(null);const e=ke.current?.offsetWidth??0;Se(e?e+(Me?32:8)+6:null)});const We=m(we,ae,re?{popupRef:xe}:{matchTriggerWidth:!0}),Re=j(()=>t(L),[L]),Fe=q.join("\0"),Le=j(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of Re)q.includes(n.value)&&!t.has(n.value)&&(t.add(n.value),e.push(n.label));if(oe)for(const n of q)t.has(n)||e.push(n);return e},[Re,Fe,oe]),Ee=Le.join(", "),Me=V&&te&&!U,[Te,Ue]=x(null),ze=$(null),Ie=$(""),Oe=$(()=>{});Oe.current=()=>{const e=we.current,t=ze.current;if(!Z||!e||!t)return;const n=getComputedStyle(e),r=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0),l=[n.fontStyle,n.fontWeight,n.fontSize,n.fontFamily,n.letterSpacing].join("|"),o=`${r}|${l}|${Le.join("\0")}`;if(o===Ie.current)return;Ie.current=o;let a=null;r>0&&Le.length>0&&(t.style.fontStyle=n.fontStyle,t.style.fontWeight=n.fontWeight,t.style.fontSize=n.fontSize,t.style.fontFamily=n.fontFamily,t.style.letterSpacing=n.letterSpacing,a=W(Le,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),Ue(e=>e?.shown===a?.shown&&e?.cut===a?.cut?e:a)},g(()=>{Oe.current()}),D(()=>{const e=we.current;if(!Z||!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>Oe.current());return t.observe(e),()=>t.disconnect()},[Z]);const Ae=Le.length,Be=!Z||!Te||Te.shown>=Ae?Ee:0===Te.shown?ge.select.selectedCount(Ae):`${Le.slice(0,Te.shown).join(", ")} +${Ae-Te.shown}`,Je=Z&&null!==Te&&(Te.shown<Ae||Te.cut),Ge=ae&&te&&re;D(()=>{if(!ae)return;const e=e=>{const t=e.target;ye.current?.contains(t)||xe.current?.contains(t)||De(!0)};document.addEventListener("mousedown",e);const t=h(()=>De(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[ae,O,me,Fe,F.onChange]),D(()=>{if(ae)return y(e=>!("Escape"!==e.key||!$e.current)&&(De(!1),we.current?.blur(),!0),()=>xe.current)},[ae]);const Pe=j(()=>{const e=/* @__PURE__ */new Set;return n(L,t=>!e.has(t.value)&&(e.add(t.value),!0))},[L]),He=j(()=>{if(B)return Pe;const e=me.trim().toLowerCase();return e?n(Pe,t=>r(t,e)):Pe},[Pe,me,B]),Qe=j(()=>t(He),[He]),Ve=me.trim(),Ke=j(()=>le&&Ve?Re.some(e=>e.label===Ve)||q.includes(Ve)?null:{value:Ve,label:Ve}:null,[le,Ve,Re,Fe]),Xe=j(()=>Ke?[...Qe,Ke]:Qe,[Qe,Ke]);/* @__PURE__ */
3
- return C("div",{ref:ye,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&(ye.current?.contains(t)||xe.current?.contains(t))||je.current||document.activeElement!==we.current&&De(!0)},children:[(Ye=/* @__PURE__ */S("input",{id:de,ref:we,type:"text",autoComplete:"off",role:"combobox","aria-expanded":ae,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-controls":ae?he:void 0,"aria-activedescendant":ae&&se>=0&&se<Xe.length?pe(se):void 0,"aria-label":X?void 0:K,"aria-labelledby":X,"aria-describedby":Y,value:ae?me:Be,onChange:e=>{ve(e.target.value),ie(!0)},onFocus:()=>{U||(ve(""),ie(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(U)return;if(t.preventDefault(),!ae)return void ie(!0);if(0===Xe.length)return;const n="ArrowDown"===t.key?1:-1;return void ue(t=>e(Xe,t,n))}"Enter"===t.key?(t.preventDefault(),ae&&se>=0&&se<Xe.length?Ne(Xe[se],se):1!==Qe.length||Qe[0].disabled?O&&!le&&Ve&&(Z?(q.includes(Ve)||ee([...q,Ve]),ve("")):(ee([Ve]),De(!1),we.current?.blur())):Ne(Qe[0],0)):"Escape"===t.key?(De(!1),we.current?.blur()):"Tab"===t.key&&De(!0)},placeholder:Ge?Be:E||be,className:`${ne?i:s} ${T} ${Me?"pr-8":""} ${U?"bg-gray-50 text-gray-400 cursor-not-allowed":""} truncate${Ge?" rosh-field-shows-choice":""}`,style:Ce?{paddingRight:Ce}:void 0,disabled:U}),Z?/* @__PURE__ */S(d,{content:!ae&&Je?Ee:null,className:"block",children:Ye}):Ye),Z&&
4
- /* @__PURE__ */S("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:/* @__PURE__ */S("span",{ref:ze,className:"whitespace-pre"})}),Me&&/* @__PURE__ */S(R,{ariaLabel:ge.select.clear,onClear:()=>{ee([]),De(!1)}}),H&&!ae&&/* @__PURE__ */S("div",{ref:ke,className:`absolute top-1/2 -translate-y-1/2 ${Me?"right-8":"right-2"} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:H}),ae&&N(
5
- /* @__PURE__ */C("div",{ref:xe,onMouseDownCapture:()=>{je.current=!0,setTimeout(()=>{je.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:p.popup,left:We?.left,right:We?.right,top:We?.top,bottom:We?.bottom,minWidth:We?.minWidth,width:We?.width,...re&&{maxWidth:We?.maxWidth},visibility:We?void 0:"hidden",...v()},children:[Z&&te&&V&&!U&&
6
- /* @__PURE__ */S("button",{type:"button",tabIndex:-1,onMouseDown:e=>{e.preventDefault(),ee([])},className:`block w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm text-gray-600 hover:bg-gray-50 border-b ${b}`,children:ge.select.clearAll}),J?
7
- /* @__PURE__ */S(c,{size:"sm",padding:"py-2",label:ge.search.searching}):G?/* @__PURE__ */C("div",{role:"alert",className:"flex items-center gap-2 px-3 py-2 text-sm text-red-600",children:[
8
- /* @__PURE__ */S("span",{className:"min-w-0 flex-1",children:G}),P&&/* @__PURE__ */S(u,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:P,className:"shrink-0",children:ge.list.retry})]}):null,
9
- /* @__PURE__ */C("div",{id:he,role:Xe.length?"listbox":void 0,"aria-labelledby":Xe.length?X??(K?void 0:de):void 0,"aria-label":Xe.length&&!X?K:void 0,"aria-multiselectable":!(!Xe.length||!Z)||void 0,className:"overflow-y-auto",style:{maxHeight:We?.maxHeight??f},children:[0===Xe.length?J||G?null:/* @__PURE__ */S("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:ge.select.noMatches}):0===Qe.length?null:l(He,(e,t)=>{const n=q.includes(e.value);/* @__PURE__ */
1
+ import{nextEnabledIndex as e}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as t,filterOptionItems as n,optionMatches as r,groupedRows as l,OptionCheck as o,OptionSublabel as a}from"./chunk-XZL3HCWH.js";import{INPUT_BASE_ON as i,INPUT_BASE as s}from"./chunk-PF3ANJFI.js";import{Button_default as u}from"./chunk-4IU5BSVE.js";import{LoadingSpinner as c}from"./chunk-Q5MD3VY6.js";import{Tooltip as d}from"./chunk-22S6LG6D.js";import{onOverlayOpen as h}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as p}from"./chunk-62LW225J.js";import{useDropdownPosition as m,MENU_MAX_HEIGHT as f}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as g}from"./chunk-D65T4H6J.js";import{GLASS_DIVIDER as b,glassStyle as v}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as w}from"./chunk-E6UCGCOC.js";import{useState as x,useId as k,useRef as $,useMemo as j,useEffect as D}from"react";import{createPortal as N}from"react-dom";import{jsxs as C,jsx as S}from"react/jsx-runtime";function W(e,t){const n=e.length;if(0===n||t(e.join(", ")))return{shown:n,cut:!1};if(1===n)return{shown:1,cut:!0};let r=0;for(let l=1;l<n&&t(`${e.slice(0,l).join(", ")} +${n-l}`);l+=1)r=l;return{shown:r,cut:!1}}function L({onClear:e,ariaLabel:t}){/* @__PURE__ */
2
+ return S("button",{type:"button","aria-label":t,onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity text-base leading-none",children:"×"})}function F(F){const{options:R,placeholder:E,emptyOptionLabel:M,className:T="",disabled:z,id:I,filter:O=!1,allowFreeText:U=!1,freeTextOption:A,onSearchChange:B,loading:H=!1,error:J,onRetry:G,rightAdornment:P,renderOption:V,clearable:Q=!0,"aria-label":X,"aria-labelledby":K,"aria-describedby":Y}=F,Z=!0===F.multiple,q=F.multiple?F.value:F.value?[F.value]:[],_=F.multiple?"":F.value,ee=e=>{F.multiple?F.onChange(e):F.onChange(e[0]??"")},te=q.length>0,ne=O&&te&&!z,re=Z||O,le=null!=A,oe=U||le,[ae,ie]=x(!1),[se,ue]=x(-1),ce=k(),de=I??`${ce}-input`,he=`${ce}-listbox`,pe=e=>`${ce}-opt-${e}`,[me,fe]=x(""),ge=w(),be=M??ge.select.none,ve=e=>{fe(e),ue(-1),B?.(e)},ye=$(null),we=$(null),xe=$(null),ke=$(null),$e=$(ae);$e.current=ae;const je=$(!1),De=e=>{$e.current&&($e.current=!1,e&&U&&!le&&Qe&&(Z?q.includes(Qe)||ee([...q,Qe]):Qe!==_&&ee([Qe])),ie(!1),ve(""))},Ne=(e,t)=>{if(!e.disabled){if(Z)return ee(q.includes(e.value)?q.filter(t=>t!==e.value):[...q,e.value]),void(e===Xe?ve(""):ue(t));ee([e.value]),De(!1)}},[Ce,Se]=x(null);g(()=>{if(!P||ae)return void Se(null);const e=ke.current?.offsetWidth??0;Se(e?e+(Me?32:8)+6:null)});const We=m(we,ae,re?{popupRef:xe}:{matchTriggerWidth:!0}),Le=j(()=>t(R),[R]),Fe=q.join("\0"),Re=j(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of Le)q.includes(n.value)&&!t.has(n.value)&&(t.add(n.value),e.push(n.label));if(oe)for(const n of q)t.has(n)||e.push(n);return e},[Le,Fe,oe]),Ee=Re.join(", "),Me=Q&&te&&!z,[Te,ze]=x(null),Ie=$(null),Oe=$(""),Ue=$(()=>{});Ue.current=()=>{const e=we.current,t=Ie.current;if(!Z||!e||!t)return;const n=getComputedStyle(e),r=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0),l=[n.fontStyle,n.fontWeight,n.fontSize,n.fontFamily,n.letterSpacing].join("|"),o=`${r}|${l}|${Re.join("\0")}`;if(o===Oe.current)return;Oe.current=o;let a=null;r>0&&Re.length>0&&(t.style.fontStyle=n.fontStyle,t.style.fontWeight=n.fontWeight,t.style.fontSize=n.fontSize,t.style.fontFamily=n.fontFamily,t.style.letterSpacing=n.letterSpacing,a=W(Re,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),ze(e=>e?.shown===a?.shown&&e?.cut===a?.cut?e:a)},g(()=>{Ue.current()}),D(()=>{const e=we.current;if(!Z||!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>Ue.current());return t.observe(e),()=>t.disconnect()},[Z]);const Ae=Re.length,Be=!Z||!Te||Te.shown>=Ae?Ee:0===Te.shown?ge.select.selectedCount(Ae):`${Re.slice(0,Te.shown).join(", ")} +${Ae-Te.shown}`,He=Z&&null!==Te&&(Te.shown<Ae||Te.cut),Je=ae&&te&&re;D(()=>{if(!ae)return;const e=e=>{const t=e.target;ye.current?.contains(t)||xe.current?.contains(t)||De(!0)};document.addEventListener("mousedown",e);const t=h(()=>De(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[ae,U,me,Fe,F.onChange]),D(()=>{if(ae)return y(e=>!("Escape"!==e.key||!$e.current)&&(De(!1),we.current?.blur(),!0),()=>xe.current)},[ae]);const Ge=j(()=>{const e=/* @__PURE__ */new Set;return n(R,t=>!e.has(t.value)&&(e.add(t.value),!0))},[R]),Pe=j(()=>{if(B)return Ge;const e=me.trim().toLowerCase();return e?n(Ge,t=>r(t,e)):Ge},[Ge,me,B]),Ve=j(()=>t(Pe),[Pe]),Qe=me.trim(),Xe=j(()=>le&&Qe?Le.some(e=>e.label===Qe)||q.includes(Qe)?null:{value:Qe,label:Qe}:null,[le,Qe,Le,Fe]),Ke=j(()=>Xe?[...Ve,Xe]:Ve,[Ve,Xe]);/* @__PURE__ */
3
+ return C("div",{ref:ye,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&(ye.current?.contains(t)||xe.current?.contains(t))||je.current||document.activeElement!==we.current&&De(!0)},children:[(Ye=/* @__PURE__ */S("input",{id:de,ref:we,type:"text",autoComplete:"off",role:"combobox","aria-expanded":ae,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-controls":ae?he:void 0,"aria-activedescendant":ae&&se>=0&&se<Ke.length?pe(se):void 0,"aria-label":K?void 0:X,"aria-labelledby":K,"aria-describedby":Y,value:ae?me:Be,onChange:e=>{ve(e.target.value),ie(!0)},onFocus:()=>{z||(ve(""),ie(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(z)return;if(t.preventDefault(),!ae)return void ie(!0);if(0===Ke.length)return;const n="ArrowDown"===t.key?1:-1;return void ue(t=>e(Ke,t,n))}"Enter"===t.key?(t.preventDefault(),ae&&se>=0&&se<Ke.length?Ne(Ke[se],se):1!==Ve.length||Ve[0].disabled?U&&!le&&Qe&&(Z?(q.includes(Qe)||ee([...q,Qe]),ve("")):(ee([Qe]),De(!1),we.current?.blur())):Ne(Ve[0],0)):"Escape"===t.key?(De(!1),we.current?.blur()):"Tab"===t.key&&De(!0)},placeholder:Je?Be:E||be,className:`${ne?i:s} ${T} ${Me?"pr-8":""} ${z?"bg-gray-50 text-gray-400 cursor-not-allowed":""} truncate${Je?" rosh-field-shows-choice":""}`,style:Ce?{paddingRight:Ce}:void 0,disabled:z}),Z?/* @__PURE__ */S(d,{content:!ae&&He?Ee:null,className:"block",children:Ye}):Ye),Z&&
4
+ /* @__PURE__ */S("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:/* @__PURE__ */S("span",{ref:Ie,className:"whitespace-pre"})}),Me&&/* @__PURE__ */S(L,{ariaLabel:ge.select.clear,onClear:()=>{ee([]),De(!1)}}),P&&!ae&&/* @__PURE__ */S("div",{ref:ke,className:`absolute top-1/2 -translate-y-1/2 ${Me?"right-8":"right-2"} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:P}),ae&&N(
5
+ /* @__PURE__ */C("div",{ref:xe,onMouseDownCapture:()=>{je.current=!0,setTimeout(()=>{je.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:p.popup,left:We?.left,right:We?.right,top:We?.top,bottom:We?.bottom,minWidth:We?.minWidth,width:We?.width,...re&&{maxWidth:We?.maxWidth},visibility:We?void 0:"hidden",...v()},children:[Z&&te&&Q&&!z&&
6
+ /* @__PURE__ */S("button",{type:"button",tabIndex:-1,onMouseDown:e=>{e.preventDefault(),ee([])},className:`block w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm text-gray-600 hover:bg-gray-50 border-b ${b}`,children:ge.select.clearAll}),H?
7
+ /* @__PURE__ */S(c,{size:"sm",padding:"py-2",label:ge.search.searching}):J?/* @__PURE__ */C("div",{role:"alert",className:"flex items-center gap-2 px-3 py-2 text-sm text-red-600",children:[
8
+ /* @__PURE__ */S("span",{className:"min-w-0 flex-1",children:J}),G&&/* @__PURE__ */S(u,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:G,className:"shrink-0",children:ge.list.retry})]}):null,
9
+ /* @__PURE__ */C("div",{id:he,role:Ke.length?"listbox":void 0,"aria-labelledby":Ke.length?K??(X?void 0:de):void 0,"aria-label":Ke.length&&!K?X:void 0,"aria-multiselectable":!(!Ke.length||!Z)||void 0,className:"overflow-y-auto",style:{maxHeight:We?.maxHeight??f},children:[0===Ke.length?H||J?null:/* @__PURE__ */S("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:ge.select.noMatches}):0===Ve.length?null:l(Pe,(e,t)=>{const n=q.includes(e.value);/* @__PURE__ */
10
10
  return C("button",{id:pe(t),type:"button",role:"option","aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:-1,onMouseDown:n=>{(e.disabled||Z)&&n.preventDefault(),Ne(e,t)},className:"w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center justify-between gap-2 whitespace-nowrap "+(e.disabled?"cursor-not-allowed text-gray-400":`hover:bg-gray-50 ${n?"text-blue-600 font-medium":"text-gray-700"} ${t===se?"bg-gray-100":n?"bg-blue-50/50":""}`),children:[Z&&/* @__PURE__ */S(o,{selected:n}),
11
- /* @__PURE__ */S("span",{className:`min-w-0 ${re?"flex-auto":"flex-1"} truncate`,children:Q?Q(e,{selected:n,active:t===se}):e.label}),e.sublabel&&/* @__PURE__ */S(a,{grows:re,children:e.sublabel})]},e.value)},ce),Ke&&A&&
12
- /* @__PURE__ */S("button",{id:pe(Qe.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{Z&&e.preventDefault(),Ne(Ke,Qe.length)},className:`w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center gap-2 whitespace-nowrap text-gray-700 hover:bg-gray-50 ${Qe.length?`border-t ${b}`:""} ${se===Qe.length?"bg-gray-100":""}`,children:/* @__PURE__ */S("span",{className:"min-w-0 flex-1 truncate",children:A(Ke.value)})},`${ce}-typed`)]})]}),document.body)]});var Ye}export{F as SearchableSelect,W as fitChoice};
11
+ /* @__PURE__ */S("span",{className:`min-w-0 ${re?"flex-auto":"flex-1"} truncate`,children:V?V(e,{selected:n,active:t===se}):e.label}),e.sublabel&&/* @__PURE__ */S(a,{grows:re,children:e.sublabel})]},e.value)},ce),Xe&&A&&
12
+ /* @__PURE__ */S("button",{id:pe(Ve.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{Z&&e.preventDefault(),Ne(Xe,Ve.length)},className:`w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center gap-2 whitespace-nowrap text-gray-700 hover:bg-gray-50 ${Ve.length?`border-t ${b}`:""} ${se===Ve.length?"bg-gray-100":""}`,children:/* @__PURE__ */S("span",{className:"min-w-0 flex-1 truncate",children:A(Xe.value)})},`${ce}-typed`)]})]}),document.body)]});var Ye}export{F as SearchableSelect,W as fitChoice};
@@ -1,4 +1,4 @@
1
- import{Modal as e}from"./chunk-L3NYH4QV.js";import{keepsNativeMenu as a}from"./chunk-5QFPTDQF.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
1
+ import{Modal as e}from"./chunk-2AHHM4SK.js";import{keepsNativeMenu as a}from"./chunk-5QFPTDQF.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
2
2
  return i("div",{onPointerDown:e=>e.stopPropagation(),onContextMenu:e=>{e.stopPropagation(),a(e.target)||e.preventDefault()},children:/* @__PURE__ */i(e,{open:t,onClose:r,title:l,size:"sm",children:/* @__PURE__ */n("div",{className:"space-y-4",children:[o,
3
3
  /* @__PURE__ */n("div",{children:[
4
4
  /* @__PURE__ */i("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Appearance"}),
@@ -1,9 +1,9 @@
1
- import{useSidebarSheet as e}from"./chunk-QWK6DRSN.js";import{resolveSeverity as t,severityWord as r}from"./chunk-TZFNWAED.js";import{Icon as n}from"./chunk-KIBL6M3T.js";import{useBrowserState as a}from"./chunk-D65T4H6J.js";import{useShellStrings as l}from"./chunk-E6UCGCOC.js";import{useId as i,useRef as s,useEffect as c,Children as o,isValidElement as u}from"react";import{jsx as d,jsxs as m,Fragment as h}from"react/jsx-runtime";function p(e){return"shrink-0 inline-flex items-center justify-center min-w-[1.25rem] px-2 h-5 rounded-full text-2xs font-medium "+(e?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-600")}function f({children:e,count:t}){return null==t?/* @__PURE__ */d("p",{className:"px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:e}):/* @__PURE__ */m("p",{className:"flex items-center justify-between gap-2 px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:[
1
+ import{useSidebarSheet as e}from"./chunk-QWK6DRSN.js";import{resolveSeverity as t,severityWord as r}from"./chunk-TZFNWAED.js";import{Icon as n}from"./chunk-2SHYR3RA.js";import{useBrowserState as a}from"./chunk-D65T4H6J.js";import{useShellStrings as l}from"./chunk-E6UCGCOC.js";import{useId as i,useRef as s,useEffect as c,Children as o,isValidElement as u}from"react";import{jsx as d,jsxs as m,Fragment as h}from"react/jsx-runtime";function p(e){return"shrink-0 inline-flex items-center justify-center min-w-[1.25rem] px-2 h-5 rounded-full text-2xs font-medium "+(e?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-600")}function f({children:e,count:t}){return null==t?/* @__PURE__ */d("p",{className:"px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:e}):/* @__PURE__ */m("p",{className:"flex items-center justify-between gap-2 px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:[
2
2
  /* @__PURE__ */d("span",{className:"min-w-0 truncate",children:e}),
3
- /* @__PURE__ */d("span",{className:"shrink-0 normal-case tracking-normal tabular-nums",children:t})]})}function g(e){return"flex min-w-0 flex-1 items-center justify-between gap-2 rounded-r-lg border-l-2 h-8 px-3 text-sm "+(e?"border-blue-500 bg-blue-50 font-medium text-blue-700":"border-gray-200 text-gray-700 hover:bg-gray-100")}function x({label:n,count:a,active:o,onClick:u,icon:f,trailing:x,severity:b,depth:y=0}){const w=t(b,"SidebarNavItem"),k=l().severity,N=w?r(w,k):void 0,v=e(),j=i(),C=s(null),I=s(n);I.current=n,c(()=>{if(v&&o)return v.report(j,()=>I.current,C.current)},[v,o,j]);const S=/* @__PURE__ */m(h,{children:[null!=f&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"shrink-0 h-4 w-4",children:f}),w&&
3
+ /* @__PURE__ */d("span",{className:"shrink-0 normal-case tracking-normal tabular-nums",children:t})]})}function g(e){return"flex min-w-0 flex-1 items-center justify-between gap-2 rounded-r-lg border-l-2 h-8 px-3 text-sm "+(e?"border-blue-500 bg-blue-50 font-medium text-blue-700":"border-gray-200 text-gray-700 hover:bg-gray-100")}function x({label:n,count:a,active:o,onClick:u,icon:f,trailing:x,severity:b,depth:y=0}){const w=t(b,"SidebarNavItem"),k=l().severity,N=w?r(w,k):void 0,v=e(),j=i(),C=s(null),S=s(n);S.current=n,c(()=>{if(v&&o)return v.report(j,()=>S.current,C.current)},[v,o,j]);const I=/* @__PURE__ */m(h,{children:[null!=f&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"shrink-0 h-4 w-4",children:f}),w&&
4
4
  /* @__PURE__ */d("span",{"aria-hidden":"true",title:N,className:`shrink-0 h-1.5 w-1.5 rounded-full ${w.fill}`}),
5
5
  /* @__PURE__ */d("span",{className:"min-w-0 truncate mr-auto",title:"string"==typeof n?n:void 0,children:n}),w&&/* @__PURE__ */d("span",{className:"sr-only",children:N}),null!=a&&a>0&&/* @__PURE__ */d("span",{className:p(o),children:a}),null!=x&&/* @__PURE__ */d("span",{className:"shrink-0",children:x})]});/* @__PURE__ */
6
- return d("button",1===y?{ref:C,type:"button",onClick:u,className:"flex w-full pl-5 text-left",children:/* @__PURE__ */d("span",{className:g(o),children:S})}:{ref:C,type:"button",onClick:u,className:"flex w-full items-center justify-between gap-2 rounded-lg h-8 px-3 text-sm text-left "+(o?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),children:S})}function b({label:e,count:t,children:r,defaultExpanded:l=!0,storageKey:s}){const c=i(),[h,f]=a(()=>{if(s){let e=null;try{e=window.localStorage.getItem(s)}catch{}if("1"===e||"0"===e)return"1"===e}return l},l),g=!h&&o.toArray(r).some(e=>u(e)&&!0===e.props.active);/* @__PURE__ */
6
+ return d("button",1===y?{ref:C,type:"button",onClick:u,className:"flex w-full pl-5 text-left",children:/* @__PURE__ */d("span",{className:g(o),children:I})}:{ref:C,type:"button",onClick:u,className:"flex w-full items-center justify-between gap-2 rounded-lg h-8 px-3 text-sm text-left "+(o?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),children:I})}function b({label:e,count:t,children:r,defaultExpanded:l=!0,storageKey:s}){const c=i(),[h,f]=a(()=>{if(s){let e=null;try{e=window.localStorage.getItem(s)}catch{}if("1"===e||"0"===e)return"1"===e}return l},l),g=!h&&o.toArray(r).some(e=>u(e)&&!0===e.props.active);/* @__PURE__ */
7
7
  return m("div",{children:[
8
8
  /* @__PURE__ */m("button",{type:"button",onClick:()=>{const e=!h;if(f(e),s)try{window.localStorage.setItem(s,e?"1":"0")}catch{}},"aria-expanded":h,"aria-controls":c,className:"flex w-full items-center gap-2 rounded-lg h-8 px-3 text-sm font-medium text-left "+(g?"bg-blue-50 text-blue-700":"text-gray-800 hover:bg-gray-100"),children:[
9
9
  /* @__PURE__ */d("span",{className:"min-w-0 truncate",title:e,children:e}),
@@ -0,0 +1,5 @@
1
+ import{Icon as e}from"./chunk-2SHYR3RA.js";import{DEFAULT_SHELL_STRINGS as t}from"./chunk-E6UCGCOC.js";import{jsx as r}from"react/jsx-runtime";var n=["left","center","right","justify"],a={left:"align-left",center:"align-center",right:"align-right",justify:"align-justify"};function i(t){switch(t){case"left":/* @__PURE__ */
2
+ return r(e,{name:"align-left"});case"center":/* @__PURE__ */
3
+ return r(e,{name:"align-center"});case"right":/* @__PURE__ */
4
+ return r(e,{name:"align-right"});case"justify":/* @__PURE__ */
5
+ return r(e,{name:"align-justify"})}}function f(e=t.textToolbar){return{left:e.alignLeft,center:e.alignCenter,right:e.alignRight,justify:e.alignJustify}}function l(e,t=f()){return n.filter(t=>e.includes(t)).map(e=>({value:e,label:t[e],icon:i(e)}))}var u={three:{labelsPx:94.5,widestLabelPx:39.94},four:{labelsPx:140,widestLabelPx:44}},c=/[\u1100-\u11ff\u2e80-\u9fff\uac00-\ud7af\uf900-\ufaff\uff00-\uffef]/;function s(e){const t=f();if(e.every(e=>e.label===t[e.value]))return e.length>3?u.four:u.three;const r=e.map(e=>[...e.label].reduce((e,t)=>e+(c.test(t)?13:8),0));return{labelsPx:r.reduce((e,t)=>e+t,0),widestLabelPx:Math.max(0,...r)}}export{n as TEXT_ALIGNS,u as TEXT_ALIGN_FIT,a as TEXT_ALIGN_ICONS,s as textAlignFit,i as textAlignIcon,l as textAlignOptions,f as textAlignWords};