@declarion/react 0.61.1 → 0.63.1

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 (487) hide show
  1. package/dist-lib/ActionDialog-uiuse5W8.js +374 -0
  2. package/dist-lib/ActionResultDialog.impl-BUBm9Ck3.js +273 -0
  3. package/dist-lib/ActionRunner-DAxgnKB3.js +1440 -0
  4. package/dist-lib/AdminCatalogPage.impl-BJGn7EvA.js +441 -0
  5. package/dist-lib/{AgentChatPanel.impl-rgkewyMl.js → AgentChatPanel.impl-8bw8J-xV.js} +358 -319
  6. package/dist-lib/AgentOpenFollower.impl-Cga1q7_e.js +81 -0
  7. package/dist-lib/AssociatedBlock-D6qDYmRO.js +1515 -0
  8. package/dist-lib/AuthShell-DdiughRT.js +361 -0
  9. package/dist-lib/ChangePasswordDialog-DFe7lVQg.js +12 -0
  10. package/dist-lib/ChangePasswordDialog.impl-DtSIaP-A.js +194 -0
  11. package/dist-lib/CommandPalette.impl-Db3AFA5w.js +383 -0
  12. package/dist-lib/CopyButton-C0iEvaT1.js +119 -0
  13. package/dist-lib/DirtyTabsCloseDialog.impl-DWaFaWKn.js +191 -0
  14. package/dist-lib/{DraggableChildrenTable-DruYOxKm.js → DraggableChildrenTable-Cy8uevS_.js} +45 -44
  15. package/dist-lib/DynamicIcon-DuBSz6TZ.js +133 -0
  16. package/dist-lib/FieldRow-BXBBFOZh.js +157 -0
  17. package/dist-lib/FilterChips-8fMDBXHp.js +1031 -0
  18. package/dist-lib/Forgot.impl-CmT5A__V.js +105 -0
  19. package/dist-lib/{Grid-Dsf3I0xG.js → Grid-Cg29k0jv.js} +98 -99
  20. package/dist-lib/Icons-Dzl-AkD_.d.ts +159 -0
  21. package/dist-lib/Icons-lt-7lhYR.js +151 -0
  22. package/dist-lib/ImpersonationBanner.impl-CBJJx6an.js +76 -0
  23. package/dist-lib/ImpersonationStartModal.impl-RaZcsJpG.js +158 -0
  24. package/dist-lib/Kbd-CNttVu0z.js +23 -0
  25. package/dist-lib/{LayoutRenderer-QN7Wp2W6.js → LayoutRenderer-DEHtYtzV.js} +965 -942
  26. package/dist-lib/{ListCardsBody-CNaZ0xwz.js → ListCardsBody-BAwFR3yO.js} +46 -52
  27. package/dist-lib/{MarkdownRenderer-BuO5hYJh.js → MarkdownRenderer-kNEMr6K_.js} +15 -16
  28. package/dist-lib/MenuItem-CfkVXPvC.js +140 -0
  29. package/dist-lib/NotFoundPage.impl-ZSBn4WWb.js +68 -0
  30. package/dist-lib/PageHeader-tw4pX3lI.js +71 -0
  31. package/dist-lib/PageShell-tI-mm0C5.js +47 -0
  32. package/dist-lib/Pill-D-wsfRhx.js +42 -0
  33. package/dist-lib/Preferences.impl-BG9XBZDf.js +162 -0
  34. package/dist-lib/Profile.impl-CbzSzxyG.js +527 -0
  35. package/dist-lib/PropertyGridEditor-BTjscqfz.js +4378 -0
  36. package/dist-lib/RecordHeader-Bv9nJXnG.js +217 -0
  37. package/dist-lib/RecordIdBadge-C3MgoZvt.js +25 -0
  38. package/dist-lib/RefreshControl-Ce-T_wSQ.js +195 -0
  39. package/dist-lib/Reset.impl-Cesyqt5p.js +168 -0
  40. package/dist-lib/SSOCallbackPage.impl-BC_W9nQA.js +31 -0
  41. package/dist-lib/SectionCard-VonaiLrx.js +150 -0
  42. package/dist-lib/SignUp.impl-C1KCQbfZ.js +212 -0
  43. package/dist-lib/SmartDetailPage.impl-8iOAMYQh.js +1609 -0
  44. package/dist-lib/SmartListPage.impl-Cc4Zwz5f.js +2818 -0
  45. package/dist-lib/SmartRecordListPage.impl-xTSohkqG.js +795 -0
  46. package/dist-lib/{SortHeaderMenu-BV-aQbPy.js → SortHeaderMenu-BKTrq0Wb.js} +23 -23
  47. package/dist-lib/TenantParamsPage.impl-DMuSs3eP.js +306 -0
  48. package/dist-lib/TwoFA.impl-BClZ3ndk.js +125 -0
  49. package/dist-lib/{cardProjection-BnmWukxk.js → cardProjection-Cr7fG6wJ.js} +134 -133
  50. package/dist-lib/declarion-react.css +1 -1
  51. package/dist-lib/format-count-CSEFw2ht.js +943 -0
  52. package/dist-lib/headerActionZone-bef-tZZ7.js +14 -0
  53. package/dist-lib/{stores/icon-registry.d.ts → icon-registry-CUT4eF63.d.ts} +14 -11
  54. package/dist-lib/icons.d.ts +20 -4
  55. package/dist-lib/icons.js +3 -2
  56. package/dist-lib/index.d.ts +2516 -150
  57. package/dist-lib/index.js +1588 -5117
  58. package/dist-lib/page-inset-D_kkVwwN.js +9 -0
  59. package/dist-lib/page-state-eA6J_KIR.js +124 -0
  60. package/dist-lib/param-editors-9yJr7xmN.js +201 -0
  61. package/dist-lib/payload-B2wODLAX.js +86 -0
  62. package/dist-lib/{peekDraftStore-Dk1Ha5u3.js → peekDraftStore-D4GRsRKW.js} +44 -43
  63. package/dist-lib/registry-BpzE8-h8.js +119 -0
  64. package/dist-lib/screen-back-Cs4kzeqD.js +44 -0
  65. package/dist-lib/testing.d.ts +53 -56
  66. package/dist-lib/testing.js +54 -55
  67. package/dist-lib/use-filter-value-labels-DuqvAIVG.js +413 -0
  68. package/dist-lib/{useAgentConversation-nT5UypJX.js → useAgentConversation-D210VDCQ.js} +158 -169
  69. package/dist-lib/useAuth-CR2YKKXb.js +49 -0
  70. package/dist-lib/useBranding-Ckp_AuJb.js +41 -0
  71. package/dist-lib/useBrandingChrome-bKTXXDLy.js +170 -0
  72. package/dist-lib/useCurrentLocation-BdngVeQv.js +22 -0
  73. package/dist-lib/useCurrentScreen--UovgvRj.js +2511 -0
  74. package/dist-lib/useImpersonation-DNV23Ks1.js +35 -0
  75. package/dist-lib/useObject-1OCeV34A.js +26 -0
  76. package/dist-lib/useOwnRefresh-DkOuM4yo.js +435 -0
  77. package/dist-lib/useParams-ei6w4I7w.js +133 -0
  78. package/dist-lib/useProperties-CbdhlhZd.js +81 -0
  79. package/dist-lib/useResponsiveMode-DIR1bZfo.d.ts +1786 -0
  80. package/dist-lib/useScreenBack-J861tbwn.js +71 -0
  81. package/dist-lib/useTabNavigate-BZiW4q3M.js +78 -0
  82. package/dist-lib/useTabTitle-CZZnWIQi.js +22 -0
  83. package/dist-lib/utils-D_QDpB8_.js +11 -0
  84. package/dist-lib/{value-Dwfyghtj.js → value-CDCeHgOv.js} +8 -22
  85. package/dist-lib/{action-dispatch-gWmOYjOP.js → variants-CbAwl3Mn.js} +734 -740
  86. package/dist-lib/vite/index.d.ts +42 -16
  87. package/dist-lib/window-election-CHIvIZwx.js +45 -0
  88. package/package.json +16 -23
  89. package/dist-lib/DetailAuditStrip-CSXZoy7v.js +0 -288
  90. package/dist-lib/DynamicIcon-DW5krHuX.js +0 -280
  91. package/dist-lib/RefreshControl-DO9rYcdq.js +0 -399
  92. package/dist-lib/SmartDetailPage.impl-DFIIx80b.js +0 -1565
  93. package/dist-lib/SmartListPage.impl-D694R32H.js +0 -3051
  94. package/dist-lib/SmartRecordListPage.impl-CB5cuQJV.js +0 -780
  95. package/dist-lib/api/agents.d.ts +0 -140
  96. package/dist-lib/api/auth-redirect.d.ts +0 -3
  97. package/dist-lib/api/auth.d.ts +0 -26
  98. package/dist-lib/api/batch.d.ts +0 -25
  99. package/dist-lib/api/client.d.ts +0 -51
  100. package/dist-lib/api/data.d.ts +0 -153
  101. package/dist-lib/api/entities.d.ts +0 -149
  102. package/dist-lib/api/events.d.ts +0 -91
  103. package/dist-lib/api/params.d.ts +0 -28
  104. package/dist-lib/api/properties.d.ts +0 -3
  105. package/dist-lib/api/schema.d.ts +0 -2
  106. package/dist-lib/api/status.d.ts +0 -2
  107. package/dist-lib/app.d.ts +0 -1
  108. package/dist-lib/components/actions/ActionButton.d.ts +0 -18
  109. package/dist-lib/components/actions/ActionDialog.d.ts +0 -20
  110. package/dist-lib/components/actions/ActionResultDialog.d.ts +0 -22
  111. package/dist-lib/components/actions/ActionRunner.d.ts +0 -62
  112. package/dist-lib/components/actions/ObjectActionBar.d.ts +0 -29
  113. package/dist-lib/components/actions/PropertyGridEditor.d.ts +0 -20
  114. package/dist-lib/components/actions/ResponsiveActionBar.d.ts +0 -259
  115. package/dist-lib/components/actions/RowActionsKebab.d.ts +0 -20
  116. package/dist-lib/components/agents/AgentChatPanel.d.ts +0 -3
  117. package/dist-lib/components/agents/AgentChatPanel.impl.d.ts +0 -14
  118. package/dist-lib/components/agents/AgentConversationDrawer.d.ts +0 -11
  119. package/dist-lib/components/agents/AgentElicitForm.d.ts +0 -27
  120. package/dist-lib/components/agents/AgentPicker.d.ts +0 -8
  121. package/dist-lib/components/agents/transcript-runs.d.ts +0 -29
  122. package/dist-lib/components/chrome/AssociationTabs.d.ts +0 -9
  123. package/dist-lib/components/chrome/AuditMetaStrip.d.ts +0 -11
  124. package/dist-lib/components/chrome/Breadcrumbs.d.ts +0 -14
  125. package/dist-lib/components/chrome/HighlightsStrip.d.ts +0 -10
  126. package/dist-lib/components/chrome/PageHeader.d.ts +0 -16
  127. package/dist-lib/components/chrome/PageShell.d.ts +0 -7
  128. package/dist-lib/components/chrome/RecordHeader.d.ts +0 -17
  129. package/dist-lib/components/chrome/headerActionZone.d.ts +0 -27
  130. package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +0 -20
  131. package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +0 -13
  132. package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +0 -16
  133. package/dist-lib/components/detail-layout/ChildrenCards.d.ts +0 -2
  134. package/dist-lib/components/detail-layout/ChildrenList.d.ts +0 -2
  135. package/dist-lib/components/detail-layout/ChildrenTable.d.ts +0 -2
  136. package/dist-lib/components/detail-layout/ChildrenTimeline.d.ts +0 -2
  137. package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +0 -12
  138. package/dist-lib/components/detail-layout/DetailHighlights.d.ts +0 -14
  139. package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +0 -16
  140. package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +0 -16
  141. package/dist-lib/components/detail-layout/ErrorSummary.d.ts +0 -11
  142. package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +0 -6
  143. package/dist-lib/components/detail-layout/FieldRow.d.ts +0 -23
  144. package/dist-lib/components/detail-layout/FieldsBlock.d.ts +0 -8
  145. package/dist-lib/components/detail-layout/LayoutColumn.d.ts +0 -9
  146. package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +0 -46
  147. package/dist-lib/components/detail-layout/LayoutRow.d.ts +0 -8
  148. package/dist-lib/components/detail-layout/LayoutTabs.d.ts +0 -8
  149. package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +0 -8
  150. package/dist-lib/components/detail-layout/QuickAddForm.d.ts +0 -10
  151. package/dist-lib/components/detail-layout/SectionBlock.d.ts +0 -8
  152. package/dist-lib/components/detail-layout/StatusesBlock.d.ts +0 -8
  153. package/dist-lib/components/detail-layout/TimelineComposer.d.ts +0 -10
  154. package/dist-lib/components/detail-layout/blockMeta.d.ts +0 -5
  155. package/dist-lib/components/detail-layout/index.d.ts +0 -21
  156. package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +0 -25
  157. package/dist-lib/components/detail-layout/useQuickAdd.d.ts +0 -16
  158. package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.d.ts +0 -2
  159. package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.d.ts +0 -2
  160. package/dist-lib/components/detail-layout/widgets/MonacoJson.d.ts +0 -9
  161. package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +0 -9
  162. package/dist-lib/components/detail-layout/widgets/builtins.d.ts +0 -1
  163. package/dist-lib/components/detail-layout/widgets/canonicalizeJson.d.ts +0 -1
  164. package/dist-lib/components/detail-layout/widgets/monacoBootstrap.d.ts +0 -1
  165. package/dist-lib/components/detail-layout/widgets/registry.d.ts +0 -14
  166. package/dist-lib/components/fields/BoolField.d.ts +0 -2
  167. package/dist-lib/components/fields/EmailField.d.ts +0 -2
  168. package/dist-lib/components/fields/EnumField.d.ts +0 -2
  169. package/dist-lib/components/fields/IntArrayField.d.ts +0 -2
  170. package/dist-lib/components/fields/JsonEditor.d.ts +0 -10
  171. package/dist-lib/components/fields/JsonField.d.ts +0 -3
  172. package/dist-lib/components/fields/MultilangArrayField.d.ts +0 -2
  173. package/dist-lib/components/fields/MultilangField.d.ts +0 -2
  174. package/dist-lib/components/fields/MultilangTextField.d.ts +0 -2
  175. package/dist-lib/components/fields/NumberField.d.ts +0 -2
  176. package/dist-lib/components/fields/PasswordField.d.ts +0 -2
  177. package/dist-lib/components/fields/PhoneField.d.ts +0 -2
  178. package/dist-lib/components/fields/RefCombobox.d.ts +0 -45
  179. package/dist-lib/components/fields/RefField.d.ts +0 -2
  180. package/dist-lib/components/fields/RichTextField.d.ts +0 -2
  181. package/dist-lib/components/fields/SecretField.d.ts +0 -2
  182. package/dist-lib/components/fields/StringArrayField.d.ts +0 -2
  183. package/dist-lib/components/fields/StringField.d.ts +0 -2
  184. package/dist-lib/components/fields/StructureField.d.ts +0 -2
  185. package/dist-lib/components/fields/TextField.d.ts +0 -2
  186. package/dist-lib/components/fields/TimestampField.d.ts +0 -2
  187. package/dist-lib/components/fields/UrlField.d.ts +0 -2
  188. package/dist-lib/components/fields/cells/factories/badge.d.ts +0 -2
  189. package/dist-lib/components/fields/cells/factories/boolPill.d.ts +0 -2
  190. package/dist-lib/components/fields/cells/factories/code.d.ts +0 -2
  191. package/dist-lib/components/fields/cells/factories/date.d.ts +0 -2
  192. package/dist-lib/components/fields/cells/factories/email.d.ts +0 -2
  193. package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +0 -2
  194. package/dist-lib/components/fields/cells/factories/host-icons.d.ts +0 -17
  195. package/dist-lib/components/fields/cells/factories/json.d.ts +0 -2
  196. package/dist-lib/components/fields/cells/factories/link.d.ts +0 -2
  197. package/dist-lib/components/fields/cells/factories/markdown.d.ts +0 -2
  198. package/dist-lib/components/fields/cells/factories/markdownPreview.d.ts +0 -9
  199. package/dist-lib/components/fields/cells/factories/money.d.ts +0 -2
  200. package/dist-lib/components/fields/cells/factories/multilangInline.d.ts +0 -2
  201. package/dist-lib/components/fields/cells/factories/nextRun.d.ts +0 -2
  202. package/dist-lib/components/fields/cells/factories/number.d.ts +0 -2
  203. package/dist-lib/components/fields/cells/factories/passwordMask.d.ts +0 -2
  204. package/dist-lib/components/fields/cells/factories/phone.d.ts +0 -2
  205. package/dist-lib/components/fields/cells/factories/refLink.d.ts +0 -2
  206. package/dist-lib/components/fields/cells/factories/richTextPreview.d.ts +0 -2
  207. package/dist-lib/components/fields/cells/factories/statusPill.d.ts +0 -2
  208. package/dist-lib/components/fields/cells/factories/tagList.d.ts +0 -2
  209. package/dist-lib/components/fields/cells/factories/text.d.ts +0 -2
  210. package/dist-lib/components/fields/cells/factories/timestamp.d.ts +0 -3
  211. package/dist-lib/components/fields/cells/factories/url-helpers.d.ts +0 -12
  212. package/dist-lib/components/fields/cells/factories/url.d.ts +0 -2
  213. package/dist-lib/components/fields/cells/registry.d.ts +0 -21
  214. package/dist-lib/components/fields/index.d.ts +0 -28
  215. package/dist-lib/components/fields/langMap.d.ts +0 -2
  216. package/dist-lib/components/fields/secretValue.d.ts +0 -2
  217. package/dist-lib/components/file-widgets/CircleImage.d.ts +0 -2
  218. package/dist-lib/components/file-widgets/DocumentCard.d.ts +0 -2
  219. package/dist-lib/components/file-widgets/FileList.d.ts +0 -2
  220. package/dist-lib/components/file-widgets/Grid.d.ts +0 -2
  221. package/dist-lib/components/file-widgets/GridLazy.d.ts +0 -2
  222. package/dist-lib/components/file-widgets/ImageWidget.d.ts +0 -12
  223. package/dist-lib/components/file-widgets/LabeledSlots.d.ts +0 -2
  224. package/dist-lib/components/file-widgets/SquareImage.d.ts +0 -2
  225. package/dist-lib/components/file-widgets/UnknownFileWidget.d.ts +0 -3
  226. package/dist-lib/components/file-widgets/UploadFailureText.d.ts +0 -4
  227. package/dist-lib/components/file-widgets/WideBanner.d.ts +0 -2
  228. package/dist-lib/components/file-widgets/builtins.d.ts +0 -1
  229. package/dist-lib/components/file-widgets/cropper.d.ts +0 -14
  230. package/dist-lib/components/file-widgets/draft-scope.d.ts +0 -22
  231. package/dist-lib/components/file-widgets/helpers.d.ts +0 -15
  232. package/dist-lib/components/file-widgets/host.d.ts +0 -28
  233. package/dist-lib/components/file-widgets/index.d.ts +0 -16
  234. package/dist-lib/components/file-widgets/payload.d.ts +0 -21
  235. package/dist-lib/components/file-widgets/registry.d.ts +0 -5
  236. package/dist-lib/components/file-widgets/types.d.ts +0 -17
  237. package/dist-lib/components/file-widgets/upload.d.ts +0 -45
  238. package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +0 -42
  239. package/dist-lib/components/file-widgets/value.d.ts +0 -4
  240. package/dist-lib/components/filters/FilterChips.d.ts +0 -14
  241. package/dist-lib/components/filters/FilterDrawer.d.ts +0 -32
  242. package/dist-lib/components/filters/filter-op-label.d.ts +0 -3
  243. package/dist-lib/components/layout/CommandPalette.d.ts +0 -21
  244. package/dist-lib/components/layout/DirtyTabsCloseDialog.d.ts +0 -9
  245. package/dist-lib/components/layout/ImpersonationBanner.d.ts +0 -11
  246. package/dist-lib/components/layout/ImpersonationFrame.d.ts +0 -11
  247. package/dist-lib/components/layout/ImpersonationStartModal.d.ts +0 -22
  248. package/dist-lib/components/layout/Layout.d.ts +0 -6
  249. package/dist-lib/components/layout/Rail.d.ts +0 -22
  250. package/dist-lib/components/layout/Sidebar.d.ts +0 -12
  251. package/dist-lib/components/layout/TabStrip.d.ts +0 -6
  252. package/dist-lib/components/layout/TenantChip.d.ts +0 -26
  253. package/dist-lib/components/layout/TopBar.d.ts +0 -22
  254. package/dist-lib/components/layout/tab-close.d.ts +0 -13
  255. package/dist-lib/components/list/ColumnPicker.d.ts +0 -20
  256. package/dist-lib/components/list/InlineEditCell.d.ts +0 -15
  257. package/dist-lib/components/list/PeekFieldCell.d.ts +0 -16
  258. package/dist-lib/components/list/QuickPeek.d.ts +0 -59
  259. package/dist-lib/components/list/ViewSwitcher.d.ts +0 -24
  260. package/dist-lib/components/list/peekDraftStore.d.ts +0 -6
  261. package/dist-lib/components/pages/AdminCatalogPage.d.ts +0 -1
  262. package/dist-lib/components/pages/DocumentsMenu.d.ts +0 -21
  263. package/dist-lib/components/pages/ExportMenu.d.ts +0 -30
  264. package/dist-lib/components/pages/NotFoundPage.d.ts +0 -1
  265. package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +0 -41
  266. package/dist-lib/components/pages/SSOCallbackPage.d.ts +0 -1
  267. package/dist-lib/components/pages/SmartDetailPage.d.ts +0 -2
  268. package/dist-lib/components/pages/SmartDetailPage.impl.d.ts +0 -4
  269. package/dist-lib/components/pages/SmartListPage.d.ts +0 -2
  270. package/dist-lib/components/pages/SmartListPage.impl.d.ts +0 -4
  271. package/dist-lib/components/pages/SmartRecordListPage.d.ts +0 -2
  272. package/dist-lib/components/pages/SmartRecordListPage.impl.d.ts +0 -4
  273. package/dist-lib/components/pages/auth/AuthShell.d.ts +0 -18
  274. package/dist-lib/components/pages/auth/Forgot.d.ts +0 -1
  275. package/dist-lib/components/pages/auth/Reset.d.ts +0 -1
  276. package/dist-lib/components/pages/auth/SignIn.d.ts +0 -1
  277. package/dist-lib/components/pages/auth/SignUp.d.ts +0 -1
  278. package/dist-lib/components/pages/auth/TwoFA.d.ts +0 -1
  279. package/dist-lib/components/pages/auth/icons.d.ts +0 -6
  280. package/dist-lib/components/pages/exportRequest.d.ts +0 -69
  281. package/dist-lib/components/pages/list/DataCell.d.ts +0 -4
  282. package/dist-lib/components/pages/list/DeleteViewDialog.d.ts +0 -8
  283. package/dist-lib/components/pages/list/ListCardRow.d.ts +0 -39
  284. package/dist-lib/components/pages/list/ListCardsBody.d.ts +0 -33
  285. package/dist-lib/components/pages/list/ListFloatbar.d.ts +0 -29
  286. package/dist-lib/components/pages/list/ListFooter.d.ts +0 -26
  287. package/dist-lib/components/pages/list/ListHeader.d.ts +0 -26
  288. package/dist-lib/components/pages/list/ListNoRows.d.ts +0 -31
  289. package/dist-lib/components/pages/list/ListTable.d.ts +0 -33
  290. package/dist-lib/components/pages/list/ListTableRow.d.ts +0 -17
  291. package/dist-lib/components/pages/list/ListToolbar.d.ts +0 -46
  292. package/dist-lib/components/pages/list/ListUrlBanner.d.ts +0 -10
  293. package/dist-lib/components/pages/list/RowActionsCell.d.ts +0 -34
  294. package/dist-lib/components/pages/list/RowContextMenu.d.ts +0 -28
  295. package/dist-lib/components/pages/list/SaveViewDialog.d.ts +0 -10
  296. package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +0 -14
  297. package/dist-lib/components/pages/list/cardProjection.d.ts +0 -67
  298. package/dist-lib/components/pages/list/column-sizing.d.ts +0 -14
  299. package/dist-lib/components/pages/list/columns.d.ts +0 -46
  300. package/dist-lib/components/pages/list/filter-meta.d.ts +0 -25
  301. package/dist-lib/components/pages/list/page-size.d.ts +0 -3
  302. package/dist-lib/components/pages/list/sortable-header.d.ts +0 -2
  303. package/dist-lib/components/pages/list/table-features.d.ts +0 -14
  304. package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +0 -24
  305. package/dist-lib/components/pages/list/useActiveView.d.ts +0 -45
  306. package/dist-lib/components/pages/list/useHeaderReorder.d.ts +0 -26
  307. package/dist-lib/components/pages/list/useListColumnLayout.d.ts +0 -38
  308. package/dist-lib/components/pages/list/useListQuery.d.ts +0 -67
  309. package/dist-lib/components/pages/list/useListRowInteraction.d.ts +0 -61
  310. package/dist-lib/components/pages/list/useListSelection.d.ts +0 -31
  311. package/dist-lib/components/pages/list/useListSort.d.ts +0 -46
  312. package/dist-lib/components/pages/list/useListViews.d.ts +0 -57
  313. package/dist-lib/components/pages/list/useRowMenu.d.ts +0 -46
  314. package/dist-lib/components/pages/profile/Preferences.d.ts +0 -1
  315. package/dist-lib/components/pages/profile/Profile.d.ts +0 -7
  316. package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +0 -2
  317. package/dist-lib/components/params/ParamsBlock.d.ts +0 -13
  318. package/dist-lib/components/params/param-editors.d.ts +0 -20
  319. package/dist-lib/components/primitives/Avatar.d.ts +0 -6
  320. package/dist-lib/components/primitives/BoolToggle.d.ts +0 -7
  321. package/dist-lib/components/primitives/BrandGlyph.d.ts +0 -8
  322. package/dist-lib/components/primitives/BrandLogo.d.ts +0 -12
  323. package/dist-lib/components/primitives/Btn.d.ts +0 -19
  324. package/dist-lib/components/primitives/Check.d.ts +0 -7
  325. package/dist-lib/components/primitives/Chip.d.ts +0 -9
  326. package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +0 -9
  327. package/dist-lib/components/primitives/Dropdown.d.ts +0 -20
  328. package/dist-lib/components/primitives/Fields.d.ts +0 -111
  329. package/dist-lib/components/primitives/HoverCard.d.ts +0 -15
  330. package/dist-lib/components/primitives/IconBtn.d.ts +0 -11
  331. package/dist-lib/components/primitives/Icons.d.ts +0 -136
  332. package/dist-lib/components/primitives/Kbd.d.ts +0 -4
  333. package/dist-lib/components/primitives/MenuItem.d.ts +0 -14
  334. package/dist-lib/components/primitives/Pill.d.ts +0 -11
  335. package/dist-lib/components/primitives/RecordIdBadge.d.ts +0 -8
  336. package/dist-lib/components/primitives/RowField.d.ts +0 -10
  337. package/dist-lib/components/primitives/SectionCard.d.ts +0 -24
  338. package/dist-lib/components/primitives/Spinner.d.ts +0 -3
  339. package/dist-lib/components/primitives/Tooltip.d.ts +0 -34
  340. package/dist-lib/components/primitives/dataTableStyles.d.ts +0 -4
  341. package/dist-lib/components/primitives/index.d.ts +0 -37
  342. package/dist-lib/components/shared/ChangePasswordDialog.d.ts +0 -9
  343. package/dist-lib/components/shared/ConfirmDialog.d.ts +0 -11
  344. package/dist-lib/components/shared/CopyButton.d.ts +0 -8
  345. package/dist-lib/components/shared/DynamicIcon.d.ts +0 -20
  346. package/dist-lib/components/shared/EmptyState.d.ts +0 -9
  347. package/dist-lib/components/shared/ErrorBoundary.d.ts +0 -17
  348. package/dist-lib/components/shared/LoadingSkeleton.d.ts +0 -6
  349. package/dist-lib/components/shared/LucideIcon.d.ts +0 -16
  350. package/dist-lib/components/shared/Markdown.d.ts +0 -3
  351. package/dist-lib/components/shared/MarkdownRenderer.d.ts +0 -11
  352. package/dist-lib/components/shared/RefreshControl.d.ts +0 -25
  353. package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +0 -11
  354. package/dist-lib/components/shared/StatusStepper.d.ts +0 -13
  355. package/dist-lib/components/shared/toast/DeclarionToast.d.ts +0 -31
  356. package/dist-lib/components/shared/useOwnRefresh.d.ts +0 -9
  357. package/dist-lib/embed/EmbedAuthBootstrap.d.ts +0 -8
  358. package/dist-lib/embed/EmbedContext.d.ts +0 -50
  359. package/dist-lib/embed/EmbedDirtyReporter.d.ts +0 -10
  360. package/dist-lib/embed/EmbedHistoryTracker.d.ts +0 -1
  361. package/dist-lib/embed/EmbedLocationReporter.d.ts +0 -8
  362. package/dist-lib/embed/EmbedResizeReporter.d.ts +0 -6
  363. package/dist-lib/embed/EmbedUnsavedGuard.d.ts +0 -7
  364. package/dist-lib/embed/embed-dirty.d.ts +0 -24
  365. package/dist-lib/embed/embed-history.d.ts +0 -19
  366. package/dist-lib/embed/embed-nav-guard.d.ts +0 -20
  367. package/dist-lib/embed/file-src.d.ts +0 -63
  368. package/dist-lib/embed/handshake.d.ts +0 -57
  369. package/dist-lib/embed/index.d.ts +0 -19
  370. package/dist-lib/embed/params.d.ts +0 -75
  371. package/dist-lib/embed/protocol.d.ts +0 -165
  372. package/dist-lib/embed/screen-location.d.ts +0 -50
  373. package/dist-lib/embed/theme.d.ts +0 -34
  374. package/dist-lib/embed/token.d.ts +0 -57
  375. package/dist-lib/embed/useEmbedNavigate.d.ts +0 -48
  376. package/dist-lib/embed/useGlobalLinkInterceptor.d.ts +0 -66
  377. package/dist-lib/failure-BUxXuP4c.js +0 -158
  378. package/dist-lib/format-count-bXVfHzbI.js +0 -1771
  379. package/dist-lib/hooks/useActionData.d.ts +0 -61
  380. package/dist-lib/hooks/useAgentConversation.d.ts +0 -24
  381. package/dist-lib/hooks/useAllEntityData.d.ts +0 -16
  382. package/dist-lib/hooks/useAssociatedData.d.ts +0 -10
  383. package/dist-lib/hooks/useAuth.d.ts +0 -22
  384. package/dist-lib/hooks/useBranding.d.ts +0 -8
  385. package/dist-lib/hooks/useBrandingChrome.d.ts +0 -59
  386. package/dist-lib/hooks/useChildrenData.d.ts +0 -3
  387. package/dist-lib/hooks/useColumns.d.ts +0 -13
  388. package/dist-lib/hooks/useCurrentScreen.d.ts +0 -34
  389. package/dist-lib/hooks/useCursorEntityData.d.ts +0 -79
  390. package/dist-lib/hooks/useDebounce.d.ts +0 -1
  391. package/dist-lib/hooks/useEntity.d.ts +0 -2
  392. package/dist-lib/hooks/useEntityData.d.ts +0 -41
  393. package/dist-lib/hooks/useFilters.d.ts +0 -14
  394. package/dist-lib/hooks/useImpersonation.d.ts +0 -23
  395. package/dist-lib/hooks/useLanguage.d.ts +0 -4
  396. package/dist-lib/hooks/useLiveObject.d.ts +0 -9
  397. package/dist-lib/hooks/useLongPress.d.ts +0 -29
  398. package/dist-lib/hooks/useMutations.d.ts +0 -13
  399. package/dist-lib/hooks/useObject.d.ts +0 -11
  400. package/dist-lib/hooks/useObjectStatus.d.ts +0 -5
  401. package/dist-lib/hooks/usePageState.d.ts +0 -32
  402. package/dist-lib/hooks/usePageStateRuntime.d.ts +0 -27
  403. package/dist-lib/hooks/usePageStateTtl.d.ts +0 -11
  404. package/dist-lib/hooks/useParams.d.ts +0 -49
  405. package/dist-lib/hooks/useProperties.d.ts +0 -5
  406. package/dist-lib/hooks/useRealtimeThresholds.d.ts +0 -1
  407. package/dist-lib/hooks/useRegisterScreenTab.d.ts +0 -11
  408. package/dist-lib/hooks/useResponsiveMode.d.ts +0 -27
  409. package/dist-lib/hooks/useSSE.d.ts +0 -31
  410. package/dist-lib/hooks/useSchema.d.ts +0 -1
  411. package/dist-lib/hooks/useScreen.d.ts +0 -2
  412. package/dist-lib/hooks/useScreenBack.d.ts +0 -21
  413. package/dist-lib/hooks/useScreenTab.d.ts +0 -10
  414. package/dist-lib/hooks/useTabNavigate.d.ts +0 -34
  415. package/dist-lib/hooks/useTabSearchMirror.d.ts +0 -1
  416. package/dist-lib/hooks/useTabTitle.d.ts +0 -2
  417. package/dist-lib/hooks/useText.d.ts +0 -3
  418. package/dist-lib/hooks/useTimelineData.d.ts +0 -10
  419. package/dist-lib/hooks/useVersionWatcher.d.ts +0 -30
  420. package/dist-lib/hooks/useViews.d.ts +0 -26
  421. package/dist-lib/lib/action-dispatch.d.ts +0 -8
  422. package/dist-lib/lib/actions.d.ts +0 -254
  423. package/dist-lib/lib/anchor.d.ts +0 -36
  424. package/dist-lib/lib/brand-tokens.d.ts +0 -43
  425. package/dist-lib/lib/branding.d.ts +0 -20
  426. package/dist-lib/lib/canonical-url.d.ts +0 -27
  427. package/dist-lib/lib/capabilityPrefetch.d.ts +0 -6
  428. package/dist-lib/lib/child-config.d.ts +0 -24
  429. package/dist-lib/lib/children-validation.d.ts +0 -5
  430. package/dist-lib/lib/decimal-text.d.ts +0 -1
  431. package/dist-lib/lib/display-value.d.ts +0 -1
  432. package/dist-lib/lib/document-templates.d.ts +0 -11
  433. package/dist-lib/lib/download.d.ts +0 -21
  434. package/dist-lib/lib/evidence-verdict.d.ts +0 -11
  435. package/dist-lib/lib/failure.d.ts +0 -2
  436. package/dist-lib/lib/field-classification.d.ts +0 -61
  437. package/dist-lib/lib/field-regions.d.ts +0 -8
  438. package/dist-lib/lib/filter-evaluator.d.ts +0 -16
  439. package/dist-lib/lib/filters.d.ts +0 -93
  440. package/dist-lib/lib/format-count.d.ts +0 -41
  441. package/dist-lib/lib/html-state.d.ts +0 -11
  442. package/dist-lib/lib/language.d.ts +0 -19
  443. package/dist-lib/lib/longPressGesture.d.ts +0 -55
  444. package/dist-lib/lib/mass-edit.d.ts +0 -32
  445. package/dist-lib/lib/page-inset.d.ts +0 -3
  446. package/dist-lib/lib/quick-add.d.ts +0 -2
  447. package/dist-lib/lib/realtime-query-keys.d.ts +0 -22
  448. package/dist-lib/lib/realtime-reconcile.d.ts +0 -33
  449. package/dist-lib/lib/realtime-resync.d.ts +0 -23
  450. package/dist-lib/lib/record-documents-key.d.ts +0 -1
  451. package/dist-lib/lib/rich-text.d.ts +0 -14
  452. package/dist-lib/lib/rowClickGesture.d.ts +0 -26
  453. package/dist-lib/lib/safe-url.d.ts +0 -15
  454. package/dist-lib/lib/schema-routing.d.ts +0 -3
  455. package/dist-lib/lib/screen-back.d.ts +0 -70
  456. package/dist-lib/lib/scroll-restoration.d.ts +0 -90
  457. package/dist-lib/lib/size-value.d.ts +0 -16
  458. package/dist-lib/lib/sort.d.ts +0 -72
  459. package/dist-lib/lib/timestamp.d.ts +0 -53
  460. package/dist-lib/lib/toast.d.ts +0 -49
  461. package/dist-lib/lib/ui-actions.d.ts +0 -12
  462. package/dist-lib/lib/utils.d.ts +0 -9
  463. package/dist-lib/lib/variants.d.ts +0 -7
  464. package/dist-lib/lib/versionTracker.d.ts +0 -72
  465. package/dist-lib/lib/viewport-category.d.ts +0 -44
  466. package/dist-lib/main.d.ts +0 -1
  467. package/dist-lib/registry-nSeHd5si.js +0 -1956
  468. package/dist-lib/safe-url-oSJw5pzO.js +0 -34
  469. package/dist-lib/stores/auth.d.ts +0 -16
  470. package/dist-lib/stores/list-layout.d.ts +0 -85
  471. package/dist-lib/stores/page-state.d.ts +0 -61
  472. package/dist-lib/stores/preferences.d.ts +0 -37
  473. package/dist-lib/stores/realtime.d.ts +0 -96
  474. package/dist-lib/stores/screen-registry.d.ts +0 -17
  475. package/dist-lib/stores/tabs.d.ts +0 -73
  476. package/dist-lib/types/api.d.ts +0 -579
  477. package/dist-lib/types/fieldType.d.ts +0 -2
  478. package/dist-lib/types/files.d.ts +0 -79
  479. package/dist-lib/types/ordmap.d.ts +0 -39
  480. package/dist-lib/types/schema.d.ts +0 -1089
  481. package/dist-lib/useCurrentScreen-0WBj7wT6.js +0 -7860
  482. package/dist-lib/useListQuery-C7dq_sEo.js +0 -103
  483. package/dist-lib/useOwnRefresh-q80kCMMh.js +0 -1167
  484. package/dist-lib/useProperties-CeGKtq7Q.js +0 -83
  485. package/dist-lib/useTabSearchMirror-CzNAj82Q.js +0 -175
  486. package/dist-lib/useText-BsedsJ-J.js +0 -952
  487. package/dist-lib/vite/fingerprint-plugin.d.ts +0 -44
