efficient-shell 11.5.0 → 11.8.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 (248) hide show
  1. package/README.md +6 -0
  2. package/dist/{Browser-URFWAJYZ.js → Browser-NMILHEUX.js} +12 -12
  3. package/dist/Calculator-E7AMPGD5.js +29 -0
  4. package/dist/{CurrencyConverter-CUIFL32O.js → CurrencyConverter-TAWZDMT4.js} +9 -9
  5. package/dist/{Documents-Y62EQJWN.js → Documents-SDOY3ZA3.js} +11 -11
  6. package/dist/{Files-NXY7XRZD.js → Files-YQWVU6KZ.js} +43 -43
  7. package/dist/{Notepad-LYK7OAGU.js → Notepad-DZSDABU7.js} +9 -9
  8. package/dist/{PomodoroTimer-IMNUQQAC.js → PomodoroTimer-RAZE37BO.js} +68 -68
  9. package/dist/{Preview-ZKPVPYYL.js → Preview-6Z6K5QLK.js} +28 -28
  10. package/dist/Sidebar-GQX7UM3M.js +44 -0
  11. package/dist/{Spreadsheet-BPW2TLVQ.js → Spreadsheet-Q5N5KXGP.js} +14 -14
  12. package/dist/{Stock-S6URCQBQ.js → Stock-HJN2BSAD.js} +2 -2
  13. package/dist/{Weather-SM5ZQUE2.js → Weather-G7AOUS36.js} +20 -20
  14. package/dist/{WorldClock-I26FGYJO.js → WorldClock-GE3DGYYU.js} +4 -4
  15. package/dist/ai/index.js +91 -91
  16. package/dist/apps/index.js +1 -1
  17. package/dist/bin/media-host-check.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/borderLineStyles-C-W0uSzL.d.ts +12 -0
  20. package/dist/charts/BoxPlotChart.js +1 -1
  21. package/dist/charts/CandlestickChart.js +1 -1
  22. package/dist/charts/CartesianPlot.js +1 -1
  23. package/dist/charts/ChartTooltip.js +1 -1
  24. package/dist/charts/ChordChart.js +1 -1
  25. package/dist/charts/ColumnChart.js +1 -1
  26. package/dist/charts/FunnelChart.js +1 -1
  27. package/dist/charts/HeatmapChart.js +1 -1
  28. package/dist/charts/HistogramChart.js +1 -1
  29. package/dist/charts/PieChart.js +1 -1
  30. package/dist/charts/RadarChart.js +1 -1
  31. package/dist/charts/RadialBarChart.js +1 -1
  32. package/dist/charts/RangeChart.js +1 -1
  33. package/dist/charts/SankeyChart.js +1 -1
  34. package/dist/charts/ScatterChart.js +1 -1
  35. package/dist/charts/SpecChart.js +1 -1
  36. package/dist/charts/SunburstChart.js +1 -1
  37. package/dist/charts/TimeSeriesChart.js +1 -1
  38. package/dist/charts/TreemapChart.js +1 -1
  39. package/dist/charts/WaterfallChart.js +1 -1
  40. package/dist/{chunk-XXL5RLNM.js → chunk-34H3CK7R.js} +9 -9
  41. package/dist/{chunk-HNVSVTNC.js → chunk-355CRSFS.js} +11 -11
  42. package/dist/{chunk-DZOJQURG.js → chunk-3NRQNKVP.js} +3 -3
  43. package/dist/{chunk-QALPUJR2.js → chunk-3V5GSTZI.js} +1 -1
  44. package/dist/{chunk-NRALUW6P.js → chunk-3XTSXZAC.js} +7 -7
  45. package/dist/{chunk-WDQEUNGE.js → chunk-47DO42IW.js} +1 -1
  46. package/dist/{chunk-OEPYQUXZ.js → chunk-4MBYFQOI.js} +8 -8
  47. package/dist/{chunk-U44DVPGB.js → chunk-4QK4WNPB.js} +1 -1
  48. package/dist/{chunk-COF33H6J.js → chunk-4TGZODSH.js} +5 -5
  49. package/dist/{chunk-LCSMBVMU.js → chunk-4XNVIKZZ.js} +3 -3
  50. package/dist/chunk-56KADF2B.js +11 -0
  51. package/dist/{chunk-T6BGS26U.js → chunk-5CXFABVD.js} +1 -1
  52. package/dist/{chunk-E3EJWNNK.js → chunk-5F2AIDPY.js} +9 -9
  53. package/dist/{chunk-G66SG6JN.js → chunk-6EIZOX6W.js} +9 -9
  54. package/dist/{chunk-RNBS6QGP.js → chunk-6UBOLLBC.js} +16 -16
  55. package/dist/{chunk-ILY4DU3D.js → chunk-72LJMEL6.js} +1 -1
  56. package/dist/chunk-7DI3VQCF.js +2 -0
  57. package/dist/chunk-7GTUUBS2.js +28 -0
  58. package/dist/{chunk-D5HGRACW.js → chunk-B634WHJ2.js} +2 -2
  59. package/dist/{chunk-BBXFIBXB.js → chunk-BTRV3SMB.js} +1 -1
  60. package/dist/{chunk-OKHKY3ZZ.js → chunk-BW47XJLH.js} +1 -1
  61. package/dist/{chunk-QRU55BUS.js → chunk-C6YAFZG3.js} +2 -2
  62. package/dist/{chunk-QOI4GQVH.js → chunk-CD7UWMPX.js} +1 -1
  63. package/dist/{chunk-WGLHB6WE.js → chunk-CJH2BGXY.js} +1 -1
  64. package/dist/chunk-CZMSOB2T.js +9 -0
  65. package/dist/{chunk-ZRLWE3JM.js → chunk-DANLBFBD.js} +1 -1
  66. package/dist/{chunk-TFSLPAGB.js → chunk-DGNAUGZ3.js} +4 -4
  67. package/dist/{chunk-WLYYC3AP.js → chunk-DJW7CM3W.js} +1 -1
  68. package/dist/{chunk-MCAPJSB6.js → chunk-DU4WEVNS.js} +1 -1
  69. package/dist/{chunk-7FW2BQTV.js → chunk-DUGYWX2R.js} +2 -2
  70. package/dist/{chunk-Z44JWU75.js → chunk-EKCQ7XBZ.js} +2 -2
  71. package/dist/{chunk-DIEH76MB.js → chunk-ESZHN7PV.js} +1 -1
  72. package/dist/chunk-EUAC2T5D.js +2 -0
  73. package/dist/{chunk-5PP435FL.js → chunk-EYPKBJYG.js} +1 -1
  74. package/dist/chunk-F3ZFCQGP.js +4 -0
  75. package/dist/{chunk-7JVGF555.js → chunk-FA5FBNWF.js} +1 -1
  76. package/dist/chunk-FO6UPEZH.js +7 -0
  77. package/dist/chunk-FSUQTN34.js +14 -0
  78. package/dist/{chunk-6IOFNPR6.js → chunk-FT3QRQWY.js} +4 -4
  79. package/dist/{chunk-UNQ54QOF.js → chunk-FXOYA2VJ.js} +1 -1
  80. package/dist/{chunk-6KGIHI6X.js → chunk-G3KXB7SP.js} +4 -4
  81. package/dist/{chunk-YQOVUH5W.js → chunk-GELPD7EY.js} +8 -8
  82. package/dist/chunk-GOZO6LU2.js +8 -0
  83. package/dist/chunk-HCXIXV4E.js +8 -0
  84. package/dist/{chunk-KYBXJL6A.js → chunk-IBS7647X.js} +20 -20
  85. package/dist/{chunk-5XFBZ7C3.js → chunk-IDI3IOY4.js} +71 -71
  86. package/dist/{chunk-AWGJIDBR.js → chunk-IXOL7Y3Z.js} +1 -1
  87. package/dist/chunk-IYXNRNAF.js +8 -0
  88. package/dist/{chunk-DOF56HTO.js → chunk-JNQF5CBB.js} +5 -5
  89. package/dist/{chunk-FZM3ZPW3.js → chunk-JPNAEN53.js} +1 -1
  90. package/dist/{chunk-S4FPYCUU.js → chunk-JQBVSPF5.js} +3 -3
  91. package/dist/{chunk-OA54HARK.js → chunk-KGSOOXA7.js} +6 -6
  92. package/dist/{chunk-PLC656AN.js → chunk-KQOY4RGP.js} +1 -1
  93. package/dist/{chunk-KXU4ORKE.js → chunk-KTCM64DQ.js} +1 -1
  94. package/dist/chunk-L7XIGRIT.js +6 -0
  95. package/dist/{chunk-PSR6SXCC.js → chunk-LGDMGDSV.js} +11 -11
  96. package/dist/{chunk-3BFZVVAT.js → chunk-LJAYUDN2.js} +1 -1
  97. package/dist/chunk-LKTUUNGJ.js +1 -0
  98. package/dist/{chunk-HAYGUFNM.js → chunk-LT6PG6UW.js} +1 -1
  99. package/dist/{chunk-XFH64VIG.js → chunk-M3JNILT2.js} +3 -3
  100. package/dist/{chunk-VX6TKEEK.js → chunk-M4BPHBKI.js} +1 -1
  101. package/dist/{chunk-6M5O2P64.js → chunk-MDV7UQJD.js} +9 -9
  102. package/dist/{chunk-DWAA4YZV.js → chunk-MTIP5DH2.js} +3 -3
  103. package/dist/{chunk-XCAUDTCC.js → chunk-MXGDFO6A.js} +5 -5
  104. package/dist/{chunk-2PGR2276.js → chunk-N7U622NC.js} +1 -1
  105. package/dist/chunk-NGLU2GKE.js +5 -0
  106. package/dist/chunk-NOMWJTN2.js +1 -0
  107. package/dist/{chunk-4DDL6NXB.js → chunk-OTVK7DJM.js} +1 -1
  108. package/dist/{chunk-55AEZX6K.js → chunk-P4VKU3SL.js} +1 -1
  109. package/dist/{chunk-A6FR2D46.js → chunk-PFKXPSOM.js} +5 -5
  110. package/dist/{chunk-TDAI4J27.js → chunk-PVPMJ5G2.js} +1 -1
  111. package/dist/{chunk-NJN5IKWO.js → chunk-QQ2LDC6C.js} +1 -1
  112. package/dist/{chunk-QO5E33DH.js → chunk-RABYGQQU.js} +2 -2
  113. package/dist/chunk-RHDM7HRD.js +3 -0
  114. package/dist/chunk-RK7MN5L5.js +3 -0
  115. package/dist/chunk-RPL4H6LE.js +9 -0
  116. package/dist/{chunk-N5KO2IHG.js → chunk-RQDVAUXD.js} +4 -4
  117. package/dist/{chunk-IPO4LHSB.js → chunk-RRE2NNFS.js} +6 -6
  118. package/dist/{chunk-BUO7XCYR.js → chunk-RYLTVHCV.js} +12 -12
  119. package/dist/{chunk-36PJGT4W.js → chunk-SHO35OPO.js} +3 -3
  120. package/dist/{chunk-AIJ6OR6X.js → chunk-SS5SQMIB.js} +2 -2
  121. package/dist/{chunk-BMXTPJ7T.js → chunk-SX5BSWTN.js} +5 -5
  122. package/dist/{chunk-AFG34RBV.js → chunk-SXQZ5GTA.js} +6 -6
  123. package/dist/{chunk-RDKIYORS.js → chunk-SYZLS2JA.js} +1 -1
  124. package/dist/{chunk-4P3324KU.js → chunk-T7PVHIXI.js} +1 -1
  125. package/dist/{chunk-DVYIBJ3S.js → chunk-TQE6O2JA.js} +3 -3
  126. package/dist/{chunk-WPCNJ4UL.js → chunk-UGBYAVJV.js} +1 -1
  127. package/dist/{chunk-P7H2DXJB.js → chunk-UGGHQYDN.js} +10 -10
  128. package/dist/{chunk-SX3SG522.js → chunk-VAPSWR5Q.js} +9 -9
  129. package/dist/{chunk-LE5LWALR.js → chunk-VCMHBUKI.js} +1 -1
  130. package/dist/{chunk-NZ34BQKH.js → chunk-VQBEZNHC.js} +1 -1
  131. package/dist/{chunk-36VIGB6J.js → chunk-WDQI3FV6.js} +6 -6
  132. package/dist/{chunk-VX4COEWP.js → chunk-WMHZA4EO.js} +3 -3
  133. package/dist/{chunk-2N64TKI5.js → chunk-WOXQODYQ.js} +1 -1
  134. package/dist/chunk-WUAKIM2B.js +7 -0
  135. package/dist/{chunk-V2J2AHDW.js → chunk-X55LUERI.js} +4 -4
  136. package/dist/{chunk-F56UUBKG.js → chunk-X5TZHOTI.js} +1 -1
  137. package/dist/{chunk-TE6R53YD.js → chunk-XWFLIGDQ.js} +1 -1
  138. package/dist/chunk-XZAEEX2H.js +13 -0
  139. package/dist/{chunk-XBHXGBJR.js → chunk-YCWALB3A.js} +1 -1
  140. package/dist/{chunk-4EBJO7ER.js → chunk-YDMXW2Q4.js} +11 -11
  141. package/dist/{chunk-H5NIW2KS.js → chunk-ZD36QKQS.js} +1 -1
  142. package/dist/{chunk-WOAMPTZI.js → chunk-ZS3TIQQ4.js} +14 -14
  143. package/dist/{chunk-4RGMRXYH.js → chunk-ZXVJL7MS.js} +1 -1
  144. package/dist/data/DataTable.js +1 -1
  145. package/dist/data/EntityList.js +1 -1
  146. package/dist/data/ListLoadError.js +1 -1
  147. package/dist/data/ResizableTable.js +1 -1
  148. package/dist/format/index.d.ts +1 -0
  149. package/dist/format/index.js +1 -1
  150. package/dist/forms/AlignmentGrid.js +1 -1
  151. package/dist/forms/BorderInput.d.ts +3 -3
  152. package/dist/forms/BorderInput.js +1 -1
  153. package/dist/forms/BrandAssetEditor.js +1 -1
  154. package/dist/forms/Button.js +1 -1
  155. package/dist/forms/ColorPicker.js +1 -1
  156. package/dist/forms/ComposerAttachments.js +1 -1
  157. package/dist/forms/CornersInput.js +1 -1
  158. package/dist/forms/DateRangePicker.js +1 -1
  159. package/dist/forms/DisplayChips.js +1 -1
  160. package/dist/forms/FilePicker.js +1 -1
  161. package/dist/forms/IconButton.js +1 -1
  162. package/dist/forms/IconPicker.d.ts +12 -1
  163. package/dist/forms/IconPicker.js +1 -1
  164. package/dist/forms/Input.js +1 -1
  165. package/dist/forms/InputNumber.js +1 -1
  166. package/dist/forms/LinkPicker.js +1 -1
  167. package/dist/forms/MediaLibrary.js +1 -1
  168. package/dist/forms/MediaUploadField.js +1 -1
  169. package/dist/forms/MediaUploadGrid.js +1 -1
  170. package/dist/forms/MediaUsedInList.js +1 -1
  171. package/dist/forms/NumericKeypad.js +1 -1
  172. package/dist/forms/PictureTiles.js +1 -1
  173. package/dist/forms/PositionInput.js +1 -1
  174. package/dist/forms/RenameField.js +1 -1
  175. package/dist/forms/Segmented.js +1 -1
  176. package/dist/forms/Select.js +1 -1
  177. package/dist/forms/SidesInput.js +1 -1
  178. package/dist/forms/Slider.js +1 -1
  179. package/dist/forms/Snippet.js +1 -1
  180. package/dist/forms/SplitButton.js +1 -1
  181. package/dist/forms/TagInput.js +1 -1
  182. package/dist/forms/TextToolbar.js +1 -1
  183. package/dist/forms/WidthsBar.js +1 -1
  184. package/dist/icons/index.js +1 -1
  185. package/dist/index.d.ts +2 -1
  186. package/dist/index.js +366 -366
  187. package/dist/map/index.js +3 -3
  188. package/dist/page-tabs/index.js +5 -5
  189. package/dist/shell/AppUpdateBanner.js +1 -1
  190. package/dist/shell/ColoredBadge.js +1 -1
  191. package/dist/shell/ContextMenu.js +1 -1
  192. package/dist/shell/DropdownMenu.js +1 -1
  193. package/dist/shell/EditableGrid.js +1 -1
  194. package/dist/shell/GlobalSearch.js +1 -1
  195. package/dist/shell/HelpCenter.js +1 -1
  196. package/dist/shell/IconRail.js +1 -1
  197. package/dist/shell/ImageLightbox.js +1 -1
  198. package/dist/shell/ItemCount.js +1 -1
  199. package/dist/shell/LanguageSelect.js +1 -1
  200. package/dist/shell/Markdown.js +1 -1
  201. package/dist/shell/PopupMenu.js +1 -1
  202. package/dist/shell/ResizeHandle.js +1 -1
  203. package/dist/shell/SearchableSelect.js +1 -1
  204. package/dist/shell/SettingReset.js +1 -1
  205. package/dist/shell/SidebarLayout.js +1 -1
  206. package/dist/shell/SidebarNav.js +1 -1
  207. package/dist/shell/SortableList.js +1 -1
  208. package/dist/shell/StatusBadge.js +1 -1
  209. package/dist/shell/Tabs.js +1 -1
  210. package/dist/shell/Tooltip.js +1 -1
  211. package/dist/shell/TopNav.js +1 -1
  212. package/dist/shell/TransferProgress.js +1 -1
  213. package/dist/shell/Tree.js +1 -1
  214. package/dist/telemetry/index.js +1 -1
  215. package/dist/templates/AuthScreen.js +1 -1
  216. package/dist/templates/ChatTemplate.js +1 -1
  217. package/dist/templates/CheckoutTemplate.js +1 -1
  218. package/dist/templates/DashboardTemplate.js +1 -1
  219. package/dist/templates/DataTablePage.js +1 -1
  220. package/dist/templates/EmailTemplate.js +1 -1
  221. package/dist/templates/ErrorBoundary.js +1 -1
  222. package/dist/templates/FormLayoutPage.js +1 -1
  223. package/dist/templates/GalleryTemplate.js +1 -1
  224. package/dist/ui/index.d.ts +2 -1
  225. package/dist/ui/index.js +1 -1
  226. package/dist/version.js +1 -1
  227. package/package.json +1 -1
  228. package/dist/Calculator-OJSMHQKW.js +0 -29
  229. package/dist/Sidebar-BCTWRG7P.js +0 -44
  230. package/dist/chunk-3XZFWR6T.js +0 -13
  231. package/dist/chunk-4BCFBF3C.js +0 -9
  232. package/dist/chunk-4P57TIFK.js +0 -2
  233. package/dist/chunk-5PDHKH2A.js +0 -3
  234. package/dist/chunk-7LU3H72S.js +0 -7
  235. package/dist/chunk-CH3JQUDW.js +0 -8
  236. package/dist/chunk-EOVXFXVV.js +0 -2
  237. package/dist/chunk-EVX7AZII.js +0 -9
  238. package/dist/chunk-EXLHFM3V.js +0 -6
  239. package/dist/chunk-GBATZZX7.js +0 -1
  240. package/dist/chunk-HNUKXGYP.js +0 -5
  241. package/dist/chunk-LDZQJLMC.js +0 -3
  242. package/dist/chunk-M66ACZXQ.js +0 -5
  243. package/dist/chunk-MHPFBVDD.js +0 -8
  244. package/dist/chunk-NWC6YCIJ.js +0 -11
  245. package/dist/chunk-NZISMTQE.js +0 -7
  246. package/dist/chunk-RBZKV3ED.js +0 -14
  247. package/dist/chunk-TNJ2VCH4.js +0 -8
  248. package/dist/chunk-XKGEI6NL.js +0 -28
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import"../chunk-MXK7A6ZM.js";export{FormLayoutPage}from"../chunk-ILY4DU3D.js";export{GalleryTemplate}from"../chunk-U44DVPGB.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{AuthScreen}from"../chunk-KXU4ORKE.js";export{ChatTemplate}from"../chunk-AWGJIDBR.js";export{CheckoutTemplate}from"../chunk-PLC656AN.js";export{DashboardTemplate}from"../chunk-HAYGUFNM.js";export{DataTablePage}from"../chunk-D5HGRACW.js";export{EmailTemplate}from"../chunk-VX6TKEEK.js";export{ErrorBoundary}from"../chunk-4RGMRXYH.js";export{ErrorPage}from"../chunk-ORIXCEKO.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-N5KO2IHG.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-JSG2AKCG.js";export{TopNav}from"../chunk-T6BGS26U.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-IPO4LHSB.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-TGGUYAWA.js";export{Stepper}from"../chunk-CRILBBSU.js";export{SettingReset}from"../chunk-TFSLPAGB.js";export{SettingRow}from"../chunk-4TYIYL56.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-AFG34RBV.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-DWAA4YZV.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-DQQKG46I.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IMDGMUE3.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-K4JQ3FQI.js";export{PageHeader}from"../chunk-EN5NXWT6.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-NU5HN3FZ.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-SDDV3UCN.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{ResizeHandle}from"../chunk-Z44JWU75.js";export{HelpCenter}from"../chunk-OEPYQUXZ.js";export{IconRail,IconRailButton}from"../chunk-4P3324KU.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-3BFZVVAT.js";export{EditableGrid}from"../chunk-6M5O2P64.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-DZOJQURG.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{Card,StatCard}from"../chunk-P3RXXWXN.js";export{ContainerFillChart}from"../chunk-PCTOL2FX.js";export{CountBadge}from"../chunk-CLTRQ7AQ.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-7TZV6G2F.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-AWKJZSTO.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-DIEH76MB.js";export{Avatar,AvatarGroup}from"../chunk-AFYLVV74.js";export{BudgetBar,budgetState}from"../chunk-UEISJFZH.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{TagInput}from"../chunk-CH3JQUDW.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-EXLHFM3V.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-4EZIWLJJ.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-OBJGUJIE.js";export{WidthsBar}from"../chunk-DOF56HTO.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-7FW2BQTV.js";export{Slider,SliderGroup}from"../chunk-V2J2AHDW.js";export{Snippet}from"../chunk-COF33H6J.js";export{SplitButton_default as SplitButton}from"../chunk-5PDHKH2A.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{NumericKeypad}from"../chunk-WDQEUNGE.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ZRLWE3JM.js";export{PositionInput}from"../chunk-WLYYC3AP.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-RBZKV3ED.js";export{SearchableSelect}from"../chunk-3XZFWR6T.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-XKGEI6NL.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-NRALUW6P.js";import"../chunk-7JVGF555.js";export{ImageLightbox,lightboxKind}from"../chunk-P7H2DXJB.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{Drawer}from"../chunk-V6Y4OC6K.js";export{EmptyState}from"../chunk-QVZKRROQ.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-XYECIBVX.js";export{mediaLibraryMenu}from"../chunk-MS5APD3V.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-OPN4I565.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-E3EJWNNK.js";export{MediaUsedInList}from"../chunk-NZ34BQKH.js";export{RenameField}from"../chunk-WPCNJ4UL.js";export{NativeSelect,Select_default as Select}from"../chunk-XFH64VIG.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";export{DatePicker_default as DatePicker}from"../chunk-77AQNJE2.js";export{DateRangePicker,toISODate}from"../chunk-KYBXJL6A.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-SXNQHIBY.js";export{DisplayChips}from"../chunk-BBXFIBXB.js";export{FilePicker_default as FilePicker}from"../chunk-XBHXGBJR.js";export{FormErrorSummary}from"../chunk-SAP4YI2Y.js";export{BrandAssetEditor}from"../chunk-OA54HARK.js";export{MediaUploadField}from"../chunk-EVX7AZII.js";export{ImageFocusPoint}from"../chunk-XQZL6JDD.js";export{Segmented}from"../chunk-S4FPYCUU.js";import"../chunk-JDQGHQ2C.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-JH4ZCPHW.js";export{CornersInput}from"../chunk-6IOFNPR6.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{AlignmentGrid}from"../chunk-RDKIYORS.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-LDZQJLMC.js";export{IconPicker}from"../chunk-M66ACZXQ.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-BUO7XCYR.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-QRU55BUS.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{useSort}from"../chunk-E6FDUFPH.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-Q2SCJQ5H.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-WOAMPTZI.js";export{Pagination}from"../chunk-LXL2UCUR.js";export{EntityList}from"../chunk-SX3SG522.js";import"../chunk-TMMNCXQT.js";export{ResizableTable}from"../chunk-HNVSVTNC.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-UKBXQXDZ.js";import"../chunk-ULJQYXHB.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-54NMFQMW.js";export{ListFooter}from"../chunk-4ULRP4Y4.js";export{ListLoadError}from"../chunk-UNQ54QOF.js";export{WaterfallChart}from"../chunk-LCSMBVMU.js";export{SankeyChart}from"../chunk-4BCFBF3C.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-MHPFBVDD.js";export{StatTile}from"../chunk-JFV5CQN4.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-VX4COEWP.js";export{TreemapChart}from"../chunk-7LU3H72S.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-NWC6YCIJ.js";export{HistogramChart}from"../chunk-4P57TIFK.js";export{Meter}from"../chunk-OH5L6HYW.js";export{PieChart}from"../chunk-G66SG6JN.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-4EBJO7ER.js";export{RadialBarChart}from"../chunk-YQOVUH5W.js";export{RangeChart}from"../chunk-A6FR2D46.js";export{RankedBars}from"../chunk-SL77N7VT.js";export{ChordChart}from"../chunk-TNJ2VCH4.js";import"../chunk-5PP435FL.js";export{FunnelChart}from"../chunk-PSR6SXCC.js";export{StepChain,StepChainItem}from"../chunk-RDYFZHT3.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-QOI4GQVH.js";export{Divider}from"../chunk-DFOFEBYX.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Q5Z3KHT2.js";export{ContextMenu,useContextMenu}from"../chunk-AIJ6OR6X.js";export{Banner}from"../chunk-ZGOHRLXG.js";export{Input_default as Input}from"../chunk-HNUKXGYP.js";export{DropdownMenu}from"../chunk-NZISMTQE.js";import"../chunk-4DDL6NXB.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-XCAUDTCC.js";export{mediaFileName}from"../chunk-H5NIW2KS.js";export{TransferProgress}from"../chunk-TDAI4J27.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{IconButton_default as IconButton}from"../chunk-LE5LWALR.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-JTMEFXRL.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-MCAPJSB6.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-XXL5RLNM.js";export{ChartBrush}from"../chunk-E6GDAV5R.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-VAK5FQXH.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-BMXTPJ7T.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-3IUPYCW3.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-QYL26AB4.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-PLK2WHZG.js";export{Dialog}from"../chunk-7INZ7O3A.js";export{ItemCount}from"../chunk-55AEZX6K.js";import"../chunk-3DVNXNTF.js";import"../chunk-ECJKIPWU.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{ColoredBadge}from"../chunk-OKHKY3ZZ.js";import"../chunk-O3MBPAWZ.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-7ELJQL7J.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-GBATZZX7.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-FZM3ZPW3.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-6KGIHI6X.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-EOVXFXVV.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-TE6R53YD.js";export{Icon}from"../chunk-2UO47XB4.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-WGLHB6WE.js";export{Tooltip}from"../chunk-NJN5IKWO.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";export{BoxPlotChart}from"../chunk-36PJGT4W.js";export{CandlestickChart}from"../chunk-DVYIBJ3S.js";export{ChartTooltip}from"../chunk-36VIGB6J.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{CartesianPlot}from"../chunk-QO5E33DH.js";import"../chunk-C764JODK.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ import"../chunk-MXK7A6ZM.js";export{FormLayoutPage}from"../chunk-72LJMEL6.js";export{GalleryTemplate}from"../chunk-4QK4WNPB.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{AuthScreen}from"../chunk-KTCM64DQ.js";export{ChatTemplate}from"../chunk-IXOL7Y3Z.js";export{CheckoutTemplate}from"../chunk-KQOY4RGP.js";export{DashboardTemplate}from"../chunk-LT6PG6UW.js";export{DataTablePage}from"../chunk-B634WHJ2.js";export{EmailTemplate}from"../chunk-M4BPHBKI.js";export{ErrorBoundary}from"../chunk-ZXVJL7MS.js";export{ErrorPage}from"../chunk-ORIXCEKO.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-RQDVAUXD.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-JSG2AKCG.js";export{TopNav}from"../chunk-5CXFABVD.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-RRE2NNFS.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-TGGUYAWA.js";export{Stepper}from"../chunk-CRILBBSU.js";export{SettingReset}from"../chunk-DGNAUGZ3.js";export{SettingRow}from"../chunk-4TYIYL56.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-SXQZ5GTA.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-MTIP5DH2.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-DQQKG46I.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IMDGMUE3.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-K4JQ3FQI.js";export{PageHeader}from"../chunk-EN5NXWT6.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-NU5HN3FZ.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-SDDV3UCN.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{ResizeHandle}from"../chunk-EKCQ7XBZ.js";export{HelpCenter}from"../chunk-4MBYFQOI.js";export{IconRail,IconRailButton}from"../chunk-T7PVHIXI.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-LJAYUDN2.js";export{EditableGrid}from"../chunk-MDV7UQJD.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-3NRQNKVP.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{Card,StatCard}from"../chunk-P3RXXWXN.js";export{ContainerFillChart}from"../chunk-PCTOL2FX.js";export{CountBadge}from"../chunk-CLTRQ7AQ.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-7TZV6G2F.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-AWKJZSTO.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-ESZHN7PV.js";export{Avatar,AvatarGroup}from"../chunk-AFYLVV74.js";export{BudgetBar,budgetState}from"../chunk-UEISJFZH.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{SplitButton_default as SplitButton}from"../chunk-RK7MN5L5.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-GOZO6LU2.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-L7XIGRIT.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-4EZIWLJJ.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-OBJGUJIE.js";export{WidthsBar}from"../chunk-JNQF5CBB.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-DUGYWX2R.js";export{Slider,SliderGroup}from"../chunk-X55LUERI.js";export{Snippet}from"../chunk-4TGZODSH.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-7GTUUBS2.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-3XTSXZAC.js";import"../chunk-FA5FBNWF.js";export{ImageLightbox,lightboxKind}from"../chunk-UGGHQYDN.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{Drawer}from"../chunk-V6Y4OC6K.js";export{EmptyState}from"../chunk-QVZKRROQ.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-XYECIBVX.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-MS5APD3V.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-OPN4I565.js";export{RenameField}from"../chunk-UGBYAVJV.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-5F2AIDPY.js";export{MediaUsedInList}from"../chunk-VQBEZNHC.js";export{NumericKeypad}from"../chunk-47DO42IW.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-DANLBFBD.js";export{PositionInput}from"../chunk-DJW7CM3W.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-FSUQTN34.js";export{SearchableSelect}from"../chunk-XZAEEX2H.js";export{NativeSelect,Select_default as Select}from"../chunk-M3JNILT2.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-FT3QRQWY.js";export{DatePicker_default as DatePicker}from"../chunk-77AQNJE2.js";export{DateRangePicker,toISODate}from"../chunk-IBS7647X.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-SXNQHIBY.js";export{DisplayChips}from"../chunk-BTRV3SMB.js";export{FilePicker_default as FilePicker}from"../chunk-YCWALB3A.js";export{FormErrorSummary}from"../chunk-SAP4YI2Y.js";export{AlignmentGrid}from"../chunk-SYZLS2JA.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-RHDM7HRD.js";export{IconPicker}from"../chunk-F3ZFCQGP.js";export{BrandAssetEditor}from"../chunk-KGSOOXA7.js";export{MediaUploadField}from"../chunk-CZMSOB2T.js";export{Segmented}from"../chunk-JQBVSPF5.js";import"../chunk-JDQGHQ2C.js";export{ImageFocusPoint}from"../chunk-XQZL6JDD.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-JH4ZCPHW.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-RYLTVHCV.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-C6YAFZG3.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{useSort}from"../chunk-E6FDUFPH.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-Q2SCJQ5H.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{DataTable}from"../chunk-ZS3TIQQ4.js";export{Pagination}from"../chunk-LXL2UCUR.js";export{EntityList}from"../chunk-VAPSWR5Q.js";import"../chunk-TMMNCXQT.js";export{ResizableTable}from"../chunk-355CRSFS.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-UKBXQXDZ.js";import"../chunk-ULJQYXHB.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-54NMFQMW.js";export{ListFooter}from"../chunk-4ULRP4Y4.js";export{ListLoadError}from"../chunk-FXOYA2VJ.js";export{TreemapChart}from"../chunk-FO6UPEZH.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-4XNVIKZZ.js";export{RankedBars}from"../chunk-SL77N7VT.js";export{SankeyChart}from"../chunk-RPL4H6LE.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-HCXIXV4E.js";export{StatTile}from"../chunk-JFV5CQN4.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-WMHZA4EO.js";export{FunnelChart}from"../chunk-LGDMGDSV.js";export{HeatmapChart}from"../chunk-56KADF2B.js";export{HistogramChart}from"../chunk-EUAC2T5D.js";export{Meter}from"../chunk-OH5L6HYW.js";export{PieChart}from"../chunk-6EIZOX6W.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-YDMXW2Q4.js";export{RadialBarChart}from"../chunk-GELPD7EY.js";export{RangeChart}from"../chunk-PFKXPSOM.js";export{ChordChart}from"../chunk-IYXNRNAF.js";import"../chunk-EYPKBJYG.js";export{StepChain,StepChainItem}from"../chunk-RDYFZHT3.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-CD7UWMPX.js";export{Divider}from"../chunk-DFOFEBYX.js";export{ContextMenu,useContextMenu}from"../chunk-SS5SQMIB.js";export{Banner}from"../chunk-ZGOHRLXG.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Q5Z3KHT2.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-MXGDFO6A.js";export{Input_default as Input}from"../chunk-NGLU2GKE.js";export{DropdownMenu}from"../chunk-WUAKIM2B.js";import"../chunk-OTVK7DJM.js";export{mediaFileName}from"../chunk-ZD36QKQS.js";export{TransferProgress}from"../chunk-PVPMJ5G2.js";export{IconButton_default as IconButton}from"../chunk-VCMHBUKI.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-JTMEFXRL.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-DU4WEVNS.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-34H3CK7R.js";export{ChartBrush}from"../chunk-E6GDAV5R.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-VAK5FQXH.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-SX5BSWTN.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-3IUPYCW3.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-QYL26AB4.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-PLK2WHZG.js";export{Dialog}from"../chunk-7INZ7O3A.js";export{ItemCount}from"../chunk-P4VKU3SL.js";import"../chunk-3DVNXNTF.js";import"../chunk-ECJKIPWU.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{ColoredBadge}from"../chunk-BW47XJLH.js";import"../chunk-O3MBPAWZ.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-7ELJQL7J.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-LKTUUNGJ.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-JPNAEN53.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-G3KXB7SP.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-7DI3VQCF.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-XWFLIGDQ.js";export{Icon}from"../chunk-2UO47XB4.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-CJH2BGXY.js";export{Tooltip}from"../chunk-QQ2LDC6C.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-SHO35OPO.js";export{CandlestickChart}from"../chunk-TQE6O2JA.js";export{CartesianPlot}from"../chunk-RABYGQQU.js";import"../chunk-C764JODK.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-GBATZZX7.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-LKTUUNGJ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "11.5.0",
3
+ "version": "11.8.0",
4
4
  "description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",
