efficient-shell 13.16.0 → 13.18.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 (132) hide show
  1. package/README.md +7 -0
  2. package/dist/{Browser-4KWGT3FG.js → Browser-ORLSC6T4.js} +15 -15
  3. package/dist/Calculator-4UBMDAJO.js +29 -0
  4. package/dist/{CurrencyConverter-X5ENBDLK.js → CurrencyConverter-H3HHXXKT.js} +6 -6
  5. package/dist/{Files-NT76VUHQ.js → Files-PI3Z4TAO.js} +53 -53
  6. package/dist/Notepad-6FPZHJQ7.js +24 -0
  7. package/dist/PdfViewer-EELX35ZI.js +1 -0
  8. package/dist/{PomodoroTimer-KDXH5M3Q.js → PomodoroTimer-JVCYYGRD.js} +16 -16
  9. package/dist/{Preview-QNJD5PVD.js → Preview-4XSAIYMZ.js} +21 -21
  10. package/dist/{Stock-JR77FPOD.js → Stock-S266KGAF.js} +4 -4
  11. package/dist/{Weather-MGSDU3M5.js → Weather-TE4TTTQA.js} +19 -19
  12. package/dist/{WorldClock-GGAYPYIO.js → WorldClock-5TPBHBYA.js} +6 -6
  13. package/dist/ai/index.js +23 -23
  14. package/dist/apps/ImageAnnotator.js +1 -1
  15. package/dist/apps/index.js +1 -1
  16. package/dist/bin/browser-check.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/BoxPlotChart.js +1 -1
  21. package/dist/charts/CandlestickChart.js +1 -1
  22. package/dist/charts/CartesianPlot.js +1 -1
  23. package/dist/charts/ColumnChart.js +1 -1
  24. package/dist/charts/FunnelChart.js +1 -1
  25. package/dist/charts/HeatmapChart.js +1 -1
  26. package/dist/charts/HistogramChart.js +1 -1
  27. package/dist/charts/PieChart.js +1 -1
  28. package/dist/charts/RangeChart.js +1 -1
  29. package/dist/charts/SankeyChart.js +1 -1
  30. package/dist/charts/ScatterChart.js +1 -1
  31. package/dist/charts/SpecChart.js +1 -1
  32. package/dist/charts/TimeSeriesChart.js +1 -1
  33. package/dist/charts/TreemapChart.js +1 -1
  34. package/dist/charts/WaterfallChart.js +1 -1
  35. package/dist/chunk-2WBKQOLF.js +2 -0
  36. package/dist/{chunk-QE2JX7D4.js → chunk-34HRPEQD.js} +1 -1
  37. package/dist/{chunk-OWAYSIQH.js → chunk-42DF7CDB.js} +5 -5
  38. package/dist/chunk-43JCG6EB.js +1 -0
  39. package/dist/{chunk-J4CVYOY3.js → chunk-4SYPNE3P.js} +1 -1
  40. package/dist/{chunk-OEPQIIYL.js → chunk-63E4ZZYI.js} +1 -1
  41. package/dist/{chunk-CKTFXTJL.js → chunk-6OCA7RKQ.js} +1 -1
  42. package/dist/{chunk-NISLELJF.js → chunk-6UGMQZTF.js} +1 -1
  43. package/dist/{chunk-VYHVIKP6.js → chunk-7SVSHJOO.js} +10 -10
  44. package/dist/{chunk-W6NGPSMM.js → chunk-ABPVCVCT.js} +12 -12
  45. package/dist/{chunk-FKMARSJZ.js → chunk-BNI3N4TT.js} +2 -2
  46. package/dist/{chunk-IJNQ2BUY.js → chunk-CILE3ZCC.js} +2 -2
  47. package/dist/{chunk-XHD6Q6JV.js → chunk-EFO72DEI.js} +1 -1
  48. package/dist/{chunk-IJJNJJ6I.js → chunk-EG5MU7XL.js} +1 -1
  49. package/dist/{chunk-UC5IC3AM.js → chunk-EHM3ZVVT.js} +4 -4
  50. package/dist/{chunk-SHHRC5XK.js → chunk-ENVANMHI.js} +7 -7
  51. package/dist/{chunk-UFWBPTCM.js → chunk-F5F5RKB5.js} +5 -5
  52. package/dist/{chunk-OLSA36VX.js → chunk-FUPU7Z2G.js} +6 -6
  53. package/dist/{chunk-YDFDTRZF.js → chunk-G7SILKUY.js} +5 -5
  54. package/dist/{chunk-BVX7LUAW.js → chunk-GEQZUCEO.js} +6 -6
  55. package/dist/{chunk-J6QC45OS.js → chunk-HC5KQZFG.js} +5 -5
  56. package/dist/{chunk-GNXAVDZD.js → chunk-J5NBRYBF.js} +1 -1
  57. package/dist/chunk-KBQXXPFK.js +1 -0
  58. package/dist/{chunk-MHQW6NAE.js → chunk-KBZMOPPH.js} +10 -10
  59. package/dist/{chunk-N5KJLHYI.js → chunk-LADP6AJY.js} +5 -5
  60. package/dist/{chunk-IG3K6AGW.js → chunk-LUCO5PS6.js} +1 -1
  61. package/dist/chunk-M6UKCZHT.js +2 -0
  62. package/dist/{chunk-H5PSCQJ2.js → chunk-NVKRYUCM.js} +6 -6
  63. package/dist/{chunk-7IXU4YT4.js → chunk-OFFJHTNM.js} +4 -4
  64. package/dist/chunk-OTEAWX2C.js +1 -0
  65. package/dist/chunk-OUYGLDQN.js +24 -0
  66. package/dist/{chunk-7TJZ5AJE.js → chunk-QNXTVDIC.js} +6 -6
  67. package/dist/{chunk-PY4DTB6Y.js → chunk-QSJMLHBD.js} +1 -1
  68. package/dist/{chunk-IUQJGFEO.js → chunk-QTDR2CTB.js} +3 -3
  69. package/dist/{chunk-K2FVP22A.js → chunk-S43DEWMZ.js} +1 -1
  70. package/dist/{chunk-XXTAMF3O.js → chunk-S7YUQLBN.js} +6 -6
  71. package/dist/chunk-SHBZTW7P.js +5 -0
  72. package/dist/chunk-SM3N5UJ2.js +69 -0
  73. package/dist/{chunk-J4KPBR5B.js → chunk-TKCCJRPE.js} +1 -1
  74. package/dist/{chunk-YTDMCUL7.js → chunk-U5RG34NE.js} +10 -10
  75. package/dist/{chunk-NW5NSV7N.js → chunk-V6HKE4HV.js} +2 -2
  76. package/dist/{chunk-OIEFMLYI.js → chunk-VR6LMREE.js} +3 -3
  77. package/dist/{chunk-EJOKROMB.js → chunk-WHPYQOXA.js} +5 -5
  78. package/dist/{chunk-WLBWACKP.js → chunk-WJTNQ7YD.js} +1 -1
  79. package/dist/{chunk-P5C7DI5A.js → chunk-WPGSU4QG.js} +5 -5
  80. package/dist/{chunk-75R3EKWZ.js → chunk-XD3M5ZXM.js} +3 -3
  81. package/dist/chunk-ZI2FDUYJ.js +99 -0
  82. package/dist/data/EntityList.js +1 -1
  83. package/dist/data/ResizableTable.js +1 -1
  84. package/dist/forms/BorderInput.js +1 -1
  85. package/dist/forms/BrandAssetEditor.js +1 -1
  86. package/dist/forms/ColorPicker.js +1 -1
  87. package/dist/forms/CornersInput.js +1 -1
  88. package/dist/forms/InputNumber.js +1 -1
  89. package/dist/forms/MediaLibrary.js +1 -1
  90. package/dist/forms/MediaUploadField.js +1 -1
  91. package/dist/forms/PositionInput.js +1 -1
  92. package/dist/forms/SidesInput.js +1 -1
  93. package/dist/forms/Slider.js +1 -1
  94. package/dist/forms/UnitMenu.js +1 -1
  95. package/dist/forms/WidestLabel.d.ts +26 -0
  96. package/dist/forms/WidestLabel.js +1 -0
  97. package/dist/forms/WidthsBar.js +1 -1
  98. package/dist/icons/brands.node.js +1 -1
  99. package/dist/icons/efficient-glyphs.js +1 -1
  100. package/dist/icons/efficient-looks.js +1 -1
  101. package/dist/icons/efficient.js +1 -1
  102. package/dist/icons/index.js +1 -1
  103. package/dist/icons/looks/map.js +1 -1
  104. package/dist/icons/payment.js +3 -3
  105. package/dist/icons/sets.js +1 -1
  106. package/dist/index.d.ts +2 -0
  107. package/dist/index.js +117 -117
  108. package/dist/pdf/index.js +1 -1
  109. package/dist/shell/FitFrame.d.ts +46 -0
  110. package/dist/shell/FitFrame.js +2 -0
  111. package/dist/shell/LanguageSelect.js +1 -1
  112. package/dist/shell/SettingRow.js +1 -1
  113. package/dist/shell/SidebarLayout.js +1 -1
  114. package/dist/telemetry/index.js +1 -1
  115. package/dist/templates/ChatTemplate.js +1 -1
  116. package/dist/templates/DashboardTemplate.js +1 -1
  117. package/dist/templates/EmailTemplate.js +1 -1
  118. package/dist/ui/index.d.ts +2 -0
  119. package/dist/ui/index.js +1 -1
  120. package/dist/version.js +1 -1
  121. package/package.json +1 -1
  122. package/dist/Calculator-VURS4NAT.js +0 -29
  123. package/dist/Notepad-6AMNAYQQ.js +0 -24
  124. package/dist/PdfViewer-PFQGQRQX.js +0 -1
  125. package/dist/chunk-6QKTQOEV.js +0 -69
  126. package/dist/chunk-74SCWPQF.js +0 -1
  127. package/dist/chunk-JFOMAXD2.js +0 -99
  128. package/dist/chunk-OMOAD5LL.js +0 -1
  129. package/dist/chunk-QAAHFU2I.js +0 -1
  130. package/dist/chunk-XQVGBVHC.js +0 -5
  131. package/dist/chunk-YGKLZBWC.js +0 -24
  132. /package/dist/{chunk-VG6BT2UG.js → chunk-7UCZAUAU.js} +0 -0
