@overvis/hmi-workspace-ui 0.0.0-stage → 0.1.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 (1023) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +84 -2
  3. package/THIRD_PARTY_NOTICES +151 -0
  4. package/dist/OFL-1.1.txt +93 -0
  5. package/dist/alarm-list-BL3xQ5Lf.js +423 -0
  6. package/dist/alarm-rule-dialog-S1ZUg-74.js +423 -0
  7. package/dist/alarm-rule-lists-C5v1Kf7A.js +344 -0
  8. package/dist/alarm-rules-page-CqFzofPd.js +121 -0
  9. package/dist/alert-B8MAoIO8.js +45 -0
  10. package/dist/alert-dialog-CYkuMg5D.js +129 -0
  11. package/dist/api-error-9rQmUN5L.js +93 -0
  12. package/dist/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  13. package/dist/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  14. package/dist/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  15. package/dist/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  16. package/dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  17. package/dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  18. package/dist/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  19. package/dist/base-revision-YCO27zR4.js +106 -0
  20. package/dist/breadcrumb-DzVL1yHa.js +74 -0
  21. package/dist/breadcrumbs-0cjsV2cq.js +21 -0
  22. package/dist/button-6SxPBYMz.js +44 -0
  23. package/dist/catalog-list-DjZojYLJ.js +77 -0
  24. package/dist/code-editor-BVimvjDV.js +143 -0
  25. package/dist/context-u9KJQmdB.js +102 -0
  26. package/dist/copyable-id-DYGiAcnq.js +40 -0
  27. package/dist/dashboard-bindings.js +26 -0
  28. package/dist/dashboard-context-CBfG6DoT.js +191 -0
  29. package/dist/dashboards-page-BlrJguNz.js +1064 -0
  30. package/dist/date-time-picker-C3FhMXk6.js +266 -0
  31. package/dist/de-14WdmJxZ.js +4578 -0
  32. package/dist/diagnostic-text-BAkzW0SE.js +111 -0
  33. package/dist/diagnostic-text-DiKd2i1w.js +76 -0
  34. package/dist/dialog-BIhQXcZC.js +237 -0
  35. package/dist/dialog-BqyIxMD-.js +54 -0
  36. package/dist/dialogs-B6BRnf3Q.js +730 -0
  37. package/dist/dialogs-D_v1LeH4.js +7820 -0
  38. package/dist/display-DmOo23mi.js +79 -0
  39. package/dist/dropdown-menu-DSzbBq3v.js +136 -0
  40. package/dist/editor-language-To9MxloY.js +437 -0
  41. package/dist/editor-page-BiSZJz5b.js +1353 -0
  42. package/dist/empty-B-QJ-06w.js +59 -0
  43. package/dist/en-BgercpT0.js +4578 -0
  44. package/dist/entity-controls-D1K4Ot3O.js +76 -0
  45. package/dist/errors-CcsvDHu8.js +26 -0
  46. package/dist/footer-DC-Q0052.js +10675 -0
  47. package/dist/history-page-sAAhG54V.js +1400 -0
  48. package/dist/host.js +1523 -0
  49. package/dist/i18n-BgzakKoC.js +401 -0
  50. package/dist/i18n.js +2 -0
  51. package/dist/icon-D-pR9htW.js +57 -0
  52. package/dist/index-page-DMH82fZe.js +214 -0
  53. package/dist/index.js +19118 -0
  54. package/dist/item-B5SaTFQU.js +120 -0
  55. package/dist/lat-lng-B12P7QyY.js +11 -0
  56. package/dist/list-page-CvsdZb86.js +363 -0
  57. package/dist/location-map-renderer-DO5yfdSU.js +145 -0
  58. package/dist/location-picker-renderer-CjCxg6ai.js +105 -0
  59. package/dist/model-B8gGi4OK.js +9 -0
  60. package/dist/mutation-form-validators-BNz5bsv1.js +2408 -0
  61. package/dist/mutations-THtGG6Ai.js +240 -0
  62. package/dist/notice-card-DyGywFsW.js +246 -0
  63. package/dist/page-2KPemaAj.js +328 -0
  64. package/dist/page-6rIoTg2L.js +459 -0
  65. package/dist/page-C6giEoEd.js +1935 -0
  66. package/dist/page-DCbTxKsi.js +313 -0
  67. package/dist/page-DWO427hT.js +208 -0
  68. package/dist/page-LXu_2zm3.js +137 -0
  69. package/dist/page-aaUiVOnk.js +513 -0
  70. package/dist/page-header-RB2YFWlE.js +55 -0
  71. package/dist/page-title-CdCbiLt8.js +14 -0
  72. package/dist/page-v6LCwswN.js +304 -0
  73. package/dist/panel-DDy8tUNR.js +338 -0
  74. package/dist/parameter-values.js +215 -0
  75. package/dist/pl-lQ9HXV9k.js +4578 -0
  76. package/dist/presence-code-BfSXr50g.js +83 -0
  77. package/dist/progress-C7cxNJA1.js +83 -0
  78. package/dist/provider-BOeYHi0n.js +134 -0
  79. package/dist/provider-DoEpKcQ-.js +29015 -0
  80. package/dist/query-gate-DVhNIkge.js +33 -0
  81. package/dist/quick-report-CUVJnbKP.js +416 -0
  82. package/dist/radio-group-CZGqVbkJ.js +26 -0
  83. package/dist/retention-BYXNpYmR.js +62 -0
  84. package/dist/retention-note-CHhA6gjY.js +42 -0
  85. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  86. package/dist/ru-qTKINoUj.js +4578 -0
  87. package/dist/run-text-DvaO8LDF.js +113 -0
  88. package/dist/search-D4rDnE9T.js +265 -0
  89. package/dist/sections-kCOyc4NR.js +77 -0
  90. package/dist/select-BKiOWdSr.js +539 -0
  91. package/dist/select-eNgZdZ30.js +521 -0
  92. package/dist/skeleton-6yk8Tdh5.js +19 -0
  93. package/dist/slider-DorDsoF8.js +37 -0
  94. package/dist/spinner-C-HPNxOc.js +530 -0
  95. package/dist/src/audit/checkpoint-presentation.d.ts +2 -0
  96. package/dist/src/audit/checkpoints.d.ts +23 -0
  97. package/dist/src/audit/history-model.d.ts +3 -0
  98. package/dist/src/audit/history-page.d.ts +13 -0
  99. package/dist/src/audit/history-presentation.d.ts +21 -0
  100. package/dist/src/audit/history-search.d.ts +6 -0
  101. package/dist/src/audit/revert-checkpoint-dialog.d.ts +29 -0
  102. package/dist/src/audit/revert-device-confirmation.d.ts +20 -0
  103. package/dist/src/audit/setup-change-list.d.ts +5 -0
  104. package/dist/src/brand/brand-link.d.ts +7 -0
  105. package/dist/src/brand/local-brand-link.d.ts +11 -0
  106. package/dist/src/brand/overvis-logo.d.ts +10 -0
  107. package/dist/src/brand/workspace-brand-link.d.ts +10 -0
  108. package/dist/src/brand/workspace-favicon.d.ts +4 -0
  109. package/dist/src/chrome/language-switcher.d.ts +3 -0
  110. package/dist/src/chrome/mode-toggle.d.ts +1 -0
  111. package/dist/src/chrome/text-link.d.ts +8 -0
  112. package/dist/src/code-editor/code-editor.d.ts +55 -0
  113. package/dist/src/code-editor/formula-input.d.ts +20 -0
  114. package/dist/src/code-editor/json-positions.d.ts +26 -0
  115. package/dist/src/code-editor/language-features.d.ts +122 -0
  116. package/dist/src/code-editor/taskfile-language.d.ts +10 -0
  117. package/dist/src/dev-fatal/error-boundary.d.ts +10 -0
  118. package/dist/src/dev-fatal/format-console-error.d.ts +5 -0
  119. package/dist/src/dev-fatal/install.d.ts +6 -0
  120. package/dist/src/dev-fatal/is-enabled.d.ts +7 -0
  121. package/dist/src/dev-fatal/overlay.d.ts +8 -0
  122. package/dist/src/dev-fatal/report-render-error.d.ts +6 -0
  123. package/dist/src/dev-fatal/should-ignore.d.ts +5 -0
  124. package/dist/src/entry/host/index.d.ts +43 -0
  125. package/dist/src/entry/ui/index.d.ts +80 -0
  126. package/dist/src/form/api-error.d.ts +11 -0
  127. package/dist/src/form/fields/checkbox-field.d.ts +9 -0
  128. package/dist/src/form/fields/dashboard-picker-field.d.ts +13 -0
  129. package/dist/src/form/fields/formula-field.d.ts +11 -0
  130. package/dist/src/form/fields/otp-field.d.ts +14 -0
  131. package/dist/src/form/fields/parameter-picker-field.d.ts +3 -0
  132. package/dist/src/form/fields/text-field.d.ts +9 -0
  133. package/dist/src/form/fields/textarea-field.d.ts +6 -0
  134. package/dist/src/form/focus-first-invalid-field.d.ts +4 -0
  135. package/dist/src/form/form-contexts.d.ts +1 -0
  136. package/dist/src/form/form-error-banner.d.ts +4 -0
  137. package/dist/src/form/form-root.d.ts +18 -0
  138. package/dist/src/form/format-field-errors.d.ts +10 -0
  139. package/dist/src/form/index.d.ts +36 -0
  140. package/dist/src/form/map-trpc-to-form-errors.d.ts +34 -0
  141. package/dist/src/form/message.d.ts +5 -0
  142. package/dist/src/form/mutation-form-validators.d.ts +41 -0
  143. package/dist/src/form/submit-button.d.ts +13 -0
  144. package/dist/src/form/trpc-error-data.d.ts +19 -0
  145. package/dist/src/form/use-app-form.d.ts +89 -0
  146. package/dist/src/hooks/use-closed-minute.d.ts +6 -0
  147. package/dist/src/hooks/use-media-query.d.ts +2 -0
  148. package/dist/src/hooks/use-mobile.d.ts +1 -0
  149. package/dist/src/hooks/use-now.d.ts +5 -0
  150. package/dist/src/i18n/catalogs/de/action.d.ts +14 -0
  151. package/dist/src/i18n/catalogs/de/alarm.d.ts +79 -0
  152. package/dist/src/i18n/catalogs/de/api-error.d.ts +261 -0
  153. package/dist/src/i18n/catalogs/de/audit.d.ts +133 -0
  154. package/dist/src/i18n/catalogs/de/automation-editor.d.ts +220 -0
  155. package/dist/src/i18n/catalogs/de/automation-language.d.ts +249 -0
  156. package/dist/src/i18n/catalogs/de/automation.d.ts +59 -0
  157. package/dist/src/i18n/catalogs/de/brand.d.ts +4 -0
  158. package/dist/src/i18n/catalogs/de/cold-room.d.ts +26 -0
  159. package/dist/src/i18n/catalogs/de/copyable.d.ts +6 -0
  160. package/dist/src/i18n/catalogs/de/dashboard.d.ts +92 -0
  161. package/dist/src/i18n/catalogs/de/device-preset.d.ts +71 -0
  162. package/dist/src/i18n/catalogs/de/document.d.ts +52 -0
  163. package/dist/src/i18n/catalogs/de/edge-program-language.d.ts +165 -0
  164. package/dist/src/i18n/catalogs/de/edge-program.d.ts +238 -0
  165. package/dist/src/i18n/catalogs/de/endpoint.d.ts +112 -0
  166. package/dist/src/i18n/catalogs/de/error.d.ts +34 -0
  167. package/dist/src/i18n/catalogs/de/fleet.d.ts +247 -0
  168. package/dist/src/i18n/catalogs/de/formula.d.ts +35 -0
  169. package/dist/src/i18n/catalogs/de/graphics.d.ts +417 -0
  170. package/dist/src/i18n/catalogs/de/language.d.ts +10 -0
  171. package/dist/src/i18n/catalogs/de/messages.d.ts +19 -0
  172. package/dist/src/i18n/catalogs/de/parameter.d.ts +373 -0
  173. package/dist/src/i18n/catalogs/de/pull.d.ts +11 -0
  174. package/dist/src/i18n/catalogs/de/report.d.ts +377 -0
  175. package/dist/src/i18n/catalogs/de/setup.d.ts +65 -0
  176. package/dist/src/i18n/catalogs/de/starter.d.ts +38 -0
  177. package/dist/src/i18n/catalogs/de/storage.d.ts +124 -0
  178. package/dist/src/i18n/catalogs/de/symbols-hvac.d.ts +142 -0
  179. package/dist/src/i18n/catalogs/de/symbols-power.d.ts +122 -0
  180. package/dist/src/i18n/catalogs/de/symbols-quarry.d.ts +81 -0
  181. package/dist/src/i18n/catalogs/de/symbols.d.ts +676 -0
  182. package/dist/src/i18n/catalogs/de/theme.d.ts +4 -0
  183. package/dist/src/i18n/catalogs/de/ui.d.ts +37 -0
  184. package/dist/src/i18n/catalogs/de/workspace.d.ts +19 -0
  185. package/dist/src/i18n/catalogs/de.d.ts +4510 -0
  186. package/dist/src/i18n/catalogs/en/action.d.ts +14 -0
  187. package/dist/src/i18n/catalogs/en/alarm.d.ts +79 -0
  188. package/dist/src/i18n/catalogs/en/api-error.d.ts +261 -0
  189. package/dist/src/i18n/catalogs/en/audit.d.ts +133 -0
  190. package/dist/src/i18n/catalogs/en/automation-editor.d.ts +220 -0
  191. package/dist/src/i18n/catalogs/en/automation-language.d.ts +249 -0
  192. package/dist/src/i18n/catalogs/en/automation.d.ts +59 -0
  193. package/dist/src/i18n/catalogs/en/brand.d.ts +4 -0
  194. package/dist/src/i18n/catalogs/en/cold-room.d.ts +26 -0
  195. package/dist/src/i18n/catalogs/en/copyable.d.ts +6 -0
  196. package/dist/src/i18n/catalogs/en/dashboard.d.ts +92 -0
  197. package/dist/src/i18n/catalogs/en/device-preset.d.ts +71 -0
  198. package/dist/src/i18n/catalogs/en/document.d.ts +52 -0
  199. package/dist/src/i18n/catalogs/en/edge-program-language.d.ts +165 -0
  200. package/dist/src/i18n/catalogs/en/edge-program.d.ts +238 -0
  201. package/dist/src/i18n/catalogs/en/endpoint.d.ts +112 -0
  202. package/dist/src/i18n/catalogs/en/error.d.ts +34 -0
  203. package/dist/src/i18n/catalogs/en/fleet.d.ts +247 -0
  204. package/dist/src/i18n/catalogs/en/formula.d.ts +35 -0
  205. package/dist/src/i18n/catalogs/en/graphics.d.ts +417 -0
  206. package/dist/src/i18n/catalogs/en/language.d.ts +10 -0
  207. package/dist/src/i18n/catalogs/en/messages.d.ts +19 -0
  208. package/dist/src/i18n/catalogs/en/parameter.d.ts +373 -0
  209. package/dist/src/i18n/catalogs/en/pull.d.ts +11 -0
  210. package/dist/src/i18n/catalogs/en/report.d.ts +377 -0
  211. package/dist/src/i18n/catalogs/en/setup.d.ts +65 -0
  212. package/dist/src/i18n/catalogs/en/starter.d.ts +38 -0
  213. package/dist/src/i18n/catalogs/en/storage.d.ts +124 -0
  214. package/dist/src/i18n/catalogs/en/symbols-hvac.d.ts +142 -0
  215. package/dist/src/i18n/catalogs/en/symbols-power.d.ts +122 -0
  216. package/dist/src/i18n/catalogs/en/symbols-quarry.d.ts +81 -0
  217. package/dist/src/i18n/catalogs/en/symbols.d.ts +676 -0
  218. package/dist/src/i18n/catalogs/en/theme.d.ts +4 -0
  219. package/dist/src/i18n/catalogs/en/ui.d.ts +37 -0
  220. package/dist/src/i18n/catalogs/en/workspace.d.ts +19 -0
  221. package/dist/src/i18n/catalogs/en.d.ts +4510 -0
  222. package/dist/src/i18n/catalogs/pl/action.d.ts +14 -0
  223. package/dist/src/i18n/catalogs/pl/alarm.d.ts +79 -0
  224. package/dist/src/i18n/catalogs/pl/api-error.d.ts +261 -0
  225. package/dist/src/i18n/catalogs/pl/audit.d.ts +133 -0
  226. package/dist/src/i18n/catalogs/pl/automation-editor.d.ts +220 -0
  227. package/dist/src/i18n/catalogs/pl/automation-language.d.ts +249 -0
  228. package/dist/src/i18n/catalogs/pl/automation.d.ts +59 -0
  229. package/dist/src/i18n/catalogs/pl/brand.d.ts +4 -0
  230. package/dist/src/i18n/catalogs/pl/cold-room.d.ts +26 -0
  231. package/dist/src/i18n/catalogs/pl/copyable.d.ts +6 -0
  232. package/dist/src/i18n/catalogs/pl/dashboard.d.ts +92 -0
  233. package/dist/src/i18n/catalogs/pl/device-preset.d.ts +71 -0
  234. package/dist/src/i18n/catalogs/pl/document.d.ts +52 -0
  235. package/dist/src/i18n/catalogs/pl/edge-program-language.d.ts +165 -0
  236. package/dist/src/i18n/catalogs/pl/edge-program.d.ts +238 -0
  237. package/dist/src/i18n/catalogs/pl/endpoint.d.ts +112 -0
  238. package/dist/src/i18n/catalogs/pl/error.d.ts +34 -0
  239. package/dist/src/i18n/catalogs/pl/fleet.d.ts +247 -0
  240. package/dist/src/i18n/catalogs/pl/formula.d.ts +35 -0
  241. package/dist/src/i18n/catalogs/pl/graphics.d.ts +417 -0
  242. package/dist/src/i18n/catalogs/pl/language.d.ts +10 -0
  243. package/dist/src/i18n/catalogs/pl/messages.d.ts +19 -0
  244. package/dist/src/i18n/catalogs/pl/parameter.d.ts +373 -0
  245. package/dist/src/i18n/catalogs/pl/pull.d.ts +11 -0
  246. package/dist/src/i18n/catalogs/pl/report.d.ts +377 -0
  247. package/dist/src/i18n/catalogs/pl/setup.d.ts +65 -0
  248. package/dist/src/i18n/catalogs/pl/starter.d.ts +38 -0
  249. package/dist/src/i18n/catalogs/pl/storage.d.ts +124 -0
  250. package/dist/src/i18n/catalogs/pl/symbols-hvac.d.ts +142 -0
  251. package/dist/src/i18n/catalogs/pl/symbols-power.d.ts +122 -0
  252. package/dist/src/i18n/catalogs/pl/symbols-quarry.d.ts +81 -0
  253. package/dist/src/i18n/catalogs/pl/symbols.d.ts +676 -0
  254. package/dist/src/i18n/catalogs/pl/theme.d.ts +4 -0
  255. package/dist/src/i18n/catalogs/pl/ui.d.ts +37 -0
  256. package/dist/src/i18n/catalogs/pl/workspace.d.ts +19 -0
  257. package/dist/src/i18n/catalogs/pl.d.ts +4510 -0
  258. package/dist/src/i18n/catalogs/ru/action.d.ts +14 -0
  259. package/dist/src/i18n/catalogs/ru/alarm.d.ts +79 -0
  260. package/dist/src/i18n/catalogs/ru/api-error.d.ts +261 -0
  261. package/dist/src/i18n/catalogs/ru/audit.d.ts +133 -0
  262. package/dist/src/i18n/catalogs/ru/automation-editor.d.ts +220 -0
  263. package/dist/src/i18n/catalogs/ru/automation-language.d.ts +249 -0
  264. package/dist/src/i18n/catalogs/ru/automation.d.ts +59 -0
  265. package/dist/src/i18n/catalogs/ru/brand.d.ts +4 -0
  266. package/dist/src/i18n/catalogs/ru/cold-room.d.ts +26 -0
  267. package/dist/src/i18n/catalogs/ru/copyable.d.ts +6 -0
  268. package/dist/src/i18n/catalogs/ru/dashboard.d.ts +92 -0
  269. package/dist/src/i18n/catalogs/ru/device-preset.d.ts +71 -0
  270. package/dist/src/i18n/catalogs/ru/document.d.ts +52 -0
  271. package/dist/src/i18n/catalogs/ru/edge-program-language.d.ts +165 -0
  272. package/dist/src/i18n/catalogs/ru/edge-program.d.ts +238 -0
  273. package/dist/src/i18n/catalogs/ru/endpoint.d.ts +112 -0
  274. package/dist/src/i18n/catalogs/ru/error.d.ts +34 -0
  275. package/dist/src/i18n/catalogs/ru/fleet.d.ts +247 -0
  276. package/dist/src/i18n/catalogs/ru/formula.d.ts +35 -0
  277. package/dist/src/i18n/catalogs/ru/graphics.d.ts +417 -0
  278. package/dist/src/i18n/catalogs/ru/language.d.ts +10 -0
  279. package/dist/src/i18n/catalogs/ru/messages.d.ts +19 -0
  280. package/dist/src/i18n/catalogs/ru/parameter.d.ts +373 -0
  281. package/dist/src/i18n/catalogs/ru/pull.d.ts +11 -0
  282. package/dist/src/i18n/catalogs/ru/report.d.ts +377 -0
  283. package/dist/src/i18n/catalogs/ru/setup.d.ts +65 -0
  284. package/dist/src/i18n/catalogs/ru/starter.d.ts +38 -0
  285. package/dist/src/i18n/catalogs/ru/storage.d.ts +124 -0
  286. package/dist/src/i18n/catalogs/ru/symbols-hvac.d.ts +142 -0
  287. package/dist/src/i18n/catalogs/ru/symbols-power.d.ts +122 -0
  288. package/dist/src/i18n/catalogs/ru/symbols-quarry.d.ts +81 -0
  289. package/dist/src/i18n/catalogs/ru/symbols.d.ts +676 -0
  290. package/dist/src/i18n/catalogs/ru/theme.d.ts +4 -0
  291. package/dist/src/i18n/catalogs/ru/ui.d.ts +37 -0
  292. package/dist/src/i18n/catalogs/ru/workspace.d.ts +19 -0
  293. package/dist/src/i18n/catalogs/ru.d.ts +4510 -0
  294. package/dist/src/i18n/catalogs/uk/action.d.ts +14 -0
  295. package/dist/src/i18n/catalogs/uk/alarm.d.ts +79 -0
  296. package/dist/src/i18n/catalogs/uk/api-error.d.ts +261 -0
  297. package/dist/src/i18n/catalogs/uk/audit.d.ts +133 -0
  298. package/dist/src/i18n/catalogs/uk/automation-editor.d.ts +220 -0
  299. package/dist/src/i18n/catalogs/uk/automation-language.d.ts +249 -0
  300. package/dist/src/i18n/catalogs/uk/automation.d.ts +59 -0
  301. package/dist/src/i18n/catalogs/uk/brand.d.ts +4 -0
  302. package/dist/src/i18n/catalogs/uk/cold-room.d.ts +26 -0
  303. package/dist/src/i18n/catalogs/uk/copyable.d.ts +6 -0
  304. package/dist/src/i18n/catalogs/uk/dashboard.d.ts +92 -0
  305. package/dist/src/i18n/catalogs/uk/device-preset.d.ts +71 -0
  306. package/dist/src/i18n/catalogs/uk/document.d.ts +52 -0
  307. package/dist/src/i18n/catalogs/uk/edge-program-language.d.ts +165 -0
  308. package/dist/src/i18n/catalogs/uk/edge-program.d.ts +238 -0
  309. package/dist/src/i18n/catalogs/uk/endpoint.d.ts +112 -0
  310. package/dist/src/i18n/catalogs/uk/error.d.ts +34 -0
  311. package/dist/src/i18n/catalogs/uk/fleet.d.ts +247 -0
  312. package/dist/src/i18n/catalogs/uk/formula.d.ts +35 -0
  313. package/dist/src/i18n/catalogs/uk/graphics.d.ts +417 -0
  314. package/dist/src/i18n/catalogs/uk/language.d.ts +10 -0
  315. package/dist/src/i18n/catalogs/uk/messages.d.ts +19 -0
  316. package/dist/src/i18n/catalogs/uk/parameter.d.ts +373 -0
  317. package/dist/src/i18n/catalogs/uk/pull.d.ts +11 -0
  318. package/dist/src/i18n/catalogs/uk/report.d.ts +377 -0
  319. package/dist/src/i18n/catalogs/uk/setup.d.ts +65 -0
  320. package/dist/src/i18n/catalogs/uk/starter.d.ts +38 -0
  321. package/dist/src/i18n/catalogs/uk/storage.d.ts +124 -0
  322. package/dist/src/i18n/catalogs/uk/symbols-hvac.d.ts +142 -0
  323. package/dist/src/i18n/catalogs/uk/symbols-power.d.ts +122 -0
  324. package/dist/src/i18n/catalogs/uk/symbols-quarry.d.ts +81 -0
  325. package/dist/src/i18n/catalogs/uk/symbols.d.ts +676 -0
  326. package/dist/src/i18n/catalogs/uk/theme.d.ts +4 -0
  327. package/dist/src/i18n/catalogs/uk/ui.d.ts +37 -0
  328. package/dist/src/i18n/catalogs/uk/workspace.d.ts +19 -0
  329. package/dist/src/i18n/catalogs/uk.d.ts +4510 -0
  330. package/dist/src/i18n/index.d.ts +4 -0
  331. package/dist/src/i18n/locale.d.ts +11 -0
  332. package/dist/src/i18n/messages.d.ts +12 -0
  333. package/dist/src/i18n/use-language-change.d.ts +5 -0
  334. package/dist/src/i18n/use-locale.d.ts +1 -0
  335. package/dist/src/index.d.ts +151 -0
  336. package/dist/src/lib/utils.d.ts +2 -0
  337. package/dist/src/theme-provider.d.ts +16 -0
  338. package/dist/src/trpc.d.ts +37 -0
  339. package/dist/src/ui/accordion.d.ts +6 -0
  340. package/dist/src/ui/alert-dialog.d.ts +20 -0
  341. package/dist/src/ui/alert.d.ts +10 -0
  342. package/dist/src/ui/aspect-ratio.d.ts +6 -0
  343. package/dist/src/ui/attachment.d.ts +23 -0
  344. package/dist/src/ui/avatar.d.ts +11 -0
  345. package/dist/src/ui/badge.d.ts +6 -0
  346. package/dist/src/ui/breadcrumb.d.ts +10 -0
  347. package/dist/src/ui/bubble.d.ts +16 -0
  348. package/dist/src/ui/button-group.d.ts +10 -0
  349. package/dist/src/ui/button.d.ts +8 -0
  350. package/dist/src/ui/calendar.d.ts +10 -0
  351. package/dist/src/ui/card.d.ts +11 -0
  352. package/dist/src/ui/carousel.d.ts +28 -0
  353. package/dist/src/ui/chart.d.ts +60 -0
  354. package/dist/src/ui/checkbox.d.ts +3 -0
  355. package/dist/src/ui/collapsible.d.ts +5 -0
  356. package/dist/src/ui/combobox.d.ts +24 -0
  357. package/dist/src/ui/command.d.ts +19 -0
  358. package/dist/src/ui/content-overlay/dismiss.d.ts +10 -0
  359. package/dist/src/ui/content-overlay/region.d.ts +37 -0
  360. package/dist/src/ui/content-overlay/root.d.ts +3 -0
  361. package/dist/src/ui/content-overlay/tab-wrap.d.ts +6 -0
  362. package/dist/src/ui/context-menu.d.ts +28 -0
  363. package/dist/src/ui/data-table.d.ts +38 -0
  364. package/dist/src/ui/date-time-picker.d.ts +30 -0
  365. package/dist/src/ui/dialog.d.ts +19 -0
  366. package/dist/src/ui/direction.d.ts +3 -0
  367. package/dist/src/ui/drawer.d.ts +18 -0
  368. package/dist/src/ui/dropdown-menu.d.ts +29 -0
  369. package/dist/src/ui/empty.d.ts +11 -0
  370. package/dist/src/ui/field.d.ts +24 -0
  371. package/dist/src/ui/gauge-bar.d.ts +43 -0
  372. package/dist/src/ui/gauge.d.ts +24 -0
  373. package/dist/src/ui/hover-card.d.ts +5 -0
  374. package/dist/src/ui/input-group.d.ts +18 -0
  375. package/dist/src/ui/input-otp.d.ts +11 -0
  376. package/dist/src/ui/input.d.ts +3 -0
  377. package/dist/src/ui/item.d.ts +22 -0
  378. package/dist/src/ui/kbd.d.ts +3 -0
  379. package/dist/src/ui/label.d.ts +3 -0
  380. package/dist/src/ui/marker.d.ts +10 -0
  381. package/dist/src/ui/menubar.d.ts +28 -0
  382. package/dist/src/ui/message-history/context.d.ts +51 -0
  383. package/dist/src/ui/message-history/emit.d.ts +27 -0
  384. package/dist/src/ui/message-history/legacy-content.d.ts +6 -0
  385. package/dist/src/ui/message-history/legacy.d.ts +7 -0
  386. package/dist/src/ui/message-history/model.d.ts +22 -0
  387. package/dist/src/ui/message-history/panel.d.ts +6 -0
  388. package/dist/src/ui/message-history/store.d.ts +26 -0
  389. package/dist/src/ui/message-history/toast.d.ts +7 -0
  390. package/dist/src/ui/message-scroller.d.ts +20 -0
  391. package/dist/src/ui/message.d.ts +10 -0
  392. package/dist/src/ui/native-select.d.ts +8 -0
  393. package/dist/src/ui/navigation-menu.d.ts +11 -0
  394. package/dist/src/ui/notice-card.d.ts +61 -0
  395. package/dist/src/ui/page-header.d.ts +21 -0
  396. package/dist/src/ui/page-title.d.ts +5 -0
  397. package/dist/src/ui/pagination.d.ts +17 -0
  398. package/dist/src/ui/popover.d.ts +9 -0
  399. package/dist/src/ui/progress.d.ts +7 -0
  400. package/dist/src/ui/questionnaire.d.ts +19 -0
  401. package/dist/src/ui/radio-group.d.ts +5 -0
  402. package/dist/src/ui/resizable.d.ts +7 -0
  403. package/dist/src/ui/scroll-area.d.ts +5 -0
  404. package/dist/src/ui/select.d.ts +11 -0
  405. package/dist/src/ui/separator.d.ts +3 -0
  406. package/dist/src/ui/sheet.d.ts +14 -0
  407. package/dist/src/ui/sidebar.d.ts +63 -0
  408. package/dist/src/ui/skeleton.d.ts +7 -0
  409. package/dist/src/ui/slider.d.ts +3 -0
  410. package/dist/src/ui/sonner.d.ts +9 -0
  411. package/dist/src/ui/sparkline.d.ts +31 -0
  412. package/dist/src/ui/spinner.d.ts +2 -0
  413. package/dist/src/ui/svg-diagram/dom.d.ts +6 -0
  414. package/dist/src/ui/svg-diagram/types.d.ts +13 -0
  415. package/dist/src/ui/svg-diagram.d.ts +8 -0
  416. package/dist/src/ui/switch.d.ts +5 -0
  417. package/dist/src/ui/table.d.ts +10 -0
  418. package/dist/src/ui/tabs.d.ts +11 -0
  419. package/dist/src/ui/textarea.d.ts +3 -0
  420. package/dist/src/ui/theme-scope.d.ts +11 -0
  421. package/dist/src/ui/toggle-group.d.ts +11 -0
  422. package/dist/src/ui/toggle.d.ts +8 -0
  423. package/dist/src/ui/tooltip.d.ts +6 -0
  424. package/dist/src/version.d.ts +2 -0
  425. package/dist/src/workspace/access-label.d.ts +2 -0
  426. package/dist/src/workspace/alarms/actions.d.ts +19 -0
  427. package/dist/src/workspace/alarms/alarm-list.d.ts +65 -0
  428. package/dist/src/workspace/alarms/history.d.ts +17 -0
  429. package/dist/src/workspace/alarms/model.d.ts +29 -0
  430. package/dist/src/workspace/alarms/nav.d.ts +15 -0
  431. package/dist/src/workspace/alarms/page.d.ts +10 -0
  432. package/dist/src/workspace/alarms/provider.d.ts +30 -0
  433. package/dist/src/workspace/alarms/search.d.ts +8 -0
  434. package/dist/src/workspace/alarms/sound.d.ts +9 -0
  435. package/dist/src/workspace/automations/diagnostic-text.d.ts +6 -0
  436. package/dist/src/workspace/automations/editor-language.d.ts +13 -0
  437. package/dist/src/workspace/automations/item-descriptions.d.ts +3 -0
  438. package/dist/src/workspace/automations/parameter-names.d.ts +2 -0
  439. package/dist/src/workspace/automations/run-text.d.ts +18 -0
  440. package/dist/src/workspace/automations/trace-view.d.ts +24 -0
  441. package/dist/src/workspace/automations/use-catalog.d.ts +10 -0
  442. package/dist/src/workspace/caches.d.ts +41 -0
  443. package/dist/src/workspace/context.d.ts +71 -0
  444. package/dist/src/workspace/copyable-id.d.ts +4 -0
  445. package/dist/src/workspace/dashboards/actions-menu.d.ts +4 -0
  446. package/dist/src/workspace/dashboards/anchor-scroll.d.ts +11 -0
  447. package/dist/src/workspace/dashboards/bindings.d.ts +26 -0
  448. package/dist/src/workspace/dashboards/configuration-rename-dialog.d.ts +10 -0
  449. package/dist/src/workspace/dashboards/configuration-required.d.ts +10 -0
  450. package/dist/src/workspace/dashboards/configuration-update-queue.d.ts +2 -0
  451. package/dist/src/workspace/dashboards/copy-dialog.d.ts +7 -0
  452. package/dist/src/workspace/dashboards/document/blocks.d.ts +42 -0
  453. package/dist/src/workspace/dashboards/document/chart-data.d.ts +13 -0
  454. package/dist/src/workspace/dashboards/document/chart.d.ts +10 -0
  455. package/dist/src/workspace/dashboards/document/layout.d.ts +29 -0
  456. package/dist/src/workspace/dashboards/document/markdown.d.ts +7 -0
  457. package/dist/src/workspace/dashboards/document/sources.d.ts +32 -0
  458. package/dist/src/workspace/dashboards/document/tiles/chart.d.ts +23 -0
  459. package/dist/src/workspace/dashboards/document/tiles/context.d.ts +23 -0
  460. package/dist/src/workspace/dashboards/document/tiles/controls.d.ts +23 -0
  461. package/dist/src/workspace/dashboards/document/tiles/frame.d.ts +28 -0
  462. package/dist/src/workspace/dashboards/document/tiles/gauge-model.d.ts +4 -0
  463. package/dist/src/workspace/dashboards/document/tiles/gauge.d.ts +11 -0
  464. package/dist/src/workspace/dashboards/document/tiles/presentation.d.ts +29 -0
  465. package/dist/src/workspace/dashboards/document/tiles/reading.d.ts +14 -0
  466. package/dist/src/workspace/dashboards/document/tiles/sparkline.d.ts +7 -0
  467. package/dist/src/workspace/dashboards/document/tiles/tile.d.ts +8 -0
  468. package/dist/src/workspace/dashboards/document/tiles/tones.d.ts +44 -0
  469. package/dist/src/workspace/dashboards/document/tiles/use-tile-tone.d.ts +19 -0
  470. package/dist/src/workspace/dashboards/document/tiles/value.d.ts +8 -0
  471. package/dist/src/workspace/dashboards/document/view.d.ts +16 -0
  472. package/dist/src/workspace/dashboards/enabled-switch.d.ts +10 -0
  473. package/dist/src/workspace/dashboards/entrypoint.d.ts +15 -0
  474. package/dist/src/workspace/dashboards/icon.d.ts +6 -0
  475. package/dist/src/workspace/dashboards/load-module.d.ts +40 -0
  476. package/dist/src/workspace/dashboards/locale.d.ts +8 -0
  477. package/dist/src/workspace/dashboards/module-cache.d.ts +9 -0
  478. package/dist/src/workspace/dashboards/mount-diagnostics.d.ts +23 -0
  479. package/dist/src/workspace/dashboards/mount.d.ts +39 -0
  480. package/dist/src/workspace/dashboards/name.d.ts +11 -0
  481. package/dist/src/workspace/dashboards/navigation.d.ts +51 -0
  482. package/dist/src/workspace/dashboards/page-paths.d.ts +7 -0
  483. package/dist/src/workspace/dashboards/page-tabs.d.ts +23 -0
  484. package/dist/src/workspace/dashboards/page.d.ts +4 -0
  485. package/dist/src/workspace/dashboards/rotation.d.ts +26 -0
  486. package/dist/src/workspace/dashboards/search-params.d.ts +7 -0
  487. package/dist/src/workspace/dashboards/sortable-grid.d.ts +79 -0
  488. package/dist/src/workspace/dashboards/stylesheet.d.ts +9 -0
  489. package/dist/src/workspace/dashboards/use-configuration-mutation.d.ts +40 -0
  490. package/dist/src/workspace/device-api/errors.d.ts +6 -0
  491. package/dist/src/workspace/device-api/use-device-api.d.ts +75 -0
  492. package/dist/src/workspace/device-presets/cold-room-card.d.ts +17 -0
  493. package/dist/src/workspace/device-presets/cold-room-commands.d.ts +19 -0
  494. package/dist/src/workspace/device-presets/cold-room-labels.d.ts +5 -0
  495. package/dist/src/workspace/device-presets/cold-room-model.d.ts +141 -0
  496. package/dist/src/workspace/device-presets/command-button.d.ts +34 -0
  497. package/dist/src/workspace/device-presets/endpoint-unavailable.d.ts +15 -0
  498. package/dist/src/workspace/device-presets/gauge-scale.d.ts +23 -0
  499. package/dist/src/workspace/device-presets/gauges.d.ts +52 -0
  500. package/dist/src/workspace/device-presets/header.d.ts +14 -0
  501. package/dist/src/workspace/device-presets/layout.d.ts +52 -0
  502. package/dist/src/workspace/device-presets/overview.d.ts +103 -0
  503. package/dist/src/workspace/device-presets/quantity.d.ts +5 -0
  504. package/dist/src/workspace/device-presets/relay-test-panel.d.ts +37 -0
  505. package/dist/src/workspace/device-presets/relay-test.d.ts +164 -0
  506. package/dist/src/workspace/device-presets/series-colors.d.ts +58 -0
  507. package/dist/src/workspace/device-presets/settings-choice.d.ts +20 -0
  508. package/dist/src/workspace/device-presets/settings-fields.d.ts +39 -0
  509. package/dist/src/workspace/device-presets/settings-form.d.ts +35 -0
  510. package/dist/src/workspace/device-presets/settings-page.d.ts +29 -0
  511. package/dist/src/workspace/device-presets/settings-rows.d.ts +25 -0
  512. package/dist/src/workspace/device-presets/settings-section.d.ts +78 -0
  513. package/dist/src/workspace/device-presets/settings-text.d.ts +5 -0
  514. package/dist/src/workspace/device-presets/settings-types.d.ts +122 -0
  515. package/dist/src/workspace/device-presets/settings-write-dialog.d.ts +27 -0
  516. package/dist/src/workspace/device-presets/settings-write.d.ts +73 -0
  517. package/dist/src/workspace/device-presets/state-text.d.ts +17 -0
  518. package/dist/src/workspace/device-presets/trend-chart.d.ts +51 -0
  519. package/dist/src/workspace/device-presets/trend-model.d.ts +45 -0
  520. package/dist/src/workspace/device-presets/unsupported.d.ts +14 -0
  521. package/dist/src/workspace/device-presets/values.d.ts +56 -0
  522. package/dist/src/workspace/edge-programs/deploy-status.d.ts +12 -0
  523. package/dist/src/workspace/edge-programs/diagnostic-text.d.ts +9 -0
  524. package/dist/src/workspace/edge-programs/editor-language.d.ts +15 -0
  525. package/dist/src/workspace/edge-programs/item-descriptions.d.ts +3 -0
  526. package/dist/src/workspace/edge-programs/live-state.d.ts +12 -0
  527. package/dist/src/workspace/endpoint-status/provider.d.ts +16 -0
  528. package/dist/src/workspace/endpoint-status/store.d.ts +18 -0
  529. package/dist/src/workspace/errors.d.ts +1 -0
  530. package/dist/src/workspace/fleet/alarms.d.ts +27 -0
  531. package/dist/src/workspace/fleet/binding-editor.d.ts +65 -0
  532. package/dist/src/workspace/fleet/board-editor.d.ts +118 -0
  533. package/dist/src/workspace/fleet/command-buttons.d.ts +19 -0
  534. package/dist/src/workspace/fleet/command-entry.d.ts +25 -0
  535. package/dist/src/workspace/fleet/command-steps.d.ts +65 -0
  536. package/dist/src/workspace/fleet/control-mode.d.ts +30 -0
  537. package/dist/src/workspace/fleet/counter-bars.d.ts +109 -0
  538. package/dist/src/workspace/fleet/counter-notices.d.ts +23 -0
  539. package/dist/src/workspace/fleet/counter-period.d.ts +35 -0
  540. package/dist/src/workspace/fleet/counter-shares.d.ts +34 -0
  541. package/dist/src/workspace/fleet/counter-total.d.ts +43 -0
  542. package/dist/src/workspace/fleet/counter-totals.d.ts +77 -0
  543. package/dist/src/workspace/fleet/due-dates.d.ts +18 -0
  544. package/dist/src/workspace/fleet/duplicate-dialog.d.ts +63 -0
  545. package/dist/src/workspace/fleet/editor-dialog.d.ts +26 -0
  546. package/dist/src/workspace/fleet/equipment-setup.d.ts +44 -0
  547. package/dist/src/workspace/fleet/equipment-view.d.ts +31 -0
  548. package/dist/src/workspace/fleet/figure.d.ts +18 -0
  549. package/dist/src/workspace/fleet/form-types.d.ts +15 -0
  550. package/dist/src/workspace/fleet/group-command-dialogs.d.ts +43 -0
  551. package/dist/src/workspace/fleet/group-command.d.ts +83 -0
  552. package/dist/src/workspace/fleet/indicator-lights.d.ts +23 -0
  553. package/dist/src/workspace/fleet/map.d.ts +41 -0
  554. package/dist/src/workspace/fleet/mode-badge.d.ts +7 -0
  555. package/dist/src/workspace/fleet/operations.d.ts +23 -0
  556. package/dist/src/workspace/fleet/order-editor.d.ts +13 -0
  557. package/dist/src/workspace/fleet/overview-model.d.ts +43 -0
  558. package/dist/src/workspace/fleet/overview.d.ts +93 -0
  559. package/dist/src/workspace/fleet/page-header.d.ts +27 -0
  560. package/dist/src/workspace/fleet/parameters.d.ts +65 -0
  561. package/dist/src/workspace/fleet/period-settings.d.ts +66 -0
  562. package/dist/src/workspace/fleet/placement-fields.d.ts +104 -0
  563. package/dist/src/workspace/fleet/position.d.ts +13 -0
  564. package/dist/src/workspace/fleet/readings.d.ts +64 -0
  565. package/dist/src/workspace/fleet/section.d.ts +7 -0
  566. package/dist/src/workspace/fleet/site-page.d.ts +150 -0
  567. package/dist/src/workspace/fleet/slot-fields.d.ts +53 -0
  568. package/dist/src/workspace/fleet/starter-fields.d.ts +63 -0
  569. package/dist/src/workspace/fleet/status-badge.d.ts +23 -0
  570. package/dist/src/workspace/fleet/status.d.ts +85 -0
  571. package/dist/src/workspace/formulas/diagnostic-text.d.ts +7 -0
  572. package/dist/src/workspace/graphics/actions/details.d.ts +49 -0
  573. package/dist/src/workspace/graphics/actions/dialog.d.ts +12 -0
  574. package/dist/src/workspace/graphics/actions/selection.d.ts +1352 -0
  575. package/dist/src/workspace/graphics/binding-value.d.ts +19 -0
  576. package/dist/src/workspace/graphics/bindings.d.ts +847 -0
  577. package/dist/src/workspace/graphics/canvas.d.ts +47 -0
  578. package/dist/src/workspace/graphics/commands/fields.d.ts +7 -0
  579. package/dist/src/workspace/graphics/commands/model.d.ts +10 -0
  580. package/dist/src/workspace/graphics/commands/provider.d.ts +285 -0
  581. package/dist/src/workspace/graphics/dashboard-graphics.d.ts +12 -0
  582. package/dist/src/workspace/graphics/editor-session.d.ts +47 -0
  583. package/dist/src/workspace/graphics/framing.d.ts +28 -0
  584. package/dist/src/workspace/graphics/generated-drawing.d.ts +47 -0
  585. package/dist/src/workspace/graphics/geometry.d.ts +41 -0
  586. package/dist/src/workspace/graphics/image-cache.d.ts +18 -0
  587. package/dist/src/workspace/graphics/image-dialog.d.ts +5 -0
  588. package/dist/src/workspace/graphics/image-picker.d.ts +5 -0
  589. package/dist/src/workspace/graphics/inspector/bindings.d.ts +17 -0
  590. package/dist/src/workspace/graphics/inspector/element.d.ts +10 -0
  591. package/dist/src/workspace/graphics/inspector/fields.d.ts +69 -0
  592. package/dist/src/workspace/graphics/inspector/item.d.ts +862 -0
  593. package/dist/src/workspace/graphics/inspector/multi.d.ts +10 -0
  594. package/dist/src/workspace/graphics/inspector/panel.d.ts +27 -0
  595. package/dist/src/workspace/graphics/inspector/ports.d.ts +2 -0
  596. package/dist/src/workspace/graphics/inspector/section.d.ts +14 -0
  597. package/dist/src/workspace/graphics/inspector/slots.d.ts +7 -0
  598. package/dist/src/workspace/graphics/inspector/symbol.d.ts +11 -0
  599. package/dist/src/workspace/graphics/line-geometry.d.ts +26 -0
  600. package/dist/src/workspace/graphics/lines.d.ts +14 -0
  601. package/dist/src/workspace/graphics/node-memo.d.ts +3 -0
  602. package/dist/src/workspace/graphics/node.d.ts +3 -0
  603. package/dist/src/workspace/graphics/placement.d.ts +23 -0
  604. package/dist/src/workspace/graphics/quality-indicator.d.ts +6 -0
  605. package/dist/src/workspace/graphics/resize-handles.d.ts +8 -0
  606. package/dist/src/workspace/graphics/source-picker.d.ts +35 -0
  607. package/dist/src/workspace/graphics/symbol-issues.d.ts +26 -0
  608. package/dist/src/workspace/graphics/symbols/agriculture/fertigation.d.ts +1 -0
  609. package/dist/src/workspace/graphics/symbols/agriculture/index.d.ts +2 -0
  610. package/dist/src/workspace/graphics/symbols/agriculture/soil-sensor.d.ts +1 -0
  611. package/dist/src/workspace/graphics/symbols/agriculture/soil.d.ts +9 -0
  612. package/dist/src/workspace/graphics/symbols/agriculture/sprinkler.d.ts +1 -0
  613. package/dist/src/workspace/graphics/symbols/agriculture/zone.d.ts +1 -0
  614. package/dist/src/workspace/graphics/symbols/bindings.d.ts +34 -0
  615. package/dist/src/workspace/graphics/symbols/browser.d.ts +28 -0
  616. package/dist/src/workspace/graphics/symbols/builtins.d.ts +2 -0
  617. package/dist/src/workspace/graphics/symbols/button.d.ts +2 -0
  618. package/dist/src/workspace/graphics/symbols/catalog.d.ts +41 -0
  619. package/dist/src/workspace/graphics/symbols/compressed-air/compressor.d.ts +1 -0
  620. package/dist/src/workspace/graphics/symbols/compressed-air/drain.d.ts +15 -0
  621. package/dist/src/workspace/graphics/symbols/compressed-air/index.d.ts +1 -0
  622. package/dist/src/workspace/graphics/symbols/compressed-air/receiver.d.ts +1 -0
  623. package/dist/src/workspace/graphics/symbols/compressed-air/treatment.d.ts +2 -0
  624. package/dist/src/workspace/graphics/symbols/definition.d.ts +115 -0
  625. package/dist/src/workspace/graphics/symbols/electrical/breaker.d.ts +2 -0
  626. package/dist/src/workspace/graphics/symbols/electrical/compensation.d.ts +1 -0
  627. package/dist/src/workspace/graphics/symbols/electrical/index.d.ts +5 -0
  628. package/dist/src/workspace/graphics/symbols/electrical/loads.d.ts +3 -0
  629. package/dist/src/workspace/graphics/symbols/electrical/machines.d.ts +3 -0
  630. package/dist/src/workspace/graphics/symbols/electrical/metering.d.ts +8 -0
  631. package/dist/src/workspace/graphics/symbols/electrical/presentation.d.ts +132 -0
  632. package/dist/src/workspace/graphics/symbols/electrical/renewables.d.ts +2 -0
  633. package/dist/src/workspace/graphics/symbols/electrical/storage.d.ts +2 -0
  634. package/dist/src/workspace/graphics/symbols/electrical/supply.d.ts +2 -0
  635. package/dist/src/workspace/graphics/symbols/electrical/switchgear.d.ts +61 -0
  636. package/dist/src/workspace/graphics/symbols/food/filling.d.ts +1 -0
  637. package/dist/src/workspace/graphics/symbols/food/index.d.ts +1 -0
  638. package/dist/src/workspace/graphics/symbols/food/vessel.d.ts +1 -0
  639. package/dist/src/workspace/graphics/symbols/fuel-gas/gas-detector.d.ts +1 -0
  640. package/dist/src/workspace/graphics/symbols/fuel-gas/index.d.ts +1 -0
  641. package/dist/src/workspace/graphics/symbols/handles.d.ts +6 -0
  642. package/dist/src/workspace/graphics/symbols/hvac/air-handling.d.ts +4 -0
  643. package/dist/src/workspace/graphics/symbols/hvac/air-section.d.ts +60 -0
  644. package/dist/src/workspace/graphics/symbols/hvac/air-terminals.d.ts +2 -0
  645. package/dist/src/workspace/graphics/symbols/hvac/air-treatment.d.ts +2 -0
  646. package/dist/src/workspace/graphics/symbols/hvac/circuit.d.ts +45 -0
  647. package/dist/src/workspace/graphics/symbols/hvac/cooling-plant.d.ts +2 -0
  648. package/dist/src/workspace/graphics/symbols/hvac/firing.d.ts +2 -0
  649. package/dist/src/workspace/graphics/symbols/hvac/hydronic.d.ts +5 -0
  650. package/dist/src/workspace/graphics/symbols/hvac/index.d.ts +2 -0
  651. package/dist/src/workspace/graphics/symbols/hvac/instruments.d.ts +5 -0
  652. package/dist/src/workspace/graphics/symbols/hvac/presentation.d.ts +162 -0
  653. package/dist/src/workspace/graphics/symbols/manufacturing/actuators.d.ts +20 -0
  654. package/dist/src/workspace/graphics/symbols/manufacturing/conveyor.d.ts +26 -0
  655. package/dist/src/workspace/graphics/symbols/manufacturing/index.d.ts +3 -0
  656. package/dist/src/workspace/graphics/symbols/manufacturing/indicators.d.ts +2 -0
  657. package/dist/src/workspace/graphics/symbols/manufacturing/stations.d.ts +3 -0
  658. package/dist/src/workspace/graphics/symbols/ports.d.ts +12 -0
  659. package/dist/src/workspace/graphics/symbols/preferences.d.ts +27 -0
  660. package/dist/src/workspace/graphics/symbols/preview.d.ts +8 -0
  661. package/dist/src/workspace/graphics/symbols/properties.d.ts +46 -0
  662. package/dist/src/workspace/graphics/symbols/provider.d.ts +12 -0
  663. package/dist/src/workspace/graphics/symbols/pump-status-icon.d.ts +5 -0
  664. package/dist/src/workspace/graphics/symbols/pump.d.ts +2 -0
  665. package/dist/src/workspace/graphics/symbols/quality.d.ts +63 -0
  666. package/dist/src/workspace/graphics/symbols/quarry/belt-scale.d.ts +1 -0
  667. package/dist/src/workspace/graphics/symbols/quarry/chute.d.ts +1 -0
  668. package/dist/src/workspace/graphics/symbols/quarry/crusher.d.ts +2 -0
  669. package/dist/src/workspace/graphics/symbols/quarry/diverter-gate.d.ts +2 -0
  670. package/dist/src/workspace/graphics/symbols/quarry/dust-collector.d.ts +1 -0
  671. package/dist/src/workspace/graphics/symbols/quarry/feeder.d.ts +1 -0
  672. package/dist/src/workspace/graphics/symbols/quarry/hopper.d.ts +1 -0
  673. package/dist/src/workspace/graphics/symbols/quarry/index.d.ts +1 -0
  674. package/dist/src/workspace/graphics/symbols/quarry/parts.d.ts +18 -0
  675. package/dist/src/workspace/graphics/symbols/quarry/screen.d.ts +2 -0
  676. package/dist/src/workspace/graphics/symbols/quarry/spray-suppression.d.ts +1 -0
  677. package/dist/src/workspace/graphics/symbols/quarry/stockpile.d.ts +1 -0
  678. package/dist/src/workspace/graphics/symbols/quarry/trommel.d.ts +1 -0
  679. package/dist/src/workspace/graphics/symbols/reading.d.ts +3 -0
  680. package/dist/src/workspace/graphics/symbols/render.d.ts +12 -0
  681. package/dist/src/workspace/graphics/symbols/reservoir.d.ts +2 -0
  682. package/dist/src/workspace/graphics/symbols/serialize.d.ts +7 -0
  683. package/dist/src/workspace/graphics/symbols/status.d.ts +47 -0
  684. package/dist/src/workspace/graphics/symbols/thermal/furnace.d.ts +28 -0
  685. package/dist/src/workspace/graphics/symbols/thermal/heater.d.ts +6 -0
  686. package/dist/src/workspace/graphics/symbols/thermal/index.d.ts +1 -0
  687. package/dist/src/workspace/graphics/symbols/thermal/kiln.d.ts +1 -0
  688. package/dist/src/workspace/graphics/symbols/upright.d.ts +68 -0
  689. package/dist/src/workspace/graphics/symbols/variant-field.d.ts +17 -0
  690. package/dist/src/workspace/graphics/symbols/variants.d.ts +30 -0
  691. package/dist/src/workspace/graphics/symbols/viewport.d.ts +43 -0
  692. package/dist/src/workspace/graphics/symbols/warehouse/agv.d.ts +4 -0
  693. package/dist/src/workspace/graphics/symbols/warehouse/cold-room.d.ts +2 -0
  694. package/dist/src/workspace/graphics/symbols/warehouse/cooling-unit.d.ts +19 -0
  695. package/dist/src/workspace/graphics/symbols/warehouse/door.d.ts +61 -0
  696. package/dist/src/workspace/graphics/symbols/warehouse/index.d.ts +1 -0
  697. package/dist/src/workspace/graphics/symbols/warehouse/loading-dock.d.ts +2 -0
  698. package/dist/src/workspace/graphics/symbols/warehouse/pallet.d.ts +2 -0
  699. package/dist/src/workspace/graphics/symbols/warehouse/rack.d.ts +25 -0
  700. package/dist/src/workspace/graphics/symbols/warehouse/stacker-crane.d.ts +12 -0
  701. package/dist/src/workspace/graphics/symbols/warehouse/storage-zone.d.ts +34 -0
  702. package/dist/src/workspace/graphics/symbols/waste/baler.d.ts +5 -0
  703. package/dist/src/workspace/graphics/symbols/waste/compactor.d.ts +1 -0
  704. package/dist/src/workspace/graphics/symbols/waste/container.d.ts +7 -0
  705. package/dist/src/workspace/graphics/symbols/waste/index.d.ts +2 -0
  706. package/dist/src/workspace/graphics/symbols/waste/parts.d.ts +32 -0
  707. package/dist/src/workspace/graphics/symbols/waste/separator.d.ts +1 -0
  708. package/dist/src/workspace/graphics/symbols/waste/shredder.d.ts +1 -0
  709. package/dist/src/workspace/graphics/symbols/waste/vehicle.d.ts +1 -0
  710. package/dist/src/workspace/graphics/symbols/waste/weighbridge.d.ts +1 -0
  711. package/dist/src/workspace/graphics/symbols/water/aeration.d.ts +8 -0
  712. package/dist/src/workspace/graphics/symbols/water/artwork.d.ts +42 -0
  713. package/dist/src/workspace/graphics/symbols/water/clarifier.d.ts +1 -0
  714. package/dist/src/workspace/graphics/symbols/water/disinfection.d.ts +1 -0
  715. package/dist/src/workspace/graphics/symbols/water/dosing.d.ts +30 -0
  716. package/dist/src/workspace/graphics/symbols/water/filter.d.ts +1 -0
  717. package/dist/src/workspace/graphics/symbols/water/index.d.ts +8 -0
  718. package/dist/src/workspace/graphics/symbols/water/instruments.d.ts +3 -0
  719. package/dist/src/workspace/graphics/symbols/water/pumps.d.ts +7 -0
  720. package/dist/src/workspace/graphics/symbols/water/tank.d.ts +1 -0
  721. package/dist/src/workspace/graphics/symbols/water/treatment-state.d.ts +15 -0
  722. package/dist/src/workspace/graphics/symbols/water/valves.d.ts +8 -0
  723. package/dist/src/workspace/graphics/symbols/well.d.ts +2 -0
  724. package/dist/src/workspace/graphics/toolbar.d.ts +58 -0
  725. package/dist/src/workspace/graphics/use-images.d.ts +13 -0
  726. package/dist/src/workspace/graphics/view-frame.d.ts +31 -0
  727. package/dist/src/workspace/graphics/viewport-passthrough.d.ts +8 -0
  728. package/dist/src/workspace/index-page.d.ts +3 -0
  729. package/dist/src/workspace/layout.d.ts +3 -0
  730. package/dist/src/workspace/live-changes.d.ts +16 -0
  731. package/dist/src/workspace/local-message-identity.d.ts +2 -0
  732. package/dist/src/workspace/local-setup-link.d.ts +16 -0
  733. package/dist/src/workspace/local-workspace-app.d.ts +21 -0
  734. package/dist/src/workspace/maps/auth-failure.d.ts +5 -0
  735. package/dist/src/workspace/maps/error-boundary.d.ts +21 -0
  736. package/dist/src/workspace/maps/lat-lng.d.ts +8 -0
  737. package/dist/src/workspace/maps/location-map-renderer.d.ts +10 -0
  738. package/dist/src/workspace/maps/location-map.d.ts +40 -0
  739. package/dist/src/workspace/maps/location-picker-renderer.d.ts +20 -0
  740. package/dist/src/workspace/maps/location-picker.d.ts +31 -0
  741. package/dist/src/workspace/maps/use-browser-config.d.ts +11 -0
  742. package/dist/src/workspace/maps/use-reverse-geocode.d.ts +15 -0
  743. package/dist/src/workspace/mobile-nav.d.ts +13 -0
  744. package/dist/src/workspace/mutations.d.ts +10634 -0
  745. package/dist/src/workspace/no-access.d.ts +1 -0
  746. package/dist/src/workspace/page-navigation.d.ts +67 -0
  747. package/dist/src/workspace/page-state/branch-path.d.ts +7 -0
  748. package/dist/src/workspace/page-state/context.d.ts +14 -0
  749. package/dist/src/workspace/page-state/dashboard-context.d.ts +37 -0
  750. package/dist/src/workspace/page-state/dashboard.d.ts +65 -0
  751. package/dist/src/workspace/page-state/model.d.ts +48 -0
  752. package/dist/src/workspace/page-state/parameters.d.ts +11 -0
  753. package/dist/src/workspace/page-state/report.d.ts +16 -0
  754. package/dist/src/workspace/page-state/store.d.ts +10 -0
  755. package/dist/src/workspace/parameters/defaults.d.ts +7 -0
  756. package/dist/src/workspace/parameters/display.d.ts +28 -0
  757. package/dist/src/workspace/parameters/distinct-names.d.ts +12 -0
  758. package/dist/src/workspace/parameters/errors.d.ts +15 -0
  759. package/dist/src/workspace/parameters/form/shared-fields.d.ts +49 -0
  760. package/dist/src/workspace/parameters/form/values.d.ts +33 -0
  761. package/dist/src/workspace/parameters/geo-value.d.ts +9 -0
  762. package/dist/src/workspace/parameters/icon.d.ts +8 -0
  763. package/dist/src/workspace/parameters/inventory-options.d.ts +9 -0
  764. package/dist/src/workspace/parameters/live/condition.d.ts +4 -0
  765. package/dist/src/workspace/parameters/live/control-button.d.ts +13 -0
  766. package/dist/src/workspace/parameters/live/controls.d.ts +14 -0
  767. package/dist/src/workspace/parameters/live/coordinator.d.ts +87 -0
  768. package/dist/src/workspace/parameters/live/deadline.d.ts +13 -0
  769. package/dist/src/workspace/parameters/live/diagnostic-copy.d.ts +26 -0
  770. package/dist/src/workspace/parameters/live/diagnostic-links.d.ts +5 -0
  771. package/dist/src/workspace/parameters/live/diagnostics.d.ts +9 -0
  772. package/dist/src/workspace/parameters/live/history-windows.d.ts +53 -0
  773. package/dist/src/workspace/parameters/live/metric.d.ts +29 -0
  774. package/dist/src/workspace/parameters/live/model.d.ts +133 -0
  775. package/dist/src/workspace/parameters/live/provider.d.ts +49 -0
  776. package/dist/src/workspace/parameters/live/read-once.d.ts +13 -0
  777. package/dist/src/workspace/parameters/live/stale-note.d.ts +8 -0
  778. package/dist/src/workspace/parameters/live/use-history.d.ts +30 -0
  779. package/dist/src/workspace/parameters/live/use-stored-history.d.ts +85 -0
  780. package/dist/src/workspace/parameters/live/value-display.d.ts +25 -0
  781. package/dist/src/workspace/parameters/live/value-editor.d.ts +24 -0
  782. package/dist/src/workspace/parameters/live/write-review-dialog.d.ts +41 -0
  783. package/dist/src/workspace/parameters/live/write-review-form.d.ts +18 -0
  784. package/dist/src/workspace/parameters/live/write-sequence-dialog.d.ts +80 -0
  785. package/dist/src/workspace/parameters/metadata.d.ts +37 -0
  786. package/dist/src/workspace/parameters/option-labels.d.ts +14 -0
  787. package/dist/src/workspace/parameters/picker/browser.d.ts +41 -0
  788. package/dist/src/workspace/parameters/picker/model.d.ts +91 -0
  789. package/dist/src/workspace/parameters/picker/picker.d.ts +380 -0
  790. package/dist/src/workspace/parameters/runtime-errors.d.ts +23 -0
  791. package/dist/src/workspace/parameters/source-fields.d.ts +22 -0
  792. package/dist/src/workspace/parameters/value/cells.d.ts +21 -0
  793. package/dist/src/workspace/parameters/value/edit-draft.d.ts +24 -0
  794. package/dist/src/workspace/parameters/value/reads.d.ts +54 -0
  795. package/dist/src/workspace/parameters/value/state.d.ts +96 -0
  796. package/dist/src/workspace/parameters/value/type/datetime-parts.d.ts +12 -0
  797. package/dist/src/workspace/parameters/value/type/fields.d.ts +5 -0
  798. package/dist/src/workspace/parameters/value/type/geo.d.ts +10 -0
  799. package/dist/src/workspace/parameters/value/type/int-repr.d.ts +9 -0
  800. package/dist/src/workspace/parameters/writability.d.ts +26 -0
  801. package/dist/src/workspace/pull-instructions.d.ts +4 -0
  802. package/dist/src/workspace/query-gate.d.ts +40 -0
  803. package/dist/src/workspace/reports/aggregate-fetch.d.ts +25 -0
  804. package/dist/src/workspace/reports/bar-legend.d.ts +12 -0
  805. package/dist/src/workspace/reports/bar-path.d.ts +25 -0
  806. package/dist/src/workspace/reports/cadence-fetch.d.ts +25 -0
  807. package/dist/src/workspace/reports/calendar/demand.d.ts +46 -0
  808. package/dist/src/workspace/reports/calendar/layout.d.ts +98 -0
  809. package/dist/src/workspace/reports/calendar/representation.d.ts +7 -0
  810. package/dist/src/workspace/reports/cell-title.d.ts +11 -0
  811. package/dist/src/workspace/reports/chart/axes.d.ts +17 -0
  812. package/dist/src/workspace/reports/chart/build.d.ts +208 -0
  813. package/dist/src/workspace/reports/chart/caches.d.ts +57 -0
  814. package/dist/src/workspace/reports/chart/colors.d.ts +17 -0
  815. package/dist/src/workspace/reports/chart/comment-gutter.d.ts +44 -0
  816. package/dist/src/workspace/reports/chart/demand.d.ts +50 -0
  817. package/dist/src/workspace/reports/chart/paint.d.ts +17 -0
  818. package/dist/src/workspace/reports/chart/pan-zoom.d.ts +19 -0
  819. package/dist/src/workspace/reports/chart/payload.d.ts +57 -0
  820. package/dist/src/workspace/reports/chart/plot-interactions.d.ts +13 -0
  821. package/dist/src/workspace/reports/chart/plot-tooltip.d.ts +10 -0
  822. package/dist/src/workspace/reports/chart/plot.d.ts +29 -0
  823. package/dist/src/workspace/reports/chart/realtime.d.ts +96 -0
  824. package/dist/src/workspace/reports/chart/representation.d.ts +40 -0
  825. package/dist/src/workspace/reports/chart/tooltip.d.ts +36 -0
  826. package/dist/src/workspace/reports/chart/use-realtime.d.ts +44 -0
  827. package/dist/src/workspace/reports/color/cascade.d.ts +3 -0
  828. package/dist/src/workspace/reports/color/css.d.ts +5 -0
  829. package/dist/src/workspace/reports/color/select.d.ts +11 -0
  830. package/dist/src/workspace/reports/comments/author.d.ts +2 -0
  831. package/dist/src/workspace/reports/comments/errors.d.ts +11 -0
  832. package/dist/src/workspace/reports/comments/footer.d.ts +1 -0
  833. package/dist/src/workspace/reports/comments/use-comments.d.ts +9 -0
  834. package/dist/src/workspace/reports/csv/build.d.ts +29 -0
  835. package/dist/src/workspace/reports/csv/columns.d.ts +18 -0
  836. package/dist/src/workspace/reports/csv/fetch.d.ts +29 -0
  837. package/dist/src/workspace/reports/csv/use-export.d.ts +7 -0
  838. package/dist/src/workspace/reports/data/context.d.ts +79 -0
  839. package/dist/src/workspace/reports/data/extent.d.ts +40 -0
  840. package/dist/src/workspace/reports/data/provider.d.ts +20 -0
  841. package/dist/src/workspace/reports/data/report-caches.d.ts +56 -0
  842. package/dist/src/workspace/reports/data/specs.d.ts +38 -0
  843. package/dist/src/workspace/reports/demand-cache.d.ts +76 -0
  844. package/dist/src/workspace/reports/element-size.d.ts +7 -0
  845. package/dist/src/workspace/reports/generated.d.ts +46 -0
  846. package/dist/src/workspace/reports/histogram/build.d.ts +1 -0
  847. package/dist/src/workspace/reports/histogram/demand.d.ts +26 -0
  848. package/dist/src/workspace/reports/histogram/plot.d.ts +42 -0
  849. package/dist/src/workspace/reports/histogram/representation.d.ts +8 -0
  850. package/dist/src/workspace/reports/histogram/slots.d.ts +19 -0
  851. package/dist/src/workspace/reports/hourly-matrix/demand.d.ts +28 -0
  852. package/dist/src/workspace/reports/hourly-matrix/layout.d.ts +36 -0
  853. package/dist/src/workspace/reports/hourly-matrix/model.d.ts +66 -0
  854. package/dist/src/workspace/reports/hourly-matrix/representation.d.ts +7 -0
  855. package/dist/src/workspace/reports/html/build.d.ts +57 -0
  856. package/dist/src/workspace/reports/html/cache-clone.d.ts +36 -0
  857. package/dist/src/workspace/reports/html/calendar.d.ts +15 -0
  858. package/dist/src/workspace/reports/html/comments.d.ts +13 -0
  859. package/dist/src/workspace/reports/html/css.d.ts +2 -0
  860. package/dist/src/workspace/reports/html/document.d.ts +5 -0
  861. package/dist/src/workspace/reports/html/escape.d.ts +6 -0
  862. package/dist/src/workspace/reports/html/matrix.d.ts +13 -0
  863. package/dist/src/workspace/reports/html/mounted.d.ts +19 -0
  864. package/dist/src/workspace/reports/html/png.d.ts +39 -0
  865. package/dist/src/workspace/reports/html/ready.d.ts +56 -0
  866. package/dist/src/workspace/reports/html/table.d.ts +3 -0
  867. package/dist/src/workspace/reports/html/use-render.d.ts +8 -0
  868. package/dist/src/workspace/reports/html/widgets.d.ts +31 -0
  869. package/dist/src/workspace/reports/page.d.ts +4 -0
  870. package/dist/src/workspace/reports/preset/errors.d.ts +5 -0
  871. package/dist/src/workspace/reports/preset/form-helpers.d.ts +65 -0
  872. package/dist/src/workspace/reports/preset/submit.d.ts +43 -0
  873. package/dist/src/workspace/reports/quick-report.d.ts +17 -0
  874. package/dist/src/workspace/reports/readings-client.d.ts +23 -0
  875. package/dist/src/workspace/reports/runtime-chrome.d.ts +15 -0
  876. package/dist/src/workspace/reports/sankey/demand.d.ts +47 -0
  877. package/dist/src/workspace/reports/sankey/graph.d.ts +28 -0
  878. package/dist/src/workspace/reports/sankey/layout.d.ts +80 -0
  879. package/dist/src/workspace/reports/sankey/representation.d.ts +7 -0
  880. package/dist/src/workspace/reports/sankey/use-caches.d.ts +16 -0
  881. package/dist/src/workspace/reports/session/init.d.ts +9 -0
  882. package/dist/src/workspace/reports/session/storage.d.ts +24 -0
  883. package/dist/src/workspace/reports/state-duration/demand.d.ts +39 -0
  884. package/dist/src/workspace/reports/state-duration/reduce.d.ts +27 -0
  885. package/dist/src/workspace/reports/state-duration/representation.d.ts +7 -0
  886. package/dist/src/workspace/reports/state-duration/use-caches.d.ts +15 -0
  887. package/dist/src/workspace/reports/table/cache-fetch.d.ts +8 -0
  888. package/dist/src/workspace/reports/table/chunk.d.ts +31 -0
  889. package/dist/src/workspace/reports/table/demand.d.ts +83 -0
  890. package/dist/src/workspace/reports/table/fetch.d.ts +42 -0
  891. package/dist/src/workspace/reports/table/format.d.ts +7 -0
  892. package/dist/src/workspace/reports/table/representation.d.ts +10 -0
  893. package/dist/src/workspace/reports/table/rows.d.ts +31 -0
  894. package/dist/src/workspace/reports/table/snapshot.d.ts +40 -0
  895. package/dist/src/workspace/reports/table/totals.d.ts +4 -0
  896. package/dist/src/workspace/reports/time-buckets/build.d.ts +40 -0
  897. package/dist/src/workspace/reports/time-buckets/demand.d.ts +52 -0
  898. package/dist/src/workspace/reports/time-buckets/navigate.d.ts +26 -0
  899. package/dist/src/workspace/reports/time-buckets/plot.d.ts +58 -0
  900. package/dist/src/workspace/reports/time-buckets/representation.d.ts +8 -0
  901. package/dist/src/workspace/reports/time-buckets/slots.d.ts +23 -0
  902. package/dist/src/workspace/reports/time-nav.d.ts +1 -0
  903. package/dist/src/workspace/reports/use-demand-cache.d.ts +29 -0
  904. package/dist/src/workspace/reports/use-quick-report.d.ts +45 -0
  905. package/dist/src/workspace/reports/view.d.ts +6 -0
  906. package/dist/src/workspace/routes.d.ts +23 -0
  907. package/dist/src/workspace/setup/automations/alarm-rule-dialog.d.ts +7 -0
  908. package/dist/src/workspace/setup/automations/alarm-rule-lists.d.ts +61 -0
  909. package/dist/src/workspace/setup/automations/alarm-rules-page.d.ts +4 -0
  910. package/dist/src/workspace/setup/automations/document.d.ts +39 -0
  911. package/dist/src/workspace/setup/automations/dry-run.d.ts +12 -0
  912. package/dist/src/workspace/setup/automations/editor-form.d.ts +22 -0
  913. package/dist/src/workspace/setup/automations/editor-page.d.ts +14 -0
  914. package/dist/src/workspace/setup/automations/editor-tab.d.ts +6 -0
  915. package/dist/src/workspace/setup/automations/entity-controls.d.ts +22 -0
  916. package/dist/src/workspace/setup/automations/history.d.ts +15 -0
  917. package/dist/src/workspace/setup/automations/list-page.d.ts +28 -0
  918. package/dist/src/workspace/setup/automations/starter-dialog.d.ts +10 -0
  919. package/dist/src/workspace/setup/automations/starter-handoff.d.ts +17 -0
  920. package/dist/src/workspace/setup/base-revision.d.ts +64 -0
  921. package/dist/src/workspace/setup/breadcrumbs.d.ts +10 -0
  922. package/dist/src/workspace/setup/catalog-list.d.ts +21 -0
  923. package/dist/src/workspace/setup/dashboards-order.d.ts +10 -0
  924. package/dist/src/workspace/setup/dashboards-page.d.ts +24 -0
  925. package/dist/src/workspace/setup/dashboards-reorder-queue.d.ts +13 -0
  926. package/dist/src/workspace/setup/dashboards-sortable-list.d.ts +6 -0
  927. package/dist/src/workspace/setup/endpoints/connection-error.d.ts +3 -0
  928. package/dist/src/workspace/setup/endpoints/connection-indicator.d.ts +4 -0
  929. package/dist/src/workspace/setup/endpoints/device-log-clock.d.ts +7 -0
  930. package/dist/src/workspace/setup/endpoints/display.d.ts +12 -0
  931. package/dist/src/workspace/setup/endpoints/edit-dialog.d.ts +5 -0
  932. package/dist/src/workspace/setup/endpoints/enabled-switch.d.ts +10 -0
  933. package/dist/src/workspace/setup/endpoints/form-problem.d.ts +5 -0
  934. package/dist/src/workspace/setup/endpoints/page.d.ts +11 -0
  935. package/dist/src/workspace/setup/endpoints/presence-challenge.d.ts +34 -0
  936. package/dist/src/workspace/setup/endpoints/presence-code.d.ts +6 -0
  937. package/dist/src/workspace/setup/endpoints/programs/deploy-status-bar.d.ts +13 -0
  938. package/dist/src/workspace/setup/endpoints/programs/device-log.d.ts +15 -0
  939. package/dist/src/workspace/setup/endpoints/programs/dialogs.d.ts +16 -0
  940. package/dist/src/workspace/setup/endpoints/programs/live-state-pane.d.ts +7 -0
  941. package/dist/src/workspace/setup/endpoints/programs/program-editor.d.ts +79 -0
  942. package/dist/src/workspace/setup/endpoints/programs/programs-tab.d.ts +14 -0
  943. package/dist/src/workspace/setup/endpoints/programs/settings-dialog.d.ts +9 -0
  944. package/dist/src/workspace/setup/endpoints/programs/starter-dialog.d.ts +17 -0
  945. package/dist/src/workspace/setup/endpoints/programs/tasks-table.d.ts +5 -0
  946. package/dist/src/workspace/setup/endpoints/sharing.d.ts +9 -0
  947. package/dist/src/workspace/setup/endpoints/status-connection.d.ts +8 -0
  948. package/dist/src/workspace/setup/endpoints/status-device-ui-progress.d.ts +9 -0
  949. package/dist/src/workspace/setup/endpoints/status-device-ui.d.ts +8 -0
  950. package/dist/src/workspace/setup/endpoints/status-page.d.ts +14 -0
  951. package/dist/src/workspace/setup/endpoints/status-recorded.d.ts +13 -0
  952. package/dist/src/workspace/setup/endpoints/status-tab.d.ts +12 -0
  953. package/dist/src/workspace/setup/endpoints/wireguard-docs.d.ts +11 -0
  954. package/dist/src/workspace/setup/files/errors.d.ts +1 -0
  955. package/dist/src/workspace/setup/files/http.d.ts +21 -0
  956. package/dist/src/workspace/setup/files/page.d.ts +3 -0
  957. package/dist/src/workspace/setup/menu.d.ts +14 -0
  958. package/dist/src/workspace/setup/nav.d.ts +11 -0
  959. package/dist/src/workspace/setup/parameters/dialogs.d.ts +32 -0
  960. package/dist/src/workspace/setup/parameters/edit/create-branch-form.d.ts +10 -0
  961. package/dist/src/workspace/setup/parameters/edit/dialog-body.d.ts +13 -0
  962. package/dist/src/workspace/setup/parameters/edit/form.d.ts +22 -0
  963. package/dist/src/workspace/setup/parameters/page.d.ts +3 -0
  964. package/dist/src/workspace/setup/parameters/recorded.d.ts +14 -0
  965. package/dist/src/workspace/setup/parameters/selection.d.ts +45 -0
  966. package/dist/src/workspace/setup/parameters/stamp-from-template-form.d.ts +10 -0
  967. package/dist/src/workspace/setup/parameters/toolbar.d.ts +32 -0
  968. package/dist/src/workspace/setup/parameters/tree/expand.d.ts +10 -0
  969. package/dist/src/workspace/setup/parameters/tree/model.d.ts +61 -0
  970. package/dist/src/workspace/setup/parameters/tree/rows.d.ts +38 -0
  971. package/dist/src/workspace/setup/parameters/tree/storage.d.ts +13 -0
  972. package/dist/src/workspace/setup/parameters/use-tree-selection.d.ts +21 -0
  973. package/dist/src/workspace/setup/parameters/use-tree-view.d.ts +22 -0
  974. package/dist/src/workspace/setup/report/add-parameters-dialog.d.ts +8 -0
  975. package/dist/src/workspace/setup/report/calendar-editor.d.ts +9 -0
  976. package/dist/src/workspace/setup/report/chart-editor.d.ts +14 -0
  977. package/dist/src/workspace/setup/report/edit/confirm-removal-dialog.d.ts +9 -0
  978. package/dist/src/workspace/setup/report/edit/dialog-body.d.ts +10 -0
  979. package/dist/src/workspace/setup/report/edit/form.d.ts +14 -0
  980. package/dist/src/workspace/setup/report/edit/representations-section.d.ts +11 -0
  981. package/dist/src/workspace/setup/report/edit/sections.d.ts +23 -0
  982. package/dist/src/workspace/setup/report/edit/state.d.ts +29 -0
  983. package/dist/src/workspace/setup/report/foldable-item-card.d.ts +47 -0
  984. package/dist/src/workspace/setup/report/histogram-editor.d.ts +9 -0
  985. package/dist/src/workspace/setup/report/hourly-matrix-editor.d.ts +9 -0
  986. package/dist/src/workspace/setup/report/includes-literal.d.ts +1 -0
  987. package/dist/src/workspace/setup/report/layout-editor.d.ts +6 -0
  988. package/dist/src/workspace/setup/report/number-draft-input.d.ts +23 -0
  989. package/dist/src/workspace/setup/report/page.d.ts +3 -0
  990. package/dist/src/workspace/setup/report/sankey-editor.d.ts +9 -0
  991. package/dist/src/workspace/setup/report/state-duration-editor.d.ts +9 -0
  992. package/dist/src/workspace/setup/report/table-editor.d.ts +9 -0
  993. package/dist/src/workspace/setup/report/time-buckets-editor.d.ts +9 -0
  994. package/dist/src/workspace/setup/route/dialog.d.ts +33 -0
  995. package/dist/src/workspace/setup/route/dialogs.d.ts +41 -0
  996. package/dist/src/workspace/setup/sections.d.ts +17 -0
  997. package/dist/src/workspace/setup/starters/starter-fields.d.ts +45 -0
  998. package/dist/src/workspace/setup/starters/starter-form.d.ts +50 -0
  999. package/dist/src/workspace/setup/storage/dialogs.d.ts +77 -0
  1000. package/dist/src/workspace/setup/storage/format.d.ts +6 -0
  1001. package/dist/src/workspace/setup/storage/page.d.ts +3 -0
  1002. package/dist/src/workspace/setup/storage/retention-note.d.ts +11 -0
  1003. package/dist/src/workspace/setup/storage/retention.d.ts +21 -0
  1004. package/dist/src/workspace/shell.d.ts +21 -0
  1005. package/dist/src/workspace/sidebar-nav-link.d.ts +13 -0
  1006. package/dist/src/workspace/suspended.d.ts +8 -0
  1007. package/dist/starter-fields-BRLX0z-v.js +586 -0
  1008. package/dist/starter-handoff-BA3ucMKL.js +19 -0
  1009. package/dist/status-page-DAHiKM9P.js +3286 -0
  1010. package/dist/styles-reference.css +54 -0
  1011. package/dist/styles.css +2 -0
  1012. package/dist/switch-BqD0RH_G.js +18 -0
  1013. package/dist/table-Q2-voLuw.js +65 -0
  1014. package/dist/tabs-CSIucYFP.js +57 -0
  1015. package/dist/theme-provider-BkRohQFU.js +61 -0
  1016. package/dist/toggle-group-9Bs0Mm3r.js +82 -0
  1017. package/dist/trpc-CvJUuUXp.js +153 -0
  1018. package/dist/ui.js +2174 -0
  1019. package/dist/uk-CwpJAxmx.js +4578 -0
  1020. package/dist/utils-CX-Pz5p6.js +8 -0
  1021. package/dist/wireguard-docs-AfU6NzTL.js +81 -0
  1022. package/dist/writability-BuH-spxv.js +57 -0
  1023. package/package.json +149 -3
