efficient-shell 12.11.0 → 12.13.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 (260) hide show
  1. package/dist/{Browser-6O7SDMZ5.js → Browser-OFC3QRX3.js} +16 -16
  2. package/dist/Calculator-RP4UPGG7.js +29 -0
  3. package/dist/{CurrencyConverter-KBY2OXQ2.js → CurrencyConverter-HZWRB62S.js} +11 -11
  4. package/dist/Files-HBJGKKO2.js +141 -0
  5. package/dist/{Notepad-GF5GBZGV.js → Notepad-77VJ4DK4.js} +9 -9
  6. package/dist/{PdfViewer-L4FJS3M6.js → PdfViewer-BFP2WCMQ.js} +1 -1
  7. package/dist/PomodoroTimer-ME3BMHKR.js +91 -0
  8. package/dist/{Preview-KVV6SE3C.js → Preview-DXEYBUYC.js} +35 -35
  9. package/dist/{Sidebar-QOGK5LJ2.js → Sidebar-FU7TD5FQ.js} +32 -32
  10. package/dist/{Stock-O7AQ2WUN.js → Stock-WK45DFIC.js} +2 -2
  11. package/dist/{Weather-WHXA5TTP.js → Weather-BVKZQI4R.js} +15 -15
  12. package/dist/{WorldClock-CZCIVYKB.js → WorldClock-L3BQXXQX.js} +6 -6
  13. package/dist/ai/index.d.ts +1 -1
  14. package/dist/ai/index.js +56 -56
  15. package/dist/apps/index.d.ts +60 -2
  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/brand.css +1 -1
  20. package/dist/charts/FlowChart.js +1 -1
  21. package/dist/charts/PieChart.js +1 -1
  22. package/dist/charts/RadarChart.js +1 -1
  23. package/dist/charts/RadialBarChart.js +1 -1
  24. package/dist/charts/SpecChart.js +1 -1
  25. package/dist/charts/TimeSeriesChart.js +1 -1
  26. package/dist/{chunk-VWNHSLFY.js → chunk-3FNBUOZK.js} +1 -1
  27. package/dist/{chunk-MPTOEXED.js → chunk-3ZQT26GZ.js} +1 -1
  28. package/dist/{chunk-67BWG353.js → chunk-44VAZ2EL.js} +9 -9
  29. package/dist/{chunk-OSQ5NRV3.js → chunk-45HQXTA6.js} +1 -1
  30. package/dist/{chunk-A2JYBUPB.js → chunk-4NLCXHWN.js} +6 -6
  31. package/dist/chunk-4WWK6FHD.js +1 -0
  32. package/dist/chunk-4XS4DO4T.js +2 -0
  33. package/dist/{chunk-2WNTDGOP.js → chunk-5EKNXSQG.js} +1 -1
  34. package/dist/{chunk-RLGPIJHB.js → chunk-5NCR64CE.js} +1 -1
  35. package/dist/chunk-5POLDDQW.js +14 -0
  36. package/dist/{chunk-LFWRHBTM.js → chunk-5T4WTFBC.js} +1 -1
  37. package/dist/{chunk-ZC6MXV4L.js → chunk-5ZQY42QX.js} +1 -1
  38. package/dist/{chunk-J4IT5C3A.js → chunk-654DGV5Q.js} +1 -1
  39. package/dist/{chunk-5YPCZLBW.js → chunk-6BNLDGST.js} +1 -1
  40. package/dist/{chunk-HD7OBASH.js → chunk-6TIJH2M6.js} +1 -1
  41. package/dist/{chunk-457SK2XV.js → chunk-6VB4TBU6.js} +5 -5
  42. package/dist/chunk-7ADTFFEM.js +5 -0
  43. package/dist/{chunk-QSK2OWT3.js → chunk-7ARBBWPQ.js} +2 -2
  44. package/dist/chunk-AADOAA5N.js +2 -0
  45. package/dist/{chunk-RAQBZUU2.js → chunk-AG6Y62TP.js} +61 -61
  46. package/dist/chunk-ASM2VLQ2.js +2 -0
  47. package/dist/{chunk-Y4YXZIES.js → chunk-AXFNOY2L.js} +9 -9
  48. package/dist/{chunk-J7BMSKOM.js → chunk-B7HTKDT3.js} +6 -6
  49. package/dist/{chunk-PHJFGLXB.js → chunk-BET6KEY2.js} +8 -8
  50. package/dist/{chunk-7Q4DE4CT.js → chunk-BFCIOWYI.js} +1 -1
  51. package/dist/{chunk-RGKSJBXJ.js → chunk-BGBSEPPH.js} +8 -8
  52. package/dist/{chunk-2X4U3VX2.js → chunk-BM5QI2L6.js} +5 -5
  53. package/dist/{chunk-HRDR56SK.js → chunk-CU3ZE25J.js} +1 -1
  54. package/dist/chunk-EAIHBASJ.js +28 -0
  55. package/dist/{chunk-2NZBQOA6.js → chunk-EAXPSAHZ.js} +9 -9
  56. package/dist/{chunk-22LU6FKN.js → chunk-EKDXJQIP.js} +10 -10
  57. package/dist/{chunk-KPHYWZXL.js → chunk-EO6MOQOZ.js} +9 -9
  58. package/dist/{chunk-C3E6XFIC.js → chunk-EQ2KTDOU.js} +3 -3
  59. package/dist/{chunk-5WCHUZ6O.js → chunk-FSZ3TNAR.js} +1 -1
  60. package/dist/chunk-FYNPQAFI.js +1 -0
  61. package/dist/{chunk-QIMMZVWV.js → chunk-GCVIUXKL.js} +1 -1
  62. package/dist/{chunk-KFS7WSCC.js → chunk-GFOJM52T.js} +5 -5
  63. package/dist/{chunk-LS6VU6F7.js → chunk-GOKJZKLV.js} +1 -1
  64. package/dist/{chunk-BUZ5AJLR.js → chunk-HLZJLFVR.js} +5 -5
  65. package/dist/chunk-HYQBYMJX.js +3 -0
  66. package/dist/chunk-I2DIQQOR.js +2 -0
  67. package/dist/{chunk-F7BXUVN4.js → chunk-I5UM6UZF.js} +5 -5
  68. package/dist/{chunk-Z334LCCX.js → chunk-ICZUWLVU.js} +1 -1
  69. package/dist/chunk-ITGFHWYG.js +13 -0
  70. package/dist/chunk-J2YURAQY.js +13 -0
  71. package/dist/chunk-J7CHHY7O.js +6 -0
  72. package/dist/{chunk-MTP3MBZA.js → chunk-JB3JD2XK.js} +13 -13
  73. package/dist/{chunk-T3NLFOLW.js → chunk-JOAKKXTL.js} +14 -6
  74. package/dist/{chunk-TVVSFXWY.js → chunk-JZKACEXW.js} +8 -8
  75. package/dist/chunk-KCAUYEYR.js +7 -0
  76. package/dist/{chunk-RHD4V6CE.js → chunk-LMUB2EAD.js} +9 -9
  77. package/dist/chunk-LRKFMR4K.js +3 -0
  78. package/dist/{chunk-UMZJRZFN.js → chunk-LTN4AQYG.js} +1 -1
  79. package/dist/{chunk-6ITEA6SX.js → chunk-LTUVKDTO.js} +1 -1
  80. package/dist/chunk-LZKPV3XR.js +3 -0
  81. package/dist/chunk-M2VCZAMQ.js +4 -0
  82. package/dist/{chunk-OW5LQWPU.js → chunk-MFZPTS7W.js} +2 -2
  83. package/dist/chunk-MLPXTFDS.js +1 -0
  84. package/dist/{chunk-6BK3KRT5.js → chunk-MXITMJCT.js} +16 -16
  85. package/dist/{chunk-PICRPJBL.js → chunk-NBUL37WB.js} +1 -1
  86. package/dist/{chunk-W5B7UNMJ.js → chunk-NGQZI7HP.js} +1 -1
  87. package/dist/{chunk-NAWIVFAN.js → chunk-NHIP2S4E.js} +8 -8
  88. package/dist/{chunk-RIF6BFEH.js → chunk-NOEAEXIZ.js} +1 -1
  89. package/dist/chunk-NORR52Z3.js +4 -0
  90. package/dist/chunk-OP4VQWSH.js +2 -0
  91. package/dist/{chunk-FOCQEWUH.js → chunk-P3GBQBDC.js} +1 -1
  92. package/dist/{chunk-5S4YF5XA.js → chunk-P44RCA6Z.js} +2 -2
  93. package/dist/chunk-P6FGTDDX.js +2 -0
  94. package/dist/{chunk-TDMZFQRB.js → chunk-PDCCNHTP.js} +1 -1
  95. package/dist/{chunk-POOPWYJL.js → chunk-Q64F2EXW.js} +6 -6
  96. package/dist/{chunk-UD4NESX7.js → chunk-QCOXJXGZ.js} +1 -1
  97. package/dist/{chunk-ICNGLA5O.js → chunk-QGFAQVUO.js} +4 -4
  98. package/dist/{chunk-63J2MBXV.js → chunk-QQ5XCRZM.js} +10 -10
  99. package/dist/{chunk-DVYIZP7X.js → chunk-QULE4LAC.js} +14 -14
  100. package/dist/{chunk-Q3RJMQYE.js → chunk-RAOM3WIQ.js} +1 -1
  101. package/dist/{chunk-M4MN2GOE.js → chunk-RKYWKMUK.js} +1 -1
  102. package/dist/{chunk-3RDJFCIZ.js → chunk-SEMV4NCH.js} +1 -1
  103. package/dist/{chunk-5Z6XJPAX.js → chunk-SWB32OKH.js} +1 -1
  104. package/dist/{chunk-5QVCBAK2.js → chunk-SXHNZFUY.js} +1 -1
  105. package/dist/chunk-SXUSAHDF.js +2 -0
  106. package/dist/chunk-TCMAWDBL.js +19 -0
  107. package/dist/{chunk-NDAZPAQL.js → chunk-TJCJLKJB.js} +1 -1
  108. package/dist/chunk-U35TIWEP.js +23 -0
  109. package/dist/{chunk-NOC4WIME.js → chunk-UYTFNR4W.js} +2 -2
  110. package/dist/{chunk-QBSIM4JB.js → chunk-VCNTSE3H.js} +1 -1
  111. package/dist/{chunk-LFW3CQMF.js → chunk-W4NVTD5Q.js} +4 -4
  112. package/dist/{chunk-JOD5ISTB.js → chunk-W7DYKTHE.js} +1 -1
  113. package/dist/{chunk-CINGDJPM.js → chunk-WMIU2VR5.js} +2 -2
  114. package/dist/{chunk-BJAJOIVY.js → chunk-WQV7VQ5Z.js} +1 -1
  115. package/dist/{chunk-VN3A43SA.js → chunk-XDJQWP5K.js} +1 -1
  116. package/dist/{chunk-NOCOLZ2W.js → chunk-XJW65EIG.js} +1 -1
  117. package/dist/{chunk-5G4CB3E6.js → chunk-Y23BITKG.js} +1 -1
  118. package/dist/{chunk-C7M7KYNY.js → chunk-YFDS6KF3.js} +1 -1
  119. package/dist/{chunk-WDAOTHX5.js → chunk-YMJOFWW6.js} +3 -3
  120. package/dist/{chunk-KZ7RR7EU.js → chunk-YPZXE67U.js} +1 -1
  121. package/dist/chunk-YYW4VNWL.js +1 -0
  122. package/dist/{chunk-CRRC72EE.js → chunk-ZICGXJUB.js} +7 -7
  123. package/dist/{chunk-IIMFLLYT.js → chunk-ZLFZJX6M.js} +9 -9
  124. package/dist/{chunk-OAFFHLJ4.js → chunk-ZV6WLVD3.js} +6 -6
  125. package/dist/data/EntityList.js +1 -1
  126. package/dist/data/ListLoadError.js +1 -1
  127. package/dist/data/ResizableTable.js +1 -1
  128. package/dist/forms/BorderInput.js +1 -1
  129. package/dist/forms/BrandAssetEditor.js +1 -1
  130. package/dist/forms/Calendar.js +1 -1
  131. package/dist/forms/ColorPicker.js +1 -1
  132. package/dist/forms/ComposerAttachments.js +1 -1
  133. package/dist/forms/CornersInput.js +1 -1
  134. package/dist/forms/DatePicker.js +1 -1
  135. package/dist/forms/DateRangePicker.js +1 -1
  136. package/dist/forms/DisplayChips.js +1 -1
  137. package/dist/forms/FilePicker.js +1 -1
  138. package/dist/forms/IconPicker.js +1 -1
  139. package/dist/forms/Input.js +1 -1
  140. package/dist/forms/InputNumber.d.ts +13 -1
  141. package/dist/forms/InputNumber.js +1 -1
  142. package/dist/forms/LinkPicker.js +1 -1
  143. package/dist/forms/MediaLibrary.js +1 -1
  144. package/dist/forms/MediaUploadField.js +1 -1
  145. package/dist/forms/MediaUploadGrid.js +1 -1
  146. package/dist/forms/MediaUsedInList.js +1 -1
  147. package/dist/forms/PositionInput.js +1 -1
  148. package/dist/forms/RenameField.js +1 -1
  149. package/dist/forms/Select.d.ts +1 -1
  150. package/dist/forms/Select.js +1 -1
  151. package/dist/forms/SidesInput.js +1 -1
  152. package/dist/forms/Slider.js +1 -1
  153. package/dist/forms/Snippet.js +1 -1
  154. package/dist/forms/SplitButton.js +1 -1
  155. package/dist/forms/TagInput.js +1 -1
  156. package/dist/forms/TextToolbar.d.ts +1 -1
  157. package/dist/forms/TextToolbar.js +1 -1
  158. package/dist/forms/UnitMenu.js +1 -1
  159. package/dist/forms/WidthsBar.js +1 -1
  160. package/dist/forms/mediaLibraryMenu.js +1 -1
  161. package/dist/forms/textAlign.d.ts +1 -1
  162. package/dist/forms/textAlign.js +1 -1
  163. package/dist/icons/efficient-glyphs.d.ts +1 -0
  164. package/dist/icons/efficient-glyphs.js +1 -1
  165. package/dist/icons/efficient-looks.d.ts +2 -0
  166. package/dist/icons/efficient-looks.js +1 -1
  167. package/dist/icons/efficient-meanings.d.ts +2 -1
  168. package/dist/icons/efficient-meanings.js +1 -1
  169. package/dist/icons/efficient.d.ts +1 -0
  170. package/dist/icons/efficient.js +1 -1
  171. package/dist/icons/glyphs/AccordionIcon.d.ts +8 -0
  172. package/dist/icons/glyphs/AccordionIcon.js +1 -0
  173. package/dist/icons/glyphs/TabsIcon.js +1 -1
  174. package/dist/icons/index.d.ts +2 -2
  175. package/dist/icons/index.js +1 -1
  176. package/dist/icons/looks/AccordionMiniIcon.d.ts +8 -0
  177. package/dist/icons/looks/AccordionMiniIcon.js +1 -0
  178. package/dist/icons/looks/AccordionSolidIcon.d.ts +8 -0
  179. package/dist/icons/looks/AccordionSolidIcon.js +1 -0
  180. package/dist/icons/looks/TabsMiniIcon.js +1 -1
  181. package/dist/icons/looks/TabsSolidIcon.js +1 -1
  182. package/dist/icons/looks/map.js +1 -1
  183. package/dist/icons/payment.js +1 -1
  184. package/dist/icons/sets.js +1 -1
  185. package/dist/index.d.ts +1 -1
  186. package/dist/index.js +192 -192
  187. package/dist/map/index.js +3 -3
  188. package/dist/markdown/index.js +1 -1
  189. package/dist/names-Cj_F68_V.d.ts +23 -0
  190. package/dist/page-tabs/index.js +5 -5
  191. package/dist/pdf/index.js +1 -1
  192. package/dist/shell/AppUpdateBanner.js +1 -1
  193. package/dist/shell/Banner.js +1 -1
  194. package/dist/shell/Breadcrumbs.js +1 -1
  195. package/dist/shell/ColoredBadge.js +1 -1
  196. package/dist/shell/ConfirmDialog.js +1 -1
  197. package/dist/shell/ContextMenu.js +1 -1
  198. package/dist/shell/Dialog.js +1 -1
  199. package/dist/shell/Drawer.js +1 -1
  200. package/dist/shell/DropdownMenu.js +1 -1
  201. package/dist/shell/EmptyState.js +1 -1
  202. package/dist/shell/HelpCenter.js +1 -1
  203. package/dist/shell/ImageLightbox.js +1 -1
  204. package/dist/shell/LanguageSelect.js +1 -1
  205. package/dist/shell/Markdown.d.ts +1 -1
  206. package/dist/shell/Markdown.js +1 -1
  207. package/dist/shell/PageHeader.js +1 -1
  208. package/dist/shell/PopupMenu.js +1 -1
  209. package/dist/shell/ProductionTimeline.js +1 -1
  210. package/dist/shell/Result.js +1 -1
  211. package/dist/shell/SearchableSelect.js +1 -1
  212. package/dist/shell/SettingReset.js +1 -1
  213. package/dist/shell/SidebarLayout.js +1 -1
  214. package/dist/shell/SidebarNav.js +1 -1
  215. package/dist/shell/SortableList.js +1 -1
  216. package/dist/shell/StepChain.js +1 -1
  217. package/dist/shell/Stepper.js +1 -1
  218. package/dist/shell/TopNav.js +1 -1
  219. package/dist/shell/Tree.js +1 -1
  220. package/dist/shell/discardGuard.js +1 -1
  221. package/dist/telemetry/index.js +1 -1
  222. package/dist/templates/AuthScreen.js +1 -1
  223. package/dist/templates/ChatTemplate.js +1 -1
  224. package/dist/templates/CheckoutTemplate.js +1 -1
  225. package/dist/templates/DashboardTemplate.js +1 -1
  226. package/dist/templates/DataTablePage.js +1 -1
  227. package/dist/templates/EmailTemplate.js +1 -1
  228. package/dist/templates/FormLayoutPage.js +1 -1
  229. package/dist/ui/index.d.ts +1 -1
  230. package/dist/ui/index.js +1 -1
  231. package/dist/version.js +1 -1
  232. package/package.json +1 -1
  233. package/dist/Calculator-ALPNISJT.js +0 -29
  234. package/dist/Files-3NTP7YKY.js +0 -126
  235. package/dist/PomodoroTimer-NGQPYDI3.js +0 -91
  236. package/dist/chunk-3C5NKOVF.js +0 -1
  237. package/dist/chunk-4GTXRVDF.js +0 -3
  238. package/dist/chunk-5RT5XDHG.js +0 -6
  239. package/dist/chunk-5UZYIM2W.js +0 -2
  240. package/dist/chunk-6BQUSUNK.js +0 -14
  241. package/dist/chunk-7XGUX3TH.js +0 -3
  242. package/dist/chunk-AMSE4PMQ.js +0 -4
  243. package/dist/chunk-B6RQI2PT.js +0 -2
  244. package/dist/chunk-BR7L5NE3.js +0 -13
  245. package/dist/chunk-EHVBJUQI.js +0 -28
  246. package/dist/chunk-HV4VQ5XV.js +0 -13
  247. package/dist/chunk-INFL4YZF.js +0 -2
  248. package/dist/chunk-KRUI4LVW.js +0 -4
  249. package/dist/chunk-KVU5IQOZ.js +0 -7
  250. package/dist/chunk-OSNHRKX6.js +0 -5
  251. package/dist/chunk-PEIRPNXT.js +0 -23
  252. package/dist/chunk-PY7GHIYF.js +0 -19
  253. package/dist/chunk-PYBPJL5R.js +0 -1
  254. package/dist/chunk-RQ4KY6UZ.js +0 -2
  255. package/dist/chunk-T23TIJ4P.js +0 -1
  256. package/dist/chunk-TKFINWY6.js +0 -3
  257. package/dist/chunk-YMD2F3NL.js +0 -1
  258. package/dist/names-bEzx4RQ8.d.ts +0 -23
  259. /package/dist/{chunk-MBXCXFQO.js → chunk-27ZJQUDS.js} +0 -0
  260. /package/dist/{chunk-BDUWYLPI.js → chunk-NQJXHV4K.js} +0 -0