package/dist/pdf/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-PFQGQRQX.js"));export{e as PdfViewer};
2
+ import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-EELX35ZI.js"));export{e as PdfViewer};
@@ -0,0 +1,46 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode, CSSProperties } from 'react';
3
+
4
+ /**
5
+ * The scale that fits `logical` into `avail`, capped at `max`. `1` while the
6
+ * room is not measured yet (`avail` 0 or less), so nothing is drawn at a
7
+ * scale of 0.
8
+ */
9
+ declare function fitScale(avail: number, logical: number, max?: number): number;
10
+ /**
11
+ * The scale that fits a drawing into a box on both axes (the axis that binds
12
+ * first wins), capped at `max`.
13
+ */
14
+ declare function fitBoxScale(room: {
15
+ width: number;
16
+ height: number;
17
+ }, drawing: {
18
+ width: number;
19
+ height: number;
20
+ }, max?: number): number;
21
+ /**
22
+ * The style of a drawing at its logical width, scaled from the top left: the
23
+ * one place this transform is written. The caller sets the height: a preview
24
+ * its logical height, a canvas its pane height counter-scaled.
25
+ */
26
+ declare function fitFrameStyle(width: number, scale: number): CSSProperties;
27
+ interface FitFrameProps {
28
+ /** The logical width the children are drawn at, in px. */
29
+ width: number;
30
+ /** The logical height the children are drawn at, in px. */
31
+ height: number;
32
+ /** The largest scale. Default 1: a preview only shrinks. */
33
+ max?: number;
34
+ className?: string;
35
+ children?: ReactNode;
36
+ }
37
+ /**
38
+ * Draws its children at `width` × `height` and scales them from the top left
39
+ * to the frame's own width. The frame takes the painted size in the layout
40
+ * (its width, and `height` × the scale), so a grid of frames lays out as
41
+ * plain boxes. Before the first measure it keeps the aspect ratio and hides
42
+ * the children, so nothing flashes at full size.
43
+ */
44
+ declare function FitFrame({ width, height, max, className, children }: FitFrameProps): react_jsx_runtime.JSX.Element;
45
+
46
+ export { type FitFrameProps, FitFrame as default, fitBoxScale, fitFrameStyle, fitScale };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ export{FitFrame as default,fitBoxScale,fitFrameStyle,fitScale}from"../chunk-M6UKCZHT.js";import"../chunk-MAFUXCPZ.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-ETQ45TBW.js";import"../chunk-IOLUF3UL.js";import"../chunk-3C7JKJGL.js";import"../chunk-VQCKMT5F.js";import"../chunk-RQGLDRRF.js";import"../chunk-64ACCUNN.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-GEITUFYK.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-ETQ45TBW.js";import"../chunk-IOLUF3UL.js";import"../chunk-3C7JKJGL.js";import"../chunk-64ACCUNN.js";import"../chunk-RQGLDRRF.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-GEITUFYK.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";import"../chunk-VQCKMT5F.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SettingRow as default}from"../chunk-UC5IC3AM.js";import"../chunk-5HFKVEWW.js";import"../chunk-HCP7WOAL.js";import"../chunk-2NMW66P5.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{SettingRow as default}from"../chunk-EHM3ZVVT.js";import"../chunk-5HFKVEWW.js";import"../chunk-2NMW66P5.js";import"../chunk-HCP7WOAL.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SidebarLayout as default}from"../chunk-YTDMCUL7.js";import"../chunk-HMOKKMIV.js";import"../chunk-QWK6DRSN.js";import"../chunk-UGTRSRIW.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-BWJZTHZ6.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{SidebarLayout as default}from"../chunk-U5RG34NE.js";import"../chunk-QWK6DRSN.js";import"../chunk-HMOKKMIV.js";import"../chunk-UGTRSRIW.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-BWJZTHZ6.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{startClientTelemetry}from"../chunk-GNXAVDZD.js";import"../chunk-KNUR2UEG.js";import"../chunk-QAAHFU2I.js";
1
+ export{startClientTelemetry}from"../chunk-J5NBRYBF.js";import"../chunk-KNUR2UEG.js";import"../chunk-43JCG6EB.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ChatTemplate as default}from"../chunk-IG3K6AGW.js";import"../chunk-YTDMCUL7.js";import"../chunk-HMOKKMIV.js";import"../chunk-QWK6DRSN.js";import"../chunk-W2TPXKCV.js";import"../chunk-3SIRRK3F.js";import"../chunk-EX3DARI3.js";import"../chunk-VQBKRBBR.js";import"../chunk-NWS5G7FE.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-DWGYC7OD.js";import"../chunk-THAPVKEJ.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{ChatTemplate as default}from"../chunk-LUCO5PS6.js";import"../chunk-U5RG34NE.js";import"../chunk-QWK6DRSN.js";import"../chunk-HMOKKMIV.js";import"../chunk-W2TPXKCV.js";import"../chunk-3SIRRK3F.js";import"../chunk-EX3DARI3.js";import"../chunk-VQBKRBBR.js";import"../chunk-NWS5G7FE.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-DWGYC7OD.js";import"../chunk-THAPVKEJ.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{DashboardTemplate as default}from"../chunk-IJJNJJ6I.js";import"../chunk-S25KELFW.js";import"../chunk-CKCDGSTC.js";import"../chunk-OLSA36VX.js";import"../chunk-W2TPXKCV.js";import"../chunk-VFC6QUEN.js";import"../chunk-YDFDTRZF.js";import"../chunk-465RRWBY.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-YDJ5IZOU.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
1
+ export{DashboardTemplate as default}from"../chunk-EG5MU7XL.js";import"../chunk-S25KELFW.js";import"../chunk-CKCDGSTC.js";import"../chunk-FUPU7Z2G.js";import"../chunk-W2TPXKCV.js";import"../chunk-VFC6QUEN.js";import"../chunk-G7SILKUY.js";import"../chunk-465RRWBY.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-YDJ5IZOU.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-HC5KQZFG.js";import"../chunk-KNZ7YTFH.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{EmailTemplate as default}from"../chunk-J4KPBR5B.js";import"../chunk-YTDMCUL7.js";import"../chunk-HMOKKMIV.js";import"../chunk-QWK6DRSN.js";import"../chunk-W2TPXKCV.js";import"../chunk-SXHV5OLA.js";import"../chunk-UGTRSRIW.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{EmailTemplate as default}from"../chunk-TKCCJRPE.js";import"../chunk-U5RG34NE.js";import"../chunk-QWK6DRSN.js";import"../chunk-HMOKKMIV.js";import"../chunk-W2TPXKCV.js";import"../chunk-SXHV5OLA.js";import"../chunk-UGTRSRIW.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -22,6 +22,7 @@ export { default as MarqueeBox } from '../shell/MarqueeBox.js';
22
22
  export { edgeScrollDelta, getScrollParent, scrollBoundsOf } from '../utils/edgeScroll.js';
23
23
  export { default as ImageLightbox, ImageLightboxProps, LightboxItem, LightboxKind, lightboxKind } from '../shell/ImageLightbox.js';
24
24
  export { LIGHTBOX_PICTURE_FIT, default as ZoomableImage, ZoomableImageProps } from '../shell/ZoomableImage.js';
25
+ export { default as FitFrame, FitFrameProps, fitBoxScale, fitFrameStyle, fitScale } from '../shell/FitFrame.js';
25
26
  export { MediaUsedInItem, default as MediaUsedInList, MediaUsedInListProps } from '../forms/MediaUsedInList.js';
26
27
  export { MediaMoveItemsOptions, MediaMoveTarget, mediaMoveItems, mediaMoveSubmenu, useMediaMoveItems } from '../forms/mediaMoveItems.js';
27
28
  export { MEDIA_FILES_DRAG_TYPE, MEDIA_FILE_DRAG_TYPE, MEDIA_FOLDER_DRAG_TYPE, default as MediaLibrary, MediaLibraryDragFile, MediaLibraryDragOut, MediaLibraryExtraFilter, MediaLibraryFile, MediaLibraryFilters, MediaLibraryFolder, MediaLibraryLocation, MediaLibraryProductNode, MediaLibraryProps, readMediaFileDrag } from '../forms/MediaLibrary.js';
@@ -43,6 +44,7 @@ export { default as Segmented, SegmentedOption, SegmentedProps, SegmentedSize }
43
44
  export { default as IconPicker, IconPickerOption, IconPickerProps } from '../forms/IconPicker.js';
44
45
  export { Side, SideDisplay, SidesEachToggle, SidesGlyphs, default as SidesInput, SidesInputProps, SidesValue, sidesStartEach } from '../forms/SidesInput.js';
45
46
  export { UnitChoice, default as UnitMenu, UnitMenuProps } from '../forms/UnitMenu.js';
47
+ export { default as WidestLabel, WidestLabelAlign, WidestLabelProps } from '../forms/WidestLabel.js';
46
48
  export { PositionAxis, default as PositionInput, PositionInputProps, PositionValue } from '../forms/PositionInput.js';
47
49
  export { default as BorderInput, BorderInputProps, BorderValue, borderSides, borderStartEach } from '../forms/BorderInput.js';