@@ -0,0 +1,1400 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { r as t } from "./trpc-CvJUuUXp.js";
3
+ import { f as n, m as r } from "./i18n-BgzakKoC.js";
4
+ import { a as i, d as a, t as o } from "./mutation-form-validators-BNz5bsv1.js";
5
+ import { A as s, M as c, V as l, c as u, l as d } from "./spinner-C-HPNxOc.js";
6
+ import { t as f } from "./button-6SxPBYMz.js";
7
+ import { a as p, i as m, l as h, o as g, r as _, t as v } from "./dialog-BIhQXcZC.js";
8
+ import { n as y } from "./skeleton-6yk8Tdh5.js";
9
+ import { n as b, t as x } from "./api-error-9rQmUN5L.js";
10
+ import { c as S, i as C, n as w, o as T, s as E, t as D } from "./table-Q2-voLuw.js";
11
+ import { i as O, r as k, t as A } from "./alert-B8MAoIO8.js";
12
+ import { n as ee, t as te } from "./toggle-group-9Bs0Mm3r.js";
13
+ import { r as j } from "./mutations-THtGG6Ai.js";
14
+ import { a as M, h as ne, r as N, t as P } from "./dropdown-menu-DSzbBq3v.js";
15
+ import { a as F, d as I, i as L, o as R, r as re, s as ie, t as ae } from "./alert-dialog-CYkuMg5D.js";
16
+ import { n as oe } from "./date-time-picker-C3FhMXk6.js";
17
+ import { t as se } from "./page-header-RB2YFWlE.js";
18
+ import { r as z, t as B } from "./query-gate-DVhNIkge.js";
19
+ import { t as ce } from "./breadcrumbs-0cjsV2cq.js";
20
+ import { a as le, t as ue } from "./presence-code-BfSXr50g.js";
21
+ import { Fragment as V, useEffect as H, useRef as U, useState as W } from "react";
22
+ import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
23
+ import de from "typebox";
24
+ import { BotIcon as fe, CheckIcon as pe, ChevronRightIcon as me, CogIcon as he, DownloadIcon as ge, FlagIcon as _e, HistoryIcon as ve, KeyRoundIcon as ye, Loader2Icon as be, MoreHorizontalIcon as xe, TriangleAlertIcon as Se, UserIcon as Ce, WorkflowIcon as we, XIcon as Te } from "lucide-react";
25
+ import { formatAppDateTime as J, parseExactAppDateTime as Ee, schema as De } from "@overvis/hmi-shared";
26
+ //#region src/audit/checkpoint-presentation.ts
27
+ function Oe(e) {
28
+ switch (e) {
29
+ case "named": return n("checkpoint_kind_named");
30
+ case "before_push": return n("checkpoint_kind_before_push");
31
+ case "before_assistant_turn": return n("checkpoint_kind_before_assistant_turn");
32
+ case "before_template": return n("checkpoint_kind_before_template");
33
+ case "before_import": return n("checkpoint_kind_before_import");
34
+ case "before_revert": return n("checkpoint_kind_before_revert");
35
+ case "before_bulk_delete": return n("checkpoint_kind_before_bulk_delete");
36
+ case "daily": return n("checkpoint_kind_daily");
37
+ }
38
+ }
39
+ //#endregion
40
+ //#region src/audit/history-presentation.ts
41
+ var ke = [
42
+ "label",
43
+ "title",
44
+ "name",
45
+ "email",
46
+ "path"
47
+ ], Ae = [
48
+ "uk",
49
+ "pl",
50
+ "ru"
51
+ ], je = [
52
+ "ui",
53
+ "assistant",
54
+ "api",
55
+ "auth",
56
+ "http",
57
+ "admin",
58
+ "system",
59
+ "pmapper",
60
+ "automation-runner"
61
+ ];
62
+ function Y(e, t) {
63
+ if (!(typeof e != "object" || !e || Array.isArray(e))) return Object.entries(e).find(([e]) => e === t)?.[1];
64
+ }
65
+ function Me(e) {
66
+ if (typeof e == "string") return e.trim() === "" ? null : e;
67
+ if (typeof e != "object" || !e || Array.isArray(e)) return null;
68
+ let t = Y(e, "en");
69
+ if (typeof t == "string" && t.trim() !== "") return t;
70
+ for (let t of Ae) {
71
+ let n = Y(e, t);
72
+ if (typeof n == "string" && n.trim() !== "") return n;
73
+ }
74
+ return null;
75
+ }
76
+ function Ne(e) {
77
+ for (let t of ke) {
78
+ let n = Me(Y(e, t));
79
+ if (n != null) return n;
80
+ }
81
+ return null;
82
+ }
83
+ function X(e) {
84
+ return Me(e.targetName) ?? Ne(e.after) ?? Ne(e.before);
85
+ }
86
+ function Pe(e) {
87
+ return typeof e == "object" && !!e && !Array.isArray(e);
88
+ }
89
+ var Fe = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})?$/, Ie = /(_at|_since|_until|At|Since|Until)$/;
90
+ function Le(e, t, n) {
91
+ if (Pe(e) && Object.keys(e).length > 0) {
92
+ for (let [r, i] of Object.entries(e)) Le(i, [...t, r], n);
93
+ return;
94
+ }
95
+ t.length === 0 && (e == null || Pe(e)) || n.set(JSON.stringify(t), {
96
+ path: t,
97
+ value: e
98
+ });
99
+ }
100
+ function Re(e) {
101
+ return e.map((e, t) => /^[^.[\]"]+$/.test(e) ? t === 0 ? e : `.${e}` : `[${JSON.stringify(e)}]`).join("");
102
+ }
103
+ function Z(e, t) {
104
+ if (typeof e == "string") {
105
+ let n = t.length === 1 ? t[0] : void 0, r = n != null && Ie.test(n) ? Fe.exec(e) : null;
106
+ return r == null ? e : J(r[2] == null ? `${e}Z` : e);
107
+ }
108
+ return typeof e == "number" || typeof e == "boolean" ? String(e) : JSON.stringify(e);
109
+ }
110
+ function ze(e, t) {
111
+ for (let [n, r] of e) Pe(r.value) && [...t.values()].some((e) => e.path.length > r.path.length && r.path.every((t, n) => e.path[n] === t)) && e.delete(n);
112
+ }
113
+ function Be(e) {
114
+ let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
115
+ Le(e.before, [], t), Le(e.after, [], n), ze(t, n), ze(n, t);
116
+ let r = [];
117
+ for (let e of /* @__PURE__ */ new Set([...t.keys(), ...n.keys()])) {
118
+ let i = t.get(e), a = n.get(e), o = (i ?? a)?.path ?? [];
119
+ if (i == null || a == null) {
120
+ r.push({
121
+ path: o,
122
+ before: i == null ? null : Z(i.value, o),
123
+ after: a == null ? null : Z(a.value, o)
124
+ });
125
+ continue;
126
+ }
127
+ let s = JSON.stringify(i.value), c = JSON.stringify(a.value);
128
+ if (s === c) continue;
129
+ let l = Z(i.value, o), u = Z(a.value, o);
130
+ r.push(l === u ? {
131
+ path: o,
132
+ before: s,
133
+ after: c
134
+ } : {
135
+ path: o,
136
+ before: l,
137
+ after: u
138
+ });
139
+ }
140
+ return r;
141
+ }
142
+ function Ve(e) {
143
+ return Be(e).map(({ path: e, before: t, after: n }) => ({
144
+ field: Re(e),
145
+ before: t,
146
+ after: n
147
+ }));
148
+ }
149
+ function He(e) {
150
+ if (e.operation === "write") {
151
+ let t = Y(e.after, "requested"), n = Y(t, "value");
152
+ if (typeof n == "string") return `= ${n}`;
153
+ let r = Y(t, "rawHex");
154
+ return typeof r == "string" ? `= 0x${r}` : null;
155
+ }
156
+ if (e.operation === "call") {
157
+ let t = Y(e.after, "operation");
158
+ return typeof t == "string" ? t : null;
159
+ }
160
+ if (e.operation === "delete" && (e.targetType === "readings" || e.targetType === "audit_history" || e.targetType === "alarm_log")) {
161
+ let t = Y(e.after, "records");
162
+ return typeof t == "number" ? Y(e.after, "completed") === !1 ? e.targetType === "readings" ? n("audit_storage_records_incomplete", { count: String(t) }) : n("audit_storage_records_stopped", { count: String(t) }) : n("audit_storage_records_deleted", { count: String(t) }) : null;
163
+ }
164
+ if (e.operation !== "update") return null;
165
+ let t = Be(e), r = t.length === 1 ? t[0] : void 0;
166
+ if (r != null) return `${Re(r.path)}: ${r.before ?? "—"} → ${r.after ?? "—"}`;
167
+ let i = [...new Set(t.map((e) => Re(e.path.slice(0, 1))))];
168
+ return i.length === 0 ? null : i.join(", ");
169
+ }
170
+ function Q(e) {
171
+ return e === "workspace" ? n("audit_target_type_workspace") : e === "workspace_permission" ? n("audit_target_type_workspace_permission") : e === "workspace_invitation" ? n("audit_target_type_workspace_invitation") : e === "workspace_file" ? n("audit_target_type_workspace_file") : e === "dashboard" ? n("audit_target_type_dashboard") : e === "endpoint" ? n("audit_target_type_endpoint") : e === "device_api" ? n("audit_target_type_device_api") : e === "readings" ? n("audit_target_type_readings") : e === "audit_history" ? n("audit_target_type_audit_history") : e === "alarm_log" ? n("audit_target_type_alarm_log") : e === "readings_retention_override" ? n("audit_target_type_readings_retention_override") : e === "edge_program" ? n("audit_target_type_edge_program") : e === "parameter_tree_branch" ? n("audit_target_type_parameter_tree_branch") : e === "parameter" ? n("audit_target_type_parameter") : e === "report_preset" ? n("audit_target_type_report_preset") : e === "report_preset_parameter" ? n("audit_target_type_report_preset_parameter") : e === "report_comment" ? n("audit_target_type_report_comment") : e === "alarm_rule" ? n("audit_target_type_alarm_rule") : e === "automation" ? n("audit_target_type_automation") : e === "workspace_billing_link" ? n("audit_target_type_workspace_billing_link") : e === "workspace_suspension" ? n("audit_target_type_workspace_suspension") : e === "user" ? n("audit_target_type_user") : e === "account" ? n("audit_target_type_account") : e === "api_key" ? n("audit_target_type_api_key") : e === "impersonation_grant" ? n("audit_target_type_impersonation_grant") : e === "session" ? n("audit_target_type_support_session") : e === "audit_probe" ? n("audit_target_type_audit_probe") : e;
172
+ }
173
+ function Ue(e) {
174
+ return X(e) ?? Q(e.targetType);
175
+ }
176
+ function We(e) {
177
+ return e === "ui" ? n("audit_origin_ui") : e === "assistant" ? n("audit_origin_assistant") : e === "api" ? n("audit_origin_api") : e === "auth" ? n("audit_origin_auth") : e === "http" ? n("audit_origin_http") : e === "admin" ? n("audit_origin_admin") : e === "system" ? n("audit_origin_system") : e === "pmapper" ? n("audit_origin_pmapper") : e === "automation-runner" ? n("audit_origin_automation_runner") : e;
178
+ }
179
+ function Ge(e) {
180
+ return je.find((t) => t === e);
181
+ }
182
+ //#endregion
183
+ //#region src/audit/revert-device-confirmation.tsx
184
+ function Ke({ name: e, onCode: t }) {
185
+ let n = r(), [i, a] = W(""), [o, s] = W(!1);
186
+ return /* @__PURE__ */ q("form", {
187
+ className: "\n flex flex-col gap-2\n sm:flex-row sm:items-start\n ",
188
+ onSubmit: (e) => {
189
+ e.preventDefault();
190
+ let n = ue(i);
191
+ if (!n.ok || n.code == null) {
192
+ s(!0);
193
+ return;
194
+ }
195
+ s(!1), t(n.code);
196
+ },
197
+ children: [/* @__PURE__ */ q("div", {
198
+ className: "flex min-w-0 flex-1 flex-col gap-1",
199
+ children: [/* @__PURE__ */ K(u, {
200
+ value: i,
201
+ onChange: (e) => {
202
+ a(e.target.value);
203
+ },
204
+ "aria-label": `${n("endpoint_presence_code_label")}: ${e}`,
205
+ "aria-invalid": o,
206
+ placeholder: n("endpoint_presence_code_label"),
207
+ autoComplete: "off",
208
+ spellCheck: !1,
209
+ inputMode: "numeric"
210
+ }), o ? /* @__PURE__ */ K("p", {
211
+ role: "alert",
212
+ className: "text-destructive",
213
+ children: n("endpoint_presence_code_invalid")
214
+ }) : null]
215
+ }), /* @__PURE__ */ K(f, {
216
+ type: "submit",
217
+ size: "sm",
218
+ variant: "outline",
219
+ children: n("endpoint_presence_submit")
220
+ })]
221
+ });
222
+ }
223
+ function qe({ workspaceId: e, device: n, settled: i, confirmed: a, onProof: o, onRetry: s }) {
224
+ let c = r(), l = le(), [u, d] = W(null), [p, m] = W(null), [h, g] = W(null), _ = U(l), v = U(o);
225
+ H(() => {
226
+ _.current = l, v.current = o;
227
+ }), H(() => {
228
+ let t = !0;
229
+ return _.current.begin({
230
+ workspaceId: e,
231
+ pinCode: n.pinCode
232
+ }).then((e) => {
233
+ t && e !== "closed" && e != null && d(e);
234
+ }).catch((e) => {
235
+ t && m(b(e));
236
+ }), () => {
237
+ t = !1;
238
+ };
239
+ }, [n.pinCode, e]), H(() => {
240
+ i && u != null && _.current.settle(u.challengeId);
241
+ }, [i, u]);
242
+ let y = t.endpoint.pollPinPresence.useQuery({ challengeId: u?.challengeId ?? "" }, {
243
+ enabled: u != null && h == null && !a,
244
+ refetchInterval: (e) => e.state.data?.pressed === !0 || x(e.state.error) === "endpoint_presence_invalid" ? !1 : 1e3,
245
+ refetchIntervalInBackground: !0,
246
+ retry: !1,
247
+ gcTime: 0
248
+ }), S = y.data?.pressed === !0, C = x(y.error) === "endpoint_presence_invalid", w = u?.challengeId;
249
+ H(() => {
250
+ w != null && (S || h != null) && v.current({
251
+ endpointId: n.endpointId,
252
+ challengeId: w,
253
+ ...h != null && !S ? { authorizationCode: h } : {}
254
+ });
255
+ }, [
256
+ w,
257
+ S,
258
+ h,
259
+ n.endpointId
260
+ ]);
261
+ let T = u != null && (S || h != null), E = n.name ?? n.endpointId, D = p ?? (C && !T ? b(y.error) : null);
262
+ return /* @__PURE__ */ q("li", {
263
+ className: "flex flex-col gap-2 rounded-lg border p-3",
264
+ children: [
265
+ /* @__PURE__ */ q("div", {
266
+ className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",
267
+ children: [
268
+ T ? /* @__PURE__ */ K(pe, {
269
+ "aria-hidden": !0,
270
+ className: "\n size-4 shrink-0 text-emerald-700\n dark:text-emerald-300\n "
271
+ }) : /* @__PURE__ */ K(be, {
272
+ "aria-hidden": !0,
273
+ className: "size-4 shrink-0 animate-spin text-muted-foreground"
274
+ }),
275
+ /* @__PURE__ */ K("span", {
276
+ className: "truncate font-medium",
277
+ title: E,
278
+ children: E
279
+ }),
280
+ /* @__PURE__ */ K("span", {
281
+ className: "shrink-0 font-mono text-muted-foreground",
282
+ children: `${c("endpoint_list_pin")}: ${n.pinCode}`
283
+ }),
284
+ /* @__PURE__ */ K("span", {
285
+ className: "ml-auto shrink-0 text-muted-foreground",
286
+ children: c(T ? "checkpoint_revert_device_confirmed" : "endpoint_presence_waiting")
287
+ })
288
+ ]
289
+ }),
290
+ D == null ? null : /* @__PURE__ */ q("div", {
291
+ className: "flex flex-col items-start gap-2",
292
+ children: [/* @__PURE__ */ K("p", {
293
+ role: "alert",
294
+ className: "text-destructive",
295
+ children: D
296
+ }), /* @__PURE__ */ K(f, {
297
+ type: "button",
298
+ size: "sm",
299
+ variant: "outline",
300
+ onClick: () => {
301
+ o(null), s();
302
+ },
303
+ children: c("checkpoint_revert_device_retry")
304
+ })]
305
+ }),
306
+ !T && D == null && u != null ? /* @__PURE__ */ q(G, { children: [
307
+ /* @__PURE__ */ K("p", {
308
+ className: "text-muted-foreground",
309
+ children: c("endpoint_presence_button")
310
+ }),
311
+ y.error == null ? null : /* @__PURE__ */ K("p", {
312
+ role: "status",
313
+ className: "text-destructive",
314
+ children: b(y.error)
315
+ }),
316
+ u.codeDisplayed ? /* @__PURE__ */ K(Ke, {
317
+ name: E,
318
+ onCode: g
319
+ }) : null
320
+ ] }) : null
321
+ ]
322
+ });
323
+ }
324
+ function Je(e) {
325
+ let [t, n] = W(0);
326
+ return /* @__PURE__ */ K(qe, {
327
+ ...e,
328
+ onRetry: () => {
329
+ n((e) => e + 1);
330
+ }
331
+ }, t);
332
+ }
333
+ //#endregion
334
+ //#region src/audit/setup-change-list.tsx
335
+ var Ye = 100;
336
+ function Xe(e) {
337
+ return e === "created" ? "success" : e === "deleted" ? "destructive" : "secondary";
338
+ }
339
+ function Ze({ changes: e }) {
340
+ let t = r(), n = (e) => t(e === "created" ? "audit_operation_create" : e === "deleted" ? "audit_operation_delete" : "audit_operation_update");
341
+ return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("ul", {
342
+ className: "flex flex-col gap-1",
343
+ children: e.slice(0, Ye).map((e) => /* @__PURE__ */ q("li", {
344
+ className: "flex min-w-0 items-baseline gap-2",
345
+ children: [
346
+ /* @__PURE__ */ K(d, {
347
+ variant: Xe(e.change),
348
+ className: "shrink-0 self-center",
349
+ children: n(e.change)
350
+ }),
351
+ /* @__PURE__ */ K("span", {
352
+ className: "shrink-0 text-muted-foreground",
353
+ children: Q(e.target)
354
+ }),
355
+ /* @__PURE__ */ K("span", {
356
+ className: "truncate",
357
+ title: e.name ?? e.key,
358
+ children: e.name ?? e.key
359
+ })
360
+ ]
361
+ }, `${e.target}:${e.key}`))
362
+ }), e.length > Ye ? /* @__PURE__ */ K("p", {
363
+ className: "text-muted-foreground",
364
+ children: t("audit_more_targets", { count: e.length - Ye })
365
+ }) : null] });
366
+ }
367
+ //#endregion
368
+ //#region src/audit/revert-checkpoint-dialog.tsx
369
+ function Qe({ workspaceId: e, preview: t, settled: n, attempt: i, confirmed: a, onProof: o }) {
370
+ let s = r();
371
+ return /* @__PURE__ */ q("div", {
372
+ className: "flex flex-col gap-3 text-sm",
373
+ children: [
374
+ t.unreadable.length > 0 ? /* @__PURE__ */ q(A, {
375
+ variant: "destructive",
376
+ children: [
377
+ /* @__PURE__ */ K(Se, {}),
378
+ /* @__PURE__ */ K(O, { children: s("checkpoint_revert_unreadable") }),
379
+ /* @__PURE__ */ K(k, { children: /* @__PURE__ */ K("ul", {
380
+ className: "list-disc pl-5",
381
+ children: t.unreadable.map((e) => /* @__PURE__ */ K("li", {
382
+ className: "wrap-break-word",
383
+ children: `${Q(e.target)}: ${e.name ?? e.key}`
384
+ }, e.key))
385
+ }) })
386
+ ]
387
+ }) : null,
388
+ t.devices.length > 0 ? /* @__PURE__ */ q("div", {
389
+ className: "flex flex-col gap-2",
390
+ children: [/* @__PURE__ */ q(A, {
391
+ variant: "warning",
392
+ children: [
393
+ /* @__PURE__ */ K(Se, {}),
394
+ /* @__PURE__ */ K(O, { children: s("checkpoint_revert_devices") }),
395
+ /* @__PURE__ */ K(k, { children: s("checkpoint_revert_devices_description") })
396
+ ]
397
+ }), /* @__PURE__ */ K("ul", {
398
+ className: "flex flex-col gap-2",
399
+ children: t.devices.map((t) => /* @__PURE__ */ K(Je, {
400
+ workspaceId: e,
401
+ device: t,
402
+ settled: n,
403
+ confirmed: a.has(t.endpointId),
404
+ onProof: (e) => {
405
+ o(t.endpointId, e);
406
+ }
407
+ }, `${t.endpointId}:${String(i)}`))
408
+ })]
409
+ }) : null,
410
+ t.changes.length === 0 ? /* @__PURE__ */ K("p", {
411
+ className: "text-muted-foreground",
412
+ children: s("checkpoint_revert_no_changes")
413
+ }) : /* @__PURE__ */ q("div", {
414
+ className: "flex flex-col gap-1.5",
415
+ children: [/* @__PURE__ */ K("p", {
416
+ className: "font-medium",
417
+ children: s("checkpoint_revert_changes")
418
+ }), /* @__PURE__ */ K(Ze, { changes: t.changes })]
419
+ }),
420
+ t.constValues.changed > 0 ? /* @__PURE__ */ K("p", { children: s("checkpoint_revert_const_values", { count: t.constValues.changed }) }) : null,
421
+ /* @__PURE__ */ K("p", {
422
+ className: "text-muted-foreground",
423
+ children: s("checkpoint_revert_readings")
424
+ })
425
+ ]
426
+ });
427
+ }
428
+ function $e({ workspaceId: e, checkpointId: n, onChange: i }) {
429
+ let a = r(), { revert: o } = j(e), [s, c] = W(/* @__PURE__ */ new Map()), [l, u] = W(0), d = t.workspace.checkpoint.revertPreview.useQuery({
430
+ workspaceId: e,
431
+ checkpointId: n
432
+ }, {
433
+ staleTime: 0,
434
+ gcTime: 0,
435
+ refetchOnWindowFocus: !1
436
+ }), f = d.data, p = f?.changes.length === 0 && f.constValues.changed === 0, m = f == null || f.unreadable.length > 0 || f.devices.some((e) => !s.has(e.endpointId)), h = U(o.mutateAsync);
437
+ H(() => {
438
+ h.current = o.mutateAsync;
439
+ });
440
+ let g = U(i);
441
+ return H(() => {
442
+ g.current = i;
443
+ }), H(() => {
444
+ if (f == null || m) {
445
+ g.current(null);
446
+ return;
447
+ }
448
+ g.current({
449
+ unchanged: p,
450
+ revert: () => h.current({
451
+ workspaceId: e,
452
+ checkpointId: n,
453
+ expectedRevision: f.revision,
454
+ ...s.size > 0 ? { devices: [...s.values()] } : {}
455
+ }).catch((e) => {
456
+ throw s.size > 0 && (c(/* @__PURE__ */ new Map()), u((e) => e + 1)), e;
457
+ })
458
+ });
459
+ }, [
460
+ f,
461
+ m,
462
+ p,
463
+ s,
464
+ e,
465
+ n
466
+ ]), /* @__PURE__ */ K(z, {
467
+ query: d,
468
+ loading: /* @__PURE__ */ q("div", {
469
+ className: "flex flex-col gap-1.5",
470
+ "aria-label": a("checkpoint_revert_loading"),
471
+ children: [
472
+ /* @__PURE__ */ K(y, { className: "h-4 w-1/2" }),
473
+ /* @__PURE__ */ K(y, { className: "h-4 w-2/3" }),
474
+ /* @__PURE__ */ K(y, { className: "h-4 w-1/3" })
475
+ ]
476
+ }),
477
+ error: (e) => /* @__PURE__ */ K(B, { message: b(e) }),
478
+ children: (t) => /* @__PURE__ */ K(Qe, {
479
+ workspaceId: e,
480
+ preview: t,
481
+ settled: o.isSuccess,
482
+ attempt: l,
483
+ confirmed: new Set(s.keys()),
484
+ onProof: (e, t) => {
485
+ c((n) => {
486
+ let r = new Map(n);
487
+ return t == null ? r.delete(e) : r.set(e, t), r;
488
+ });
489
+ }
490
+ })
491
+ });
492
+ }
493
+ function et({ workspaceId: e, checkpoint: t, title: n, onClose: i }) {
494
+ let a = r(), [o, s] = W(null), [c, l] = W(!1), [u, d] = W(null);
495
+ return /* @__PURE__ */ K(v, {
496
+ open: !0,
497
+ onOpenChange: (e) => {
498
+ e || i();
499
+ },
500
+ children: /* @__PURE__ */ q(_, {
501
+ className: "sm:max-w-lg",
502
+ children: [
503
+ /* @__PURE__ */ q(g, { children: [/* @__PURE__ */ K(h, { children: a("checkpoint_revert_title", { name: n }) }), /* @__PURE__ */ K(m, { children: a("checkpoint_revert_description", { time: J(t.createdAt) }) })] }),
504
+ /* @__PURE__ */ K("div", {
505
+ className: "max-h-[50vh] min-w-0 overflow-y-auto",
506
+ children: /* @__PURE__ */ K($e, {
507
+ workspaceId: e,
508
+ checkpointId: t.id,
509
+ onChange: s
510
+ })
511
+ }),
512
+ u == null ? null : /* @__PURE__ */ K("p", {
513
+ role: "alert",
514
+ className: "text-sm text-destructive",
515
+ children: b(u)
516
+ }),
517
+ /* @__PURE__ */ q(p, { children: [/* @__PURE__ */ K(f, {
518
+ type: "button",
519
+ variant: "outline",
520
+ onClick: i,
521
+ children: a("action_cancel")
522
+ }), /* @__PURE__ */ K(f, {
523
+ type: "button",
524
+ variant: "destructive",
525
+ disabled: o == null || o.unchanged || c,
526
+ onClick: () => {
527
+ o != null && (l(!0), d(null), o.revert().then(i, (e) => {
528
+ d(e), l(!1);
529
+ }));
530
+ },
531
+ children: a(c ? "checkpoint_revert_pending" : "checkpoint_revert_confirm")
532
+ })] })
533
+ ]
534
+ })
535
+ });
536
+ }
537
+ //#endregion
538
+ //#region src/audit/checkpoints.tsx
539
+ var tt = De(de.Object({
540
+ name: de.String({
541
+ minLength: 1,
542
+ maxLength: 120,
543
+ pattern: "\\S"
544
+ }),
545
+ reason: de.String({ maxLength: 500 })
546
+ }));
547
+ function nt(e) {
548
+ return e.name ?? Oe(e.kind);
549
+ }
550
+ function rt({ checkpoint: e }) {
551
+ let t = e.authorName ?? n("checkpoint_author_deleted"), [r, i] = e.authorKind === "system" ? [he, n("audit_actor_system")] : e.authorKind === "assistant" ? [fe, n("checkpoint_author_assistant", { name: t })] : [Ce, t];
552
+ return /* @__PURE__ */ q("span", {
553
+ className: "flex min-w-0 items-center gap-1.5",
554
+ children: [/* @__PURE__ */ K(r, {
555
+ "aria-hidden": !0,
556
+ className: "size-3.5 shrink-0"
557
+ }), /* @__PURE__ */ K("span", {
558
+ className: "truncate",
559
+ title: i,
560
+ children: i
561
+ })]
562
+ });
563
+ }
564
+ function it({ workspaceId: e, checkpointId: n, scope: i }) {
565
+ let a = r();
566
+ return /* @__PURE__ */ K(z, {
567
+ query: t.workspace.checkpoint.summary.useQuery({
568
+ workspaceId: e,
569
+ checkpointId: n,
570
+ scope: i
571
+ }),
572
+ loading: /* @__PURE__ */ q("div", {
573
+ className: "flex flex-col gap-1.5",
574
+ "aria-label": a("checkpoint_changes_loading"),
575
+ children: [/* @__PURE__ */ K(y, { className: "h-4 w-1/2" }), /* @__PURE__ */ K(y, { className: "h-4 w-1/3" })]
576
+ }),
577
+ error: (e) => /* @__PURE__ */ K(B, { message: b(e) }),
578
+ isEmpty: (e) => e.changes.length === 0,
579
+ empty: /* @__PURE__ */ K("p", {
580
+ className: "text-muted-foreground",
581
+ children: a("checkpoint_changes_none")
582
+ }),
583
+ children: (e) => /* @__PURE__ */ q("div", {
584
+ className: "flex flex-col gap-1.5",
585
+ children: [/* @__PURE__ */ K("p", {
586
+ className: "font-medium",
587
+ children: e.untilCheckpointId == null ? a("checkpoint_changes_until_now") : a("checkpoint_changes_until_next")
588
+ }), /* @__PURE__ */ K(Ze, { changes: e.changes })]
589
+ })
590
+ });
591
+ }
592
+ function at({ workspaceId: e, checkpoint: t, scope: n }) {
593
+ let i = r(), [a, o] = W(!1), [s, c] = W(null), l = nt(t);
594
+ return /* @__PURE__ */ q("div", {
595
+ role: "group",
596
+ "aria-label": `${i("checkpoint_marker")}: ${l}`,
597
+ className: "flex flex-col gap-2 border-l-4 border-primary bg-primary/5 px-3 py-2",
598
+ children: [
599
+ /* @__PURE__ */ q("div", {
600
+ className: "flex items-start gap-2",
601
+ children: [
602
+ /* @__PURE__ */ K(_e, {
603
+ "aria-hidden": !0,
604
+ className: "mt-0.5 size-4 shrink-0 text-primary"
605
+ }),
606
+ /* @__PURE__ */ q("div", {
607
+ className: "flex min-w-0 flex-1 flex-col gap-1",
608
+ children: [
609
+ /* @__PURE__ */ q("div", {
610
+ className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",
611
+ children: [/* @__PURE__ */ K("span", {
612
+ className: "truncate font-medium",
613
+ title: l,
614
+ children: l
615
+ }), t.name == null ? null : /* @__PURE__ */ K(d, {
616
+ variant: "outline",
617
+ children: Oe(t.kind)
618
+ })]
619
+ }),
620
+ /* @__PURE__ */ q("div", {
621
+ className: "\n flex min-w-0 flex-col gap-x-4 gap-y-0.5 text-muted-foreground\n @md:flex-row @md:items-center\n ",
622
+ children: [/* @__PURE__ */ K("span", {
623
+ className: "shrink-0 tabular-nums",
624
+ children: J(t.createdAt)
625
+ }), /* @__PURE__ */ K(rt, { checkpoint: t })]
626
+ }),
627
+ t.reason == null ? null : /* @__PURE__ */ K("p", {
628
+ className: "wrap-break-word whitespace-pre-wrap text-muted-foreground",
629
+ children: t.reason
630
+ })
631
+ ]
632
+ }),
633
+ /* @__PURE__ */ q("div", {
634
+ className: "flex shrink-0 items-center gap-1",
635
+ children: [/* @__PURE__ */ q(P, { children: [/* @__PURE__ */ K(ne, {
636
+ render: /* @__PURE__ */ K(f, {
637
+ type: "button",
638
+ variant: "ghost",
639
+ size: "icon-xs",
640
+ "aria-label": i("checkpoint_actions", { name: l })
641
+ }),
642
+ children: /* @__PURE__ */ K(xe, {})
643
+ }), /* @__PURE__ */ q(N, {
644
+ align: "end",
645
+ className: "w-auto min-w-36",
646
+ children: [/* @__PURE__ */ K(M, {
647
+ onClick: () => {
648
+ c("revert");
649
+ },
650
+ children: i("checkpoint_revert")
651
+ }), t.kind === "named" ? /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(M, {
652
+ onClick: () => {
653
+ c("rename");
654
+ },
655
+ children: i("checkpoint_rename")
656
+ }), /* @__PURE__ */ K(M, {
657
+ variant: "destructive",
658
+ onClick: () => {
659
+ c("delete");
660
+ },
661
+ children: i("checkpoint_delete")
662
+ })] }) : null]
663
+ })] }), /* @__PURE__ */ K(f, {
664
+ type: "button",
665
+ variant: "ghost",
666
+ size: "icon-xs",
667
+ "aria-expanded": a,
668
+ "aria-label": i(a ? "checkpoint_hide_changes" : "checkpoint_show_changes"),
669
+ title: i(a ? "checkpoint_hide_changes" : "checkpoint_show_changes"),
670
+ onClick: () => {
671
+ o((e) => !e);
672
+ },
673
+ children: /* @__PURE__ */ K(me, { className: `
674
+ transition-transform
675
+ ${a ? "rotate-90" : ""}
676
+ ` })
677
+ })]
678
+ })
679
+ ]
680
+ }),
681
+ a ? /* @__PURE__ */ K("div", {
682
+ className: "ml-6",
683
+ children: /* @__PURE__ */ K(it, {
684
+ workspaceId: e,
685
+ checkpointId: t.id,
686
+ scope: n
687
+ })
688
+ }) : null,
689
+ s === "rename" ? /* @__PURE__ */ K(ot, {
690
+ workspaceId: e,
691
+ checkpoint: t,
692
+ onClose: () => {
693
+ c(null);
694
+ }
695
+ }) : null,
696
+ s === "revert" ? /* @__PURE__ */ K(et, {
697
+ workspaceId: e,
698
+ checkpoint: t,
699
+ title: l,
700
+ onClose: () => {
701
+ c(null);
702
+ }
703
+ }) : null,
704
+ s === "delete" ? /* @__PURE__ */ K(st, {
705
+ workspaceId: e,
706
+ checkpoint: t,
707
+ onClose: () => {
708
+ c(null);
709
+ }
710
+ }) : null
711
+ ]
712
+ });
713
+ }
714
+ function ot({ workspaceId: e, checkpoint: t, onClose: n }) {
715
+ let s = r(), c = j(e), u = i({
716
+ defaultValues: {
717
+ name: t?.name ?? "",
718
+ reason: ""
719
+ },
720
+ validators: o({
721
+ schema: tt,
722
+ submit: async (n) => {
723
+ let r = n.name.trim();
724
+ if (t == null) {
725
+ let t = n.reason.trim();
726
+ await c.create.mutateAsync({
727
+ workspaceId: e,
728
+ name: r,
729
+ ...t === "" ? {} : { reason: t }
730
+ });
731
+ } else await c.rename.mutateAsync({
732
+ workspaceId: e,
733
+ checkpointId: t.id,
734
+ name: r
735
+ });
736
+ return null;
737
+ }
738
+ }),
739
+ onSubmitInvalid: a,
740
+ onSubmit: n
741
+ });
742
+ return /* @__PURE__ */ K(v, {
743
+ open: !0,
744
+ onOpenChange: (e) => {
745
+ e || n();
746
+ },
747
+ children: /* @__PURE__ */ K(_, { children: /* @__PURE__ */ K(u.AppForm, { children: /* @__PURE__ */ q(u.FormRoot, {
748
+ layout: "dialog",
749
+ children: [
750
+ /* @__PURE__ */ q(g, { children: [/* @__PURE__ */ K(h, { children: s(t == null ? "checkpoint_create" : "checkpoint_rename_title") }), /* @__PURE__ */ K(m, { children: t == null ? s("checkpoint_create_description") : nt(t) })] }),
751
+ /* @__PURE__ */ q(l, { children: [/* @__PURE__ */ K(u.AppField, {
752
+ name: "name",
753
+ children: (e) => /* @__PURE__ */ K(e.TextField, {
754
+ label: s("checkpoint_name"),
755
+ maxLength: 120,
756
+ autoFocus: !0
757
+ })
758
+ }), t == null ? /* @__PURE__ */ K(u.AppField, {
759
+ name: "reason",
760
+ children: (e) => /* @__PURE__ */ K(e.TextAreaField, {
761
+ label: s("checkpoint_reason"),
762
+ maxLength: 500,
763
+ rows: 3
764
+ })
765
+ }) : null] }),
766
+ /* @__PURE__ */ q(p, { children: [/* @__PURE__ */ K(f, {
767
+ type: "button",
768
+ variant: "outline",
769
+ onClick: n,
770
+ children: s("action_cancel")
771
+ }), t == null ? /* @__PURE__ */ K(u.SubmitButton, {
772
+ label: s("checkpoint_create"),
773
+ pendingLabel: s("action_creating")
774
+ }) : /* @__PURE__ */ K(u.SubmitButton, {
775
+ label: s("action_save"),
776
+ pendingLabel: s("action_saving")
777
+ })] })
778
+ ]
779
+ }) }) })
780
+ });
781
+ }
782
+ function st({ workspaceId: e, checkpoint: t, onClose: n }) {
783
+ let i = r(), { remove: a } = j(e);
784
+ return /* @__PURE__ */ K(ae, {
785
+ open: !0,
786
+ onOpenChange: (e) => {
787
+ e || n();
788
+ },
789
+ children: /* @__PURE__ */ q(L, { children: [
790
+ /* @__PURE__ */ q(ie, { children: [/* @__PURE__ */ K(I, { children: i("checkpoint_delete_title", { name: nt(t) }) }), /* @__PURE__ */ K(F, { children: i("checkpoint_delete_description") })] }),
791
+ a.error == null ? null : /* @__PURE__ */ K("p", {
792
+ role: "alert",
793
+ className: "text-sm text-destructive",
794
+ children: b(a.error)
795
+ }),
796
+ /* @__PURE__ */ q(R, { children: [/* @__PURE__ */ K(re, { children: i("action_cancel") }), /* @__PURE__ */ K(f, {
797
+ type: "button",
798
+ variant: "destructive",
799
+ disabled: a.isPending,
800
+ onClick: () => {
801
+ a.mutate({
802
+ workspaceId: e,
803
+ checkpointId: t.id
804
+ }, { onSuccess: n });
805
+ },
806
+ children: a.isPending ? i("action_deleting") : i("checkpoint_delete")
807
+ })] })
808
+ ] })
809
+ });
810
+ }
811
+ function ct({ workspaceId: e }) {
812
+ let t = r(), [n, i] = W(!1);
813
+ return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ q(f, {
814
+ size: "sm",
815
+ onClick: () => {
816
+ i(!0);
817
+ },
818
+ children: [/* @__PURE__ */ K(_e, { "data-icon": "inline-start" }), t("checkpoint_create")]
819
+ }), n ? /* @__PURE__ */ K(ot, {
820
+ workspaceId: e,
821
+ onClose: () => {
822
+ i(!1);
823
+ }
824
+ }) : null] });
825
+ }
826
+ function lt({ workspaceId: e, scope: n }) {
827
+ let i = r(), a = t.workspace.checkpoint.list.useInfiniteQuery({
828
+ workspaceId: e,
829
+ scope: n,
830
+ limit: 50
831
+ }, { getNextPageParam: (e) => e.nextCursor ?? void 0 });
832
+ return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(z, {
833
+ query: a,
834
+ loading: /* @__PURE__ */ K(y, { className: "h-52 w-full" }),
835
+ error: (e) => /* @__PURE__ */ K(B, { message: b(e) }),
836
+ isEmpty: (e) => e.pages.every((e) => e.checkpoints.length === 0),
837
+ empty: /* @__PURE__ */ K("p", {
838
+ className: "rounded-lg border py-10 text-center text-sm text-muted-foreground",
839
+ children: i("checkpoint_empty")
840
+ }),
841
+ children: (t) => /* @__PURE__ */ K("ul", {
842
+ className: "flex flex-col divide-y overflow-hidden rounded-lg border text-xs",
843
+ children: t.pages.flatMap((e) => e.checkpoints).map((t) => /* @__PURE__ */ K("li", { children: /* @__PURE__ */ K(at, {
844
+ workspaceId: e,
845
+ checkpoint: t,
846
+ scope: n
847
+ }) }, t.id))
848
+ })
849
+ }), a.hasNextPage ? /* @__PURE__ */ K(f, {
850
+ variant: "outline",
851
+ size: "sm",
852
+ className: "self-center",
853
+ disabled: a.isFetchingNextPage,
854
+ onClick: () => {
855
+ a.fetchNextPage();
856
+ },
857
+ children: i("audit_more")
858
+ }) : null] });
859
+ }
860
+ //#endregion
861
+ //#region src/audit/history-model.ts
862
+ function ut(e) {
863
+ let t = /* @__PURE__ */ new Map();
864
+ for (let n of e) {
865
+ let e = t.get(n.operationId);
866
+ e == null ? t.set(n.operationId, [n]) : e.push(n);
867
+ }
868
+ return [...t.values()];
869
+ }
870
+ //#endregion
871
+ //#region src/audit/history-page.tsx
872
+ var dt = /* @__PURE__ */ e({ AuditHistoryPage: () => mt });
873
+ function ft(e) {
874
+ return n(e === "user" ? "audit_actor_user" : e === "assistant" ? "audit_actor_assistant" : e === "api_key" ? "audit_actor_api_key" : e === "automation" ? "audit_actor_automation" : "audit_actor_system");
875
+ }
876
+ function $(e) {
877
+ return n(e === "create" ? "audit_operation_create" : e === "update" ? "audit_operation_update" : e === "delete" ? "audit_operation_delete" : e === "call" ? "audit_operation_call" : "audit_operation_write");
878
+ }
879
+ function pt(e, t, n) {
880
+ let r = URL.createObjectURL(new Blob([e], { type: t })), i = document.createElement("a");
881
+ i.href = r, i.download = n, i.click(), setTimeout(() => {
882
+ URL.revokeObjectURL(r);
883
+ }, 1e3);
884
+ }
885
+ function mt({ workspaceId: e, archived: n = !1, view: i, onViewChange: a }) {
886
+ let o = r(), l = e != null && !n && i != null ? {
887
+ workspaceId: e,
888
+ ...i
889
+ } : null, d = l?.view === "checkpoints", [p, m] = W(), [h, g] = W(""), [_, v] = W(), [x, S] = W(""), [C, w] = W(), [T, E] = W(""), [D, O] = W(""), [k, A] = W(!1), j = p != null || h !== "" || _ != null || x !== "" || C != null || T !== "" || D !== "";
890
+ function M() {
891
+ A(!1);
892
+ }
893
+ function ne() {
894
+ m(void 0), g(""), v(void 0), S(""), w(void 0), E(""), O(""), M();
895
+ }
896
+ let N = Ee(T)?.toISOString(), P = Ee(D)?.toISOString(), F = {
897
+ ...e == null ? {} : { workspaceId: e },
898
+ ...n ? { archived: !0 } : {},
899
+ ...p == null ? {} : { actorKind: p },
900
+ ...h.trim() === "" ? {} : { actor: h.trim() },
901
+ ..._ == null ? {} : { origin: _ },
902
+ ...x.trim() === "" ? {} : { target: x.trim() },
903
+ ...C == null ? {} : { operation: C },
904
+ ...N == null ? {} : { from: N },
905
+ ...P == null ? {} : { to: P }
906
+ }, I = t.audit.list.useInfiniteQuery({
907
+ ...F,
908
+ ...l == null ? {} : { checkpoints: l.scope },
909
+ limit: 50
910
+ }, {
911
+ getNextPageParam: (e) => e.nextCursor ?? void 0,
912
+ enabled: !d
913
+ }), L = t.audit.export.useQuery({
914
+ ...F,
915
+ format: "json"
916
+ }, { enabled: !1 }), R = t.audit.export.useQuery({
917
+ ...F,
918
+ format: "csv"
919
+ }, { enabled: !1 });
920
+ async function re(e) {
921
+ A(!1);
922
+ let t = await (e === "json" ? L.refetch() : R.refetch());
923
+ t.data && (A(t.data.truncated), pt(t.data.content, t.data.contentType, t.data.filename));
924
+ }
925
+ return /* @__PURE__ */ q("div", {
926
+ className: "\n @container mx-auto flex w-full max-w-6xl flex-1 flex-col gap-4 p-4\n md:p-6\n ",
927
+ children: [
928
+ /* @__PURE__ */ K(se, {
929
+ icon: /* @__PURE__ */ K(ve, {}),
930
+ breadcrumbs: e != null && !n ? /* @__PURE__ */ K(ce, { workspaceId: e }) : void 0,
931
+ title: o("audit_title"),
932
+ description: o("audit_description"),
933
+ className: "p-0",
934
+ actions: /* @__PURE__ */ K(G, { children: d ? null : /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ q(f, {
935
+ variant: "outline",
936
+ size: "sm",
937
+ disabled: L.isFetching || R.isFetching,
938
+ onClick: () => void re("json"),
939
+ children: [/* @__PURE__ */ K(ge, { "data-icon": "inline-start" }), o("audit_export_json")]
940
+ }), /* @__PURE__ */ q(f, {
941
+ variant: "outline",
942
+ size: "sm",
943
+ disabled: L.isFetching || R.isFetching,
944
+ onClick: () => void re("csv"),
945
+ children: [/* @__PURE__ */ K(ge, { "data-icon": "inline-start" }), o("audit_export_csv")]
946
+ })] }) })
947
+ }),
948
+ l == null ? null : /* @__PURE__ */ q("div", {
949
+ className: "\n flex flex-col gap-2\n @2xl:flex-row @2xl:items-center @2xl:justify-between\n ",
950
+ children: [/* @__PURE__ */ q(te, {
951
+ variant: "outline",
952
+ size: "sm",
953
+ spacing: 0,
954
+ "aria-label": o("audit_view"),
955
+ value: [l.view],
956
+ onValueChange: (e) => {
957
+ let t = ["activity", "checkpoints"].find((t) => t === e[0]);
958
+ t != null && a?.({
959
+ view: t,
960
+ scope: l.scope
961
+ });
962
+ },
963
+ children: [/* @__PURE__ */ K(ee, {
964
+ value: "activity",
965
+ children: o("audit_view_activity")
966
+ }), /* @__PURE__ */ K(ee, {
967
+ value: "checkpoints",
968
+ children: o("audit_view_checkpoints")
969
+ })]
970
+ }), /* @__PURE__ */ q("div", {
971
+ className: "flex items-center gap-2",
972
+ children: [/* @__PURE__ */ q(s, {
973
+ className: "\n min-w-0 flex-1\n @2xl:w-56 @2xl:flex-none\n ",
974
+ "aria-label": o("checkpoint_scope"),
975
+ value: l.scope,
976
+ onChange: (e) => {
977
+ a?.({
978
+ view: l.view,
979
+ scope: e.target.value === "all" ? "all" : "important"
980
+ });
981
+ },
982
+ children: [/* @__PURE__ */ K(c, {
983
+ value: "important",
984
+ children: o("checkpoint_scope_important")
985
+ }), /* @__PURE__ */ K(c, {
986
+ value: "all",
987
+ children: o("checkpoint_scope_all")
988
+ })]
989
+ }), /* @__PURE__ */ K(ct, { workspaceId: l.workspaceId })]
990
+ })]
991
+ }),
992
+ l != null && d ? /* @__PURE__ */ K(lt, {
993
+ workspaceId: l.workspaceId,
994
+ scope: l.scope
995
+ }) : /* @__PURE__ */ q(G, { children: [
996
+ /* @__PURE__ */ q("div", {
997
+ role: "group",
998
+ "aria-label": o("audit_filters"),
999
+ className: "\n grid grid-cols-2 items-start gap-2\n @2xl:grid-cols-6\n @4xl:grid-cols-12\n ",
1000
+ children: [
1001
+ /* @__PURE__ */ K(u, {
1002
+ className: "\n col-span-2\n @2xl:col-span-3\n ",
1003
+ "aria-label": o("audit_target"),
1004
+ placeholder: o("audit_target"),
1005
+ value: x,
1006
+ onChange: (e) => {
1007
+ M(), S(e.target.value);
1008
+ }
1009
+ }),
1010
+ /* @__PURE__ */ K(u, {
1011
+ className: "\n col-span-2\n @2xl:col-span-3\n ",
1012
+ "aria-label": o("audit_filter_actor"),
1013
+ placeholder: o("audit_filter_actor"),
1014
+ value: h,
1015
+ onChange: (e) => {
1016
+ M(), g(e.target.value);
1017
+ }
1018
+ }),
1019
+ /* @__PURE__ */ q(s, {
1020
+ className: "\n w-full\n @2xl:col-span-2\n ",
1021
+ "aria-label": o("audit_actor"),
1022
+ value: p ?? "",
1023
+ onChange: (e) => {
1024
+ let t = e.target.value;
1025
+ M(), m(t === "user" || t === "assistant" || t === "api_key" || t === "automation" || t === "system" ? t : void 0);
1026
+ },
1027
+ children: [
1028
+ /* @__PURE__ */ K(c, {
1029
+ value: "",
1030
+ children: o("audit_all_actors")
1031
+ }),
1032
+ /* @__PURE__ */ K(c, {
1033
+ value: "user",
1034
+ children: o("audit_actor_user")
1035
+ }),
1036
+ /* @__PURE__ */ K(c, {
1037
+ value: "assistant",
1038
+ children: o("audit_actor_assistant")
1039
+ }),
1040
+ /* @__PURE__ */ K(c, {
1041
+ value: "api_key",
1042
+ children: o("audit_actor_api_key")
1043
+ }),
1044
+ /* @__PURE__ */ K(c, {
1045
+ value: "automation",
1046
+ children: o("audit_actor_automation")
1047
+ }),
1048
+ /* @__PURE__ */ K(c, {
1049
+ value: "system",
1050
+ children: o("audit_actor_system")
1051
+ })
1052
+ ]
1053
+ }),
1054
+ /* @__PURE__ */ q(s, {
1055
+ className: "\n w-full\n @2xl:col-span-2\n ",
1056
+ "aria-label": o("audit_filter_origin"),
1057
+ value: _ ?? "",
1058
+ onChange: (e) => {
1059
+ M(), v(Ge(e.target.value));
1060
+ },
1061
+ children: [/* @__PURE__ */ K(c, {
1062
+ value: "",
1063
+ children: o("audit_all_origins")
1064
+ }), je.map((e) => /* @__PURE__ */ K(c, {
1065
+ value: e,
1066
+ children: We(e)
1067
+ }, e))]
1068
+ }),
1069
+ /* @__PURE__ */ q(s, {
1070
+ className: "col-span-2 w-full",
1071
+ "aria-label": o("audit_action"),
1072
+ value: C ?? "",
1073
+ onChange: (e) => {
1074
+ M();
1075
+ let t = e.target.value;
1076
+ w(t === "create" || t === "update" || t === "delete" || t === "write" || t === "call" ? t : void 0);
1077
+ },
1078
+ children: [
1079
+ /* @__PURE__ */ K(c, {
1080
+ value: "",
1081
+ children: o("audit_all_actions")
1082
+ }),
1083
+ /* @__PURE__ */ K(c, {
1084
+ value: "create",
1085
+ children: o("audit_operation_create")
1086
+ }),
1087
+ /* @__PURE__ */ K(c, {
1088
+ value: "update",
1089
+ children: o("audit_operation_update")
1090
+ }),
1091
+ /* @__PURE__ */ K(c, {
1092
+ value: "delete",
1093
+ children: o("audit_operation_delete")
1094
+ }),
1095
+ /* @__PURE__ */ K(c, {
1096
+ value: "write",
1097
+ children: o("audit_operation_write")
1098
+ }),
1099
+ /* @__PURE__ */ K(c, {
1100
+ value: "call",
1101
+ children: o("audit_operation_call")
1102
+ })
1103
+ ]
1104
+ }),
1105
+ /* @__PURE__ */ K("div", {
1106
+ role: "group",
1107
+ "aria-label": o("audit_period"),
1108
+ className: "\n col-span-2\n @2xl:col-span-4\n @4xl:col-span-6\n ",
1109
+ children: /* @__PURE__ */ K(oe, {
1110
+ optional: !0,
1111
+ value: {
1112
+ from: T,
1113
+ to: D
1114
+ },
1115
+ onValueChange: (e) => {
1116
+ M(), E(e.from), O(e.to);
1117
+ }
1118
+ })
1119
+ }),
1120
+ j ? /* @__PURE__ */ q(f, {
1121
+ variant: "ghost",
1122
+ className: "col-span-2 justify-self-start",
1123
+ onClick: ne,
1124
+ children: [/* @__PURE__ */ K(Te, { "data-icon": "inline-start" }), o("audit_clear_filters")]
1125
+ }) : null
1126
+ ]
1127
+ }),
1128
+ k ? /* @__PURE__ */ K("p", {
1129
+ role: "status",
1130
+ className: "text-sm text-destructive",
1131
+ children: o("audit_export_truncated")
1132
+ }) : null,
1133
+ /* @__PURE__ */ K(z, {
1134
+ query: I,
1135
+ loading: /* @__PURE__ */ K(y, { className: "h-52 w-full" }),
1136
+ error: (e) => /* @__PURE__ */ K(B, { message: b(e) }),
1137
+ isEmpty: (e) => e.pages.every((e) => e.events.length === 0 && e.checkpoints.length === 0),
1138
+ empty: /* @__PURE__ */ K("p", {
1139
+ className: "rounded-lg border py-10 text-center text-sm text-muted-foreground",
1140
+ children: o("audit_empty")
1141
+ }),
1142
+ children: (e) => /* @__PURE__ */ K(ht, {
1143
+ pages: e.pages,
1144
+ checkpoints: l == null ? null : {
1145
+ workspaceId: l.workspaceId,
1146
+ scope: l.scope
1147
+ }
1148
+ })
1149
+ }),
1150
+ I.hasNextPage ? /* @__PURE__ */ K(f, {
1151
+ variant: "outline",
1152
+ size: "sm",
1153
+ className: "self-center",
1154
+ disabled: I.isFetchingNextPage,
1155
+ onClick: () => {
1156
+ I.fetchNextPage();
1157
+ },
1158
+ children: o("audit_more")
1159
+ }) : null
1160
+ ] })
1161
+ ]
1162
+ });
1163
+ }
1164
+ function ht({ pages: e, checkpoints: t }) {
1165
+ let n = r(), i = (e) => t == null ? null : e.map((e) => /* @__PURE__ */ K(S, {
1166
+ className: "\n block\n hover:bg-transparent\n @4xl:table-row\n ",
1167
+ children: /* @__PURE__ */ K(C, {
1168
+ colSpan: 6,
1169
+ className: "\n block p-0 whitespace-normal\n @4xl:table-cell\n ",
1170
+ children: /* @__PURE__ */ K(at, {
1171
+ workspaceId: t.workspaceId,
1172
+ checkpoint: e,
1173
+ scope: t.scope
1174
+ })
1175
+ })
1176
+ }, e.id));
1177
+ return /* @__PURE__ */ K("div", {
1178
+ className: "overflow-hidden rounded-lg border",
1179
+ children: /* @__PURE__ */ q(D, {
1180
+ className: "\n block text-xs\n @4xl:table @4xl:table-fixed\n ",
1181
+ children: [/* @__PURE__ */ K(E, {
1182
+ className: "\n sr-only bg-muted/50\n @4xl:not-sr-only @4xl:table-header-group\n ",
1183
+ children: /* @__PURE__ */ q(S, { children: [
1184
+ /* @__PURE__ */ K(T, {
1185
+ className: "w-38 pl-3",
1186
+ children: n("audit_time")
1187
+ }),
1188
+ /* @__PURE__ */ K(T, {
1189
+ className: "w-36",
1190
+ children: n("audit_actor")
1191
+ }),
1192
+ /* @__PURE__ */ K(T, {
1193
+ className: "w-32",
1194
+ children: n("audit_action")
1195
+ }),
1196
+ /* @__PURE__ */ K(T, { children: n("audit_target") }),
1197
+ /* @__PURE__ */ K(T, {
1198
+ className: "w-36",
1199
+ children: n("audit_via")
1200
+ }),
1201
+ /* @__PURE__ */ K(T, { className: "w-9" })
1202
+ ] })
1203
+ }), /* @__PURE__ */ K(w, {
1204
+ className: "\n block\n @4xl:table-row-group\n ",
1205
+ children: e.map((e) => ut(e.events).map((t) => {
1206
+ let n = t[0].operationId;
1207
+ return /* @__PURE__ */ q(V, { children: [i(e.checkpoints.filter((e) => e.aboveOperationId === n)), /* @__PURE__ */ K(vt, { events: t })] }, n);
1208
+ }).concat(/* @__PURE__ */ K(V, { children: i(e.checkpoints.filter((e) => e.aboveOperationId == null)) }, `${e.nextCursor ?? "end"}:checkpoints`)))
1209
+ })]
1210
+ })
1211
+ });
1212
+ }
1213
+ function gt({ kind: e }) {
1214
+ return /* @__PURE__ */ K(e === "user" ? Ce : e === "assistant" ? fe : e === "api_key" ? ye : e === "automation" ? we : he, {
1215
+ "aria-label": ft(e),
1216
+ className: "size-3.5 shrink-0 text-muted-foreground"
1217
+ });
1218
+ }
1219
+ function _t(e) {
1220
+ return e === "create" ? "success" : e === "delete" ? "destructive" : e === "write" || e === "call" ? "outline" : "secondary";
1221
+ }
1222
+ function vt({ events: e }) {
1223
+ let t = r(), [n, i] = W(!1), a = e[0], o = e.flatMap((e) => e.changes), s = [...new Set(e.map((e) => e.action))].join(", "), c = [...new Set(o.map((e) => e.operation))], l = c.at(0), u = [...new Set(e.map((e) => We(e.origin)))].join(", "), p = [...new Set(o.map(Ue))], m = o.at(0), h = Math.max(0, p.length - 1), g = new Set(o.map(He)), _ = g.size === 1 ? [...g][0] ?? null : null, v = e.some((e) => e.writeOutcome === "partial") ? "partial" : e.some((e) => e.writeOutcome === "complete") ? "complete" : null, y = a.actorName ?? ft(a.actorKind);
1224
+ return /* @__PURE__ */ q(V, { children: [/* @__PURE__ */ q(S, {
1225
+ className: "\n grid cursor-pointer grid-cols-[auto_1fr_auto_auto] items-center gap-x-2 gap-y-1 px-3 py-2\n @4xl:table-row\n ",
1226
+ onClick: () => {
1227
+ i((e) => !e);
1228
+ },
1229
+ children: [
1230
+ /* @__PURE__ */ K(C, {
1231
+ className: "\n order-5 p-0 text-muted-foreground tabular-nums\n @4xl:px-2 @4xl:py-1.5 @4xl:pl-3\n ",
1232
+ children: J(a.occurredAt)
1233
+ }),
1234
+ /* @__PURE__ */ K(C, {
1235
+ className: "\n order-6 col-span-3 min-w-0 p-0\n @4xl:px-2 @4xl:py-1.5\n ",
1236
+ children: /* @__PURE__ */ q("div", {
1237
+ className: "flex min-w-0 items-center gap-1.5",
1238
+ children: [/* @__PURE__ */ K(gt, { kind: a.actorKind }), /* @__PURE__ */ K("span", {
1239
+ className: "truncate",
1240
+ title: y,
1241
+ children: y
1242
+ })]
1243
+ })
1244
+ }),
1245
+ /* @__PURE__ */ K(C, {
1246
+ className: "\n order-3 col-span-2 min-w-0 p-0\n @4xl:px-2 @4xl:py-1.5\n ",
1247
+ children: /* @__PURE__ */ q("div", {
1248
+ className: "flex items-center gap-1",
1249
+ title: c.map($).join(", "),
1250
+ children: [l == null ? null : /* @__PURE__ */ K(d, {
1251
+ variant: _t(l),
1252
+ children: $(l)
1253
+ }), c.length > 1 ? /* @__PURE__ */ q(d, {
1254
+ variant: "outline",
1255
+ children: [/* @__PURE__ */ q("span", {
1256
+ "aria-hidden": !0,
1257
+ children: ["+", c.length - 1]
1258
+ }), /* @__PURE__ */ K("span", {
1259
+ className: "sr-only",
1260
+ children: c.slice(1).map($).join(", ")
1261
+ })]
1262
+ }) : null]
1263
+ })
1264
+ }),
1265
+ /* @__PURE__ */ K(C, {
1266
+ className: "\n order-1 col-span-3 min-w-0 p-0\n @4xl:px-2 @4xl:py-1.5\n ",
1267
+ children: /* @__PURE__ */ q("div", {
1268
+ className: "flex min-w-0 items-baseline gap-2",
1269
+ children: [
1270
+ m == null ? null : /* @__PURE__ */ K("span", {
1271
+ className: "shrink-0 text-muted-foreground",
1272
+ children: Q(m.targetType)
1273
+ }),
1274
+ m != null && X(m) != null ? /* @__PURE__ */ K("span", {
1275
+ className: "truncate font-medium",
1276
+ title: p.join(", "),
1277
+ children: X(m)
1278
+ }) : null,
1279
+ _ == null ? null : /* @__PURE__ */ K("span", {
1280
+ className: "min-w-8 flex-1 truncate font-mono text-xs text-muted-foreground",
1281
+ title: _,
1282
+ children: _
1283
+ }),
1284
+ v === "partial" ? /* @__PURE__ */ K(d, {
1285
+ variant: "destructive",
1286
+ className: "self-center",
1287
+ children: t("audit_write_partial")
1288
+ }) : null,
1289
+ h > 0 ? /* @__PURE__ */ K(d, {
1290
+ variant: "outline",
1291
+ className: "self-center",
1292
+ children: t("audit_more_targets", { count: h })
1293
+ }) : null
1294
+ ]
1295
+ })
1296
+ }),
1297
+ /* @__PURE__ */ K(C, {
1298
+ className: "\n order-4 col-span-2 justify-self-end p-0 text-muted-foreground\n @4xl:px-2 @4xl:py-1.5\n ",
1299
+ children: /* @__PURE__ */ K("span", {
1300
+ className: "block truncate",
1301
+ title: u,
1302
+ children: u
1303
+ })
1304
+ }),
1305
+ /* @__PURE__ */ K(C, {
1306
+ className: "\n order-2 justify-self-end p-0\n @4xl:py-1.5 @4xl:pr-2\n ",
1307
+ children: /* @__PURE__ */ K(f, {
1308
+ variant: "ghost",
1309
+ size: "icon-xs",
1310
+ "aria-expanded": n,
1311
+ "aria-label": t(n ? "audit_hide_details" : "audit_show_details"),
1312
+ children: /* @__PURE__ */ K(me, { className: `
1313
+ transition-transform
1314
+ ${n ? "rotate-90" : ""}
1315
+ ` })
1316
+ })
1317
+ })
1318
+ ]
1319
+ }), n ? /* @__PURE__ */ K(S, {
1320
+ className: "\n block bg-muted/30\n hover:bg-muted/30\n @4xl:table-row\n ",
1321
+ children: /* @__PURE__ */ K(C, {
1322
+ colSpan: 6,
1323
+ className: "\n block p-3 whitespace-normal\n @4xl:table-cell\n ",
1324
+ children: /* @__PURE__ */ q("div", {
1325
+ className: "flex flex-col gap-3",
1326
+ children: [/* @__PURE__ */ q("div", {
1327
+ className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs",
1328
+ children: [
1329
+ /* @__PURE__ */ K("span", {
1330
+ className: "font-mono text-muted-foreground",
1331
+ children: s
1332
+ }),
1333
+ a.actorCredentialId == null ? null : /* @__PURE__ */ K("span", {
1334
+ className: "font-mono text-muted-foreground",
1335
+ children: t("audit_credential", { id: a.actorCredentialId })
1336
+ }),
1337
+ v === "partial" ? /* @__PURE__ */ K(d, {
1338
+ variant: "destructive",
1339
+ children: t("audit_write_partial")
1340
+ }) : v === "complete" ? /* @__PURE__ */ K(d, {
1341
+ variant: "success",
1342
+ children: t("audit_write_complete")
1343
+ }) : null
1344
+ ]
1345
+ }), o.map((e) => /* @__PURE__ */ K(yt, { change: e }, e.id))]
1346
+ })
1347
+ })
1348
+ }) : null] });
1349
+ }
1350
+ function yt({ change: e }) {
1351
+ let t = r(), n = Ve(e), i = e.operation === "update";
1352
+ return /* @__PURE__ */ q("div", {
1353
+ className: "overflow-hidden rounded-md border bg-background",
1354
+ children: [/* @__PURE__ */ q("div", {
1355
+ className: "flex flex-wrap items-center gap-x-2 gap-y-1 border-b px-2 py-1.5",
1356
+ children: [
1357
+ /* @__PURE__ */ K(d, {
1358
+ variant: _t(e.operation),
1359
+ children: $(e.operation)
1360
+ }),
1361
+ /* @__PURE__ */ K("span", {
1362
+ className: "text-xs text-muted-foreground",
1363
+ children: Q(e.targetType)
1364
+ }),
1365
+ /* @__PURE__ */ K("span", {
1366
+ className: "text-xs font-medium",
1367
+ children: X(e) ?? null
1368
+ }),
1369
+ /* @__PURE__ */ K("span", {
1370
+ className: "ml-auto truncate font-mono text-xs text-muted-foreground",
1371
+ title: t("audit_target_key", { key: e.targetKey }),
1372
+ children: t("audit_target_key", { key: e.targetKey })
1373
+ })
1374
+ ]
1375
+ }), n.length > 0 ? /* @__PURE__ */ q(D, {
1376
+ className: "table-fixed text-xs",
1377
+ children: [/* @__PURE__ */ K(E, { children: /* @__PURE__ */ q(S, { children: [/* @__PURE__ */ K(T, {
1378
+ className: "w-1/4",
1379
+ children: t("audit_field")
1380
+ }), i ? /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(T, { children: t("audit_before") }), /* @__PURE__ */ K(T, { children: t("audit_after") })] }) : /* @__PURE__ */ K(T, { children: t("audit_value") })] }) }), /* @__PURE__ */ K(w, { children: n.map((e) => /* @__PURE__ */ q(S, {
1381
+ className: "\n font-mono\n hover:bg-transparent\n ",
1382
+ children: [/* @__PURE__ */ K(C, {
1383
+ className: "py-1 align-top break-all whitespace-normal text-muted-foreground",
1384
+ children: e.field
1385
+ }), i ? /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(C, {
1386
+ className: "py-1 align-top break-all whitespace-pre-wrap",
1387
+ children: e.before ?? "—"
1388
+ }), /* @__PURE__ */ K(C, {
1389
+ className: "py-1 align-top break-all whitespace-pre-wrap",
1390
+ children: e.after ?? "—"
1391
+ })] }) : /* @__PURE__ */ K(C, {
1392
+ className: "py-1 align-top break-all whitespace-pre-wrap",
1393
+ children: e.after ?? e.before ?? "—"
1394
+ })]
1395
+ }, e.field)) })]
1396
+ }) : null]
1397
+ });
1398
+ }
1399
+ //#endregion
1400
+ export { dt as n, $e as r, mt as t };