@@ -0,0 +1,13 @@
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-RAOM3WIQ.js";import{END_ACTIONS_PAD as a,InputEndActionSlot as s,InputEndActionButton as c}from"./chunk-CU3ZE25J.js";import{INPUT_BASE_ON as u,INPUT_BASE as d}from"./chunk-AYZY3YNC.js";import{Button_default as h}from"./chunk-EVYD6UFQ.js";import{Icon as p}from"./chunk-JOAKKXTL.js";import{LoadingSpinner as m}from"./chunk-R2VKEMZH.js";import{Tooltip as f}from"./chunk-SOZCWT6I.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{registerModalEscapeInterceptor as x}from"./chunk-TWVUQUUD.js";import{GLASS_DIVIDER as k,glassStyle as j}from"./chunk-5FYDNH4Y.js";import{useShellStrings as $}from"./chunk-TJSJVC6P.js";import{useState as N,useId as D,useRef as C,useMemo as S,useEffect as W}from"react";import{createPortal as E}from"react-dom";import{jsxs as M,jsx as R}from"react/jsx-runtime";function T(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 F=["right-2","right-8","right-16"],A=[8,32,64];function L(L){const{options:O,placeholder:z,emptyOptionLabel:J,className:U="",disabled:I,id:Y,filter:H=!1,allowFreeText:B=!1,freeTextOption:K,onSearchChange:V,loading:Z=!1,error:Q,onRetry:G,rightAdornment:P,endAction:X,renderOption:q,clearable:_=!0,"aria-label":ee,"aria-labelledby":te,"aria-describedby":ne}=L,re=!0===L.multiple,le=L.multiple?L.value:L.value?[L.value]:[],oe=L.multiple?"":L.value,ie=e=>{L.multiple?L.onChange(e):L.onChange(e[0]??"")},ae=le.length>0,se=H&&ae&&!I,ce=re||H,ue=null!=K,de=B||ue,[he,pe]=N(!1),[me,fe]=N(-1),be=D(),ge=Y??`${be}-input`,ve=`${be}-listbox`,we=e=>`${be}-opt-${e}`,[ye,xe]=N(""),ke=$(),je=J??ke.select.none,$e=e=>{xe(e),fe(-1),V?.(e)},Ne=C(null),De=C(null),Ce=C(null),Se=C(null),We=C(he);We.current=he;const Ee=C(!1),Me=e=>{We.current&&(We.current=!1,e&&B&&!ue&&et&&(re?le.includes(et)||ie([...le,et]):et!==oe&&ie([et])),pe(!1),$e(""))},Re=(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?$e(""):fe(t));ie([e.value]),Me(!1)}},[Te,Fe]=N(null);y(()=>{if(!P||he)return void Fe(null);const e=Se.current?.offsetWidth??0;Fe(e?e+A[Ie]+6:null)});const Ae=v(De,he,ce?{popupRef:Ce}:{matchTriggerWidth:!0}),Le=S(()=>t(O),[O]),Oe=le.join("\0"),ze=S(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of Le)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},[Le,Oe,de]),Je=ze.join(", "),Ue=_&&ae&&!I,Ie=(Ue?1:0)+(X?1:0),[Ye,He]=N(null),Be=C(null),Ke=C(""),Ve=C(()=>{});Ve.current=()=>{const e=De.current,t=Be.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}|${ze.join("\0")}`;if(o===Ke.current)return;Ke.current=o;let i=null;r>0&&ze.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=T(ze,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),He(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 Ze=ze.length,Qe=!re||!Ye||Ye.shown>=Ze?Je:0===Ye.shown?ke.select.selectedCount(Ze):`${ze.slice(0,Ye.shown).join(", ")} +${Ze-Ye.shown}`,Ge=re&&null!==Ye&&(Ye.shown<Ze||Ye.cut),Pe=he&&ae&&ce;W(()=>{if(!he)return;const e=e=>{const t=e.target;Ne.current?.contains(t)||Ce.current?.contains(t)||Me(!0)};document.addEventListener("mousedown",e);const t=b(()=>Me(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[he,B,ye,Oe,L.onChange]),W(()=>{if(he)return x(e=>!("Escape"!==e.key||!We.current)&&(Me(!1),De.current?.blur(),!0),()=>Ce.current)},[he]);const Xe=S(()=>{const e=/* @__PURE__ */new Set;return n(O,t=>!e.has(t.value)&&(e.add(t.value),!0))},[O]),qe=S(()=>{if(V)return Xe;const e=ye.trim().toLowerCase();return e?n(Xe,t=>r(t,e)):Xe},[Xe,ye,V]),_e=S(()=>t(qe),[qe]),et=ye.trim(),tt=S(()=>ue&&et?Le.some(e=>e.label===et)||le.includes(et)?null:{value:et,label:et}:null,[ue,et,Le,Oe]),nt=S(()=>tt?[..._e,tt]:_e,[_e,tt]);/* @__PURE__ */
2
+ return M("div",{ref:Ne,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&(Ne.current?.contains(t)||Ce.current?.contains(t))||Ee.current||document.activeElement!==De.current&&Me(!0)},children:[(rt=/* @__PURE__ */R("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:Qe,onChange:e=>{$e(e.target.value),pe(!0)},onFocus:()=>{I||($e(""),pe(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(I)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?Re(nt[me],me):1!==_e.length||_e[0].disabled?B&&!ue&&et&&(re?(le.includes(et)||ie([...le,et]),$e("")):(ie([et]),Me(!1),De.current?.blur())):Re(_e[0],0)):"Escape"===t.key?(Me(!1),De.current?.blur()):"Tab"===t.key&&Me(!0)},placeholder:Pe?Qe:z||je,className:`${se?u:d} ${U} ${a[Ie]}${I?"bg-surface-sunken text-ink-faintest cursor-not-allowed":""} truncate${Pe?" rosh-field-shows-choice":""}`,style:Te?{paddingRight:Te}:void 0,disabled:I}),re?/* @__PURE__ */R(f,{content:!he&&Ge?Je:null,className:"block",children:rt}):rt),re&&
3
+ /* @__PURE__ */R("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:/* @__PURE__ */R("span",{ref:Be,className:"whitespace-pre"})}),Ie>0&&
4
+ /* @__PURE__ */M(s,{children:[Ue&&
5
+ /* @__PURE__ */R("span",{onMouseDown:e=>e.preventDefault(),className:"flex opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100",children:/* @__PURE__ */R(c,{action:{label:ke.select.clear,icon:/* @__PURE__ */R(p,{name:"close"}),onClick:()=>{ie([]),Me(!1)}}})}),X&&/* @__PURE__ */R("span",{onMouseDown:e=>e.preventDefault(),className:"flex",children:/* @__PURE__ */R(c,{action:X})})]}),P&&!he&&/* @__PURE__ */R("div",{ref:Se,className:`absolute top-1/2 -translate-y-1/2 ${F[Ie]} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:P}),he&&E(
6
+ /* @__PURE__ */M("div",{ref:Ce,onMouseDownCapture:()=>{Ee.current=!0,setTimeout(()=>{Ee.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:g.popup,left:Ae?.left,right:Ae?.right,top:Ae?.top,bottom:Ae?.bottom,minWidth:Ae?.minWidth,width:Ae?.width,...ce&&{maxWidth:Ae?.maxWidth},visibility:Ae?void 0:"hidden",...j()},children:[re&&ae&&_&&!I&&
7
+ /* @__PURE__ */R("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 ${k}`,children:ke.select.clearAll}),Z?
8
+ /* @__PURE__ */R(m,{size:"sm",padding:"py-2",label:ke.search.searching}):Q?/* @__PURE__ */M("div",{role:"alert",className:"flex items-center gap-2 px-3 py-2 text-sm text-red-600",children:[
9
+ /* @__PURE__ */R("span",{className:"min-w-0 flex-1",children:Q}),G&&/* @__PURE__ */R(h,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:G,className:"shrink-0",children:ke.list.retry})]}):null,
10
+ /* @__PURE__ */M("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:Ae?.maxHeight??w},children:[0===nt.length?Z||Q?null:/* @__PURE__ */R("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 M("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(),Re(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__ */R(o,{selected:n}),
12
+ /* @__PURE__ */R("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__ */R(i,{grows:ce,children:e.sublabel})]},e.value)},be),tt&&K&&
13
+ /* @__PURE__ */R("button",{id:we(_e.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{re&&e.preventDefault(),Re(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 ${k}`:""} ${me===_e.length?"bg-gray-100":""}`,children:/* @__PURE__ */R("span",{className:"min-w-0 flex-1 truncate",children:K(tt.value)})},`${be}-typed`)]})]}),document.body)]});var rt}export{L as SearchableSelect,T as fitChoice};
@@ -0,0 +1,13 @@
1
+ import{navIcons as e}from"./chunk-4LXCCZDM.js";import{Icon as t}from"./chunk-JOAKKXTL.js";import{isValidElement as n,cloneElement as r}from"react";import{jsx as o,jsxs as i}from"react/jsx-runtime";var a="react-os-shell:spreadsheet-preview-update",s=null,l=0;function d(e){const t=++l,n={token:t,data:e};return s=n,{update(e){s===n&&(n.data=e),"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(a,{detail:{token:t,data:e}}))}}}function c(){return s}function p(e){s===e&&(s=null)}var u={document:".docx",spreadsheet:".sheet",deck:".slides"},f=class extends Error{limit;used;attempted;constructor(e,t,n){super("Not enough space"),this.name="FilesQuotaError",this.limit=e,this.used=t,this.attempted=n}};function h(e,t){return e&&"/"!==e?e.replace(/\/$/,"")+"/"+t:"/"+t}async function m(e,t){const n=await e.json().catch(()=>({}));return new Error(n.error||`${t} failed (${e.status})`)}function w(e){const t=()=>(e??(("undefined"!=typeof window?window.__REACT_OS_SHELL_FILE_SERVER__:void 0)||"http://localhost:4000").replace(/\/$/,"")).replace(/\/$/,""),n=(e,n={})=>fetch(`${t()}${e}`,{...n,credentials:"include"}),r=e=>({method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return{async quota(){const e=await n("/api/quota");if(!e.ok)throw await m(e,"Quota");const t=await e.json();return{used:t.used,limit:t.limit}},async list(e){const t=e??"/",r=await n(`/api/files?path=${encodeURIComponent(t)}`);if(!r.ok)throw await m(r,"Listing");const o=await r.json(),i=o.path||t,a=i.split("/").filter(Boolean);return{folder:{id:"/"===i?null:i,name:a[a.length-1]??"",role:"owner",path:[{id:null,name:""},...a.map((e,t)=>({id:"/"+a.slice(0,t+1).join("/"),name:e}))]},entries:(o.entries||[]).map(e=>({id:h(i,e.name),name:e.name,kind:e.kind,size:e.size,modifiedAt:e.modifiedAt}))}},async upload(e,t){const r=new FormData;r.append("file",t);const o=await n(`/api/upload?path=${encodeURIComponent(e??"/")}`,{method:"POST",body:r});if(413===o.status){const e=await o.json().catch(()=>({}));throw new f(e.limit||0,e.used||0,e.attempted||t.size)}if(!o.ok)throw await m(o,"Upload")},async createFolder(e,t){const o=await n("/api/folder",r({path:h(e,t)}));if(!o.ok)throw await m(o,"Create folder")},async rename(e,t){const o=e.replace(/\/[^/]*$/,"")||"/",i=await n("/api/rename",r({from:e,to:h(o,t)}));if(!i.ok)throw await m(i,"Rename")},async remove(e){const t=await n(`/api/files?path=${encodeURIComponent(e)}`,{method:"DELETE"});if(!t.ok)throw await m(t,"Delete")},async read(e){const t=await n(`/api/file?path=${encodeURIComponent(e)}`);if(!t.ok)throw await m(t,"Download");return t.blob()},async trash(){const e=await n("/api/trash");if(!e.ok)throw await m(e,"Listing trash");return(await e.json()).entries||[]},async restore(e){const t=await n("/api/trash/restore",r({id:e}));if(!t.ok)throw await m(t,"Restore")},async purge(e){const t=await n(`/api/trash/${encodeURIComponent(e)}`,{method:"DELETE"});if(!t.ok)throw await m(t,"Delete")},async emptyTrash(){const e=await n("/api/trash",{method:"DELETE"});if(!e.ok)throw await m(e,"Empty trash")}}}var y=null;function g(e){y=e}function x(){return y??w()}function b(){return null!==y}var v=["from-blue-500 to-blue-700","from-indigo-500 to-purple-600","from-purple-500 to-pink-600","from-pink-500 to-rose-600","from-red-500 to-rose-600","from-orange-500 to-red-600","from-amber-500 to-orange-600","from-yellow-500 to-amber-500","from-lime-500 to-green-600","from-green-500 to-emerald-600","from-emerald-500 to-teal-600","from-teal-500 to-cyan-600","from-cyan-500 to-sky-600","from-sky-500 to-blue-600","from-violet-500 to-fuchsia-600"];function _(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n);return v[Math.abs(t)%v.length]}var k={order:"text-blue-600",purchase_order:"text-purple-600",invoice:"text-green-600",client:"text-indigo-600",manufacturer:"text-orange-600",shipment:"text-teal-600",part_number:"text-gray-600",project:"text-pink-600",mould:"text-red-600",design:"text-cyan-600",brand:"text-amber-600",price_sheet:"text-emerald-600",folder:"text-yellow-600",page:"text-blue-500"},E={order:"SO",purchase_order:"PO",invoice:"INV",client:"CLI",manufacturer:"MFR",shipment:"DN",part_number:"PN",project:"PRJ",mould:"MLD",design:"DSN",brand:"BRD",price_sheet:"PS",vendor_invoice:"VI",vendor_payment:"VP",warranty_claim:"WC",qc_report:"QC",vendor_shipment:"GRN",bank_account:"BA",wheel_finish:"WF",weight_log:"WL",production_progress:"PP",vendor_price_sheet:"VPS",proposal:"PR",folder:"FLD"},C={pdf:"PDF",dxf:"DXF","3d":"STP",image:"IMG",csv:"CSV"},N={pdf:"text-red-600",dxf:"text-blue-600","3d":"text-purple-600",image:"text-emerald-600",csv:"text-green-600"};function T({className:e}){/* @__PURE__ */
2
+ return o(t,{name:"folder",look:"solid",className:e})}function j(t,n){return n&&e[n]||(t?e[t]:void 0)}var L=/* @__PURE__ */o("svg",{className:"h-7 w-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */o("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6z"})});function I({entityType:e,isSelected:t,entityId:a,label:s,fileKind:l}){const d="preview-file"===e&&l,c=d?N[l]:null,p=d?C[l]:null;if("folder"===e)/* @__PURE__ */
3
+ return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o(T,{className:"h-12 w-12 text-amber-500 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]"})});if("page"===e){const e=j(a,s),i=_(a||s||"page");/* @__PURE__ */
4
+ return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o("span",{className:`h-11 w-11 rounded-xl bg-gradient-to-br ${i} flex items-center justify-center text-white border border-white/30 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]`,children:e&&n(e)?r(e,{className:"h-7 w-7 text-white"}):L})})}/* @__PURE__ */
5
+ return i("div",{className:"w-12 h-12 relative flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:[
6
+ /* @__PURE__ */i("svg",{className:`w-10 h-12 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)] ${c??k[e]??"text-gray-500"}`,viewBox:"0 0 40 48",fill:"none",children:[
7
+ /* @__PURE__ */o("path",{d:"M4 0h22l10 10v34a4 4 0 01-4 4H4a4 4 0 01-4-4V4a4 4 0 014-4z",fill:"white",fillOpacity:"0.92"}),
8
+ /* @__PURE__ */o("path",{d:"M26 0l10 10H30a4 4 0 01-4-4V0z",fill:"currentColor",fillOpacity:"0.2"}),
9
+ /* @__PURE__ */o("path",{d:"M4 0h22l10 10v34a4 4 0 01-4 4H4a4 4 0 01-4-4V4a4 4 0 014-4z",stroke:"currentColor",strokeWidth:"1.5",strokeOpacity:"0.5"})]}),
10
+ /* @__PURE__ */o("span",{className:`absolute inset-0 flex items-center justify-center text-3xs font-bold pt-2 ${c??k[e]??"text-gray-600"}`,children:p??E[e]??e.slice(0,3).toUpperCase()})]})}function $({item:e}){if("folder"===e.entityType)/* @__PURE__ */
11
+ return o(T,{className:"h-4 w-4 shrink-0 text-amber-500"});if("page"===e.entityType){const t=j(e.entityId,e.label);/* @__PURE__ */
12
+ return o("span",{className:`h-4 w-4 rounded bg-gradient-to-br ${_(e.entityId||e.label||"page")} flex items-center justify-center text-white shrink-0`,children:t&&n(t)?r(t,{className:"h-3 w-3 text-white"}):/* @__PURE__ */o("span",{className:"h-1.5 w-1.5 rounded-[2px] border border-white/80"})})}const i=("preview-file"===e.entityType&&e.fileKind?N[e.fileKind]:k[e.entityType])??"text-gray-400";/* @__PURE__ */
13
+ return o(t,{name:"page",className:`h-4 w-4 shrink-0 ${i}`,strokeWidth:1.5})}function S(e){return"preview-file"===e.entityType&&e.fileKind?C[e.fileKind]:"page"===e.entityType?"App":"folder"===e.entityType?"Folder":E[e.entityType]??e.entityType.slice(0,3).toUpperCase()}var R=null,D=/* @__PURE__ */new Set;function P(e){R=e,D.forEach(e=>e())}function F(e){return D.add(e),()=>{D.delete(e)}}function O(){return R}var V="__REACT_OS_SHELL_FILES_VIEW__",A="react-os-shell:files-show-trash",M="react-os-shell:files-open-desktop-folder";function U(){"undefined"!=typeof window&&(window[V]="trash",window.dispatchEvent(new CustomEvent(A)))}function z(e){"undefined"!=typeof window&&(window[V]={view:"desktop-folder",folderId:e},window.dispatchEvent(new CustomEvent(M,{detail:{folderId:e}})))}function K(){if("undefined"==typeof window)return null;const e=window[V];return"trash"===e?"trash":e&&"object"==typeof e&&"desktop-folder"===e.view&&"string"==typeof e.folderId?e:null}function W(){const e=K();return"undefined"!=typeof window&&(window[V]=null),e}export{$ as DesktopItemMiniIcon,u as FILES_OFFICE_EXTENSIONS,M as FILES_OPEN_DESKTOP_FOLDER_EVENT,A as FILES_SHOW_TRASH_EVENT,I as FileIconTile,f as FilesQuotaError,T as FolderGlyph,a as SPREADSHEET_PREVIEW_UPDATE_EVENT,p as claimSpreadsheetPreviewStage,W as consumeFilesViewRequest,w as createFileServerStore,S as desktopItemTypeLabel,O as getDesktopFoldersSnapshot,x as getFilesStore,b as hasHostFilesStore,K as peekFilesViewRequest,c as peekSpreadsheetPreviewStage,P as publishDesktopFolders,z as requestFilesDesktopFolderView,U as requestFilesTrashView,g as setFilesStore,d as setSpreadsheetPreview,F as subscribeDesktopFolders};
@@ -0,0 +1,6 @@
1
+ import{TEXT_ALIGNS as e,textAlignWords as l,textAlignIcon as r}from"./chunk-654DGV5Q.js";import{IconButton_default as a}from"./chunk-SV5RRBVA.js";import{Icon as o}from"./chunk-JOAKKXTL.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as s}from"./chunk-TJSJVC6P.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":A,windows:S,className:j="",layout:R="grid"}){const T=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 B=m(n,k,x,q.cells.paragraph),I=(e,l="")=>`rosh-tb-btn${e?" is-on":""}${l?` ${l}`:""}`,K=(e,l,r,o)=>n.has(e)?g(l,/* @__PURE__ */i(a,"link"===e?{pressed:v,className:I(v),"aria-label":l,"aria-haspopup":"dialog","aria-expanded":v,"aria-keyshortcuts":o,disabled:y,onMouseDown:c,onClick:()=>f(e),children:r}:{className:I(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,L=l(T),$=e.map(e=>[e,L[e],r(e)]),V=C?e.filter(e=>C.allow.includes(e)):[],J=C&&V.includes(C.value)?C.value:V[0],O=[["none",T.caseNone,/* @__PURE__ */i(o,{name:"case-normal"})],["upper",T.caseUpper,/* @__PURE__ */i(o,{name:"case-upper"})],["lower",T.caseLower,/* @__PURE__ */i(o,{name:"case-lower"})]],U=x&&B?g(T.clear,/* @__PURE__ */i(a,{className:I(!1),"aria-label":T.clear,disabled:y,onMouseDown:c,onClick:x.onClear,children:/* @__PURE__ */i(o,{name:"revert"})},"clear")):null,E=/* @__PURE__ */t(d,{children:[K("bold",T.bold,/* @__PURE__ */i(o,{name:"bold"}),"Meta+B"),K("italic",T.italic,/* @__PURE__ */i(o,{name:"italic"}),"Meta+I"),K("underline",T.underline,/* @__PURE__ */i(o,{name:"underline"}),"Meta+U"),K("strike",T.strike,/* @__PURE__ */i(o,{name:"strike"})),k?g(T.color,/* @__PURE__ */i(a,{pressed:k.open,className:I(k.open,"rosh-tb-color"),"aria-label":T.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,K("link",T.link,/* @__PURE__ */i(o,{name:"link"}),"Meta+K"),K("sup",T.sup,/* @__PURE__ */i(o,{name:"superscript"})),K("sub",T.sub,/* @__PURE__ */i(o,{name:"subscript"})),K("code",T.code,/* @__PURE__ */i(o,{name:"code"})),u(N)?N:null,"words"===B?U:null]}),G=/* @__PURE__ */t(d,{children:[C&&V.length>0?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":T.alignment,onKeyDown:e=>p(e,V,e=>C.onChange(e)),children:$.map(([e,l,r])=>C.allow.includes(e)?g(l,/* @__PURE__ */i(a,{role:"radio",pressed:C.value===e,className:I(C.value===e),"aria-checked":C.value===e,"aria-label":l,tabIndex:e===J?0:-1,disabled:y||C.disabled,onMouseDown:c,onClick:()=>C.onChange(e),children:r},e)):null)}):null,D&&n.has("bullet")?g(T.bullet,/* @__PURE__ */i(a,{className:I("bullet"===D.pressed),"aria-label":T.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(T.number,/* @__PURE__ */i(a,{className:I("number"===D.pressed),"aria-label":T.number,"aria-pressed":"number"===D.pressed,disabled:y,onMouseDown:c,onClick:()=>D.onList("number"),children:/* @__PURE__ */i(o,{name:"numbered-list"})},"number")):null,K("quote",T.quote,/* @__PURE__ */i(o,{name:"quote"})),M?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":T.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:I(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"===B?U:null]}),H="row"===R,P=H?" is-row":q.flow?" is-flow":q.oneRow?" is-one-row":q.words&&void 0===N&&"words"!==B?" is-eight":"",Q=b(n,Boolean(k)),W={"--rosh-tb-color-col":String(Q.color),"--rosh-tb-link-col":String(Q.link),...H?{"--rosh-tb-cells":String(q.cells.words+q.cells.paragraph),"--rosh-tb-groupgap":q.words&&q.paragraph?"var(--space-8, 0.5rem)":"0px"}:{}};let X;return X=H?/* @__PURE__ */t("div",{className:"rosh-tb-row is-row",children:[q.words?/* @__PURE__ */i("div",{className:"rosh-tb-words",children:E}):null,q.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-para",children:G}):null]}):q.flow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-flow",children:[E,
3
+ /* @__PURE__ */i("span",{className:"rosh-tb-flowgap","aria-hidden":"true"}),G]}):q.oneRow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-one-row",children:[
4
+ /* @__PURE__ */i("div",{className:"rosh-tb-words",children:E}),
5
+ /* @__PURE__ */i("div",{className:"rosh-tb-para",children:G})]}):/* @__PURE__ */t(d,{children:[q.words?/* @__PURE__ */i("div",{className:"rosh-tb-row"+(void 0===N&&"words"!==B?" is-eight":""),children:E}):null,q.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-row",children:G}):null]}),/* @__PURE__ */t("div",{className:`rosh-tb-wrap${P} ${j}`.trim(),style:W,children:[
6
+ /* @__PURE__ */i("div",{className:"rosh-tb",role:"toolbar","aria-label":A??T.formatting,children:X}),S]})}export{f as TextToolbar,w as textToolbarRows,b as textToolbarWindowColumns};
@@ -1,22 +1,22 @@
1
- import{ChartBrush as t}from"./chunk-KOPTKTHN.js";import{ChartDot as e}from"./chunk-CK2YOGUS.js";import{stepPath as a,curvePath as r,areaBetween as o,areaFrom as l}from"./chunk-VFC6QUEN.js";import{ChartDefs as n,MOTION as i,stagger as s,fillFor as c,dashFor as d,maskId as m}from"./chunk-465RRWBY.js";import{ChartSkeleton as h}from"./chunk-YVIV7SKG.js";import{useHighlight as u,highlightOpacity as f}from"./chunk-CNYAHYE6.js";import{useDragZoom as p,DragBand as g,ChartZoomSummary as y,tooltipBesideBand as k}from"./chunk-EDANELWX.js";import{usePlotWidth as x}from"./chunk-MAFUXCPZ.js";import{pairedAxes as v,niceAxis as b,niceMax as M,linearScale as N,axisGutter as w,bandScale as j,ladderScale as V}from"./chunk-2JWPNR2U.js";import{ChartTooltip as $}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as z,CHART_INK as A,STATUS_VARS as S}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as W}from"./chunk-TWVUQUUD.js";import{useShellStrings as E,useShellLocale as L}from"./chunk-TJSJVC6P.js";import{formatPercent as C,formatPlain as D}from"./chunk-C3QOHMR6.js";import{useRef as R,useState as T,useId as I,useEffect as P}from"react";import{jsx as U,jsxs as F}from"react/jsx-runtime";var O=12,K=16,Y=26,B=52,Q=t=>"number"==typeof t&&Number.isFinite(t);function H({series:H,labels:J,height:G=200,stacked:X=!1,stackMode:Z="value",levels:q,curve:_="linear",tension:tt=0,max:et,yTickCount:at=4,formatValue:rt,formatTooltipValue:ot,tooltipLabels:lt,yAxisLabel:nt,referenceLines:it,labelEndpoints:st=!1,dots:ct,dotVariant:dt="border",pulse:mt=!1,brush:ht=!1,range:ut,onRangeChange:ft,zoomable:pt=!0,columnStrip:gt,onSelect:yt,loading:kt=!1,animate:xt=!0,reveal:vt="left-to-right",fillVariant:bt="gradient",gridStyle:Mt="solid",width:Nt,className:wt,emptyLabel:jt}){const Vt=E().charts,$t=L(),zt=rt??(t=>D(t,$t)),At=ot??zt,St=jt??Vt.noData,Wt=R(null),Et=x(Wt),Lt=Nt??Et,[Ct,Dt]=T(null),[Rt,Tt]=T(null),{highlighted:It}=u(),Pt=I(),Ut=ut??Rt,Ft=p(ht&&Ut?Ut[1]-Ut[0]+1:J.length,pt);if(P(()=>{if(null!==Ct)return W(t=>"Escape"===t.key&&(Dt(null),!0))},[Ct]),kt)/* @__PURE__ */
2
- return U("div",{className:wt,ref:Wt,children:/* @__PURE__ */U(h,{height:G,width:Nt??Et})});const Ot=J,Kt=ut??Rt??[0,Math.max(0,Ot.length-1)],[Yt,Bt]=Kt,Qt=t=>Ft.slice(ht?t.slice(Yt,Bt+1):t),Ht=lt?Qt(lt):void 0,Jt=H.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(Q)).map(t=>({...t,data:Qt(t.data),pointTones:t.pointTones?Qt(t.pointTones):void 0})),Gt=t=>(ht?Yt:0)+(Ft.view?.[0]??0)+t;if(J=Qt(Ot),0===Jt.length||0===J.length)/* @__PURE__ */
1
+ import{ChartDefs as t,MOTION as e,stagger as a,fillFor as r,dashFor as o,maskId as l}from"./chunk-465RRWBY.js";import{ChartBrush as n}from"./chunk-KOPTKTHN.js";import{ChartDot as i}from"./chunk-CK2YOGUS.js";import{ChartSkeleton as s}from"./chunk-YVIV7SKG.js";import{stepPath as c,curvePath as d,areaBetween as m,areaFrom as h}from"./chunk-VFC6QUEN.js";import{useHighlight as u,highlightOpacity as f}from"./chunk-CNYAHYE6.js";import{useDragZoom as p,DragBand as g,ChartZoomSummary as y,tooltipBesideBand as k}from"./chunk-EDANELWX.js";import{usePlotWidth as x}from"./chunk-MAFUXCPZ.js";import{pairedAxes as v,niceAxis as b,niceMax as M,linearScale as N,axisGutter as w,bandScale as j,ladderScale as V}from"./chunk-2JWPNR2U.js";import{ChartTooltip as $}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as z,CHART_INK as A,STATUS_VARS as S}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as W}from"./chunk-TWVUQUUD.js";import{useShellStrings as E,useShellLocale as L}from"./chunk-TJSJVC6P.js";import{formatPercent as C,formatPlain as D}from"./chunk-C3QOHMR6.js";import{useRef as R,useState as T,useId as I,useEffect as P}from"react";import{jsx as U,jsxs as F}from"react/jsx-runtime";var O=12,K=16,Y=26,B=52,Q=t=>"number"==typeof t&&Number.isFinite(t);function H({series:H,labels:J,height:G=200,stacked:X=!1,stackMode:Z="value",levels:q,curve:_="linear",tension:tt=0,max:et,yTickCount:at=4,formatValue:rt,formatTooltipValue:ot,tooltipLabels:lt,yAxisLabel:nt,referenceLines:it,labelEndpoints:st=!1,dots:ct,dotVariant:dt="border",pulse:mt=!1,brush:ht=!1,range:ut,onRangeChange:ft,zoomable:pt=!0,columnStrip:gt,onSelect:yt,loading:kt=!1,animate:xt=!0,reveal:vt="left-to-right",fillVariant:bt="gradient",gridStyle:Mt="solid",width:Nt,className:wt,emptyLabel:jt}){const Vt=E().charts,$t=L(),zt=rt??(t=>D(t,$t)),At=ot??zt,St=jt??Vt.noData,Wt=R(null),Et=x(Wt),Lt=Nt??Et,[Ct,Dt]=T(null),[Rt,Tt]=T(null),{highlighted:It}=u(),Pt=I(),Ut=ut??Rt,Ft=p(ht&&Ut?Ut[1]-Ut[0]+1:J.length,pt);if(P(()=>{if(null!==Ct)return W(t=>"Escape"===t.key&&(Dt(null),!0))},[Ct]),kt)/* @__PURE__ */
2
+ return U("div",{className:wt,ref:Wt,children:/* @__PURE__ */U(s,{height:G,width:Nt??Et})});const Ot=J,Kt=ut??Rt??[0,Math.max(0,Ot.length-1)],[Yt,Bt]=Kt,Qt=t=>Ft.slice(ht?t.slice(Yt,Bt+1):t),Ht=lt?Qt(lt):void 0,Jt=H.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(Q)).map(t=>({...t,data:Qt(t.data),pointTones:t.pointTones?Qt(t.pointTones):void 0})),Gt=t=>(ht?Yt:0)+(Ft.view?.[0]??0)+t;if(J=Qt(Ot),0===Jt.length||0===J.length)/* @__PURE__ */
3
3
  return U("div",{className:wt,ref:Wt,children:/* @__PURE__ */U("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:G},children:St})});const Xt=J.map((t,e)=>Jt.reduce((t,a)=>t+(Q(a.data[e])?a.data[e]:0),0)),Zt=(t,e)=>Xt[e]>0?t/Xt[e]:null,qt=[];if(X){let t=J.map(()=>0);for(const e of Jt)t=t.map((t,a)=>t+(Q(e.data[a])?e.data[a]:0)),qt.push("percent"===Z?t.map((t,e)=>Zt(t,e)):[...t])}const _t=!!q&&q.length>0,te=t=>"right"===t.axis,ee=!X&&!_t&&void 0===et&&Jt.some(te)&&Jt.some(t=>!te(t)),ae=gt&&!X?gt:null,re=t=>!!ae&&"column"===t.mode,oe=(ee?Jt.filter(t=>!te(t)):Jt).filter(t=>!re(t)),le=ee?Jt.filter(te).flatMap(t=>t.data.filter(Q)):[],ne=X?(qt.at(-1)??[]).filter(Q):oe.flatMap(t=>t.data.filter(Q)),ie=ee?v([Math.min(0,...ne),Math.max(0,...ne)],[Math.min(0,...le),Math.max(0,...le)],{intervals:at+1,integerLeft:ne.every(Number.isInteger),integerRight:le.every(Number.isInteger)}):null,se=ie?ie.left:X&&"percent"===Z||_t||void 0!==et?null:b(X?0:Math.min(0,...ne),Math.max(0,...ne),{intervals:at+1,integer:ne.every(Number.isInteger)}),ce=se?se.lo:0,de=X&&"percent"===Z?1:se?se.hi:et??M(Math.max(...ne,0)),me=X&&"percent"===Z?t=>C(Math.round(100*t),0,$t):zt,he=_t?q:se?se.ticks:N([ce,de],{from:0,to:1}).ticks(at+1),ue=w(he.map(me),B),fe=ie?w(ie.right.ticks.map(zt),K):K,pe={left:ue,right:Math.max(ue+1,Lt-fe),top:O,bottom:G-Y},ge=j(J.length,{from:pe.left,to:pe.right}),ye=_t?V(q,{from:pe.bottom,to:pe.top}):null,ke=N([ce,de],{from:pe.bottom,to:pe.top}),xe=ke(Math.max(ce,0)),ve=t=>ye?ye(t):ke(t),be=Jt.filter(re),Me=Math.max(0,...J.map((t,e)=>be.reduce((t,a)=>t+Math.max(0,Q(a.data[e])?a.data[e]:0),0))),Ne=t=>xe-(Me>0?t/Me:0)*(pe.bottom-pe.top)*(ae??0),we=ie?N([ie.right.lo,ie.right.hi],{from:pe.bottom,to:pe.top}):null,je=t=>we&&te(t)?we:ve,Ve=ye?ye.levels.map(t=>({value:t,y:ye(t)})):he.map(t=>({value:t,y:ke(t)})),$e=t=>e=>{e.preventDefault(),Dt(e=>{const a=(e??0)+t;return Math.min(J.length-1,Math.max(0,a))})},ze=Math.max(1,Math.ceil(J.length/Math.max(1,Math.floor(Lt/96))));/* @__PURE__ */
4
4
  return F("div",{className:`relative ${wt??""}`,ref:Wt,children:[
5
5
  /* @__PURE__ */F("svg",{width:"100%",height:G,viewBox:`0 0 ${Lt} ${G}`,role:"img","aria-label":Vt.overIntervals(Jt.map(t=>t.label),J.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Dt(null),onBlur:()=>Dt(null),style:pt?{userSelect:"none",touchAction:"pan-y"}:void 0,onKeyDown:t=>{if(yt&&null!==Ct&&("Enter"===t.key||" "===t.key))return t.preventDefault(),void yt(Gt(Ct));"ArrowRight"===t.key&&$e(1)(t),"ArrowLeft"===t.key&&$e(-1)(t)},children:[
6
6
  /* @__PURE__ */U("defs",{children:/* @__PURE__ */U("clipPath",{id:Pt,children:/* @__PURE__ */U("rect",{x:pe.left,y:pe.top,width:pe.right-pe.left,height:pe.bottom-pe.top})})}),
7
- /* @__PURE__ */U(n,{id:Pt,fills:Jt.map((t,e)=>({color:z(t.slot,t.color,t.tone),variant:t.fillVariant??bt})),fadeFrom:X?.42:.3,reveal:!!xt&&vt}),Ve.map(t=>/* @__PURE__ */U("line",{x1:pe.left,y1:t.y,x2:pe.right,y2:t.y,stroke:A.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===Mt?"3 3":void 0},`grid-${t.value}`)),
7
+ /* @__PURE__ */U(t,{id:Pt,fills:Jt.map((t,e)=>({color:z(t.slot,t.color,t.tone),variant:t.fillVariant??bt})),fadeFrom:X?.42:.3,reveal:!!xt&&vt}),Ve.map(t=>/* @__PURE__ */U("line",{x1:pe.left,y1:t.y,x2:pe.right,y2:t.y,stroke:A.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===Mt?"3 3":void 0},`grid-${t.value}`)),
8
8
  /* @__PURE__ */U("line",{x1:pe.left,y1:xe,x2:pe.right,y2:xe,stroke:A.axis,strokeWidth:1,shapeRendering:"crispEdges"}),Ve.map(t=>/* @__PURE__ */U("text",{x:pe.left-8,y:t.y+4,textAnchor:"end","data-axis-tick":"true",fontSize:11,fill:A.label,style:{fontVariantNumeric:"tabular-nums"},children:me(t.value)},`ytick-${t.value}`)),ie&&Ve.map((t,e)=>/* @__PURE__ */U("text",{x:pe.right+8,y:t.y+4,textAnchor:"start","data-axis-tick":"true",fontSize:11,fill:A.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(ie.right.ticks[e])},`ytick-r-${t.value}`)),nt&&/* @__PURE__ */U("text",{x:12,y:(pe.top+pe.bottom)/2,transform:`rotate(-90 12 ${(pe.top+pe.bottom)/2})`,textAnchor:"middle",fontSize:11,fill:A.label,children:nt}),
9
- /* @__PURE__ */U("g",{clipPath:`url(#${Pt})`,mask:xt&&vt?`url(#${m(Pt)})`:void 0,children:Jt.map((t,e)=>{const n=z(t.slot,t.color,t.tone),m=t.mode??(X?"area":"line"),h=f(t.key,It);if("step"===m){const e=J.map((e,a)=>({start:ge(a),end:ge.end(a),value:t.data[a]})).filter(t=>Q(t.value)).map(e=>({start:e.start,end:e.end,y:je(t)(e.value)}));/* @__PURE__ */
10
- return U("path",{d:a(e),fill:"none",stroke:n,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:h??void 0,className:"rosh-viz-mark"},t.key)}const u=J.map((a,r)=>{const o=X?qt[e]?.[r]:t.data[r];return Q(o)?[ge.center(r),je(t)(o)]:null}).filter(t=>null!==t);if(0===u.length)return null;if("column"===m){const a=Math.max(1,.62*ge.bandwidth),r="solid"===t.fillVariant,o=je(t);return re(t)?/* @__PURE__ */U("g",{opacity:h??void 0,className:"rosh-viz-mark",children:J.map((o,l)=>{const i=t.data[l];if(!Q(i)||i<=0)return null;const s=((t,e)=>be.slice(0,be.findIndex(e=>e.key===Jt[t]?.key)).reduce((t,a)=>t+Math.max(0,Q(a.data[e])?a.data[e]:0),0))(e,l),c=Ne(s+i),d=Ne(s)-(s>0?1:0);/* @__PURE__ */
11
- return U("rect",{x:ge.center(l)-a/2,y:c,width:a,height:Math.max(0,d-c),rx:2,fill:t.pointTones?.[l]?S[t.pointTones[l]]:n,fillOpacity:r?1:.55},l)})},t.key):/* @__PURE__ */U("g",{opacity:h??void 0,className:"rosh-viz-mark",children:J.map((l,c)=>{const d=X?qt[e]?.[c]:t.data[c];if(!Q(d))return null;const m=o(d);/* @__PURE__ */
12
- return U("rect",{x:ge.center(c)-a/2,y:Math.min(m,xe),width:a,height:Math.abs(xe-m),rx:2,fill:n,fillOpacity:r?1:.35,className:xt?i.rise:void 0,style:xt?s(c,26):void 0},c)})},t.key)}const p=r(u,_,tt),g=X&&e>0?J.map((t,a)=>[ge.center(a),ve(qt[e-1]?.[a]??0)-2]):null,y=g?o(p,g):l(p,u,xe);/* @__PURE__ */
13
- return F("g",{opacity:h??void 0,className:"rosh-viz-mark",children:[("area"===m||X)&&
14
- /* @__PURE__ */U("path",{d:y,fill:c(Pt,e,t.fillVariant??bt,n),stroke:"none"}),
15
- /* @__PURE__ */U("path",{d:p,fill:"none",stroke:n,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:d(t.stroke??(t.forecast?"animated-dashed":"solid")),className:xt&&("animated-dashed"===t.stroke||t.forecast&&!t.stroke)?i.march:void 0})]},t.key)})}),it?.map((t,e)=>{const a=t.color??S[t.tone??"critical"],r=ve(t.value);/* @__PURE__ */
9
+ /* @__PURE__ */U("g",{clipPath:`url(#${Pt})`,mask:xt&&vt?`url(#${l(Pt)})`:void 0,children:Jt.map((t,l)=>{const n=z(t.slot,t.color,t.tone),i=t.mode??(X?"area":"line"),s=f(t.key,It);if("step"===i){const e=J.map((e,a)=>({start:ge(a),end:ge.end(a),value:t.data[a]})).filter(t=>Q(t.value)).map(e=>({start:e.start,end:e.end,y:je(t)(e.value)}));/* @__PURE__ */
10
+ return U("path",{d:c(e),fill:"none",stroke:n,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:s??void 0,className:"rosh-viz-mark"},t.key)}const u=J.map((e,a)=>{const r=X?qt[l]?.[a]:t.data[a];return Q(r)?[ge.center(a),je(t)(r)]:null}).filter(t=>null!==t);if(0===u.length)return null;if("column"===i){const r=Math.max(1,.62*ge.bandwidth),o="solid"===t.fillVariant,i=je(t);return re(t)?/* @__PURE__ */U("g",{opacity:s??void 0,className:"rosh-viz-mark",children:J.map((e,a)=>{const i=t.data[a];if(!Q(i)||i<=0)return null;const s=((t,e)=>be.slice(0,be.findIndex(e=>e.key===Jt[t]?.key)).reduce((t,a)=>t+Math.max(0,Q(a.data[e])?a.data[e]:0),0))(l,a),c=Ne(s+i),d=Ne(s)-(s>0?1:0);/* @__PURE__ */
11
+ return U("rect",{x:ge.center(a)-r/2,y:c,width:r,height:Math.max(0,d-c),rx:2,fill:t.pointTones?.[a]?S[t.pointTones[a]]:n,fillOpacity:o?1:.55},a)})},t.key):/* @__PURE__ */U("g",{opacity:s??void 0,className:"rosh-viz-mark",children:J.map((s,c)=>{const d=X?qt[l]?.[c]:t.data[c];if(!Q(d))return null;const m=i(d);/* @__PURE__ */
12
+ return U("rect",{x:ge.center(c)-r/2,y:Math.min(m,xe),width:r,height:Math.abs(xe-m),rx:2,fill:n,fillOpacity:o?1:.35,className:xt?e.rise:void 0,style:xt?a(c,26):void 0},c)})},t.key)}const p=d(u,_,tt),g=X&&l>0?J.map((t,e)=>[ge.center(e),ve(qt[l-1]?.[e]??0)-2]):null,y=g?m(p,g):h(p,u,xe);/* @__PURE__ */
13
+ return F("g",{opacity:s??void 0,className:"rosh-viz-mark",children:[("area"===i||X)&&
14
+ /* @__PURE__ */U("path",{d:y,fill:r(Pt,l,t.fillVariant??bt,n),stroke:"none"}),
15
+ /* @__PURE__ */U("path",{d:p,fill:"none",stroke:n,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:o(t.stroke??(t.forecast?"animated-dashed":"solid")),className:xt&&("animated-dashed"===t.stroke||t.forecast&&!t.stroke)?e.march:void 0})]},t.key)})}),it?.map((t,e)=>{const a=t.color??S[t.tone??"critical"],r=ve(t.value);/* @__PURE__ */
16
16
  return F("g",{children:[
17
- /* @__PURE__ */U("line",{x1:pe.left,y1:r,x2:pe.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */U("text",{x:pe.right-4,y:r-5,textAnchor:"end",fontSize:11,fontWeight:600,fill:a,children:t.label})]},`rule-${e}`)}),"none"!==(ct??(st?"last":"none"))&&Jt.map((t,a)=>{if("column"===t.mode)return null;const r=ct??(st?"last":"none"),o=z(t.slot,t.color,t.tone),l=[...t.data].map(Q).lastIndexOf(!0),n="all"===r?J.map((t,e)=>e).filter(e=>Q(X?qt[a]?.[e]:t.data[e])):l>=0?[l]:[];/* @__PURE__ */
18
- return F("g",{children:[n.map(r=>{const n=X?qt[a]?.[r]:t.data[r];return Q(n)?/* @__PURE__ */U(e,{cx:ge.center(r),cy:je(t)(n),color:o,variant:dt,pulse:mt&&r===l,title:`${J[r]}: ${t.label} ${zt(n)}`},r):null}),st&&l>=0&&Q(X?qt[a]?.[l]:t.data[l])&&/* @__PURE__ */U("text",{x:ge.center(l)-10,y:je(t)(X?qt[a]?.[l]:t.data[l])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:A.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(X?qt[a]?.[l]:t.data[l])})]},`dots-${t.key}`)}),J.map((t,e)=>e%ze===0?/* @__PURE__ */U("text",{x:ge.center(e),y:G-8,textAnchor:"middle",fontSize:11,fill:A.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Ct&&/* @__PURE__ */U("line",{x1:ge.center(Ct),y1:pe.top,x2:ge.center(Ct),y2:pe.bottom,stroke:A.axis,strokeWidth:1}),ae&&Me>0&&
17
+ /* @__PURE__ */U("line",{x1:pe.left,y1:r,x2:pe.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */U("text",{x:pe.right-4,y:r-5,textAnchor:"end",fontSize:11,fontWeight:600,fill:a,children:t.label})]},`rule-${e}`)}),"none"!==(ct??(st?"last":"none"))&&Jt.map((t,e)=>{if("column"===t.mode)return null;const a=ct??(st?"last":"none"),r=z(t.slot,t.color,t.tone),o=[...t.data].map(Q).lastIndexOf(!0),l="all"===a?J.map((t,e)=>e).filter(a=>Q(X?qt[e]?.[a]:t.data[a])):o>=0?[o]:[];/* @__PURE__ */
18
+ return F("g",{children:[l.map(a=>{const l=X?qt[e]?.[a]:t.data[a];return Q(l)?/* @__PURE__ */U(i,{cx:ge.center(a),cy:je(t)(l),color:r,variant:dt,pulse:mt&&a===o,title:`${J[a]}: ${t.label} ${zt(l)}`},a):null}),st&&o>=0&&Q(X?qt[e]?.[o]:t.data[o])&&/* @__PURE__ */U("text",{x:ge.center(o)-10,y:je(t)(X?qt[e]?.[o]:t.data[o])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:A.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(X?qt[e]?.[o]:t.data[o])})]},`dots-${t.key}`)}),J.map((t,e)=>e%ze===0?/* @__PURE__ */U("text",{x:ge.center(e),y:G-8,textAnchor:"middle",fontSize:11,fill:A.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Ct&&/* @__PURE__ */U("line",{x1:ge.center(Ct),y1:pe.top,x2:ge.center(Ct),y2:pe.bottom,stroke:A.axis,strokeWidth:1}),ae&&Me>0&&
19
19
  /* @__PURE__ */F("g",{pointerEvents:"none","data-column-strip":"true",children:[
20
20
  /* @__PURE__ */U("line",{x1:pe.left,y1:Ne(Me),x2:pe.right,y2:Ne(Me),stroke:A.grid,strokeWidth:1,strokeDasharray:"2 3",shapeRendering:"crispEdges"}),
21
- /* @__PURE__ */U("text",{x:pe.left+4,y:Ne(Me)-4,fontSize:11,fill:A.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(Me)})]}),Ft.drag&&/* @__PURE__ */U(g,{x0:ge(Ft.drag[0]),x1:ge(Ft.drag[1])+ge.bandwidth,top:pe.top,bottom:pe.bottom}),J.map((t,e)=>/* @__PURE__ */U("rect",{x:ge(e),y:pe.top,width:Math.max(1,ge.bandwidth),height:pe.bottom-pe.top,fill:"transparent",onMouseEnter:()=>Dt(e),onPointerDown:()=>Ft.press(e),onPointerEnter:()=>Ft.over(e),onPointerUp:Ft.release,onClick:yt?()=>yt(Gt(e)):void 0,style:yt?{cursor:"pointer"}:void 0},`hit-${e}`))]}),Ft.view&&/* @__PURE__ */U(y,{from:Ht?.[0]??J[0],to:Ht?.at(-1)??J[J.length-1],count:J.length,total:X&&"percent"!==Z?At(Xt.reduce((t,e)=>t+e,0)):ae?At(be.reduce((t,e)=>t+e.data.filter(Q).reduce((t,e)=>t+e,0),0)):void 0,rows:(ae?be:Jt).filter(t=>t.data.some(Q)).map(t=>{const e=t.data.filter(Q),a=z(t.slot,t.color,t.tone);if(0===e.length)return{key:t.key,label:t.label,color:a,value:"—"};const r=e.reduce((t,e)=>t+e,0),o=X||"column"===t.mode?At(r):Vt.zoomLevel(At(r/e.length),At(Math.max(...e)));return{key:t.key,label:t.label,color:a,value:o}}),onClear:Ft.clear}),ht&&Ot.length>2&&/* @__PURE__ */U(t,{className:"mt-1",labels:Ot,width:Lt,data:H[0]?.data??[],range:Kt,onRangeChange:t=>{ft?ft(t):Tt(t)}}),null!==Ct&&
21
+ /* @__PURE__ */U("text",{x:pe.left+4,y:Ne(Me)-4,fontSize:11,fill:A.label,style:{fontVariantNumeric:"tabular-nums"},children:zt(Me)})]}),Ft.drag&&/* @__PURE__ */U(g,{x0:ge(Ft.drag[0]),x1:ge(Ft.drag[1])+ge.bandwidth,top:pe.top,bottom:pe.bottom}),J.map((t,e)=>/* @__PURE__ */U("rect",{x:ge(e),y:pe.top,width:Math.max(1,ge.bandwidth),height:pe.bottom-pe.top,fill:"transparent",onMouseEnter:()=>Dt(e),onPointerDown:()=>Ft.press(e),onPointerEnter:()=>Ft.over(e),onPointerUp:Ft.release,onClick:yt?()=>yt(Gt(e)):void 0,style:yt?{cursor:"pointer"}:void 0},`hit-${e}`))]}),Ft.view&&/* @__PURE__ */U(y,{from:Ht?.[0]??J[0],to:Ht?.at(-1)??J[J.length-1],count:J.length,total:X&&"percent"!==Z?At(Xt.reduce((t,e)=>t+e,0)):ae?At(be.reduce((t,e)=>t+e.data.filter(Q).reduce((t,e)=>t+e,0),0)):void 0,rows:(ae?be:Jt).filter(t=>t.data.some(Q)).map(t=>{const e=t.data.filter(Q),a=z(t.slot,t.color,t.tone);if(0===e.length)return{key:t.key,label:t.label,color:a,value:"—"};const r=e.reduce((t,e)=>t+e,0),o=X||"column"===t.mode?At(r):Vt.zoomLevel(At(r/e.length),At(Math.max(...e)));return{key:t.key,label:t.label,color:a,value:o}}),onClear:Ft.clear}),ht&&Ot.length>2&&/* @__PURE__ */U(n,{className:"mt-1",labels:Ot,width:Lt,data:H[0]?.data??[],range:Kt,onRangeChange:t=>{ft?ft(t):Tt(t)}}),null!==Ct&&
22
22
  /* @__PURE__ */U("div",{className:"pointer-events-none absolute top-2 z-10",style:k(ge.center(Ct),ge.bandwidth,Lt),children:/* @__PURE__ */U($,{title:Ht?.[Ct]??J[Ct],rows:Jt.map((t,e)=>({key:t.key,label:t.label,color:z(t.slot,t.color,t.tone),value:Q(t.data[Ct])?X&&"percent"===Z?`${C(100*(Zt(t.data[Ct],Ct)??0),1,$t)} · ${At(t.data[Ct])}`:At(t.data[Ct]):void 0})),footnote:X&&"percent"===Z?Vt.inBucket(At(Xt[Ct])):void 0})})]})}export{H as TimeSeriesChart};
@@ -1,14 +1,17 @@
1
1
  import{subscribeIcons as e,iconsVersion as r,resolveIcon as i}from"./chunk-J75ZT2JQ.js";import{useSyncExternalStore as n}from"react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var d={account:function({size:e=18,...r}){/* @__PURE__ */
2
2
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})})},add:function({size:e=18,...r}){/* @__PURE__ */
3
3
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})})},"add-circle":function({size:e=18,...r}){/* @__PURE__ */
4
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})},adjust:function({size:e=18,...r}){/* @__PURE__ */
4
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})},"add-person":function({size:e=18,...r}){/* @__PURE__ */
5
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})})},adjust:function({size:e=18,...r}){/* @__PURE__ */
5
6
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})})},"align-center":function({size:e=18,...r}){/* @__PURE__ */
6
7
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3.75 6.75L20.25 6.75M7.5 12L16.5 12M5.25 17.25L18.75 17.25"})})},"align-justify":function({size:e=18,...r}){/* @__PURE__ */
7
8
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M6.75 6.75L17.25 6.75M6.75 12L17.25 12M6.75 17.25L17.25 17.25M3 5.25L3 18.75M21 5.25L21 18.75"})})},"align-left":function({size:e=18,...r}){/* @__PURE__ */
8
9
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3.75 6.75L20.25 6.75M3.75 12L14.25 12M3.75 17.25L17.25 17.25"})})},"align-right":function({size:e=18,...r}){/* @__PURE__ */
9
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3.75 6.75L20.25 6.75M9.75 12L20.25 12M6.75 17.25L20.25 17.25"})})},"arrow-left":function({size:e=18,...r}){/* @__PURE__ */
10
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3.75 6.75L20.25 6.75M9.75 12L20.25 12M6.75 17.25L20.25 17.25"})})},"arrow-down":function({size:e=18,...r}){/* @__PURE__ */
11
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})})},"arrow-left":function({size:e=18,...r}){/* @__PURE__ */
10
12
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})})},"arrow-right":function({size:e=18,...r}){/* @__PURE__ */
11
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})})},attach:function({size:e=18,...r}){/* @__PURE__ */
13
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})})},"arrow-up":function({size:e=18,...r}){/* @__PURE__ */
14
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})})},attach:function({size:e=18,...r}){/* @__PURE__ */
12
15
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"})})},bell:function({size:e=18,...r}){/* @__PURE__ */
13
16
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})})},bold:function({size:e=18,...r}){/* @__PURE__ */
14
17
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinejoin:"round",d:"M6.75 3.744h-.753v8.25h7.125a4.125 4.125 0 0 0 0-8.25H6.75Zm0 0v.38m0 16.122h6.747a4.5 4.5 0 0 0 0-9.001h-7.5v9h.753Zm0 0v-.37m0-15.751h6a3.75 3.75 0 1 1 0 7.5h-6m0-7.5v7.5m0 0v8.25m0-8.25h6.375a4.125 4.125 0 0 1 0 8.25H6.75m.747-15.38h4.875a3.375 3.375 0 0 1 0 6.75H7.497v-6.75Zm0 7.5h5.25a3.75 3.75 0 0 1 0 7.5h-5.25v-7.5Z"})})},"bookmark-square":function({size:e=18,...r}){/* @__PURE__ */
@@ -43,7 +46,10 @@ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"current
43
46
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})})},"close-circle":function({size:e=18,...r}){/* @__PURE__ */
44
47
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})},"close-circle:mini":function({size:e=18,...r}){/* @__PURE__ */
45
48
  return t("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",clipRule:"evenodd"})})},"close:mini":function({size:e=18,...r}){/* @__PURE__ */
46
- return t("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})})},code:function({size:e=18,...r}){/* @__PURE__ */
49
+ return t("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})})},"cloud-arrow-up":function({size:e=18,...r}){/* @__PURE__ */
50
+ return o("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:[
51
+ /* @__PURE__ */t("path",{d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}),
52
+ /* @__PURE__ */t("path",{d:"M12 16.5v-5.25m0 0-2.25 2.25M12 11.25l2.25 2.25"})]})},code:function({size:e=18,...r}){/* @__PURE__ */
47
53
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"})})},collapse:function({size:e=18,...r}){/* @__PURE__ */
48
54
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"})})},compose:function({size:e=18,...r}){/* @__PURE__ */
49
55
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})},copy:function({size:e=18,...r}){/* @__PURE__ */
@@ -94,7 +100,8 @@ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"current
94
100
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})})},"folder-open":function({size:e=18,...r}){/* @__PURE__ */
95
101
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"})})},"folder-plus":function({size:e=18,...r}){/* @__PURE__ */
96
102
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 10.5v6m3-3H9m4.06-7.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})})},"folder:solid":function({size:e=18,...r}){/* @__PURE__ */
97
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z"})})},globe:function({size:e=18,...r}){/* @__PURE__ */
103
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z"})})},forward:function({size:e=18,...r}){/* @__PURE__ */
104
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M15 6.75L19.5 11.25L15 15.75M19.5 11.25H9.75A5.25 5.25 0 0 0 4.5 16.5v2.25"})})},globe:function({size:e=18,...r}){/* @__PURE__ */
98
105
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})})},grid:function({size:e=18,...r}){/* @__PURE__ */
99
106
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"})})},"hand-thumb-up":function({size:e=18,...r}){/* @__PURE__ */
100
107
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"})})},help:function({size:e=18,...r}){/* @__PURE__ */
@@ -160,7 +167,8 @@ return o("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"current
160
167
  /* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),
161
168
  /* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]})},"sides-each":function({size:e=18,...r}){/* @__PURE__ */
162
169
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3.75 3.75L4.75 3.75M8.75 3.75L9.75 3.75M14.25 3.75L15.25 3.75M19.25 3.75L20.25 3.75M20.25 3.75L20.25 4.75M20.25 8.75L20.25 9.75M20.25 14.25L20.25 15.25M20.25 19.25L20.25 20.25M3.75 20.25L4.75 20.25M8.75 20.25L9.75 20.25M14.25 20.25L15.25 20.25M19.25 20.25L20.25 20.25M3.75 3.75L3.75 4.75M3.75 8.75L3.75 9.75M3.75 14.25L3.75 15.25M3.75 19.25L3.75 20.25M10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -1.5 1.5h-3a1.5 1.5 0 0 1 -1.5 -1.5v-3a1.5 1.5 0 0 1 1.5 -1.5Z"})})},star:function({size:e=18,...r}){/* @__PURE__ */
163
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"})})},"stop-circle":function({size:e=18,...r}){/* @__PURE__ */
170
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"})})},"star:solid":function({size:e=18,...r}){/* @__PURE__ */
171
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"})})},"stop-circle":function({size:e=18,...r}){/* @__PURE__ */
164
172
  return o("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:[
165
173
  /* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),
166
174
  /* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9.563C9 9.252 9.252 9 9.563 9h4.874c.311 0 .563.252.563.563v4.874c0 .311-.252.563-.563.563H9.564A.562.562 0 0 1 9 14.437V9.564Z"})]})},strike:function({size:e=18,...r}){/* @__PURE__ */
@@ -1,9 +1,9 @@
1
- import{useOverlayTarget as e,usePopupAnchor as r,OverlayLayerProvider as t}from"./chunk-3DVNXNTF.js";import{useDiscardGuard as i}from"./chunk-MBXCXFQO.js";import{dialogA11y as o}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as l}from"./chunk-7QSDPSXP.js";import{useFocusTrap as n,useScrollLock as a}from"./chunk-CDAJKLGL.js";import{Icon as s}from"./chunk-T3NLFOLW.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{useHydrated as c}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as m}from"./chunk-TWVUQUUD.js";import{useShellStrings as h}from"./chunk-TJSJVC6P.js";import{useRef as f,useId as u,useState as p,useEffect as b}from"react";import{createPortal as g}from"react-dom";import{jsxs as x,Fragment as y,jsx as v}from"react/jsx-runtime";var k={sm:"sm:w-[320px]",md:"sm:w-[448px]",lg:"sm:w-[640px]"},w={right:"inset-y-0 right-0",left:"inset-y-0 left-0",bottom:"inset-x-0 bottom-0"};function N(e,r){const t=window.innerHeight-(r.top+r.height);if("bottom"===e)return{left:r.left,width:r.width,bottom:t};const i={top:r.top,height:r.height};return"left"===e?{...i,left:r.left}:{...i,right:window.innerWidth-(r.left+r.width)}}function j({onClose:e}){const r=h().dialog;/* @__PURE__ */
2
- return v("button",{type:"button",onClick:e,"aria-label":r.close,className:"rounded-(--radius-control) p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */v(s,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})}function C({open:s,onClose:h,side:C="right",size:W="md",title:L,description:D,footer:J,children:T,blocking:F=!1,dirty:V=!1,initialFocus:X,"aria-label":z,"aria-labelledby":B,"aria-describedby":H,className:P=""}){const Q=f(null),S=u(),U=u(),A=u(),G=e(c()),[I,O]=p(null),K=i({open:s,dirty:V,onClose:h,title:L,layer:I}),M=f(null),Y=r(s&&null!==G,M);if(l(s),n(Q,s&&null!==G,X),a(s),b(()=>{if(s)return m(()=>(F||K(),!0),()=>Q.current)},[s,F,K]),!s||!G)return null;const Z="bottom"===C,$={...Z?{maxHeight:"85vh"}:{},...Y?N(C,Y):{}};/* @__PURE__ */
3
- return x(y,{children:[/* @__PURE__ */v("span",{ref:M,hidden:!0,"data-popup-anchor":""}),g(
4
- /* @__PURE__ */v(t,{value:I,children:/* @__PURE__ */x("div",{ref:O,className:"fixed inset-0",style:{zIndex:d.overlay},role:"presentation","data-overlay-layer":"",children:[
5
- /* @__PURE__ */v("div",{className:"fixed inset-0 bg-black/30 backdrop-blur-sm",onClick:F?void 0:K,"aria-hidden":"true"}),
6
- /* @__PURE__ */x("div",{ref:Q,...o({modal:!0,titleId:L?A:void 0,labelledBy:B,label:z}),"aria-describedby":H??(D?U:T?S:void 0),"data-drawer-side":C,"data-popup-panel":"",style:$,className:["fixed flex flex-col bg-white shadow-xl",Z?"":`w-full max-w-full ${k[W]}`,Y?"":w[C],Z?"rounded-t-xl":"",P].filter(Boolean).join(" "),children:[L?/* @__PURE__ */x("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b border-gray-100 px-4 py-3",children:[
1
+ import{useOverlayTarget as e,usePopupAnchor as r,OverlayLayerProvider as t}from"./chunk-3DVNXNTF.js";import{useDiscardGuard as i}from"./chunk-27ZJQUDS.js";import{dialogA11y as o}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as l}from"./chunk-7QSDPSXP.js";import{useFocusTrap as n,useScrollLock as a}from"./chunk-CDAJKLGL.js";import{Icon as s}from"./chunk-JOAKKXTL.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{useHydrated as c}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as m}from"./chunk-TWVUQUUD.js";import{useShellStrings as h}from"./chunk-TJSJVC6P.js";import{useRef as f,useId as u,useState as p,useEffect as b}from"react";import{createPortal as g}from"react-dom";import{jsxs as x,Fragment as y,jsx as v}from"react/jsx-runtime";var k={sm:"sm:w-[320px]",md:"sm:w-[448px]",lg:"sm:w-[640px]"},w={right:"inset-y-0 right-0",left:"inset-y-0 left-0",bottom:"inset-x-0 bottom-0"};function N(e,r){const t=window.innerHeight-(r.top+r.height);if("bottom"===e)return{left:r.left,width:r.width,bottom:t};const i={top:r.top,height:r.height};return"left"===e?{...i,left:r.left}:{...i,right:window.innerWidth-(r.left+r.width)}}function j({onClose:e}){const r=h().dialog;/* @__PURE__ */
2
+ return v("button",{type:"button",onClick:e,"aria-label":r.close,className:"rounded-(--radius-control) p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */v(s,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})}function C({open:s,onClose:h,side:C="right",size:J="md",title:D,description:W,footer:L,children:T,blocking:S=!1,dirty:U=!1,initialFocus:V,"aria-label":z,"aria-labelledby":A,"aria-describedby":H,className:K=""}){const P=f(null),Q=u(),X=u(),B=u(),F=e(c()),[G,I]=p(null),Z=i({open:s,dirty:U,onClose:h,title:D,layer:G}),O=f(null),Y=r(s&&null!==F,O);if(l(s),n(P,s&&null!==F,V),a(s),b(()=>{if(s)return m(()=>(S||Z(),!0),()=>P.current)},[s,S,Z]),!s||!F)return null;const $="bottom"===C,q={...$?{maxHeight:"85vh"}:{},...Y?N(C,Y):{}};/* @__PURE__ */
3
+ return x(y,{children:[/* @__PURE__ */v("span",{ref:O,hidden:!0,"data-popup-anchor":""}),g(
4
+ /* @__PURE__ */v(t,{value:G,children:/* @__PURE__ */x("div",{ref:I,className:"fixed inset-0",style:{zIndex:d.overlay},role:"presentation","data-overlay-layer":"",children:[
5
+ /* @__PURE__ */v("div",{className:"fixed inset-0 bg-black/30 backdrop-blur-sm",onClick:S?void 0:Z,"aria-hidden":"true"}),
6
+ /* @__PURE__ */x("div",{ref:P,...o({modal:!0,titleId:D?B:void 0,labelledBy:A,label:z}),"aria-describedby":H??(W?X:T?Q:void 0),"data-drawer-side":C,"data-popup-panel":"",style:q,className:["fixed flex flex-col bg-white shadow-xl",$?"":`w-full max-w-full ${k[J]}`,Y?"":w[C],$?"rounded-t-xl":"",K].filter(Boolean).join(" "),children:[D?/* @__PURE__ */x("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b border-gray-100 px-4 py-3",children:[
7
7
  /* @__PURE__ */x("div",{className:"min-w-0",children:[
8
- /* @__PURE__ */v("h2",{id:A,className:"text-base font-semibold text-gray-900",children:L}),D&&/* @__PURE__ */v("p",{id:U,className:"mt-0.5 text-sm text-gray-500",children:D})]}),!F&&/* @__PURE__ */v(j,{onClose:K})]}):!F&&/* @__PURE__ */v("div",{className:"absolute right-2 top-2 z-10",children:/* @__PURE__ */v(j,{onClose:K})}),
9
- /* @__PURE__ */x("div",{id:S,className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:[D&&!L&&/* @__PURE__ */v("p",{id:U,className:("mb-3 text-sm text-gray-500 "+(F?"":"pr-8")).trim(),children:D}),T]}),J&&/* @__PURE__ */v("div",{className:"flex shrink-0 justify-end gap-3 border-t border-gray-100 px-4 py-3",children:J})]})]})}),G)]})}export{C as Drawer};
8
+ /* @__PURE__ */v("h2",{id:B,className:"text-base font-semibold text-gray-900",children:D}),W&&/* @__PURE__ */v("p",{id:X,className:"mt-0.5 text-sm text-gray-500",children:W})]}),!S&&/* @__PURE__ */v(j,{onClose:Z})]}):!S&&/* @__PURE__ */v("div",{className:"absolute right-2 top-2 z-10",children:/* @__PURE__ */v(j,{onClose:Z})}),
9
+ /* @__PURE__ */x("div",{id:Q,className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:[W&&!D&&/* @__PURE__ */v("p",{id:X,className:("mb-3 text-sm text-gray-500 "+(S?"":"pr-8")).trim(),children:W}),T]}),L&&/* @__PURE__ */v("div",{className:"flex shrink-0 justify-end gap-3 border-t border-gray-100 px-4 py-3",children:L})]})]})}),F)]})}export{C as Drawer};
@@ -0,0 +1,7 @@
1
+ import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-W7DYKTHE.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-ZICGXJUB.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="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",w=/(^|[\s:])!?z-/,D={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"};function L({trigger:L,items:j,align:C="end",side:E="bottom","aria-label":K,className:W="",triggerClassName:$,menuClassName:A="",minWidth:S=180,linkAs:H,disabled:N,id:T,"aria-describedby":U,"aria-disabled":I=!1,onOpenChange:B,footer:J,footerLabel:G}){const[q,M]=m(!1),[z,P]=m(-1),R=h(null),Y=h(null),O=h(null),Q=h(null),V=h(null),X=null!=J&&!1!==J,Z=h({text:"",at:0}),F=g(),_=g(),ee=T??_,te=h(B);te.current=B;const re=h(q);re.current=q;const ne=v(e=>{M(!1),re.current&&(re.current=!1,te.current?.(!1)),e&&Y.current?.focus()},[]),oe=(t,r)=>{const n=j.length;for(let o=0;o<n;o+=1){const i=((t+r*o)%n+n)%n;if(e(j[i]))return i}return-1},ie=()=>O.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!q)return;const e=e=>{const t=e.target;if(R.current?.contains(t)||ie()?.contains(t))return;const r=ie()?.getAttribute("data-popup-menu-tree"),n=t.closest?.("[data-popup-menu-tree]");r&&n?.getAttribute("data-popup-menu-tree")===r||ne(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>ne(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[q,ne]);const ae=v(()=>{const e=ie(),t=Y.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:C,side:E});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=C},[C,E]);p(()=>{q&&ae()}),b(()=>{if(q)return u(()=>Y.current,ae)},[q,ae]),b(()=>{if(!q)return;const t=O.current,r=e(j[z])?t?.querySelector(`[data-dropdown-index="${z}"]`):null;(r??t)?.focus({preventScroll:!0})},[q,z]),b(()=>{if(q)return f(e=>"Escape"===e.key&&(ne(!0),!0),()=>Q.current)},[q,ne]),n(Q,q&&X);const le=h(null),se=t=>{const r=j.findIndex(t=>"radio"===t.type&&"colour"===t.mark&&t.checked&&e(t));return r>=0?r:"first"===t?oe(0,1):oe(j.length-1,-1)},de=e=>{P(se(e)),M(!0),re.current||(re.current=!0,le.current=e,B?.(!0))};p(()=>{const e=le.current;if(!q||!e)return;le.current=null;const t=se(e);t!==z&&P(t)});const ce=t(j,F),ue="function"==typeof J?J({close:()=>ne(!0)}):J,pe={...w.test(A)?{}:{zIndex:s.popup},minWidth:S};/* @__PURE__ */
2
+ return y("div",{ref:R,className:`relative inline-flex ${W}`.trim(),children:[
3
+ /* @__PURE__ */x("button",{ref:Y,id:ee,type:"button","aria-haspopup":"menu","aria-expanded":q,"aria-controls":q?F:void 0,"aria-label":K,"aria-describedby":U,"aria-disabled":I||void 0,disabled:N,onClick:()=>{I||(q?ne(!1):de("first"))},onKeyDown:e=>{I||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),de("first")):"ArrowUp"===e.key&&(e.preventDefault(),de("last")))},className:$??`${k} ${K?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"}`,children:L}),q&&
4
+ /* @__PURE__ */x(i,{portal:!0,className:A,style:pe,children:/* @__PURE__ */y("div",{ref:Q,children:[
5
+ /* @__PURE__ */x("div",{ref:O,id:F,role:"menu","aria-orientation":"vertical","aria-label":K,"aria-labelledby":K?void 0:ee,"aria-describedby":ce,tabIndex:-1,onKeyDown:t=>{if(!t.target.closest?.("[data-popup-submenu-panel]")||"Tab"===t.key)if("ArrowDown"===t.key)t.preventDefault(),P(oe(z+1,1));else if("ArrowUp"===t.key)t.preventDefault(),P(oe(z-1,-1));else if("Home"===t.key)t.preventDefault(),P(oe(0,1));else if("End"===t.key)t.preventDefault(),P(oe(j.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&V.current?o(V.current)[0]:void 0;e?e.focus({preventScroll:!0}):ne(!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-Z.current.at<500?Z.current.text+n:n;Z.current={text:o,at:r};const i=[...o].every(e=>e===o[0]),a=i?o[0]:o,l=i?z+1:Math.max(z,0),s=O.current,d=j.length;for(let r=0;r<d;r+=1){const n=((l+r)%d+d)%d;if(e(j[n])&&(s?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return t.preventDefault(),void P(n)}})(t)},children:r(j,{menuId:F,choose:e=>{e.disabled||(ne(!0),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>ne(!0),rowProps:(e,t)=>({"data-dropdown-index":e,tabIndex:e===z?0:-1,onMouseEnter:()=>{t.disabled||V.current?.contains(document.activeElement)||P(e)}}),linkAs:H})}),X&&/* @__PURE__ */y("div",{ref:V,role:"group","aria-label":G,"data-dropdown-footer":"",onKeyDown:e=>{const t=V.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=O.current?.querySelector(`[data-dropdown-index="${z}"]`);return void(t??O.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),ne(!0))},children:[
6
+ /* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(a,{})}),
7
+ /* @__PURE__ */x("div",{style:D,children:ue})]})]})})]})}export{L as DropdownMenu,k as TRIGGER_CLASS};
@@ -1,13 +1,13 @@
1
- import{copyToClipboard as e,selectionAt as t}from"./chunk-5HOXR3L4.js";import{useTableNav as n}from"./chunk-ATMJ5ZPK.js";import{escapeHtml as r}from"./chunk-G6DKCCWH.js";import{ListFooter as o}from"./chunk-ASOVTAIT.js";import{ListLoadError as l}from"./chunk-5YPCZLBW.js";import{ResizableTable as i}from"./chunk-2NZBQOA6.js";import{Checkbox_default as a}from"./chunk-CGZBDI6C.js";import{LoadingSpinner as c}from"./chunk-NV7QRWQJ.js";import{PopupMenu as d,PopupMenuLabel as s,PopupMenuItem as h,PopupMenuDivider as m}from"./chunk-CRRC72EE.js";import{keepsNativeMenu as u}from"./chunk-5QFPTDQF.js";import{LoadingSpinner as p}from"./chunk-R2VKEMZH.js";import{shellHttp as f}from"./chunk-STKJA4PV.js";import{toast_default as g}from"./chunk-JTZVUO3I.js";import{useShellStrings as y}from"./chunk-TJSJVC6P.js";import{useState as k,useRef as b}from"react";import{jsx as x,Fragment as w,jsxs as C}from"react/jsx-runtime";function j(e){return Array.from(e.children).filter(e=>void 0!==e.dataset?.colKey&&"_select"!==e.dataset.colKey)}function v(e){return("string"==typeof e.innerText?e.innerText:e.textContent??"").replace(/\s+/g," ").trim()}function S(S){const{items:R,isLoading:N,emptyState:T,totalCount:L,isError:A,onRetry:$,errorTitle:E,errorMessage:P,tableId:K,columns:M,renderCell:I,getRowId:O=e=>e.id,sort:F,onSort:J,selected:U,setSelected:D,onRowClick:V,onRowHover:W,getRowClassName:Z,footerLabel:B,footerExtra:H,footerExtraAfter:Q,sentinelRef:_,isFetchingNextPage:z,saveDefaultPerms:G,exportEndpoint:X,exportFilename:Y="export.csv",contextActions:q}=S,[ee,te]=k(null),ne=b(null),re=y(),oe=re.entityList,le=e=>{D(t=>{const n=new Set(t),r=O(e);return n.has(r)?n.delete(r):n.add(r),n})},ie=()=>{D(e=>{const t=R.map(O),n=new Set(e);return t.every(t=>e.has(t))?t.forEach(e=>n.delete(e)):t.forEach(e=>n.add(e)),n})},ae=n(R,V,le,ie,(e,t)=>{D(n=>{const r=new Set(n);for(let n=e;n<=t;n++)r.add(O(R[n]));return r})},ne),ce=R.filter(e=>U.has(O(e))),de=()=>{const e=[...ne.current?.querySelectorAll("tr[data-row-idx]")??[]].filter(e=>{const t=R[Number(e.dataset.rowIdx)];return void 0!==t&&U.has(O(t))}),t=e.length?j(e[0]).map(e=>e.dataset.colKey??""):[],n=new Map(M.map(e=>[e.key,e.label]));return{keys:t,header:t.map(e=>n.get(e)??e),body:e.map(e=>j(e).map(v))}},se=()=>{te(null);const{header:t,body:n}=de();if(!n.length)return;const o=[t,...n].map(e=>e.join("\t")).join("\n"),l="<table><thead><tr>"+t.map(e=>`<th>${r(e)}</th>`).join("")+"</tr></thead><tbody>"+n.map(e=>`<tr>${e.map(e=>`<td>${r(e)}</td>`).join("")}</tr>`).join("")+"</tbody></table>";e(oe.copiedRows(n.length),o,l)},he=async()=>{te(null);const e=ce.map(O);if(!e.length||!X)return;const t=new URLSearchParams({ids:e.join(",")}),n=(()=>{const e=new Map(M.map(e=>[e.key,e.exportLabel??e.label]));try{const t=localStorage.getItem(`col-config-${K}`);if(t){const n=JSON.parse(t).filter(t=>!t.hidden&&"_select"!==t.key&&e.has(t.key)).map(t=>`${t.key}|${e.get(t.key)}`);if(n.length)return n.join(",")}}catch{}return M.filter(e=>!e.defaultHidden).map(e=>`${e.key}|${e.exportLabel??e.label}`).join(",")})();n&&t.set("cols",n);const r=X.includes("?")?"&":"?";try{const n=await f.get(`${X}${r}${t}`,{responseType:"blob"}),o=window.URL.createObjectURL(new Blob([n.data],{type:"text/csv"})),l=document.createElement("a");l.href=o,l.download=Y,l.click(),window.URL.revokeObjectURL(o);const i=n.headers??{},a=Number(i["x-row-count"]);if("true"===String(i["x-truncated"]))return void g.notify(Number.isFinite(a)?oe.exportTruncated(a,e.length):oe.exportTruncatedUnknown(e.length));g.success(oe.exported(e.length))}catch{g.error(oe.exportFailed)}};if(N)/* @__PURE__ */return x(c,{});if(A&&0===R.length)/* @__PURE__ */
2
- return x(l,{title:E,message:P,onRetry:$});if(0===R.length)/* @__PURE__ */return x(w,{children:T});const me=R.length>0&&ce.length===R.length,ue=ce.length>0&&!me,pe=U.size-ce.length,fe=[{key:"_select",label:"",defaultWidth:52,minWidth:52,headerNode:/* @__PURE__ */x(a,{"aria-label":re.table.selectAll,checked:me,indeterminate:ue,onChange:ie,style:{height:14,width:14}})},...M],ge=/* @__PURE__ */x(o,{selectedCount:ce.length,hiddenSelectedCount:pe,loadedCount:R.length,totalCount:L,label:B,isFetchingMore:z,extra:H,extraAfter:Q}),ye=_?/* @__PURE__ */C(w,{children:[
3
- /* @__PURE__ */x("div",{ref:_}),z&&/* @__PURE__ */x(p,{size:"sm",padding:"py-3",label:re.list.loadingMore})]}):void 0;let ke=null;if(ee){const{x:t,y:n,item:r,text:o,firstColumn:l}=ee,i=q?q(ce):[],a=ce.length,c=()=>te(null),u=void 0!==L&&L>R.length;ke=/* @__PURE__ */C(d,{portal:!0,style:{left:t,top:n},onClose:c,minWidth:210,children:[
1
+ import{copyToClipboard as e,selectionAt as t}from"./chunk-5HOXR3L4.js";import{useTableNav as n}from"./chunk-ATMJ5ZPK.js";import{escapeHtml as r}from"./chunk-G6DKCCWH.js";import{ListFooter as o}from"./chunk-ASOVTAIT.js";import{ListLoadError as l}from"./chunk-6BNLDGST.js";import{ResizableTable as i}from"./chunk-EAXPSAHZ.js";import{Checkbox_default as a}from"./chunk-CGZBDI6C.js";import{LoadingSpinner as c}from"./chunk-NV7QRWQJ.js";import{PopupMenu as d,PopupMenuLabel as s,PopupMenuItem as h,PopupMenuDivider as m}from"./chunk-ZICGXJUB.js";import{keepsNativeMenu as u}from"./chunk-5QFPTDQF.js";import{LoadingSpinner as p}from"./chunk-R2VKEMZH.js";import{shellHttp as f}from"./chunk-STKJA4PV.js";import{toast_default as g}from"./chunk-JTZVUO3I.js";import{useShellStrings as y}from"./chunk-TJSJVC6P.js";import{useState as k,useRef as b}from"react";import{jsx as x,Fragment as w,jsxs as C}from"react/jsx-runtime";function j(e){return Array.from(e.children).filter(e=>void 0!==e.dataset?.colKey&&"_select"!==e.dataset.colKey)}function v(e){return("string"==typeof e.innerText?e.innerText:e.textContent??"").replace(/\s+/g," ").trim()}function S(S){const{items:R,isLoading:N,emptyState:T,totalCount:A,isError:L,onRetry:$,errorTitle:E,errorMessage:P,tableId:I,columns:K,renderCell:M,getRowId:J=e=>e.id,sort:U,onSort:D,selected:F,setSelected:O,onRowClick:H,onRowHover:V,getRowClassName:Z,footerLabel:B,footerExtra:W,footerExtraAfter:G,sentinelRef:Q,isFetchingNextPage:X,saveDefaultPerms:_,exportEndpoint:z,exportFilename:q="export.csv",contextActions:Y}=S,[ee,te]=k(null),ne=b(null),re=y(),oe=re.entityList,le=e=>{O(t=>{const n=new Set(t),r=J(e);return n.has(r)?n.delete(r):n.add(r),n})},ie=()=>{O(e=>{const t=R.map(J),n=new Set(e);return t.every(t=>e.has(t))?t.forEach(e=>n.delete(e)):t.forEach(e=>n.add(e)),n})},ae=n(R,H,le,ie,(e,t)=>{O(n=>{const r=new Set(n);for(let n=e;n<=t;n++)r.add(J(R[n]));return r})},ne),ce=R.filter(e=>F.has(J(e))),de=()=>{const e=[...ne.current?.querySelectorAll("tr[data-row-idx]")??[]].filter(e=>{const t=R[Number(e.dataset.rowIdx)];return void 0!==t&&F.has(J(t))}),t=e.length?j(e[0]).map(e=>e.dataset.colKey??""):[],n=new Map(K.map(e=>[e.key,e.label]));return{keys:t,header:t.map(e=>n.get(e)??e),body:e.map(e=>j(e).map(v))}},se=()=>{te(null);const{header:t,body:n}=de();if(!n.length)return;const o=[t,...n].map(e=>e.join("\t")).join("\n"),l="<table><thead><tr>"+t.map(e=>`<th>${r(e)}</th>`).join("")+"</tr></thead><tbody>"+n.map(e=>`<tr>${e.map(e=>`<td>${r(e)}</td>`).join("")}</tr>`).join("")+"</tbody></table>";e(oe.copiedRows(n.length),o,l)},he=async()=>{te(null);const e=ce.map(J);if(!e.length||!z)return;const t=new URLSearchParams({ids:e.join(",")}),n=(()=>{const e=new Map(K.map(e=>[e.key,e.exportLabel??e.label]));try{const t=localStorage.getItem(`col-config-${I}`);if(t){const n=JSON.parse(t).filter(t=>!t.hidden&&"_select"!==t.key&&e.has(t.key)).map(t=>`${t.key}|${e.get(t.key)}`);if(n.length)return n.join(",")}}catch{}return K.filter(e=>!e.defaultHidden).map(e=>`${e.key}|${e.exportLabel??e.label}`).join(",")})();n&&t.set("cols",n);const r=z.includes("?")?"&":"?";try{const n=await f.get(`${z}${r}${t}`,{responseType:"blob"}),o=window.URL.createObjectURL(new Blob([n.data],{type:"text/csv"})),l=document.createElement("a");l.href=o,l.download=q,l.click(),window.URL.revokeObjectURL(o);const i=n.headers??{},a=Number(i["x-row-count"]);if("true"===String(i["x-truncated"]))return void g.notify(Number.isFinite(a)?oe.exportTruncated(a,e.length):oe.exportTruncatedUnknown(e.length));g.success(oe.exported(e.length))}catch{g.error(oe.exportFailed)}};if(N)/* @__PURE__ */return x(c,{});if(L&&0===R.length)/* @__PURE__ */
2
+ return x(l,{title:E,message:P,onRetry:$});if(0===R.length)/* @__PURE__ */return x(w,{children:T});const me=R.length>0&&ce.length===R.length,ue=ce.length>0&&!me,pe=F.size-ce.length,fe=[{key:"_select",label:"",defaultWidth:52,minWidth:52,headerNode:/* @__PURE__ */x(a,{"aria-label":re.table.selectAll,checked:me,indeterminate:ue,onChange:ie,style:{height:14,width:14}})},...K],ge=/* @__PURE__ */x(o,{selectedCount:ce.length,hiddenSelectedCount:pe,loadedCount:R.length,totalCount:A,label:B,isFetchingMore:X,extra:W,extraAfter:G}),ye=Q?/* @__PURE__ */C(w,{children:[
3
+ /* @__PURE__ */x("div",{ref:Q}),X&&/* @__PURE__ */x(p,{size:"sm",padding:"py-3",label:re.list.loadingMore})]}):void 0;let ke=null;if(ee){const{x:t,y:n,item:r,text:o,firstColumn:l}=ee,i=Y?Y(ce):[],a=ce.length,c=()=>te(null),u=void 0!==A&&A>R.length;ke=/* @__PURE__ */C(d,{portal:!0,style:{left:t,top:n},onClose:c,minWidth:210,children:[
4
4
  /* @__PURE__ */x(s,{children:pe>0?re.list.selectedNotShown(a,pe):re.list.selected(a)}),
5
- /* @__PURE__ */x(h,{className:"font-medium",onClick:()=>{c(),V(r)},children:oe.open}),
5
+ /* @__PURE__ */x(h,{className:"font-medium",onClick:()=>{c(),H(r)},children:oe.open}),
6
6
  /* @__PURE__ */x(m,{}),o&&/* @__PURE__ */x(h,{onClick:()=>{c(),e(oe.copiedText,o.text,o.html)},children:oe.copy}),l&&/* @__PURE__ */x(h,{onClick:()=>(t=>{te(null);const{keys:n,body:r}=de(),o=n.indexOf(t.key);o<0||!r.length||e(t.label,r.map(e=>e[o]).join("\n"))})(l),children:oe.copyColumn(l.label)}),
7
- /* @__PURE__ */x(h,{disabled:0===a,onClick:se,children:oe.copyRows(a)}),X&&/* @__PURE__ */x(h,{onClick:he,children:oe.exportSelected}),i.map((e,t)=>/* @__PURE__ */C("div",{children:[(e.divider||0===t)&&/* @__PURE__ */x(m,{}),
7
+ /* @__PURE__ */x(h,{disabled:0===a,onClick:se,children:oe.copyRows(a)}),z&&/* @__PURE__ */x(h,{onClick:he,children:oe.exportSelected}),i.map((e,t)=>/* @__PURE__ */C("div",{children:[(e.divider||0===t)&&/* @__PURE__ */x(m,{}),
8
8
  /* @__PURE__ */x(h,{danger:e.danger,disabled:e.disabled,onClick:()=>{c(),e.onClick(ce)},children:e.label})]},t)),
9
- /* @__PURE__ */x(m,{}),!me&&/* @__PURE__ */x(h,{onClick:()=>{c(),D(e=>/* @__PURE__ */new Set([...e,...R.map(O)]))},children:u?oe.selectAllLoaded(R.length):oe.selectAll}),
10
- /* @__PURE__ */x(h,{onClick:()=>{c(),D(/* @__PURE__ */new Set)},children:oe.clearSelection}),$&&/* @__PURE__ */x(h,{onClick:()=>{c(),$()},children:oe.refresh})]})}/* @__PURE__ */
9
+ /* @__PURE__ */x(m,{}),!me&&/* @__PURE__ */x(h,{onClick:()=>{c(),O(e=>/* @__PURE__ */new Set([...e,...R.map(J)]))},children:u?oe.selectAllLoaded(R.length):oe.selectAll}),
10
+ /* @__PURE__ */x(h,{onClick:()=>{c(),O(/* @__PURE__ */new Set)},children:oe.clearSelection}),$&&/* @__PURE__ */x(h,{onClick:()=>{c(),$()},children:oe.refresh})]})}/* @__PURE__ */
11
11
  return C("div",{className:"flex-1 flex flex-col mb-1 bg-white rounded-lg shadow overflow-hidden",children:[
12
- /* @__PURE__ */x("div",{className:"flex-1 min-h-0 flex flex-col",children:/* @__PURE__ */x(i,{tableId:K,columns:fe,sort:F,onSort:J,footer:ge,afterBody:ye,saveDefaultPerms:G,children:e=>/* @__PURE__ */x("tbody",{ref:ne,className:"divide-y divide-gray-100",children:R.map((n,r)=>{const o=O(n);/* @__PURE__ */
13
- return x("tr",{"data-row-idx":r,className:`cursor-pointer ${ae===r?"bg-blue-50 ring-1 ring-inset ring-blue-300":U.has(o)?"bg-blue-50 hover:bg-blue-100":"hover:bg-gray-50"} ${Z?.(n)??""}`,onClick:()=>V(n),onContextMenu:e=>((e,n)=>{if(e.shiftKey||u(e.target))return;e.preventDefault();const r=O(n);U.has(r)||D(/* @__PURE__ */new Set([r]));const o=j(e.currentTarget)[0]?.dataset.colKey,l=o?M.find(e=>e.key===o)?.label:void 0;te({x:e.clientX,y:e.clientY,item:n,text:t(e.target),firstColumn:o&&l?{key:o,label:l}:null})})(e,n),onMouseEnter:W?()=>W(n):void 0,children:e.map(e=>/* @__PURE__ */x("td",{"data-col-key":e.key,className:"px-4 py-3 whitespace-nowrap text-sm overflow-hidden",children:"_select"===e.key?/* @__PURE__ */x(a,{"aria-label":re.table.selectRow,checked:U.has(o),onChange:()=>le(n),onClick:e=>e.stopPropagation(),style:{height:14,width:14}}):I(n,e.key)},e.key))},o)})})})}),ke]})}export{S as EntityList};
12
+ /* @__PURE__ */x("div",{className:"flex-1 min-h-0 flex flex-col",children:/* @__PURE__ */x(i,{tableId:I,columns:fe,sort:U,onSort:D,footer:ge,afterBody:ye,saveDefaultPerms:_,children:e=>/* @__PURE__ */x("tbody",{ref:ne,className:"divide-y divide-gray-100",children:R.map((n,r)=>{const o=J(n);/* @__PURE__ */
13
+ return x("tr",{"data-row-idx":r,className:`cursor-pointer ${ae===r?"bg-blue-50 ring-1 ring-inset ring-blue-300":F.has(o)?"bg-blue-50 hover:bg-blue-100":"hover:bg-gray-50"} ${Z?.(n)??""}`,onClick:()=>H(n),onContextMenu:e=>((e,n)=>{if(e.shiftKey||u(e.target))return;e.preventDefault();const r=J(n);F.has(r)||O(/* @__PURE__ */new Set([r]));const o=j(e.currentTarget)[0]?.dataset.colKey,l=o?K.find(e=>e.key===o)?.label:void 0;te({x:e.clientX,y:e.clientY,item:n,text:t(e.target),firstColumn:o&&l?{key:o,label:l}:null})})(e,n),onMouseEnter:V?()=>V(n):void 0,children:e.map(e=>/* @__PURE__ */x("td",{"data-col-key":e.key,className:"px-4 py-3 whitespace-nowrap text-sm overflow-hidden",children:"_select"===e.key?/* @__PURE__ */x(a,{"aria-label":re.table.selectRow,checked:F.has(o),onChange:()=>le(n),onClick:e=>e.stopPropagation(),style:{height:14,width:14}}):M(n,e.key)},e.key))},o)})})})}),ke]})}export{S as EntityList};
@@ -0,0 +1,3 @@
1
+ import{IconPicker as e}from"./chunk-EQ2KTDOU.js";import{ColorPicker as t}from"./chunk-EKDXJQIP.js";import{InputNumber_default as r,stepRounding as l}from"./chunk-HYQBYMJX.js";import{BORDER_LINE_STYLES as o}from"./chunk-NOMWJTN2.js";import{Icon as a}from"./chunk-JOAKKXTL.js";import{jsxs as i,Fragment as s,jsx as n}from"react/jsx-runtime";var d=["top","right","bottom","left"];function m(e){const t=e??{},r="number"==typeof t.width?t.width:0;return Object.fromEntries(d.map(e=>[e,"number"==typeof t[e]?t[e]:r]))}function h(e,t){const r=e??{},l=m(t),o=d.some(e=>"number"==typeof r[e]),a=d.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 c="h-3.5 w-3.5",p={all:/* @__PURE__ */n(a,{name:"border-all","aria-hidden":"true",className:c}),top:/* @__PURE__ */n(a,{name:"border-top","aria-hidden":"true",className:c}),right:/* @__PURE__ */n(a,{name:"border-right","aria-hidden":"true",className:c}),bottom:/* @__PURE__ */n(a,{name:"border-bottom","aria-hidden":"true",className:c}),left:/* @__PURE__ */n(a,{name:"border-left","aria-hidden":"true",className:c})},u={solid:/* @__PURE__ */n(a,{name:"line-solid","aria-hidden":"true",className:c}),dashed:/* @__PURE__ */n(a,{name:"line-dashed","aria-hidden":"true",className:c}),dotted:/* @__PURE__ */n(a,{name:"line-dotted","aria-hidden":"true",className:c})};function f({label:a,value:m,onChange:h,each:c,placeholder:f,presets:b,words:w,widths:g=!0,styles:y=!0,min:v=0,max:N=20,step:x=1,readOnly:j}){const k=e=>"number"==typeof m[e]?m[e]:null,O=(e,t)=>{const r={...m};if("number"==typeof m.width)for(const e of d)null===k(e)&&(r[e]=m.width);r[e]=t,delete r.width,h(r)},S=(e,t,o,a,i,s)=>/* @__PURE__ */n("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */n(r,{value:a,onChange:s,min:v,max:N,step:x,...l(x),steppers:"compact",readOnly:j,placeholder:i,prefix:o,suffix:w.unit,"aria-label":t})}),C=d.map(k),J="number"==typeof m.width?m.width:C.every(e=>null!==e&&e===C[0])?C[0]:null,K=null===J&&C.some(e=>null!==e),E=d.every(e=>f.sides[e]===f.sides.top)?String(f.sides.top):"–",Q=e=>k(e)??("number"==typeof m.width?m.width:null),T=m.style??f.style;/* @__PURE__ */
2
+ return i("div",{role:"group","aria-label":a,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[g?c?/* @__PURE__ */i(s,{children:[S("left",w.sides.left,p.left,Q("left"),String(f.sides.left),e=>O("left",e)),S("top",w.sides.top,p.top,Q("top"),String(f.sides.top),e=>O("top",e)),S("right",w.sides.right,p.right,Q("right"),String(f.sides.right),e=>O("right",e)),S("bottom",w.sides.bottom,p.bottom,Q("bottom"),String(f.sides.bottom),e=>O("bottom",e))]}):S("all",w.width,p.all,J,K?"–":E,e=>{const t={...m,width:e};for(const e of d)delete t[e];h(t)}):null,y&&/* @__PURE__ */n("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */n(e,{label:w.style,value:T,disabled:j,onChange:e=>{j||h({...m,style:e})},options:o.map(e=>({value:e,label:w.styles[e],icon:u[e]}))})}),
3
+ /* @__PURE__ */n("div",{"data-border-color":"",className:"col-span-2 flex min-w-0 items-center",children:/* @__PURE__ */n(t,{value:m.color??"",onChange:e=>{j||h({...m,color:e})},label:w.color,presets:b,fallback:f.color,showHexInput:!0,size:"md",disabled:j})})]})}export{f as BorderInput,m as borderSides,h as borderStartEach};
@@ -1,4 +1,4 @@
1
- import{Card as e}from"./chunk-BYDSBDVS.js";import{FormField as t}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Input_default as l}from"./chunk-HRDR56SK.js";import{Button_default as a}from"./chunk-EVYD6UFQ.js";import{useState as i}from"react";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";var o={login:{title:"Welcome back",subtitle:"Sign in to your account",cta:"Sign in"},register:{title:"Create your account",subtitle:"Start your 14-day free trial",cta:"Create account"},forgot:{title:"Reset password",subtitle:"We'll email you a reset link",cta:"Send reset link"}};function m({mode:m="login"}){const[u,d]=i(!0),h=o[m];/* @__PURE__ */
1
+ import{Card as e}from"./chunk-BYDSBDVS.js";import{FormField as t}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Input_default as l}from"./chunk-CU3ZE25J.js";import{Button_default as a}from"./chunk-EVYD6UFQ.js";import{useState as i}from"react";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";var o={login:{title:"Welcome back",subtitle:"Sign in to your account",cta:"Sign in"},register:{title:"Create your account",subtitle:"Start your 14-day free trial",cta:"Create account"},forgot:{title:"Reset password",subtitle:"We'll email you a reset link",cta:"Send reset link"}};function m({mode:m="login"}){const[u,d]=i(!0),h=o[m];/* @__PURE__ */
2
2
  return c("div",{className:"flex h-full items-center justify-center overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */n("div",{className:"w-full max-w-sm",children:[
3
3
  /* @__PURE__ */n("div",{className:"mb-6 text-center",children:[
4
4
  /* @__PURE__ */c("div",{className:"mx-auto mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-blue-600 text-sm font-bold text-white",children:"A"}),
@@ -1,2 +1,2 @@
1
- import{Input_default as e}from"./chunk-HRDR56SK.js";import{useState as r,useRef as t}from"react";import{jsx as o}from"react/jsx-runtime";function n({value:n,label:a,onDone:u}){const[l,c]=r(n),i=t(!1),p=e=>{i.current||(i.current=!0,u(e))};/* @__PURE__ */
1
+ import{Input_default as e}from"./chunk-CU3ZE25J.js";import{useState as r,useRef as t}from"react";import{jsx as o}from"react/jsx-runtime";function n({value:n,label:a,onDone:u}){const[l,c]=r(n),i=t(!1),p=e=>{i.current||(i.current=!0,u(e))};/* @__PURE__ */
2
2
  return o(e,{size:"sm",autoFocus:!0,"aria-label":a,value:l,onChange:e=>c(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{e.stopPropagation(),"Enter"===e.key?(e.preventDefault(),p(l.trim()||n)):"Escape"===e.key&&(e.preventDefault(),p(null))},onBlur:()=>p(l.trim()||n),onClick:e=>e.stopPropagation()})}export{n as RenameField};
@@ -0,0 +1,3 @@
1
+ import{DropdownMenu as e}from"./chunk-KCAUYEYR.js";import{Button_default as i}from"./chunk-EVYD6UFQ.js";import{Icon as n}from"./chunk-JOAKKXTL.js";import{Tooltip as r}from"./chunk-SOZCWT6I.js";import{iconButtonClasses as a}from"./chunk-UQYNPYF4.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:g=!1,disabledReason:N,tooltip:w,menuDisabled:x=!1,menuDisabledReason:j,onMenuOpenChange:y,menuFooter:C,menuFooterLabel:W,align:Y="end",side:z="bottom",menuMinWidth:A,linkAs:F,block:L=!1,className:O=""},R){const D=g&&(null!=N&&""!==N&&!1!==N)&&!v,I=x&&null!=j&&""!==j&&!1!==j,K=o(),U=/* @__PURE__ */t(i,{ref:R,type:b,variant:f,size:p,loading:v,leftIcon:k,block:L,disabled:g&&!D,"aria-disabled":!!D||void 0,disabledReason:D?N:void 0,onClick:c,className:`rounded-r-none ${d}`,children:l}),$=L?"relative flex min-w-0 flex-1":"relative inline-flex",E=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",O].filter(Boolean).join(" "),children:[null==w||""===w||D?U:/* @__PURE__ */t(r,{content:w,className:$,children:U}),
3
+ /* @__PURE__ */t(r,{content:I?j:u,describe:!1,className:"relative inline-flex shrink-0",children:/* @__PURE__ */t(e,{"aria-label":u,"aria-describedby":I?K:void 0,items:h,align:Y,side:z,minWidth:A,linkAs:F,disabled:x&&!I,"aria-disabled":I,onOpenChange:y,footer:C,footerLabel:W,triggerClassName:a({variant:f,size:p,className:`rounded-l-none ${m[f]} ${d}`}),trigger:/* @__PURE__ */t(n,{name:"chevron-down",className:E,strokeWidth:2,"aria-hidden":"true"})})}),I&&/* @__PURE__ */t("span",{id:K,className:"sr-only",children:j})]})});export{c as SplitButton_default};
@@ -0,0 +1,4 @@
1
+ import{InputNumber_default as e,stepRounding as r}from"./chunk-HYQBYMJX.js";import{IconButton_default as a}from"./chunk-SV5RRBVA.js";import{Icon as i}from"./chunk-JOAKKXTL.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-TJSJVC6P.js";import{useState as t,useRef as o}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";var c={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},u=["tl","tr","bl","br"];function m({label:m,value:f,corners:p,onChange:h,radius:v=null,onRadiusChange:b,radiusLabel:k,radiusMin:g=0,radiusMax:x,radiusStep:w=1,radiusPlaceholder:y,disabled:A=!1,disabledReason:j,id:C,className:K=""}){const R=l(),M=function(e){const r=u.map(r=>e.find(e=>e.value===r));for(const a of e){if(u.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(p),[N,S]=t(0),J=o(null);/* @__PURE__ */
2
+ return s("div",{id:C,role:"group","aria-label":m,className:`flex min-w-0 flex-wrap items-center gap-2 ${K}`.trim(),children:[b&&
3
+ /* @__PURE__ */d("div",{className:"w-30 shrink-0",children:/* @__PURE__ */d(e,{value:v,onChange:b,min:g,max:x,step:w,...r(w),placeholder:y,prefix:/* @__PURE__ */d("span",{"data-radius-mark":"","aria-hidden":"true",children:R.corners.radiusMark}),suffix:R.corners.unit,steppers:"compact",disabled:A,"aria-label":k??R.corners.radius})}),
4
+ /* @__PURE__ */d("div",{ref:J,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(J.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:M.map((e,r)=>{const l=f.includes(e.value),t=A||!0===e.disabled,o=t&&(!0===e.disabled&&e.title||(A?j:void 0))||void 0,s=/* @__PURE__ */d(a,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":t||void 0,disabledReason:o,"data-corner":e.value,size:"sm",tabIndex:r===N?0:-1,onFocus:()=>S(r),onClick:()=>{t||h(l?f.filter(r=>r!==e.value):[...f,e.value])},children:/* @__PURE__ */d(i,{name:"corner",strokeWidth:2,className:["h-4 w-4",c[e.value]??""].filter(Boolean).join(" ")})},e.value);return o?s:/* @__PURE__ */d(n,{content:e.title??e.label,children:s},e.value)})})]})}export{m as CornersInput};
@@ -1,5 +1,5 @@
1
- import{Icon as e}from"./chunk-T3NLFOLW.js";import{Tooltip as t}from"./chunk-SOZCWT6I.js";import{useShellStrings as n}from"./chunk-TJSJVC6P.js";import{useId as i}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";var l=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.es-default-reset)",'[tabindex]:not([tabindex="-1"])'].join(", "),s=e=>l.split(", ").map(t=>`${e} ${t}`).join(", ");function o({label:o,onReset:d,changed:c=!0,view:u="desktop",detail:b,name:p,tip:m,defaultAction:h,disabled:f,className:k}){const j=n().settingView,y=i(),N=["es-default-reset"];if(c&&N.push("is-changed"),k&&N.push(k),!c&&h)return N.push("is-pressable"),/* @__PURE__ */a(t,{content:h.title,children:/* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":h.title,disabled:f,onClick:h.onPress,children:h.icon})});if(!c)/* @__PURE__ */return a("span",{className:N.join(" "),"aria-hidden":"true"});const T="desktop"===u,x=p??(T?j.resetName(o):j.inheritName(o)),S=b?j.backTo(b):T?j.backToDefault:j.backToAuto,g=m??(b?j.tip(x,S):x);
1
+ import{Icon as e}from"./chunk-JOAKKXTL.js";import{Tooltip as t}from"./chunk-SOZCWT6I.js";import{useShellStrings as n}from"./chunk-TJSJVC6P.js";import{useId as i}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";var l=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.es-default-reset)",'[tabindex]:not([tabindex="-1"])'].join(", "),s=e=>l.split(", ").map(t=>`${e} ${t}`).join(", ");function o({label:o,onReset:d,changed:c=!0,view:u="desktop",detail:b,name:p,tip:m,defaultAction:h,disabled:f,className:k}){const j=n().settingView,y=i(),T=["es-default-reset"];if(c&&T.push("is-changed"),k&&T.push(k),!c&&h)return T.push("is-pressable"),/* @__PURE__ */a(t,{content:h.title,children:/* @__PURE__ */a("button",{type:"button",className:T.join(" "),"aria-label":h.title,disabled:f,onClick:h.onPress,children:h.icon})});if(!c)/* @__PURE__ */return a("span",{className:T.join(" "),"aria-hidden":"true"});const N="desktop"===u,x=p??(N?j.resetName(o):j.inheritName(o)),S=b?j.backTo(b):N?j.backToDefault:j.backToAuto,g=m??(b?j.tip(x,S):x);
2
2
  /* @__PURE__ */
3
3
  return r(t,{content:g,describe:!1,children:[
4
- /* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":x,"aria-describedby":y,disabled:f,onClick:e=>{d(),function(e){const t=e.currentTarget,n=t.closest(".es-field");let i=n?.querySelector(s(".es-field-ctl"))??n?.querySelector(s(".es-field-head"))??null,a=n?null:t.parentElement;for(let e=0;!i&&a&&e<4;e+=1,a=a.parentElement)i=[...a.querySelectorAll(l)].find(e=>e!==t&&!e.closest('[aria-hidden="true"]'))??null;i?.focus()}(e)},children:/* @__PURE__ */a(e,{name:"revert",size:15,"aria-hidden":"true"})}),
4
+ /* @__PURE__ */a("button",{type:"button",className:T.join(" "),"aria-label":x,"aria-describedby":y,disabled:f,onClick:e=>{d(),function(e){const t=e.currentTarget,n=t.closest(".es-field");let i=n?.querySelector(s(".es-field-ctl"))??n?.querySelector(s(".es-field-head"))??null,a=n?null:t.parentElement;for(let e=0;!i&&a&&e<4;e+=1,a=a.parentElement)i=[...a.querySelectorAll(l)].find(e=>e!==t&&!e.closest('[aria-hidden="true"]'))??null;i?.focus()}(e)},children:/* @__PURE__ */a(e,{name:"revert",size:15,"aria-hidden":"true"})}),
5
5
  /* @__PURE__ */a("span",{id:y,hidden:!0,children:S})]})}export{o as SettingReset};
@@ -0,0 +1 @@
1
+ var a=["academic-cap","accent","accordion","account","account-circle","add","add-circle","add-person","adjust","align-center","align-justify","align-left","align-right","align-separate","alignment","anchor","animation","apps","archive-box","arrow","arrow-down","arrow-left","arrow-left-end-on-rectangle","arrow-long-right","arrow-right","arrow-trending-down","arrow-trending-up","arrow-up","arrow-up-right","at-symbol","attach","background","bag","bank","bars-3-bottom-left","battery","beaker","bell","bell-alert","bell-plus","billing","black-and-white","block-badge","block-banner","block-box","block-button","block-column","block-coupon","block-divider","block-footer","block-heading","block-image","block-included-list","block-layered-images","block-product","block-product-title","block-section","block-social","block-spacer","block-text","block-video","blog-post","bold","bolt","book-open","bookmark","bookmark-square","border-all","border-bottom","border-left","border-right","border-top","box-item-alignment","box-justify","box-x-between","box-x-center","box-x-end","box-x-start","box-x-stretch","box-y-between","box-y-center","box-y-end","box-y-start","box-y-stretch","braces","brand-1password","brand-adyen","brand-afterpay","brand-aircall","brand-alipay","brand-amd","brand-americanexpress","brand-anthropic","brand-apple","brand-applepay","brand-aws","brand-bigcommerce","brand-brevo","brand-calendly","brand-campaignmonitor","brand-cloudflare","brand-dell","brand-dhl","brand-dinersclub","brand-dropbox","brand-ebay","brand-etsy","brand-facebook","brand-fedex","brand-github","brand-gmail","brand-googleads","brand-googleanalytics","brand-googlecalendar","brand-googledrive","brand-googlepay","brand-googlesheets","brand-hubspot","brand-instagram","brand-intel","brand-intercom","brand-jcb","brand-klarna","brand-line","brand-linkedin","brand-mailchimp","brand-mailgun","brand-make","brand-mastercard","brand-messenger","brand-meta","brand-myob","brand-notion","brand-nvidia","brand-paypal","brand-pinterest","brand-quickbooks","brand-sage","brand-samsung","brand-shopify","brand-square","brand-squarespace","brand-stripe","brand-telegram","brand-tiktok","brand-trello","brand-ups","brand-visa","brand-vonage","brand-wechat","brand-whatsapp","brand-wise","brand-wix","brand-woocommerce","brand-x","brand-xero","brand-youtube","brand-zapier","brand-zendesk","brand-zoom","breadcrumb","briefcase","bug","bug-ant","building-library","building-office-2","button","button-arrow","button-icon","calculator","calendar","calendar-check","camera","caption","car","card-payment","caret","cart","case","case-capitalized","case-lower","case-normal","case-upper","category","chart","chart-bar","chart-bar-square","chart-line","chat","chat-bubble-left-right","chat-bubble-oval-left-ellipsis","check","check-circle","checkbox","chevron","chevron-double","chevron-double-left","chevron-double-right","chevron-down","chevron-left","chevron-right","chevron-up","chevron-up-down","circle-stack","clear-marks","clipboard","clipboard-check","clipboard-document-list","clipboard-list","clock","close","close-circle","cloud","cloud-alert","cloud-arrow-up","cloud-check","cloud-download","cloud-pause","cloud-slash","code","code-bracket","collapse","collapse-all","column-gap","column-widths","columns","company","compose","contrast","cookie","copied","copy","copy-style","copy-to-page","corner","count-up","crop","crop-bottom","crop-left","crop-left-right","crop-right","crop-top","crop-y","cube-transparent","cursor","cursor-arrow-rays","cursor-click","dashboard","date","desktop","detach","diagram","direction","direction-down","direction-left","direction-right","direction-up","document","document-check","document-magnifying-glass","dollar","dot","download","drag","drop","duplicate","duration","edit","email","emphasis","enter","eraser","error","expand","external","eye","eye-off","face-smile","filter","finish","fire","flag","flag-au","flag-ca","flag-eu","flag-gb","flag-nz","flag-us","folder","folder-open","folder-plus","forward","full-width","gap","gem","gift","globe","grid","ground","hand","hand-thumb-up","hash","headquarters","heart","height","help","help-off","hexagon","home","hover","hover-lift","hover-next-image","hover-none","hover-rotate","hover-zoom","icon-after-text","icon-at-end","icon-before-text","identification","image","image-off","images","inbox","info","italic","key","layers","layout","letter-spacing","lightbulb","line-between","line-dashed","line-dotted","line-solid","line-spacing","line-style","link","link-slash","list","list-format","list-none","location","lock","logo","logout","loop","map","media","media-layout-big-two","media-layout-inset","media-layout-side-by-side","media-layout-stacked","megaphone","menu","meta","microphone","money","moon","more","more-vertical","move-down","move-up","newspaper","no-symbol","note","nudge","nudge-x","nudge-y","numbered-list","opacity","own-text","package","package-open","padding-all","padding-bottom","padding-left","padding-left-right","padding-right","padding-top","padding-x","padding-y","page","paint-brush","palette","panel-left","panel-right","paragraph-spacing","parcel","paste","paste-style","pause","pen","people","percent","phone","phone-hidden","placement","play","plus-minus","power","presentation-chart-bar","print","product","product-field","product-size","progress","quote","radio-dot","radius","receipt","receipt-percent","receipt-refund","rectangle-group","redo","refresh","remove","remove-circle","rename","reply","reply-all","revert","robot","rotate","scale","scroll-point","scroll-text","search","select-all","send","separator-slash","separator-triangle","server","settings","shadow","shape-ellipse","shape-rect","share","shared","shield-check","shield-exclamation","sides-each","signal","signal-slash","sitemap","slide-arrows-bare","slide-arrows-round","slide-arrows-square","slide-picker-bar","slide-picker-cards","slide-picker-dots","slide-picker-numbers","slide-picker-squares","sort","sparkles","speaker","speaker-wave","spec-table","spinner","split","square","star","state","status-circle","status-dot","sticky","stop-circle","store","strike","styles","subscript","success-burst","sun","superscript","swap","swatch","table","tablet","tabs","tag","target","team","telephone","template","text-color","text-lines","text-size","text-small","text-value","texture","theme","ticket","title","trash","trigger","truck","tv","type","tyre","underline","undo","upload","v-align","verified","video-off","view-columns","wallet","warning","weight","wheel","widgets","width","window","windows","words-from","wrap","wrench","wrench-screwdriver","zoom-in"],e=new Set(a),r=a=>"string"==typeof a&&e.has(a),n=["brand-1password","brand-adyen","brand-afterpay","brand-aircall","brand-alipay","brand-amd","brand-americanexpress","brand-anthropic","brand-apple","brand-applepay","brand-aws","brand-bigcommerce","brand-brevo","brand-calendly","brand-campaignmonitor","brand-cloudflare","brand-dell","brand-dhl","brand-dinersclub","brand-dropbox","brand-ebay","brand-etsy","brand-facebook","brand-fedex","brand-github","brand-gmail","brand-googleads","brand-googleanalytics","brand-googlecalendar","brand-googledrive","brand-googlepay","brand-googlesheets","brand-hubspot","brand-instagram","brand-intel","brand-intercom","brand-jcb","brand-klarna","brand-line","brand-linkedin","brand-mailchimp","brand-mailgun","brand-make","brand-mastercard","brand-messenger","brand-meta","brand-myob","brand-notion","brand-nvidia","brand-paypal","brand-pinterest","brand-quickbooks","brand-sage","brand-samsung","brand-shopify","brand-square","brand-squarespace","brand-stripe","brand-telegram","brand-tiktok","brand-trello","brand-ups","brand-visa","brand-vonage","brand-wechat","brand-whatsapp","brand-wise","brand-wix","brand-woocommerce","brand-x","brand-xero","brand-youtube","brand-zapier","brand-zendesk","brand-zoom"],o=new Set(n),d=a=>"string"==typeof a&&o.has(a);export{n as BRAND_ICON_NAMES,a as ICON_NAMES,d as isBrandIconName,r as isIconName};