48
50
  export { default as Switch, SwitchProps, SwitchSize } from '../forms/Switch.js';
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import"../chunk-VG6BT2UG.js";export{EmailTemplate}from"../chunk-J4KPBR5B.js";export{ErrorBoundary}from"../chunk-PPLPDP6D.js";export{ErrorPage}from"../chunk-QNWC3RWK.js";export{FormLayoutPage}from"../chunk-BNPWUCZX.js";export{GalleryTemplate}from"../chunk-4G7PJ325.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-YT5HMLC7.js";export{ChatTemplate}from"../chunk-IG3K6AGW.js";export{CheckoutTemplate}from"../chunk-RDETBXMP.js";export{DashboardTemplate}from"../chunk-IJJNJJ6I.js";export{DataTablePage}from"../chunk-YQ5JHHLE.js";export{Stepper}from"../chunk-KTO427N3.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-IJ4JX6WP.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-WJMPTW3G.js";export{TopNav}from"../chunk-MZ3JADHG.js";export{SidebarLayout}from"../chunk-YTDMCUL7.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-BZRFD4DK.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-KQCJWK55.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-IE6TRMIW.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-7CBWSLCW.js";export{ResizeHandle}from"../chunk-HMOKKMIV.js";export{SettingReset}from"../chunk-A7VNKVZO.js";export{SettingRow}from"../chunk-UC5IC3AM.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-FBS55WOX.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-KEVJBI5Q.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-FMLUQCFB.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-LKAGXURQ.js";export{fmtSliderDate,toDayMs}from"../chunk-5CFERCYW.js";export{PageHeader}from"../chunk-NILGK2KJ.js";export{FloatingBar}from"../chunk-5URXJCNC.js";export{GlobalSearch,openGlobalSearch}from"../chunk-2J3C2RR4.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-HGOWQO63.js";export{HelpCenter}from"../chunk-XAT2MKNU.js";export{IconRail,IconRailButton}from"../chunk-OF5X4HKC.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-ETQ45TBW.js";export{EditableGrid}from"../chunk-SUSJFGXN.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{BudgetBar,budgetState}from"../chunk-KYQKMBSY.js";export{Card,StatCard}from"../chunk-S25KELFW.js";export{ContainerFillChart}from"../chunk-HOROMBJB.js";export{CountBadge}from"../chunk-5HFKVEWW.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-IOLUF3UL.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-FDDM7VMQ.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-7I5RJPY7.js";export{ICON_NAMES,isIconName}from"../chunk-3C7JKJGL.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-JDLJ7DHV.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-KGAYYSFE.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-F4VILY3O.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-ORV2AVIJ.js";export{WidthsBar}from"../chunk-H5PSCQJ2.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-EJOKROMB.js";export{Slider,SliderGroup}from"../chunk-UFWBPTCM.js";export{Snippet}from"../chunk-JPSWWIBW.js";export{SplitButton_default as SplitButton}from"../chunk-ZISKHQZY.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-ZVDYRXNP.js";export{NumericKeypad}from"../chunk-ENDYHUUR.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PICTURE_TILES_COLUMNS_VAR,PictureTiles}from"../chunk-SLEA47VA.js";export{PositionInput}from"../chunk-K2FVP22A.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-JPE4TYRQ.js";export{SearchableSelect}from"../chunk-G2JPTPRS.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-XXTAMF3O.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-6OGX7V7L.js";import"../chunk-ZCN5BU4U.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{ImageLightbox,lightboxKind}from"../chunk-FXSGIT53.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-LQCNIQ3I.js";export{EmptyState}from"../chunk-VXSYHTBP.js";export{Breadcrumbs}from"../chunk-OZ4R6U2M.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-L2WBCXG7.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-ZCGT5YNR.js";export{MediaUsedInList}from"../chunk-FFRJ6QZK.js";export{RenameField}from"../chunk-Q4MOT7TY.js";export{NativeSelect,Select_default as Select}from"../chunk-GEITUFYK.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-TPKNHQIE.js";export{DateRangePicker,toISODate}from"../chunk-OXWBSZL2.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-QBMMORYP.js";export{DisplayChips}from"../chunk-TB2ARUE2.js";export{FilePicker_default as FilePicker}from"../chunk-X4E4RPFE.js";export{FormErrorSummary}from"../chunk-CWVQH2SP.js";export{CornersInput}from"../chunk-7IXU4YT4.js";export{DatePicker_default as DatePicker}from"../chunk-EZYXY67W.js";export{Calendar}from"../chunk-FZYUTZEV.js";export{useSort}from"../chunk-XVMCSUAV.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-ZSEB7XW4.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{gridColumnCount}from"../chunk-VNNVG4NR.js";export{AlignmentGrid}from"../chunk-ZYKY4Z7R.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-OIEFMLYI.js";export{IconPicker}from"../chunk-L4ZQY4ZG.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-MHQW6NAE.js";export{Popover}from"../chunk-RJVIKGHJ.js";export{InputNumber_default as InputNumber}from"../chunk-FKMARSJZ.js";export{UnitMenu}from"../chunk-XQVGBVHC.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-BVX7LUAW.js";export{MediaUploadField}from"../chunk-IUQJGFEO.js";export{ImageFocusPoint}from"../chunk-5POQCJL6.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Gantt}from"../chunk-RDVC32EV.js";export{Segmented}from"../chunk-TNALBYLY.js";import"../chunk-EFKJLUYP.js";export{Kanban}from"../chunk-YCXQDUTW.js";export{statusColumn}from"../chunk-WZWSFYXJ.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-CCLK2RPQ.js";export{Pagination}from"../chunk-223XYIIH.js";export{EntityList}from"../chunk-SHHRC5XK.js";import"../chunk-UFX7F3KG.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{ListFooter}from"../chunk-DO3DSSAW.js";export{ListLoadError}from"../chunk-MVOYVN3S.js";export{ResizableTable}from"../chunk-J4CVYOY3.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-C5OPAULN.js";import"../chunk-ULJQYXHB.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{TreemapChart}from"../chunk-75R3EKWZ.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-XHD6Q6JV.js";export{RangeChart}from"../chunk-P5C7DI5A.js";export{RankedBars}from"../chunk-NA4XPE7S.js";export{SankeyChart}from"../chunk-N5KJLHYI.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-OWAYSIQH.js";export{StatTile}from"../chunk-ELPW25CA.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-BWQHABH7.js";export{FunnelChart}from"../chunk-VYHVIKP6.js";export{HeatmapChart}from"../chunk-7TJZ5AJE.js";export{HistogramChart}from"../chunk-IJNQ2BUY.js";export{Meter}from"../chunk-U2ZTHOQL.js";export{PieChart}from"../chunk-OLSA36VX.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-PBSCF2ML.js";export{RadialBarChart}from"../chunk-23LK4PLJ.js";export{ChordChart}from"../chunk-SZFULV7I.js";import"../chunk-ZDFMYAQB.js";export{StepChain,StepChainItem}from"../chunk-Z2Z653OO.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-E7BQZL7X.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Avatar,AvatarGroup}from"../chunk-W2TPXKCV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Z5TE3MEG.js";export{ContextMenu,useContextMenu}from"../chunk-VKZC3NPM.js";export{Banner}from"../chunk-XWJT6TFU.js";export{Input_default as Input}from"../chunk-3SIRRK3F.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-6QH7I2V5.js";export{DropdownMenu}from"../chunk-EX3DARI3.js";import"../chunk-VQBKRBBR.js";export{IconButton_default as IconButton}from"../chunk-NWS5G7FE.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-YWMCW5BN.js";export{TransferProgress}from"../chunk-GUSENWAH.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-VFSAJMNX.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-WLBWACKP.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-OJI4ROSD.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,dayKeyInZone,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,instantOnDayKey,knownZone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,userToday,userZone}from"../chunk-NHKT5IH6.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{DAY_MS,fromDateKey,toDateKey}from"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-W6NGPSMM.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-R5WBDXI2.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartBrush}from"../chunk-MOKABQCY.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-G5UGCAWN.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-YDFDTRZF.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-ZNV75GAG.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-6QKTQOEV.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-M2TQOJ3G.js";import"../chunk-5A7MWTXX.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-FBZUEZK7.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-GMLOMLCS.js";export{Dialog}from"../chunk-UTQN5AIO.js";import"../chunk-EIFNESXS.js";export{ItemCount}from"../chunk-SXHV5OLA.js";import"../chunk-SF4IIV5Z.js";import"../chunk-FRCTA5FS.js";import"../chunk-VWGWZY7A.js";import"../chunk-UVHXVSB2.js";export{ColoredBadge}from"../chunk-WRV6QKJN.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-4U5M37SF.js";import"../chunk-F3ZOO23R.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-DPFEQQQU.js";export{VERSION}from"../chunk-QAAHFU2I.js";export{useFocusTrap,useScrollLock}from"../chunk-DWGYC7OD.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,statusLabel,useStatusLabel}from"../chunk-YDJ5IZOU.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-THAPVKEJ.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TD3ZQD5R.js";export{Tooltip}from"../chunk-F2RAIGCG.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-VQ35LXDC.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";export{BoxPlotChart}from"../chunk-CKTFXTJL.js";export{CandlestickChart}from"../chunk-OEPQIIYL.js";export{CartesianPlot}from"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ import"../chunk-7UCZAUAU.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{DashboardTemplate}from"../chunk-EG5MU7XL.js";export{DataTablePage}from"../chunk-YQ5JHHLE.js";export{EmailTemplate}from"../chunk-TKCCJRPE.js";export{ErrorBoundary}from"../chunk-PPLPDP6D.js";export{ErrorPage}from"../chunk-QNWC3RWK.js";export{FormLayoutPage}from"../chunk-BNPWUCZX.js";export{GalleryTemplate}from"../chunk-4G7PJ325.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-YT5HMLC7.js";export{ChatTemplate}from"../chunk-LUCO5PS6.js";export{CheckoutTemplate}from"../chunk-RDETBXMP.js";export{TopNav}from"../chunk-MZ3JADHG.js";export{Statistic}from"../chunk-IE6TRMIW.js";export{Stepper}from"../chunk-KTO427N3.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-IJ4JX6WP.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-WJMPTW3G.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-U5RG34NE.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-BZRFD4DK.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-KQCJWK55.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-7CBWSLCW.js";export{ResizeHandle}from"../chunk-HMOKKMIV.js";export{SettingReset}from"../chunk-A7VNKVZO.js";export{SettingRow}from"../chunk-EHM3ZVVT.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-ETQ45TBW.js";export{MetricBar}from"../chunk-FBS55WOX.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-KEVJBI5Q.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-FMLUQCFB.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-LKAGXURQ.js";export{fmtSliderDate,toDayMs}from"../chunk-5CFERCYW.js";export{PageHeader}from"../chunk-NILGK2KJ.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-5URXJCNC.js";export{GlobalSearch,openGlobalSearch}from"../chunk-2J3C2RR4.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-HGOWQO63.js";export{HelpCenter}from"../chunk-XAT2MKNU.js";export{IconRail,IconRailButton}from"../chunk-OF5X4HKC.js";import"../chunk-FQEALPZJ.js";export{CountBadge}from"../chunk-5HFKVEWW.js";export{EditableGrid}from"../chunk-SUSJFGXN.js";export{BudgetBar,budgetState}from"../chunk-KYQKMBSY.js";export{Card,StatCard}from"../chunk-S25KELFW.js";export{ContainerFillChart}from"../chunk-HOROMBJB.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-IOLUF3UL.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-FDDM7VMQ.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-7I5RJPY7.js";export{ICON_NAMES,isIconName}from"../chunk-3C7JKJGL.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-ORV2AVIJ.js";export{WidthsBar}from"../chunk-NVKRYUCM.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-WHPYQOXA.js";export{Slider,SliderGroup}from"../chunk-F5F5RKB5.js";export{Snippet}from"../chunk-JPSWWIBW.js";export{SplitButton_default as SplitButton}from"../chunk-ZISKHQZY.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-ZVDYRXNP.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-KGAYYSFE.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-F4VILY3O.js";export{NumericKeypad}from"../chunk-ENDYHUUR.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PICTURE_TILES_COLUMNS_VAR,PictureTiles}from"../chunk-SLEA47VA.js";export{PositionInput}from"../chunk-S43DEWMZ.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-JPE4TYRQ.js";export{SearchableSelect}from"../chunk-G2JPTPRS.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-S7YUQLBN.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-6OGX7V7L.js";import"../chunk-ZCN5BU4U.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{ImageLightbox,lightboxKind}from"../chunk-FXSGIT53.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-LQCNIQ3I.js";export{EmptyState}from"../chunk-VXSYHTBP.js";export{Breadcrumbs}from"../chunk-OZ4R6U2M.js";export{mediaLibraryMenu}from"../chunk-L2WBCXG7.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-ZCGT5YNR.js";export{RenameField}from"../chunk-Q4MOT7TY.js";export{NativeSelect,Select_default as Select}from"../chunk-GEITUFYK.js";import"../chunk-EO5RLFRX.js";import"../chunk-K5YT5PMJ.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-TPKNHQIE.js";export{MediaUsedInList}from"../chunk-FFRJ6QZK.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-QBMMORYP.js";export{DisplayChips}from"../chunk-TB2ARUE2.js";export{FilePicker_default as FilePicker}from"../chunk-X4E4RPFE.js";export{FormErrorSummary}from"../chunk-CWVQH2SP.js";export{CornersInput}from"../chunk-OFFJHTNM.js";export{DatePicker_default as DatePicker}from"../chunk-EZYXY67W.js";export{DateRangePicker,toISODate}from"../chunk-OXWBSZL2.js";export{Calendar}from"../chunk-FZYUTZEV.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-JDLJ7DHV.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{AlignmentGrid}from"../chunk-ZYKY4Z7R.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-VR6LMREE.js";export{IconPicker}from"../chunk-L4ZQY4ZG.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-KBZMOPPH.js";export{Popover}from"../chunk-RJVIKGHJ.js";export{InputNumber_default as InputNumber}from"../chunk-BNI3N4TT.js";export{UnitMenu}from"../chunk-SHBZTW7P.js";export{WidestLabel}from"../chunk-2WBKQOLF.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{BrandAssetEditor}from"../chunk-GEQZUCEO.js";export{MediaUploadField}from"../chunk-QTDR2CTB.js";export{FormField}from"../chunk-6KBDNYRW.js";export{ImageFocusPoint}from"../chunk-5POQCJL6.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{useSort}from"../chunk-XVMCSUAV.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-ZSEB7XW4.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{gridColumnCount}from"../chunk-VNNVG4NR.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{Gantt}from"../chunk-RDVC32EV.js";export{Segmented}from"../chunk-TNALBYLY.js";import"../chunk-EFKJLUYP.js";export{Kanban}from"../chunk-YCXQDUTW.js";export{statusColumn}from"../chunk-WZWSFYXJ.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-CCLK2RPQ.js";export{Pagination}from"../chunk-223XYIIH.js";export{EntityList}from"../chunk-ENVANMHI.js";import"../chunk-UFX7F3KG.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{ListFooter}from"../chunk-DO3DSSAW.js";export{ListLoadError}from"../chunk-MVOYVN3S.js";export{ResizableTable}from"../chunk-4SYPNE3P.js";export{useColumnConfig}from"../chunk-C5OPAULN.js";import"../chunk-ULJQYXHB.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{TreemapChart}from"../chunk-XD3M5ZXM.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-EFO72DEI.js";export{RangeChart}from"../chunk-WPGSU4QG.js";export{RankedBars}from"../chunk-NA4XPE7S.js";export{SankeyChart}from"../chunk-LADP6AJY.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-42DF7CDB.js";export{StatTile}from"../chunk-ELPW25CA.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-BWQHABH7.js";export{FunnelChart}from"../chunk-7SVSHJOO.js";export{HeatmapChart}from"../chunk-QNXTVDIC.js";export{HistogramChart}from"../chunk-CILE3ZCC.js";export{Meter}from"../chunk-U2ZTHOQL.js";export{PieChart}from"../chunk-FUPU7Z2G.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-PBSCF2ML.js";export{RadialBarChart}from"../chunk-23LK4PLJ.js";export{ChordChart}from"../chunk-SZFULV7I.js";import"../chunk-ZDFMYAQB.js";export{StepChain,StepChainItem}from"../chunk-Z2Z653OO.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-E7BQZL7X.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Avatar,AvatarGroup}from"../chunk-W2TPXKCV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Z5TE3MEG.js";export{ContextMenu,useContextMenu}from"../chunk-VKZC3NPM.js";export{Banner}from"../chunk-XWJT6TFU.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-6QH7I2V5.js";export{Input_default as Input}from"../chunk-3SIRRK3F.js";export{DropdownMenu}from"../chunk-EX3DARI3.js";import"../chunk-VQBKRBBR.js";export{IconButton_default as IconButton}from"../chunk-NWS5G7FE.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-YWMCW5BN.js";export{TransferProgress}from"../chunk-GUSENWAH.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-VFSAJMNX.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-WJTNQ7YD.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-OJI4ROSD.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,dayKeyInZone,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,instantOnDayKey,knownZone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,userToday,userZone}from"../chunk-NHKT5IH6.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{DAY_MS,fromDateKey,toDateKey}from"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-ABPVCVCT.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-R5WBDXI2.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartBrush}from"../chunk-MOKABQCY.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-G5UGCAWN.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-G7SILKUY.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-ZNV75GAG.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-SM3N5UJ2.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-M2TQOJ3G.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-FBZUEZK7.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-GMLOMLCS.js";export{Dialog}from"../chunk-UTQN5AIO.js";import"../chunk-EIFNESXS.js";export{ItemCount}from"../chunk-SXHV5OLA.js";import"../chunk-SF4IIV5Z.js";import"../chunk-FRCTA5FS.js";import"../chunk-VWGWZY7A.js";import"../chunk-UVHXVSB2.js";export{ColoredBadge}from"../chunk-WRV6QKJN.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-4U5M37SF.js";import"../chunk-F3ZOO23R.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-DPFEQQQU.js";export{VERSION}from"../chunk-43JCG6EB.js";export{useFocusTrap,useScrollLock}from"../chunk-DWGYC7OD.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,statusLabel,useStatusLabel}from"../chunk-YDJ5IZOU.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-THAPVKEJ.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TD3ZQD5R.js";export{Tooltip}from"../chunk-F2RAIGCG.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";export{FitFrame,fitBoxScale,fitFrameStyle,fitScale}from"../chunk-M6UKCZHT.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-VQ35LXDC.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";export{BoxPlotChart}from"../chunk-6OCA7RKQ.js";export{CandlestickChart}from"../chunk-63E4ZZYI.js";export{CartesianPlot}from"../chunk-HC5KQZFG.js";import"../chunk-KNZ7YTFH.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-QAAHFU2I.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-43JCG6EB.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "13.16.0",
3
+ "version": "13.18.0",
4
4
  "description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",