@@ -1,29 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-2N64TKI5.js";import{useWidgetSettings as n}from"./chunk-5XFBZ7C3.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import"./chunk-55AEZX6K.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-OKHKY3ZZ.js";import"./chunk-O3MBPAWZ.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-FZM3ZPW3.js";import"./chunk-CDAJKLGL.js";import"./chunk-6KGIHI6X.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EOVXFXVV.js";import"./chunk-UQYNPYF4.js";import"./chunk-TE6R53YD.js";import{Icon as r}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-WGLHB6WE.js";import"./chunk-NJN5IKWO.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as o,useEffect as s}from"react";import{jsxs as l,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[j,N]=c(!1),[y,x]=c(""),[f,C]=c([]),[v,$]=c(!1),[E,W]=c(()=>e(h)),[T,Z]=c(!1),[D,K]=c(E),B=i(null);n(o(()=>{K({...E}),Z(!0)},[E]));const X=o(e=>{x(""),k(t=>j||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[j]),w=o(()=>{k("0"),d(null),g(null),N(!1)},[]),A=o((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),F=o(e=>{const t=parseFloat(m);if(null!==p&&b&&!j){const e=A(p,t,b);k(String(e)),d(e),C(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),N(!0)},[m,p,b,j,A]),J=o(()=>{if(null===p||!b)return;const e=parseFloat(m),t=A(p,e,b),n=`${p} ${b} ${e} =`;C(e=>[`${n} ${t}`,...e].slice(0,20)),x(n),k(String(t)),d(null),g(null),N(!0)},[m,p,b,A]),S=o(()=>{k(e=>String(parseFloat(e)/100))},[]),L=o(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);s(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?X(e.key):"."===e.key?X("."):"+"===e.key?F("+"):"-"===e.key?F("-"):"*"===e.key?F("×"):"/"===e.key?(e.preventDefault(),F("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&B.current?.contains(e.target)&&e.preventDefault(),J()):"Escape"===e.key?w():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&S())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[X,F,J,w,S]);const U="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",G=`${U} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,H=`${U} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,M=`${U} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,O=`${U} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return l(a,{children:[
3
- /* @__PURE__ */l("div",{ref:B,className:"flex flex-col h-full",style:{opacity:E.activeOpacity/100,backdropFilter:E.activeBlur>0?`blur(${E.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */l("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:f.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${j?"":m}`}),
6
- /* @__PURE__ */l("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
8
- /* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(m)})]})]}),
9
- /* @__PURE__ */l("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */u("button",{onClick:w,className:M,children:"AC"}),
11
- /* @__PURE__ */u("button",{onClick:L,className:M,children:"+/−"}),
12
- /* @__PURE__ */u("button",{onClick:S,className:M,children:"%"}),
13
- /* @__PURE__ */u("button",{onClick:()=>F("÷"),className:`${H} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */u("button",{onClick:()=>X("7"),className:G,children:"7"}),
15
- /* @__PURE__ */u("button",{onClick:()=>X("8"),className:G,children:"8"}),
16
- /* @__PURE__ */u("button",{onClick:()=>X("9"),className:G,children:"9"}),
17
- /* @__PURE__ */u("button",{onClick:()=>F("×"),className:`${H} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */u("button",{onClick:()=>X("4"),className:G,children:"4"}),
19
- /* @__PURE__ */u("button",{onClick:()=>X("5"),className:G,children:"5"}),
20
- /* @__PURE__ */u("button",{onClick:()=>X("6"),className:G,children:"6"}),
21
- /* @__PURE__ */u("button",{onClick:()=>F("-"),className:`${H} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */u("button",{onClick:()=>X("1"),className:G,children:"1"}),
23
- /* @__PURE__ */u("button",{onClick:()=>X("2"),className:G,children:"2"}),
24
- /* @__PURE__ */u("button",{onClick:()=>X("3"),className:G,children:"3"}),
25
- /* @__PURE__ */u("button",{onClick:()=>F("+"),className:`${H} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */u("button",{onClick:()=>X("0"),className:`${G} col-span-2`,children:"0"}),
27
- /* @__PURE__ */u("button",{onClick:()=>X("."),className:G,children:"."}),
28
- /* @__PURE__ */u("button",{onClick:J,className:O,children:"="})]})]}),
29
- /* @__PURE__ */u(t,{open:T,onClose:()=>Z(!1),title:"Calculator Settings",appearance:D,onAppearanceChange:K,onSave:()=>{W(D),localStorage.setItem(h,JSON.stringify(D)),Z(!1)}})]})}export{m as default};
@@ -1,44 +0,0 @@
1
- import{useAuth as e,parseOpenSections as t,readStored as r,RAIL_OPEN_SECTIONS_KEY as n,RAIL_WIDTH_KEY as a,toggleOpenSection as i,writeStored as l}from"./chunk-U6LKNGC6.js";import{ResizeHandle as o}from"./chunk-Z44JWU75.js";import{openGlobalSearch as s}from"./chunk-DZOJQURG.js";import{partitionNav as c,visibleNavChildren as d,flyoutGroups as m,visibleSectionItems as h,rowsContainRoute as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-LE5LWALR.js";import{RAIL_MENU_GAP as f,navSections as g,startMenuCategories as x,TAB_STRIP_H as k,RAIL_COLLAPSED_INSET as y,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as j,navIcons as w,sectionIcons as C}from"./chunk-4LXCCZDM.js";import"./chunk-5A7MWTXX.js";import"./chunk-7QSDPSXP.js";import"./chunk-2QY5BJLA.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as W,PopupMenuLabel as z}from"./chunk-6KGIHI6X.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UQYNPYF4.js";import"./chunk-TE6R53YD.js";import{Icon as $}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-NJN5IKWO.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as A}from"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import{useMemo as I,useState as R,useRef as H,useEffect as T,isValidElement as D,cloneElement as K}from"react";import{jsx as M,jsxs as Q,Fragment as B}from"react/jsx-runtime";var J="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function U(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+f,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var G=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),P="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function X({open:e,children:t}){const r=H(null);return T(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */M("div",{ref:r,className:"grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",style:{gridTemplateRows:e?"1fr":"0fr",opacity:e?1:0},"aria-hidden":!e,"data-fold":e?"open":"closed",children:/* @__PURE__ */M("div",{className:"min-h-0 overflow-hidden",children:t})})}function O({open:e}){/* @__PURE__ */
2
- return M($,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function Y({dir:e}){/* @__PURE__ */
3
- return M($,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function Z({className:e}){/* @__PURE__ */
4
- return M($,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var _=e=>.75+1.75*e+"rem";function E({width:E,collapsed:F,onToggleCollapsed:V,onResize:q,onHome:ee,onOpen:te,activeRoute:re,profile:ne,user:ae,onLogout:ie,onSwitchToDesktop:le,onReportBug:oe,onClose:se,navSections:ce=g,navIcons:de=w,sectionIcons:me=C,categories:he=x,productName:ue,productIcon:pe,tagline:be,adaptiveLogo:fe=!1,logoHasAlpha:ge=null,logoIsLight:xe=null}){const ke=A().layout,{hasAnyPerm:ye}=e(),ve=I(()=>c(ce,he,ye),[ce,he,ye]),[Ne,je]=R(()=>t(r(n))),we=I(()=>[...ve.topItems.filter(e=>d(e,ye).length>0).map(e=>`child:${e.to}`),...[...ve.erpSections,...ve.systemSections,...ve.virtualSections,...ve.footerSections].map(e=>e.label)],[ve,ye]),Ce=(e,t=we)=>je(r=>{const a=i(r,e,t);return l(n,JSON.stringify([...a])),a}),[Se,Le]=R(null),[We,ze]=R(!1),$e=H(null);T(()=>{F||Le(null)},[F]);const Ae=(e,t)=>{Le(null),e.onSelect?e.onSelect():te(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Ie=(e,t)=>{const r=t[e];/* @__PURE__ */
5
- return M("span",{className:P,"aria-hidden":"true",children:r&&D(r)?K(r,{className:"size-[18px]"}):r})},Re=e=>e.filter(e=>d(e,ye).length>0).map(e=>`child:${e.to}`),He=(e,t,r=we)=>{const n=d(e,ye),a=e.menuLabel??e.label;if(n.length>0){const i=`child:${e.to}`,l=Ne.has(i),o=!l&&u(n,re,ye);/* @__PURE__ */
6
- return Q("div",{children:[
7
- /* @__PURE__ */Q("button",{type:"button",onClick:()=>Ce(i,r),"aria-expanded":l,className:G(o,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&Ie(e.to,de),
8
- /* @__PURE__ */M("span",{className:"min-w-0 flex-1 truncate",children:a}),
9
- /* @__PURE__ */M(O,{open:l})]}),
10
- /* @__PURE__ */M(X,{open:l,children:/* @__PURE__ */M("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>He(e,t+1,Re(n)))})}),e.dividerAfter&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)}const i=e.to===re;/* @__PURE__ */
11
- return Q("div",{children:[
12
- /* @__PURE__ */Q("button",{type:"button",onClick:t=>Ae(e,t),onAuxClick:t=>{1===t.button&&Ae(e,t)},"aria-current":i?"page":void 0,className:G(i,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&Ie(e.to,de),
13
- /* @__PURE__ */M("span",{className:"min-w-0 flex-1 truncate",children:a})]}),e.dividerAfter&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)},Te=(e,t)=>{const r=t?e.items:h(e,ye);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */M("span",{className:P,"aria-hidden":"true",children:e.icon}):Ie(e.label,me),a=e.menuLabel??e.label,i=u(r,re,ye),l="dividerAfter"in e&&e.dividerAfter;if(F)/* @__PURE__ */
14
- return Q("div",{children:[
15
- /* @__PURE__ */M("button",{type:"button",title:a,"aria-label":a,"aria-haspopup":"menu","aria-expanded":Se?.label===e.label,onClick:t=>{const n=t.currentTarget.getBoundingClientRect();Le(t=>t?.label===e.label?null:{label:e.label,items:r,top:n.top})},className:G(i||Se?.label===e.label,!0),children:n}),l&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const o=Ne.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
16
- return Q("div",{children:[
17
- /* @__PURE__ */Q("button",{type:"button",onClick:()=>Ce(e.label),"aria-expanded":o,"aria-controls":s,className:G(!o&&i,!1),children:[n,
18
- /* @__PURE__ */M("span",{className:"min-w-0 flex-1 truncate",children:a}),
19
- /* @__PURE__ */M(O,{open:o})]}),
20
- /* @__PURE__ */M(X,{open:o,children:/* @__PURE__ */M("div",{id:s,role:"group","aria-label":a,className:"space-y-0.5 pt-0.5",children:r.map(e=>He(e,1,Re(r)))})}),l&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},De=ne?.first_name?`${ne.first_name} ${ne.last_name||""}`.trim():ae?.email||"",Ke=(ne?.first_name?.charAt(0)||ae?.email?.charAt(0)||"?").toUpperCase(),Me=ne?.avatar_url?/* @__PURE__ */M("img",{src:ne.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */M("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ke}),Qe=We?$e.current?.getBoundingClientRect():void 0,Be=F?"":"px-3",Je=F?{paddingInline:y}:void 0,Ue=`${F?ke.expandSidebar:ke.collapseSidebar} (${J?"⌘":"Ctrl"} .)`,Ge=ee?{run:ee,label:ke.goHome,title:ke.goHome}:se?null:{run:V,label:F?ke.expandSidebar:ke.collapseSidebar,title:Ue},Pe=/* @__PURE__ */Q(B,{children:[pe&&/* @__PURE__ */M(p,{src:pe,alt:"",slot:"compact",surface:"light",adaptive:fe,hasAlpha:ge,isLight:xe,size:28,decorative:!0}),!F&&/* @__PURE__ */Q("span",{className:"min-w-0 text-left leading-tight",children:[
21
- /* @__PURE__ */M("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),be&&/* @__PURE__ */M("span",{className:"block truncate text-2xs font-medium text-gray-500",children:be})]})]}),Xe=ve.erpSections.length>0||ve.systemSections.length>0||ve.virtualSections.length>0;/* @__PURE__ */
22
- return Q("aside",{"aria-label":ke.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong",style:{width:E},children:[
23
- /* @__PURE__ */Q("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(F?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:k},children:[Ge?/* @__PURE__ */M("button",{type:"button",onClick:Ge.run,"aria-label":Ge.label,title:Ge.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(F?"justify-center p-0.5":"-ml-1 p-1"),children:Pe}):/* @__PURE__ */M("span",{className:"flex min-w-0 items-center gap-2",children:Pe}),se?/* @__PURE__ */M(b,{onClick:se,"aria-label":ke.closeMenu,children:/* @__PURE__ */M($,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!F&&/* @__PURE__ */M("button",{type:"button",onClick:V,"aria-label":ke.collapseSidebar,title:`${ke.collapseSidebar} (${J?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */M(Y,{dir:"left"})})]}),
24
- /* @__PURE__ */M("div",{className:`shrink-0 pt-3 ${Be}`,style:Je,children:F?/* @__PURE__ */M("button",{type:"button",onClick:s,"aria-label":ke.search,title:`${ke.search} (${J?"⌘K":"Ctrl K"})`,className:G(!1,!0),children:/* @__PURE__ */M(Z,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */Q("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
25
- /* @__PURE__ */M(Z,{className:"size-3.5 text-gray-500"}),
26
- /* @__PURE__ */M("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:ke.search}),
27
- /* @__PURE__ */M("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:J?"⌘K":"Ctrl K"})]})}),
28
- /* @__PURE__ */Q("nav",{"aria-label":ke.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Be} ${F?"space-y-1":"space-y-0.5"}`,style:Je,children:[F&&/* @__PURE__ */M("button",{type:"button",onClick:V,"aria-label":ke.expandSidebar,title:`${ke.expandSidebar} (${J?"⌘":"Ctrl"} .)`,className:`${G(!1,!0)} mb-3`,children:/* @__PURE__ */M(Y,{dir:"right"})}),ve.topItems.map(e=>{if(!F)return He(e,0);const t=d(e,ye),r=e.to===re||u(t,re,ye),n=e.menuLabel??e.label;/* @__PURE__ */
29
- return Q("div",{children:[
30
- /* @__PURE__ */M("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void Ae(e,r);const n=r.currentTarget.getBoundingClientRect();Le(r=>r?.label===e.to?null:{label:e.to,items:t,top:n.top})},className:G(r,!0),children:Ie(e.to,de)}),e.dividerAfter&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ve.topItems.length>0&&Xe&&!ve.topItems[ve.topItems.length-1].dividerAfter&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.erpSections.map(e=>Te(e,!1)),ve.systemSections.map(e=>Te(e,!1)),ve.virtualSections.map(e=>Te(e,!0)),ve.footerSections.length>0&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.footerSections.map(e=>Te(e,!1))]}),
31
- /* @__PURE__ */M("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Be}`,style:Je,children:/* @__PURE__ */Q("button",{ref:$e,type:"button",onClick:()=>ze(e=>!e),"aria-haspopup":"menu","aria-expanded":We,"aria-label":F?ke.accountMenu(De):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(F?"justify-center py-2":"px-2 py-2"),children:[Me,!F&&/* @__PURE__ */Q("span",{className:"min-w-0 flex-1 text-left",children:[
32
- /* @__PURE__ */M("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:De}),ae?.email&&De!==ae.email&&/* @__PURE__ */M("span",{className:"block truncate text-2xs text-ink-faint",children:ae.email})]})]})}),q&&!F&&!se&&/* @__PURE__ */M(o,{side:"left",width:E,onResize:q,min:j,max:N,defaultWidth:v,storageKey:a,label:ke.resizeSidebar}),We&&Qe&&/* @__PURE__ */Q(S,{portal:!0,minWidth:224,onClose:()=>ze(!1),style:U(E,Qe,window.innerHeight),children:[F&&/* @__PURE__ */Q("div",{className:"border-b border-line px-3 py-3",children:[
33
- /* @__PURE__ */M("p",{className:"truncate text-sm font-semibold text-gray-800",children:De}),ae?.email&&/* @__PURE__ */M("p",{className:"truncate text-xs text-gray-500",children:ae.email})]}),
34
- /* @__PURE__ */Q(L,{onClick:()=>{ze(!1),te("/profile",!1)},children:[
35
- /* @__PURE__ */M($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.profile]}),ve.footerItems.map(e=>/* @__PURE__ */Q(L,{onClick:()=>{ze(!1),Ae(e)},children:[
36
- /* @__PURE__ */M("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:de[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */Q(L,{onClick:()=>{ze(!1),oe()},children:[
37
- /* @__PURE__ */M($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.reportIssue]}),
38
- /* @__PURE__ */M(W,{}),le&&/* @__PURE__ */Q(B,{children:[
39
- /* @__PURE__ */Q(L,{onClick:()=>{ze(!1),le()},children:[
40
- /* @__PURE__ */M($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.switchToDesktop]}),
41
- /* @__PURE__ */M(W,{})]}),
42
- /* @__PURE__ */Q(L,{danger:!0,onClick:()=>{ze(!1),ie()},children:[
43
- /* @__PURE__ */M($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.signOut]})]}),Se&&F&&/* @__PURE__ */M(S,{portal:!0,minWidth:220,onClose:()=>Le(null),style:{left:E+f,top:Math.min(Se.top,window.innerHeight-48*Math.min(Se.items.length,10)-16)},children:m(Se.items,ye).map((e,t)=>/* @__PURE__ */Q("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */M(W,{}),e.heading&&/* @__PURE__ */M(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */Q(L,{onClick:()=>Ae(e),children:[Ie(e.to,de),
44
- /* @__PURE__ */M("span",{className:e.to===re?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{U as accountMenuPosition,E as default};
@@ -1,13 +0,0 @@
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 i}from"./chunk-LJN77RG6.js";import{END_ACTIONS_PAD as a,InputEndActionSlot as s,InputEndActionButton as c}from"./chunk-HNUKXGYP.js";import{INPUT_BASE_ON as u,INPUT_BASE as d}from"./chunk-AYZY3YNC.js";import{Button_default as h}from"./chunk-EOVXFXVV.js";import{Icon as p}from"./chunk-2UO47XB4.js";import{LoadingSpinner as m}from"./chunk-R2VKEMZH.js";import{Tooltip as f}from"./chunk-NJN5IKWO.js";import{onOverlayOpen as b}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as g}from"./chunk-62LW225J.js";import{useDropdownPosition as v,MENU_MAX_HEIGHT as w}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as y}from"./chunk-D65T4H6J.js";import{GLASS_DIVIDER as x,glassStyle as k}from"./chunk-5FYDNH4Y.js";import{registerModalEscapeInterceptor as N}from"./chunk-TWVUQUUD.js";import{useShellStrings as j}from"./chunk-GDQJBQ5B.js";import{useState as $,useId as D,useRef as C,useMemo as S,useEffect as W}from"react";import{createPortal as R}from"react-dom";import{jsxs as E,jsx as F}from"react/jsx-runtime";function M(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}}var L=["right-2","right-8","right-16"],O=[8,32,64];function z(z){const{options:T,placeholder:A,emptyOptionLabel:B,className:U="",disabled:H,id:J,filter:Y=!1,allowFreeText:G=!1,freeTextOption:I,onSearchChange:V,loading:X=!1,error:K,onRetry:Q,rightAdornment:P,endAction:Z,renderOption:q,clearable:_=!0,"aria-label":ee,"aria-labelledby":te,"aria-describedby":ne}=z,re=!0===z.multiple,le=z.multiple?z.value:z.value?[z.value]:[],oe=z.multiple?"":z.value,ie=e=>{z.multiple?z.onChange(e):z.onChange(e[0]??"")},ae=le.length>0,se=Y&&ae&&!H,ce=re||Y,ue=null!=I,de=G||ue,[he,pe]=$(!1),[me,fe]=$(-1),be=D(),ge=J??`${be}-input`,ve=`${be}-listbox`,we=e=>`${be}-opt-${e}`,[ye,xe]=$(""),ke=j(),Ne=B??ke.select.none,je=e=>{xe(e),fe(-1),V?.(e)},$e=C(null),De=C(null),Ce=C(null),Se=C(null),We=C(he);We.current=he;const Re=C(!1),Ee=e=>{We.current&&(We.current=!1,e&&G&&!ue&&et&&(re?le.includes(et)||ie([...le,et]):et!==oe&&ie([et])),pe(!1),je(""))},Fe=(e,t)=>{if(!e.disabled){if(re)return ie(le.includes(e.value)?le.filter(t=>t!==e.value):[...le,e.value]),void(e===tt?je(""):fe(t));ie([e.value]),Ee(!1)}},[Me,Le]=$(null);y(()=>{if(!P||he)return void Le(null);const e=Se.current?.offsetWidth??0;Le(e?e+O[He]+6:null)});const Oe=v(De,he,ce?{popupRef:Ce}:{matchTriggerWidth:!0}),ze=S(()=>t(T),[T]),Te=le.join("\0"),Ae=S(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of ze)le.includes(n.value)&&!t.has(n.value)&&(t.add(n.value),e.push(n.label));if(de)for(const n of le)t.has(n)||e.push(n);return e},[ze,Te,de]),Be=Ae.join(", "),Ue=_&&ae&&!H,He=(Ue?1:0)+(Z?1:0),[Je,Ye]=$(null),Ge=C(null),Ie=C(""),Ve=C(()=>{});Ve.current=()=>{const e=De.current,t=Ge.current;if(!re||!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}|${Ae.join("\0")}`;if(o===Ie.current)return;Ie.current=o;let i=null;r>0&&Ae.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,i=M(Ae,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),Ye(e=>e?.shown===i?.shown&&e?.cut===i?.cut?e:i)},y(()=>{Ve.current()}),W(()=>{const e=De.current;if(!re||!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>Ve.current());return t.observe(e),()=>t.disconnect()},[re]);const Xe=Ae.length,Ke=!re||!Je||Je.shown>=Xe?Be:0===Je.shown?ke.select.selectedCount(Xe):`${Ae.slice(0,Je.shown).join(", ")} +${Xe-Je.shown}`,Qe=re&&null!==Je&&(Je.shown<Xe||Je.cut),Pe=he&&ae&&ce;W(()=>{if(!he)return;const e=e=>{const t=e.target;$e.current?.contains(t)||Ce.current?.contains(t)||Ee(!0)};document.addEventListener("mousedown",e);const t=b(()=>Ee(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[he,G,ye,Te,z.onChange]),W(()=>{if(he)return N(e=>!("Escape"!==e.key||!We.current)&&(Ee(!1),De.current?.blur(),!0),()=>Ce.current)},[he]);const Ze=S(()=>{const e=/* @__PURE__ */new Set;return n(T,t=>!e.has(t.value)&&(e.add(t.value),!0))},[T]),qe=S(()=>{if(V)return Ze;const e=ye.trim().toLowerCase();return e?n(Ze,t=>r(t,e)):Ze},[Ze,ye,V]),_e=S(()=>t(qe),[qe]),et=ye.trim(),tt=S(()=>ue&&et?ze.some(e=>e.label===et)||le.includes(et)?null:{value:et,label:et}:null,[ue,et,ze,Te]),nt=S(()=>tt?[..._e,tt]:_e,[_e,tt]);/* @__PURE__ */
2
- return E("div",{ref:$e,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&($e.current?.contains(t)||Ce.current?.contains(t))||Re.current||document.activeElement!==De.current&&Ee(!0)},children:[(rt=/* @__PURE__ */F("input",{id:ge,ref:De,type:"text",autoComplete:"off",role:"combobox","aria-expanded":he,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-controls":he?ve:void 0,"aria-activedescendant":he&&me>=0&&me<nt.length?we(me):void 0,"aria-label":te?void 0:ee,"aria-labelledby":te,"aria-describedby":ne,value:he?ye:Ke,onChange:e=>{je(e.target.value),pe(!0)},onFocus:()=>{H||(je(""),pe(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(H)return;if(t.preventDefault(),!he)return void pe(!0);if(0===nt.length)return;const n="ArrowDown"===t.key?1:-1;return void fe(t=>e(nt,t,n))}"Enter"===t.key?(t.preventDefault(),he&&me>=0&&me<nt.length?Fe(nt[me],me):1!==_e.length||_e[0].disabled?G&&!ue&&et&&(re?(le.includes(et)||ie([...le,et]),je("")):(ie([et]),Ee(!1),De.current?.blur())):Fe(_e[0],0)):"Escape"===t.key?(Ee(!1),De.current?.blur()):"Tab"===t.key&&Ee(!0)},placeholder:Pe?Ke:A||Ne,className:`${se?u:d} ${U} ${a[He]}${H?"bg-surface-sunken text-ink-faintest cursor-not-allowed":""} truncate${Pe?" rosh-field-shows-choice":""}`,style:Me?{paddingRight:Me}:void 0,disabled:H}),re?/* @__PURE__ */F(f,{content:!he&&Qe?Be:null,className:"block",children:rt}):rt),re&&
3
- /* @__PURE__ */F("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:/* @__PURE__ */F("span",{ref:Ge,className:"whitespace-pre"})}),He>0&&
4
- /* @__PURE__ */E(s,{children:[Ue&&
5
- /* @__PURE__ */F("span",{onMouseDown:e=>e.preventDefault(),className:"flex opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100",children:/* @__PURE__ */F(c,{action:{label:ke.select.clear,icon:/* @__PURE__ */F(p,{name:"close"}),onClick:()=>{ie([]),Ee(!1)}}})}),Z&&/* @__PURE__ */F("span",{onMouseDown:e=>e.preventDefault(),className:"flex",children:/* @__PURE__ */F(c,{action:Z})})]}),P&&!he&&/* @__PURE__ */F("div",{ref:Se,className:`absolute top-1/2 -translate-y-1/2 ${L[He]} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:P}),he&&R(
6
- /* @__PURE__ */E("div",{ref:Ce,onMouseDownCapture:()=>{Re.current=!0,setTimeout(()=>{Re.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:g.popup,left:Oe?.left,right:Oe?.right,top:Oe?.top,bottom:Oe?.bottom,minWidth:Oe?.minWidth,width:Oe?.width,...ce&&{maxWidth:Oe?.maxWidth},visibility:Oe?void 0:"hidden",...k()},children:[re&&ae&&_&&!H&&
7
- /* @__PURE__ */F("button",{type:"button",tabIndex:-1,onMouseDown:e=>{e.preventDefault(),ie([])},className:`block w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm text-gray-600 hover:bg-row-hover border-b ${x}`,children:ke.select.clearAll}),X?
8
- /* @__PURE__ */F(m,{size:"sm",padding:"py-2",label:ke.search.searching}):K?/* @__PURE__ */E("div",{role:"alert",className:"flex items-center gap-2 px-3 py-2 text-sm text-red-600",children:[
9
- /* @__PURE__ */F("span",{className:"min-w-0 flex-1",children:K}),Q&&/* @__PURE__ */F(h,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:Q,className:"shrink-0",children:ke.list.retry})]}):null,
10
- /* @__PURE__ */E("div",{id:ve,role:nt.length?"listbox":void 0,"aria-labelledby":nt.length?te??(ee?void 0:ge):void 0,"aria-label":nt.length&&!te?ee:void 0,"aria-multiselectable":!(!nt.length||!re)||void 0,className:"overflow-y-auto",style:{maxHeight:Oe?.maxHeight??w},children:[0===nt.length?X||K?null:/* @__PURE__ */F("p",{className:"px-3 py-3 text-sm text-ink-faintest text-center",children:ke.select.noMatches}):0===_e.length?null:l(qe,(e,t)=>{const n=le.includes(e.value);/* @__PURE__ */
11
- return E("button",{id:we(t),type:"button",role:"option","aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:-1,onMouseDown:n=>{(e.disabled||re)&&n.preventDefault(),Fe(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===me?"bg-gray-100":n?"bg-blue-50/50":""}`),children:[re&&/* @__PURE__ */F(o,{selected:n}),
12
- /* @__PURE__ */F("span",{className:`min-w-0 ${ce?"flex-auto":"flex-1"} truncate`,children:q?q(e,{selected:n,active:t===me}):e.label}),e.sublabel&&/* @__PURE__ */F(i,{grows:ce,children:e.sublabel})]},e.value)},be),tt&&I&&
13
- /* @__PURE__ */F("button",{id:we(_e.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{re&&e.preventDefault(),Fe(tt,_e.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-ink hover:bg-row-hover ${_e.length?`border-t ${x}`:""} ${me===_e.length?"bg-gray-100":""}`,children:/* @__PURE__ */F("span",{className:"min-w-0 flex-1 truncate",children:I(tt.value)})},`${be}-typed`)]})]}),document.body)]});var rt}export{z as SearchableSelect,M as fitChoice};
@@ -1,9 +0,0 @@
1
- import{AccessibleTable as e}from"./chunk-5PP435FL.js";import{bumpPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as n}from"./chunk-CNYAHYE6.js";import{ChartTooltip as o}from"./chunk-36VIGB6J.js";import{usePlotWidth as l}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as r,CHART_INK as a}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as s}from"./chunk-GDQJBQ5B.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as m}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function f({nodes:f,links:k,height:p=320,width:x,nodeWidth:g=14,nodePadding:y=12,formatValue:v,className:M,emptyLabel:w}){const b=i().charts,j=s(),$=v??(e=>h(e,j)),N=w??b.noFlows,F=c(null),C=l(F),E=x??C,[A,B]=m(null),{highlighted:P}=n();if(0===f.length||0===k.length)/* @__PURE__ */
2
- return d("div",{className:M,ref:F,children:/* @__PURE__ */d("p",{className:"py-8 text-center text-sm text-gray-500",children:N})});const Q=[...new Set(f.map(e=>e.depth))].sort((e,t)=>e-t),z=e=>Q.length<=1?0:Q.indexOf(e)/(Q.length-1)*(E-g-140)+70,L=new Map(f.map(e=>{const t=k.filter(t=>t.from===e.key).reduce((e,t)=>e+t.value,0),n=k.filter(t=>t.to===e.key).reduce((e,t)=>e+t.value,0);return[e.key,Math.max(t,n,e.value??0)]})),O=/* @__PURE__ */new Map;for(const e of f)O.set(e.depth,[...O.get(e.depth)??[],e]);const U=Math.max(...[...O.values()].map(e=>e.reduce((e,t)=>e+(L.get(t.key)??0),0))),V=p-20,G=U>0?(V-y*(Math.max(...[...O.values()].map(e=>e.length))-1))/U:0,H=/* @__PURE__ */new Map;for(const[e,t]of O){const n=t.map(e=>Math.max(2,(L.get(e.key)??0)*G)),o=n.reduce((e,t)=>e+t,0)+y*(t.length-1),l=n.reduce((e,t)=>e+Math.max(0,t-2),0),r=o>V&&l>0?Math.max(0,1-(o-V)/l):1;let a=10;t.forEach((t,o)=>{const l=2+Math.max(0,n[o]-2)*r;H.set(t.key,{x:z(e),y:a,h:l,index:o}),a+=l+y})}const J=/* @__PURE__ */new Map,R=/* @__PURE__ */new Map,S=/* @__PURE__ */new Map,T=(e,t)=>e.from===t||e.to===t,W="link"===A?.kind?k[A.index]:void 0,Y="node"===A?.kind?f.find(e=>e.key===A.key):void 0;/* @__PURE__ */
3
- return u("div",{className:`relative ${M??""}`,ref:F,children:[
4
- /* @__PURE__ */u("svg",{width:"100%",height:p,viewBox:`0 0 ${E} ${p}`,role:"img","aria-label":b.sankey(f.length,k.length),onMouseLeave:()=>B(null),children:[k.map((e,n)=>{const o=H.get(e.from),l=H.get(e.to);if(!o||!l)return null;const a=Math.max(1,e.value*G),i=o.y+(J.get(e.from)??0)+a/2,s=l.y+(R.get(e.to)??0)+a/2;J.set(e.from,(J.get(e.from)??0)+a),R.set(e.to,(R.get(e.to)??0)+a);const h=o.x+g,c=l.x,m=r(o.index,e.color),u=`${e.from}→${e.to}`,f=S.get(u)??0;S.set(u,f+1);const k=((e,t)=>A?"link"===A.kind?A.index===t:T(e,A.key):null!==P?T(e,P):null)(e,n);/* @__PURE__ */
5
- return d("path",{d:t([[h,i],[c,s]]),fill:"none",stroke:m,strokeWidth:a,strokeOpacity:null===k||k?.42:.12,onMouseEnter:()=>B({kind:"link",index:n})},f?`${u}#${f}`:u)}),f.map(e=>{const t=H.get(e.key);if(!t)return null;const n=t.x>E/2,o=(l=e.key,A?"node"===A.kind?A.key===l:T(k[A.index],l):null!==P?P===l:null);var l;/* @__PURE__ */
6
- return u("g",{opacity:null===o||o?1:.45,onMouseEnter:()=>B({kind:"node",key:e.key}),children:[
7
- /* @__PURE__ */d("rect",{x:t.x,y:t.y,width:g,height:t.h,rx:2,fill:r(t.index,e.color,e.tone)}),
8
- /* @__PURE__ */d("text",{x:n?t.x-8:t.x+g+8,y:t.y+t.h/2+4,textAnchor:n?"end":"start",fontSize:11,fill:a.label,children:e.label})]},e.key)})]}),W&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:`${W.from} → ${W.to}`,rows:[{key:"value",label:b.flow,color:r(H.get(W.from)?.index??0,W.color),value:$(W.value)}]})}),Y&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:Y.label,rows:[{key:"value",label:b.throughput,color:r(H.get(Y.key)?.index??0,Y.color,Y.tone),value:$(L.get(Y.key)??0)}]})}),
9
- /* @__PURE__ */d(e,{caption:b.sankey(f.length,k.length),head:[b.tableFrom,b.tableTo,b.value],rows:k.map(e=>[e.from,e.to,$(e.value)])})]})}export{f as SankeyChart};
@@ -1,2 +0,0 @@
1
- import{ChartTooltip as t}from"./chunk-36VIGB6J.js";import{CartesianPlot as o}from"./chunk-QO5E33DH.js";import{binValues as r}from"./chunk-2JWPNR2U.js";import{resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as e,useShellLocale as i}from"./chunk-GDQJBQ5B.js";import{formatPlain as m,formatFixed as n}from"./chunk-C3QOHMR6.js";import{jsx as l}from"react/jsx-runtime";function c({values:c,bins:s=10,precomputed:h,height:u=220,width:p,color:b,tone:f,formatBound:d,formatCount:x,yAxisLabel:g,label:k,className:y,emptyLabel:j}){const v=e().charts,w=i(),A=d??(t=>Number.isInteger(t)?m(t,w):n(t,1,w)),L=x??(t=>m(t,w)),B=g??v.countAxis,M=k??v.distribution,N=h??r(c??[],s),Q=a(0,b,f),C=N.map(t=>A(t.from)),J=N.map(t=>t.count);/* @__PURE__ */
2
- return l(o,{labels:C,values:J,height:u,width:p,bandPadding:0,xTickAnchor:"start",formatValue:L,yAxisLabel:B,className:y,emptyLabel:j,ariaLabel:v.histogram(M,N.length,(c??[]).length),tooltip:o=>/* @__PURE__ */l(t,{title:`${A(N[o].from)} – ${A(N[o].to)}`,rows:[{key:"count",label:v.observations,color:Q,value:L(N[o].count)}]}),children:({x:t,y:o,bottom:r,active:a})=>/* @__PURE__ */l("g",{children:N.map((e,i)=>/* @__PURE__ */l("rect",{x:t(i)+.5,y:o(e.count),width:Math.max(1,t.bandwidth-1),height:Math.max(0,r-o(e.count)),fill:Q,fillOpacity:null===a||a===i?.85:.42},i))})})}export{c as HistogramChart};
@@ -1,3 +0,0 @@
1
- import{DropdownMenu as e}from"./chunk-NZISMTQE.js";import{Button_default as i}from"./chunk-EOVXFXVV.js";import{iconButtonClasses as n}from"./chunk-UQYNPYF4.js";import{Icon as r}from"./chunk-2UO47XB4.js";import{Tooltip as a}from"./chunk-NJN5IKWO.js";import{forwardRef as l,useId as o}from"react";import{jsxs as s,jsx as t}from"react/jsx-runtime";var d="relative focus-visible:z-10",m={secondary:"border-l-0",primary:"border-l border-white/30",warning:"border-l border-white/30"},c=l(function({children:l,onClick:c,type:b="button",items:h,menuLabel:u,variant:f="primary",size:p="md",loading:v=!1,leftIcon:k,disabled:N=!1,disabledReason:g,tooltip:w,menuDisabled:x=!1,menuDisabledReason:j,onMenuOpenChange:y,menuFooter:C,menuFooterLabel:O,align:W="end",side:z="bottom",menuMinWidth:F,linkAs:I,block:L=!1,className:M=""},R){const V=N&&(null!=g&&""!==g&&!1!==g)&&!v,X=x&&null!=j&&""!==j&&!1!==j,$=o(),A=/* @__PURE__ */t(i,{ref:R,type:b,variant:f,size:p,loading:v,leftIcon:k,block:L,disabled:N&&!V,"aria-disabled":!!V||void 0,disabledReason:V?g:void 0,onClick:c,className:`rounded-r-none ${d}`,children:l}),B=L?"relative flex min-w-0 flex-1":"relative inline-flex",D=p.startsWith("touch")?"h-5 w-5":"h-4 w-4";/* @__PURE__ */
2
- return s("div",{className:[L?"flex w-full":"inline-flex","items-stretch",M].filter(Boolean).join(" "),children:[null==w||""===w||V?A:/* @__PURE__ */t(a,{content:w,className:B,children:A}),
3
- /* @__PURE__ */t(a,{content:X?j:u,describe:!1,className:"relative inline-flex shrink-0",children:/* @__PURE__ */t(e,{"aria-label":u,"aria-describedby":X?$:void 0,items:h,align:W,side:z,minWidth:F,linkAs:I,disabled:x&&!X,"aria-disabled":X,onOpenChange:y,footer:C,footerLabel:O,triggerClassName:n({variant:f,size:p,className:`rounded-l-none ${m[f]} ${d}`}),trigger:/* @__PURE__ */t(r,{name:"chevron-down",className:D,strokeWidth:2,"aria-hidden":"true"})})}),X&&/* @__PURE__ */t("span",{id:$,className:"sr-only",children:j})]})});export{c as SplitButton_default};
@@ -1,7 +0,0 @@
1
- import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-5PP435FL.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{ChartTooltip as a}from"./chunk-36VIGB6J.js";import{usePlotWidth as r}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as i,CHART_INK as o}from"./chunk-TZFACUMR.js";import{useShellStrings as n,useShellLocale as m}from"./chunk-GDQJBQ5B.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as u}from"react";import{jsx as s,jsxs as f}from"react/jsx-runtime";function p({items:p,height:d=320,width:v,gap:x=2,radius:g=3,formatValue:y,color:k,className:b,emptyLabel:j}){const w=n().charts,M=m(),N=y??(e=>h(e,M)),B=j??w.nothingToBreakDown,$=c(null),C=r($),F=v??C,[G,P]=u(null),{highlighted:z}=l(),A=e(p,F,d);if(0===A.length)/* @__PURE__ */
2
- return s("div",{className:b,ref:$,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:B})});const D=k??i(0),L=Math.max(...A.map(e=>e.value),1),Q=e=>34+e/L*62,V=e=>`color-mix(in oklab, ${D} ${Q(e).toFixed(0)}%, ${o.surface})`,Y=e=>Q(e)>=55?o.surface:o.label,E=G??z,H=G?A.find(e=>e.key===G):void 0;/* @__PURE__ */
3
- return f("div",{className:`relative ${b??""}`,ref:$,children:[
4
- /* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${F} ${d}`,role:"img","aria-label":w.treemap(p.length),onMouseLeave:()=>P(null),children:A.map(e=>{const t=Math.max(0,e.width-x),l=Math.max(0,e.height-x),a=t>6.2*e.label.length+12&&l>30,r=a&&l>44;/* @__PURE__ */
5
- return f("g",{opacity:E&&E!==e.key?.55:1,onMouseEnter:()=>P(e.key),children:[
6
- /* @__PURE__ */s("rect",{x:e.x+x/2,y:e.y+x/2,width:t,height:l,rx:g,fill:V(e.value)}),a&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+18,fontSize:12,fontWeight:600,fill:Y(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:Y(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),H&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(a,{title:H.label,rows:[{key:"value",label:w.value,color:V(H.value),value:N(H.value)}]})}),
7
- /* @__PURE__ */s(t,{caption:w.treemap(p.length),head:[w.tableItem,w.value],rows:A.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
@@ -1,8 +0,0 @@
1
- import{optionMatches as e,OptionSublabel as t}from"./chunk-LJN77RG6.js";import{inputClasses as n}from"./chunk-AYZY3YNC.js";import{GROUP_COLORS as o}from"./chunk-FZM3ZPW3.js";import{Tooltip as r}from"./chunk-NJN5IKWO.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as i}from"./chunk-62LW225J.js";import{useDropdownPosition as s,POPUP_MAX_WIDTH as a,MENU_MAX_HEIGHT as c}from"./chunk-GLUJS42B.js";import{glassStyle as u}from"./chunk-5FYDNH4Y.js";import{useShellStrings as d}from"./chunk-GDQJBQ5B.js";import{useState as m,useRef as h,useMemo as p,useEffect as f}from"react";import{createPortal as v}from"react-dom";import{jsxs as g,jsx as x,Fragment as b}from"react/jsx-runtime";var w={accent:{chip:"inline-flex max-w-full items-center gap-1 rounded bg-accent-tint px-2 py-0.5 text-xs font-medium text-blue-700",remove:"text-blue-400 hover:text-red-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"},danger:{chip:`inline-flex max-w-full items-center gap-1 rounded ${o.danger} px-2 py-0.5 text-xs font-medium`,remove:"text-current opacity-70 hover:opacity-100 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"}};function y({value:o,onChange:y,options:k=[],placeholder:N,allowFreeText:j=!1,invalid:C,disabled:L,id:D,className:W="",tone:B,tooltip:E,split:J}){const[M,Y]=m(!1),[$,F]=m(""),G=d(),H=h(null),I=h(null),S=h(null),Z=s(H,M),K=e=>k.find(t=>t.value===e)?.label??e,P=p(()=>{const t=new Set(o),n=[],r=$.trim().toLowerCase();for(const o of k)t.has(o.value)||(t.add(o.value),r&&!e(o,r)||n.push(o));return n},[k,o,$]),Q=e=>{const t=[...o];for(const n of e){const e=n.trim();if(!e)continue;const o=e.toLowerCase(),r=k.find(t=>t.value===e||t.label.toLowerCase()===o)?.value,l=r??(j?e:null);l&&!t.includes(l)&&t.push(l)}t.length!==o.length&&y(t)},T=e=>{e&&!o.includes(e)?(y([...o,e]),F("")):F("")},z=e=>y(o.filter(t=>t!==e)),A=()=>{const e=$.trim();if(J&&e)return Q(e.split(J)),void F("");j&&e?T(e):F("")},O=h(()=>{});O.current=()=>{A(),Y(!1)},f(()=>{if(!M)return;const e=e=>{const t=e.target;H.current?.contains(t)||S.current?.contains(t)||(A(),Y(!1))};document.addEventListener("mousedown",e);const t=l(()=>O.current());return()=>{document.removeEventListener("mousedown",e),t()}});const R=k.length>0;/* @__PURE__ */
2
- return g("div",{ref:H,className:"relative",children:[
3
- /* @__PURE__ */g("div",{onMouseDown:e=>{L||e.target.closest("button")||(e.preventDefault(),I.current?.focus())},className:n({invalid:C,multiline:!0,className:`flex flex-wrap items-center gap-1 cursor-text focus-within:border-blue-400 has-focus-visible:ring-2 has-focus-visible:ring-[color:var(--rosh-focus-ring)] ${L?"bg-gray-50 cursor-not-allowed":""} ${W}`}),children:[o.map(e=>{const t=B?.(e),n=w[t??"accent"],o=/* @__PURE__ */g("span",{"data-tone":t,className:n.chip,children:[
4
- /* @__PURE__ */x("span",{className:"truncate",children:K(e)}),!L&&/* @__PURE__ */x("button",{type:"button","aria-label":G.select.removeItem?.(K(e))??`${G.select.remove} ${K(e)}`,onClick:()=>z(e),className:n.remove,children:"×"})]},e),l=E?.(e);return null==l?o:/* @__PURE__ */x(r,{content:l,className:"relative inline-flex max-w-full",children:o},e)}),
5
- /* @__PURE__ */x("input",{id:D,ref:I,type:"text",autoComplete:"off",role:"combobox","aria-expanded":M&&R,"aria-invalid":C||void 0,disabled:L,value:$,placeholder:0===o.length?N:void 0,onChange:e=>{(e=>{if(J){const t=e.split(J);if(t.length>1)return Q(t.slice(0,-1)),void F(t[t.length-1])}F(e)})(e.target.value),Y(!0)},onFocus:()=>{!L&&R&&Y(!0)},onKeyDown:t=>{if("Enter"===t.key||","===t.key&&j){t.preventDefault();const n=$.trim(),o=n?P.filter(t=>e(t,n.toLowerCase())):[];1===o.length?T(o[0].value):A()}else"Backspace"===t.key&&""===$&&o.length>0?z(o[o.length-1]):"Escape"===t.key?(Y(!1),F(""),I.current?.blur()):"Tab"===t.key&&(A(),Y(!1))},className:"min-w-[8ch] flex-1 border-none bg-transparent p-0 text-sm text-ink-strong placeholder:text-[color:var(--ink-placeholder)] rosh-focus-ring focus-visible:ring-0 disabled:cursor-not-allowed"})]}),M&&R&&v(
6
- /* @__PURE__ */x("div",{ref:S,className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:i.popup,left:Z?.left,right:Z?.right,top:Z?.top,bottom:Z?.bottom,minWidth:Z?.minWidth,maxWidth:Z?.maxWidth??a,width:"max-content",visibility:Z?void 0:"hidden",...u()},children:/* @__PURE__ */x("div",{className:"overflow-y-auto",style:{maxHeight:Z?.maxHeight??c},children:0===P.length?/* @__PURE__ */x("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:k.length>0&&o.length>=k.length?G.select.allSelected:G.select.noMatches}):P.map(e=>/* @__PURE__ */x("button",{type:"button",onMouseDown:t=>{t.preventDefault(),T(e.value)},className:e.sublabel?"w-full text-left px-3 min-h-(--row-height-menu) py-2 text-sm hover:bg-row-hover text-ink whitespace-nowrap flex items-center justify-between gap-3":"w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm hover:bg-row-hover text-ink whitespace-nowrap",children:e.sublabel?/* @__PURE__ */g(b,{children:[
7
- /* @__PURE__ */x("span",{className:"min-w-0 truncate",children:e.label}),
8
- /* @__PURE__ */x(t,{grows:!0,children:e.sublabel})]}):e.label},e.value))})}),document.body)]})}export{y as TagInput};
@@ -1,2 +0,0 @@
1
- import{buttonClasses as e}from"./chunk-UQYNPYF4.js";import{isAriaDisabled as a,swallowPress as r,describedByWith as i,OffWithReason as s}from"./chunk-TE6R53YD.js";import{SpinnerRing as l}from"./chunk-R2VKEMZH.js";import{forwardRef as d,useId as n}from"react";import{jsxs as t,jsx as c}from"react/jsx-runtime";var o=d(function({variant:d="primary",size:o="md",loading:m=!1,leftIcon:p,rightIcon:b,block:f=!1,disabled:u,type:h="button",children:k,className:x="",disabledReason:N,onClick:y,pressed:v,"aria-disabled":g,"aria-describedby":j,...R},Y){const w=n(),z=u||m,C=null!=N&&""!==N,E=z&&C,I=!z&&a(g),D=I&&C,F=E||D?w:void 0,H=/* @__PURE__ */t("button",{ref:Y,type:h,disabled:z,"aria-busy":m||void 0,"aria-disabled":!!I||g,"aria-describedby":i(j,F),onClick:I?r:y,className:e({variant:d,size:o,block:f,pressed:v??(!0===R["aria-pressed"]||"true"===R["aria-pressed"]),className:x}),...R,children:[m?/* @__PURE__ */c(l,{className:"h-3.5 w-3.5",ink:""}):p,k,!m&&b]});return D?/* @__PURE__ */c(s,{reason:N,id:w,block:f,children:H}):E?/* @__PURE__ */t("span",{className:f?"flex w-full flex-col gap-1":"inline-flex flex-col items-start gap-1",children:[H,
2
- /* @__PURE__ */c("span",{id:F,className:"text-xs text-red-600",children:N})]}):H});export{o as Button_default};
@@ -1,9 +0,0 @@
1
- import{ImageFocusPoint as e}from"./chunk-XQZL6JDD.js";import{Segmented as a}from"./chunk-S4FPYCUU.js";import{FormField as i}from"./chunk-6KBDNYRW.js";import{isVideoUrl as t,mediaPromptLine as o,mediaFileName as r,FilenameBadge as n,BusyOverlay as l,UploadGlyph as s,dropzoneClass as c,zoneFocusClass as d}from"./chunk-H5NIW2KS.js";import{TransferProgress as u}from"./chunk-TDAI4J27.js";import{useFileIntake as m,FileIntakeAlert as h}from"./chunk-JTMEFXRL.js";import{Icon as p}from"./chunk-2UO47XB4.js";import{useShellStrings as b}from"./chunk-GDQJBQ5B.js";import{useState as g,useRef as v,useEffect as f,useId as y}from"react";import{jsxs as k,jsx as j,Fragment as x}from"react/jsx-runtime";var N=["flex h-8 items-center justify-center rounded-(--radius-control) text-(--status-on-solid)","not-disabled:hover:bg-white/10 disabled:cursor-not-allowed disabled:opacity-60","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]"].join(" ");function w({value:w,onChange:L,onPick:R,onFile:U,label:F,hint:C,error:B,required:O,className:P,accept:$="image/*",maxSizeBytes:z,fit:D="cover",height:H=112,placeholder:I,cta:J,acceptHint:S,showFilename:q=!0,allowReplace:K=!0,allowRemove:Q=!0,replaceLabel:W,removeLabel:X,busy:A=!1,busyLabel:T,choosingLabel:Y,pickFailedLabel:_,progress:E,disabled:G=!1,kind:M,onKindChange:V,focus:Z,onFocusChange:ee,focusLabel:ae}){const ie=b().media,te=J??ie.cta,oe=M??(/video/.test($)&&!/image/.test($)?"video":"image"),re="string"==typeof X&&X?X:ie.remove,[ne,le]=g(!1),[se,ce]=g(!1),de=v(!0);f(()=>()=>{de.current=!1},[]);const ue=A||ne,me=ne&&!A?Y??ie.choosing:T??ie.uploading,he=B??(se?_??ie.pickFailed:void 0),pe=e=>{if(!R)return;ce(!1);const a=R(e);a&&"function"==typeof a.then&&(le(!0),a.then(e=>{de.current&&(le(!1),"string"==typeof e&&e&&L(e))},()=>{de.current&&(le(!1),ce(!0))}))},be=y(),ge=v(null),[ve,fe]=g(null);f(()=>()=>{ge.current&&URL.revokeObjectURL(ge.current)},[]);const ye=G||ue,ke=!!w&&(t(w,$)||w===ve),je=I??o($,ie),xe=W??(ke||"video"===oe?ie.changeVideo:ie.changeImage),Ne=e=>{R?pe(e):U?U(e):(e=>{ge.current&&URL.revokeObjectURL(ge.current);const a=URL.createObjectURL(e);ge.current=a,fe(e.type.startsWith("video/")?a:null),L(a)})(e)},we=m({accept:$,maxSizeBytes:z,acceptHint:S,multiple:!1,disabled:ye,onAccept:([e])=>Ne(e)}),{dragOver:Le}=we,Re=()=>{ye||(R?pe():we.open())},Ue=w?r(w):"",Fe=!ke&&!!ee,Ce=G||!K&&!Q?null:/* @__PURE__ */k("div",{"data-media-bar":"",className:["absolute inset-x-0 bottom-0 flex items-center gap-1 p-1 text-(--status-on-solid)","opacity-0 transition-opacity duration-(--motion-fast)","group-hover/media:opacity-100 group-focus-within/media:opacity-100 [@media(hover:none)]:opacity-100"].join(" "),style:{background:"var(--rosh-media-scrim-button)"},children:[K&&/* @__PURE__ */k("button",{id:Fe?void 0:be,type:"button","aria-labelledby":`${be}-change`,onClick:()=>Re(),disabled:ue,className:`min-w-0 flex-1 gap-1 px-2 text-sm font-medium ${N}`,children:[
2
- /* @__PURE__ */j(p,{name:"swap","aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
3
- /* @__PURE__ */j("span",{id:`${be}-change`,className:"truncate",children:xe})]}),Q&&/* @__PURE__ */j("button",{type:"button","aria-label":re,onClick:()=>{ge.current&&(URL.revokeObjectURL(ge.current),ge.current=null),fe(null),L("")},disabled:ue,className:`ml-auto w-8 shrink-0 ${N}`,children:/* @__PURE__ */j(p,{name:"trash","aria-hidden":"true",className:"h-4 w-4"})})]}),Be=/* @__PURE__ */k("div",{...we.zoneProps,"data-media-frame":"",className:["group/media relative overflow-hidden rounded-(--radius-control) border transition-colors",Fe?"":"bg-gray-100",Le?"border-blue-500":"border-line"].join(" "),style:Fe?void 0:{height:H},children:[Fe?
4
- /* @__PURE__ */j(e,{value:Z??"",onChange:e=>ee?.(e),label:ae??ie.focus,image:w,hint:null,id:be,disabled:ye,className:"[&_[data-image-focus-picture]]:rounded-none [&_[data-image-focus-picture]]:border-0"}):ke?/* @__PURE__ */j("video",{src:w??void 0,muted:!0,playsInline:!0,preload:"metadata","aria-label":Ue||void 0,className:"h-full w-full",style:{objectFit:D}}):/* @__PURE__ */j("img",{src:w??void 0,alt:Ue,className:"h-full w-full",style:{objectFit:D,objectPosition:Z||void 0}}),q&&w&&/* @__PURE__ */j(n,{children:Ue}),Ce,ue&&/* @__PURE__ */j(l,{label:me,progress:E,rounded:"rounded-md"})]}),Oe=/* @__PURE__ */j("button",{type:"button",id:be,onClick:()=>Re(),disabled:ye,"aria-label":"string"==typeof je?je:ie.upload,"aria-busy":ue||void 0,"aria-invalid":!!he||void 0,"aria-required":O||void 0,"aria-describedby":he?`${be}-error`:C?`${be}-hint`:void 0,...we.zoneProps,className:c(Le,ye,d(ye)),style:{minHeight:H},children:ue?/* @__PURE__ */j(u,{state:"busy",verb:me,pct:E}):/* @__PURE__ */k(x,{children:[
5
- /* @__PURE__ */j("span",{className:"text-ink-faintest",children:/* @__PURE__ */j(s,{})}),
6
- /* @__PURE__ */j("span",{className:"px-3 text-xs text-ink-faint",children:je}),
7
- /* @__PURE__ */j("span",{className:"text-sm font-medium text-blue-600",children:te}),S&&/* @__PURE__ */j("span",{className:"text-xs text-ink-faintest",children:S})]})});/* @__PURE__ */
8
- return k(i,{label:F,htmlFor:be,hint:C,error:he,required:O,className:P,children:[V&&/* @__PURE__ */j("div",{"data-media-kind":"",className:"mb-2",children:/* @__PURE__ */j(a,{value:oe,onChange:e=>V(e),options:[{value:"image",label:ie.image,icon:/* @__PURE__ */j(p,{name:"image","aria-hidden":"true",className:"h-4 w-4"}),disabled:ye},{value:"video",label:ie.video,icon:/* @__PURE__ */j(p,{name:"play","aria-hidden":"true",className:"h-4 w-4"}),disabled:ye}],block:!0,size:"md",label:"string"==typeof F&&F?F:ie.upload})}),w?Be:Oe,!R&&/* @__PURE__ */j("input",{...we.inputProps}),
9
- /* @__PURE__ */j(h,{rejections:we.rejections})]})}export{w as MediaUploadField};
@@ -1,6 +0,0 @@
1
- import{TEXT_ALIGNS as e,textAlignWords as l,textAlignIcon as r}from"./chunk-4EZIWLJJ.js";import{IconButton_default as a}from"./chunk-LE5LWALR.js";import{Icon as o}from"./chunk-2UO47XB4.js";import{Tooltip as n}from"./chunk-NJN5IKWO.js";import{useShellStrings as s}from"./chunk-GDQJBQ5B.js";import{jsx as i,jsxs as t,Fragment as d}from"react/jsx-runtime";var c=e=>e.preventDefault(),u=e=>null!=e&&!1!==e,h=["bold","italic","underline","strike","link","sup","sub","code"];function p(e,l,r){const a={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:"first",End:"last"}[e.key];if(void 0===a||0===l.length)return;const o=[...e.currentTarget.querySelectorAll('[role="radio"]')],n=o.findIndex(l=>l===e.target||l.contains(e.target));if(n<0)return;e.preventDefault();const s=o.length,i="first"===a?0:"last"===a?s-1:(n+a+s)%s;o[i].disabled||(r(l[i]),o[i].focus())}function b(e,l){const r=["bold","italic","underline","strike"].filter(l=>e.has(l)).length;return{color:r,link:r+(l?1:0)}}function m(e,l,r,a){const o=h.filter(l=>"link"!==l&&e.has(l)).length+(l?1:0);return r&&0!==o?a>0?"paragraph":"words":null}function w({offered:l,color:r,last:a,alignment:o,list:n,letterCase:s,clear:i}){let t=h.filter(e=>l.has(e)).length+(r?1:0)+(u(a)?1:0),d=(o?e.filter(e=>o.allow.includes(e)).length:0)+(n&&l.has("bullet")?1:0)+(n&&l.has("number")?1:0)+(l.has("quote")?1:0)+(s?3:0);const c=m(l,r,i,d);return"paragraph"===c&&(d+=1),"words"===c&&(t+=1),{words:t>0,paragraph:d>0,oneRow:t>0&&d>0&&t+1+d<=9,flow:t>0&&d>0&&t+1+d>9&&t<=7,cells:{words:t,paragraph:d}}}function g(e,l){/* @__PURE__ */
2
- return i(n,{content:e,children:l},l.key??void 0)}function f({offered:n,pressed:h,onMark:f,color:k,linkOpen:v=!1,last:N,alignment:C,list:D,letterCase:M,clear:x,disabled:y=!1,"aria-label":L,windows:B,className:j="",layout:A="grid"}){const I=s().textToolbar,q=w({offered:n,color:k,last:N,alignment:C,list:D,letterCase:M,clear:x});if(!q.words&&!q.paragraph)return null;const R=m(n,k,x,q.cells.paragraph),$=(e,l="")=>`rosh-tb-btn${e?" is-on":""}${l?` ${l}`:""}`,J=(e,l,r,o)=>n.has(e)?g(l,/* @__PURE__ */i(a,"link"===e?{pressed:v,className:$(v),"aria-label":l,"aria-haspopup":"dialog","aria-expanded":v,"aria-keyshortcuts":o,disabled:y,onMouseDown:c,onClick:()=>f(e),children:r}:{className:$(Boolean(h[e])),"aria-label":l,"aria-pressed":Boolean(h[e]),"aria-keyshortcuts":o,disabled:y,onMouseDown:c,onClick:()=>f(e),children:r},e)):null,K=l(I),S=e.map(e=>[e,K[e],r(e)]),U=C?e.filter(e=>C.allow.includes(e)):[],E=C&&U.includes(C.value)?C.value:U[0],O=[["none",I.caseNone,/* @__PURE__ */i(o,{name:"case-normal"})],["upper",I.caseUpper,/* @__PURE__ */i(o,{name:"case-upper"})],["lower",I.caseLower,/* @__PURE__ */i(o,{name:"case-lower"})]],T=x&&R?g(I.clear,/* @__PURE__ */i(a,{className:$(!1),"aria-label":I.clear,disabled:y,onMouseDown:c,onClick:x.onClear,children:/* @__PURE__ */i(o,{name:"revert"})},"clear")):null,W=/* @__PURE__ */t(d,{children:[J("bold",I.bold,/* @__PURE__ */i(o,{name:"bold"}),"Meta+B"),J("italic",I.italic,/* @__PURE__ */i(o,{name:"italic"}),"Meta+I"),J("underline",I.underline,/* @__PURE__ */i(o,{name:"underline"}),"Meta+U"),J("strike",I.strike,/* @__PURE__ */i(o,{name:"strike"})),k?g(I.color,/* @__PURE__ */i(a,{pressed:k.open,className:$(k.open,"rosh-tb-color"),"aria-label":I.color,"aria-haspopup":"dialog","aria-expanded":k.open,disabled:y,style:k.run?{"--rosh-tb-run":k.run}:void 0,onMouseDown:c,onClick:k.onToggle,children:/* @__PURE__ */i(o,{name:"text-color"})},"color")):null,J("link",I.link,/* @__PURE__ */i(o,{name:"link"}),"Meta+K"),J("sup",I.sup,/* @__PURE__ */i(o,{name:"superscript"})),J("sub",I.sub,/* @__PURE__ */i(o,{name:"subscript"})),J("code",I.code,/* @__PURE__ */i(o,{name:"code"})),u(N)?N:null,"words"===R?T:null]}),Q=/* @__PURE__ */t(d,{children:[C&&U.length>0?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":I.alignment,onKeyDown:e=>p(e,U,e=>C.onChange(e)),children:S.map(([e,l,r])=>C.allow.includes(e)?g(l,/* @__PURE__ */i(a,{role:"radio",pressed:C.value===e,className:$(C.value===e),"aria-checked":C.value===e,"aria-label":l,tabIndex:e===E?0:-1,disabled:y||C.disabled,onMouseDown:c,onClick:()=>C.onChange(e),children:r},e)):null)}):null,D&&n.has("bullet")?g(I.bullet,/* @__PURE__ */i(a,{className:$("bullet"===D.pressed),"aria-label":I.bullet,"aria-pressed":"bullet"===D.pressed,disabled:y,onMouseDown:c,onClick:()=>D.onList("bullet"),children:/* @__PURE__ */i(o,{name:"list"})},"bullet")):null,D&&n.has("number")?g(I.number,/* @__PURE__ */i(a,{className:$("number"===D.pressed),"aria-label":I.number,"aria-pressed":"number"===D.pressed,disabled:y,onMouseDown:c,onClick:()=>D.onList("number"),children:/* @__PURE__ */i(o,{name:"numbered-list"})},"number")):null,J("quote",I.quote,/* @__PURE__ */i(o,{name:"quote"})),M?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":I.letterCase,onKeyDown:e=>p(e,O.map(([e])=>e),e=>M.onChange(e)),children:O.map(([e,l,r])=>g(l,/* @__PURE__ */i(a,{role:"radio",pressed:M.value===e,className:$(M.value===e),"aria-checked":M.value===e,"aria-label":l,tabIndex:e===(M.value||"none")?0:-1,disabled:y||M.disabled,onMouseDown:c,onClick:()=>M.onChange(M.value===e?"":e),children:r},e)))}):null,"paragraph"===R?T:null]}),G="row"===A,H=G?" is-row":q.flow?" is-flow":q.oneRow?" is-one-row":q.words&&void 0===N&&"words"!==R?" is-eight":"",X=b(n,Boolean(k)),Z={"--rosh-tb-color-col":String(X.color),"--rosh-tb-link-col":String(X.link),...G?{"--rosh-tb-cells":String(q.cells.words+q.cells.paragraph),"--rosh-tb-groupgap":q.words&&q.paragraph?"var(--space-8, 0.5rem)":"0px"}:{}};let z;return z=G?/* @__PURE__ */t("div",{className:"rosh-tb-row is-row",children:[q.words?/* @__PURE__ */i("div",{className:"rosh-tb-words",children:W}):null,q.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-para",children:Q}):null]}):q.flow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-flow",children:[W,
3
- /* @__PURE__ */i("span",{className:"rosh-tb-flowgap","aria-hidden":"true"}),Q]}):q.oneRow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-one-row",children:[
4
- /* @__PURE__ */i("div",{className:"rosh-tb-words",children:W}),
5
- /* @__PURE__ */i("div",{className:"rosh-tb-para",children:Q})]}):/* @__PURE__ */t(d,{children:[q.words?/* @__PURE__ */i("div",{className:"rosh-tb-row"+(void 0===N&&"words"!==R?" is-eight":""),children:W}):null,q.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-row",children:Q}):null]}),/* @__PURE__ */t("div",{className:`rosh-tb-wrap${H} ${j}`.trim(),style:Z,children:[
6
- /* @__PURE__ */i("div",{className:"rosh-tb",role:"toolbar","aria-label":L??I.formatting,children:z}),B]})}export{f as TextToolbar,w as textToolbarRows,b as textToolbarWindowColumns};
@@ -1 +0,0 @@
1
- var r="11.5.0",a=r;export{a as APP_VERSION,r as VERSION};
@@ -1,5 +0,0 @@
1
- import{DropdownMenu as e}from"./chunk-NZISMTQE.js";import{inputClasses as r,PLACEHOLDER_INK as n}from"./chunk-AYZY3YNC.js";import{IconButton_default as t}from"./chunk-LE5LWALR.js";import{iconButtonClasses as i}from"./chunk-UQYNPYF4.js";import{Tooltip as a}from"./chunk-NJN5IKWO.js";import{forwardRef as s}from"react";import{jsx as o,jsxs as l}from"react/jsx-runtime";var c={sm:"sm",md:"sm",lg:"md",touch:"touch-sm"},m={sm:"pr-8",md:"pr-8",lg:"pr-10",touch:"pr-12"};function p({children:e}){/* @__PURE__ */
2
- return o("span",{className:"absolute right-1 top-1/2 flex -translate-y-1/2 items-center gap-1",children:e})}function d({action:e,size:r="md"}){/* @__PURE__ */
3
- return o(h,{action:e,size:c[r]})}var u=["","pr-8","pr-16"];function h({action:r,size:n}){const{label:s,icon:l,onClick:c,menu:m}=r;/* @__PURE__ */
4
- return o(a,{content:s,describe:!1,children:m?/* @__PURE__ */o(e,{"aria-label":s,trigger:l,items:m,triggerClassName:i({size:n})}):/* @__PURE__ */o(t,{"aria-label":s,size:n,onClick:c,children:l})})}var f=s(function({invalid:e,leftIcon:t,rightAdornment:i,endAction:a,size:s,className:c="",readOnly:u,...h},f){const N=s??"md",g=`${t?"pl-10":""} ${a?m[N]:i?"pr-10":""}`.trim(),v=
5
- /* @__PURE__ */o("input",{ref:f,"aria-invalid":e||void 0,readOnly:u,className:r({invalid:e,size:s,readOnly:u,className:[g,c].filter(Boolean).join(" ")}),...h});return t||i||a?/* @__PURE__ */l("div",{className:"relative",children:[t&&/* @__PURE__ */o("span",{className:`pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 ${n}`,children:t}),v,a?/* @__PURE__ */o(p,{children:/* @__PURE__ */o(d,{action:a,size:N})}):i&&/* @__PURE__ */o("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400",children:i})]}):v});export{u as END_ACTIONS_PAD,c as INPUT_END_ACTION_SIZE,d as InputEndActionButton,p as InputEndActionSlot,f as Input_default};
@@ -1,3 +0,0 @@
1
- import{IconPicker as e}from"./chunk-M66ACZXQ.js";import{ColorPicker as t}from"./chunk-BUO7XCYR.js";import{InputNumber_default as r}from"./chunk-QRU55BUS.js";import{Icon as l}from"./chunk-2UO47XB4.js";import{jsxs as o,Fragment as a,jsx as i}from"react/jsx-runtime";var s=["solid","dashed","dotted"],n=["top","right","bottom","left"];function d(e){const t=e??{},r="number"==typeof t.width?t.width:0;return Object.fromEntries(n.map(e=>[e,"number"==typeof t[e]?t[e]:r]))}function m(e,t){const r=e??{},l=d(t),o=n.some(e=>"number"==typeof r[e]),a=n.map(e=>"number"==typeof r[e]?r[e]:"number"==typeof r.width?r.width:o?0:l[e]);return!a.every(e=>e===a[0])}var h="h-3.5 w-3.5",c={all:/* @__PURE__ */i(l,{name:"border-all","aria-hidden":"true",className:h}),top:/* @__PURE__ */i(l,{name:"border-top","aria-hidden":"true",className:h}),right:/* @__PURE__ */i(l,{name:"border-right","aria-hidden":"true",className:h}),bottom:/* @__PURE__ */i(l,{name:"border-bottom","aria-hidden":"true",className:h}),left:/* @__PURE__ */i(l,{name:"border-left","aria-hidden":"true",className:h})},p={solid:/* @__PURE__ */i(l,{name:"line-solid","aria-hidden":"true",className:h}),dashed:/* @__PURE__ */i(l,{name:"line-dashed","aria-hidden":"true",className:h}),dotted:/* @__PURE__ */i(l,{name:"line-dotted","aria-hidden":"true",className:h})};function u({label:l,value:d,onChange:m,each:h,placeholder:u,presets:f,words:b,widths:w=!0,styles:g=!0,min:y=0,max:v=20,step:N=1,readOnly:x}){const j=e=>"number"==typeof d[e]?d[e]:null,C=(e,t)=>{const r={...d};if("number"==typeof d.width)for(const e of n)null===j(e)&&(r[e]=d.width);r[e]=t,delete r.width,m(r)},S=(e,t,l,o,a,s)=>/* @__PURE__ */i("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */i(r,{value:o,onChange:s,min:y,max:v,step:N,precision:0,steppers:"compact",readOnly:x,placeholder:a,prefix:l,suffix:b.unit,"aria-label":t})}),k=n.map(j),O="number"==typeof d.width?d.width:k.every(e=>null!==e&&e===k[0])?k[0]:null,U=null===O&&k.some(e=>null!==e),B=n.every(e=>u.sides[e]===u.sides.top)?String(u.sides.top):"–",X=e=>j(e)??("number"==typeof d.width?d.width:null),Q=d.style??u.style;/* @__PURE__ */
2
- return o("div",{role:"group","aria-label":l,"data-border":h?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[w?h?/* @__PURE__ */o(a,{children:[S("left",b.sides.left,c.left,X("left"),String(u.sides.left),e=>C("left",e)),S("top",b.sides.top,c.top,X("top"),String(u.sides.top),e=>C("top",e)),S("right",b.sides.right,c.right,X("right"),String(u.sides.right),e=>C("right",e)),S("bottom",b.sides.bottom,c.bottom,X("bottom"),String(u.sides.bottom),e=>C("bottom",e))]}):S("all",b.width,c.all,O,U?"–":B,e=>{const t={...d,width:e};for(const e of n)delete t[e];m(t)}):null,g&&/* @__PURE__ */i("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */i(e,{label:b.style,value:Q,disabled:x,onChange:e=>{x||m({...d,style:e})},options:s.map(e=>({value:e,label:b.styles[e],icon:p[e]}))})}),
3
- /* @__PURE__ */i("div",{"data-border-color":"",className:"col-span-2 flex min-w-0 items-center",children:/* @__PURE__ */i(t,{value:d.color??"",onChange:e=>{x||m({...d,color:e})},label:b.color,presets:f,fallback:u.color,showHexInput:!0,size:"md",disabled:x})})]})}export{s as BORDER_LINE_STYLES,u as BorderInput,d as borderSides,m as borderStartEach};
@@ -1,5 +0,0 @@
1
- import{Popover as e}from"./chunk-7JGR7WPD.js";import{IconButton_default as r}from"./chunk-LE5LWALR.js";import{Icon as n}from"./chunk-2UO47XB4.js";import{Tooltip as a}from"./chunk-NJN5IKWO.js";import{useShellStrings as i}from"./chunk-GDQJBQ5B.js";import{useRef as l}from"react";import{jsx as t,jsxs as o,Fragment as s}from"react/jsx-runtime";var c={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]};function m({value:m,onChange:u,options:h,label:d,emptyValue:f,columns:p=5,cell:g,header:v,disabled:b=!1,className:w=""}){const x=i(),N=x.iconPicker,k=x.iconNames,j=e=>e.label??k[e.value]??e.value,y=l([]),A=Math.max(0,h.findIndex(e=>e.value===m)),D=h[A],L=D?.value===f,C=l(null);/* @__PURE__ */
2
- return t(e,{className:w,disabled:b,triggerLabel:D?N.button(d,j(D)):d,"aria-label":d,initialFocus:C,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */t("span",L||!D?{className:"text-sm",children:D?j(D):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:D.icon}),
3
- /* @__PURE__ */t(n,{name:"chevron-down",className:"h-4 w-4"})]}),children:({close:e})=>/* @__PURE__ */o(s,{children:["function"==typeof v?v({close:e}):v,
4
- /* @__PURE__ */t("div",{role:"listbox","aria-label":d,className:"grid gap-1",style:{gridTemplateColumns:`repeat(${p}, ${g?.width??"2rem"})`},children:h.map((n,i)=>{const l=n.value===m;/* @__PURE__ */
5
- return t(a,{content:j(n),children:/* @__PURE__ */t(r,{ref:e=>{y.current[i]=e,i===A&&(C.current=e)},role:"option","aria-selected":l,"aria-label":j(n),pressed:l,tabIndex:i===A?0:-1,onKeyDown:e=>((e,r)=>{const n=c[r.key];if(!n)return;r.preventDefault();const a=Math.floor(e/p)+n[0],i=e%p+n[1];if(a<0||i<0||i>=p)return;const l=a*p+i;if(!(l>=h.length)){for(const[e,r]of y.current.entries())r?.setAttribute("tabindex",e===l?"0":"-1");y.current[l]?.focus()}})(i,e),onClick:()=>{u(n.value),e()},style:g?{width:g.width,height:g.height}:void 0,children:/* @__PURE__ */t("span",{"aria-hidden":"true",className:g?"inline-flex":"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})})},n.value)})})]})})}export{m as IconPicker};
@@ -1,8 +0,0 @@
1
- import{ChartTooltip as e}from"./chunk-36VIGB6J.js";import{axisGutter as t,radiusScale as i,niceMax as l,logScale as r,linearScale as o}from"./chunk-2JWPNR2U.js";import{usePlotWidth as n}from"./chunk-MAFUXCPZ.js";import{CHART_INK as a,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{useShellStrings as m,useShellLocale as h}from"./chunk-GDQJBQ5B.js";import{formatPlain as f}from"./chunk-C3QOHMR6.js";import{useRef as u,useId as p,useState as d,useEffect as x}from"react";import{jsx as y,jsxs as g}from"react/jsx-runtime";var b=3;function k({series:b,height:k=260,width:v,xLabel:M,yLabel:A,formatX:z,formatY:$,xDomain:j,yDomain:w,xScale:N="linear",yScale:R="linear",radiusRange:D=[4,22],className:S,emptyLabel:U}){const B=m().charts,L=h(),P=z??(e=>f(e,L)),Q=$??(e=>f(e,L)),V=U??B.noObservations,W=u(null),C=n(W),E=v??C,I=p(),[J,O]=d(null);x(()=>{if(null!==J)return c(e=>"Escape"===e.key&&(O(null),!0))},[J]);const F=(e,t)=>!t||e>=Math.min(t[0],t[1])&&e<=Math.max(t[0],t[1]),G=b.map((e,t)=>({...e,slot:t})).filter(e=>e.points.length>0),T=j||w?G.map(e=>({...e,points:e.points.filter(e=>F(e.x,j)&&F(e.y,w))})).filter(e=>e.points.length>0):G,X=G.reduce((e,t)=>e+t.points.length,0)-T.reduce((e,t)=>e+t.points.length,0);if(0===T.length)/* @__PURE__ */
2
- return y("div",{className:S,ref:W,children:/* @__PURE__ */y("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:k},children:V})});const Z=T.flatMap(e=>e.points),H=Z.some(e=>null!=e.size),K=14,Y=20,q=34,_=52,ee=(e,t,i,n)=>{const a=e.filter(e=>e>0),s="log"===i?a.length>0?Math.min(...a):0:Math.min(0,...e),c=t??[s,l(Math.max(...e))];return"log"===i?r(c,n):o(c,n)},te=ee(Z.map(e=>e.y),w,R,{from:k-q,to:K}),ie=t(te.ticks(5).map(Q),_),le=Math.max(ie+1,E-Y),re=ee(Z.map(e=>e.x),j,N,{from:ie,to:le}),oe=i([0,Math.max(...Z.map(e=>e.size??1))],{from:D[0],to:D[1]}),ne=J?T[J.s]:void 0,ae=J&&ne?ne.points[J.i]:void 0,se=T.flatMap((e,t)=>e.points.map((e,i)=>({s:t,i:i})));/* @__PURE__ */
3
- return g("div",{className:`relative ${S??""}`,ref:W,children:[
4
- /* @__PURE__ */g("svg",{width:"100%",height:k,viewBox:`0 0 ${E} ${k}`,role:"img","aria-label":B.scatter(T.map(e=>e.label),A??B.yAxis,M??B.xAxis)+(X>0?`. ${B.outsideRange(X)}`:""),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>O(null),onBlur:()=>O(null),onKeyDown:e=>{if("ArrowRight"!==e.key&&"ArrowLeft"!==e.key)return;e.preventDefault();const t="ArrowRight"===e.key?1:-1,i=J?se.findIndex(e=>e.s===J.s&&e.i===J.i):0;O(se[Math.min(se.length-1,Math.max(0,i+t))])},children:[
5
- /* @__PURE__ */y("defs",{children:/* @__PURE__ */y("clipPath",{id:I,children:/* @__PURE__ */y("rect",{x:ie-D[1],y:K-D[1],width:le-ie+2*D[1],height:k-q-K+2*D[1]})})}),te.ticks(5).map(e=>/* @__PURE__ */g("g",{children:[
6
- /* @__PURE__ */y("line",{x1:ie,y1:te(e),x2:le,y2:te(e),stroke:a.grid,strokeWidth:1,shapeRendering:"crispEdges"}),
7
- /* @__PURE__ */y("text",{x:ie-8,y:te(e)+4,textAnchor:"end",fontSize:11,fill:a.label,style:{fontVariantNumeric:"tabular-nums"},children:Q(e)})]},`y${e}`)),re.ticks(5).map(e=>/* @__PURE__ */y("text",{x:re(e),y:k-12,textAnchor:"middle",fontSize:11,fill:a.label,style:{fontVariantNumeric:"tabular-nums"},children:P(e)},`x${e}`)),M&&/* @__PURE__ */y("text",{x:(ie+le)/2,y:k-.5,textAnchor:"middle",fontSize:11,fill:a.label,children:M}),A&&/* @__PURE__ */y("text",{x:12,y:k/2,transform:`rotate(-90 12 ${k/2})`,textAnchor:"middle",fontSize:11,fill:a.label,children:A}),
8
- /* @__PURE__ */y("g",{clipPath:`url(#${I})`,children:T.map((e,t)=>{const i=s(e.slot,3,e.color,e.tone);return e.points.map((l,r)=>/* @__PURE__ */y("circle",{cx:re(l.x),cy:te(l.y),r:H?oe(l.size??0):D[0]+1,fill:i,fillOpacity:J&&J.s!==t?.25:.62,stroke:a.surface,strokeWidth:2,onMouseEnter:()=>O({s:t,i:r})},`${e.key}-${r}`))})})]}),J&&ne&&ae&&/* @__PURE__ */y("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */y(e,{title:ae.label??ne.label,rows:[{key:"x",label:M??B.xAxis,color:s(ne.slot,3,ne.color,ne.tone),value:P(ae.x)},{key:"y",label:A??B.yAxis,color:s(ne.slot,3,ne.color,ne.tone),value:Q(ae.y)},...null!=ae.size?[{key:"size",label:B.size,color:a.muted,value:f(ae.size,L)}]:[]],footnote:ae.label?ne.label:void 0})})]})}export{b as SCATTER_SERIES_CAP,k as ScatterChart};
@@ -1,11 +0,0 @@
1
- import{ChartTooltip as e}from"./chunk-36VIGB6J.js";import{usePlotWidth as t}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as l,CHART_INK as r}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as n}from"./chunk-TWVUQUUD.js";import{useShellStrings as i,useShellLocale as a}from"./chunk-GDQJBQ5B.js";import{formatPlain as o}from"./chunk-C3QOHMR6.js";import{useRef as h,useId as c,useState as s,useEffect as m}from"react";import{jsx as f,jsxs as u}from"react/jsx-runtime";function x({rows:x,columns:d,cells:p,height:M,width:g,color:y,max:v,formatValue:$,label:b,className:k,emptyLabel:w,cellGap:A=2,cellRadius:N=2}){const j=i().charts,U=a(),z=$??(e=>o(e,U)),B=b??j.intensity,C=w??j.noActivity,D=h(null),F=t(D),G=g??F,Q=c(),[R,S]=s(null);if(m(()=>{if(null!==R)return n(e=>"Escape"===e.key&&(S(null),!0))},[R]),0===x.length||0===d.length)/* @__PURE__ */
2
- return f("div",{className:k,ref:D,children:/* @__PURE__ */f("p",{className:"py-8 text-center text-sm text-gray-500",children:C})});const V=y??l(0),L=v??Math.max(1,...p.flat().filter(Number.isFinite)),E=96,I=26*x.length,J=M??I+26+26,T=Math.max(2,(Math.max(97,G)-E)/d.length),Z=e=>{const t=L>0?Math.max(0,Math.min(1,e/L)):0;return`color-mix(in oklab, ${V} ${(8+92*t).toFixed(1)}%, ${r.surface})`};/* @__PURE__ */
3
- return u("div",{className:`relative ${k??""}`,ref:D,children:[
4
- /* @__PURE__ */u("svg",{width:"100%",height:J,viewBox:`0 0 ${G} ${J}`,role:"img","aria-label":j.heatmap(B,x.length,d.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>S(null),onBlur:()=>S(null),onKeyDown:e=>{const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0,l="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;0===t&&0===l||(e.preventDefault(),S(e=>({r:Math.min(x.length-1,Math.max(0,(e?.r??0)+t)),c:Math.min(d.length-1,Math.max(0,(e?.c??0)+l))})))},children:[
5
- /* @__PURE__ */f("defs",{children:/* @__PURE__ */u("linearGradient",{id:Q,x1:"0",x2:"1",children:[
6
- /* @__PURE__ */f("stop",{offset:"0",stopColor:Z(0)}),
7
- /* @__PURE__ */f("stop",{offset:"1",stopColor:Z(L)})]})}),x.map((e,t)=>/* @__PURE__ */f("text",{x:86,y:26*t+13+4,textAnchor:"end",fontSize:11,fill:r.label,children:e},`r${t}`)),x.map((e,t)=>d.map((l,r)=>{const n=p[t]?.[r]??0,i=R&&(R.r!==t||R.c!==r);/* @__PURE__ */
8
- return f("rect",{x:E+r*T+A/2,y:26*t+A/2,width:Math.max(1,T-A),height:26-A,rx:N,fill:Z(n),opacity:i?.55:1,onMouseEnter:()=>S({r:t,c:r}),children:/* @__PURE__ */f("title",{children:`${e} · ${l}: ${z(n)}`})},`${t}-${r}`)})),d.map((e,t)=>t%Math.max(1,Math.ceil(d.length/Math.max(1,Math.floor((G-E)/56))))===0?/* @__PURE__ */f("text",{x:E+t*T+T/2,y:I+15,textAnchor:"middle",fontSize:11,fill:r.label,children:e},`c${t}`):null),
9
- /* @__PURE__ */f("rect",{x:E,y:I+26,width:Math.min(180,Math.max(40,G-E)),height:8,rx:4,fill:`url(#${Q})`}),
10
- /* @__PURE__ */f("text",{x:E,y:I+48,fontSize:11,fill:r.label,children:"0"}),
11
- /* @__PURE__ */f("text",{x:E+Math.min(180,Math.max(40,G-E)),y:I+48,textAnchor:"end",fontSize:11,fill:r.label,style:{fontVariantNumeric:"tabular-nums"},children:z(L)})]}),R&&/* @__PURE__ */f("div",{className:"pointer-events-none absolute top-1 right-1 z-10",children:/* @__PURE__ */f(e,{title:`${x[R.r]} · ${d[R.c]}`,rows:[{key:"v",label:B,color:V,value:null==p[R.r]?.[R.c]?void 0:z(p[R.r][R.c])}]})})]})}export{x as HeatmapChart};
@@ -1,7 +0,0 @@
1
- import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-4DDL6NXB.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-6KGIHI6X.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:j="end",side:K="bottom","aria-label":A,className:C="",triggerClassName:E,menuClassName:S="",minWidth:W=180,linkAs:H,disabled:N,id:$,"aria-describedby":I,"aria-disabled":T=!1,onOpenChange:U,footer:B,footerLabel:G}){const[J,q]=m(!1),[M,z]=m(-1),P=h(null),R=h(null),X=h(null),O=h(null),Q=h(null),V=null!=B&&!1!==B,Y=h({text:"",at:0}),F=g(),Z=g(),_=$??Z,ee=h(U);ee.current=U;const te=h(J);te.current=J;const re=v(e=>{q(!1),te.current&&(te.current=!1,ee.current?.(!1)),e&&R.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=()=>X.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!J)return;const e=e=>{const t=e.target;if(P.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=R.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:j,side:K});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=j},[j,K]);p(()=>{J&&ie()}),b(()=>{if(J)return u(()=>R.current,ie)},[J,ie]),b(()=>{if(!J)return;const t=X.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),()=>O.current)},[J,re]),n(O,J&&V);const ae=h(null),le=e=>"first"===e?ne(0,1):ne(L.length-1,-1),se=e=>{z(le(e)),q(!0),te.current||(te.current=!0,ae.current=e,U?.(!0))};p(()=>{const e=ae.current;if(!J||!e)return;ae.current=null;const t=le(e);t!==M&&z(t)});const de=t(L,F),ce="function"==typeof B?B({close:()=>re(!0)}):B,ue={...k.test(S)?{}:{zIndex:s.popup},minWidth:W};/* @__PURE__ */
2
- return y("div",{ref:P,className:`relative inline-flex ${C}`.trim(),children:[
3
- /* @__PURE__ */x("button",{ref:R,id:_,type:"button","aria-haspopup":"menu","aria-expanded":J,"aria-controls":J?F:void 0,"aria-label":A,"aria-describedby":I,"aria-disabled":T||void 0,disabled:N,onClick:()=>{T||(J?re(!1):se("first"))},onKeyDown:e=>{T||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),se("first")):"ArrowUp"===e.key&&(e.preventDefault(),se("last")))},className:E??"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-ink-strongest rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60 "+(A?"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:S,style:ue,children:/* @__PURE__ */y("div",{ref:O,children:[
5
- /* @__PURE__ */x("div",{ref:X,id:F,role:"menu","aria-orientation":"vertical","aria-label":A,"aria-labelledby":A?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(),z(ne(M+1,1));else if("ArrowUp"===t.key)t.preventDefault(),z(ne(M-1,-1));else if("Home"===t.key)t.preventDefault(),z(ne(0,1));else if("End"===t.key)t.preventDefault(),z(ne(L.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&Q.current?o(Q.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-Y.current.at<500?Y.current.text+n:n;Y.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=X.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 z(n)}})(t)},children:r(L,{menuId:F,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||Q.current?.contains(document.activeElement)||z(e)}}),linkAs:H})}),V&&/* @__PURE__ */y("div",{ref:Q,role:"group","aria-label":G,"data-dropdown-footer":"",onKeyDown:e=>{const t=Q.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=X.current?.querySelector(`[data-dropdown-index="${M}"]`);return void(t??X.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};
@@ -1,14 +0,0 @@
1
- import{SearchableSelect as e}from"./chunk-3XZFWR6T.js";import{labelClasses as a}from"./chunk-EQKUFYX6.js";import{Select_default as l}from"./chunk-XFH64VIG.js";import{isSafeLinkHref as t}from"./chunk-Q5Z3KHT2.js";import{Input_default as n}from"./chunk-HNUKXGYP.js";import{INPUT_SIZES as r}from"./chunk-AYZY3YNC.js";import{Button_default as i}from"./chunk-EOVXFXVV.js";import{Icon as o}from"./chunk-2UO47XB4.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as u}from"./chunk-GDQJBQ5B.js";import{useId as d,useRef as c,useState as p,useEffect as m}from"react";import{jsx as f,jsxs as v,Fragment as g}from"react/jsx-runtime";function h(e){return"select"===e.type?e.options:"groups"===e.type?e.groups.flatMap(e=>e.options):[]}var b="address",x={kindOf:()=>b,targetOf:e=>e,readFilter:()=>null,withFilter:e=>e},k=e=>t(e.trim());function y(t){const{value:r,kinds:o,rules:y=x,filtersFor:w,label:N,readOnly:C,placeholder:F,className:O=""}=t,j=void 0!==t.onApply,$=u().link,X=y.isSafe??k,z=d(),E=c(null),U=c(null),[Q,T]=p({url:r}),V=j?Q.url:r,[Y,A]=p(!1),[D,H]=p(null),[K,P]=p(null),W=c(()=>{});W.current=j?t.onCancel:()=>{},m(()=>{if(j)return s(e=>{const a=E.current;return!!("Escape"===e.key&&a&&e.target instanceof Node&&a.contains(e.target))&&(W.current(),!0)},()=>E.current)},[j]),m(()=>{if(!j)return;const e=U.current;e?(e.focus(),e.select()):E.current?.querySelector("button, input")?.focus()},[]);const B=o??[{value:b,label:$.address,target:{type:"text"}}],G=D&&D.against===V?D.kind:y.kindOf(V),R=B.filter(e=>!e.hideWhenEmpty||h(e.target).length>0||e.value===G),Z=R.find(e=>"text"===e.target.type),L=R.find(e=>e.value===G)??Z??R[0];if(!L)return null;const M="text"!==L.target.type,S=M?y.targetOf(V):V,q=h(L.target),I=q.find(e=>e.value===S),J=e=>({value:e,label:$.unavailable(e)}),_="select"===L.target.type&&S&&w?w(S):null,ee=_?y.readFilter(V):null,ae=ee?_?.find(e=>e.param===ee.param):void 0,le=K&&K.against===V?K.text:V,te=!M&&""!==le.trim()&&!X(le),ne=te&&(!j||Y),re=(e,a)=>{j?T({url:e,name:a}):void 0===a?t.onChange(e):t.onChange(e,a)},ie=(e,a)=>{H(a=>a?{...a,against:e}:a),re(e,a)},oe=e=>{if(!e)return ie("");const a=q.find(a=>a.value===e);ie(e,a?.label)},se=M?V:le.trim(),ue=()=>{if(!j||!se)return;if(!M&&te)return void A(!0);const e=M&&Q.url===se?Q.name:void 0,a=t.onApply;void 0===e?a(se):a(se,e)},de=(e,a)=>a&&!e.some(e=>e.value===a)?[J(a),...e]:[...e],ce=(a,t,n,r,i)=>{const o=[];for(const e of n){const a=o[o.length-1],l={value:e.value,label:e.label};e.group?a&&"options"in a&&a.label===e.group?a.options.push(l):o.push({label:e.group,options:[l]}):o.push(l)}if(i){const l=n.some(e=>""===e.value);/* @__PURE__ */
2
- return f(e,{"aria-label":a,value:t,options:o,disabled:C,clearable:l,placeholder:n.find(e=>""===e.value)?.label,onChange:r})}/* @__PURE__ */
3
- return f(l,{size:"sm","aria-label":a,value:t,options:o,readOnly:C,onChange:r})};let pe;if("text"===L.target.type)pe=/* @__PURE__ */f(n,{ref:U,id:`${z}-address`,size:"sm",type:"text",invalid:ne,"aria-label":$.address,"aria-describedby":ne?`${z}-why`:void 0,placeholder:F??$.addressPlaceholder,spellCheck:!1,autoComplete:"off",value:le,readOnly:C,onChange:e=>(e=>{A(!1);const a=e.trim();a?X(e)?(P({text:e,against:a}),ie(a)):P({text:e,against:V}):(P({text:e,against:""}),ie(""))})(e.target.value)});else{const e="groups"===L.target.type?L.target.groups.flatMap(e=>e.options.map(a=>({value:a.value,label:a.label,group:e.label}))):L.target.options.map(e=>({value:e.value,label:e.label})),a=[{value:"",label:L.target.placeholder},...de(e,S)];pe=ce(L.label,S,a,oe,e.length>10)}const me=/* @__PURE__ */v(g,{children:[o&&ce($.linkType,L.value,R.map(e=>({value:e.value,label:e.label})),e=>{P(null),A(!1);const a=R.find(a=>a.value===e);if(!a||"text"===a.target.type)return void H({kind:e,against:V});const l=h(a.target)[0];H({kind:e,against:l?l.value:""}),l?re(l.value,l.label):re("")},!1),pe,_&&ce($.filter,ee?.param??"",[{value:"",label:$.noFilter},...ee&&!ae?[J(ee.param)]:[],..._.map(e=>({value:e.param,label:e.label}))],e=>{if(!e)return ie(S,I?.label);const a=_?.find(a=>a.param===e),l=a?.values[0];l&&ie(y.withFilter(S,{param:e,value:l.value}),l.label)},!1),_&&ee&&ce($.value,ee.value,de((ae?.values??[]).map(e=>({value:e.value,label:e.label})),ee.value),e=>{if(!ee)return;const a=ae?.values.find(a=>a.value===e);ie(y.withFilter(S,{param:ee.param,value:e}),a?.label)},(ae?.values.length??0)>10),ne&&/* @__PURE__ */f("p",{id:`${z}-why`,role:"alert",className:"text-2xs leading-4 text-red-600",children:$.unsafe}),L.hint&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:L.hint}),_&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:$.filterHint})]});if(!j)/* @__PURE__ */
4
- return f("div",{ref:E,className:`flex min-w-0 flex-auto flex-col gap-2 ${O}`.trim(),role:N?"group":void 0,"aria-label":N,children:me});const fe=t.onRemove;/* @__PURE__ */
5
- return v("div",{ref:E,role:"dialog","aria-label":N??$.title,className:`flex min-w-0 flex-col gap-2 rounded-xl border border-line bg-surface p-3 shadow-lg ${O}`.trim(),onKeyDown:e=>{"Enter"!==e.key||e.defaultPrevented||e.target instanceof Element&&e.target.closest("button")||(e.preventDefault(),ue())},children:[M?/* @__PURE__ */f("span",{className:a({inline:!0}),children:$.title}):/* @__PURE__ */f("label",{htmlFor:`${z}-address`,className:a({inline:!0}),children:$.title}),me,
6
- /* @__PURE__ */v("div",{className:"flex items-center justify-between gap-2",children:[fe?/* @__PURE__ */f(i,{variant:"ghost-danger",size:"sm","data-window-action":"remove",onClick:fe,children:$.remove}):null,
7
- /* @__PURE__ */v("span",{className:"ml-auto flex gap-1",children:[
8
- /* @__PURE__ */f(i,{variant:"secondary",size:"sm","data-window-action":"cancel",onClick:()=>W.current(),children:$.cancel}),
9
- /* @__PURE__ */f(i,{variant:"primary",size:"sm","data-window-action":"apply",onClick:ue,disabled:C||""===se,children:$.apply})]})]})]})}function w({label:e,text:a,onTextChange:l,link:t,onLinkChange:i,kinds:s,rules:m,filtersFor:g,textPlaceholder:h,readOnly:b,className:x=""}){const k=u().link,[w,N]=p(!1),C=c(null),F=d(),O=()=>{N(!1),C.current?.focus()};/* @__PURE__ */
10
- return v("div",{className:`flex min-w-0 flex-auto flex-col ${x}`.trim(),children:[
11
- /* @__PURE__ */f(n,{size:"md",type:"text",className:"rounded-b-none","aria-label":k.text(e),placeholder:h,value:a,readOnly:b,onChange:e=>l(e.target.value)}),
12
- /* @__PURE__ */v("button",{ref:C,type:"button","aria-label":k.linkOf(e,t),"aria-expanded":w,"aria-controls":w?F:void 0,disabled:b,onClick:()=>N(e=>!e),className:`flex w-full min-w-0 items-center gap-2 rounded-b-(--radius-control) border border-t-0 border-line-strong bg-surface-sunken ${r.md} text-left hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)] disabled:cursor-not-allowed disabled:opacity-60`,children:[
13
- /* @__PURE__ */f(o,{name:"link",strokeWidth:1.5,className:"h-4 w-4 shrink-0 "+(t?"text-blue-600":"text-ink-faintest")}),
14
- /* @__PURE__ */f("span",{className:"min-w-0 truncate "+(t?"text-blue-600":"text-ink-faintest"),children:t||k.addLink})]}),w&&/* @__PURE__ */f("div",{id:F,className:"mt-2",children:/* @__PURE__ */f(y,{value:t,label:k.linkOf(e,t),kinds:s,rules:m,filtersFor:g,onApply:(e,a)=>{void 0===a?i(e):i(e,a),O()},onRemove:t?()=>{i(""),O()}:void 0,onCancel:O})})]})}export{y as LinkPicker,w as TextLinkField};
@@ -1,8 +0,0 @@
1
- import{AccessibleTable as t}from"./chunk-5PP435FL.js";import{arcPath as e}from"./chunk-VFC6QUEN.js";import{useHighlight as o}from"./chunk-CNYAHYE6.js";import{ChartTooltip as n}from"./chunk-36VIGB6J.js";import{CHART_INK as r,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as l,useShellLocale as i}from"./chunk-GDQJBQ5B.js";import{formatPlain as s}from"./chunk-C3QOHMR6.js";import{useState as c}from"react";import{jsx as d,jsxs as m}from"react/jsx-runtime";function h(t,e,o,n){const r=(t,o)=>{const n=e[t]?.[o];return"number"==typeof n&&Number.isFinite(n)?n:0},a=t.map((e,o)=>t.reduce((t,e,n)=>t+r(o,n)+r(n,o),0)),l=Math.max(2,o),i=t.length>l,s=i?t.map((t,e)=>e).sort((t,e)=>a[e]-a[t]).slice(0,l-1).sort((t,e)=>t-e):t.map((t,e)=>e),c=new Map(s.map((t,e)=>[t,e])),d=i?s.length:-1,m=i?[...s.map(e=>t[e]),n]:[...t],h=m.map(()=>m.map(()=>0));let u=0;t.forEach((e,o)=>t.forEach((t,e)=>{const n=c.get(o)??d,a=c.get(e)??d;n!==d||a!==d?h[n][a]+=r(o,e):u+=r(o,e)}));const f=m.map((t,e)=>m.reduce((t,o,n)=>t+h[e][n]+h[n][e],0));return d>=0&&(f[d]+=u),{labels:m,matrix:h,totals:f,otherIndex:d,foldedCount:i?t.length-s.length:0}}function u({labels:u,matrix:f,size:p=340,maxNodes:x=8,padAngle:g=.04,arcWidth:b=12,formatValue:k,className:v,emptyLabel:M}){const $=l().charts,w=i(),N=k??(t=>s(t,w)),j=M??$.noFlows,[y,F]=c(null),{highlighted:E}=o(),C=h(u,f,x,$.other),{labels:I,matrix:Q,otherIndex:z,foldedCount:A}=C,B=(t,e)=>Q[t]?.[e]??0,L=t=>t===z?r.muted:a(t),P=C.totals,O=I.map((t,e)=>e).sort((t,e)=>P[e]-P[t]),V=O.reduce((t,e)=>t+P[e],0);if(V<=0)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${v??""}`,children:j});const G=p/2,H=p/2,J=p/2-44,R=J-b,T=g*O.length,U=/* @__PURE__ */new Map;let W=-Math.PI/2;O.forEach((t,e)=>{const o=P[t]/V*(2*Math.PI-T);U.set(t,{start:W,end:W+o,slot:e}),W+=o+g});const Y=/* @__PURE__ */new Map,D=[];for(const t of O)for(const e of O){const o=B(t,e);if(o<=0)continue;const n=U.get(t),r=o/Math.max(1,P[t])*(n.end-n.start),a=Y.get(t)??0;Y.set(t,a+r),D.push({from:t,to:e,value:o,a:n.start+a+r/2,b:U.get(e).start+(U.get(e).end-U.get(e).start)/2})}const S=(t,e)=>[G+e*Math.cos(t),H+e*Math.sin(t)],Z="arc"===y?.kind?y.index:void 0,q="ribbon"===y?.kind?D[y.index]:void 0;/* @__PURE__ */
2
- return m("div",{className:`relative ${v??""}`,children:[
3
- /* @__PURE__ */m("svg",{width:"100%",height:p,viewBox:`0 0 ${p} ${p}`,role:"img","aria-label":$.chord(O.length),onMouseLeave:()=>F(null),children:[D.map((t,e)=>{const[o,n]=S(t.a,R),[r,a]=S(t.b,R),l=L(t.from),i=((t,e)=>y?"ribbon"===y.kind?y.index===e:y.index===t.from||y.index===t.to:null!==E?I[t.from]===E||I[t.to]===E:null)(t,e);/* @__PURE__ */
4
- return d("path",{d:`M${o},${n} Q${G},${H} ${r},${a}`,fill:"none",stroke:l,strokeWidth:Math.max(1,t.value/V*p*.9),strokeOpacity:null===i||i?.34:.07,strokeLinecap:"round",onMouseEnter:()=>F({kind:"ribbon",index:e})},`${I[t.from]}→${I[t.to]}`)}),O.map(t=>{const o=U.get(t),n=(o.start+o.end)/2,[a,l]=S(n,J+16),i=(t=>y?"arc"===y.kind?y.index===t:D[y.index].from===t||D[y.index].to===t:null!==E?I[t]===E:null)(t);/* @__PURE__ */
5
- return m("g",{onMouseEnter:()=>F({kind:"arc",index:t}),children:[
6
- /* @__PURE__ */d("path",{d:e(G,H,R,J,o.start,o.end),fill:L(t),fillOpacity:null===i||i?1:.45}),
7
- /* @__PURE__ */d("text",{x:a,y:l+4,fontSize:11,fill:r.label,textAnchor:Math.cos(n)>.15?"start":Math.cos(n)<-.15?"end":"middle",children:I[t]})]},t)})]}),A>0&&/* @__PURE__ */d("p",{className:"mt-1 text-xs text-ink-faint",children:$.chordFolded(A)}),void 0!==Z&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:I[Z],rows:[{key:"total",label:$.totalFlow,color:L(Z),value:N(P[Z])}]})}),q&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:`${I[q.from]} → ${I[q.to]}`,rows:[{key:"value",label:$.flow,color:L(q.from),value:N(q.value)}]})}),
8
- /* @__PURE__ */d(t,{caption:$.chord(O.length),head:[$.tableFrom,$.tableTo,$.value],rows:D.map(t=>[I[t.from],I[t.to],N(t.value)])})]})}export{u as ChordChart,h as foldChord};