@@ -1,1167 +0,0 @@
1
- import { D as e, Ht as t, Ln as n, Rn as r, Ut as i, Zt as a, a as o, vt as s, yt as c, zt as l } from "./useCurrentScreen-0WBj7wT6.js";
2
- import { D as u, O as d, f, p, t as m } from "./useText-BsedsJ-J.js";
3
- import { h, o as g, s as ee, t as te, y as ne } from "./failure-BUxXuP4c.js";
4
- import { d as re, f as ie, u as ae } from "./action-dispatch-gWmOYjOP.js";
5
- import { useCallback as _, useEffect as v, useMemo as oe, useRef as se, useState as ce } from "react";
6
- import { parsePath as le, useLocation as ue, useNavigate as de } from "react-router";
7
- import { useMutation as y, useQueryClient as b } from "@tanstack/react-query";
8
- import { Fragment as fe, jsx as x, jsxs as S } from "react/jsx-runtime";
9
- import { create as C } from "zustand";
10
- //#region src/stores/preferences.ts
11
- var pe = {
12
- colorScheme: "light",
13
- accent: "violet",
14
- density: "compact",
15
- sidebar: "wide",
16
- tabsPosition: "top",
17
- tabsMaxOpen: 12,
18
- tabsPersist: !0,
19
- radius: 7,
20
- zebra: !0,
21
- aiSurface: "both",
22
- toastPosition: "bottom-right"
23
- }, me = ["light", "dark"], he = [
24
- "violet",
25
- "blue",
26
- "teal",
27
- "amber",
28
- "rose"
29
- ], ge = [
30
- "compact",
31
- "comfortable",
32
- "cozy"
33
- ], _e = ["wide", "collapsed"], ve = ["top", "bottom"], ye = [
34
- "command",
35
- "panel",
36
- "both",
37
- "off"
38
- ], be = [
39
- "top-left",
40
- "top-center",
41
- "top-right",
42
- "bottom-left",
43
- "bottom-center",
44
- "bottom-right"
45
- ];
46
- function w(e, t) {
47
- return typeof t == "string" && e.includes(t) ? t : void 0;
48
- }
49
- function T(e) {
50
- let t = {}, n = w(me, e.colorScheme);
51
- n && (t.colorScheme = n);
52
- let r = w(he, e.accent);
53
- r && (t.accent = r);
54
- let i = w(ge, e.density);
55
- i && (t.density = i);
56
- let a = w(_e, e.sidebar);
57
- a && (t.sidebar = a);
58
- let o = w(ve, e.tabsPosition);
59
- o && (t.tabsPosition = o);
60
- let s = w(ye, e.aiSurface);
61
- s && (t.aiSurface = s);
62
- let c = w(be, e.toastPosition);
63
- return c && (t.toastPosition = c), typeof e.tabsMaxOpen == "number" && e.tabsMaxOpen > 0 && (t.tabsMaxOpen = e.tabsMaxOpen), typeof e.radius == "number" && e.radius >= 0 && e.radius <= 32 && (t.radius = e.radius), typeof e.zebra == "boolean" && (t.zebra = e.zebra), typeof e.tabsPersist == "boolean" && (t.tabsPersist = e.tabsPersist), t;
64
- }
65
- var xe = ["declarion-preferences", "declarion-appearance"];
66
- function Se() {
67
- if (typeof window < "u") try {
68
- for (let e of xe) localStorage.removeItem(e);
69
- } catch {}
70
- }
71
- function E(e) {
72
- if (typeof document > "u") return;
73
- let t = document.documentElement;
74
- t.dataset.colorScheme = e.colorScheme, t.dataset.accent = e.accent, t.dataset.density = e.density, t.dataset.sidebar = e.sidebar, t.dataset.tabbar = e.tabsPosition, t.dataset.zebra = e.zebra ? "on" : "off", t.dataset.ai = e.aiSurface, t.style.setProperty("--radius-md", `${e.radius}px`), t.style.setProperty("--radius-lg", `${e.radius + 3}px`);
75
- }
76
- function Ce(e) {
77
- return {
78
- colorScheme: e.color_scheme,
79
- accent: e.accent,
80
- density: e.density,
81
- sidebar: e.sidebar,
82
- tabsPosition: e.tabs_position,
83
- tabsMaxOpen: e.tabs_max_open,
84
- tabsPersist: e.tabs_persist,
85
- radius: e.radius,
86
- zebra: e.zebra_rows,
87
- aiSurface: e.ai_surface,
88
- toastPosition: e.toast_position
89
- };
90
- }
91
- Se();
92
- var D = /* @__PURE__ */ new Set(), we = { ...pe };
93
- typeof window < "u" && E(we);
94
- var O = C((e, t) => ({
95
- ...we,
96
- set: (n, r) => {
97
- let i = T({ [n]: r });
98
- i[n] !== void 0 && (E({
99
- ...t(),
100
- ...i
101
- }), D.add(n), e(i));
102
- },
103
- setMany: (n) => {
104
- let r = T(n);
105
- if (Object.keys(r).length) {
106
- E({
107
- ...t(),
108
- ...r
109
- });
110
- for (let e of Object.keys(r)) D.add(e);
111
- e(r);
112
- }
113
- },
114
- hydrateFromBranding: (t) => {
115
- if (!t) return;
116
- let n = Ce(t), r = {};
117
- for (let [e, t] of Object.entries(n)) D.has(e) || t !== void 0 && (r[e] = t);
118
- let i = T(r);
119
- Object.keys(i).length && (E({
120
- ...O.getState(),
121
- ...i
122
- }), e(i));
123
- },
124
- resetToDefaults: (t) => {
125
- D.clear(), Se();
126
- let n = t ? T(Ce(t)) : {}, r = {
127
- ...pe,
128
- ...n
129
- };
130
- E(r), e(r);
131
- }
132
- })), Te = ["/login", "/signup"];
133
- function Ee(e) {
134
- return Te.includes(e);
135
- }
136
- function k(e) {
137
- return typeof e == "string" && e.startsWith("/") && !e.startsWith("//");
138
- }
139
- var De = 4096;
140
- function A(e) {
141
- return typeof e == "string" && e.length <= De;
142
- }
143
- function Oe(e) {
144
- if (e === null) return null;
145
- if (e === void 0 || typeof e != "object" || Array.isArray(e)) return;
146
- let t = e;
147
- if (!k(t.pathname) || t.pathname.length > De || t.pathname.includes("?") || t.pathname.includes("#")) return;
148
- let n = { pathname: t.pathname };
149
- if (t.search !== void 0) {
150
- if (!A(t.search) || t.search.startsWith("?")) return;
151
- t.search && (n.search = t.search);
152
- }
153
- if (t.hash !== void 0) {
154
- if (!A(t.hash) || t.hash && !t.hash.startsWith("#")) return;
155
- t.hash && (n.hash = t.hash);
156
- }
157
- for (let e of [
158
- "tabId",
159
- "title",
160
- "icon",
161
- "screen"
162
- ]) if (t[e] !== void 0) {
163
- if (!A(t[e])) return;
164
- t[e] && (n[e] = t[e]);
165
- }
166
- return n;
167
- }
168
- function j(e) {
169
- return e.closable !== !1;
170
- }
171
- function ke(e, t, n, r) {
172
- if (n === "all") return e.filter(j).map((e) => e.id);
173
- let i = r ?? t;
174
- if (!i) return [];
175
- let a = e.findIndex((e) => e.id === i);
176
- return a === -1 ? [] : n === "current" ? j(e[a]) ? [e[a].id] : [] : n === "others" ? e.filter((e, t) => t !== a && j(e)).map((e) => e.id) : e.slice(a + 1).filter(j).map((e) => e.id);
177
- }
178
- var Ae = null, je = null;
179
- function Me(e, t) {
180
- return `declarion::${e}::${t}::tabs`;
181
- }
182
- function Ne() {
183
- return !Ae || !je ? null : Me(Ae, je);
184
- }
185
- function Pe(e) {
186
- let t;
187
- try {
188
- t = JSON.parse(e);
189
- } catch {
190
- return null;
191
- }
192
- if (typeof t != "object" || !t) return null;
193
- let n = t;
194
- return Array.isArray(n.tabs) ? {
195
- tabs: n.tabs.filter((e) => typeof e == "object" && !!e && typeof e.id == "string" && typeof e.pathname == "string").map((e) => {
196
- let t = Oe(e.returnTo);
197
- if (t === void 0) {
198
- let { returnTo: t, ...n } = e;
199
- return n;
200
- }
201
- return {
202
- ...e,
203
- returnTo: t
204
- };
205
- }),
206
- activeTabId: typeof n.activeTabId == "string" ? n.activeTabId : null
207
- } : null;
208
- }
209
- function Fe(e, t) {
210
- if (typeof window > "u") return null;
211
- let n = localStorage.getItem(Me(e, t));
212
- if (!n) return null;
213
- let r = Pe(n);
214
- if (!r) return null;
215
- let i = r.tabs.find((e) => e.id === r.activeTabId), a = i?.pathname;
216
- if (k(a)) {
217
- let e = typeof i?.search == "string" ? i.search : "", t = e.startsWith("?") ? e.slice(1) : e;
218
- return t ? `${a}?${t}` : a;
219
- }
220
- return null;
221
- }
222
- function M(e, t) {
223
- if (typeof window > "u") return;
224
- let n = O.getState().tabsPersist, r = Ne();
225
- if (r) {
226
- if (!n) {
227
- try {
228
- localStorage.removeItem(r);
229
- } catch {}
230
- return;
231
- }
232
- try {
233
- localStorage.setItem(r, JSON.stringify({
234
- tabs: e,
235
- activeTabId: t
236
- }));
237
- } catch {}
238
- }
239
- }
240
- function Ie() {
241
- if (typeof window > "u" || !O.getState().tabsPersist) return null;
242
- let e = Ne();
243
- if (!e) return null;
244
- let t = localStorage.getItem(e);
245
- return t ? Pe(t) : null;
246
- }
247
- var N = C((e, t) => ({
248
- tabs: [],
249
- activeTabId: null,
250
- openTab: (n) => {
251
- if (Ee(n.pathname)) return "";
252
- let r = t(), i = r.tabs.find((e) => e.pathname === n.pathname);
253
- if (i) return e({ activeTabId: i.id }), M(r.tabs, i.id), i.id;
254
- let a = crypto.randomUUID(), o = {
255
- ...n,
256
- id: a
257
- }, s = [...r.tabs, o], c = O.getState().tabsMaxOpen;
258
- if (c > 0 && s.length > c) {
259
- let e = s.findIndex((e) => e.id !== a && e.closable !== !1 && !e.dirty);
260
- e !== -1 && (s = s.filter((t, n) => n !== e));
261
- }
262
- return e({
263
- tabs: s,
264
- activeTabId: a
265
- }), M(s, a), a;
266
- },
267
- closeTab: (e) => {
268
- let n = t(), r = n.tabs.findIndex((t) => t.id === e);
269
- r !== -1 && n.tabs[r].closable && n.tabs.length !== 1 && t().closeTabs([e]);
270
- },
271
- closeTabs: (n) => {
272
- let r = t(), i = new Set(n);
273
- if (i.size === 0) return r.tabs.find((e) => e.id === r.activeTabId) ?? null;
274
- let a = r.tabs.findIndex((e) => e.id === r.activeTabId), o = r.tabs.filter((e) => !(i.has(e.id) && j(e))), s = r.activeTabId;
275
- return s && !o.some((e) => e.id === s) ? s = o.length === 0 ? null : o[Math.min(Math.max(a, 0), o.length - 1)].id : o.length === 0 && (s = null), e({
276
- tabs: o,
277
- activeTabId: s
278
- }), M(o, s), o.find((e) => e.id === s) ?? null;
279
- },
280
- switchTab: (n) => {
281
- e({ activeTabId: n }), M(t().tabs, n);
282
- },
283
- reorderTabs: (t, n) => {
284
- e((e) => {
285
- let r = e.tabs.findIndex((e) => e.id === t), i = e.tabs.findIndex((e) => e.id === n);
286
- if (r === -1 || i === -1 || r === i) return e;
287
- let a = [...e.tabs], [o] = a.splice(r, 1);
288
- return a.splice(i, 0, o), { tabs: a };
289
- });
290
- },
291
- findTabByPathname: (e) => t().tabs.find((t) => t.pathname === e),
292
- updateTabTitle: (t, n, r = !1) => {
293
- e((e) => ({ tabs: e.tabs.map((e) => e.id === t ? {
294
- ...e,
295
- title: n,
296
- derivedTitle: r
297
- } : e) }));
298
- },
299
- updateTabSearch: (t, n) => {
300
- e((e) => ({ tabs: e.tabs.map((e) => e.id === t ? {
301
- ...e,
302
- search: n
303
- } : e) }));
304
- },
305
- setReturnTarget: (n, r) => {
306
- e((e) => ({ tabs: e.tabs.map((e) => e.id === n ? {
307
- ...e,
308
- returnTo: r
309
- } : e) })), M(t().tabs, t().activeTabId);
310
- },
311
- commitTabNavigation: (n, r) => {
312
- let i = "returnTo" in r;
313
- e((e) => ({
314
- tabs: e.tabs.map((e) => e.id === n ? {
315
- ...e,
316
- search: r.search,
317
- ...i ? { returnTo: r.returnTo } : {}
318
- } : e),
319
- activeTabId: n
320
- })), M(t().tabs, t().activeTabId);
321
- },
322
- setDirty: (n, r) => {
323
- e((e) => ({ tabs: e.tabs.map((e) => e.id === n ? {
324
- ...e,
325
- dirty: r
326
- } : e) })), M(t().tabs, t().activeTabId);
327
- },
328
- setMode: (n, r) => {
329
- e((e) => ({ tabs: e.tabs.map((e) => e.id === n ? {
330
- ...e,
331
- mode: r
332
- } : e) })), M(t().tabs, t().activeTabId);
333
- },
334
- updateTab: (n, r) => {
335
- e((e) => ({ tabs: e.tabs.map((e) => e.id === n ? {
336
- ...e,
337
- ...r
338
- } : e) })), M(t().tabs, t().activeTabId);
339
- },
340
- setScope: (e, t) => {
341
- Ae = e, je = t;
342
- },
343
- hydrate: () => {
344
- let t = Ie();
345
- t && e({
346
- tabs: t.tabs,
347
- activeTabId: t.activeTabId
348
- });
349
- }
350
- })), P = C((e) => ({
351
- depth: 0,
352
- nextIsRoot: !1,
353
- applyNavigation: (t) => e((e) => e.nextIsRoot ? {
354
- depth: 0,
355
- nextIsRoot: !1
356
- } : t === "PUSH" ? { depth: e.depth + 1 } : t === "POP" ? { depth: Math.max(0, e.depth - 1) } : e),
357
- markRoot: () => e({ nextIsRoot: !0 }),
358
- reset: () => e({
359
- depth: 0,
360
- nextIsRoot: !1
361
- })
362
- }));
363
- //#endregion
364
- //#region src/lib/screen-back.ts
365
- function Le(e) {
366
- return e ? e.startsWith("?") ? e.slice(1) : e : "";
367
- }
368
- function Re(e) {
369
- if (e) return e.startsWith("?") ? e : `?${e}`;
370
- }
371
- function ze(e, t, n) {
372
- if (!k(e.pathname) || Ee(e.pathname) || e.pathname === t) return;
373
- let r = Le(e.search), i = { pathname: e.pathname };
374
- return r && (i.search = r), e.hash && (i.hash = e.hash), n?.id && (i.tabId = n.id), n?.title && (i.title = n.title), n?.icon && (i.icon = n.icon), n?.screen && (i.screen = n.screen), i;
375
- }
376
- function Be(e, t) {
377
- return t ? {
378
- hasOriginBack: !1,
379
- allowFallbackBack: !0
380
- } : e === null ? {
381
- hasOriginBack: !1,
382
- allowFallbackBack: !1
383
- } : e && k(e.pathname) ? {
384
- hasOriginBack: !0,
385
- allowFallbackBack: !0
386
- } : {
387
- hasOriginBack: !1,
388
- allowFallbackBack: !0
389
- };
390
- }
391
- function Ve(e, t, n) {
392
- if (n || !e || !k(e.pathname)) return null;
393
- let r = (e.tabId ? t.find((t) => t.id === e.tabId) : void 0) ?? t.find((t) => t.pathname === e.pathname);
394
- return {
395
- kind: r ? "live" : "reopen",
396
- tabId: r?.id,
397
- pathname: e.pathname,
398
- search: e.search,
399
- hash: e.hash,
400
- title: e.title,
401
- icon: e.icon,
402
- screen: e.screen
403
- };
404
- }
405
- //#endregion
406
- //#region src/hooks/useTabNavigate.ts
407
- function He(e, t) {
408
- let n = le(e);
409
- return {
410
- pathname: n.pathname ?? e,
411
- search: Ue(n.search) ?? Ue(t),
412
- hash: n.hash
413
- };
414
- }
415
- function Ue(e) {
416
- if (e && e !== "?") return e.startsWith("?") ? e : `?${e}`;
417
- }
418
- function We() {
419
- let e = m(), t = de(), { data: r } = f(), a = u(), o = i();
420
- return _((i, s) => {
421
- let { pathname: c, search: l, hash: u } = He(i, s?.search);
422
- if (a.enabled) {
423
- o(`${c}${l ?? ""}${u ?? ""}`, { replace: s?.replace });
424
- return;
425
- }
426
- let d = N.getState(), f = s?.topLevel ?? !1, p = Le(l), m = f || typeof window > "u" ? void 0 : ze({
427
- pathname: window.location.pathname,
428
- search: window.location.search,
429
- hash: window.location.hash
430
- }, c, d.findTabByPathname(window.location.pathname)), h = d.findTabByPathname(c);
431
- if (h) {
432
- if (f) {
433
- let e = p || h.search;
434
- d.commitTabNavigation(h.id, {
435
- search: e,
436
- returnTo: null
437
- }), t({
438
- pathname: c,
439
- search: e ? `?${e}` : "",
440
- hash: u
441
- }, { replace: s?.replace });
442
- return;
443
- }
444
- m ? d.commitTabNavigation(h.id, {
445
- search: p,
446
- returnTo: m
447
- }) : d.commitTabNavigation(h.id, { search: p }), t({
448
- pathname: c,
449
- search: l,
450
- hash: u
451
- }, { replace: s?.replace });
452
- return;
453
- }
454
- let g = s?.title ? void 0 : n(e, c, r?.screens, r?.entities), ee = s?.title ?? g?.title ?? c, te = s?.icon ?? g?.icon;
455
- d.openTab({
456
- pathname: c,
457
- search: p,
458
- title: ee,
459
- derivedTitle: !s?.title,
460
- icon: te,
461
- closable: !0,
462
- returnTo: f ? null : m
463
- }), t({
464
- pathname: c,
465
- search: l,
466
- hash: u
467
- }, { replace: s?.replace });
468
- }, [
469
- e,
470
- t,
471
- r?.screens,
472
- r?.entities,
473
- a.enabled,
474
- o
475
- ]);
476
- }
477
- //#endregion
478
- //#region src/stores/page-state.ts
479
- var F = 18e5, I = null;
480
- function Ge(e) {
481
- I = e;
482
- }
483
- function L(e) {
484
- if (e && I) for (let t of e.queryKeys) I.removeQueries({
485
- queryKey: t,
486
- exact: !0
487
- });
488
- }
489
- function R(e, t) {
490
- let n = e[t];
491
- if (!n) return e;
492
- L(n);
493
- let r = { ...e };
494
- return delete r[t], r;
495
- }
496
- function Ke(e, t) {
497
- let n = e;
498
- for (; Object.keys(n).length > 64;) {
499
- let e = null, r = Infinity;
500
- for (let [i, a] of Object.entries(n)) i !== t && a.lastActiveAt < r && (r = a.lastActiveAt, e = i);
501
- if (e === null) break;
502
- n = R(n, e);
503
- }
504
- return n;
505
- }
506
- var z = C((e, t) => ({
507
- entries: {},
508
- ttlMs: F,
509
- setTtl: (n) => {
510
- if (n <= 0) {
511
- let { entries: r } = t();
512
- for (let e of Object.keys(r)) L(r[e]);
513
- e({
514
- ttlMs: n,
515
- entries: {}
516
- });
517
- return;
518
- }
519
- e({ ttlMs: n });
520
- },
521
- set: (n, r, i) => {
522
- let a = t();
523
- if (a.ttlMs <= 0) return;
524
- let o = Date.now(), s = a.entries[n], c = s ? {
525
- ...s,
526
- bag: {
527
- ...s.bag,
528
- [r]: i
529
- },
530
- lastActiveAt: o
531
- } : {
532
- bag: { [r]: i },
533
- lastActiveAt: o,
534
- queryKeys: []
535
- };
536
- e({ entries: Ke({
537
- ...a.entries,
538
- [n]: c
539
- }, n) });
540
- },
541
- read: (e, n) => {
542
- let r = t();
543
- if (!(r.ttlMs <= 0)) return r.entries[e]?.bag[n];
544
- },
545
- touch: (n) => {
546
- let r = t();
547
- if (r.ttlMs <= 0) return;
548
- let i = r.entries[n];
549
- i && e({ entries: {
550
- ...r.entries,
551
- [n]: {
552
- ...i,
553
- lastActiveAt: Date.now()
554
- }
555
- } });
556
- },
557
- registerQueryKey: (n, r) => {
558
- let i = t();
559
- if (i.ttlMs <= 0) return;
560
- let a = Date.now(), o = i.entries[n], s = o?.queryKeys.some((e) => qe(e, r));
561
- if (o && s) return;
562
- let c = o ? {
563
- ...o,
564
- queryKeys: [...o.queryKeys, r],
565
- lastActiveAt: a
566
- } : {
567
- bag: {},
568
- lastActiveAt: a,
569
- queryKeys: [r]
570
- };
571
- e({ entries: Ke({
572
- ...i.entries,
573
- [n]: c
574
- }, n) });
575
- },
576
- kill: (n) => {
577
- let r = t(), i = R(r.entries, n);
578
- i !== r.entries && e({ entries: i });
579
- },
580
- sweep: (n) => {
581
- let { ttlMs: r, entries: i } = t(), a = i;
582
- for (let [e, t] of Object.entries(i)) (r <= 0 || n - t.lastActiveAt > r) && (a = R(a, e));
583
- a !== i && e({ entries: a });
584
- },
585
- clear: () => {
586
- let { entries: n } = t();
587
- if (Object.keys(n).length !== 0) {
588
- for (let e of Object.keys(n)) L(n[e]);
589
- e({ entries: {} });
590
- }
591
- }
592
- }));
593
- function qe(e, t) {
594
- if (e === t) return !0;
595
- try {
596
- return JSON.stringify(e) === JSON.stringify(t);
597
- } catch {
598
- return !1;
599
- }
600
- }
601
- //#endregion
602
- //#region src/lib/page-inset.ts
603
- function Je(e) {
604
- return {
605
- paddingLeft: `calc(${e}px + var(--safe-area-left))`,
606
- paddingRight: `calc(${e}px + var(--safe-area-right))`
607
- };
608
- }
609
- //#endregion
610
- //#region src/components/file-widgets/payload.ts
611
- function B(e) {
612
- return !e || Array.isArray(e) ? null : e;
613
- }
614
- function V(e) {
615
- return Array.isArray(e) ? e : [];
616
- }
617
- function H(e) {
618
- return !e || Array.isArray(e) || typeof e != "object" ? {} : e;
619
- }
620
- function Ye(e, t) {
621
- return e.mode === "array" ? V(t) : e.mode === "named_map" ? H(t) : B(t);
622
- }
623
- function U(e, t, n, r) {
624
- let i = {
625
- file_id: e.id,
626
- filename: e.filename
627
- };
628
- return r && (i.slot = r), n && (i.position = t), e.metadata !== void 0 && (i.metadata = e.metadata), i;
629
- }
630
- function W(e, t) {
631
- if (e.mode === "array") {
632
- let e = V(t);
633
- return e.length === 0 ? { clear: !0 } : { set: e.map((e, t) => U(e, t, !0)) };
634
- }
635
- if (e.mode === "named_map") {
636
- let e = H(t), n = Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => U(t, 0, !1, e));
637
- return n.length === 0 ? { clear: !0 } : { set: n };
638
- }
639
- let n = B(t);
640
- return n ? { set: [U(n, 0, !0)] } : { clear: !0 };
641
- }
642
- function G(e) {
643
- return JSON.stringify(e);
644
- }
645
- function Xe(e) {
646
- let { entity: t, formData: n, record: r, isNew: i } = e, a = {};
647
- for (let e of t.files?.names() ?? []) {
648
- if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
649
- let o = ae(t, e);
650
- if (!o) continue;
651
- let s = Ye(o, n[e]);
652
- if (i) {
653
- if (o.mode === "array" ? V(s).length === 0 : o.mode === "named_map" ? Object.values(H(s)).every((e) => e == null) : B(s) == null) continue;
654
- a[e] = W(o, s);
655
- continue;
656
- }
657
- let c = Ye(o, r ? re(r, e) : null), l = W(o, s), u = W(o, c);
658
- G(l) !== G(u) && (a[e] = l);
659
- }
660
- let o = t.fields;
661
- if (!o) return a;
662
- for (let e of o.names()) {
663
- let s = o.get(e)?.files;
664
- if (!s || s.mode !== "rich_text_inline" || !Object.prototype.hasOwnProperty.call(n, e)) continue;
665
- let c = Qe(s, n[e]);
666
- if (i) {
667
- if (c.clear) continue;
668
- a[e] = c;
669
- continue;
670
- }
671
- let l = Qe(s, r ? ie({
672
- ...t,
673
- fields: o
674
- }, r, e) : null);
675
- G(c) !== G(l) && (a[e] = c);
676
- }
677
- return a;
678
- }
679
- function Ze(e) {
680
- let t = [];
681
- for (let n of Object.values(e)) for (let e of n.set ?? []) t.push(e.file_id);
682
- return t;
683
- }
684
- function Qe(e, t) {
685
- if (e.mode !== "rich_text_inline") return { clear: !0 };
686
- let n = s(c(t));
687
- return n.length === 0 ? { clear: !0 } : { set: n.map((e, t) => ({
688
- file_id: e,
689
- position: t
690
- })) };
691
- }
692
- var $e = 1200, K = null, et = null;
693
- function q() {
694
- return !K || !et ? null : `declarion::${K}::${et}::listlayout`;
695
- }
696
- function tt() {
697
- return {
698
- v: 2,
699
- widths: {},
700
- resizeEduShown: !1
701
- };
702
- }
703
- function nt(e) {
704
- if (typeof e != "object" || !e) return {};
705
- let t = {};
706
- for (let [n, r] of Object.entries(e)) typeof r == "number" && Number.isFinite(r) && r >= 60 && (t[n] = r);
707
- return t;
708
- }
709
- function rt(e) {
710
- let t;
711
- try {
712
- t = JSON.parse(e);
713
- } catch {
714
- return null;
715
- }
716
- if (typeof t != "object" || !t) return null;
717
- let n = t;
718
- if (n.v !== 2) return null;
719
- let r = {};
720
- if (n.widths && typeof n.widths == "object") for (let [e, t] of Object.entries(n.widths)) r[e] = nt(t);
721
- return {
722
- v: 2,
723
- widths: r,
724
- resizeEduShown: n.resizeEduShown === !0
725
- };
726
- }
727
- function J(e) {
728
- if (typeof window > "u") return;
729
- let t = q();
730
- if (t) try {
731
- localStorage.setItem(t, JSON.stringify(e));
732
- } catch {}
733
- }
734
- function it(e, t) {
735
- return {
736
- v: 2,
737
- widths: {
738
- ...e.widths,
739
- ...t.widths
740
- },
741
- resizeEduShown: e.resizeEduShown || t.resizeEduShown
742
- };
743
- }
744
- function at(e) {
745
- return Math.min($e, Math.max(60, Math.round(e)));
746
- }
747
- var Y = C((e) => ({
748
- ...tt(),
749
- setScope: (e, t) => {
750
- K = e, et = t;
751
- },
752
- hydrate: () => {
753
- if (typeof window > "u") return;
754
- let t = q();
755
- if (!t) {
756
- e(tt());
757
- return;
758
- }
759
- let n = localStorage.getItem(t);
760
- e((n ? rt(n) : null) ?? tt());
761
- },
762
- setWidth: (t, n, r) => {
763
- e((e) => {
764
- let i = {
765
- ...e.widths[t] ?? {},
766
- [n]: at(r)
767
- }, a = {
768
- ...e,
769
- widths: {
770
- ...e.widths,
771
- [t]: i
772
- }
773
- };
774
- return J(a), a;
775
- });
776
- },
777
- setWidths: (t, n) => {
778
- e((e) => {
779
- let r = {};
780
- for (let [e, t] of Object.entries(n)) r[e] = at(t);
781
- let i = {
782
- ...e.widths[t] ?? {},
783
- ...r
784
- }, a = {
785
- ...e,
786
- widths: {
787
- ...e.widths,
788
- [t]: i
789
- }
790
- };
791
- return J(a), a;
792
- });
793
- },
794
- resetWidths: (t) => {
795
- e((e) => {
796
- let n = {
797
- ...e,
798
- widths: {
799
- ...e.widths,
800
- [t]: {}
801
- }
802
- };
803
- return J(n), n;
804
- });
805
- },
806
- prune: (t, n) => {
807
- let r = new Set(n);
808
- e((e) => {
809
- let n = e.widths[t];
810
- if (!n) return e;
811
- let i = {}, a = !1;
812
- for (let [e, t] of Object.entries(n)) r.has(e) ? i[e] = t : a = !0;
813
- if (!a) return e;
814
- let o = {
815
- ...e,
816
- widths: {
817
- ...e.widths,
818
- [t]: i
819
- }
820
- };
821
- return J(o), o;
822
- });
823
- },
824
- markResizeEduShown: () => {
825
- e((e) => {
826
- if (e.resizeEduShown) return e;
827
- let t = {
828
- ...e,
829
- resizeEduShown: !0
830
- };
831
- return J(t), t;
832
- });
833
- }
834
- })), ot = !1;
835
- function st() {
836
- typeof window > "u" || ot || (ot = !0, window.addEventListener("storage", (e) => {
837
- let t = q();
838
- if (!t || e.key !== t || e.newValue == null) return;
839
- let n = rt(e.newValue);
840
- n && Y.setState((e) => it(e, n));
841
- }));
842
- }
843
- var ct = {}, X = () => {};
844
- function lt(e) {
845
- let t = !!e && q() !== null, n = Y((t) => e ? t.widths[e] : void 0), r = Y((e) => e.resizeEduShown === !0), i = _((n, r) => {
846
- t && e && Y.getState().setWidth(e, n, r);
847
- }, [t, e]), a = _((n) => {
848
- t && e && Y.getState().setWidths(e, n);
849
- }, [t, e]), o = _(() => {
850
- t && e && Y.getState().resetWidths(e);
851
- }, [t, e]), s = _((n) => {
852
- t && e && Y.getState().prune(e, n);
853
- }, [t, e]), c = _(() => {
854
- t && Y.getState().markResizeEduShown();
855
- }, [t]);
856
- return {
857
- widths: t ? n ?? ct : ct,
858
- resizeEduShown: r,
859
- setWidth: t ? i : X,
860
- setWidths: t ? a : X,
861
- resetWidths: t ? o : X,
862
- prune: t ? s : X,
863
- markResizeEduShown: t ? c : X
864
- };
865
- }
866
- //#endregion
867
- //#region src/lib/canonical-url.ts
868
- function ut(e) {
869
- return e.length > 1 && e.endsWith("/") ? e.replace(/\/+$/, "") || "/" : e;
870
- }
871
- function dt(e) {
872
- let t = ut(e.pathname), n = e.search ?? "", r = n.startsWith("?") ? n.slice(1) : n, i = new URLSearchParams(r);
873
- for (let e of d) i.delete(e);
874
- i.sort();
875
- let a = i.toString();
876
- return a ? `${t}?${a}` : t;
877
- }
878
- function ft(e) {
879
- return ut(e.pathname);
880
- }
881
- //#endregion
882
- //#region src/hooks/usePageStateTtl.ts
883
- var pt = "ui_page_state_ttl_ms";
884
- function mt() {
885
- let { value: e } = a(pt, F);
886
- return typeof e != "number" || !Number.isFinite(e) || e < 0 ? F : e;
887
- }
888
- //#endregion
889
- //#region src/hooks/usePageStateRuntime.ts
890
- var ht = [
891
- ["entity-data"],
892
- ["entity-count"],
893
- ["entity-item"],
894
- ["entity-data-cursor"],
895
- ["entity-data-all"],
896
- ["action-data"],
897
- ["action-data-cursor"]
898
- ], gt = 6e4;
899
- function _t(e, t) {
900
- for (let n of ht) e.setQueryDefaults(n, { gcTime: t });
901
- }
902
- function vt() {
903
- let e = b(), t = mt(), n = ue(), r = se(n);
904
- r.current = n, v(() => (Ge(e), () => Ge(null)), [e]), v(() => {
905
- if (z.getState().setTtl(t), _t(e, t), t <= 0) for (let t of ht) e.removeQueries({ queryKey: t });
906
- }, [e, t]), v(() => {
907
- if (t <= 0) return;
908
- let e = setInterval(() => {
909
- let e = z.getState(), t = r.current;
910
- e.touch(dt(t)), e.touch(ft(t)), e.sweep(Date.now());
911
- }, gt);
912
- return () => clearInterval(e);
913
- }, [t]);
914
- }
915
- function yt(e, t = !0) {
916
- let n = dt(ue()), r = e ? JSON.stringify(e) : "";
917
- v(() => {
918
- t && e && z.getState().registerQueryKey(n, e);
919
- }, [
920
- n,
921
- r,
922
- t
923
- ]);
924
- }
925
- //#endregion
926
- //#region src/hooks/useScreenBack.ts
927
- function bt(e) {
928
- let r = m(), i = de(), a = u(), o = t(), s = P((e) => e.depth), { data: c } = f(), l = e?.fallback, d = N((e) => {
929
- let t = e.tabs.find((t) => t.id === e.activeTabId);
930
- return t ? t.returnTo : void 0;
931
- }), { hasOriginBack: p, allowFallbackBack: h } = oe(() => Be(d, a.enabled), [d, a.enabled]), g = _(() => {
932
- if (a.enabled) {
933
- P.getState().depth > 0 ? o() : l?.();
934
- return;
935
- }
936
- let e = N.getState(), t = Ve(e.tabs.find((t) => t.id === e.activeTabId)?.returnTo, e.tabs, !1);
937
- if (!t) {
938
- l?.();
939
- return;
940
- }
941
- if (t.kind === "live" && t.tabId) e.commitTabNavigation(t.tabId, { search: t.search ?? "" });
942
- else if (t.kind === "reopen") {
943
- let i = t.title ? void 0 : n(r, t.pathname, c?.screens, c?.entities);
944
- e.openTab({
945
- pathname: t.pathname,
946
- search: t.search ?? "",
947
- title: t.title ?? i?.title ?? t.pathname,
948
- derivedTitle: !t.title,
949
- icon: t.icon ?? i?.icon,
950
- screen: t.screen,
951
- closable: !0
952
- });
953
- }
954
- i({
955
- pathname: t.pathname,
956
- search: Re(t.search),
957
- hash: t.hash || void 0
958
- });
959
- }, [
960
- r,
961
- a.enabled,
962
- o,
963
- l,
964
- i,
965
- c?.screens,
966
- c?.entities
967
- ]);
968
- return {
969
- canGoBack: a.enabled ? s > 0 || !!l : p || !!l,
970
- hasOriginBack: p,
971
- allowFallbackBack: h,
972
- goBack: g
973
- };
974
- }
975
- //#endregion
976
- //#region src/hooks/useMutations.ts
977
- function Z(e) {
978
- return (t) => l.error(te(e, t));
979
- }
980
- function Q(t, n, r = {}) {
981
- t.invalidateQueries({ queryKey: ["entity-data", n] }), t.invalidateQueries({ queryKey: ["entity-count", n] }), r.item && t.invalidateQueries({ queryKey: ["entity-item", n] }), r.children && t.invalidateQueries({ queryKey: [e, n] }), r.objectMeta && (t.invalidateQueries({ queryKey: ["object-status", n] }), t.invalidateQueries({ queryKey: ["object-properties", n] }));
982
- }
983
- function xt(e) {
984
- let t = b(), n = m(), r = m("errors");
985
- return y({
986
- mutationFn: (t) => g(e, t),
987
- onSuccess: () => {
988
- Q(t, e), l.success(n("toast.record.created", "Record created"));
989
- },
990
- onError: Z(r)
991
- });
992
- }
993
- function St(e) {
994
- let t = b(), n = m(), i = m("errors"), a = p((e) => e.isAuthenticated), { data: s } = f();
995
- return y({
996
- mutationFn: ({ pkValues: t, data: n }) => ne(e, t, n),
997
- onSuccess: (i, { pkValues: c }) => {
998
- let u = s?.entities?.[e], d = typeof c == "string" ? u ? r(u, c) : void 0 : c, f = () => Q(t, e, {
999
- item: !0,
1000
- children: !0,
1001
- objectMeta: !0
1002
- });
1003
- d ? (o(t, a, e, [d], f), Ct(t, e)) : f(), l.success(n("toast.record.updated", "Record updated"));
1004
- },
1005
- onError: Z(i)
1006
- });
1007
- }
1008
- function Ct(t, n) {
1009
- t.invalidateQueries({ queryKey: ["entity-item", n] }), t.invalidateQueries({ queryKey: [e, n] }), t.invalidateQueries({ queryKey: ["object-status", n] }), t.invalidateQueries({ queryKey: ["object-properties", n] });
1010
- }
1011
- function wt(e) {
1012
- let t = b(), n = m(), r = m("errors");
1013
- return y({
1014
- mutationFn: (t) => ee(e, t),
1015
- onSuccess: () => {
1016
- Q(t, e, { item: !0 }), l.success(n("toast.record.deleted", "Record deleted"));
1017
- },
1018
- onError: Z(r)
1019
- });
1020
- }
1021
- function Tt(e) {
1022
- let t = b(), n = m(), r = m("errors");
1023
- return y({
1024
- mutationFn: (t) => h(e, t),
1025
- onSuccess: () => {
1026
- Q(t, e, {
1027
- item: !0,
1028
- objectMeta: !0
1029
- }), l.success(n("toast.record.restored", "Record restored"));
1030
- },
1031
- onError: Z(r)
1032
- });
1033
- }
1034
- //#endregion
1035
- //#region src/components/shared/LoadingSkeleton.tsx
1036
- var Et = "@keyframes declarion-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}", Dt = {
1037
- display: "block",
1038
- background: "linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 40%, var(--surface-3) 80%)",
1039
- backgroundSize: "200% 100%",
1040
- borderRadius: 6,
1041
- animation: "declarion-shimmer 1.2s ease-in-out infinite"
1042
- };
1043
- function $({ height: e, width: t }) {
1044
- return /* @__PURE__ */ S(fe, { children: [/* @__PURE__ */ x("style", { children: Et }), /* @__PURE__ */ x("span", { style: {
1045
- ...Dt,
1046
- height: e,
1047
- width: t ?? "100%"
1048
- } })] });
1049
- }
1050
- function Ot({ rows: e = 8, cols: t = 4 }) {
1051
- return /* @__PURE__ */ S("div", {
1052
- style: {
1053
- padding: 16,
1054
- display: "flex",
1055
- flexDirection: "column",
1056
- gap: 10
1057
- },
1058
- children: [/* @__PURE__ */ x("div", {
1059
- style: {
1060
- display: "flex",
1061
- gap: 16
1062
- },
1063
- children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ x("div", {
1064
- style: { flex: 1 },
1065
- children: /* @__PURE__ */ x($, { height: 14 })
1066
- }, t))
1067
- }), Array.from({ length: e }).map((e, n) => /* @__PURE__ */ x("div", {
1068
- style: {
1069
- display: "flex",
1070
- gap: 16
1071
- },
1072
- children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ x("div", {
1073
- style: { flex: 1 },
1074
- children: /* @__PURE__ */ x($, { height: 28 })
1075
- }, t))
1076
- }, n))]
1077
- });
1078
- }
1079
- function kt() {
1080
- return /* @__PURE__ */ S("div", {
1081
- style: {
1082
- padding: 20,
1083
- display: "flex",
1084
- flexDirection: "column",
1085
- gap: 16
1086
- },
1087
- children: [
1088
- /* @__PURE__ */ x($, {
1089
- height: 12,
1090
- width: 160
1091
- }),
1092
- /* @__PURE__ */ S("div", {
1093
- style: {
1094
- display: "flex",
1095
- alignItems: "center",
1096
- gap: 12
1097
- },
1098
- children: [/* @__PURE__ */ x("span", { style: {
1099
- ...Dt,
1100
- width: 32,
1101
- height: 32,
1102
- borderRadius: 8
1103
- } }), /* @__PURE__ */ x($, {
1104
- height: 22,
1105
- width: 240
1106
- })]
1107
- }),
1108
- Array.from({ length: 2 }).map((e, t) => /* @__PURE__ */ S("div", {
1109
- style: {
1110
- border: "1px solid var(--border)",
1111
- borderRadius: 10,
1112
- background: "var(--surface)",
1113
- overflow: "hidden"
1114
- },
1115
- children: [/* @__PURE__ */ x("div", {
1116
- style: {
1117
- padding: "11px 14px",
1118
- borderBottom: "1px solid var(--divider)"
1119
- },
1120
- children: /* @__PURE__ */ x($, {
1121
- height: 13,
1122
- width: 150
1123
- })
1124
- }), /* @__PURE__ */ x("div", {
1125
- style: {
1126
- padding: 16,
1127
- display: "grid",
1128
- gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
1129
- gap: "12px 24px"
1130
- },
1131
- children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */ S("div", {
1132
- style: {
1133
- display: "flex",
1134
- gap: 16
1135
- },
1136
- children: [/* @__PURE__ */ x($, {
1137
- height: 13,
1138
- width: 110
1139
- }), /* @__PURE__ */ x("div", {
1140
- style: { flex: 1 },
1141
- children: /* @__PURE__ */ x($, { height: 13 })
1142
- })]
1143
- }, t))
1144
- })]
1145
- }, t))
1146
- ]
1147
- });
1148
- }
1149
- //#endregion
1150
- //#region src/components/shared/useOwnRefresh.ts
1151
- function At(e) {
1152
- let [t, n] = ce(!1), r = se(!0);
1153
- return v(() => (r.current = !0, () => {
1154
- r.current = !1;
1155
- }), []), {
1156
- refreshing: t,
1157
- refresh: _(() => {
1158
- n(!0);
1159
- let t = () => {
1160
- r.current && n(!1);
1161
- };
1162
- Promise.resolve(e()).then(t, t);
1163
- }, [e])
1164
- };
1165
- }
1166
- //#endregion
1167
- export { N as A, Je as C, P as D, We as E, O as M, Fe as O, Ze as S, z as T, $e as _, xt as a, Y as b, St as c, vt as d, yt as f, dt as g, ft as h, Ot as i, E as j, ke as k, bt as l, mt as m, kt as n, wt as o, pt as p, Et as r, Tt as s, At as t, _t as u, st as v, F as w, Xe as x, lt as y };