@@ -1,29 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-PY4DTB6Y.js";import{useWidgetSettings as n}from"./chunk-JFOMAXD2.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-M2TQOJ3G.js";import"./chunk-5A7MWTXX.js";import"./chunk-FBZUEZK7.js";import"./chunk-BG3C4ALM.js";import"./chunk-GMLOMLCS.js";import"./chunk-UTQN5AIO.js";import"./chunk-EIFNESXS.js";import"./chunk-SXHV5OLA.js";import"./chunk-SF4IIV5Z.js";import"./chunk-FRCTA5FS.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-WRV6QKJN.js";import"./chunk-AW7TOB6N.js";import"./chunk-4U5M37SF.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-DWGYC7OD.js";import"./chunk-YDJ5IZOU.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as r}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-IUVGHHR3.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as o,useEffect as s}from"react";import{jsxs as l,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[j,N]=c(!1),[y,x]=c(""),[C,f]=c([]),[v,$]=c(!1),[S,T]=c(()=>e(h)),[F,E]=c(!1),[U,A]=c(S),D=i(null);n(o(()=>{A({...S}),E(!0)},[S]));const W=o(e=>{x(""),k(t=>j||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[j]),R=o(()=>{k("0"),d(null),g(null),N(!1)},[]),J=o((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),V=o(e=>{const t=parseFloat(m);if(null!==p&&b&&!j){const e=J(p,t,b);k(String(e)),d(e),f(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),N(!0)},[m,p,b,j,J]),O=o(()=>{if(null===p||!b)return;const e=parseFloat(m),t=J(p,e,b),n=`${p} ${b} ${e} =`;f(e=>[`${n} ${t}`,...e].slice(0,20)),x(n),k(String(t)),d(null),g(null),N(!0)},[m,p,b,J]),Q=o(()=>{k(e=>String(parseFloat(e)/100))},[]),Z=o(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);s(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?W(e.key):"."===e.key?W("."):"+"===e.key?V("+"):"-"===e.key?V("-"):"*"===e.key?V("×"):"/"===e.key?(e.preventDefault(),V("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&D.current?.contains(e.target)&&e.preventDefault(),O()):"Escape"===e.key?R():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&Q())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[W,V,O,R,Q]);const w="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",M=`${w} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,B=`${w} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,G=`${w} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,Y=`${w} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return l(a,{children:[
3
- /* @__PURE__ */l("div",{ref:D,className:"flex flex-col h-full",style:{opacity:S.activeOpacity/100,backdropFilter:S.activeBlur>0?`blur(${S.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */l("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:C.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${j?"":m}`}),
6
- /* @__PURE__ */l("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
8
- /* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(m)})]})]}),
9
- /* @__PURE__ */l("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */u("button",{onClick:R,className:G,children:"AC"}),
11
- /* @__PURE__ */u("button",{onClick:Z,className:G,children:"+/−"}),
12
- /* @__PURE__ */u("button",{onClick:Q,className:G,children:"%"}),
13
- /* @__PURE__ */u("button",{onClick:()=>V("÷"),className:`${B} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */u("button",{onClick:()=>W("7"),className:M,children:"7"}),
15
- /* @__PURE__ */u("button",{onClick:()=>W("8"),className:M,children:"8"}),
16
- /* @__PURE__ */u("button",{onClick:()=>W("9"),className:M,children:"9"}),
17
- /* @__PURE__ */u("button",{onClick:()=>V("×"),className:`${B} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */u("button",{onClick:()=>W("4"),className:M,children:"4"}),
19
- /* @__PURE__ */u("button",{onClick:()=>W("5"),className:M,children:"5"}),
20
- /* @__PURE__ */u("button",{onClick:()=>W("6"),className:M,children:"6"}),
21
- /* @__PURE__ */u("button",{onClick:()=>V("-"),className:`${B} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */u("button",{onClick:()=>W("1"),className:M,children:"1"}),
23
- /* @__PURE__ */u("button",{onClick:()=>W("2"),className:M,children:"2"}),
24
- /* @__PURE__ */u("button",{onClick:()=>W("3"),className:M,children:"3"}),
25
- /* @__PURE__ */u("button",{onClick:()=>V("+"),className:`${B} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */u("button",{onClick:()=>W("0"),className:`${M} col-span-2`,children:"0"}),
27
- /* @__PURE__ */u("button",{onClick:()=>W("."),className:M,children:"."}),
28
- /* @__PURE__ */u("button",{onClick:O,className:Y,children:"="})]})]}),
29
- /* @__PURE__ */u(t,{open:F,onClose:()=>E(!1),title:"Calculator Settings",appearance:U,onAppearanceChange:A,onSave:()=>{T(U),localStorage.setItem(h,JSON.stringify(U)),E(!1)}})]})}export{m as default};
@@ -1,24 +0,0 @@
1
- import{getNumberingConfigs as e}from"./chunk-QE2JX7D4.js";import{SidebarLayout as t}from"./chunk-YTDMCUL7.js";import"./chunk-HMOKKMIV.js";import"./chunk-QWK6DRSN.js";import{timeAgo as r}from"./chunk-OJI4ROSD.js";import"./chunk-NHKT5IH6.js";import"./chunk-36BRD5J3.js";import"./chunk-JRQMX4PK.js";import"./chunk-LF27WIN2.js";import{AboutApp as n}from"./chunk-NW5NSV7N.js";import{useWindowManager as o,client_default as i}from"./chunk-JFOMAXD2.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-M2TQOJ3G.js";import"./chunk-5A7MWTXX.js";import"./chunk-FBZUEZK7.js";import"./chunk-BG3C4ALM.js";import"./chunk-GMLOMLCS.js";import"./chunk-UTQN5AIO.js";import"./chunk-EIFNESXS.js";import"./chunk-SXHV5OLA.js";import"./chunk-SF4IIV5Z.js";import"./chunk-FRCTA5FS.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-WRV6QKJN.js";import"./chunk-AW7TOB6N.js";import"./chunk-4U5M37SF.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-DPFEQQQU.js";import"./chunk-QAAHFU2I.js";import"./chunk-DWGYC7OD.js";import"./chunk-YDJ5IZOU.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as s}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import{toast_default as l}from"./chunk-VQ35LXDC.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-IUVGHHR3.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as g,jsx as x}from"react/jsx-runtime";var y=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:j,save:N}=c(),{data:v}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),T=a({});p(()=>{if(!v)return;const e={};for(const t of v){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}T.current=e},[v]);const w=j.notepad_notes||[],[_,S]=d(null),[C,D]=d(""),[U,W]=d(""),[O,F]=d("yellow"),[I,Q]=d(!1),[R,V]=d(!1),X=a(null),J=a();p(()=>{if(!_&&w.length>0){const e=w[0];S(e.id),D(e.title),W(e.content),F(e.color)}},[w.length]);const $=m(e=>{N({notepad_notes:e})},[N]),A=m(()=>{if(!_||!I)return;const e=w.map(e=>e.id===_?{...e,title:C,content:U,color:O,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);$(e),Q(!1)},[_,I,C,U,O,w,$]);p(()=>{if(I)return J.current&&clearTimeout(J.current),J.current=setTimeout(A,800),()=>{J.current&&clearTimeout(J.current)}},[I,A]),p(()=>()=>{I&&A()},[]);const M=e=>{I&&A(),S(e.id),D(e.title),W(e.content),F(e.color),Q(!1),V(!1)},H=e=>{const t=U.slice(0,e),r=U.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=U.slice(e+r[0].length);W(t+n+o),Q(!0)},Z=async(e,t)=>{const r=T.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):l.error(`${n} not found`)}catch{l.error(`Failed to look up ${n}`)}},K="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",E=/* @__PURE__ */h(g,{children:[
2
- /* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{I&&A();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...w];$(t),S(e.id),D(""),W(""),F("yellow"),Q(!1),V(!0),setTimeout(()=>X.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-accent-fill text-on-accent px-3 min-h-8 py-1 text-sm font-medium hover:bg-accent-fill-hover transition-colors",children:[
3
- /* @__PURE__ */x(s,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
4
- /* @__PURE__ */x("div",{className:"flex-1 overflow-y-auto",children:0===w.length?/* @__PURE__ */x("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):w.map(e=>{const t=(n=e.color,y.find(e=>e.key===n)||y[0]);var n;/* @__PURE__ */
5
- return h("button",{onClick:()=>M(e),className:"w-full text-left px-3 py-3 border-b border-line-subtle transition-colors "+(_===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
6
- /* @__PURE__ */h("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */x("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
8
- /* @__PURE__ */x("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"})]}),
9
- /* @__PURE__ */x("p",{className:"text-xs text-ink-faintest mt-0.5 truncate ml-5",children:e.content.replace(/\[[ xX]?\]/g,"").slice(0,60)||"Empty note"}),
10
- /* @__PURE__ */x("p",{className:"text-2xs text-gray-300 mt-0.5 ml-5",children:r(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
11
- return h("div",{className:"h-full",children:[
12
- /* @__PURE__ */x(n,{app:"notepad"}),
13
- /* @__PURE__ */x(t,{sidebar:E,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:_?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
14
- /* @__PURE__ */h("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
15
- /* @__PURE__ */x("input",{value:C,onChange:e=>{D(e.target.value),Q(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
- /* @__PURE__ */x("div",{className:"flex gap-1",children:y.map(e=>/* @__PURE__ */x("button",{onClick:()=>{F(e.key),Q(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${O===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
- /* @__PURE__ */x("button",{onClick:()=>(e=>{const t=w.filter(t=>t.id!==e);if($(t),_===e){const e=t[0];e?M(e):(S(null),D(""),W(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */x(s,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),R?/* @__PURE__ */x("textarea",{ref:X,value:U,onChange:e=>{W(e.target.value),Q(!0)},onBlur:()=>{V(!1),I&&A()},placeholder:K,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */x("div",{onClick:()=>{V(!0),setTimeout(()=>X.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:U?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],c=/([A-Z]{2,4})#(\d{4,6})/g;let l;for(;null!==(l=c.exec(e));){const e=l[1],t=l[2];if(T.current[e]){const n=l.index,o=l[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */x("button",{onClick:()=>Z(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let a=0;for(let e=0;e<r;e++)a+=t[e].length+1;for(;null!==(l=b.exec(e));){const e="x"===l[1]||"X"===l[1],t=l.index,n=a+t;i.push({idx:t,len:l[0].length,render:()=>/* @__PURE__ */x("button",{onClick:()=>H(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */x(s,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */x("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */x("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */x("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
18
- return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(U):/* @__PURE__ */x("p",{className:"text-gray-300 whitespace-pre-line",children:K})}),
19
- /* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-line-subtle flex items-center gap-4 text-2xs text-ink-faintest",children:[
20
- /* @__PURE__ */x("span",{children:"[] checkbox"}),
21
- /* @__PURE__ */x("span",{children:"SO#35001 entity link"}),
22
- /* @__PURE__ */x("span",{className:"ml-auto",children:R?"Editing":"Click to edit"})]})]}):/* @__PURE__ */x("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
23
- /* @__PURE__ */x(s,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
24
- /* @__PURE__ */x("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
@@ -1 +0,0 @@
1
- export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-YGKLZBWC.js";import"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-VQ35LXDC.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-IUVGHHR3.js";import"./chunk-C3QOHMR6.js";
@@ -1,69 +0,0 @@
1
- import{toast_default as e}from"./chunk-VQ35LXDC.js";import{useShellStrings as t}from"./chunk-IUVGHHR3.js";import{forwardRef as r,useRef as n,useState as o,useMemo as i,useEffect as a,useImperativeHandle as l}from"react";import{jsx as s,jsxs as c,Fragment as d}from"react/jsx-runtime";var h=["#ef4444","#f97316","#eab308","#22c55e","#3b82f6","#8b5cf6","#000000","#ffffff"],u=[{id:"system",name:"fontSystem",css:"-apple-system, system-ui, sans-serif"},{id:"serif",name:"fontSerif",css:'Georgia, "Times New Roman", serif'},{id:"mono",name:"fontMono",css:'ui-monospace, "SF Mono", Menlo, monospace'},{id:"cursive",name:"fontCursive",css:'"Brush Script MT", "Comic Sans MS", cursive'}],p=()=>Math.random().toString(36).slice(2,9),y=r(function({src:r,filename:y,onApply:m,onCancel:g},N){const L=n(null),z=n(null),D=n(null),P=n(null),$=t().annotator,E=n($);E.current=$;const[I,S]=o("select"),[W,B]=o(h[0]),[R,j]=o(4),[H,F]=o(24),[T,U]=o(u[0].id),[A,O]=o(!0),[V,K]=o(!1),[X,Z]=o(!1),[G,q]=o(null),[Y,_]=o(null),[Q,J]=o(6),[ee,te]=o(12),[re,ne]=o([]),[oe,ie]=o(null),[ae,le]=o(null),[se,ce]=o(null),[de,he]=o(1),[ue,pe]=o(null),[ye,xe]=o(null),[me,ge]=o(null),we=n(null),[fe,ve]=o(!1),be=i(()=>se?{w:se.w*de,h:se.h*de}:null,[se,de]),ke=be&&ae?be.w/ae.w:1,Me=i(()=>re.find(e=>e.id===oe)??null,[re,oe]);a(()=>{"select"===I&&Me&&("color"in Me&&B(Me.color),"stroke"in Me&&j(Me.stroke),"rect"===Me.type&&te(Me.radius),"text"===Me.type&&(F(Me.size),U(Me.font),O(Me.bold),K(Me.italic),Z(Me.underline),q(Me.borderColor),_(Me.background),J(Me.padding)))},[oe]),a(()=>{const t=new Image;t.crossOrigin="anonymous",t.onload=()=>{P.current=t,le({w:t.naturalWidth,h:t.naturalHeight}),ne([]),ie(null)},t.onerror=()=>e.error(E.current.loadFailed),t.src=r},[r]),a(()=>{if(!ae)return;const e=()=>{const e=L.current;if(!e)return;const t=e.getBoundingClientRect(),r=Math.max(0,t.width-32),n=Math.max(0,t.height-32);if(0===r||0===n)return;const o=ae.w/ae.h;let i=ae.w,a=ae.h;i>r&&(i=r,a=i/o),a>n&&(a=n,i=a*o),ce({w:i,h:a})};e();const t=new ResizeObserver(e);return L.current&&t.observe(L.current),()=>t.disconnect()},[ae]);const Ne=i(()=>re.filter(e=>"mosaic"===e.type),[re]);a(()=>{const e=P.current,t=z.current;if(!e||!t||!ae)return;t.width=ae.w,t.height=ae.h;const r=t.getContext("2d");r.drawImage(e,0,0);for(const e of Ne)C(r,e)},[ae,Ne,se]);const Ce=e=>{const t=D.current;if(!t)return{x:0,y:0};const r=t.createSVGPoint();r.x=e.clientX,r.y=e.clientY;const n=t.getScreenCTM();if(!n)return{x:0,y:0};const o=r.matrixTransform(n.inverse());return{x:o.x,y:o.y}},Le=e=>{we.current=e,ve(!0)};a(()=>{if(!fe)return;const e=e=>{const t=we.current;if(!t)return;const r=Ce(e);if("draw"===t.kind)pe(v(I,t.start,r,W,R,ee));else if("pen"===t.kind){const e=t.points[t.points.length-1];(Math.abs(r.x-e.x)>1||Math.abs(r.y-e.y)>1)&&(t.points.push(r),pe({id:"",type:"draw",points:t.points.slice(),color:W,stroke:R}))}else if("crop"===t.kind)ge(M(t.start,r));else if("move"===t.kind){const e=r.x-t.start.x,n=r.y-t.start.y;ne(r=>r.map(r=>r.id===t.id?b(t.original,e,n):r))}else"resize"===t.kind&&ne(e=>e.map(e=>e.id===t.id?function(e,t,r){if("arrow"===e.type)return"start"===t?{...e,x1:r.x,y1:r.y}:"end"===t?{...e,x2:r.x,y2:r.y}:e;if("text"===e.type||"draw"===e.type)return e;const n=e.x,o=e.x+e.w,i=e.y,a=e.y+e.h;let l=n,s=i,c=o,d=a;"nw"===t&&(l=r.x,s=r.y);"ne"===t&&(c=r.x,s=r.y);"se"===t&&(c=r.x,d=r.y);"sw"===t&&(l=r.x,d=r.y);const h=M({x:l,y:s},{x:c,y:d});return{...e,x:h.x,y:h.y,w:h.w,h:h.h}}(t.original,t.corner,r):e))},t=()=>{const e=we.current;if(we.current=null,ve(!1),"draw"===e?.kind)pe(e=>{if(!e||("arrow"===(t=e).type?Math.abs(t.x2-t.x1)<4&&Math.abs(t.y2-t.y1)<4:"draw"===t.type?t.points.length<2:"w"in t&&"h"in t&&(t.w<4||t.h<4)))return null;var t;const r={...e,id:p()};return ne(e=>[...e,r]),ie(r.id),S("select"),null});else if("pen"===e?.kind){if(e.points.length<2)return void pe(null);const t={id:p(),type:"draw",points:e.points,color:W,stroke:R};ne(e=>[...e,t]),ie(t.id),S("select"),pe(null)}};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),window.addEventListener("pointercancel",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t),window.removeEventListener("pointercancel",t)}},[fe,I,W,R,ee]);a(()=>{const e=e=>{if(!document.activeElement||!/^(INPUT|TEXTAREA)$/.test(document.activeElement.tagName))return!e.metaKey&&!e.ctrlKey||"z"!==e.key&&"Z"!==e.key||e.shiftKey?void(oe&&("Delete"===e.key||"Backspace"===e.key?(e.preventDefault(),ne(e=>e.filter(e=>e.id!==oe)),ie(null)):"Escape"===e.key&&ie(null))):(e.preventDefault(),ne(e=>e.slice(0,-1)),void ie(null))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[oe]);const ze=e=>{const t=!{bold:A,italic:V,underline:X}[e];"bold"===e&&O(t),"italic"===e&&K(t),"underline"===e&&Z(t),oe&&ne(r=>r.map(r=>r.id===oe&&"text"===r.type?{...r,[e]:t}:r))},De=e=>{q(e),oe&&ne(t=>t.map(t=>t.id===oe&&"text"===t.type?{...t,borderColor:e}:t))},Pe=e=>{_(e),oe&&ne(t=>t.map(t=>t.id===oe&&"text"===t.type?{...t,background:e}:t))},$e=e=>{if(!ye)return;const t=e??ye.value;if(!t.trim())return ye.editingId&&ne(e=>e.filter(e=>e.id!==ye.editingId)),void xe(null);if(ye.editingId)ne(e=>e.map(e=>e.id===ye.editingId&&"text"===e.type?{...e,text:t}:e));else{const e={id:p(),type:"text",x:ye.x,y:ye.y,text:t,color:W,size:H,font:T,bold:A,italic:V,underline:X,borderColor:G,background:Y,padding:Q};ne(t=>[...t,e]),ie(e.id),S("select")}xe(null)},Ee=async()=>{const e=z.current,t=D.current;if(!e||!t||!ae)return null;const r=document.createElement("canvas");r.width=ae.w,r.height=ae.h;const n=r.getContext("2d");n.drawImage(e,0,0);const o=t.cloneNode(!0);o.querySelectorAll("[data-chrome]").forEach(e=>e.remove());const i=(new XMLSerializer).serializeToString(o),a=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),l=URL.createObjectURL(a),s=new Image;return await new Promise(e=>{s.onload=()=>e(),s.onerror=()=>e(),s.src=l}),n.drawImage(s,0,0,ae.w,ae.h),URL.revokeObjectURL(l),r};l(N,()=>({save:async()=>{const t=await Ee();t&&t.toBlob(t=>{if(!t)return void e.error(E.current.exportFailed);const r=URL.createObjectURL(t),n=document.createElement("a");n.href=r;const o=y.replace(/\.[^.]+$/,"");n.download=`${o}-annotated.png`,n.click(),URL.revokeObjectURL(r)},"image/png")},copy:async()=>{if(!("clipboard"in navigator)||"undefined"==typeof ClipboardItem)return void e.error(E.current.clipboardUnsupported);const t=await Ee();t&&t.toBlob(async t=>{if(t)try{await navigator.clipboard.write([new ClipboardItem({"image/png":t})]),e.success(E.current.copied)}catch{e.error(E.current.copyRefused)}else e.error(E.current.copyFailed)},"image/png")}}),[ae,y]);const Ie=i(()=>[{id:"select",label:$.toolSelect,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3l7 17 2-7 7-2L5 3z"})})},{id:"draw",label:$.toolDraw,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487z"})})},{id:"rect",label:$.toolRect,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("rect",{x:"4",y:"6",width:"16",height:"12",rx:"3"})})},{id:"circle",label:$.toolEllipse,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("ellipse",{cx:"12",cy:"12",rx:"8",ry:"6"})})},{id:"arrow",label:$.toolArrow,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 19L19 5m0 0h-7m7 0v7"})})},{id:"mosaic",label:$.toolMosaic,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z"})})},{id:"text",label:$.toolText,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M12 6v14M9 20h6"})})},{id:"crop",label:$.toolCrop,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 2v15a1 1 0 001 1h15M2 6h15a1 1 0 011 1v15"})})}],[$]),Se=e=>"p-2 rounded transition-colors "+(e?"bg-blue-500 text-on-accent":"text-ink hover:bg-gray-200"),We=Me?.type??("select"===I?null:I),Be="rect"===We||"circle"===We||"arrow"===We||"draw"===We,Re="rect"===We,je="text"===We;/* @__PURE__ */
2
- return c("div",{className:"flex flex-col h-full bg-gray-100",children:[
3
- /* @__PURE__ */c("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-line bg-surface shrink-0 flex-wrap text-xs",children:[Ie.map(e=>/* @__PURE__ */s("button",{onClick:()=>{S(e.id),ie(null)},title:e.label,className:Se(I===e.id),children:e.icon},e.id)),
4
- /* @__PURE__ */s("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
5
- /* @__PURE__ */s("div",{className:"flex items-center gap-1",children:h.map(e=>/* @__PURE__ */s("button",{onClick:()=>(e=>{B(e),oe&&ne(t=>t.map(t=>t.id!==oe||"mosaic"===t.type?t:{...t,color:e}))})(e),title:e,className:"h-5 w-5 rounded-full border "+(W===e?"ring-2 ring-blue-500 ring-offset-1":"border-gray-300"),style:{background:e}},e))}),Be&&/* @__PURE__ */c(d,{children:[
6
- /* @__PURE__ */s("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
7
- /* @__PURE__ */c("label",{className:"flex items-center gap-2 text-gray-600",children:[
8
- /* @__PURE__ */s("span",{children:$.weight}),
9
- /* @__PURE__ */s("input",{type:"range",min:1,max:20,step:1,value:R,onChange:e=>{return t=Number(e.target.value),j(t),void(oe&&ne(e=>e.map(e=>e.id!==oe?e:"rect"===e.type||"circle"===e.type||"arrow"===e.type||"draw"===e.type?{...e,stroke:t}:e)));var t},className:"w-16 accent-blue-500"}),
10
- /* @__PURE__ */s("span",{className:"tabular-nums w-5 text-right",children:R})]})]}),Re&&/* @__PURE__ */c(d,{children:[
11
- /* @__PURE__ */s("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
12
- /* @__PURE__ */c("label",{className:"flex items-center gap-2 text-gray-600",children:[
13
- /* @__PURE__ */s("span",{children:$.radius}),
14
- /* @__PURE__ */s("input",{type:"range",min:0,max:48,step:1,value:ee,onChange:e=>{return t=Number(e.target.value),te(t),void(oe&&ne(e=>e.map(e=>e.id===oe&&"rect"===e.type?{...e,radius:t}:e)));var t},className:"w-16 accent-blue-500"}),
15
- /* @__PURE__ */s("span",{className:"tabular-nums w-6 text-right",children:ee})]})]}),je&&/* @__PURE__ */c(d,{children:[
16
- /* @__PURE__ */s("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
17
- /* @__PURE__ */s("select",{value:T,onChange:e=>{return t=e.target.value,U(t),void(oe&&ne(e=>e.map(e=>e.id===oe&&"text"===e.type?{...e,font:t}:e)));var t},className:"text-xs border border-gray-300 rounded px-1 py-0.5 bg-white",children:u.map(e=>/* @__PURE__ */s("option",{value:e.id,children:$[e.name]},e.id))}),
18
- /* @__PURE__ */s("button",{onClick:()=>ze("bold"),className:Se(A),title:$.bold,children:/* @__PURE__ */s("span",{className:"font-bold",children:$.boldLetter})}),
19
- /* @__PURE__ */s("button",{onClick:()=>ze("italic"),className:Se(V),title:$.italic,children:/* @__PURE__ */s("span",{className:"italic",children:$.italicLetter})}),
20
- /* @__PURE__ */s("button",{onClick:()=>ze("underline"),className:Se(X),title:$.underline,children:/* @__PURE__ */s("span",{className:"underline",children:$.underlineLetter})}),
21
- /* @__PURE__ */c("label",{className:"flex items-center gap-2 text-gray-600",children:[
22
- /* @__PURE__ */s("span",{children:$.size}),
23
- /* @__PURE__ */s("input",{type:"range",min:10,max:96,step:1,value:H,onChange:e=>{return t=Number(e.target.value),F(t),void(oe&&ne(e=>e.map(e=>e.id===oe&&"text"===e.type?{...e,size:t}:e)));var t},className:"w-16 accent-blue-500"}),
24
- /* @__PURE__ */s("span",{className:"tabular-nums w-7 text-right",children:H})]}),
25
- /* @__PURE__ */c("label",{className:"flex items-center gap-1 text-gray-600",children:[
26
- /* @__PURE__ */s("span",{children:$.border}),G?/* @__PURE__ */c(d,{children:[
27
- /* @__PURE__ */s("input",{type:"color",value:G,onChange:e=>De(e.target.value),title:$.borderColor,className:"h-5 w-6 rounded border border-gray-300 bg-white p-0 cursor-pointer"}),
28
- /* @__PURE__ */s("button",{onClick:()=>De(null),title:$.removeBorder,className:"px-0.5 text-gray-400 hover:text-gray-700",children:"✕"})]}):/* @__PURE__ */s("button",{onClick:()=>De(W),title:$.addBorder,className:"px-2 py-0.5 rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:$.add})]}),
29
- /* @__PURE__ */c("label",{className:"flex items-center gap-1 text-gray-600",children:[
30
- /* @__PURE__ */s("span",{children:$.fill}),Y?/* @__PURE__ */c(d,{children:[
31
- /* @__PURE__ */s("input",{type:"color",value:Y,onChange:e=>Pe(e.target.value),title:$.fillColor,className:"h-5 w-6 rounded border border-gray-300 bg-white p-0 cursor-pointer"}),
32
- /* @__PURE__ */s("button",{onClick:()=>Pe(null),title:$.removeFill,className:"px-0.5 text-gray-400 hover:text-gray-700",children:"✕"})]}):/* @__PURE__ */s("button",{onClick:()=>Pe("#ffffff"),title:$.addFill,className:"px-2 py-0.5 rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:$.add})]}),
33
- /* @__PURE__ */c("label",{className:"flex items-center gap-2 text-gray-600",children:[
34
- /* @__PURE__ */s("span",{children:$.padding}),
35
- /* @__PURE__ */s("input",{type:"range",min:0,max:40,step:1,value:Q,onChange:e=>{return t=Number(e.target.value),J(t),void(oe&&ne(e=>e.map(e=>e.id===oe&&"text"===e.type?{...e,padding:t}:e)));var t},className:"w-14 accent-blue-500"}),
36
- /* @__PURE__ */s("span",{className:"tabular-nums w-6 text-right",children:Q})]})]}),
37
- /* @__PURE__ */s("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
38
- /* @__PURE__ */s("button",{onClick:()=>he(e=>Math.max(.25,Math.round(100*(e-.25))/100)),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-700",title:$.zoomOut,children:"−"}),
39
- /* @__PURE__ */c("span",{className:"text-gray-600 tabular-nums w-10 text-center",children:[Math.round(100*de),"%"]}),
40
- /* @__PURE__ */s("button",{onClick:()=>he(e=>Math.min(4,Math.round(100*(e+.25))/100)),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-700",title:$.zoomIn,children:"+"}),
41
- /* @__PURE__ */s("button",{onClick:()=>he(1),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-700",title:$.fitHint,children:$.fit}),
42
- /* @__PURE__ */s("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
43
- /* @__PURE__ */s("button",{onClick:()=>{ne(e=>e.slice(0,-1)),ie(null)},disabled:0===re.length,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-700",children:$.undo}),
44
- /* @__PURE__ */c("div",{className:"ml-auto flex items-center gap-2",children:[me&&/* @__PURE__ */c(d,{children:[
45
- /* @__PURE__ */s("button",{onClick:()=>{if(!me||!P.current||!ae)return;const e=me,t=document.createElement("canvas");t.width=Math.round(e.w),t.height=Math.round(e.h);const r=t.getContext("2d"),n=document.createElement("canvas");n.width=ae.w,n.height=ae.h;const o=n.getContext("2d");o.drawImage(P.current,0,0);for(const e of Ne)C(o,e);r.drawImage(n,e.x,e.y,e.w,e.h,0,0,e.w,e.h);const i=new Image;i.onload=()=>{P.current=i,le({w:i.naturalWidth,h:i.naturalHeight}),ne(t=>t.filter(e=>"mosaic"!==e.type).map(t=>b(t,-e.x,-e.y)).filter(e=>function(e,t,r){const n=k(e);return n.x+n.w>0&&n.y+n.h>0&&n.x<t&&n.y<r}(e,i.naturalWidth,i.naturalHeight))),ge(null)},i.src=t.toDataURL("image/png")},className:"px-2 py-1 rounded bg-blue-500 text-white hover:bg-blue-600",children:$.applyCrop}),
46
- /* @__PURE__ */s("button",{onClick:()=>ge(null),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-700",children:$.cancel})]}),m&&!me&&/* @__PURE__ */c(d,{children:[g&&/* @__PURE__ */s("button",{onClick:g,className:"px-3 py-1 rounded hover:bg-gray-200 text-gray-700 text-xs font-medium",children:$.cancel}),
47
- /* @__PURE__ */s("button",{onClick:async()=>{const t=await Ee();t?t.toBlob(t=>{t?m(t):e.error(E.current.exportFailed)},"image/png"):e.error(E.current.exportFailed)},className:"px-3 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 text-xs font-medium",children:$.apply})]})]})]}),
48
- /* @__PURE__ */s("div",{ref:L,className:"flex-1 overflow-auto bg-gray-200 flex items-center justify-center p-4 relative",children:be&&ae&&/* @__PURE__ */c("div",{className:"relative shadow-lg rounded overflow-hidden bg-white shrink-0",style:{width:be.w,height:be.h},children:[
49
- /* @__PURE__ */s("canvas",{ref:z,style:{position:"absolute",inset:0,width:"100%",height:"100%",display:"block"}}),
50
- /* @__PURE__ */c("svg",{ref:D,viewBox:`0 0 ${ae.w} ${ae.h}`,preserveAspectRatio:"none",style:{position:"absolute",inset:0,width:"100%",height:"100%",touchAction:"none",cursor:"select"===I?"default":"text"===I?"text":"crosshair"},onPointerDown:e=>{if("select"===I)return void ie(null);if("text"===I){if(ye)return void $e();const t=Ce(e);return void xe({x:t.x,y:t.y,value:""})}const t=Ce(e);if("crop"!==I){if("draw"===I)return Le({kind:"pen",points:[t]}),void pe({id:"",type:"draw",points:[t],color:W,stroke:R});pe(v(I,t,t,W,R,ee)),Le({kind:"draw",start:t})}else Le({kind:"crop",start:t})},children:[re.map(e=>/* @__PURE__ */s(x,{anno:e,selected:oe===e.id,zoom:de,onPointerDown:t=>((e,t)=>{"select"===I&&(e.stopPropagation(),ie(t.id),Le({kind:"move",id:t.id,start:Ce(e),original:t}))})(t,e),onDoubleClick:()=>{var t;"text"===(t=e).type&&xe({x:t.x,y:t.y,value:t.text,editingId:t.id})},onHandlePointerDown:(t,r)=>((e,t,r)=>{e.stopPropagation(),Le({kind:"resize",id:t.id,corner:r,start:Ce(e),original:t})})(t,e,r)},e.id)),ue&&/* @__PURE__ */s(x,{anno:{...ue,id:"__preview"},preview:!0}),me&&/* @__PURE__ */s(w,{rect:me,imageSize:ae})]}),ye&&/* @__PURE__ */s(f,{pendingText:ye,color:W,size:H,font:u.find(e=>e.id===T)?.css??u[0].css,bold:A,italic:V,underline:X,borderColor:G,background:Y,padding:Q,scale:ke,onChange:e=>xe({...ye,value:e}),onCommit:$e,onCancel:()=>xe(null)})]})}),
51
- /* @__PURE__ */s("div",{className:"px-3 py-2 border-t border-line bg-surface text-2xs text-ink-faint shrink-0",children:"select"===I?oe?$.hintSelected:$.hintSelect:"text"===I?$.hintText:"crop"===I?$.hintCrop:"draw"===I?$.hintDraw:$.hintShape})]})});function x({anno:e,selected:t,preview:r,zoom:n=1,onPointerDown:o,onDoubleClick:i,onHandlePointerDown:a}){const l=k(e),h=o?{onPointerDown:o,pointerEvents:"all",style:{cursor:"move"}}:{},p=i?{onDoubleClick:i}:{};let y;if("rect"===e.type)y=/* @__PURE__ */s("rect",{x:e.x,y:e.y,width:e.w,height:e.h,rx:e.radius,ry:e.radius,fill:"none",stroke:e.color,strokeWidth:e.stroke,strokeLinecap:"round",strokeLinejoin:"round",...h});else if("circle"===e.type)y=/* @__PURE__ */s("ellipse",{cx:e.x+e.w/2,cy:e.y+e.h/2,rx:e.w/2,ry:e.h/2,fill:"none",stroke:e.color,strokeWidth:e.stroke,...h});else if("arrow"===e.type)y=/* @__PURE__ */s(g,{anno:e,interactive:h});else if("draw"===e.type)y=/* @__PURE__ */s("path",{d:N(e.points),fill:"none",stroke:e.color,strokeWidth:e.stroke,strokeLinecap:"round",strokeLinejoin:"round",...h});else if("mosaic"===e.type)y=/* @__PURE__ */s("rect",{x:e.x,y:e.y,width:e.w,height:e.h,fill:"rgba(0,0,0,0.001)",stroke:"none",strokeWidth:t?2:0,strokeDasharray:t?"6,4":void 0,...h,style:t?{...h.style,stroke:"var(--rosh-annotator-selection)"}:h.style});else{const t=u.find(t=>t.id===e.font)?.css??u[0].css,r=e.padding??0,n=!!e.borderColor||!!e.background,o=k(e),i=e.borderColor?Math.max(1,Math.round(e.size/12)):0;y=/* @__PURE__ */c("g",{...h,...p,children:[n&&/* @__PURE__ */s("rect",{x:o.x-r,y:o.y-r,width:Math.max(0,o.w)+2*r,height:Math.max(0,o.h)+2*r,rx:Math.min(8,r),ry:Math.min(8,r),fill:e.background??"none",stroke:e.borderColor??"none",strokeWidth:i}),
52
- /* @__PURE__ */s("text",{x:e.x,y:e.y+e.size,fill:e.color,fontSize:e.size,fontWeight:e.bold?700:400,fontStyle:e.italic?"italic":"normal",textDecoration:e.underline?"underline":void 0,fontFamily:t,style:{userSelect:"none"},children:e.text.split("\n").map((t,r)=>/* @__PURE__ */s("tspan",{x:e.x,dy:0===r?0:1.2*e.size,children:t},r))})]})}/* @__PURE__ */
53
- return c("g",{children:[y,t&&!r&&/* @__PURE__ */c(d,{children:[
54
- /* @__PURE__ */s("rect",{"data-chrome":"selection",x:l.x-4,y:l.y-4,width:l.w+8,height:l.h+8,fill:"none",strokeWidth:2/n,strokeDasharray:`${6/n},${4/n}`,pointerEvents:"none",style:{stroke:"var(--rosh-annotator-selection)"}}),a&&/* @__PURE__ */s(m,{anno:e,zoom:n,onHandlePointerDown:a})]})]})}function m({anno:e,zoom:t,onHandlePointerDown:r}){const n=6/t,o=1.5/t,i=e=>({fill:"white",strokeWidth:o,pointerEvents:"all",style:{cursor:e,stroke:"var(--rosh-annotator-selection)"},"data-chrome":"handle"});if("arrow"===e.type)/* @__PURE__ */
55
- return c(d,{children:[
56
- /* @__PURE__ */s("circle",{cx:e.x1,cy:e.y1,r:n,...i("grab"),onPointerDown:e=>r(e,"start")}),
57
- /* @__PURE__ */s("circle",{cx:e.x2,cy:e.y2,r:n,...i("grab"),onPointerDown:e=>r(e,"end")})]});if("text"===e.type||"draw"===e.type)return null;const a=e.x,l=e.y,h=e.w,u=e.h;/* @__PURE__ */
58
- return c(d,{children:[
59
- /* @__PURE__ */s("circle",{cx:a,cy:l,r:n,...i("nwse-resize"),onPointerDown:e=>r(e,"nw")}),
60
- /* @__PURE__ */s("circle",{cx:a+h,cy:l,r:n,...i("nesw-resize"),onPointerDown:e=>r(e,"ne")}),
61
- /* @__PURE__ */s("circle",{cx:a+h,cy:l+u,r:n,...i("nwse-resize"),onPointerDown:e=>r(e,"se")}),
62
- /* @__PURE__ */s("circle",{cx:a,cy:l+u,r:n,...i("nesw-resize"),onPointerDown:e=>r(e,"sw")})]})}function g({anno:e,interactive:t}){const r=Math.max(12,4*e.stroke),n=Math.atan2(e.y2-e.y1,e.x2-e.x1),o=n+Math.PI-Math.PI/7,i=n+Math.PI+Math.PI/7,a=`M${e.x2},${e.y2} L${e.x2+r*Math.cos(o)},${e.y2+r*Math.sin(o)} L${e.x2+r*Math.cos(i)},${e.y2+r*Math.sin(i)} Z`;/* @__PURE__ */
63
- return c("g",{...t,children:[
64
- /* @__PURE__ */s("line",{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,stroke:e.color,strokeWidth:e.stroke,strokeLinecap:"round"}),
65
- /* @__PURE__ */s("path",{d:a,fill:e.color})]})}function w({rect:e,imageSize:t}){/* @__PURE__ */
66
- return c("g",{pointerEvents:"none",children:[
67
- /* @__PURE__ */s("path",{d:`M0,0 H${t.w} V${t.h} H0 Z M${e.x},${e.y} V${e.y+e.h} H${e.x+e.w} V${e.y} Z`,fillRule:"evenodd",style:{fill:"var(--rosh-annotator-crop-scrim)"}}),
68
- /* @__PURE__ */s("rect",{x:e.x,y:e.y,width:e.w,height:e.h,fill:"none",stroke:"white",strokeWidth:2,strokeDasharray:"8,6"})]})}function f({pendingText:e,color:r,size:o,font:i,bold:l,italic:c,underline:d,borderColor:h,background:u,padding:p,scale:y,onChange:x,onCommit:m,onCancel:g}){const w=n(null),f=t().annotator;a(()=>{const e=requestAnimationFrame(()=>{w.current?.focus(),w.current?.select?.()});return()=>cancelAnimationFrame(e)},[]);const v=()=>m(w.current?.value),b=h?Math.max(1,Math.round(o/12)):0;/* @__PURE__ */
69
- return s("div",{style:{position:"absolute",left:e.x*y+"px",top:e.y*y+"px",transform:"translateY(-2px)",zIndex:5},onPointerDown:e=>e.stopPropagation(),children:/* @__PURE__ */s("textarea",{ref:w,value:e.value,onChange:e=>x(e.target.value),onBlur:v,onKeyDown:e=>{"Escape"===e.key?(e.preventDefault(),g()):"Enter"!==e.key||e.shiftKey||(e.preventDefault(),v())},placeholder:f.textPlaceholder,rows:1,className:"rosh-focus-ring resize-none shadow-(--elevation-panel)",style:{color:r,fontSize:o*y+"px",fontFamily:i,fontWeight:l?700:400,fontStyle:c?"italic":"normal",textDecoration:d?"underline":void 0,minWidth:80,padding:p*y+"px",borderRadius:Math.min(8,p)*y+"px",border:h?`${b*y}px solid ${h}`:"1px dashed var(--rosh-annotator-edit-hint)",background:u??"var(--rosh-annotator-edit-surface)"}})})}function v(e,t,r,n,o,i){if("rect"===e){const e=M(t,r);return{id:"",type:"rect",x:e.x,y:e.y,w:e.w,h:e.h,color:n,stroke:o,radius:i}}if("circle"===e){const e=M(t,r);return{id:"",type:"circle",x:e.x,y:e.y,w:e.w,h:e.h,color:n,stroke:o}}if("arrow"===e)return{id:"",type:"arrow",x1:t.x,y1:t.y,x2:r.x,y2:r.y,color:n,stroke:o};if("mosaic"===e){const e=M(t,r);return{id:"",type:"mosaic",x:e.x,y:e.y,w:e.w,h:e.h}}return null}function b(e,t,r){return"arrow"===e.type?{...e,x1:e.x1+t,y1:e.y1+r,x2:e.x2+t,y2:e.y2+r}:"draw"===e.type?{...e,points:e.points.map(e=>({x:e.x+t,y:e.y+r}))}:(e.type,{...e,x:e.x+t,y:e.y+r})}function k(e){if("arrow"===e.type){return{x:Math.min(e.x1,e.x2),y:Math.min(e.y1,e.y2),w:Math.abs(e.x2-e.x1),h:Math.abs(e.y2-e.y1)}}if("draw"===e.type){if(0===e.points.length)return{x:0,y:0,w:0,h:0};let t=e.points[0].x,r=e.points[0].x,n=e.points[0].y,o=e.points[0].y;for(const i of e.points)i.x<t&&(t=i.x),i.x>r&&(r=i.x),i.y<n&&(n=i.y),i.y>o&&(o=i.y);return{x:t,y:n,w:r-t,h:o-n}}if("text"===e.type){const t=e.text.split("\n"),r=t.reduce((e,t)=>Math.max(e,t.length),0);return{x:e.x,y:e.y,w:r*e.size*.55,h:t.length*e.size*1.2}}return{x:e.x,y:e.y,w:e.w,h:e.h}}function M(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),w:Math.abs(e.x-t.x),h:Math.abs(e.y-t.y)}}function N(e){if(0===e.length)return"";let t=`M ${e[0].x} ${e[0].y}`;for(let r=1;r<e.length;r++)t+=` L ${e[r].x} ${e[r].y}`;return t}function C(e,t){const r=Math.round(Math.max(0,t.x)),n=Math.round(Math.max(0,t.y)),o=Math.round(Math.min(e.canvas.width-r,t.w)),i=Math.round(Math.min(e.canvas.height-n,t.h));if(o<2||i<2)return;const a=e.getImageData(r,n,o,i);for(let e=0;e<i;e+=12)for(let t=0;t<o;t+=12){let r=0,n=0,l=0,s=0,c=0;const d=Math.min(12,o-t),h=Math.min(12,i-e);for(let i=0;i<h;i++)for(let h=0;h<d;h++){const d=4*((e+i)*o+(t+h));r+=a.data[d],n+=a.data[d+1],l+=a.data[d+2],s+=a.data[d+3],c++}r=Math.round(r/c),n=Math.round(n/c),l=Math.round(l/c),s=Math.round(s/c);for(let i=0;i<h;i++)for(let c=0;c<d;c++){const d=4*((e+i)*o+(t+c));a.data[d]=r,a.data[d+1]=n,a.data[d+2]=l,a.data[d+3]=s}}e.putImageData(a,r,n)}export{y as ImageAnnotator_default};
@@ -1 +0,0 @@
1
- import{PAYMENT_BRAND_DRAWINGS as r}from"./chunk-NISLELJF.js";import{BrandYoutubeIcon as o}from"./chunk-VW4FHT46.js";import{BrandZapierIcon as n}from"./chunk-QTM26JQP.js";import{BrandZendeskIcon as m}from"./chunk-77SI7AKG.js";import{BrandZoomIcon as a}from"./chunk-NK7HBFNQ.js";import{BrandVonageIcon as i}from"./chunk-Z5XEAC32.js";import{BrandWhatsappIcon as s}from"./chunk-W5I35GZZ.js";import{BrandWiseIcon as t}from"./chunk-V3GM5NXB.js";import{BrandWixIcon as p}from"./chunk-XUYWUGDM.js";import{BrandWoocommerceIcon as c}from"./chunk-7GB7CVQI.js";import{BrandXIcon as d}from"./chunk-4L7GLO5W.js";import{BrandXeroIcon as u}from"./chunk-FATXXVV3.js";import{BrandSquareIcon as b}from"./chunk-OIH56GH5.js";import{BrandSquarespaceIcon as h}from"./chunk-7KCJ77BP.js";import{BrandStripeIcon as k}from"./chunk-IBHBPSQN.js";import{BrandTelegramIcon as f}from"./chunk-ZZIVSJ2B.js";import{BrandTiktokIcon as j}from"./chunk-JREQY3YN.js";import{BrandTrelloIcon as e}from"./chunk-OSXM35MX.js";import{BrandUpsIcon as l}from"./chunk-YHYAGJ6V.js";import{BrandNotionIcon as g}from"./chunk-4FNGR474.js";import{BrandNvidiaIcon as F}from"./chunk-TUMURSQU.js";import{BrandPinterestIcon as M}from"./chunk-243NPEG6.js";import{BrandQuickbooksIcon as N}from"./chunk-6IUDFVTN.js";import{BrandSageIcon as H}from"./chunk-ONC3BFFM.js";import{BrandSamsungIcon as I}from"./chunk-7ELH72YJ.js";import{BrandShopifyIcon as V}from"./chunk-MVJ34HIV.js";import{BrandLinkedinIcon as Z}from"./chunk-G4GQOAWS.js";import{BrandMailchimpIcon as E}from"./chunk-INUXPG27.js";import{BrandMailgunIcon as G}from"./chunk-TI5WUO3V.js";import{BrandMakeIcon as B}from"./chunk-OM5K4WCB.js";import{BrandMessengerIcon as D}from"./chunk-IWQSBA3D.js";import{BrandMetaIcon as Q}from"./chunk-NEQFHRF3.js";import{BrandMyobIcon as W}from"./chunk-PYW3HX7A.js";import{BrandGooglesheetsIcon as X}from"./chunk-75IWV4ZF.js";import{BrandHubspotIcon as A}from"./chunk-NZBQVE3Q.js";import{BrandInstagramIcon as P}from"./chunk-3ER2WJNL.js";import{BrandIntelIcon as O}from"./chunk-HSXNUF53.js";import{BrandIntercomIcon as T}from"./chunk-FUSCAZEK.js";import{BrandLineIcon as U}from"./chunk-2ZD67TDP.js";import{BrandFedexIcon as J}from"./chunk-4CFQXH5N.js";import{BrandGithubIcon as L}from"./chunk-ZHNKLVWV.js";import{BrandGmailIcon as R}from"./chunk-5HDMPCZP.js";import{BrandGoogleadsIcon as C}from"./chunk-QYEMC2OA.js";import{BrandGoogleanalyticsIcon as S}from"./chunk-KTMEHSTB.js";import{BrandGooglecalendarIcon as K}from"./chunk-4RDYNULI.js";import{BrandGoogledriveIcon as Y}from"./chunk-R2IXRW5N.js";import{BrandCloudflareIcon as y}from"./chunk-4VIRG42K.js";import{BrandDellIcon as w}from"./chunk-L7DBGH2Z.js";import{BrandDhlIcon as x}from"./chunk-ZXU4DEQM.js";import{BrandDropboxIcon as v}from"./chunk-I27TFZJH.js";import{BrandEbayIcon as q}from"./chunk-PBGMVLOF.js";import{BrandEtsyIcon as z}from"./chunk-FMERDO2X.js";import{BrandFacebookIcon as $}from"./chunk-EHMDGAWA.js";import{BrandAnthropicIcon as _}from"./chunk-E3E7DODJ.js";import{BrandAppleIcon as rr}from"./chunk-4TWBDIMX.js";import{BrandAwsIcon as or}from"./chunk-RWL7F776.js";import{BrandBigcommerceIcon as nr}from"./chunk-ZBL4CN2E.js";import{BrandBrevoIcon as mr}from"./chunk-V6Q2GZAI.js";import{BrandCalendlyIcon as ar}from"./chunk-NTME34BP.js";import{BrandCampaignmonitorIcon as ir}from"./chunk-47OCVZXD.js";import{Brand1passwordIcon as sr}from"./chunk-OD2ZMT64.js";import{BrandAdyenIcon as tr}from"./chunk-K4RFJ7P2.js";import{BrandAircallIcon as pr}from"./chunk-PAZU27H5.js";import{BrandAmdIcon as cr}from"./chunk-AFMPM43F.js";var dr={...r,"brand-1password":sr,"brand-adyen":tr,"brand-aircall":pr,"brand-amd":cr,"brand-anthropic":_,"brand-apple":rr,"brand-aws":or,"brand-bigcommerce":nr,"brand-brevo":mr,"brand-calendly":ar,"brand-campaignmonitor":ir,"brand-cloudflare":y,"brand-dell":w,"brand-dhl":x,"brand-dropbox":v,"brand-ebay":q,"brand-etsy":z,"brand-facebook":$,"brand-fedex":J,"brand-github":L,"brand-gmail":R,"brand-googleads":C,"brand-googleanalytics":S,"brand-googlecalendar":K,"brand-googledrive":Y,"brand-googlesheets":X,"brand-hubspot":A,"brand-instagram":P,"brand-intel":O,"brand-intercom":T,"brand-line":U,"brand-linkedin":Z,"brand-mailchimp":E,"brand-mailgun":G,"brand-make":B,"brand-messenger":D,"brand-meta":Q,"brand-myob":W,"brand-notion":g,"brand-nvidia":F,"brand-pinterest":M,"brand-quickbooks":N,"brand-sage":H,"brand-samsung":I,"brand-shopify":V,"brand-square":b,"brand-squarespace":h,"brand-stripe":k,"brand-telegram":f,"brand-tiktok":j,"brand-trello":e,"brand-ups":l,"brand-vonage":i,"brand-whatsapp":s,"brand-wise":t,"brand-wix":p,"brand-woocommerce":c,"brand-x":d,"brand-xero":u,"brand-youtube":o,"brand-zapier":n,"brand-zendesk":m,"brand-zoom":a};export{dr as BRAND_MARK_DRAWINGS};