@mistriwork/mistri 1.0.0-rc.28 → 1.0.0-rc.30

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 (1138) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/dist/client/assets/AccountAdministration-hkgTK-QK.js +2 -0
  4. package/dist/client/assets/AccountAdministration-hkgTK-QK.js.br +0 -0
  5. package/dist/client/assets/AccountAdministration-hkgTK-QK.js.gz +0 -0
  6. package/dist/client/assets/AccountAdministration-hkgTK-QK.js.map +1 -0
  7. package/dist/client/assets/AccountControl-DhZFcK5o.js +3 -0
  8. package/dist/client/assets/AccountControl-DhZFcK5o.js.br +0 -0
  9. package/dist/client/assets/AccountControl-DhZFcK5o.js.gz +0 -0
  10. package/dist/client/assets/AccountControl-DhZFcK5o.js.map +1 -0
  11. package/dist/client/assets/AccountProfile-BOn4BMTt.js +2 -0
  12. package/dist/client/assets/AccountProfile-BOn4BMTt.js.br +0 -0
  13. package/dist/client/assets/AccountProfile-BOn4BMTt.js.gz +0 -0
  14. package/dist/client/assets/AccountProfile-BOn4BMTt.js.map +1 -0
  15. package/dist/client/assets/ApiOperations-C2KEit6s.js +2 -0
  16. package/dist/client/assets/ApiOperations-C2KEit6s.js.br +0 -0
  17. package/dist/client/assets/ApiOperations-C2KEit6s.js.gz +0 -0
  18. package/dist/client/assets/ApiOperations-C2KEit6s.js.map +1 -0
  19. package/dist/client/assets/AppColumnMenuPopups-BjgFMB6v.js +2 -0
  20. package/dist/client/assets/AppColumnMenuPopups-BjgFMB6v.js.br +0 -0
  21. package/dist/client/assets/AppColumnMenuPopups-BjgFMB6v.js.gz +0 -0
  22. package/dist/client/assets/AppColumnMenuPopups-BjgFMB6v.js.map +1 -0
  23. package/dist/client/assets/AssistantPanel-FOCAvXW3.js +3 -0
  24. package/dist/client/assets/AssistantPanel-FOCAvXW3.js.br +0 -0
  25. package/dist/client/assets/AssistantPanel-FOCAvXW3.js.gz +0 -0
  26. package/dist/client/assets/AssistantPanel-FOCAvXW3.js.map +1 -0
  27. package/dist/client/assets/AttachmentList-BAXFlvXE.js +3 -0
  28. package/dist/client/assets/AttachmentList-BAXFlvXE.js.br +0 -0
  29. package/dist/client/assets/AttachmentList-BAXFlvXE.js.gz +0 -0
  30. package/dist/client/assets/AttachmentList-BAXFlvXE.js.map +1 -0
  31. package/dist/client/assets/BoardCardEditor-CVIiequs.js +2 -0
  32. package/dist/client/assets/BoardCardEditor-CVIiequs.js.br +0 -0
  33. package/dist/client/assets/BoardCardEditor-CVIiequs.js.gz +0 -0
  34. package/dist/client/assets/BoardCardEditor-CVIiequs.js.map +1 -0
  35. package/dist/client/assets/BoardList-DbD7GY5S.js +5 -0
  36. package/dist/client/assets/BoardList-DbD7GY5S.js.br +0 -0
  37. package/dist/client/assets/BoardList-DbD7GY5S.js.gz +0 -0
  38. package/dist/client/assets/BoardList-DbD7GY5S.js.map +1 -0
  39. package/dist/client/assets/BrandingForm-Cu1Ww9GB.js +2 -0
  40. package/dist/client/assets/BrandingForm-Cu1Ww9GB.js.br +0 -0
  41. package/dist/client/assets/BrandingForm-Cu1Ww9GB.js.gz +0 -0
  42. package/dist/client/assets/BrandingForm-Cu1Ww9GB.js.map +1 -0
  43. package/dist/client/assets/BreakdownRoom-D8Wq-VXX.js +2 -0
  44. package/dist/client/assets/BreakdownRoom-D8Wq-VXX.js.br +0 -0
  45. package/dist/client/assets/BreakdownRoom-D8Wq-VXX.js.gz +0 -0
  46. package/dist/client/assets/BreakdownRoom-D8Wq-VXX.js.map +1 -0
  47. package/dist/client/assets/CalendarList-CCZNH8SK.js +2 -0
  48. package/dist/client/assets/CalendarList-CCZNH8SK.js.br +0 -0
  49. package/dist/client/assets/CalendarList-CCZNH8SK.js.gz +0 -0
  50. package/dist/client/assets/CalendarList-CCZNH8SK.js.map +1 -0
  51. package/dist/client/assets/CardsList-Dt4GG9BD.js +2 -0
  52. package/dist/client/assets/CardsList-Dt4GG9BD.js.br +0 -0
  53. package/dist/client/assets/CardsList-Dt4GG9BD.js.gz +0 -0
  54. package/dist/client/assets/CardsList-Dt4GG9BD.js.map +1 -0
  55. package/dist/client/assets/Chart-BvEPiLFD.js +2 -0
  56. package/dist/client/assets/Chart-BvEPiLFD.js.br +0 -0
  57. package/dist/client/assets/Chart-BvEPiLFD.js.gz +0 -0
  58. package/dist/client/assets/Chart-BvEPiLFD.js.map +1 -0
  59. package/dist/client/assets/ChartFigure-D5aaaHUd.js +3 -0
  60. package/dist/client/assets/ChartFigure-D5aaaHUd.js.br +0 -0
  61. package/dist/client/assets/ChartFigure-D5aaaHUd.js.gz +0 -0
  62. package/dist/client/assets/ChartFigure-D5aaaHUd.js.map +1 -0
  63. package/dist/client/assets/ChartShapes-B1RrO1pX.js +2 -0
  64. package/dist/client/assets/ChartShapes-B1RrO1pX.js.br +0 -0
  65. package/dist/client/assets/ChartShapes-B1RrO1pX.js.gz +0 -0
  66. package/dist/client/assets/ChartShapes-B1RrO1pX.js.map +1 -0
  67. package/dist/client/assets/CheckedAppTargetAction-BqkEAr7C.js +2 -0
  68. package/dist/client/assets/CheckedAppTargetAction-BqkEAr7C.js.br +0 -0
  69. package/dist/client/assets/CheckedAppTargetAction-BqkEAr7C.js.gz +0 -0
  70. package/dist/client/assets/CheckedAppTargetAction-BqkEAr7C.js.map +1 -0
  71. package/dist/client/assets/Choices-4lr-oGCU.js +2 -0
  72. package/dist/client/assets/Choices-4lr-oGCU.js.br +0 -0
  73. package/dist/client/assets/Choices-4lr-oGCU.js.gz +0 -0
  74. package/dist/client/assets/Choices-4lr-oGCU.js.map +1 -0
  75. package/dist/client/assets/ClaimInvitation-Bv_NlwSn.js +2 -0
  76. package/dist/client/assets/ClaimInvitation-Bv_NlwSn.js.br +0 -0
  77. package/dist/client/assets/ClaimInvitation-Bv_NlwSn.js.gz +0 -0
  78. package/dist/client/assets/ClaimInvitation-Bv_NlwSn.js.map +1 -0
  79. package/dist/client/assets/CommandAnswers-Bb8pG8tf.js +2 -0
  80. package/dist/client/assets/CommandAnswers-Bb8pG8tf.js.br +0 -0
  81. package/dist/client/assets/CommandAnswers-Bb8pG8tf.js.gz +0 -0
  82. package/dist/client/assets/CommandAnswers-Bb8pG8tf.js.map +1 -0
  83. package/dist/client/assets/CommandForm-Dfmc0xrJ.js +3 -0
  84. package/dist/client/assets/CommandForm-Dfmc0xrJ.js.br +0 -0
  85. package/dist/client/assets/CommandForm-Dfmc0xrJ.js.gz +0 -0
  86. package/dist/client/assets/CommandForm-Dfmc0xrJ.js.map +1 -0
  87. package/dist/client/assets/CommandLines-CtY7Xjvj.js +2 -0
  88. package/dist/client/assets/CommandLines-CtY7Xjvj.js.br +0 -0
  89. package/dist/client/assets/CommandLines-CtY7Xjvj.js.gz +0 -0
  90. package/dist/client/assets/CommandLines-CtY7Xjvj.js.map +1 -0
  91. package/dist/client/assets/CommandLive-qnMSOeBr.js +2 -0
  92. package/dist/client/assets/CommandLive-qnMSOeBr.js.br +0 -0
  93. package/dist/client/assets/CommandLive-qnMSOeBr.js.gz +0 -0
  94. package/dist/client/assets/CommandLive-qnMSOeBr.js.map +1 -0
  95. package/dist/client/assets/CommandReference-Bni8Mbe2.js +3 -0
  96. package/dist/client/assets/CommandReference-Bni8Mbe2.js.br +0 -0
  97. package/dist/client/assets/CommandReference-Bni8Mbe2.js.gz +0 -0
  98. package/dist/client/assets/CommandReference-Bni8Mbe2.js.map +1 -0
  99. package/dist/client/assets/Composer-dtGDyzlF.js +5 -0
  100. package/dist/client/assets/Composer-dtGDyzlF.js.br +0 -0
  101. package/dist/client/assets/Composer-dtGDyzlF.js.gz +0 -0
  102. package/dist/client/assets/Composer-dtGDyzlF.js.map +1 -0
  103. package/dist/client/assets/CountedLabel-M9fmAOUA.js +2 -0
  104. package/dist/client/assets/CountedLabel-M9fmAOUA.js.br +0 -0
  105. package/dist/client/assets/CountedLabel-M9fmAOUA.js.gz +0 -0
  106. package/dist/client/assets/CountedLabel-M9fmAOUA.js.map +1 -0
  107. package/dist/client/assets/CustomList-B1I51I4X.js +2 -0
  108. package/dist/client/assets/CustomList-B1I51I4X.js.br +0 -0
  109. package/dist/client/assets/CustomList-B1I51I4X.js.gz +0 -0
  110. package/dist/client/assets/CustomList-B1I51I4X.js.map +1 -0
  111. package/dist/client/assets/CustomPage-C9wDKoMO.js +3 -0
  112. package/dist/client/assets/CustomPage-C9wDKoMO.js.br +0 -0
  113. package/dist/client/assets/CustomPage-C9wDKoMO.js.gz +0 -0
  114. package/dist/client/assets/CustomPage-C9wDKoMO.js.map +1 -0
  115. package/dist/client/assets/CustomSection-BhHOOpHp.js +2 -0
  116. package/dist/client/assets/CustomSection-BhHOOpHp.js.br +0 -0
  117. package/dist/client/assets/CustomSection-BhHOOpHp.js.gz +0 -0
  118. package/dist/client/assets/CustomSection-BhHOOpHp.js.map +1 -0
  119. package/dist/client/assets/Dashboard-CMPWR-gY.js +3 -0
  120. package/dist/client/assets/Dashboard-CMPWR-gY.js.br +0 -0
  121. package/dist/client/assets/Dashboard-CMPWR-gY.js.gz +0 -0
  122. package/dist/client/assets/Dashboard-CMPWR-gY.js.map +1 -0
  123. package/dist/client/assets/DashboardActivity-DDsVrb97.js +2 -0
  124. package/dist/client/assets/DashboardActivity-DDsVrb97.js.br +0 -0
  125. package/dist/client/assets/DashboardActivity-DDsVrb97.js.gz +0 -0
  126. package/dist/client/assets/DashboardActivity-DDsVrb97.js.map +1 -0
  127. package/dist/client/assets/DashboardFind-BbyJ7jl-.js +2 -0
  128. package/dist/client/assets/DashboardFind-BbyJ7jl-.js.br +0 -0
  129. package/dist/client/assets/DashboardFind-BbyJ7jl-.js.gz +0 -0
  130. package/dist/client/assets/DashboardFind-BbyJ7jl-.js.map +1 -0
  131. package/dist/client/assets/DashboardList-CeyW84BJ.js +2 -0
  132. package/dist/client/assets/DashboardList-CeyW84BJ.js.br +0 -0
  133. package/dist/client/assets/DashboardList-CeyW84BJ.js.gz +0 -0
  134. package/dist/client/assets/DashboardList-CeyW84BJ.js.map +1 -0
  135. package/dist/client/assets/DateTimeInput-C5x1DWph.js +2 -0
  136. package/dist/client/assets/DateTimeInput-C5x1DWph.js.br +0 -0
  137. package/dist/client/assets/DateTimeInput-C5x1DWph.js.gz +0 -0
  138. package/dist/client/assets/DateTimeInput-C5x1DWph.js.map +1 -0
  139. package/dist/client/assets/DecisionChip-CA9I9DRy.js +2 -0
  140. package/dist/client/assets/DecisionChip-CA9I9DRy.js.br +0 -0
  141. package/dist/client/assets/DecisionChip-CA9I9DRy.js.gz +0 -0
  142. package/dist/client/assets/DecisionChip-CA9I9DRy.js.map +1 -0
  143. package/dist/client/assets/DefinedFields-DG87NJX3.js +2 -0
  144. package/dist/client/assets/DefinedFields-DG87NJX3.js.br +0 -0
  145. package/dist/client/assets/DefinedFields-DG87NJX3.js.gz +0 -0
  146. package/dist/client/assets/DefinedFields-DG87NJX3.js.map +1 -0
  147. package/dist/client/assets/Diagram-CSDT9Fgr.js +6 -0
  148. package/dist/client/assets/Diagram-CSDT9Fgr.js.br +0 -0
  149. package/dist/client/assets/Diagram-CSDT9Fgr.js.gz +0 -0
  150. package/dist/client/assets/Diagram-CSDT9Fgr.js.map +1 -0
  151. package/dist/client/assets/Directory-CQuzriuE.js +2 -0
  152. package/dist/client/assets/Directory-CQuzriuE.js.br +0 -0
  153. package/dist/client/assets/Directory-CQuzriuE.js.gz +0 -0
  154. package/dist/client/assets/Directory-CQuzriuE.js.map +1 -0
  155. package/dist/client/assets/Document-BMXBWJ22.js +2 -0
  156. package/dist/client/assets/Document-BMXBWJ22.js.br +0 -0
  157. package/dist/client/assets/Document-BMXBWJ22.js.gz +0 -0
  158. package/dist/client/assets/Document-BMXBWJ22.js.map +1 -0
  159. package/dist/client/assets/Export-CHvdHsKj.js +2 -0
  160. package/dist/client/assets/Export-CHvdHsKj.js.br +0 -0
  161. package/dist/client/assets/Export-CHvdHsKj.js.gz +0 -0
  162. package/dist/client/assets/Export-CHvdHsKj.js.map +1 -0
  163. package/dist/client/assets/FilePreview-CFrnVTsF.js +2 -0
  164. package/dist/client/assets/FilePreview-CFrnVTsF.js.br +0 -0
  165. package/dist/client/assets/FilePreview-CFrnVTsF.js.gz +0 -0
  166. package/dist/client/assets/FilePreview-CFrnVTsF.js.map +1 -0
  167. package/dist/client/assets/FormClaimSurface-CnPZ_7aE.js +2 -0
  168. package/dist/client/assets/FormClaimSurface-CnPZ_7aE.js.br +0 -0
  169. package/dist/client/assets/FormClaimSurface-CnPZ_7aE.js.gz +0 -0
  170. package/dist/client/assets/FormClaimSurface-CnPZ_7aE.js.map +1 -0
  171. package/dist/client/assets/FormDialog-DIvEEe4n.js +3 -0
  172. package/dist/client/assets/FormDialog-DIvEEe4n.js.br +0 -0
  173. package/dist/client/assets/FormDialog-DIvEEe4n.js.gz +0 -0
  174. package/dist/client/assets/FormDialog-DIvEEe4n.js.map +1 -0
  175. package/dist/client/assets/FormLines-D70ptTVG.js +2 -0
  176. package/dist/client/assets/FormLines-D70ptTVG.js.br +0 -0
  177. package/dist/client/assets/FormLines-D70ptTVG.js.gz +0 -0
  178. package/dist/client/assets/FormLines-D70ptTVG.js.map +1 -0
  179. package/dist/client/assets/FormParts-B9YUCkD-.js +2 -0
  180. package/dist/client/assets/FormParts-B9YUCkD-.js.br +0 -0
  181. package/dist/client/assets/FormParts-B9YUCkD-.js.gz +0 -0
  182. package/dist/client/assets/FormParts-B9YUCkD-.js.map +1 -0
  183. package/dist/client/assets/FormStatusSurface-BwkUZxBZ.js +2 -0
  184. package/dist/client/assets/FormStatusSurface-BwkUZxBZ.js.br +0 -0
  185. package/dist/client/assets/FormStatusSurface-BwkUZxBZ.js.gz +0 -0
  186. package/dist/client/assets/FormStatusSurface-BwkUZxBZ.js.map +1 -0
  187. package/dist/client/assets/Gallery-CZnSREfb.js +3 -0
  188. package/dist/client/assets/Gallery-CZnSREfb.js.br +0 -0
  189. package/dist/client/assets/Gallery-CZnSREfb.js.gz +0 -0
  190. package/dist/client/assets/Gallery-CZnSREfb.js.map +1 -0
  191. package/dist/client/assets/GanttList-e3ScTf5z.js +2 -0
  192. package/dist/client/assets/GanttList-e3ScTf5z.js.br +0 -0
  193. package/dist/client/assets/GanttList-e3ScTf5z.js.gz +0 -0
  194. package/dist/client/assets/GanttList-e3ScTf5z.js.map +1 -0
  195. package/dist/client/assets/GridCellEditor-DL0fzjd1.js +2 -0
  196. package/dist/client/assets/GridCellEditor-DL0fzjd1.js.br +0 -0
  197. package/dist/client/assets/GridCellEditor-DL0fzjd1.js.gz +0 -0
  198. package/dist/client/assets/GridCellEditor-DL0fzjd1.js.map +1 -0
  199. package/dist/client/assets/HeldFiles-Cur9QzR6.js +3 -0
  200. package/dist/client/assets/HeldFiles-Cur9QzR6.js.br +0 -0
  201. package/dist/client/assets/HeldFiles-Cur9QzR6.js.gz +0 -0
  202. package/dist/client/assets/HeldFiles-Cur9QzR6.js.map +1 -0
  203. package/dist/client/assets/HelpPanel-DBTRccCl.js +2 -0
  204. package/dist/client/assets/HelpPanel-DBTRccCl.js.br +0 -0
  205. package/dist/client/assets/HelpPanel-DBTRccCl.js.gz +0 -0
  206. package/dist/client/assets/HelpPanel-DBTRccCl.js.map +1 -0
  207. package/dist/client/assets/ImportDialog-CcoJWhEo.js +9 -0
  208. package/dist/client/assets/ImportDialog-CcoJWhEo.js.br +0 -0
  209. package/dist/client/assets/ImportDialog-CcoJWhEo.js.gz +0 -0
  210. package/dist/client/assets/ImportDialog-CcoJWhEo.js.map +1 -0
  211. package/dist/client/assets/InboxList-D1TzYmMv.js +2 -0
  212. package/dist/client/assets/InboxList-D1TzYmMv.js.br +0 -0
  213. package/dist/client/assets/InboxList-D1TzYmMv.js.gz +0 -0
  214. package/dist/client/assets/InboxList-D1TzYmMv.js.map +1 -0
  215. package/dist/client/assets/IntakeControls-DRijIgUn.js +2 -0
  216. package/dist/client/assets/IntakeControls-DRijIgUn.js.br +0 -0
  217. package/dist/client/assets/IntakeControls-DRijIgUn.js.gz +0 -0
  218. package/dist/client/assets/IntakeControls-DRijIgUn.js.map +1 -0
  219. package/dist/client/assets/IntegrationsForm-8m2z3RSd.js +2 -0
  220. package/dist/client/assets/IntegrationsForm-8m2z3RSd.js.br +0 -0
  221. package/dist/client/assets/IntegrationsForm-8m2z3RSd.js.gz +0 -0
  222. package/dist/client/assets/IntegrationsForm-8m2z3RSd.js.map +1 -0
  223. package/dist/client/assets/JsonView-Df1ku8x6.js +4 -0
  224. package/dist/client/assets/JsonView-Df1ku8x6.js.br +0 -0
  225. package/dist/client/assets/JsonView-Df1ku8x6.js.gz +0 -0
  226. package/dist/client/assets/JsonView-Df1ku8x6.js.map +1 -0
  227. package/dist/client/assets/LayoutBuilder-B4zWKh6F.js +2 -0
  228. package/dist/client/assets/LayoutBuilder-B4zWKh6F.js.br +0 -0
  229. package/dist/client/assets/LayoutBuilder-B4zWKh6F.js.gz +0 -0
  230. package/dist/client/assets/LayoutBuilder-B4zWKh6F.js.map +1 -0
  231. package/dist/client/assets/Lightbox-UsrYxU6f.js +2 -0
  232. package/dist/client/assets/Lightbox-UsrYxU6f.js.br +0 -0
  233. package/dist/client/assets/Lightbox-UsrYxU6f.js.gz +0 -0
  234. package/dist/client/assets/Lightbox-UsrYxU6f.js.map +1 -0
  235. package/dist/client/assets/LiveNotices-DeJ3VVZd.js +2 -0
  236. package/dist/client/assets/LiveNotices-DeJ3VVZd.js.br +0 -0
  237. package/dist/client/assets/LiveNotices-DeJ3VVZd.js.gz +0 -0
  238. package/dist/client/assets/LiveNotices-DeJ3VVZd.js.map +1 -0
  239. package/dist/client/assets/MinorMoneyInput-BXTxMhP_.js +2 -0
  240. package/dist/client/assets/MinorMoneyInput-BXTxMhP_.js.br +0 -0
  241. package/dist/client/assets/MinorMoneyInput-BXTxMhP_.js.gz +0 -0
  242. package/dist/client/assets/MinorMoneyInput-BXTxMhP_.js.map +1 -0
  243. package/dist/client/assets/MultiStepForm-CtlwHY7z.js +3 -0
  244. package/dist/client/assets/MultiStepForm-CtlwHY7z.js.br +0 -0
  245. package/dist/client/assets/MultiStepForm-CtlwHY7z.js.gz +0 -0
  246. package/dist/client/assets/MultiStepForm-CtlwHY7z.js.map +1 -0
  247. package/dist/client/assets/NewMenu-JhRJdmcu.js +2 -0
  248. package/dist/client/assets/NewMenu-JhRJdmcu.js.br +0 -0
  249. package/dist/client/assets/NewMenu-JhRJdmcu.js.gz +0 -0
  250. package/dist/client/assets/NewMenu-JhRJdmcu.js.map +1 -0
  251. package/dist/client/assets/NewRecord-CnYmW0av.js +3 -0
  252. package/dist/client/assets/NewRecord-CnYmW0av.js.br +0 -0
  253. package/dist/client/assets/NewRecord-CnYmW0av.js.gz +0 -0
  254. package/dist/client/assets/NewRecord-CnYmW0av.js.map +1 -0
  255. package/dist/client/assets/PageFlowDiagram-DcDdZy5n.js +3 -0
  256. package/dist/client/assets/PageFlowDiagram-DcDdZy5n.js.br +0 -0
  257. package/dist/client/assets/PageFlowDiagram-DcDdZy5n.js.gz +0 -0
  258. package/dist/client/assets/PageFlowDiagram-DcDdZy5n.js.map +1 -0
  259. package/dist/client/assets/PageFlows-DRJF7CMJ.js +2 -0
  260. package/dist/client/assets/PageFlows-DRJF7CMJ.js.br +0 -0
  261. package/dist/client/assets/PageFlows-DRJF7CMJ.js.gz +0 -0
  262. package/dist/client/assets/PageFlows-DRJF7CMJ.js.map +1 -0
  263. package/dist/client/assets/PageGroups-CkjepPJG.js +2 -0
  264. package/dist/client/assets/PageGroups-CkjepPJG.js.br +0 -0
  265. package/dist/client/assets/PageGroups-CkjepPJG.js.gz +0 -0
  266. package/dist/client/assets/PageGroups-CkjepPJG.js.map +1 -0
  267. package/dist/client/assets/PageHistory-LcTqr09C.js +2 -0
  268. package/dist/client/assets/PageHistory-LcTqr09C.js.br +0 -0
  269. package/dist/client/assets/PageHistory-LcTqr09C.js.gz +0 -0
  270. package/dist/client/assets/PageHistory-LcTqr09C.js.map +1 -0
  271. package/dist/client/assets/PageSkeleton-eTy_Kn5l.js +2 -0
  272. package/dist/client/assets/PageSkeleton-eTy_Kn5l.js.br +0 -0
  273. package/dist/client/assets/PageSkeleton-eTy_Kn5l.js.gz +0 -0
  274. package/dist/client/assets/PageSkeleton-eTy_Kn5l.js.map +1 -0
  275. package/dist/client/assets/Palette-y7ExNsO6.js +3 -0
  276. package/dist/client/assets/Palette-y7ExNsO6.js.br +0 -0
  277. package/dist/client/assets/Palette-y7ExNsO6.js.gz +0 -0
  278. package/dist/client/assets/Palette-y7ExNsO6.js.map +1 -0
  279. package/dist/client/assets/PeekPanel-DOXNy0WD.js +2 -0
  280. package/dist/client/assets/PeekPanel-DOXNy0WD.js.br +0 -0
  281. package/dist/client/assets/PeekPanel-DOXNy0WD.js.gz +0 -0
  282. package/dist/client/assets/PeekPanel-DOXNy0WD.js.map +1 -0
  283. package/dist/client/assets/PlacedFormSurface-mV9fJHhn.js +2 -0
  284. package/dist/client/assets/PlacedFormSurface-mV9fJHhn.js.br +0 -0
  285. package/dist/client/assets/PlacedFormSurface-mV9fJHhn.js.gz +0 -0
  286. package/dist/client/assets/PlacedFormSurface-mV9fJHhn.js.map +1 -0
  287. package/dist/client/assets/Prefs-CiobyzRc.js +2 -0
  288. package/dist/client/assets/Prefs-CiobyzRc.js.br +0 -0
  289. package/dist/client/assets/Prefs-CiobyzRc.js.gz +0 -0
  290. package/dist/client/assets/Prefs-CiobyzRc.js.map +1 -0
  291. package/dist/client/assets/PresentedList-Jfl-w5-o.js +2 -0
  292. package/dist/client/assets/PresentedList-Jfl-w5-o.js.br +0 -0
  293. package/dist/client/assets/PresentedList-Jfl-w5-o.js.gz +0 -0
  294. package/dist/client/assets/PresentedList-Jfl-w5-o.js.map +1 -0
  295. package/dist/client/assets/PublicGuard-DBJdxtKg.js +2 -0
  296. package/dist/client/assets/PublicGuard-DBJdxtKg.js.br +0 -0
  297. package/dist/client/assets/PublicGuard-DBJdxtKg.js.gz +0 -0
  298. package/dist/client/assets/PublicGuard-DBJdxtKg.js.map +1 -0
  299. package/dist/client/assets/QrCode-GI7lKIzA.js +4 -0
  300. package/dist/client/assets/QrCode-GI7lKIzA.js.br +0 -0
  301. package/dist/client/assets/QrCode-GI7lKIzA.js.gz +0 -0
  302. package/dist/client/assets/QrCode-GI7lKIzA.js.map +1 -0
  303. package/dist/client/assets/QuickAdd-B_7QgRB7.js +2 -0
  304. package/dist/client/assets/QuickAdd-B_7QgRB7.js.br +0 -0
  305. package/dist/client/assets/QuickAdd-B_7QgRB7.js.gz +0 -0
  306. package/dist/client/assets/QuickAdd-B_7QgRB7.js.map +1 -0
  307. package/dist/client/assets/Record-CwwEwZmM.js +2 -0
  308. package/dist/client/assets/Record-CwwEwZmM.js.br +0 -0
  309. package/dist/client/assets/Record-CwwEwZmM.js.gz +0 -0
  310. package/dist/client/assets/Record-CwwEwZmM.js.map +1 -0
  311. package/dist/client/assets/RecordModal-Cz-9Bn1V.js +2 -0
  312. package/dist/client/assets/RecordModal-Cz-9Bn1V.js.br +0 -0
  313. package/dist/client/assets/RecordModal-Cz-9Bn1V.js.gz +0 -0
  314. package/dist/client/assets/RecordModal-Cz-9Bn1V.js.map +1 -0
  315. package/dist/client/assets/RichTextEditor-BSeQQcGT.js +144 -0
  316. package/dist/client/assets/RichTextEditor-BSeQQcGT.js.br +0 -0
  317. package/dist/client/assets/RichTextEditor-BSeQQcGT.js.gz +0 -0
  318. package/dist/client/assets/RichTextEditor-BSeQQcGT.js.map +1 -0
  319. package/dist/client/assets/SavedFormSurface-C6vfkoMy.js +2 -0
  320. package/dist/client/assets/SavedFormSurface-C6vfkoMy.js.br +0 -0
  321. package/dist/client/assets/SavedFormSurface-C6vfkoMy.js.gz +0 -0
  322. package/dist/client/assets/SavedFormSurface-C6vfkoMy.js.map +1 -0
  323. package/dist/client/assets/SectionPeriod-CToheQ4k.js +2 -0
  324. package/dist/client/assets/SectionPeriod-CToheQ4k.js.br +3 -0
  325. package/dist/client/assets/SectionPeriod-CToheQ4k.js.gz +0 -0
  326. package/dist/client/assets/SectionPeriod-CToheQ4k.js.map +1 -0
  327. package/dist/client/assets/SetFieldDialog-BK0rRtjl.js +2 -0
  328. package/dist/client/assets/SetFieldDialog-BK0rRtjl.js.br +0 -0
  329. package/dist/client/assets/SetFieldDialog-BK0rRtjl.js.gz +0 -0
  330. package/dist/client/assets/SetFieldDialog-BK0rRtjl.js.map +1 -0
  331. package/dist/client/assets/SignedInFormDialog-COkytX_u.js +2 -0
  332. package/dist/client/assets/SignedInFormDialog-COkytX_u.js.br +0 -0
  333. package/dist/client/assets/SignedInFormDialog-COkytX_u.js.gz +0 -0
  334. package/dist/client/assets/SignedInFormDialog-COkytX_u.js.map +1 -0
  335. package/dist/client/assets/SuggestBox-_IP_OWSP.js +2 -0
  336. package/dist/client/assets/SuggestBox-_IP_OWSP.js.br +0 -0
  337. package/dist/client/assets/SuggestBox-_IP_OWSP.js.gz +0 -0
  338. package/dist/client/assets/SuggestBox-_IP_OWSP.js.map +1 -0
  339. package/dist/client/assets/SuiteAppPreference-Czfv_Cta.js +2 -0
  340. package/dist/client/assets/SuiteAppPreference-Czfv_Cta.js.br +0 -0
  341. package/dist/client/assets/SuiteAppPreference-Czfv_Cta.js.gz +0 -0
  342. package/dist/client/assets/SuiteAppPreference-Czfv_Cta.js.map +1 -0
  343. package/dist/client/assets/SuiteAppSwitcher-BKVdntAr.js +2 -0
  344. package/dist/client/assets/SuiteAppSwitcher-BKVdntAr.js.br +0 -0
  345. package/dist/client/assets/SuiteAppSwitcher-BKVdntAr.js.gz +0 -0
  346. package/dist/client/assets/SuiteAppSwitcher-BKVdntAr.js.map +1 -0
  347. package/dist/client/assets/SupportLog-Ccb0QBeR.js +2 -0
  348. package/dist/client/assets/SupportLog-Ccb0QBeR.js.br +0 -0
  349. package/dist/client/assets/SupportLog-Ccb0QBeR.js.gz +0 -0
  350. package/dist/client/assets/SupportLog-Ccb0QBeR.js.map +1 -0
  351. package/dist/client/assets/SupportSessions-Co-hXPcE.js +2 -0
  352. package/dist/client/assets/SupportSessions-Co-hXPcE.js.br +0 -0
  353. package/dist/client/assets/SupportSessions-Co-hXPcE.js.gz +0 -0
  354. package/dist/client/assets/SupportSessions-Co-hXPcE.js.map +1 -0
  355. package/dist/client/assets/TenantAdministration-W3xm4ACh.js +4 -0
  356. package/dist/client/assets/TenantAdministration-W3xm4ACh.js.br +0 -0
  357. package/dist/client/assets/TenantAdministration-W3xm4ACh.js.gz +0 -0
  358. package/dist/client/assets/TenantAdministration-W3xm4ACh.js.map +1 -0
  359. package/dist/client/assets/TenantApiTokens-BmwHTmgl.js +2 -0
  360. package/dist/client/assets/TenantApiTokens-BmwHTmgl.js.br +0 -0
  361. package/dist/client/assets/TenantApiTokens-BmwHTmgl.js.gz +0 -0
  362. package/dist/client/assets/TenantApiTokens-BmwHTmgl.js.map +1 -0
  363. package/dist/client/assets/TenantInvitations-CAZeij_y.js +2 -0
  364. package/dist/client/assets/TenantInvitations-CAZeij_y.js.br +0 -0
  365. package/dist/client/assets/TenantInvitations-CAZeij_y.js.gz +0 -0
  366. package/dist/client/assets/TenantInvitations-CAZeij_y.js.map +1 -0
  367. package/dist/client/assets/ThemeLab-Div0-njD.js +4 -0
  368. package/dist/client/assets/ThemeLab-Div0-njD.js.br +0 -0
  369. package/dist/client/assets/ThemeLab-Div0-njD.js.gz +0 -0
  370. package/dist/client/assets/ThemeLab-Div0-njD.js.map +1 -0
  371. package/dist/client/assets/TimelineComposer-Cv5yrsHu.js +2 -0
  372. package/dist/client/assets/TimelineComposer-Cv5yrsHu.js.br +0 -0
  373. package/dist/client/assets/TimelineComposer-Cv5yrsHu.js.gz +0 -0
  374. package/dist/client/assets/TimelineComposer-Cv5yrsHu.js.map +1 -0
  375. package/dist/client/assets/TimelineReactions-DuQ-mYnv.js +2 -0
  376. package/dist/client/assets/TimelineReactions-DuQ-mYnv.js.br +0 -0
  377. package/dist/client/assets/TimelineReactions-DuQ-mYnv.js.gz +0 -0
  378. package/dist/client/assets/TimelineReactions-DuQ-mYnv.js.map +1 -0
  379. package/dist/client/assets/TopNav-5j-o-gPf.js +3 -0
  380. package/dist/client/assets/TopNav-5j-o-gPf.js.br +0 -0
  381. package/dist/client/assets/TopNav-5j-o-gPf.js.gz +0 -0
  382. package/dist/client/assets/TopNav-5j-o-gPf.js.map +1 -0
  383. package/dist/client/assets/Tour-DNZqzOE6.js +2 -0
  384. package/dist/client/assets/Tour-DNZqzOE6.js.br +0 -0
  385. package/dist/client/assets/Tour-DNZqzOE6.js.gz +0 -0
  386. package/dist/client/assets/Tour-DNZqzOE6.js.map +1 -0
  387. package/dist/client/assets/TreeList-CYLRgU7l.js +2 -0
  388. package/dist/client/assets/TreeList-CYLRgU7l.js.br +0 -0
  389. package/dist/client/assets/TreeList-CYLRgU7l.js.gz +0 -0
  390. package/dist/client/assets/TreeList-CYLRgU7l.js.map +1 -0
  391. package/dist/client/assets/TreePicker-B7RCdKu_.js +2 -0
  392. package/dist/client/assets/TreePicker-B7RCdKu_.js.br +0 -0
  393. package/dist/client/assets/TreePicker-B7RCdKu_.js.gz +0 -0
  394. package/dist/client/assets/TreePicker-B7RCdKu_.js.map +1 -0
  395. package/dist/client/assets/ViewFormDialog-Su6ZVJuR.js +3 -0
  396. package/dist/client/assets/ViewFormDialog-Su6ZVJuR.js.br +0 -0
  397. package/dist/client/assets/ViewFormDialog-Su6ZVJuR.js.gz +0 -0
  398. package/dist/client/assets/ViewFormDialog-Su6ZVJuR.js.map +1 -0
  399. package/dist/client/assets/appImport-CM3huHUt.js +4 -0
  400. package/dist/client/assets/appImport-CM3huHUt.js.br +0 -0
  401. package/dist/client/assets/appImport-CM3huHUt.js.gz +0 -0
  402. package/dist/client/assets/appImport-CM3huHUt.js.map +1 -0
  403. package/dist/client/assets/appLive-niQ62V0J.js +3 -0
  404. package/dist/client/assets/appLive-niQ62V0J.js.br +0 -0
  405. package/dist/client/assets/appLive-niQ62V0J.js.gz +0 -0
  406. package/dist/client/assets/appLive-niQ62V0J.js.map +1 -0
  407. package/dist/client/assets/assistantStream-C7935LCb.js +7 -0
  408. package/dist/client/assets/assistantStream-C7935LCb.js.br +0 -0
  409. package/dist/client/assets/assistantStream-C7935LCb.js.gz +0 -0
  410. package/dist/client/assets/assistantStream-C7935LCb.js.map +1 -0
  411. package/dist/client/assets/beacon-CZIXR2S7.js +2 -0
  412. package/dist/client/assets/beacon-CZIXR2S7.js.br +0 -0
  413. package/dist/client/assets/beacon-CZIXR2S7.js.gz +0 -0
  414. package/dist/client/assets/beacon-CZIXR2S7.js.map +1 -0
  415. package/dist/client/assets/blocks-MGAzyVC2.js +3 -0
  416. package/dist/client/assets/blocks-MGAzyVC2.js.br +0 -0
  417. package/dist/client/assets/blocks-MGAzyVC2.js.gz +0 -0
  418. package/dist/client/assets/blocks-MGAzyVC2.js.map +1 -0
  419. package/dist/client/assets/builtInInputs-CBenxwLD.js +3 -0
  420. package/dist/client/assets/builtInInputs-CBenxwLD.js.br +0 -0
  421. package/dist/client/assets/builtInInputs-CBenxwLD.js.gz +0 -0
  422. package/dist/client/assets/builtInInputs-CBenxwLD.js.map +1 -0
  423. package/dist/client/assets/commandDraft-eOw3G_vY.js +2 -0
  424. package/dist/client/assets/commandDraft-eOw3G_vY.js.br +0 -0
  425. package/dist/client/assets/commandDraft-eOw3G_vY.js.gz +0 -0
  426. package/dist/client/assets/commandDraft-eOw3G_vY.js.map +1 -0
  427. package/dist/client/assets/componentLoader-CuYGbi6d.js +3 -0
  428. package/dist/client/assets/componentLoader-CuYGbi6d.js.br +0 -0
  429. package/dist/client/assets/componentLoader-CuYGbi6d.js.gz +0 -0
  430. package/dist/client/assets/componentLoader-CuYGbi6d.js.map +1 -0
  431. package/dist/client/assets/composer-Cc6KL3G0.js +2 -0
  432. package/dist/client/assets/composer-Cc6KL3G0.js.br +0 -0
  433. package/dist/client/assets/composer-Cc6KL3G0.js.gz +0 -0
  434. package/dist/client/assets/composer-Cc6KL3G0.js.map +1 -0
  435. package/dist/client/assets/computedParse-B7TqjWvl.js +2 -0
  436. package/dist/client/assets/computedParse-B7TqjWvl.js.br +0 -0
  437. package/dist/client/assets/computedParse-B7TqjWvl.js.gz +0 -0
  438. package/dist/client/assets/computedParse-B7TqjWvl.js.map +1 -0
  439. package/dist/client/assets/computedValue-CYSHSym0.js +2 -0
  440. package/dist/client/assets/computedValue-CYSHSym0.js.br +0 -0
  441. package/dist/client/assets/computedValue-CYSHSym0.js.gz +0 -0
  442. package/dist/client/assets/computedValue-CYSHSym0.js.map +1 -0
  443. package/dist/client/assets/conditionWords-C6K3-XAT.js +2 -0
  444. package/dist/client/assets/conditionWords-C6K3-XAT.js.br +0 -0
  445. package/dist/client/assets/conditionWords-C6K3-XAT.js.gz +0 -0
  446. package/dist/client/assets/conditionWords-C6K3-XAT.js.map +1 -0
  447. package/dist/client/assets/definedValues-BEdbhMK8.js +2 -0
  448. package/dist/client/assets/definedValues-BEdbhMK8.js.br +0 -0
  449. package/dist/client/assets/definedValues-BEdbhMK8.js.gz +0 -0
  450. package/dist/client/assets/definedValues-BEdbhMK8.js.map +1 -0
  451. package/dist/client/assets/experimentExposure-C5HHiCHp.js +3 -0
  452. package/dist/client/assets/experimentExposure-C5HHiCHp.js.br +0 -0
  453. package/dist/client/assets/experimentExposure-C5HHiCHp.js.gz +0 -0
  454. package/dist/client/assets/experimentExposure-C5HHiCHp.js.map +1 -0
  455. package/dist/client/assets/export-Dy9ou9Ro.js +4 -0
  456. package/dist/client/assets/export-Dy9ou9Ro.js.br +0 -0
  457. package/dist/client/assets/export-Dy9ou9Ro.js.gz +0 -0
  458. package/dist/client/assets/export-Dy9ou9Ro.js.map +1 -0
  459. package/dist/client/assets/formCommandRun-IeVaIyW3.js +2 -0
  460. package/dist/client/assets/formCommandRun-IeVaIyW3.js.br +0 -0
  461. package/dist/client/assets/formCommandRun-IeVaIyW3.js.gz +0 -0
  462. package/dist/client/assets/formCommandRun-IeVaIyW3.js.map +1 -0
  463. package/dist/client/assets/formStepCheck-Kj_j6VzA.js +2 -0
  464. package/dist/client/assets/formStepCheck-Kj_j6VzA.js.br +0 -0
  465. package/dist/client/assets/formStepCheck-Kj_j6VzA.js.gz +0 -0
  466. package/dist/client/assets/formStepCheck-Kj_j6VzA.js.map +1 -0
  467. package/dist/client/assets/funnel-CNLf1lvS.js +2 -0
  468. package/dist/client/assets/funnel-CNLf1lvS.js.br +0 -0
  469. package/dist/client/assets/funnel-CNLf1lvS.js.gz +0 -0
  470. package/dist/client/assets/funnel-CNLf1lvS.js.map +1 -0
  471. package/dist/client/assets/handoff-B9gNulcj.js +3 -0
  472. package/dist/client/assets/handoff-B9gNulcj.js.br +0 -0
  473. package/dist/client/assets/handoff-B9gNulcj.js.gz +0 -0
  474. package/dist/client/assets/handoff-B9gNulcj.js.map +1 -0
  475. package/dist/client/assets/headlessLanding-Dz4_PJm2.js +2 -0
  476. package/dist/client/assets/headlessLanding-Dz4_PJm2.js.br +0 -0
  477. package/dist/client/assets/headlessLanding-Dz4_PJm2.js.gz +0 -0
  478. package/dist/client/assets/headlessLanding-Dz4_PJm2.js.map +1 -0
  479. package/dist/client/assets/index-tulz4gVC.js +16 -0
  480. package/dist/client/assets/index-tulz4gVC.js.br +0 -0
  481. package/dist/client/assets/index-tulz4gVC.js.gz +0 -0
  482. package/dist/client/assets/index-tulz4gVC.js.map +1 -0
  483. package/dist/client/assets/liveSync-CVF0_rYC.js +3 -0
  484. package/dist/client/assets/liveSync-CVF0_rYC.js.br +0 -0
  485. package/dist/client/assets/liveSync-CVF0_rYC.js.gz +0 -0
  486. package/dist/client/assets/liveSync-CVF0_rYC.js.map +1 -0
  487. package/dist/client/assets/mentionRows-DSLp0YlM.js +2 -0
  488. package/dist/client/assets/mentionRows-DSLp0YlM.js.br +0 -0
  489. package/dist/client/assets/mentionRows-DSLp0YlM.js.gz +0 -0
  490. package/dist/client/assets/mentionRows-DSLp0YlM.js.map +1 -0
  491. package/dist/client/assets/newMenuModel-DzDKGR2Z.js +2 -0
  492. package/dist/client/assets/newMenuModel-DzDKGR2Z.js.br +0 -0
  493. package/dist/client/assets/newMenuModel-DzDKGR2Z.js.gz +0 -0
  494. package/dist/client/assets/newMenuModel-DzDKGR2Z.js.map +1 -0
  495. package/dist/client/assets/newRecordModel-CebI1fPd.js +2 -0
  496. package/dist/client/assets/newRecordModel-CebI1fPd.js.br +0 -0
  497. package/dist/client/assets/newRecordModel-CebI1fPd.js.gz +0 -0
  498. package/dist/client/assets/newRecordModel-CebI1fPd.js.map +1 -0
  499. package/dist/client/assets/oauthConsent-B2U_HpfK.js +2 -0
  500. package/dist/client/assets/oauthConsent-B2U_HpfK.js.br +0 -0
  501. package/dist/client/assets/oauthConsent-B2U_HpfK.js.gz +0 -0
  502. package/dist/client/assets/oauthConsent-B2U_HpfK.js.map +1 -0
  503. package/dist/client/assets/pageControls-BL8Bg9tv.js +2 -0
  504. package/dist/client/assets/pageControls-BL8Bg9tv.js.br +0 -0
  505. package/dist/client/assets/pageControls-BL8Bg9tv.js.gz +0 -0
  506. package/dist/client/assets/pageControls-BL8Bg9tv.js.map +1 -0
  507. package/dist/client/assets/paramControls-usrt9SEr.js +2 -0
  508. package/dist/client/assets/paramControls-usrt9SEr.js.br +0 -0
  509. package/dist/client/assets/paramControls-usrt9SEr.js.gz +0 -0
  510. package/dist/client/assets/paramControls-usrt9SEr.js.map +1 -0
  511. package/dist/client/assets/public-Brk5JDe-.js +3 -0
  512. package/dist/client/assets/public-Brk5JDe-.js.br +0 -0
  513. package/dist/client/assets/public-Brk5JDe-.js.gz +0 -0
  514. package/dist/client/assets/public-Brk5JDe-.js.map +1 -0
  515. package/dist/client/assets/publicInputs-C2_LVXOd.js +3 -0
  516. package/dist/client/assets/publicInputs-C2_LVXOd.js.br +0 -0
  517. package/dist/client/assets/publicInputs-C2_LVXOd.js.gz +0 -0
  518. package/dist/client/assets/publicInputs-C2_LVXOd.js.map +1 -0
  519. package/dist/client/assets/publicPageCommand-3T0cgatN.js +2 -0
  520. package/dist/client/assets/publicPageCommand-3T0cgatN.js.br +0 -0
  521. package/dist/client/assets/publicPageCommand-3T0cgatN.js.gz +0 -0
  522. package/dist/client/assets/publicPageCommand-3T0cgatN.js.map +1 -0
  523. package/dist/client/assets/publicPlacement-Dtv6TyI6.js +2 -0
  524. package/dist/client/assets/publicPlacement-Dtv6TyI6.js.br +0 -0
  525. package/dist/client/assets/publicPlacement-Dtv6TyI6.js.gz +0 -0
  526. package/dist/client/assets/publicPlacement-Dtv6TyI6.js.map +1 -0
  527. package/dist/client/assets/recordSearch-AjDQbcZj.js +2 -0
  528. package/dist/client/assets/recordSearch-AjDQbcZj.js.br +0 -0
  529. package/dist/client/assets/recordSearch-AjDQbcZj.js.gz +0 -0
  530. package/dist/client/assets/recordSearch-AjDQbcZj.js.map +1 -0
  531. package/dist/client/assets/savedFormApi-KCyatkpb.js +2 -0
  532. package/dist/client/assets/savedFormApi-KCyatkpb.js.br +0 -0
  533. package/dist/client/assets/savedFormApi-KCyatkpb.js.gz +0 -0
  534. package/dist/client/assets/savedFormApi-KCyatkpb.js.map +1 -0
  535. package/dist/client/assets/shell-DWfGgBrZ.js +13 -0
  536. package/dist/client/assets/shell-DWfGgBrZ.js.br +0 -0
  537. package/dist/client/assets/shell-DWfGgBrZ.js.gz +0 -0
  538. package/dist/client/assets/shell-DWfGgBrZ.js.map +1 -0
  539. package/dist/client/assets/steps-BsitVaSO.js +2 -0
  540. package/dist/client/assets/steps-BsitVaSO.js.br +0 -0
  541. package/dist/client/assets/steps-BsitVaSO.js.gz +0 -0
  542. package/dist/client/assets/steps-BsitVaSO.js.map +1 -0
  543. package/dist/client/assets/tenant-rPhuYslM.js +3 -0
  544. package/dist/client/assets/tenant-rPhuYslM.js.br +0 -0
  545. package/dist/client/assets/tenant-rPhuYslM.js.gz +0 -0
  546. package/dist/client/assets/tenant-rPhuYslM.js.map +1 -0
  547. package/dist/client/assets/tenantInvitations-HHmh2_-4.js +2 -0
  548. package/dist/client/assets/tenantInvitations-HHmh2_-4.js.br +0 -0
  549. package/dist/client/assets/tenantInvitations-HHmh2_-4.js.gz +0 -0
  550. package/dist/client/assets/tenantInvitations-HHmh2_-4.js.map +1 -0
  551. package/dist/client/assets/tenantLive-DbxSXkL3.js +2 -0
  552. package/dist/client/assets/tenantLive-DbxSXkL3.js.br +0 -0
  553. package/dist/client/assets/tenantLive-DbxSXkL3.js.gz +0 -0
  554. package/dist/client/assets/tenantLive-DbxSXkL3.js.map +1 -0
  555. package/dist/client/assets/themeBench-DYrLCI_d.js +2 -0
  556. package/dist/client/assets/themeBench-DYrLCI_d.js.br +0 -0
  557. package/dist/client/assets/themeBench-DYrLCI_d.js.gz +0 -0
  558. package/dist/client/assets/themeBench-DYrLCI_d.js.map +1 -0
  559. package/dist/client/index.html +2 -2
  560. package/dist/client/index.html.br +0 -0
  561. package/dist/client/index.html.gz +0 -0
  562. package/dist/client/index.public.html +2 -2
  563. package/dist/client/index.public.html.br +0 -0
  564. package/dist/client/index.public.html.gz +0 -0
  565. package/dist/docs/status.md +3 -3
  566. package/dist/embed/react/chunks/recordReads-CRKZKYSF.js.map +1 -1
  567. package/dist/embed/react/headless.js +1 -1
  568. package/dist/embed/react/index.js +1 -1
  569. package/dist/server/api/postgresApiReadOwner.js +21 -2
  570. package/dist/server/api/sqliteApiReadOwner.js +22 -3
  571. package/dist/server/http/appData.js +3 -0
  572. package/dist/server/http/server.js +5 -4
  573. package/dist/server/readAudit.d.ts +18 -1
  574. package/dist/server/readAudit.js +43 -4
  575. package/dist/server/readAuditStore.d.ts +2 -0
  576. package/dist/server/readAuditStore.js +12 -0
  577. package/dist/server/tenant/tenantCompose.js +3 -2
  578. package/dist/server/tenant/tenantHttp.js +25 -7
  579. package/dist/server/tenant/tenantReadRefusal.d.ts +6 -0
  580. package/dist/server/tenant/tenantReadRefusal.js +17 -0
  581. package/dist/ui/shared-DhLk-ZJC.js.map +1 -1
  582. package/package.json +4 -4
  583. package/dist/client/assets/AccountAdministration-CneoZJQH.js +0 -2
  584. package/dist/client/assets/AccountAdministration-CneoZJQH.js.br +0 -0
  585. package/dist/client/assets/AccountAdministration-CneoZJQH.js.gz +0 -0
  586. package/dist/client/assets/AccountAdministration-CneoZJQH.js.map +0 -1
  587. package/dist/client/assets/AccountControl-gL3BTzgh.js +0 -3
  588. package/dist/client/assets/AccountControl-gL3BTzgh.js.br +0 -0
  589. package/dist/client/assets/AccountControl-gL3BTzgh.js.gz +0 -0
  590. package/dist/client/assets/AccountControl-gL3BTzgh.js.map +0 -1
  591. package/dist/client/assets/AccountProfile-C2ardHNe.js +0 -2
  592. package/dist/client/assets/AccountProfile-C2ardHNe.js.br +0 -0
  593. package/dist/client/assets/AccountProfile-C2ardHNe.js.gz +0 -0
  594. package/dist/client/assets/AccountProfile-C2ardHNe.js.map +0 -1
  595. package/dist/client/assets/ApiOperations-B9keXEZI.js +0 -2
  596. package/dist/client/assets/ApiOperations-B9keXEZI.js.br +0 -0
  597. package/dist/client/assets/ApiOperations-B9keXEZI.js.gz +0 -0
  598. package/dist/client/assets/ApiOperations-B9keXEZI.js.map +0 -1
  599. package/dist/client/assets/AppColumnMenuPopups-DQGKGcxm.js +0 -2
  600. package/dist/client/assets/AppColumnMenuPopups-DQGKGcxm.js.br +0 -0
  601. package/dist/client/assets/AppColumnMenuPopups-DQGKGcxm.js.gz +0 -0
  602. package/dist/client/assets/AppColumnMenuPopups-DQGKGcxm.js.map +0 -1
  603. package/dist/client/assets/AssistantPanel-TdwQ1VCx.js +0 -3
  604. package/dist/client/assets/AssistantPanel-TdwQ1VCx.js.br +0 -0
  605. package/dist/client/assets/AssistantPanel-TdwQ1VCx.js.gz +0 -0
  606. package/dist/client/assets/AssistantPanel-TdwQ1VCx.js.map +0 -1
  607. package/dist/client/assets/AttachmentList-C_1J_NaK.js +0 -3
  608. package/dist/client/assets/AttachmentList-C_1J_NaK.js.br +0 -0
  609. package/dist/client/assets/AttachmentList-C_1J_NaK.js.gz +0 -0
  610. package/dist/client/assets/AttachmentList-C_1J_NaK.js.map +0 -1
  611. package/dist/client/assets/BoardCardEditor-LQTfrl-s.js +0 -2
  612. package/dist/client/assets/BoardCardEditor-LQTfrl-s.js.br +0 -0
  613. package/dist/client/assets/BoardCardEditor-LQTfrl-s.js.gz +0 -0
  614. package/dist/client/assets/BoardCardEditor-LQTfrl-s.js.map +0 -1
  615. package/dist/client/assets/BoardList-lQbX3mye.js +0 -5
  616. package/dist/client/assets/BoardList-lQbX3mye.js.br +0 -0
  617. package/dist/client/assets/BoardList-lQbX3mye.js.gz +0 -0
  618. package/dist/client/assets/BoardList-lQbX3mye.js.map +0 -1
  619. package/dist/client/assets/BrandingForm-B0ifRvW7.js +0 -2
  620. package/dist/client/assets/BrandingForm-B0ifRvW7.js.br +0 -0
  621. package/dist/client/assets/BrandingForm-B0ifRvW7.js.gz +0 -0
  622. package/dist/client/assets/BrandingForm-B0ifRvW7.js.map +0 -1
  623. package/dist/client/assets/BreakdownRoom-D-miGzAq.js +0 -2
  624. package/dist/client/assets/BreakdownRoom-D-miGzAq.js.br +0 -0
  625. package/dist/client/assets/BreakdownRoom-D-miGzAq.js.gz +0 -0
  626. package/dist/client/assets/BreakdownRoom-D-miGzAq.js.map +0 -1
  627. package/dist/client/assets/CalendarList-VytVTXsW.js +0 -2
  628. package/dist/client/assets/CalendarList-VytVTXsW.js.br +0 -0
  629. package/dist/client/assets/CalendarList-VytVTXsW.js.gz +0 -0
  630. package/dist/client/assets/CalendarList-VytVTXsW.js.map +0 -1
  631. package/dist/client/assets/CardsList-C0LNdnVL.js +0 -2
  632. package/dist/client/assets/CardsList-C0LNdnVL.js.br +0 -0
  633. package/dist/client/assets/CardsList-C0LNdnVL.js.gz +0 -0
  634. package/dist/client/assets/CardsList-C0LNdnVL.js.map +0 -1
  635. package/dist/client/assets/Chart-CBXlYw3q.js +0 -2
  636. package/dist/client/assets/Chart-CBXlYw3q.js.br +0 -0
  637. package/dist/client/assets/Chart-CBXlYw3q.js.gz +0 -0
  638. package/dist/client/assets/Chart-CBXlYw3q.js.map +0 -1
  639. package/dist/client/assets/ChartFigure-BCNZl3ha.js +0 -3
  640. package/dist/client/assets/ChartFigure-BCNZl3ha.js.br +0 -0
  641. package/dist/client/assets/ChartFigure-BCNZl3ha.js.gz +0 -0
  642. package/dist/client/assets/ChartFigure-BCNZl3ha.js.map +0 -1
  643. package/dist/client/assets/ChartShapes-BQER3ht9.js +0 -2
  644. package/dist/client/assets/ChartShapes-BQER3ht9.js.br +0 -0
  645. package/dist/client/assets/ChartShapes-BQER3ht9.js.gz +0 -0
  646. package/dist/client/assets/ChartShapes-BQER3ht9.js.map +0 -1
  647. package/dist/client/assets/CheckedAppTargetAction-DtfdXlBW.js +0 -2
  648. package/dist/client/assets/CheckedAppTargetAction-DtfdXlBW.js.br +0 -0
  649. package/dist/client/assets/CheckedAppTargetAction-DtfdXlBW.js.gz +0 -0
  650. package/dist/client/assets/CheckedAppTargetAction-DtfdXlBW.js.map +0 -1
  651. package/dist/client/assets/Choices-Crs3VWRp.js +0 -2
  652. package/dist/client/assets/Choices-Crs3VWRp.js.br +0 -0
  653. package/dist/client/assets/Choices-Crs3VWRp.js.gz +0 -0
  654. package/dist/client/assets/Choices-Crs3VWRp.js.map +0 -1
  655. package/dist/client/assets/ClaimInvitation-DoGPJlV8.js +0 -2
  656. package/dist/client/assets/ClaimInvitation-DoGPJlV8.js.br +0 -0
  657. package/dist/client/assets/ClaimInvitation-DoGPJlV8.js.gz +0 -0
  658. package/dist/client/assets/ClaimInvitation-DoGPJlV8.js.map +0 -1
  659. package/dist/client/assets/CommandAnswers-nugCo-j5.js +0 -2
  660. package/dist/client/assets/CommandAnswers-nugCo-j5.js.br +0 -0
  661. package/dist/client/assets/CommandAnswers-nugCo-j5.js.gz +0 -0
  662. package/dist/client/assets/CommandAnswers-nugCo-j5.js.map +0 -1
  663. package/dist/client/assets/CommandForm-C8UVMyMw.js +0 -3
  664. package/dist/client/assets/CommandForm-C8UVMyMw.js.br +0 -0
  665. package/dist/client/assets/CommandForm-C8UVMyMw.js.gz +0 -0
  666. package/dist/client/assets/CommandForm-C8UVMyMw.js.map +0 -1
  667. package/dist/client/assets/CommandLines-BYgVjpJp.js +0 -2
  668. package/dist/client/assets/CommandLines-BYgVjpJp.js.br +0 -0
  669. package/dist/client/assets/CommandLines-BYgVjpJp.js.gz +0 -0
  670. package/dist/client/assets/CommandLines-BYgVjpJp.js.map +0 -1
  671. package/dist/client/assets/CommandLive-CNhMLno3.js +0 -2
  672. package/dist/client/assets/CommandLive-CNhMLno3.js.br +0 -0
  673. package/dist/client/assets/CommandLive-CNhMLno3.js.gz +0 -0
  674. package/dist/client/assets/CommandLive-CNhMLno3.js.map +0 -1
  675. package/dist/client/assets/CommandReference-BIiysoL7.js +0 -3
  676. package/dist/client/assets/CommandReference-BIiysoL7.js.br +0 -0
  677. package/dist/client/assets/CommandReference-BIiysoL7.js.gz +0 -0
  678. package/dist/client/assets/CommandReference-BIiysoL7.js.map +0 -1
  679. package/dist/client/assets/Composer-Dm8uE0jl.js +0 -5
  680. package/dist/client/assets/Composer-Dm8uE0jl.js.br +0 -0
  681. package/dist/client/assets/Composer-Dm8uE0jl.js.gz +0 -0
  682. package/dist/client/assets/Composer-Dm8uE0jl.js.map +0 -1
  683. package/dist/client/assets/CountedLabel-Dg7rJ2ZE.js +0 -2
  684. package/dist/client/assets/CountedLabel-Dg7rJ2ZE.js.br +0 -0
  685. package/dist/client/assets/CountedLabel-Dg7rJ2ZE.js.gz +0 -0
  686. package/dist/client/assets/CountedLabel-Dg7rJ2ZE.js.map +0 -1
  687. package/dist/client/assets/CustomList-CyJ8z27e.js +0 -2
  688. package/dist/client/assets/CustomList-CyJ8z27e.js.br +0 -0
  689. package/dist/client/assets/CustomList-CyJ8z27e.js.gz +0 -0
  690. package/dist/client/assets/CustomList-CyJ8z27e.js.map +0 -1
  691. package/dist/client/assets/CustomPage-CZG4iPQr.js +0 -3
  692. package/dist/client/assets/CustomPage-CZG4iPQr.js.br +0 -0
  693. package/dist/client/assets/CustomPage-CZG4iPQr.js.gz +0 -0
  694. package/dist/client/assets/CustomPage-CZG4iPQr.js.map +0 -1
  695. package/dist/client/assets/CustomSection-BwTH_OWZ.js +0 -2
  696. package/dist/client/assets/CustomSection-BwTH_OWZ.js.br +0 -0
  697. package/dist/client/assets/CustomSection-BwTH_OWZ.js.gz +0 -0
  698. package/dist/client/assets/CustomSection-BwTH_OWZ.js.map +0 -1
  699. package/dist/client/assets/Dashboard-C6j-DxBk.js +0 -3
  700. package/dist/client/assets/Dashboard-C6j-DxBk.js.br +0 -0
  701. package/dist/client/assets/Dashboard-C6j-DxBk.js.gz +0 -0
  702. package/dist/client/assets/Dashboard-C6j-DxBk.js.map +0 -1
  703. package/dist/client/assets/DashboardActivity-CSg0EFMy.js +0 -2
  704. package/dist/client/assets/DashboardActivity-CSg0EFMy.js.br +0 -0
  705. package/dist/client/assets/DashboardActivity-CSg0EFMy.js.gz +0 -0
  706. package/dist/client/assets/DashboardActivity-CSg0EFMy.js.map +0 -1
  707. package/dist/client/assets/DashboardFind-Cm7c6fOq.js +0 -2
  708. package/dist/client/assets/DashboardFind-Cm7c6fOq.js.br +0 -0
  709. package/dist/client/assets/DashboardFind-Cm7c6fOq.js.gz +0 -0
  710. package/dist/client/assets/DashboardFind-Cm7c6fOq.js.map +0 -1
  711. package/dist/client/assets/DashboardList-UkvsurYU.js +0 -2
  712. package/dist/client/assets/DashboardList-UkvsurYU.js.br +0 -4
  713. package/dist/client/assets/DashboardList-UkvsurYU.js.gz +0 -0
  714. package/dist/client/assets/DashboardList-UkvsurYU.js.map +0 -1
  715. package/dist/client/assets/DateTimeInput-CeVjhpQq.js +0 -2
  716. package/dist/client/assets/DateTimeInput-CeVjhpQq.js.br +0 -0
  717. package/dist/client/assets/DateTimeInput-CeVjhpQq.js.gz +0 -0
  718. package/dist/client/assets/DateTimeInput-CeVjhpQq.js.map +0 -1
  719. package/dist/client/assets/DecisionChip-CvRPdb7d.js +0 -2
  720. package/dist/client/assets/DecisionChip-CvRPdb7d.js.br +0 -0
  721. package/dist/client/assets/DecisionChip-CvRPdb7d.js.gz +0 -0
  722. package/dist/client/assets/DecisionChip-CvRPdb7d.js.map +0 -1
  723. package/dist/client/assets/DefinedFields-Bc58KtNj.js +0 -2
  724. package/dist/client/assets/DefinedFields-Bc58KtNj.js.br +0 -0
  725. package/dist/client/assets/DefinedFields-Bc58KtNj.js.gz +0 -0
  726. package/dist/client/assets/DefinedFields-Bc58KtNj.js.map +0 -1
  727. package/dist/client/assets/Diagram-gz71l80X.js +0 -6
  728. package/dist/client/assets/Diagram-gz71l80X.js.br +0 -0
  729. package/dist/client/assets/Diagram-gz71l80X.js.gz +0 -0
  730. package/dist/client/assets/Diagram-gz71l80X.js.map +0 -1
  731. package/dist/client/assets/Directory-Dojzp22Z.js +0 -2
  732. package/dist/client/assets/Directory-Dojzp22Z.js.br +0 -0
  733. package/dist/client/assets/Directory-Dojzp22Z.js.gz +0 -0
  734. package/dist/client/assets/Directory-Dojzp22Z.js.map +0 -1
  735. package/dist/client/assets/Document-RIIZJpf7.js +0 -2
  736. package/dist/client/assets/Document-RIIZJpf7.js.br +0 -0
  737. package/dist/client/assets/Document-RIIZJpf7.js.gz +0 -0
  738. package/dist/client/assets/Document-RIIZJpf7.js.map +0 -1
  739. package/dist/client/assets/Export-CoiQMnbO.js +0 -2
  740. package/dist/client/assets/Export-CoiQMnbO.js.br +0 -0
  741. package/dist/client/assets/Export-CoiQMnbO.js.gz +0 -0
  742. package/dist/client/assets/Export-CoiQMnbO.js.map +0 -1
  743. package/dist/client/assets/FilePreview-BXmdlCvl.js +0 -2
  744. package/dist/client/assets/FilePreview-BXmdlCvl.js.br +0 -0
  745. package/dist/client/assets/FilePreview-BXmdlCvl.js.gz +0 -0
  746. package/dist/client/assets/FilePreview-BXmdlCvl.js.map +0 -1
  747. package/dist/client/assets/FormClaimSurface-yoF6zEi_.js +0 -2
  748. package/dist/client/assets/FormClaimSurface-yoF6zEi_.js.br +0 -0
  749. package/dist/client/assets/FormClaimSurface-yoF6zEi_.js.gz +0 -0
  750. package/dist/client/assets/FormClaimSurface-yoF6zEi_.js.map +0 -1
  751. package/dist/client/assets/FormDialog-etxPrrw7.js +0 -3
  752. package/dist/client/assets/FormDialog-etxPrrw7.js.br +0 -0
  753. package/dist/client/assets/FormDialog-etxPrrw7.js.gz +0 -0
  754. package/dist/client/assets/FormDialog-etxPrrw7.js.map +0 -1
  755. package/dist/client/assets/FormLines-B1da4mTh.js +0 -2
  756. package/dist/client/assets/FormLines-B1da4mTh.js.br +0 -0
  757. package/dist/client/assets/FormLines-B1da4mTh.js.gz +0 -0
  758. package/dist/client/assets/FormLines-B1da4mTh.js.map +0 -1
  759. package/dist/client/assets/FormParts-BwEgw7dG.js +0 -2
  760. package/dist/client/assets/FormParts-BwEgw7dG.js.br +0 -0
  761. package/dist/client/assets/FormParts-BwEgw7dG.js.gz +0 -0
  762. package/dist/client/assets/FormParts-BwEgw7dG.js.map +0 -1
  763. package/dist/client/assets/FormStatusSurface-By_ESLoh.js +0 -2
  764. package/dist/client/assets/FormStatusSurface-By_ESLoh.js.br +0 -0
  765. package/dist/client/assets/FormStatusSurface-By_ESLoh.js.gz +0 -0
  766. package/dist/client/assets/FormStatusSurface-By_ESLoh.js.map +0 -1
  767. package/dist/client/assets/Gallery-D_xgMJIk.js +0 -3
  768. package/dist/client/assets/Gallery-D_xgMJIk.js.br +0 -0
  769. package/dist/client/assets/Gallery-D_xgMJIk.js.gz +0 -0
  770. package/dist/client/assets/Gallery-D_xgMJIk.js.map +0 -1
  771. package/dist/client/assets/GanttList-XkFHYdfo.js +0 -2
  772. package/dist/client/assets/GanttList-XkFHYdfo.js.br +0 -0
  773. package/dist/client/assets/GanttList-XkFHYdfo.js.gz +0 -0
  774. package/dist/client/assets/GanttList-XkFHYdfo.js.map +0 -1
  775. package/dist/client/assets/GridCellEditor-DE9OTviB.js +0 -2
  776. package/dist/client/assets/GridCellEditor-DE9OTviB.js.br +0 -0
  777. package/dist/client/assets/GridCellEditor-DE9OTviB.js.gz +0 -0
  778. package/dist/client/assets/GridCellEditor-DE9OTviB.js.map +0 -1
  779. package/dist/client/assets/HeldFiles-QDJwYIAl.js +0 -3
  780. package/dist/client/assets/HeldFiles-QDJwYIAl.js.br +0 -0
  781. package/dist/client/assets/HeldFiles-QDJwYIAl.js.gz +0 -0
  782. package/dist/client/assets/HeldFiles-QDJwYIAl.js.map +0 -1
  783. package/dist/client/assets/HelpPanel-DTaSow3z.js +0 -2
  784. package/dist/client/assets/HelpPanel-DTaSow3z.js.br +0 -0
  785. package/dist/client/assets/HelpPanel-DTaSow3z.js.gz +0 -0
  786. package/dist/client/assets/HelpPanel-DTaSow3z.js.map +0 -1
  787. package/dist/client/assets/ImportDialog-N5mapQSj.js +0 -9
  788. package/dist/client/assets/ImportDialog-N5mapQSj.js.br +0 -0
  789. package/dist/client/assets/ImportDialog-N5mapQSj.js.gz +0 -0
  790. package/dist/client/assets/ImportDialog-N5mapQSj.js.map +0 -1
  791. package/dist/client/assets/InboxList-Byhg_bM-.js +0 -2
  792. package/dist/client/assets/InboxList-Byhg_bM-.js.br +0 -0
  793. package/dist/client/assets/InboxList-Byhg_bM-.js.gz +0 -0
  794. package/dist/client/assets/InboxList-Byhg_bM-.js.map +0 -1
  795. package/dist/client/assets/IntakeControls-CRg9YUYN.js +0 -2
  796. package/dist/client/assets/IntakeControls-CRg9YUYN.js.br +0 -0
  797. package/dist/client/assets/IntakeControls-CRg9YUYN.js.gz +0 -0
  798. package/dist/client/assets/IntakeControls-CRg9YUYN.js.map +0 -1
  799. package/dist/client/assets/IntegrationsForm-d4B2Olc6.js +0 -2
  800. package/dist/client/assets/IntegrationsForm-d4B2Olc6.js.br +0 -0
  801. package/dist/client/assets/IntegrationsForm-d4B2Olc6.js.gz +0 -0
  802. package/dist/client/assets/IntegrationsForm-d4B2Olc6.js.map +0 -1
  803. package/dist/client/assets/JsonView-DWOOd3gU.js +0 -4
  804. package/dist/client/assets/JsonView-DWOOd3gU.js.br +0 -0
  805. package/dist/client/assets/JsonView-DWOOd3gU.js.gz +0 -0
  806. package/dist/client/assets/JsonView-DWOOd3gU.js.map +0 -1
  807. package/dist/client/assets/LayoutBuilder-ru7lxFem.js +0 -2
  808. package/dist/client/assets/LayoutBuilder-ru7lxFem.js.br +0 -0
  809. package/dist/client/assets/LayoutBuilder-ru7lxFem.js.gz +0 -0
  810. package/dist/client/assets/LayoutBuilder-ru7lxFem.js.map +0 -1
  811. package/dist/client/assets/Lightbox-CFsdt-Gk.js +0 -2
  812. package/dist/client/assets/Lightbox-CFsdt-Gk.js.br +0 -0
  813. package/dist/client/assets/Lightbox-CFsdt-Gk.js.gz +0 -0
  814. package/dist/client/assets/Lightbox-CFsdt-Gk.js.map +0 -1
  815. package/dist/client/assets/LiveNotices-BLhRUSbq.js +0 -2
  816. package/dist/client/assets/LiveNotices-BLhRUSbq.js.br +0 -0
  817. package/dist/client/assets/LiveNotices-BLhRUSbq.js.gz +0 -0
  818. package/dist/client/assets/LiveNotices-BLhRUSbq.js.map +0 -1
  819. package/dist/client/assets/MinorMoneyInput-dZrlu_AH.js +0 -2
  820. package/dist/client/assets/MinorMoneyInput-dZrlu_AH.js.br +0 -0
  821. package/dist/client/assets/MinorMoneyInput-dZrlu_AH.js.gz +0 -0
  822. package/dist/client/assets/MinorMoneyInput-dZrlu_AH.js.map +0 -1
  823. package/dist/client/assets/MultiStepForm-D-nX2tAc.js +0 -3
  824. package/dist/client/assets/MultiStepForm-D-nX2tAc.js.br +0 -0
  825. package/dist/client/assets/MultiStepForm-D-nX2tAc.js.gz +0 -0
  826. package/dist/client/assets/MultiStepForm-D-nX2tAc.js.map +0 -1
  827. package/dist/client/assets/NewMenu-Boepbd-4.js +0 -2
  828. package/dist/client/assets/NewMenu-Boepbd-4.js.br +0 -0
  829. package/dist/client/assets/NewMenu-Boepbd-4.js.gz +0 -0
  830. package/dist/client/assets/NewMenu-Boepbd-4.js.map +0 -1
  831. package/dist/client/assets/NewRecord-ChuXAvPE.js +0 -3
  832. package/dist/client/assets/NewRecord-ChuXAvPE.js.br +0 -0
  833. package/dist/client/assets/NewRecord-ChuXAvPE.js.gz +0 -0
  834. package/dist/client/assets/NewRecord-ChuXAvPE.js.map +0 -1
  835. package/dist/client/assets/PageFlowDiagram-DT-jf_mS.js +0 -3
  836. package/dist/client/assets/PageFlowDiagram-DT-jf_mS.js.br +0 -0
  837. package/dist/client/assets/PageFlowDiagram-DT-jf_mS.js.gz +0 -0
  838. package/dist/client/assets/PageFlowDiagram-DT-jf_mS.js.map +0 -1
  839. package/dist/client/assets/PageFlows-C9I4Gm-H.js +0 -2
  840. package/dist/client/assets/PageFlows-C9I4Gm-H.js.br +0 -0
  841. package/dist/client/assets/PageFlows-C9I4Gm-H.js.gz +0 -0
  842. package/dist/client/assets/PageFlows-C9I4Gm-H.js.map +0 -1
  843. package/dist/client/assets/PageGroups-ptCGh2H7.js +0 -2
  844. package/dist/client/assets/PageGroups-ptCGh2H7.js.br +0 -0
  845. package/dist/client/assets/PageGroups-ptCGh2H7.js.gz +0 -0
  846. package/dist/client/assets/PageGroups-ptCGh2H7.js.map +0 -1
  847. package/dist/client/assets/PageHistory-Dd-II-yZ.js +0 -2
  848. package/dist/client/assets/PageHistory-Dd-II-yZ.js.br +0 -0
  849. package/dist/client/assets/PageHistory-Dd-II-yZ.js.gz +0 -0
  850. package/dist/client/assets/PageHistory-Dd-II-yZ.js.map +0 -1
  851. package/dist/client/assets/PageSkeleton-CeVuI_Uk.js +0 -2
  852. package/dist/client/assets/PageSkeleton-CeVuI_Uk.js.br +0 -3
  853. package/dist/client/assets/PageSkeleton-CeVuI_Uk.js.gz +0 -0
  854. package/dist/client/assets/PageSkeleton-CeVuI_Uk.js.map +0 -1
  855. package/dist/client/assets/Palette-BFKvRRVD.js +0 -3
  856. package/dist/client/assets/Palette-BFKvRRVD.js.br +0 -0
  857. package/dist/client/assets/Palette-BFKvRRVD.js.gz +0 -0
  858. package/dist/client/assets/Palette-BFKvRRVD.js.map +0 -1
  859. package/dist/client/assets/PeekPanel-CLl74BmT.js +0 -2
  860. package/dist/client/assets/PeekPanel-CLl74BmT.js.br +0 -0
  861. package/dist/client/assets/PeekPanel-CLl74BmT.js.gz +0 -0
  862. package/dist/client/assets/PeekPanel-CLl74BmT.js.map +0 -1
  863. package/dist/client/assets/PlacedFormSurface-_DJHAevQ.js +0 -2
  864. package/dist/client/assets/PlacedFormSurface-_DJHAevQ.js.br +0 -0
  865. package/dist/client/assets/PlacedFormSurface-_DJHAevQ.js.gz +0 -0
  866. package/dist/client/assets/PlacedFormSurface-_DJHAevQ.js.map +0 -1
  867. package/dist/client/assets/Prefs-BEhXKgAy.js +0 -2
  868. package/dist/client/assets/Prefs-BEhXKgAy.js.br +0 -0
  869. package/dist/client/assets/Prefs-BEhXKgAy.js.gz +0 -0
  870. package/dist/client/assets/Prefs-BEhXKgAy.js.map +0 -1
  871. package/dist/client/assets/PresentedList-DhJMggLJ.js +0 -2
  872. package/dist/client/assets/PresentedList-DhJMggLJ.js.br +0 -0
  873. package/dist/client/assets/PresentedList-DhJMggLJ.js.gz +0 -0
  874. package/dist/client/assets/PresentedList-DhJMggLJ.js.map +0 -1
  875. package/dist/client/assets/PublicGuard-C9by4Dbw.js +0 -2
  876. package/dist/client/assets/PublicGuard-C9by4Dbw.js.br +0 -0
  877. package/dist/client/assets/PublicGuard-C9by4Dbw.js.gz +0 -0
  878. package/dist/client/assets/PublicGuard-C9by4Dbw.js.map +0 -1
  879. package/dist/client/assets/QrCode-C43BSat-.js +0 -4
  880. package/dist/client/assets/QrCode-C43BSat-.js.br +0 -0
  881. package/dist/client/assets/QrCode-C43BSat-.js.gz +0 -0
  882. package/dist/client/assets/QrCode-C43BSat-.js.map +0 -1
  883. package/dist/client/assets/QuickAdd-Dtoh2GgN.js +0 -2
  884. package/dist/client/assets/QuickAdd-Dtoh2GgN.js.br +0 -0
  885. package/dist/client/assets/QuickAdd-Dtoh2GgN.js.gz +0 -0
  886. package/dist/client/assets/QuickAdd-Dtoh2GgN.js.map +0 -1
  887. package/dist/client/assets/Record-DC6HjA5D.js +0 -2
  888. package/dist/client/assets/Record-DC6HjA5D.js.br +0 -0
  889. package/dist/client/assets/Record-DC6HjA5D.js.gz +0 -0
  890. package/dist/client/assets/Record-DC6HjA5D.js.map +0 -1
  891. package/dist/client/assets/RecordModal-waIBdkd3.js +0 -2
  892. package/dist/client/assets/RecordModal-waIBdkd3.js.br +0 -0
  893. package/dist/client/assets/RecordModal-waIBdkd3.js.gz +0 -0
  894. package/dist/client/assets/RecordModal-waIBdkd3.js.map +0 -1
  895. package/dist/client/assets/RichTextEditor-BBm-2yqU.js +0 -144
  896. package/dist/client/assets/RichTextEditor-BBm-2yqU.js.br +0 -0
  897. package/dist/client/assets/RichTextEditor-BBm-2yqU.js.gz +0 -0
  898. package/dist/client/assets/RichTextEditor-BBm-2yqU.js.map +0 -1
  899. package/dist/client/assets/SavedFormSurface-CCF9cJL3.js +0 -2
  900. package/dist/client/assets/SavedFormSurface-CCF9cJL3.js.br +0 -0
  901. package/dist/client/assets/SavedFormSurface-CCF9cJL3.js.gz +0 -0
  902. package/dist/client/assets/SavedFormSurface-CCF9cJL3.js.map +0 -1
  903. package/dist/client/assets/SectionPeriod-CDlpJCqh.js +0 -2
  904. package/dist/client/assets/SectionPeriod-CDlpJCqh.js.br +0 -0
  905. package/dist/client/assets/SectionPeriod-CDlpJCqh.js.gz +0 -0
  906. package/dist/client/assets/SectionPeriod-CDlpJCqh.js.map +0 -1
  907. package/dist/client/assets/SetFieldDialog-B85SlW2F.js +0 -2
  908. package/dist/client/assets/SetFieldDialog-B85SlW2F.js.br +0 -0
  909. package/dist/client/assets/SetFieldDialog-B85SlW2F.js.gz +0 -0
  910. package/dist/client/assets/SetFieldDialog-B85SlW2F.js.map +0 -1
  911. package/dist/client/assets/SignedInFormDialog-DjZn_VVt.js +0 -2
  912. package/dist/client/assets/SignedInFormDialog-DjZn_VVt.js.br +0 -0
  913. package/dist/client/assets/SignedInFormDialog-DjZn_VVt.js.gz +0 -0
  914. package/dist/client/assets/SignedInFormDialog-DjZn_VVt.js.map +0 -1
  915. package/dist/client/assets/SuggestBox-CiCz420k.js +0 -2
  916. package/dist/client/assets/SuggestBox-CiCz420k.js.br +0 -0
  917. package/dist/client/assets/SuggestBox-CiCz420k.js.gz +0 -0
  918. package/dist/client/assets/SuggestBox-CiCz420k.js.map +0 -1
  919. package/dist/client/assets/SuiteAppPreference-Cr20ZM1F.js +0 -2
  920. package/dist/client/assets/SuiteAppPreference-Cr20ZM1F.js.br +0 -0
  921. package/dist/client/assets/SuiteAppPreference-Cr20ZM1F.js.gz +0 -0
  922. package/dist/client/assets/SuiteAppPreference-Cr20ZM1F.js.map +0 -1
  923. package/dist/client/assets/SuiteAppSwitcher-CCPSzaPi.js +0 -2
  924. package/dist/client/assets/SuiteAppSwitcher-CCPSzaPi.js.br +0 -0
  925. package/dist/client/assets/SuiteAppSwitcher-CCPSzaPi.js.gz +0 -0
  926. package/dist/client/assets/SuiteAppSwitcher-CCPSzaPi.js.map +0 -1
  927. package/dist/client/assets/SupportLog-DC7BS-Z2.js +0 -2
  928. package/dist/client/assets/SupportLog-DC7BS-Z2.js.br +0 -0
  929. package/dist/client/assets/SupportLog-DC7BS-Z2.js.gz +0 -0
  930. package/dist/client/assets/SupportLog-DC7BS-Z2.js.map +0 -1
  931. package/dist/client/assets/SupportSessions-Dp6F43Sm.js +0 -2
  932. package/dist/client/assets/SupportSessions-Dp6F43Sm.js.br +0 -0
  933. package/dist/client/assets/SupportSessions-Dp6F43Sm.js.gz +0 -0
  934. package/dist/client/assets/SupportSessions-Dp6F43Sm.js.map +0 -1
  935. package/dist/client/assets/TenantAdministration-DJSpLgaj.js +0 -4
  936. package/dist/client/assets/TenantAdministration-DJSpLgaj.js.br +0 -0
  937. package/dist/client/assets/TenantAdministration-DJSpLgaj.js.gz +0 -0
  938. package/dist/client/assets/TenantAdministration-DJSpLgaj.js.map +0 -1
  939. package/dist/client/assets/TenantApiTokens-CdPoc5fH.js +0 -2
  940. package/dist/client/assets/TenantApiTokens-CdPoc5fH.js.br +0 -0
  941. package/dist/client/assets/TenantApiTokens-CdPoc5fH.js.gz +0 -0
  942. package/dist/client/assets/TenantApiTokens-CdPoc5fH.js.map +0 -1
  943. package/dist/client/assets/TenantInvitations-BavDvERO.js +0 -2
  944. package/dist/client/assets/TenantInvitations-BavDvERO.js.br +0 -0
  945. package/dist/client/assets/TenantInvitations-BavDvERO.js.gz +0 -0
  946. package/dist/client/assets/TenantInvitations-BavDvERO.js.map +0 -1
  947. package/dist/client/assets/ThemeLab-CvUco7aC.js +0 -4
  948. package/dist/client/assets/ThemeLab-CvUco7aC.js.br +0 -0
  949. package/dist/client/assets/ThemeLab-CvUco7aC.js.gz +0 -0
  950. package/dist/client/assets/ThemeLab-CvUco7aC.js.map +0 -1
  951. package/dist/client/assets/TimelineComposer-CNoM_eOc.js +0 -2
  952. package/dist/client/assets/TimelineComposer-CNoM_eOc.js.br +0 -0
  953. package/dist/client/assets/TimelineComposer-CNoM_eOc.js.gz +0 -0
  954. package/dist/client/assets/TimelineComposer-CNoM_eOc.js.map +0 -1
  955. package/dist/client/assets/TimelineReactions-5BiBTm96.js +0 -2
  956. package/dist/client/assets/TimelineReactions-5BiBTm96.js.br +0 -0
  957. package/dist/client/assets/TimelineReactions-5BiBTm96.js.gz +0 -0
  958. package/dist/client/assets/TimelineReactions-5BiBTm96.js.map +0 -1
  959. package/dist/client/assets/TopNav-CUh0iRQY.js +0 -3
  960. package/dist/client/assets/TopNav-CUh0iRQY.js.br +0 -0
  961. package/dist/client/assets/TopNav-CUh0iRQY.js.gz +0 -0
  962. package/dist/client/assets/TopNav-CUh0iRQY.js.map +0 -1
  963. package/dist/client/assets/Tour-D9NxwUyV.js +0 -2
  964. package/dist/client/assets/Tour-D9NxwUyV.js.br +0 -0
  965. package/dist/client/assets/Tour-D9NxwUyV.js.gz +0 -0
  966. package/dist/client/assets/Tour-D9NxwUyV.js.map +0 -1
  967. package/dist/client/assets/TreeList-CVQ4lJCn.js +0 -2
  968. package/dist/client/assets/TreeList-CVQ4lJCn.js.br +0 -0
  969. package/dist/client/assets/TreeList-CVQ4lJCn.js.gz +0 -0
  970. package/dist/client/assets/TreeList-CVQ4lJCn.js.map +0 -1
  971. package/dist/client/assets/TreePicker-Cg880BsM.js +0 -2
  972. package/dist/client/assets/TreePicker-Cg880BsM.js.br +0 -0
  973. package/dist/client/assets/TreePicker-Cg880BsM.js.gz +0 -0
  974. package/dist/client/assets/TreePicker-Cg880BsM.js.map +0 -1
  975. package/dist/client/assets/ViewFormDialog-BJjAR1K8.js +0 -3
  976. package/dist/client/assets/ViewFormDialog-BJjAR1K8.js.br +0 -0
  977. package/dist/client/assets/ViewFormDialog-BJjAR1K8.js.gz +0 -0
  978. package/dist/client/assets/ViewFormDialog-BJjAR1K8.js.map +0 -1
  979. package/dist/client/assets/appImport-DXScPM6B.js +0 -4
  980. package/dist/client/assets/appImport-DXScPM6B.js.br +0 -0
  981. package/dist/client/assets/appImport-DXScPM6B.js.gz +0 -0
  982. package/dist/client/assets/appImport-DXScPM6B.js.map +0 -1
  983. package/dist/client/assets/appLive-Ns7gRNph.js +0 -3
  984. package/dist/client/assets/appLive-Ns7gRNph.js.br +0 -0
  985. package/dist/client/assets/appLive-Ns7gRNph.js.gz +0 -0
  986. package/dist/client/assets/appLive-Ns7gRNph.js.map +0 -1
  987. package/dist/client/assets/assistantStream-gJuzVmm5.js +0 -7
  988. package/dist/client/assets/assistantStream-gJuzVmm5.js.br +0 -0
  989. package/dist/client/assets/assistantStream-gJuzVmm5.js.gz +0 -0
  990. package/dist/client/assets/assistantStream-gJuzVmm5.js.map +0 -1
  991. package/dist/client/assets/beacon-BjtStpI_.js +0 -2
  992. package/dist/client/assets/beacon-BjtStpI_.js.br +0 -0
  993. package/dist/client/assets/beacon-BjtStpI_.js.gz +0 -0
  994. package/dist/client/assets/beacon-BjtStpI_.js.map +0 -1
  995. package/dist/client/assets/blocks-CVFXO2TP.js +0 -3
  996. package/dist/client/assets/blocks-CVFXO2TP.js.br +0 -0
  997. package/dist/client/assets/blocks-CVFXO2TP.js.gz +0 -0
  998. package/dist/client/assets/blocks-CVFXO2TP.js.map +0 -1
  999. package/dist/client/assets/builtInInputs-Bz7yk07n.js +0 -3
  1000. package/dist/client/assets/builtInInputs-Bz7yk07n.js.br +0 -0
  1001. package/dist/client/assets/builtInInputs-Bz7yk07n.js.gz +0 -0
  1002. package/dist/client/assets/builtInInputs-Bz7yk07n.js.map +0 -1
  1003. package/dist/client/assets/commandDraft-u0qeC7CF.js +0 -2
  1004. package/dist/client/assets/commandDraft-u0qeC7CF.js.br +0 -0
  1005. package/dist/client/assets/commandDraft-u0qeC7CF.js.gz +0 -0
  1006. package/dist/client/assets/commandDraft-u0qeC7CF.js.map +0 -1
  1007. package/dist/client/assets/componentLoader-CYLEbTlX.js +0 -3
  1008. package/dist/client/assets/componentLoader-CYLEbTlX.js.br +0 -0
  1009. package/dist/client/assets/componentLoader-CYLEbTlX.js.gz +0 -0
  1010. package/dist/client/assets/componentLoader-CYLEbTlX.js.map +0 -1
  1011. package/dist/client/assets/composer-Bbobyrp6.js +0 -2
  1012. package/dist/client/assets/composer-Bbobyrp6.js.br +0 -0
  1013. package/dist/client/assets/composer-Bbobyrp6.js.gz +0 -0
  1014. package/dist/client/assets/composer-Bbobyrp6.js.map +0 -1
  1015. package/dist/client/assets/computedParse-B7fYsDyL.js +0 -2
  1016. package/dist/client/assets/computedParse-B7fYsDyL.js.br +0 -0
  1017. package/dist/client/assets/computedParse-B7fYsDyL.js.gz +0 -0
  1018. package/dist/client/assets/computedParse-B7fYsDyL.js.map +0 -1
  1019. package/dist/client/assets/computedValue-BnD3il8C.js +0 -2
  1020. package/dist/client/assets/computedValue-BnD3il8C.js.br +0 -0
  1021. package/dist/client/assets/computedValue-BnD3il8C.js.gz +0 -0
  1022. package/dist/client/assets/computedValue-BnD3il8C.js.map +0 -1
  1023. package/dist/client/assets/conditionWords-C5Mb8oGY.js +0 -2
  1024. package/dist/client/assets/conditionWords-C5Mb8oGY.js.br +0 -0
  1025. package/dist/client/assets/conditionWords-C5Mb8oGY.js.gz +0 -0
  1026. package/dist/client/assets/conditionWords-C5Mb8oGY.js.map +0 -1
  1027. package/dist/client/assets/definedValues-D3sDgwc_.js +0 -2
  1028. package/dist/client/assets/definedValues-D3sDgwc_.js.br +0 -0
  1029. package/dist/client/assets/definedValues-D3sDgwc_.js.gz +0 -0
  1030. package/dist/client/assets/definedValues-D3sDgwc_.js.map +0 -1
  1031. package/dist/client/assets/experimentExposure-DJ959V0K.js +0 -3
  1032. package/dist/client/assets/experimentExposure-DJ959V0K.js.br +0 -0
  1033. package/dist/client/assets/experimentExposure-DJ959V0K.js.gz +0 -0
  1034. package/dist/client/assets/experimentExposure-DJ959V0K.js.map +0 -1
  1035. package/dist/client/assets/export-DzI5wagv.js +0 -4
  1036. package/dist/client/assets/export-DzI5wagv.js.br +0 -0
  1037. package/dist/client/assets/export-DzI5wagv.js.gz +0 -0
  1038. package/dist/client/assets/export-DzI5wagv.js.map +0 -1
  1039. package/dist/client/assets/formCommandRun-mQLQz6zV.js +0 -2
  1040. package/dist/client/assets/formCommandRun-mQLQz6zV.js.br +0 -0
  1041. package/dist/client/assets/formCommandRun-mQLQz6zV.js.gz +0 -0
  1042. package/dist/client/assets/formCommandRun-mQLQz6zV.js.map +0 -1
  1043. package/dist/client/assets/formStepCheck-C-fIVkr0.js +0 -2
  1044. package/dist/client/assets/formStepCheck-C-fIVkr0.js.br +0 -0
  1045. package/dist/client/assets/formStepCheck-C-fIVkr0.js.gz +0 -0
  1046. package/dist/client/assets/formStepCheck-C-fIVkr0.js.map +0 -1
  1047. package/dist/client/assets/funnel-I7KHSmks.js +0 -2
  1048. package/dist/client/assets/funnel-I7KHSmks.js.br +0 -0
  1049. package/dist/client/assets/funnel-I7KHSmks.js.gz +0 -0
  1050. package/dist/client/assets/funnel-I7KHSmks.js.map +0 -1
  1051. package/dist/client/assets/handoff-OGFKKAVu.js +0 -3
  1052. package/dist/client/assets/handoff-OGFKKAVu.js.br +0 -0
  1053. package/dist/client/assets/handoff-OGFKKAVu.js.gz +0 -0
  1054. package/dist/client/assets/handoff-OGFKKAVu.js.map +0 -1
  1055. package/dist/client/assets/headlessLanding-Q9m1rbS7.js +0 -2
  1056. package/dist/client/assets/headlessLanding-Q9m1rbS7.js.br +0 -0
  1057. package/dist/client/assets/headlessLanding-Q9m1rbS7.js.gz +0 -0
  1058. package/dist/client/assets/headlessLanding-Q9m1rbS7.js.map +0 -1
  1059. package/dist/client/assets/index-Bt4RC99Z.js +0 -16
  1060. package/dist/client/assets/index-Bt4RC99Z.js.br +0 -0
  1061. package/dist/client/assets/index-Bt4RC99Z.js.gz +0 -0
  1062. package/dist/client/assets/index-Bt4RC99Z.js.map +0 -1
  1063. package/dist/client/assets/liveSync-BMmCoXu-.js +0 -3
  1064. package/dist/client/assets/liveSync-BMmCoXu-.js.br +0 -0
  1065. package/dist/client/assets/liveSync-BMmCoXu-.js.gz +0 -0
  1066. package/dist/client/assets/liveSync-BMmCoXu-.js.map +0 -1
  1067. package/dist/client/assets/mentionRows-BAXWgeSZ.js +0 -2
  1068. package/dist/client/assets/mentionRows-BAXWgeSZ.js.br +0 -0
  1069. package/dist/client/assets/mentionRows-BAXWgeSZ.js.gz +0 -0
  1070. package/dist/client/assets/mentionRows-BAXWgeSZ.js.map +0 -1
  1071. package/dist/client/assets/newMenuModel-NRT8Nsev.js +0 -2
  1072. package/dist/client/assets/newMenuModel-NRT8Nsev.js.br +0 -0
  1073. package/dist/client/assets/newMenuModel-NRT8Nsev.js.gz +0 -0
  1074. package/dist/client/assets/newMenuModel-NRT8Nsev.js.map +0 -1
  1075. package/dist/client/assets/newRecordModel-6K_S3m_z.js +0 -2
  1076. package/dist/client/assets/newRecordModel-6K_S3m_z.js.br +0 -0
  1077. package/dist/client/assets/newRecordModel-6K_S3m_z.js.gz +0 -0
  1078. package/dist/client/assets/newRecordModel-6K_S3m_z.js.map +0 -1
  1079. package/dist/client/assets/oauthConsent-C4ttLQH5.js +0 -2
  1080. package/dist/client/assets/oauthConsent-C4ttLQH5.js.br +0 -0
  1081. package/dist/client/assets/oauthConsent-C4ttLQH5.js.gz +0 -0
  1082. package/dist/client/assets/oauthConsent-C4ttLQH5.js.map +0 -1
  1083. package/dist/client/assets/pageControls-B0VPG7x3.js +0 -2
  1084. package/dist/client/assets/pageControls-B0VPG7x3.js.br +0 -0
  1085. package/dist/client/assets/pageControls-B0VPG7x3.js.gz +0 -0
  1086. package/dist/client/assets/pageControls-B0VPG7x3.js.map +0 -1
  1087. package/dist/client/assets/paramControls-DSieEbzZ.js +0 -2
  1088. package/dist/client/assets/paramControls-DSieEbzZ.js.br +0 -0
  1089. package/dist/client/assets/paramControls-DSieEbzZ.js.gz +0 -0
  1090. package/dist/client/assets/paramControls-DSieEbzZ.js.map +0 -1
  1091. package/dist/client/assets/public-BMBdxVXn.js +0 -3
  1092. package/dist/client/assets/public-BMBdxVXn.js.br +0 -0
  1093. package/dist/client/assets/public-BMBdxVXn.js.gz +0 -0
  1094. package/dist/client/assets/public-BMBdxVXn.js.map +0 -1
  1095. package/dist/client/assets/publicInputs-Ccwb_aMS.js +0 -3
  1096. package/dist/client/assets/publicInputs-Ccwb_aMS.js.br +0 -0
  1097. package/dist/client/assets/publicInputs-Ccwb_aMS.js.gz +0 -0
  1098. package/dist/client/assets/publicInputs-Ccwb_aMS.js.map +0 -1
  1099. package/dist/client/assets/publicPageCommand-Cyt7UsD8.js +0 -2
  1100. package/dist/client/assets/publicPageCommand-Cyt7UsD8.js.br +0 -0
  1101. package/dist/client/assets/publicPageCommand-Cyt7UsD8.js.gz +0 -0
  1102. package/dist/client/assets/publicPageCommand-Cyt7UsD8.js.map +0 -1
  1103. package/dist/client/assets/publicPlacement-DTXiMJpX.js +0 -2
  1104. package/dist/client/assets/publicPlacement-DTXiMJpX.js.br +0 -0
  1105. package/dist/client/assets/publicPlacement-DTXiMJpX.js.gz +0 -0
  1106. package/dist/client/assets/publicPlacement-DTXiMJpX.js.map +0 -1
  1107. package/dist/client/assets/recordSearch-BwihoA0w.js +0 -2
  1108. package/dist/client/assets/recordSearch-BwihoA0w.js.br +0 -0
  1109. package/dist/client/assets/recordSearch-BwihoA0w.js.gz +0 -0
  1110. package/dist/client/assets/recordSearch-BwihoA0w.js.map +0 -1
  1111. package/dist/client/assets/savedFormApi-Cefyfzot.js +0 -2
  1112. package/dist/client/assets/savedFormApi-Cefyfzot.js.br +0 -0
  1113. package/dist/client/assets/savedFormApi-Cefyfzot.js.gz +0 -0
  1114. package/dist/client/assets/savedFormApi-Cefyfzot.js.map +0 -1
  1115. package/dist/client/assets/shell-B2AKY91H.js +0 -13
  1116. package/dist/client/assets/shell-B2AKY91H.js.br +0 -0
  1117. package/dist/client/assets/shell-B2AKY91H.js.gz +0 -0
  1118. package/dist/client/assets/shell-B2AKY91H.js.map +0 -1
  1119. package/dist/client/assets/steps-GrEdIaQH.js +0 -2
  1120. package/dist/client/assets/steps-GrEdIaQH.js.br +0 -0
  1121. package/dist/client/assets/steps-GrEdIaQH.js.gz +0 -0
  1122. package/dist/client/assets/steps-GrEdIaQH.js.map +0 -1
  1123. package/dist/client/assets/tenant-vE0bAEDu.js +0 -3
  1124. package/dist/client/assets/tenant-vE0bAEDu.js.br +0 -0
  1125. package/dist/client/assets/tenant-vE0bAEDu.js.gz +0 -0
  1126. package/dist/client/assets/tenant-vE0bAEDu.js.map +0 -1
  1127. package/dist/client/assets/tenantInvitations-Dtk4xyV0.js +0 -2
  1128. package/dist/client/assets/tenantInvitations-Dtk4xyV0.js.br +0 -0
  1129. package/dist/client/assets/tenantInvitations-Dtk4xyV0.js.gz +0 -0
  1130. package/dist/client/assets/tenantInvitations-Dtk4xyV0.js.map +0 -1
  1131. package/dist/client/assets/tenantLive-DHvXezue.js +0 -2
  1132. package/dist/client/assets/tenantLive-DHvXezue.js.br +0 -0
  1133. package/dist/client/assets/tenantLive-DHvXezue.js.gz +0 -0
  1134. package/dist/client/assets/tenantLive-DHvXezue.js.map +0 -1
  1135. package/dist/client/assets/themeBench-CjqmOt-W.js +0 -2
  1136. package/dist/client/assets/themeBench-CjqmOt-W.js.br +0 -0
  1137. package/dist/client/assets/themeBench-CjqmOt-W.js.gz +0 -0
  1138. package/dist/client/assets/themeBench-CjqmOt-W.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import{Qu as e,X as t,Y as n,al as r,gl as i,hl as a,ll as o,mt as s,sl as c}from"./index-tulz4gVC.js";var l=Object.freeze([`issueInvitation`,`revokeInvitation`,`reissueInvitation`]),u=`email:`,d=`/api/tenant/invitations`,f=`x-mistri-invitation-context`,p=e({a:`The invitation change is unconfirmed. Keep this attempt and check its status.`,b:`Invitation access could not be verified. Refresh access and review the current information.`,c:`Invalid invitation response`,d:`Invitation issuer access could not be loaded.`,e:`The authorized invitation targets could not be loaded.`,f:`The authorized invitation list could not be loaded. Refresh the targets before continuing.`,g:`Enter a canonical twi1 invitation token.`,h:`The invitation could not be reviewed. Check access and enter the token again.`,i:`Invitation acceptance confirmed. Refresh authorized discovery to choose a tenant.`,j:`Issuance confirmed. The original token cannot be recovered. Load the current invitation list and explicitly reissue.`,k:`Invitation change confirmed. Refresh the authorized list before another change.`,l:`Refresh invitation access explicitly before continuing.`,m:`Review the invitation again before accepting.`,n:`The change was not applied. Refresh current information and review a new attempt.`,o:`The change is unconfirmed. Check this exact attempt’s status; do not submit it again.`,p:`Access refreshed. The original attempt is retained.`,q:`Access refreshed. Load the current authorized information.`}),m=class extends Error{outcome;constructor(e){super(p(e===`unknown`?`a`:`b`)),this.outcome=e}},h=e=>!!e&&typeof e==`object`&&!Array.isArray(e);function g(e,t,n=[]){return h(e)&&t.every(t=>Object.hasOwn(e,t))&&Reflect.ownKeys(e).every(r=>typeof r==`string`&&(t.includes(r)||n.includes(r))&&`value`in Object.getOwnPropertyDescriptor(e,r))}var _=(e,t=256)=>typeof e==`string`&&e.length>0&&e.length<=t&&e.trim()===e&&!/[\p{Cc}\uD800-\uDFFF]/u.test(e)&&new TextEncoder().encode(e).length<=t,v=e=>typeof e==`string`&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(e),y=e=>typeof e==`string`&&/^[a-z0-9][a-z0-9_-]{0,127}$/.test(e),b=e=>typeof e==`string`&&/^[1-9][0-9]{0,127}$/.test(e),x=e=>Number.isSafeInteger(e)&&e>=0,S=e=>x(e)&&e>0,C=(e,t=0)=>Array.isArray(e)&&e.length>=t&&e.length<=256&&e.every(e=>_(e))&&new Set(e).size===e.length,w=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e));function T(e){return e&&typeof e==`object`&&(Object.values(e).forEach(T),Object.freeze(e)),e}function E(e){if(!e)throw Error(p(`c`))}function D(e){return typeof e!=`string`||e.length!==85||e.slice(0,5)!==`twi1.`||e[41]!==`.`||!v(e.slice(5,41))||!/^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$/.test(e.slice(42))?null:e.slice(5,41)}function O(e){return g(e,[`tenantId`,`status`,`version`])&&y(e.tenantId)&&b(e.version)&&[`active`,`suspended`,`closed`].includes(e.status)}var k=[`operation`,`tenantId`,`expectedTenantVersion`],A=[`invitationId`,`expectedInvitationVersion`,`membershipId`,`expectedMembershipVersion`],j=[`roles`,`redeemUntil`,`validUntil`],M=e=>e?.operation===`acceptInvitation`||e?.operation===`claimInvitation`,N=e=>typeof e==`string`&&e.length<=254&&e===e.toLowerCase()&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),P=e=>typeof e.email==`string`?`${u}${e.email}`:e.accountId;function F(e){if(!h(e))return!1;let t=e.operation===`issueInvitation`,n=e.operation===`reissueInvitation`,r=t&&Object.hasOwn(e,`email`);return(t||n||e.operation===`revokeInvitation`||e.operation===`acceptInvitation`||e.operation===`claimInvitation`)&&g(e,[...k,...t?[r?`email`:`accountId`]:A,...t||n?j:[]])&&y(e.tenantId)&&b(e.expectedTenantVersion)&&(t?r?N(e.email):_(e.accountId,1024)&&!e.accountId.startsWith(`email:`):v(e.invitationId)&&v(e.membershipId)&&b(e.expectedInvitationVersion)&&b(e.expectedMembershipVersion))&&(!(t||n)||C(e.roles,1)&&S(e.redeemUntil)&&S(e.validUntil)&&e.redeemUntil<=e.validUntil)}function I(e){if(!g(e,[`invitation`,`membership`]))return!1;let t=e.invitation,n=e.membership;return g(t,[`invitationId`,`version`,`tenantId`,`membershipId`,`accountId`,`inviterId`,`roles`,`expectedTenantVersion`,`policyId`,`policyVersion`,`issuanceOperation`,`createdAt`,`redeemUntil`,`validUntil`,`status`])&&v(t.invitationId)&&v(t.membershipId)&&y(t.tenantId)&&_(t.accountId,1024)&&_(t.inviterId,1024)&&b(t.version)&&b(t.expectedTenantVersion)&&_(t.policyId)&&_(t.policyVersion)&&C(t.roles,1)&&x(t.createdAt)&&S(t.redeemUntil)&&S(t.validUntil)&&t.createdAt<t.redeemUntil&&t.redeemUntil<=t.validUntil&&[`issueInvitation`,`reissueInvitation`].includes(t.issuanceOperation)&&[`pending`,`accepted`,`revoked`].includes(t.status)&&g(n,[`membershipId`,`tenantId`,`accountId`,`status`,`version`,`roles`,`validUntil`])&&n.membershipId===t.membershipId&&n.tenantId===t.tenantId&&n.accountId===t.accountId&&n.validUntil===t.validUntil&&b(n.version)&&C(n.roles,1)&&w(n.roles,t.roles)&&n.status==={pending:`invited`,accepted:`active`,revoked:`revoked`}[t.status]}function L(e,t){return[`invitation`,`membership`].every(n=>Object.entries(e[n]).every(([e,r])=>{let i=t[n][e];return e===`version`?i===String(BigInt(r)+1n):e===`status`?i===`revoked`:e===`roles`?w(r,i):i===r}))}var R=[`receiptId`,`requestId`,`completedAt`,`replayed`];function z(e){return _(e.receiptId,1024)&&_(e.requestId,1024)&&typeof e.replayed==`boolean`&&typeof e.completedAt==`string`&&e.completedAt.length<=32&&Number.isFinite(Date.parse(e.completedAt))&&new Date(e.completedAt).toISOString()===e.completedAt}function B(e,t,n,r){let i=t.intent;if(i.operation===`acceptInvitation`||i.operation===`claimInvitation`){let t=i.operation===`claimInvitation`;return E(g(e,[...R,`invitationId`,`tenantId`,`membershipId`,`membershipVersion`,`roles`,`validUntil`,`status`])&&z(e)&&e.invitationId===i.invitationId&&e.tenantId===i.tenantId&&(t?v(e.membershipId)&&e.membershipId!==i.membershipId&&e.membershipVersion===`1`:e.membershipId===i.membershipId&&b(e.membershipVersion)&&e.membershipVersion===String(BigInt(i.expectedMembershipVersion)+1n))&&C(e.roles,1)&&S(e.validUntil)&&e.status===`accepted`&&(!r||w(e.roles,r.roles)&&e.validUntil===r.validUntil)),T(e)}E(g(e,[...R,`change`])&&z(e));let a=e.change;E(g(a,[`operation`,`tenant`,`before`,`after`],i.operation===`reissueInvitation`?[`revoked`]:[])&&a.operation===i.operation&&O(a.tenant)&&a.tenant.tenantId===i.tenantId&&a.tenant.version===i.expectedTenantVersion&&I(a.after)&&(a.before===null||I(a.before)));let o=a.after,s=a.before;if(E(o.invitation.tenantId===i.tenantId&&(!s||s.invitation.tenantId===i.tenantId)),i.operation===`issueInvitation`||i.operation===`reissueInvitation`){let e=o.invitation;E(a.tenant.status===`active`&&e.status===`pending`&&e.version===`1`&&o.membership.version===`1`&&e.expectedTenantVersion===i.expectedTenantVersion&&e.issuanceOperation===i.operation&&e.inviterId===n.accountId&&w(e.roles,i.roles)&&e.redeemUntil===i.redeemUntil&&e.validUntil===i.validUntil)}return i.operation===`issueInvitation`?E(s===null&&o.invitation.accountId===P(i)):(E(s&&s.invitation.status===`pending`&&s.invitation.invitationId===i.invitationId&&s.invitation.version===i.expectedInvitationVersion&&s.membership.membershipId===i.membershipId&&s.membership.version===i.expectedMembershipVersion),i.operation===`revokeInvitation`?E(L(s,o)):E(I(a.revoked)&&L(s,a.revoked)&&o.invitation.invitationId!==i.invitationId&&o.membership.membershipId!==i.membershipId&&o.invitation.accountId===s.invitation.accountId)),T(e)}async function V(e){let t=4194304,n=e.headers.get(`content-length`);E(n===null||/^[0-9]+$/.test(n)&&Number(n)<=t),E(e.body);let r=e.body.getReader(),i=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0}),a=0,o=``;try{for(;;){let{done:e,value:n}=await r.read();if(e)break;a+=n.byteLength,E(a<=t),o+=i.decode(n,{stream:!0})}return o+=i.decode(),JSON.parse(o)}finally{try{await r.cancel()}catch{}r.releaseLock()}}async function H(e,t,n,i,a={}){let o=!1;try{c(e),E(e.mode===`authenticated`&&_(e.accountId,1024)&&_(e.appId));let s=n.startsWith(`open-`),l=n!==`targets`&&n!==`list`;E(s||t&&t.appId===e.appId&&t.accountId===e.accountId&&_(t.context)&&t.expiresAt>Date.now());let u={method:l?`POST`:`GET`,credentials:`same-origin`,cache:`no-store`,redirect:`error`,signal:AbortSignal.timeout(15e3),headers:{"x-mistri-account":e.accountId,"x-mistri-app":e.appId,...!s&&t?{[f]:t.context}:{},...l?{"content-type":`application/json`}:{}},...l?{body:JSON.stringify(i??{})}:{}};o=!0;let p=await r(`${d}/${n}?${new URLSearchParams({app:e.appId,...a})}`,u),v=()=>{c(e);let n=p.headers.get(`x-mistri-account`),r=p.headers.get(`x-mistri-app`),i=p.headers.get(f);E(!((p.ok||n!==null)&&n!==e.accountId||(p.ok||r!==null)&&r!==e.appId||!s&&(p.ok||i!==null)&&i!==t.context));for(let e of p.headers.keys())E(!e.startsWith(`x-mistri-`)||[`x-mistri-account`,`x-mistri-app`,`x-mistri-invitation-context`].includes(e))};v();let y=await V(p);if(v(),E(h(y)),!p.ok)throw n===`execute`&&g(y,[`error`,`code`,`outcome`])&&_(y.error,1024)&&y.code===`tenant_invitation_unavailable`&&y.outcome===`not_applied`?new m(`not_applied`):Error();return{data:y,context:p.headers.get(f)}}catch(e){throw n!==`status`&&e instanceof m?e:new m(n===`status`||n===`execute`&&o?`unknown`:`not_applied`)}}async function U(e,t){try{E(t===void 0||v(t));let{data:n,context:r}=await H(e,null,t===void 0?`open-issuer`:`open-recipient`,t===void 0?{}:{invitationId:t});if(E(g(n,[`session`])),n.session===null&&r===null)return null;let i=n.session,a=t===void 0;return E(g(i,[`appId`,`accountId`,`context`,`expiresAt`,...a?[`maxMembershipLifetimeMs`,`maxRedemptionLifetimeMs`,`maxPendingPerTenant`]:[]])&&i.appId===e.appId&&i.accountId===e.accountId&&_(i.context)&&i.context===r&&S(i.expiresAt)&&i.expiresAt>Date.now()&&(!a||S(i.maxMembershipLifetimeMs)&&S(i.maxRedemptionLifetimeMs)&&S(i.maxPendingPerTenant))),T(i)}catch{throw new m(`not_applied`)}}var W=e=>U(e),G=(e,t)=>U(e,t);function K(e){return h(e)&&Array.isArray(e.items)&&e.items.length<=20&&(e.next===null||_(e.next,128))}async function q(e,t,n){try{E(n===void 0||_(n,128));let{data:r}=await H(e,t,`targets`,void 0,{limit:`20`,...n===void 0?{}:{after:n}}),i=r.page;return E(g(r,[`page`])&&g(i,[`items`,`next`])&&K(i)&&i.items.every(e=>g(e,[`tenantId`,`tenant`,`capabilities`],[`name`])&&y(e.tenantId)&&(e.name===void 0||s(e.name))&&(e.tenant===null||O(e.tenant)&&e.tenant.tenantId===e.tenantId)&&Array.isArray(e.capabilities)&&e.capabilities.length<=3&&e.capabilities.every(e=>g(e,[`operation`,`roles`])&&l.includes(e.operation)&&C(e.roles))&&new Set(e.capabilities.map(e=>e.operation)).size===e.capabilities.length)&&new Set(i.items.map(e=>e.tenantId)).size===i.items.length),T(i)}catch{throw new m(`not_applied`)}}async function J(e,t,n,r,i){try{E(y(n)&&[`revokeInvitation`,`reissueInvitation`].includes(r)&&(i===void 0||_(i,128)));let{data:a}=await H(e,t,`list`,void 0,{tenantId:n,operation:r,limit:`20`,...i===void 0?{}:{after:i}}),o=a.page;return E(g(a,[`page`])&&g(o,[`tenant`,`operation`,`roles`,`items`,`next`])&&K(o)&&o.operation===r&&C(o.roles)&&(o.tenant===null||O(o.tenant)&&o.tenant.tenantId===n)&&(o.tenant!==null||o.items.length===0)&&o.items.every(e=>I(e)&&e.invitation.tenantId===n&&e.invitation.status===`pending`&&e.invitation.roles.every(e=>o.roles.includes(e)))&&new Set(o.items.map(e=>e.invitation.invitationId)).size===o.items.length&&new Set(o.items.map(e=>e.membership.membershipId)).size===o.items.length),T(o)}catch{throw new m(`not_applied`)}}async function Y(e,t,n){try{let r=D(n);E(r);let{data:i}=await H(e,t,`preview`,{token:n}),a=i.preview;return E(g(i,[`preview`])&&g(a,[`intent`,`roles`,`redeemUntil`,`validUntil`])&&F(a.intent)&&M(a.intent)&&a.intent.invitationId===r&&C(a.roles,1)&&S(a.redeemUntil)&&S(a.validUntil)&&a.redeemUntil>Date.now()&&a.redeemUntil<=a.validUntil),T(a)}catch{throw new m(`not_applied`)}}function X(e){E(g(e,[`idempotencyKey`,`intent`])&&v(e.idempotencyKey)&&F(e.intent))}async function Z(e,t,n,r,i){try{X(n),E(M(n.intent)?D(r)===n.intent.invitationId:r===void 0)}catch{throw new m(`not_applied`)}let{data:a}=await H(e,t,`execute`,{...n,...r===void 0?{}:{token:r}});try{E(g(a,[`outcome`,`result`],n.intent.operation===`issueInvitation`||n.intent.operation===`reissueInvitation`?[`token`]:[])&&a.outcome===`applied`);let t=B(a.result,n,e,i);return E(!Object.hasOwn(a,`token`)||`change`in t&&!t.replayed&&D(a.token)===t.change.after.invitation.invitationId),T({result:t,...Object.hasOwn(a,`token`)?{token:a.token}:{}})}catch{throw new m(`unknown`)}}async function Q(e,t,n,r){try{X(n);let{data:i}=await H(e,t,`status`,n);return E(g(i,[`status`,`outcome`,`result`])),i.status===`not_found`&&i.outcome===`unknown`&&i.result===null?null:(E(i.status===`completed`&&i.outcome===`applied`),B(i.result,n,e,r))}catch{throw new m(`unknown`)}}var $=()=>T({issuerSession:null,recipientSession:null,targets:null,target:null,invitations:null,preview:null,phase:`idle`,loading:!1,attempt:null,result:null,handoffToken:null,message:``}),ee=class{onAccepted;owner;value=$();listeners=new Set;retired=!1;generation=0;opening;unsubscribe;#e=null;recipientId=null;constructor(e=o(),t){this.onAccepted=t,this.owner=o(e),this.unsubscribe=i(()=>{this.current()||this.retire()})}snapshot=()=>this.value;subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});current=()=>!this.retired&&this.owner===o()&&a().mode===`authenticated`;locked=()=>[`executing`,`unknown`,`checking`].includes(this.value.phase);editable(){return this.current()&&this.value.phase===`idle`}live(e,t){return this.current()&&e===this.generation&&(!t||this.value.attempt===t)}publish(e){if(this.current()){this.value=T({...this.value,...e}),this.value.issuerSession||this.value.recipientSession?n.add(this):n.delete(this),this.locked()?t.add(this):t.delete(this);for(let e of this.listeners)try{e()}catch{}}}retire(){if(!this.retired){this.retired=!0,this.generation++,this.unsubscribe(),t.delete(this),n.delete(this),this.opening=void 0,this.#e=null,this.recipientId=null,this.value=$();for(let e of this.listeners)try{e()}catch{}this.listeners.clear()}}openIssuer(){if(!this.current())return Promise.resolve(null);if(this.opening)return this.opening;if(this.value.issuerSession)return Promise.resolve(this.value.issuerSession);if(!this.editable()||this.value.loading)return Promise.resolve(null);let e=++this.generation;if(this.publish({loading:!0,message:``}),!this.live(e))return Promise.resolve(null);let t=W(this.owner).then(t=>this.live(e)?(this.publish({issuerSession:t}),t):null).catch(()=>(this.live(e)&&this.publish({message:p(`d`)}),null)).finally(()=>{this.live(e)&&this.publish({loading:!1}),this.opening===t&&(this.opening=void 0)});return this.opening=t,t}async loadTargets(e){let t=this.value.issuerSession;if(!this.editable()||!t)return;let n=++this.generation;this.#e=null,this.recipientId=null,this.publish({targets:null,target:null,invitations:null,preview:null,recipientSession:null,handoffToken:null,result:null,loading:!0,message:``});try{let r=await q(this.owner,t,e);this.live(n)&&this.publish({targets:r})}catch{this.live(n)&&this.publish({message:p(`e`)})}finally{this.live(n)&&this.publish({loading:!1})}}select(e){if(!this.editable())return;let t=this.value.targets?.items.find(t=>t.tenantId===e);t&&(this.generation++,this.#e=null,this.recipientId=null,this.publish({target:t,invitations:null,preview:null,recipientSession:null,result:null,handoffToken:null,loading:!1,message:``}))}async loadInvitations(e,t){let{issuerSession:n,target:r}=this.value,i=r?.capabilities.find(t=>t.operation===e);if(!this.editable()||!n||!r||!i)return;let a=++this.generation;this.publish({invitations:null,loading:!0,handoffToken:null,result:null,message:``});try{let o=await J(this.owner,n,r.tenantId,e,t);E(w(o.roles,i.roles)),this.live(a)&&this.publish({invitations:o})}catch{this.live(a)&&this.publish({message:p(`f`)})}finally{this.live(a)&&this.publish({loading:!1})}}prepare(e){let{issuerSession:t,target:n,invitations:r}=this.value;if(!this.editable()||this.value.loading||!t||t.expiresAt<=Date.now()||!n)return!1;try{E(F(e)&&l.includes(e.operation));let i=structuredClone(e),a=n.capabilities.find(e=>e.operation===i.operation),o=i.operation===`issueInvitation`?n.tenant:r?.tenant;if(E(a&&i.tenantId===n.tenantId&&o&&o.version===i.expectedTenantVersion&&(i.operation===`revokeInvitation`||o.status===`active`)),i.operation!==`issueInvitation`){let e=r?.items.find(e=>e.invitation.invitationId===i.invitationId);E(r?.operation===i.operation&&w(r.roles,a.roles)&&e&&e.invitation.status===`pending`&&e.invitation.version===i.expectedInvitationVersion&&e.membership.membershipId===i.membershipId&&e.membership.version===i.expectedMembershipVersion&&e.invitation.roles.every(e=>a.roles.includes(e)))}if(`roles`in i){let e=Date.now();E(i.roles.every(e=>a.roles.includes(e))&&i.redeemUntil>e&&i.redeemUntil-e<=t.maxRedemptionLifetimeMs&&i.validUntil-e<=t.maxMembershipLifetimeMs)}let s=T({idempotencyKey:crypto.randomUUID(),intent:i});return this.generation++,this.#e=null,this.recipientId=null,this.publish({attempt:s,phase:`review`,preview:null,recipientSession:null,handoffToken:null,result:null,message:``}),!0}catch{return!1}}async previewToken(e){if(!this.editable())return;let t=++this.generation,n=D(e);if(this.#e=null,this.recipientId=n,this.publish({preview:null,recipientSession:null,target:null,invitations:null,result:null,handoffToken:null,loading:!!n,message:``}),this.live(t)){if(!n)this.publish({message:p(`g`)});else{this.#e=e,e=``;try{let e=await G(this.owner,n);if(!this.live(t)||(E(e&&this.#e),this.publish({recipientSession:e}),!this.live(t)))return;let r=await Y(this.owner,e,this.#e);if(!this.live(t))return;E(this.#e);let i=T({idempotencyKey:crypto.randomUUID(),intent:structuredClone(r.intent)});this.publish({preview:r,attempt:i,phase:`review`,loading:!1})}catch{this.live(t)&&(this.#e=null,this.publish({message:p(`h`)}))}finally{this.live(t)&&this.publish({loading:!1})}}}}cancelReview(){this.value.phase===`review`&&this.clearOperation()}clearSecret(){this.#e=null,this.current()&&(this.locked()||(this.generation++,this.opening=void 0,M(this.value.attempt?.intent)&&this.publish({attempt:null,phase:`idle`,preview:null}),this.publish({loading:!1})),this.publish({handoffToken:null}))}clearOperation(){this.current()&&!this.locked()&&(this.generation++,this.opening=void 0,this.#e=null,this.recipientId=null,this.publish({invitations:null,recipientSession:null,preview:null,attempt:null,result:null,handoffToken:null,phase:`idle`,loading:!1,message:``}))}complete(e){this.#e=null;let t=!(`change`in e.result),n=!t&&e.result.change.operation!==`revokeInvitation`&&!e.token;if(this.publish({phase:`idle`,attempt:null,result:e.result,handoffToken:e.token??null,targets:null,target:null,invitations:null,message:p(t?`i`:n?`j`:`k`)}),t&&this.current()&&this.onAccepted)try{Promise.resolve(this.onAccepted(e.result)).catch(()=>{})}catch{}}async execute(){let{attempt:e,phase:t,preview:n}=this.value;if(!this.current()||t!==`review`||this.value.loading||!e)return;let r=M(e.intent),i=r?this.value.recipientSession:this.value.issuerSession;if(!i||i.expiresAt<=Date.now()){this.publish({message:p(`l`)});return}if(r&&(!this.#e||!n||n.redeemUntil<=Date.now())){this.clearOperation(),this.publish({message:p(`m`)});return}let a=++this.generation;if(this.publish({phase:`executing`,message:``}),!this.live(a,e))return;let o=Z(this.owner,i,e,r?this.#e:void 0,n);this.#e=null;try{let t=await o;this.live(a,e)&&this.complete(t)}catch(t){if(!this.live(a,e))return;this.publish(t instanceof m&&t.outcome===`not_applied`?{phase:`idle`,attempt:null,preview:null,targets:null,target:null,invitations:null,message:p(`n`)}:{phase:`unknown`,message:p(`o`)})}}async check(){let{attempt:e,phase:t,preview:n}=this.value,r=M(e?.intent)?this.value.recipientSession:this.value.issuerSession;if(!this.current()||t!==`unknown`||this.value.loading||!e||!r)return;let i=++this.generation;if(this.publish({phase:`checking`,message:``}),this.live(i,e))try{let t=await Q(this.owner,r,e,n);if(!this.live(i,e))return;t?this.complete({result:t}):this.publish({phase:`unknown`,message:p(`.m`)})}catch{this.live(i,e)&&this.publish({phase:`unknown`,message:p(`.n`)})}}async recoverContext(){let{phase:e,attempt:t}=this.value;if(!this.current()||this.value.loading||e===`executing`||e===`checking`)return;let n=t?M(t.intent):!!this.recipientId,r=n?t?.intent?.invitationId??this.recipientId:null;if(n?!r:!this.value.issuerSession)return;let i=++this.generation;if(this.publish({loading:!0,targets:null,target:null,invitations:null}),this.live(i))try{let e=n?await G(this.owner,r):await W(this.owner);E(e),this.live(i)&&this.publish({...n?{recipientSession:e}:{issuerSession:e},message:p(t?`p`:`q`)})}catch{this.live(i)&&this.publish({message:p(`.o`)})}finally{this.live(i)&&this.publish({loading:!1})}}};export{d as i,D as n,M as r,ee as t};
2
+ //# sourceMappingURL=tenantInvitations-HHmh2_-4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantInvitations-HHmh2_-4.js","names":["defineMessages","invitationUnresolved","invitationAdmitted","fetchServer","subscribeSessionIdentity","sessionIdentity","captureAccountIdentity","isTenantName","assertAccountCurrent","INVITATION_ISSUER_OPERATIONS","INVITATION_EMAIL_PRINCIPAL","INVITATION_HTTP_ROOT","INVITATION_HTTP_HEADER","say","TenantInvitationError","outcome","object","v","exact","keys","k","optional","id","max","uuid","tenantSelector","version","time","positive","roles","minimum","r","sameRoles","a","b","frozen","requireValid","valid","parseInvitationTokenId","token","tenant","intentCommon","intentPair","intentTerms","recipientStep","intent","emailAddress","issuePrincipal","intentShape","issue","reissue","byEmail","pair","i","m","transitioned","before","key","field","value","updated","after","receiptFields","receipt","result","attempt","claimed","preview","c","owner","readResponse","maximum","length","response","reader","decoder","size","text","done","request","dispatched","open","route","post","session","init","body","query","verify","account","app","context","name","data","error","openSession","invitationId","s","issuer","openInvitationIssuer","openInvitationRecipient","page","listInvitationTargets","p","t","listInvitations","tenantId","operation","previewInvitation","validAttempt","executeInvitation","parsed","statusInvitation","empty","TenantInvitationsController","onAccepted","listener","ticket","patch","#inputToken","pending","targets","target","capability","invitations","input","currentTenant","old","now","accepted","reply","lostHandoff","phase","recipient","found"],"sources":["../../../src/shared/tenantInvitations.ts","../../../src/client/copy/tenancy/tenantInvitations.ts","../../../src/client/tenantInvitations.ts"],"sourcesContent":["import type { AdministrationMembershipImage, AdministrationOwner, AdministrationTenantImage } from './tenantAdministration.js';\n\n/** Native-account enrollment. An invitation names an existing account, or an\n * email address whose account the invitee creates when claiming it; the\n * address is not verified. No credential is durable intent. */\nexport const INVITATION_ISSUER_OPERATIONS = Object.freeze(['issueInvitation', 'revokeInvitation', 'reissueInvitation'] as const);\nexport type InvitationIssuerOperation = (typeof INVITATION_ISSUER_OPERATIONS)[number];\n/** `claimInvitation` accepts an email invitation for a real account: the\n * placeholder pair ends and the same terms begin, accepted, for the account. */\nexport type InvitationOperation = InvitationIssuerOperation | 'acceptInvitation' | 'claimInvitation';\n/** The principal an email invitation's reservation is held for: `email:<address>`. */\nexport const INVITATION_EMAIL_PRINCIPAL = 'email:';\nexport type InvitationIssuerIntent =\n | Readonly<{\n operation: 'issueInvitation';\n tenantId: string;\n expectedTenantVersion: string;\n accountId: string;\n roles: readonly string[];\n redeemUntil: number;\n validUntil: number;\n }>\n | Readonly<{\n operation: 'issueInvitation';\n tenantId: string;\n expectedTenantVersion: string;\n email: string;\n roles: readonly string[];\n redeemUntil: number;\n validUntil: number;\n }>\n | Readonly<{\n operation: 'revokeInvitation';\n tenantId: string;\n expectedTenantVersion: string;\n invitationId: string;\n expectedInvitationVersion: string;\n membershipId: string;\n expectedMembershipVersion: string;\n }>\n | Readonly<{\n operation: 'reissueInvitation';\n tenantId: string;\n expectedTenantVersion: string;\n invitationId: string;\n expectedInvitationVersion: string;\n membershipId: string;\n expectedMembershipVersion: string;\n roles: readonly string[];\n redeemUntil: number;\n validUntil: number;\n }>;\ninterface RecipientIntentFields {\n readonly tenantId: string;\n readonly expectedTenantVersion: string;\n readonly invitationId: string;\n readonly expectedInvitationVersion: string;\n readonly membershipId: string;\n readonly expectedMembershipVersion: string;\n}\n/** A recipient's step: accepting an account invitation, or claiming an email\n * one. Two constituents, one literal each, so a check on `operation` narrows. */\nexport type InvitationAcceptanceIntent =\n | Readonly<RecipientIntentFields & { operation: 'acceptInvitation' }>\n | Readonly<RecipientIntentFields & { operation: 'claimInvitation' }>;\nexport type InvitationIntent = InvitationIssuerIntent | InvitationAcceptanceIntent;\n/** The signed-out claim's answer. `result` is the recipient's receipt projection. */\nexport interface InvitationClaimReply {\n readonly outcome: 'applied';\n readonly account: 'created';\n readonly email: string;\n readonly result: InvitationAcceptanceResult;\n}\n/** Issuer-visible meaning; neither the secret nor its digest is a public field. */\nexport interface InvitationImage {\n readonly invitationId: string;\n readonly version: string;\n readonly tenantId: string;\n readonly membershipId: string;\n readonly accountId: string;\n readonly inviterId: string;\n readonly roles: readonly string[];\n readonly expectedTenantVersion: string;\n readonly policyId: string;\n readonly policyVersion: string;\n readonly issuanceOperation: 'issueInvitation' | 'reissueInvitation';\n readonly createdAt: number;\n readonly redeemUntil: number;\n readonly validUntil: number;\n readonly status: 'pending' | 'accepted' | 'revoked';\n}\nexport interface InvitationPair {\n readonly invitation: InvitationImage;\n readonly membership: AdministrationMembershipImage;\n}\n/** Reissue retains the terminated pair as well as the newly reserved pair. */\nexport interface InvitationChange {\n readonly operation: InvitationOperation;\n readonly tenant: AdministrationTenantImage;\n readonly before: InvitationPair | null;\n readonly after: InvitationPair;\n readonly revoked?: InvitationPair;\n}\nexport interface InvitationResult {\n readonly receiptId: string;\n readonly requestId: string;\n readonly completedAt: string;\n readonly change: InvitationChange;\n readonly replayed: boolean;\n}\nexport interface InvitationAttempt {\n readonly idempotencyKey: string;\n readonly intent: InvitationIntent;\n}\nexport interface InvitationRequest extends InvitationAttempt, AdministrationOwner {}\n/** One-time synthetic handoff only; never include token in status or a receipt. */\nexport interface InvitationIssueReply {\n readonly result: InvitationResult;\n readonly token?: string;\n}\n/** Recipient receipt projection excludes issuer identity, policy and audit images. */\nexport interface InvitationAcceptanceResult {\n readonly receiptId: string;\n readonly requestId: string;\n readonly completedAt: string;\n readonly replayed: boolean;\n readonly invitationId: string;\n readonly tenantId: string;\n readonly membershipId: string;\n readonly membershipVersion: string;\n readonly roles: readonly string[];\n readonly validUntil: number;\n readonly status: 'accepted';\n}\nexport interface InvitationExecutionReply {\n readonly result: InvitationResult | InvitationAcceptanceResult;\n readonly token?: string;\n}\n/** Distinct owner from issuer administration and business tenant selection. */\nexport interface InvitationRecipientSession {\n readonly appId: string;\n readonly accountId: string;\n readonly context: string;\n readonly expiresAt: number;\n}\nexport interface InvitationIssuerSession extends InvitationRecipientSession {\n readonly maxMembershipLifetimeMs: number;\n readonly maxRedemptionLifetimeMs: number;\n readonly maxPendingPerTenant: number;\n}\nexport interface InvitationPageRequest extends AdministrationOwner {\n readonly after?: string;\n readonly limit?: number;\n}\nexport interface InvitationTarget {\n readonly tenantId: string;\n readonly tenant: AdministrationTenantImage | null;\n /** What the tenant is called, where the server could say (the profile's record name); words only, every request names the id. */\n readonly name?: string;\n readonly capabilities: readonly Readonly<{ operation: InvitationIssuerOperation; roles: readonly string[] }>[];\n}\nexport interface InvitationTargetPage {\n readonly items: readonly InvitationTarget[];\n readonly next: string | null;\n}\nexport interface InvitationListRequest extends InvitationPageRequest {\n readonly tenantId: string;\n readonly operation: 'revokeInvitation' | 'reissueInvitation';\n}\nexport interface InvitationListPage {\n readonly tenant: AdministrationTenantImage | null;\n readonly operation: 'revokeInvitation' | 'reissueInvitation';\n readonly roles: readonly string[];\n readonly items: readonly InvitationPair[];\n readonly next: string | null;\n}\nexport const INVITATION_HTTP_ROOT = '/api/tenant/invitations';\nexport const INVITATION_HTTP_HEADER = 'x-mistri-invitation-context';\nexport interface InvitationPreview {\n readonly intent: InvitationAcceptanceIntent;\n readonly roles: readonly string[];\n readonly redeemUntil: number;\n readonly validUntil: number;\n}\n","/** What tenantInvitations says, in the tenancy room (packages/kit/src/client/messages.ts says how the catalog is split). */\nimport { defineMessages } from '@mistriwork/kit/client/messages.js';\n\nexport const say = defineMessages({\n theInvitationChangeIsUnconfirmed: 'The invitation change is unconfirmed. Keep this attempt and check its status.',\n invitationAccessCouldNotBeVerified: 'Invitation access could not be verified. Refresh access and review the current information.',\n invalidInvitationResponse: 'Invalid invitation response',\n invitationIssuerAccessCould: 'Invitation issuer access could not be loaded.',\n theAuthorizedInvitationTargets: 'The authorized invitation targets could not be loaded.',\n theAuthorizedInvitationList: 'The authorized invitation list could not be loaded. Refresh the targets before continuing.',\n enterAnInvitationToken: 'Enter a canonical twi1 invitation token.',\n theInvitationCouldNotBeReviewed: 'The invitation could not be reviewed. Check access and enter the token again.',\n invitationAcceptanceConfirmedRefresh: 'Invitation acceptance confirmed. Refresh authorized discovery to choose a tenant.',\n issuanceConfirmedTheOriginal:\n 'Issuance confirmed. The original token cannot be recovered. Load the current invitation list and explicitly reissue.',\n invitationChangeConfirmedRefresh: 'Invitation change confirmed. Refresh the authorized list before another change.',\n refreshInvitationAccessExplicitly: 'Refresh invitation access explicitly before continuing.',\n reviewTheInvitationAgain: 'Review the invitation again before accepting.',\n theChangeWasNotApplied: 'The change was not applied. Refresh current information and review a new attempt.',\n theChangeIsUnconfirmedCheckThisExact: 'The change is unconfirmed. Check this exact attempt’s status; do not submit it again.',\n accessRefreshedTheOriginal: 'Access refreshed. The original attempt is retained.',\n accessRefreshedLoadTheCurrent: 'Access refreshed. Load the current authorized information.',\n});\n","import {\n INVITATION_EMAIL_PRINCIPAL,\n INVITATION_HTTP_HEADER,\n INVITATION_HTTP_ROOT,\n INVITATION_ISSUER_OPERATIONS,\n type InvitationAcceptanceIntent,\n type InvitationAcceptanceResult,\n type InvitationAttempt,\n type InvitationExecutionReply,\n type InvitationIntent,\n type InvitationIssuerIntent,\n type InvitationIssuerSession,\n type InvitationListPage,\n type InvitationPair,\n type InvitationPreview,\n type InvitationRecipientSession,\n type InvitationResult,\n type InvitationTarget,\n type InvitationTargetPage,\n} from '../shared/tenantInvitations.js';\nimport type { AdministrationTenantImage } from '../shared/tenantAdministration.js';\nimport {\n assertAccountCurrent,\n captureAccountIdentity,\n sessionIdentity,\n subscribeSessionIdentity,\n type SessionIdentitySnapshot,\n} from '@mistriwork/kit/client/sessionIdentity.js';\nimport { say } from './copy/tenancy/tenantInvitations.js';\nimport { isTenantName } from './tenantNames.js';\nimport { invitationAdmitted as admitted, invitationUnresolved as unresolved } from './tenantAccountState.js';\nimport { fetchServer } from '@mistriwork/kit/client/transport.js';\nexport { hasInvitationSession, hasUnresolvedInvitations } from './tenantAccountState.js';\n\nclass TenantInvitationError extends Error {\n constructor(readonly outcome: 'not_applied' | 'unknown') {\n super(outcome === 'unknown' ? say('theInvitationChangeIsUnconfirmed') : say('invitationAccessCouldNotBeVerified'));\n }\n}\n\nconst object = (v: unknown): v is Record<string, unknown> => !!v && typeof v === 'object' && !Array.isArray(v);\nfunction exact(v: unknown, keys: readonly string[], optional: readonly string[] = []): v is Record<string, unknown> {\n return (\n object(v) &&\n keys.every((k) => Object.hasOwn(v, k)) &&\n Reflect.ownKeys(v).every(\n (k) => typeof k === 'string' && (keys.includes(k) || optional.includes(k)) && 'value' in Object.getOwnPropertyDescriptor(v, k)!,\n )\n );\n}\nconst id = (v: unknown, max = 256): v is string =>\n typeof v === 'string' &&\n v.length > 0 &&\n v.length <= max &&\n v.trim() === v &&\n !/[\\p{Cc}\\uD800-\\uDFFF]/u.test(v) &&\n new TextEncoder().encode(v).length <= max;\nconst uuid = (v: unknown): v is string =>\n typeof v === 'string' && /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(v);\nconst tenantSelector = (v: unknown): v is string => typeof v === 'string' && /^[a-z0-9][a-z0-9_-]{0,127}$/.test(v);\nconst version = (v: unknown): v is string => typeof v === 'string' && /^[1-9][0-9]{0,127}$/.test(v);\nconst time = (v: unknown): v is number => Number.isSafeInteger(v) && (v as number) >= 0;\nconst positive = (v: unknown): v is number => time(v) && v > 0;\nconst roles = (v: unknown, minimum = 0): v is string[] =>\n Array.isArray(v) && v.length >= minimum && v.length <= 256 && v.every((r) => id(r)) && new Set(v).size === v.length;\nconst sameRoles = (a: readonly string[], b: readonly string[]) => a.length === b.length && a.every((r) => b.includes(r));\nfunction frozen<T>(v: T): T {\n if (v && typeof v === 'object') {\n Object.values(v).forEach(frozen);\n Object.freeze(v);\n }\n return v;\n}\nfunction requireValid(valid: unknown): asserts valid {\n if (!valid) throw new Error(say('invalidInvitationResponse'));\n}\n\n/** Syntax only. The last base64url character must have zero padding bits; no digest or authority is derived here. */\nexport function parseInvitationTokenId(token: unknown): string | null {\n if (\n typeof token !== 'string' ||\n token.length !== 85 ||\n token.slice(0, 5) !== 'twi1.' ||\n token[41] !== '.' ||\n !uuid(token.slice(5, 41)) ||\n !/^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$/.test(token.slice(42))\n )\n return null;\n return token.slice(5, 41);\n}\nfunction tenant(v: unknown): v is AdministrationTenantImage {\n return (\n exact(v, ['tenantId', 'status', 'version']) &&\n tenantSelector(v.tenantId) &&\n version(v.version) &&\n ['active', 'suspended', 'closed'].includes(v.status as string)\n );\n}\nconst intentCommon = ['operation', 'tenantId', 'expectedTenantVersion'];\nconst intentPair = ['invitationId', 'expectedInvitationVersion', 'membershipId', 'expectedMembershipVersion'];\nconst intentTerms = ['roles', 'redeemUntil', 'validUntil'];\n/** A recipient's step: accepting an account invitation, or claiming an email one. */\nexport const recipientStep = (intent: InvitationIntent | undefined): boolean =>\n intent?.operation === 'acceptInvitation' || intent?.operation === 'claimInvitation';\n/* An address as the server keeps it: lower-cased, with an @ and a dot after it.\n The server's own check is narrower and decides; this only keeps a typo local. */\nconst emailAddress = (v: unknown): v is string =>\n typeof v === 'string' && v.length <= 254 && v === v.toLowerCase() && /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(v);\n/** The principal an issuance reserves for: the account, or the address's `email:` principal. */\nconst issuePrincipal = (intent: Record<string, unknown>) =>\n typeof intent.email === 'string' ? `${INVITATION_EMAIL_PRINCIPAL}${intent.email}` : intent.accountId;\nfunction intentShape(v: unknown): v is InvitationIntent {\n if (!object(v)) return false;\n const issue = v.operation === 'issueInvitation',\n reissue = v.operation === 'reissueInvitation';\n const byEmail = issue && Object.hasOwn(v, 'email');\n return (\n (issue || reissue || v.operation === 'revokeInvitation' || v.operation === 'acceptInvitation' || v.operation === 'claimInvitation') &&\n exact(v, [...intentCommon, ...(issue ? [byEmail ? 'email' : 'accountId'] : intentPair), ...(issue || reissue ? intentTerms : [])]) &&\n tenantSelector(v.tenantId) &&\n version(v.expectedTenantVersion) &&\n (issue\n ? byEmail\n ? emailAddress(v.email)\n : id(v.accountId, 1024) && !(v.accountId as string).startsWith(INVITATION_EMAIL_PRINCIPAL)\n : uuid(v.invitationId) && uuid(v.membershipId) && version(v.expectedInvitationVersion) && version(v.expectedMembershipVersion)) &&\n (!(issue || reissue) || (roles(v.roles, 1) && positive(v.redeemUntil) && positive(v.validUntil) && v.redeemUntil <= v.validUntil))\n );\n}\nfunction pair(v: unknown): v is InvitationPair {\n if (!exact(v, ['invitation', 'membership'])) return false;\n const i = v.invitation,\n m = v.membership;\n return (\n exact(i, [\n 'invitationId',\n 'version',\n 'tenantId',\n 'membershipId',\n 'accountId',\n 'inviterId',\n 'roles',\n 'expectedTenantVersion',\n 'policyId',\n 'policyVersion',\n 'issuanceOperation',\n 'createdAt',\n 'redeemUntil',\n 'validUntil',\n 'status',\n ]) &&\n uuid(i.invitationId) &&\n uuid(i.membershipId) &&\n tenantSelector(i.tenantId) &&\n id(i.accountId, 1024) &&\n id(i.inviterId, 1024) &&\n version(i.version) &&\n version(i.expectedTenantVersion) &&\n id(i.policyId) &&\n id(i.policyVersion) &&\n roles(i.roles, 1) &&\n time(i.createdAt) &&\n positive(i.redeemUntil) &&\n positive(i.validUntil) &&\n i.createdAt < i.redeemUntil &&\n i.redeemUntil <= i.validUntil &&\n ['issueInvitation', 'reissueInvitation'].includes(i.issuanceOperation as string) &&\n ['pending', 'accepted', 'revoked'].includes(i.status as string) &&\n exact(m, ['membershipId', 'tenantId', 'accountId', 'status', 'version', 'roles', 'validUntil']) &&\n m.membershipId === i.membershipId &&\n m.tenantId === i.tenantId &&\n m.accountId === i.accountId &&\n m.validUntil === i.validUntil &&\n version(m.version) &&\n roles(m.roles, 1) &&\n sameRoles(m.roles, i.roles) &&\n m.status === ({ pending: 'invited', accepted: 'active', revoked: 'revoked' } as Record<string, string>)[i.status as string]\n );\n}\nfunction transitioned(before: InvitationPair, after: InvitationPair): boolean {\n return (['invitation', 'membership'] as const).every((key) =>\n Object.entries(before[key]).every(([field, value]) => {\n const updated = (after[key] as unknown as Record<string, unknown>)[field];\n return field === 'version'\n ? updated === String(BigInt(value as string) + 1n)\n : field === 'status'\n ? updated === 'revoked'\n : field === 'roles'\n ? sameRoles(value as string[], updated as string[])\n : updated === value;\n }),\n );\n}\nconst receiptFields = ['receiptId', 'requestId', 'completedAt', 'replayed'];\nfunction receipt(v: Record<string, unknown>): boolean {\n return (\n id(v.receiptId, 1024) &&\n id(v.requestId, 1024) &&\n typeof v.replayed === 'boolean' &&\n typeof v.completedAt === 'string' &&\n v.completedAt.length <= 32 &&\n Number.isFinite(Date.parse(v.completedAt)) &&\n new Date(v.completedAt).toISOString() === v.completedAt\n );\n}\nfunction result(\n v: unknown,\n attempt: InvitationAttempt,\n owner: SessionIdentitySnapshot,\n preview?: InvitationPreview | null,\n): InvitationResult | InvitationAcceptanceResult {\n const intent = attempt.intent;\n if (intent.operation === 'acceptInvitation' || intent.operation === 'claimInvitation') {\n // A claim's membership is the account's new one; an acceptance's is the reservation, one version on.\n const claimed = intent.operation === 'claimInvitation';\n requireValid(\n exact(v, [...receiptFields, 'invitationId', 'tenantId', 'membershipId', 'membershipVersion', 'roles', 'validUntil', 'status']) &&\n receipt(v) &&\n v.invitationId === intent.invitationId &&\n v.tenantId === intent.tenantId &&\n (claimed\n ? uuid(v.membershipId) && v.membershipId !== intent.membershipId && v.membershipVersion === '1'\n : v.membershipId === intent.membershipId &&\n version(v.membershipVersion) &&\n v.membershipVersion === String(BigInt(intent.expectedMembershipVersion) + 1n)) &&\n roles(v.roles, 1) &&\n positive(v.validUntil) &&\n v.status === 'accepted' &&\n (!preview || (sameRoles(v.roles as string[], preview.roles) && v.validUntil === preview.validUntil)),\n );\n return frozen(v as unknown as InvitationAcceptanceResult);\n }\n requireValid(exact(v, [...receiptFields, 'change']) && receipt(v));\n const c = v.change;\n requireValid(\n exact(c, ['operation', 'tenant', 'before', 'after'], intent.operation === 'reissueInvitation' ? ['revoked'] : []) &&\n c.operation === intent.operation &&\n tenant(c.tenant) &&\n c.tenant.tenantId === intent.tenantId &&\n c.tenant.version === intent.expectedTenantVersion &&\n pair(c.after) &&\n (c.before === null || pair(c.before)),\n );\n const after = c.after as InvitationPair,\n before = c.before as InvitationPair | null;\n requireValid(after.invitation.tenantId === intent.tenantId && (!before || before.invitation.tenantId === intent.tenantId));\n if (intent.operation === 'issueInvitation' || intent.operation === 'reissueInvitation') {\n const i = after.invitation;\n requireValid(\n (c.tenant as AdministrationTenantImage).status === 'active' &&\n i.status === 'pending' &&\n i.version === '1' &&\n after.membership.version === '1' &&\n i.expectedTenantVersion === intent.expectedTenantVersion &&\n i.issuanceOperation === intent.operation &&\n i.inviterId === owner.accountId &&\n sameRoles(i.roles, intent.roles) &&\n i.redeemUntil === intent.redeemUntil &&\n i.validUntil === intent.validUntil,\n );\n }\n if (intent.operation === 'issueInvitation') requireValid(before === null && after.invitation.accountId === issuePrincipal(intent));\n else {\n requireValid(\n before &&\n before.invitation.status === 'pending' &&\n before.invitation.invitationId === intent.invitationId &&\n before.invitation.version === intent.expectedInvitationVersion &&\n before.membership.membershipId === intent.membershipId &&\n before.membership.version === intent.expectedMembershipVersion,\n );\n if (intent.operation === 'revokeInvitation') requireValid(transitioned(before, after));\n else\n requireValid(\n pair(c.revoked) &&\n transitioned(before, c.revoked) &&\n after.invitation.invitationId !== intent.invitationId &&\n after.membership.membershipId !== intent.membershipId &&\n after.invitation.accountId === before.invitation.accountId,\n );\n }\n return frozen(v as unknown as InvitationResult);\n}\n\n// Bound bytes before JSON parsing, including chunked replies without Content-Length.\nasync function readResponse(response: Response): Promise<unknown> {\n // The server bounds page items at 2,000,000 bytes, before the role ceiling\n // and response envelope. Bound the whole response without rejecting its pages.\n const maximum = 4_194_304,\n length = response.headers.get('content-length');\n requireValid(length === null || (/^[0-9]+$/.test(length) && Number(length) <= maximum));\n requireValid(response.body);\n const reader = response.body.getReader(),\n decoder = new TextDecoder('utf-8', { fatal: true, ignoreBOM: true });\n let size = 0,\n text = '';\n try {\n for (;;) {\n const { done, value } = await reader.read();\n if (done) break;\n size += value.byteLength;\n requireValid(size <= maximum);\n text += decoder.decode(value, { stream: true });\n }\n text += decoder.decode();\n return JSON.parse(text);\n } finally {\n try {\n await reader.cancel();\n } catch {\n /* Cancellation does not settle a mutation. */\n }\n reader.releaseLock();\n }\n}\ntype Route = 'open-issuer' | 'open-recipient' | 'targets' | 'list' | 'preview' | 'execute' | 'status';\nasync function request(\n owner: SessionIdentitySnapshot,\n session: InvitationRecipientSession | null,\n route: Route,\n body?: unknown,\n query: Record<string, string> = {},\n): Promise<{ data: Record<string, unknown>; context: string | null }> {\n let dispatched = false;\n try {\n assertAccountCurrent(owner);\n requireValid(owner.mode === 'authenticated' && id(owner.accountId, 1024) && id(owner.appId));\n const open = route.startsWith('open-'),\n post = route !== 'targets' && route !== 'list';\n requireValid(\n open ||\n (session &&\n session.appId === owner.appId &&\n session.accountId === owner.accountId &&\n id(session.context) &&\n session.expiresAt > Date.now()),\n );\n const init: RequestInit = {\n method: post ? 'POST' : 'GET',\n credentials: 'same-origin',\n cache: 'no-store',\n redirect: 'error',\n signal: AbortSignal.timeout(15_000),\n headers: {\n 'x-mistri-account': owner.accountId!,\n 'x-mistri-app': owner.appId!,\n ...(!open && session ? { [INVITATION_HTTP_HEADER]: session.context } : {}),\n ...(post ? { 'content-type': 'application/json' } : {}),\n },\n ...(post ? { body: JSON.stringify(body ?? {}) } : {}),\n };\n dispatched = true;\n const response = await fetchServer(`${INVITATION_HTTP_ROOT}/${route}?${new URLSearchParams({ app: owner.appId!, ...query })}`, init);\n const verify = () => {\n assertAccountCurrent(owner);\n const account = response.headers.get('x-mistri-account'),\n app = response.headers.get('x-mistri-app');\n const context = response.headers.get(INVITATION_HTTP_HEADER);\n requireValid(\n !(\n ((response.ok || account !== null) && account !== owner.accountId) ||\n ((response.ok || app !== null) && app !== owner.appId) ||\n (!open && (response.ok || context !== null) && context !== session!.context)\n ),\n );\n for (const name of response.headers.keys())\n requireValid(!name.startsWith('x-mistri-') || ['x-mistri-account', 'x-mistri-app', INVITATION_HTTP_HEADER].includes(name));\n };\n verify();\n const data = await readResponse(response);\n verify();\n requireValid(object(data));\n if (!response.ok) {\n if (\n route === 'execute' &&\n exact(data, ['error', 'code', 'outcome']) &&\n id(data.error, 1024) &&\n data.code === 'tenant_invitation_unavailable' &&\n data.outcome === 'not_applied'\n )\n throw new TenantInvitationError('not_applied');\n throw new Error();\n }\n return { data, context: response.headers.get(INVITATION_HTTP_HEADER) };\n } catch (error) {\n if (route !== 'status' && error instanceof TenantInvitationError) throw error;\n throw new TenantInvitationError(route === 'status' || (route === 'execute' && dispatched) ? 'unknown' : 'not_applied');\n }\n}\nasync function openSession(\n owner: SessionIdentitySnapshot,\n invitationId?: string,\n): Promise<InvitationIssuerSession | InvitationRecipientSession | null> {\n try {\n requireValid(invitationId === undefined || uuid(invitationId));\n const { data, context } = await request(\n owner,\n null,\n invitationId === undefined ? 'open-issuer' : 'open-recipient',\n invitationId === undefined ? {} : { invitationId },\n );\n requireValid(exact(data, ['session']));\n if (data.session === null && context === null) return null;\n const s = data.session,\n issuer = invitationId === undefined;\n requireValid(\n exact(s, [\n 'appId',\n 'accountId',\n 'context',\n 'expiresAt',\n ...(issuer ? ['maxMembershipLifetimeMs', 'maxRedemptionLifetimeMs', 'maxPendingPerTenant'] : []),\n ]) &&\n s.appId === owner.appId &&\n s.accountId === owner.accountId &&\n id(s.context) &&\n s.context === context &&\n positive(s.expiresAt) &&\n s.expiresAt > Date.now() &&\n (!issuer || (positive(s.maxMembershipLifetimeMs) && positive(s.maxRedemptionLifetimeMs) && positive(s.maxPendingPerTenant))),\n );\n return frozen(s as unknown as InvitationIssuerSession | InvitationRecipientSession);\n } catch {\n throw new TenantInvitationError('not_applied');\n }\n}\nexport const openInvitationIssuer = (owner: SessionIdentitySnapshot): Promise<InvitationIssuerSession | null> =>\n openSession(owner) as Promise<InvitationIssuerSession | null>;\nexport const openInvitationRecipient = (owner: SessionIdentitySnapshot, invitationId: string): Promise<InvitationRecipientSession | null> =>\n openSession(owner, invitationId);\nfunction page(v: unknown): v is Record<string, unknown> & { items: unknown[]; next: string | null } {\n return object(v) && Array.isArray(v.items) && v.items.length <= 20 && (v.next === null || id(v.next, 128));\n}\nexport async function listInvitationTargets(\n owner: SessionIdentitySnapshot,\n session: InvitationIssuerSession,\n after?: string,\n): Promise<InvitationTargetPage> {\n try {\n requireValid(after === undefined || id(after, 128));\n const { data } = await request(owner, session, 'targets', undefined, { limit: '20', ...(after === undefined ? {} : { after }) });\n const p = data.page;\n requireValid(\n exact(data, ['page']) &&\n exact(p, ['items', 'next']) &&\n page(p) &&\n p.items.every(\n (t) =>\n exact(t, ['tenantId', 'tenant', 'capabilities'], ['name']) &&\n tenantSelector(t.tenantId) &&\n (t.name === undefined || isTenantName(t.name)) &&\n (t.tenant === null || (tenant(t.tenant) && t.tenant.tenantId === t.tenantId)) &&\n Array.isArray(t.capabilities) &&\n t.capabilities.length <= 3 &&\n t.capabilities.every(\n (c) => exact(c, ['operation', 'roles']) && INVITATION_ISSUER_OPERATIONS.includes(c.operation as never) && roles(c.roles),\n ) &&\n new Set(t.capabilities.map((c) => c.operation)).size === t.capabilities.length,\n ) &&\n new Set(p.items.map((t) => (t as InvitationTarget).tenantId)).size === p.items.length,\n );\n return frozen(p as unknown as InvitationTargetPage);\n } catch {\n throw new TenantInvitationError('not_applied');\n }\n}\nexport async function listInvitations(\n owner: SessionIdentitySnapshot,\n session: InvitationIssuerSession,\n tenantId: string,\n operation: 'revokeInvitation' | 'reissueInvitation',\n after?: string,\n): Promise<InvitationListPage> {\n try {\n requireValid(\n tenantSelector(tenantId) && ['revokeInvitation', 'reissueInvitation'].includes(operation) && (after === undefined || id(after, 128)),\n );\n const { data } = await request(owner, session, 'list', undefined, {\n tenantId,\n operation,\n limit: '20',\n ...(after === undefined ? {} : { after }),\n });\n const p = data.page;\n requireValid(\n exact(data, ['page']) &&\n exact(p, ['tenant', 'operation', 'roles', 'items', 'next']) &&\n page(p) &&\n p.operation === operation &&\n roles(p.roles) &&\n (p.tenant === null || (tenant(p.tenant) && p.tenant.tenantId === tenantId)) &&\n (p.tenant !== null || p.items.length === 0) &&\n p.items.every(\n (i) =>\n pair(i) &&\n i.invitation.tenantId === tenantId &&\n i.invitation.status === 'pending' &&\n i.invitation.roles.every((r) => (p.roles as string[]).includes(r)),\n ) &&\n new Set(p.items.map((i) => (i as InvitationPair).invitation.invitationId)).size === p.items.length &&\n new Set(p.items.map((i) => (i as InvitationPair).membership.membershipId)).size === p.items.length,\n );\n return frozen(p as unknown as InvitationListPage);\n } catch {\n throw new TenantInvitationError('not_applied');\n }\n}\nexport async function previewInvitation(\n owner: SessionIdentitySnapshot,\n session: InvitationRecipientSession,\n token: string,\n): Promise<InvitationPreview> {\n try {\n const invitationId = parseInvitationTokenId(token);\n requireValid(invitationId);\n const { data } = await request(owner, session, 'preview', { token });\n const p = data.preview;\n requireValid(\n exact(data, ['preview']) &&\n exact(p, ['intent', 'roles', 'redeemUntil', 'validUntil']) &&\n intentShape(p.intent) &&\n recipientStep(p.intent) &&\n (p.intent as InvitationAcceptanceIntent).invitationId === invitationId &&\n roles(p.roles, 1) &&\n positive(p.redeemUntil) &&\n positive(p.validUntil) &&\n p.redeemUntil > Date.now() &&\n p.redeemUntil <= p.validUntil,\n );\n return frozen(p as unknown as InvitationPreview);\n } catch {\n throw new TenantInvitationError('not_applied');\n }\n}\nfunction validAttempt(attempt: InvitationAttempt) {\n requireValid(exact(attempt, ['idempotencyKey', 'intent']) && uuid(attempt.idempotencyKey) && intentShape(attempt.intent));\n}\nexport async function executeInvitation(\n owner: SessionIdentitySnapshot,\n session: InvitationRecipientSession,\n attempt: InvitationAttempt,\n token?: string,\n preview?: InvitationPreview | null,\n): Promise<InvitationExecutionReply> {\n try {\n validAttempt(attempt);\n requireValid(\n recipientStep(attempt.intent)\n ? parseInvitationTokenId(token) === (attempt.intent as InvitationAcceptanceIntent).invitationId\n : token === undefined,\n );\n } catch {\n throw new TenantInvitationError('not_applied');\n }\n const { data } = await request(owner, session, 'execute', { ...attempt, ...(token === undefined ? {} : { token }) });\n try {\n const issuance = attempt.intent.operation === 'issueInvitation' || attempt.intent.operation === 'reissueInvitation';\n requireValid(exact(data, ['outcome', 'result'], issuance ? ['token'] : []) && data.outcome === 'applied');\n const parsed = result(data.result, attempt, owner, preview);\n requireValid(\n !Object.hasOwn(data, 'token') ||\n ('change' in parsed && !parsed.replayed && parseInvitationTokenId(data.token) === parsed.change.after.invitation.invitationId),\n );\n return frozen({ result: parsed, ...(Object.hasOwn(data, 'token') ? { token: data.token as string } : {}) });\n } catch {\n throw new TenantInvitationError('unknown');\n }\n}\nexport async function statusInvitation(\n owner: SessionIdentitySnapshot,\n session: InvitationRecipientSession,\n attempt: InvitationAttempt,\n preview?: InvitationPreview | null,\n): Promise<InvitationResult | InvitationAcceptanceResult | null> {\n try {\n validAttempt(attempt);\n const { data } = await request(owner, session, 'status', attempt);\n requireValid(exact(data, ['status', 'outcome', 'result']));\n if (data.status === 'not_found' && data.outcome === 'unknown' && data.result === null) return null;\n requireValid(data.status === 'completed' && data.outcome === 'applied');\n return result(data.result, attempt, owner, preview);\n } catch {\n throw new TenantInvitationError('unknown');\n }\n}\n\ninterface InvitationView {\n readonly issuerSession: InvitationIssuerSession | null;\n readonly recipientSession: InvitationRecipientSession | null;\n readonly targets: InvitationTargetPage | null;\n readonly target: InvitationTarget | null;\n readonly invitations: InvitationListPage | null;\n readonly preview: InvitationPreview | null;\n readonly phase: 'idle' | 'review' | 'executing' | 'unknown' | 'checking';\n readonly loading: boolean;\n readonly attempt: InvitationAttempt | null;\n readonly result: InvitationResult | InvitationAcceptanceResult | null;\n readonly handoffToken: string | null;\n readonly message: string;\n}\nconst empty = (): InvitationView =>\n frozen({\n issuerSession: null,\n recipientSession: null,\n targets: null,\n target: null,\n invitations: null,\n preview: null,\n phase: 'idle',\n loading: false,\n attempt: null,\n result: null,\n handoffToken: null,\n message: '',\n });\n\n/** One native account root across business selection and dialog lifetimes. The shell owns exit guards. */\nexport class TenantInvitationsController {\n readonly owner: SessionIdentitySnapshot;\n private value = empty();\n private listeners = new Set<() => void>();\n private retired = false;\n private generation = 0;\n private opening?: Promise<InvitationIssuerSession | null>;\n private unsubscribe: () => void;\n #inputToken: string | null = null;\n private recipientId: string | null = null;\n constructor(\n owner = captureAccountIdentity(),\n private readonly onAccepted?: (result: InvitationAcceptanceResult) => void | Promise<void>,\n ) {\n this.owner = captureAccountIdentity(owner);\n this.unsubscribe = subscribeSessionIdentity(() => {\n if (!this.current()) this.retire();\n });\n }\n snapshot = (): InvitationView => this.value;\n subscribe = (listener: () => void): (() => void) => {\n this.listeners.add(listener);\n return () => {\n this.listeners.delete(listener);\n };\n };\n current = (): boolean => !this.retired && this.owner === captureAccountIdentity() && sessionIdentity().mode === 'authenticated';\n locked = (): boolean => ['executing', 'unknown', 'checking'].includes(this.value.phase);\n private editable(): boolean {\n return this.current() && this.value.phase === 'idle';\n }\n private live(ticket: number, attempt?: InvitationAttempt): boolean {\n return this.current() && ticket === this.generation && (!attempt || this.value.attempt === attempt);\n }\n private publish(patch: Partial<InvitationView>) {\n if (!this.current()) return;\n this.value = frozen({ ...this.value, ...patch });\n if (this.value.issuerSession || this.value.recipientSession) admitted.add(this);\n else admitted.delete(this);\n if (this.locked()) unresolved.add(this);\n else unresolved.delete(this);\n for (const listener of this.listeners) {\n try {\n listener();\n } catch {\n /* Observers cannot change operation outcomes. */\n }\n }\n }\n retire(): void {\n if (this.retired) return;\n this.retired = true;\n this.generation++;\n this.unsubscribe();\n unresolved.delete(this);\n admitted.delete(this);\n this.opening = undefined;\n this.#inputToken = null;\n this.recipientId = null;\n this.value = empty();\n for (const listener of this.listeners) {\n try {\n listener();\n } catch {\n /* Retirement must clear every secret. */\n }\n }\n this.listeners.clear();\n }\n openIssuer(): Promise<InvitationIssuerSession | null> {\n if (!this.current()) return Promise.resolve(null);\n if (this.opening) return this.opening;\n if (this.value.issuerSession) return Promise.resolve(this.value.issuerSession);\n if (!this.editable() || this.value.loading) return Promise.resolve(null);\n const ticket = ++this.generation;\n this.publish({ loading: true, message: '' });\n if (!this.live(ticket)) return Promise.resolve(null);\n const pending = openInvitationIssuer(this.owner)\n .then((session) => {\n if (!this.live(ticket)) return null;\n this.publish({ issuerSession: session });\n return session;\n })\n .catch(() => {\n if (this.live(ticket)) this.publish({ message: say('invitationIssuerAccessCould') });\n return null;\n })\n .finally(() => {\n if (this.live(ticket)) this.publish({ loading: false });\n if (this.opening === pending) this.opening = undefined;\n });\n this.opening = pending;\n return pending;\n }\n async loadTargets(after?: string): Promise<void> {\n const session = this.value.issuerSession;\n if (!this.editable() || !session) return;\n const ticket = ++this.generation;\n this.#inputToken = null;\n this.recipientId = null;\n this.publish({\n targets: null,\n target: null,\n invitations: null,\n preview: null,\n recipientSession: null,\n handoffToken: null,\n result: null,\n loading: true,\n message: '',\n });\n try {\n const targets = await listInvitationTargets(this.owner, session, after);\n if (this.live(ticket)) this.publish({ targets });\n } catch {\n if (this.live(ticket)) this.publish({ message: say('theAuthorizedInvitationTargets') });\n } finally {\n if (this.live(ticket)) this.publish({ loading: false });\n }\n }\n select(tenantId: string): void {\n if (!this.editable()) return;\n const target = this.value.targets?.items.find((t) => t.tenantId === tenantId);\n if (!target) return;\n this.generation++;\n this.#inputToken = null;\n this.recipientId = null;\n this.publish({\n target,\n invitations: null,\n preview: null,\n recipientSession: null,\n result: null,\n handoffToken: null,\n loading: false,\n message: '',\n });\n }\n async loadInvitations(operation: 'revokeInvitation' | 'reissueInvitation', after?: string): Promise<void> {\n const { issuerSession: session, target } = this.value,\n capability = target?.capabilities.find((c) => c.operation === operation);\n if (!this.editable() || !session || !target || !capability) return;\n const ticket = ++this.generation;\n this.publish({ invitations: null, loading: true, handoffToken: null, result: null, message: '' });\n try {\n const invitations = await listInvitations(this.owner, session, target.tenantId, operation, after);\n requireValid(sameRoles(invitations.roles, capability.roles));\n if (this.live(ticket)) this.publish({ invitations });\n } catch {\n if (this.live(ticket)) this.publish({ message: say('theAuthorizedInvitationList') });\n } finally {\n if (this.live(ticket)) this.publish({ loading: false });\n }\n }\n prepare(input: InvitationIssuerIntent): boolean {\n const { issuerSession: session, target, invitations } = this.value;\n if (!this.editable() || this.value.loading || !session || session.expiresAt <= Date.now() || !target) return false;\n try {\n requireValid(intentShape(input) && INVITATION_ISSUER_OPERATIONS.includes(input.operation));\n const intent = structuredClone(input),\n capability = target.capabilities.find((c) => c.operation === intent.operation);\n const currentTenant = intent.operation === 'issueInvitation' ? target.tenant : invitations?.tenant;\n requireValid(\n capability &&\n intent.tenantId === target.tenantId &&\n currentTenant &&\n currentTenant.version === intent.expectedTenantVersion &&\n (intent.operation === 'revokeInvitation' || currentTenant.status === 'active'),\n );\n if (intent.operation !== 'issueInvitation') {\n const old = invitations?.items.find((p) => p.invitation.invitationId === intent.invitationId);\n requireValid(\n invitations?.operation === intent.operation &&\n sameRoles(invitations.roles, capability.roles) &&\n old &&\n old.invitation.status === 'pending' &&\n old.invitation.version === intent.expectedInvitationVersion &&\n old.membership.membershipId === intent.membershipId &&\n old.membership.version === intent.expectedMembershipVersion &&\n old.invitation.roles.every((r) => capability.roles.includes(r)),\n );\n }\n if ('roles' in intent) {\n const now = Date.now();\n requireValid(\n intent.roles.every((r) => capability.roles.includes(r)) &&\n intent.redeemUntil > now &&\n intent.redeemUntil - now <= session.maxRedemptionLifetimeMs &&\n intent.validUntil - now <= session.maxMembershipLifetimeMs,\n );\n }\n const attempt = frozen({ idempotencyKey: crypto.randomUUID(), intent });\n this.generation++;\n this.#inputToken = null;\n this.recipientId = null;\n this.publish({ attempt, phase: 'review', preview: null, recipientSession: null, handoffToken: null, result: null, message: '' });\n return true;\n } catch {\n return false;\n }\n }\n async previewToken(token: string): Promise<void> {\n if (!this.editable()) return;\n const ticket = ++this.generation,\n invitationId = parseInvitationTokenId(token);\n this.#inputToken = null;\n this.recipientId = invitationId;\n this.publish({\n preview: null,\n recipientSession: null,\n target: null,\n invitations: null,\n result: null,\n handoffToken: null,\n loading: !!invitationId,\n message: '',\n });\n if (!this.live(ticket)) return;\n if (!invitationId) {\n this.publish({ message: say('enterAnInvitationToken') });\n return;\n }\n this.#inputToken = token;\n // The private field is the only retained input across the context-open await.\n token = '';\n try {\n const session = await openInvitationRecipient(this.owner, invitationId);\n if (!this.live(ticket)) return;\n requireValid(session && this.#inputToken);\n this.publish({ recipientSession: session });\n if (!this.live(ticket)) return;\n const preview = await previewInvitation(this.owner, session, this.#inputToken);\n if (!this.live(ticket)) return;\n requireValid(this.#inputToken);\n const attempt: InvitationAttempt = frozen({ idempotencyKey: crypto.randomUUID(), intent: structuredClone(preview.intent) });\n this.publish({ preview, attempt, phase: 'review', loading: false });\n } catch {\n if (this.live(ticket)) {\n this.#inputToken = null;\n this.publish({ message: say('theInvitationCouldNotBeReviewed') });\n }\n } finally {\n if (this.live(ticket)) this.publish({ loading: false });\n }\n }\n cancelReview(): void {\n if (this.value.phase === 'review') this.clearOperation();\n }\n clearSecret(): void {\n this.#inputToken = null;\n if (!this.current()) return;\n if (!this.locked()) {\n this.generation++;\n this.opening = undefined;\n if (recipientStep(this.value.attempt?.intent)) {\n this.publish({ attempt: null, phase: 'idle', preview: null });\n }\n this.publish({ loading: false });\n }\n this.publish({ handoffToken: null });\n }\n clearOperation(): void {\n if (!this.current() || this.locked()) return;\n this.generation++;\n this.opening = undefined;\n this.#inputToken = null;\n this.recipientId = null;\n this.publish({\n invitations: null,\n recipientSession: null,\n preview: null,\n attempt: null,\n result: null,\n handoffToken: null,\n phase: 'idle',\n loading: false,\n message: '',\n });\n }\n private complete(reply: InvitationExecutionReply): void {\n this.#inputToken = null;\n const accepted = !('change' in reply.result),\n lostHandoff = !accepted && reply.result.change.operation !== 'revokeInvitation' && !reply.token;\n this.publish({\n phase: 'idle',\n attempt: null,\n result: reply.result,\n handoffToken: reply.token ?? null,\n targets: null,\n target: null,\n invitations: null,\n message: accepted\n ? say('invitationAcceptanceConfirmedRefresh')\n : lostHandoff\n ? say('issuanceConfirmedTheOriginal')\n : say('invitationChangeConfirmedRefresh'),\n });\n if (accepted && this.current() && this.onAccepted) {\n // Discovery failure cannot relabel an acknowledged acceptance as unknown.\n try {\n void Promise.resolve(this.onAccepted(reply.result as InvitationAcceptanceResult)).catch(() => {});\n } catch {\n /* Receipt stays confirmed. */\n }\n }\n }\n async execute(): Promise<void> {\n const { attempt, phase, preview } = this.value;\n if (!this.current() || phase !== 'review' || this.value.loading || !attempt) return;\n const recipient = recipientStep(attempt.intent);\n const session = recipient ? this.value.recipientSession : this.value.issuerSession;\n if (!session || session.expiresAt <= Date.now()) {\n this.publish({ message: say('refreshInvitationAccessExplicitly') });\n return;\n }\n if (recipient && (!this.#inputToken || !preview || preview.redeemUntil <= Date.now())) {\n this.clearOperation();\n this.publish({ message: say('reviewTheInvitationAgain') });\n return;\n }\n const ticket = ++this.generation;\n this.publish({ phase: 'executing', message: '' });\n if (!this.live(ticket, attempt)) return;\n const pending = executeInvitation(this.owner, session, attempt, recipient ? this.#inputToken! : undefined, preview);\n this.#inputToken = null;\n try {\n const reply = await pending;\n if (this.live(ticket, attempt)) this.complete(reply);\n } catch (error) {\n if (!this.live(ticket, attempt)) return;\n this.publish(\n error instanceof TenantInvitationError && error.outcome === 'not_applied'\n ? {\n phase: 'idle',\n attempt: null,\n preview: null,\n targets: null,\n target: null,\n invitations: null,\n message: say('theChangeWasNotApplied'),\n }\n : { phase: 'unknown', message: say('theChangeIsUnconfirmedCheckThisExact') },\n );\n }\n }\n async check(): Promise<void> {\n const { attempt, phase, preview } = this.value;\n const session = recipientStep(attempt?.intent) ? this.value.recipientSession : this.value.issuerSession;\n if (!this.current() || phase !== 'unknown' || this.value.loading || !attempt || !session) return;\n const ticket = ++this.generation;\n this.publish({ phase: 'checking', message: '' });\n if (!this.live(ticket, attempt)) return;\n try {\n const found = await statusInvitation(this.owner, session, attempt, preview);\n if (!this.live(ticket, attempt)) return;\n if (found) this.complete({ result: found });\n else this.publish({ phase: 'unknown', message: say('common.noReceiptWasFound') });\n } catch {\n if (this.live(ticket, attempt)) this.publish({ phase: 'unknown', message: say('common.statusCouldNotBeVerified') });\n }\n }\n async recoverContext(): Promise<void> {\n const { phase, attempt } = this.value;\n if (!this.current() || this.value.loading || phase === 'executing' || phase === 'checking') return;\n const recipient = attempt ? recipientStep(attempt.intent) : !!this.recipientId;\n const invitationId = recipient ? ((attempt?.intent as InvitationAcceptanceIntent | undefined)?.invitationId ?? this.recipientId) : null;\n if (recipient ? !invitationId : !this.value.issuerSession) return;\n const ticket = ++this.generation;\n this.publish({ loading: true, targets: null, target: null, invitations: null });\n if (!this.live(ticket)) return;\n try {\n const session = recipient ? await openInvitationRecipient(this.owner, invitationId!) : await openInvitationIssuer(this.owner);\n requireValid(session);\n if (this.live(ticket))\n this.publish({\n ...(recipient ? { recipientSession: session } : { issuerSession: session as InvitationIssuerSession }),\n message: attempt ? say('accessRefreshedTheOriginal') : say('accessRefreshedLoadTheCurrent'),\n });\n } catch {\n if (this.live(ticket)) this.publish({ message: say('common.accessCouldNotBeRefreshed') });\n } finally {\n if (this.live(ticket)) this.publish({ loading: false });\n }\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AAoE,EAAA,CAAArC,EAAA,CAAA,KAAA,MAAA,cAAA,OACA,IAAAqB,EAAA,EAAA,KAAA,WAEA,GADA,KAAA,QAAA,CAAe,QAAA,GAAe,QAAA,KAAe,OAAA,KAAc,YAAA,IAAkB,CAAA,EAC7E,KAAA,KAAAA,CAAA,EACA,GAAA,CACE,IAAAjC,EAAAiD,EAAA,MAAAjC,EAAA,KAAA,MAAAJ,CAAA,EAAA,MAAAG,EAAA,KAAA,KAAA,EACA/D,EAAAgD,CAAA,EACA,KAAA,KAAAiC,CAAA,GAAA,KAAA,QAAA,CAEI,GAAAgB,EAAA,CAAA,iBAAAjD,CAAA,EAAA,CAAA,cAAAA,CAAA,EACA,QAAAvE,EAAAoD,EAAuB,IAAoC,GAA+B,CAC5F,CAAA,CACJ,MAAA,CACE,KAAA,KAAAoD,CAAA,GAAA,KAAA,QAAA,CAAA,QAAAxG,EAAmD,IAAkC,CAAA,CAAA,CACvF,QAAA,CACE,KAAA,KAAAwG,CAAA,GAAA,KAAA,QAAA,CAAA,QAAA,EAAA,CAAA,CACF,CACF,CACF,E"}
@@ -0,0 +1,2 @@
1
+ import{St as e,al as t,ct as n,dl as r,lt as i,rt as a}from"./index-tulz4gVC.js";async function o(o,s){let c=r(),l=n(c),u=new URLSearchParams({app:l.appId,...i(l.tenantId)});o&&u.set(`after`,o);let d=await t(`/api/live?${u}`,{credentials:`same-origin`,cache:`no-store`,signal:s,headers:{[e.account]:c.accountId,[e.app]:c.appId,[e.tab]:l.tabId,[e.context]:l.context,[e.revision]:String(l.revision)}});if(d.ok&&!a(d.headers,l))throw d.body?.cancel(),Error(`live-lease-mismatch`);return d}export{o as tenantLiveRequest};
2
+ //# sourceMappingURL=tenantLive-DbxSXkL3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantLive-DbxSXkL3.js","names":["names","TENANT_HTTP_HEADERS","fetchServer","selected","captureSessionIdentity","selector","owns","tenantLiveRequest","snapshot","lease","query","after","response"],"sources":["../../../src/client/tenantLive.ts"],"sourcesContent":["/**\n * The live stream of a tenant's member, sent on the lease the page holds now.\n *\n * Apart from tenantTransport.ts so that the first page, which has no use for\n * a stream, does not carry it; the lease checks are that module's own. An\n * answer is the lease's only if it says so, as a read's must (`owns`).\n */\nimport { TENANT_HTTP_HEADERS as names } from '../shared/tenantContext.js';\nimport { captureSessionIdentity } from '@mistriwork/kit/client/sessionIdentity.js';\nimport { owns, selected, selector } from './tenantTransport.js';\nimport { fetchServer } from '@mistriwork/kit/client/transport.js';\n\n/** `GET /api/live` for the current lease, or a throw where there is none (the caller waits for one). */\nexport async function tenantLiveRequest(after: string | undefined, signal: AbortSignal): Promise<Response> {\n const snapshot = captureSessionIdentity();\n const lease = selected(snapshot);\n const query = new URLSearchParams({ app: lease.appId, ...selector(lease.tenantId) });\n if (after) query.set('after', after);\n const response = await fetchServer(`/api/live?${query}`, {\n credentials: 'same-origin',\n cache: 'no-store',\n signal,\n headers: {\n [names.account]: snapshot.accountId!,\n [names.app]: snapshot.appId!,\n [names.tab]: lease.tabId,\n [names.context]: lease.context,\n [names.revision]: String(lease.revision),\n },\n });\n if (response.ok && !owns(response.headers, lease)) {\n void response.body?.cancel();\n throw new Error('live-lease-mismatch');\n }\n return response;\n}\n"],"mappings":"A,iFAaA,eAAsBO,EAAkB,EAA2B,EAAwC,CACzG,IAAMC,EAAWJ,EAAuB,EAClCK,EAAQN,EAASK,CAAQ,EACzBE,EAAQ,IAAI,gBAAgB,CAAE,IAAKD,EAAM,MAAO,GAAGJ,EAASI,EAAM,QAAQ,CAAE,CAAC,EAC/EE,GAAOD,EAAM,IAAI,QAASC,CAAK,EACnC,IAAMC,EAAW,MAAMV,EAAY,aAAaQ,IAAS,CACvD,YAAa,cACb,MAAO,WACP,SACA,QAAS,EACNV,EAAM,SAAUQ,EAAS,WACzBR,EAAM,KAAMQ,EAAS,OACrBR,EAAM,KAAMS,EAAM,OAClBT,EAAM,SAAUS,EAAM,SACtBT,EAAM,UAAW,OAAOS,EAAM,QAAQ,CACzC,CACF,CAAC,EACD,GAAIG,EAAS,IAAM,CAACN,EAAKM,EAAS,QAASH,CAAK,EAE9C,MADAG,EAAc,MAAM,OAAO,EACjB,MAAM,qBAAqB,EAEvC,OAAOA,CACT,C"}
@@ -0,0 +1,2 @@
1
+ import{Dt as e,Et as t,wu as n}from"./index-tulz4gVC.js";function r(r){let i=r.slice(19)===`dark`?`dark`:`light`;n(i),window.addEventListener(`message`,n=>{n.origin===window.location.origin&&n.source===window.parent&&n.data?.type===`mistri:theme-bench`&&n.data.theme&&(e(n.data.theme),t(n.data.placement===`side`||n.data.placement===`top`?n.data.placement:void 0))}),window.parent.postMessage({type:`mistri:theme-bench-ready`,mode:i},window.location.origin)}export{r as joinThemeBench};
2
+ //# sourceMappingURL=themeBench-DYrLCI_d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themeBench-DYrLCI_d.js","names":["setHostTheme","setHostPlacement","holdTheme","joinThemeBench","mode","name","event"],"sources":["../../../src/client/themeBench.ts"],"sourcesContent":["/**\n * A page inside the theme bench (server/themeBench/bench.ts): one of its two\n * frames, named `mistri-theme-bench:light` or `:dark`. It holds that mode\n * whatever the reader chose elsewhere — and does not remember it, so the App\n * in its own tab is untouched — and wears each theme the bench posts through\n * the door an embedding host dresses the shell by. Only a page served by a\n * dev server joins (shellStart.js), and only its parent may dress it.\n */\nimport { setHostPlacement, setHostTheme } from './appTheme.js';\nimport { holdTheme } from '@mistriwork/kit/client/theme.js';\nimport type { ThemeDefinition } from '@mistriwork/engine/shared/theme.js';\n\nconst BENCH_FRAME = 'mistri-theme-bench:';\n\nexport function joinThemeBench(name: string): void {\n const mode = name.slice(BENCH_FRAME.length) === 'dark' ? 'dark' : 'light';\n holdTheme(mode);\n // host-global: the bench's frame is a whole page of its own, never an embedded shell; its parent posts to the window.\n window.addEventListener('message', (event: MessageEvent<{ type?: string; theme?: ThemeDefinition; placement?: 'side' | 'top' }>) => {\n if (event.origin !== window.location.origin || event.source !== window.parent) return;\n if (event.data?.type !== 'mistri:theme-bench' || !event.data.theme) return;\n setHostTheme(event.data.theme);\n // Where the theme suggests the menu stands, when the App does not say: the bench works it out (bench.ts).\n setHostPlacement(event.data.placement === 'side' || event.data.placement === 'top' ? event.data.placement : undefined);\n });\n window.parent.postMessage({ type: 'mistri:theme-bench-ready', mode }, window.location.origin);\n}\n"],"mappings":"A,yDAcA,SAAgBG,EAAe,EAAoB,CACjD,IAAMC,EAAOC,EAAK,MAAM,EAAkB,IAAM,OAAS,OAAS,QAClEH,EAAUE,CAAI,EAEd,OAAO,iBAAiB,UAAY,GAAgG,CAC9HE,EAAM,SAAW,OAAO,SAAS,QAAUA,EAAM,SAAW,OAAO,QACnEA,EAAM,MAAM,OAAS,sBAAyBA,EAAM,KAAK,QAC7DN,EAAaM,EAAM,KAAK,KAAK,EAE7BL,EAAiBK,EAAM,KAAK,YAAc,QAAUA,EAAM,KAAK,YAAc,MAAQA,EAAM,KAAK,UAAY,IAAA,EAAS,EACvH,CAAC,EACD,OAAO,OAAO,YAAY,CAAE,KAAM,2BAA4B,MAAK,EAAG,OAAO,SAAS,MAAM,CAC9F,C"}
@@ -90,10 +90,10 @@
90
90
  rel="icon"
91
91
  href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><text y='13' font-size='13'>&#128279;</text></svg>"
92
92
  />
93
- <script type="module" crossorigin src="/assets/index-Bt4RC99Z.js"></script>
93
+ <script type="module" crossorigin src="/assets/index-tulz4gVC.js"></script>
94
94
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
95
95
  <link rel="stylesheet" crossorigin href="/assets/index-CDc7RsWS.css">
96
- <link rel="modulepreload" crossorigin href="/assets/shell-B2AKY91H.js">
96
+ <link rel="modulepreload" crossorigin href="/assets/shell-DWfGgBrZ.js">
97
97
  <link rel="stylesheet" crossorigin href="/assets/shell-BOnc6Mx1.css">
98
98
  </head>
99
99
  <body>
Binary file
Binary file
@@ -90,10 +90,10 @@
90
90
  rel="icon"
91
91
  href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><text y='13' font-size='13'>&#128279;</text></svg>"
92
92
  />
93
- <script type="module" crossorigin src="/assets/index-Bt4RC99Z.js"></script>
93
+ <script type="module" crossorigin src="/assets/index-tulz4gVC.js"></script>
94
94
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
95
95
  <link rel="stylesheet" crossorigin href="/assets/index-CDc7RsWS.css">
96
- <link rel="modulepreload" crossorigin href="/assets/public-BMBdxVXn.js">
96
+ <link rel="modulepreload" crossorigin href="/assets/public-Brk5JDe-.js">
97
97
  <link rel="stylesheet" crossorigin href="/assets/landingHeroShell-BNGbyWU-.css">
98
98
  </head>
99
99
  <body>
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Status & roadmap
3
- description: The 1.0.0-rc.28 scope, stable and preview features, current limitations and planned work.
3
+ description: The 1.0.0-rc.30 scope, stable and preview features, current limitations and planned work.
4
4
  ---
5
5
 
6
6
  The scope of this release, stable and preview features, current limitations and planned work.
@@ -10,7 +10,7 @@ npx @mistriwork/mistri check --app .
10
10
  # preview: This App uses Preview features (…). They work as documented and may change in any 1.x release.
11
11
  ```
12
12
 
13
- This site describes **mistri 1.0.0-rc.28**, a release candidate. Since rc.2, the first release under the mistri name,
13
+ This site describes **mistri 1.0.0-rc.30**, a release candidate. Since rc.2, the first release under the mistri name,
14
14
  the App framework is split out of tablewalk, which stays the standalone database browser. A save is a fixed number of
15
15
  database round trips, the runtime forgets what it wrote about an App after the App's own retention windows, and on
16
16
  PostgreSQL the runtime lives in one schema named `mistri`. There is no upgrade from a tablewalk 0.9 App database.
@@ -170,7 +170,7 @@ entry points above:
170
170
  "version": "1.0.0",
171
171
  "type": "module",
172
172
  "exports": { ".": "./src/index.ts" },
173
- "peerDependencies": { "@mistriwork/mistri": "^1.0.0-rc.28" }
173
+ "peerDependencies": { "@mistriwork/mistri": "^1.0.0-rc.30" }
174
174
  }
175
175
  ```
176
176
 
@@ -1 +1 @@
1
- {"version":3,"file":"recordReads-CRKZKYSF.js","names":["primaryKey","findTable","quoteValue","andQuery","tableAtPrefix","labelPath","subtitlePath","recordView","referenceProjection","listSecondLineColumns","resolvePath","appTargetFields","RECORD_COMPOSE_PATH","timelineReads","stream","table","names","reference","column","target","named","view","side","namePathOf","defaultFieldPaths","keys","base","c","surrogate","version","read","app","secondLines","paths","hop","path","owner","second","fieldsColumns","section","namePath","extra","action","seconds","projection","fetched","through","definedThrough","per","perPath","cut","prefix","schema","baseId","bound","defined","headerColumns","end","keyFilter","key","rowBody","pageId","part","columns","isCards","presentation","listView","limit","rows","sized","plan","drawn","groupsBody","groups","metricMeasure","counted","whenBody","keyText","when","historyBody","tabbedSection","appPage","inferred","RELATED_COUNT_LIMIT","relatedCountQuestion","to","meets","from","i","relatedCountsBody","items","sections"],"sources":["../../../../../engine/src/shared/recordReads.ts"],"sourcesContent":["/**\n * What a record page reads, as the requests its sections send.\n *\n * A record page used to reach its reader in three waves of requests — the\n * root and the plan, then a request or two per section, then the history —\n * and at 20 ms to the database each wave was a round of admissions and\n * statements: a lender's loan finished at 0.9 s. The server now answers the\n * whole page in one request (server/http/recordCompose.ts, and the tenant\n * host's own): it plans the page, then asks each section's read on the\n * section's behalf, through the same route and the same grants as the\n * section's own request, and hands every answer back beside the plan. The\n * client keeps them for the requests they answer (client/composedReads.ts),\n * and a section that asks finds its answer waiting.\n *\n * So the one rule is that server and client build each request alike, and\n * the builders live here, used by both: the sections' own modules call them\n * for the request they send, and the server calls them to know what the\n * sections will ask. A request built differently is only asked again — the\n * section sends it, as it always did — so a drift costs a request, never a\n * wrong answer.\n *\n * The record's own row is the one read that is not asked alike: every fields\n * section, the header, the root probe and a custom section's record fields\n * read the one row, each for its columns, and which of them ask together\n * depends on what is drawn (a tab not yet opened asks nothing). The server\n * reads every column any of them names, once, and each is answered with\n * exactly its part (`rowPart`), as the client's own shared read already was\n * (pageFieldsRead.ts).\n */\nimport { subtitlePath } from './subtitlePath.js';\nimport { listSecondLineColumns } from './appListColumns.js';\nimport type { AppCardsList } from './appCards.js';\nimport { findTable, labelPath, primaryKey, type DatabaseSchema, type TableMeta } from './schema.js';\nimport { DEFAULT_HISTORY_LIMIT, HISTORY_TAB, isInferredPage, kindReading, type PageSection } from './pageModel.js';\nimport { resolvePath } from './pagePaths.js';\nimport { COUNT_EACH_MAX } from './reads.js';\nimport { assertNever } from './model.js';\nimport { andQuery, quoteValue } from './query.js';\nimport { tabMatches } from './addressParams.js';\nimport { recordView, referenceProjection } from './referenceModel.js';\nimport { tableAtPrefix } from './viewPaths.js';\nimport type { HttpBreakdownDefinition, HttpFilter } from './resourceHttp.js';\nimport { appTargetFields, type AppTarget } from './appLinks.js';\n\n/** The route a record page is composed on. */\nexport const RECORD_COMPOSE_PATH = '/api/pages/compose';\n\n/** Where a table's rows are named, as the reader's App says it (`recordLabel`, false where it is withheld). */\nexport interface RecordReadNames {\n readonly schema: DatabaseSchema;\n /** Reads in an App's words: references carry their record's name, lists their keys. */\n readonly app: boolean;\n readonly recordLabel: (tableId: string) => string | false | undefined;\n /** Where a table's rows are named, where the reader already knows (the client's labelPath, which is this rule over the same three). */\n readonly namePath?: (table: TableMeta) => string | undefined;\n /** A table by id, where the reader already holds it (the client's findTable, over the same schema). */\n readonly table?: (id: string) => TableMeta | undefined;\n /** A table's row-defined JSON columns (`resources.<r>.defined`): a section showing one also reads its `per`. */\n readonly defined?: (tableId: string) => Readonly<Record<string, { per?: string }>> | undefined;\n /** A column's display rule (`resources.<r>.display`), where a shown column's `subtitle` is read with the record. */\n readonly display?: (tableId: string, column: string) => { subtitle?: string } | null | undefined;\n}\n\n/** The parts of a section its reads are built from (client pageModel.ts PageSection, shared page.ts). */\nexport interface ReadSection {\n readonly kind: PageSection['kind'];\n readonly hidden?: boolean;\n readonly emptyMode?: 'hide' | 'collapse' | 'show';\n /** A grouped related list reads its groups, then each group's rows (the rows wait on the groups). */\n readonly group?: unknown;\n readonly presentation?: unknown;\n readonly paths?: readonly string[];\n readonly status?: string;\n readonly subfigure?: string;\n readonly subtitle?: string;\n readonly spans?: Readonly<Record<string, string>>;\n readonly was?: string;\n readonly actions?: ReadonlyArray<{ readonly prefill?: Readonly<Record<string, string>>; readonly to?: AppTarget }>;\n readonly names?: boolean;\n readonly workflow?: { readonly field: string };\n readonly from?: string;\n /** A related list's way back to the record, and its own narrowing: what its tab's count asks. */\n readonly path?: string;\n readonly filter?: string;\n readonly of?: string;\n readonly similar?: unknown;\n readonly limit?: number;\n readonly record?: readonly string[];\n readonly when?: string;\n readonly region?: string;\n readonly tab?: string;\n readonly title?: string;\n readonly width?: unknown;\n}\n\n/** A planned view, as the server builds it (ViewDef) or the client reads it off the wire (HttpViewDefinition). */\ninterface ReadView {\n readonly base: string;\n readonly columns?: ReadonlyArray<{ readonly path: string; readonly alias?: string }>;\n readonly filter?: unknown;\n readonly limit?: number;\n}\n\n/** The parts of a section's plan its reads are built from (pagePlans.ts). */\nexport interface ReadPlan<V extends ReadView = ReadView> {\n readonly index: number;\n readonly error?: string;\n readonly empty?: boolean;\n readonly view?: V;\n readonly counts?: boolean;\n readonly totals?: HttpBreakdownDefinition;\n readonly groups?: HttpBreakdownDefinition;\n readonly breakdown?: HttpBreakdownDefinition;\n readonly streams?: ReadonlyArray<TimelineReadStream<V>>;\n readonly reads?: Readonly<Record<string, { readonly error?: string; readonly empty?: boolean; readonly view?: V }>>;\n /** A custom section's aggregate reads, each a breakdown. */\n readonly aggregates?: Readonly<\n Record<string, { readonly error?: string; readonly empty?: boolean; readonly breakdown?: HttpBreakdownDefinition }>\n >;\n}\n\n/** A timeline stream's plan, as far as its reads go (pagePlans.ts): its table, its author, its rows and its far side. */\ninterface TimelineReadStream<V extends ReadView = ReadView> {\n readonly error?: string;\n readonly empty?: boolean;\n readonly from?: string;\n readonly by?: string;\n readonly view?: V;\n readonly key?: readonly string[];\n readonly side?: { readonly error?: string; readonly view?: V };\n}\n\n/**\n * A timeline stream's reads, as its section asks them (kit PageTimeline.tsx): its rows, where its author is a\n * reference with the person's name beside it, read through the reference as a list column of it is; and where the\n * stream has a far side, that side's rows. One rule for the section and the page's planned reads (`recordReads`),\n * so a composed page's answer is the very read the section asks: a record page whose timeline was planned without\n * the author's name asked it again, alone, once the page had drawn (a field report: a fifth round on a record).\n */\nexport function timelineReads<V extends ReadView>(\n names: { readonly table: (id: string) => TableMeta | undefined; readonly namePath: (table: TableMeta) => string | undefined },\n stream: TimelineReadStream<V>,\n): { view: V; side?: V } | undefined {\n if (stream.error || stream.empty || !stream.view) return undefined;\n const table = stream.from === undefined ? undefined : names.table(stream.from);\n const reference = stream.by ? table?.columns.find((column) => column.name === stream.by)?.references : undefined;\n const target = reference ? names.table(reference.table) : undefined;\n const named = target && names.namePath(target);\n const view =\n target && named && !primaryKey(target).includes(named)\n ? ({ ...stream.view, columns: [...(stream.view.columns ?? []), { path: `${stream.by}.${named}` }] } as V)\n : stream.view;\n const side = stream.side?.view && !stream.side.error && stream.key?.length ? stream.side.view : undefined;\n return side ? { view, side } : { view };\n}\n\n/** One request, as a section sends it: its route and its body, without the owner the transport adds. */\nexport interface ReadAsk {\n readonly path: string;\n readonly body: Record<string, unknown>;\n}\n\n/** Where a table's rows are named, as a view path. */\nconst namePathOf = (names: RecordReadNames, table: TableMeta): string | undefined =>\n names.namePath ? names.namePath(table) : labelPath(names.schema, table, names.recordLabel(table.id));\n\n/**\n * The fields a section shows when it names none. In the Workbench, every\n * column: it is the database as it is. In an App, every column a reader\n * reads — not a key the database handed out (a lone numeric or uuid primary\n * key, which opened a lead on \"ID 2\") and not a row version, the same two\n * the scaffold leaves out of the fields it writes (server/scaffold.ts).\n */\nexport function defaultFieldPaths(base: TableMeta, app: boolean): string[] {\n const keys = base.columns.filter((c) => c.primaryKey);\n const surrogate = (c: TableMeta['columns'][number]) =>\n c.primaryKey && keys.length === 1 && (/^(id|uuid|guid)$/i.test(c.name) || /int|serial|number|numeric|uuid/i.test(c.type ?? ''));\n const version = (c: TableMeta['columns'][number]) => /^(version|lock_version|row_version|rowversion|revision)$/i.test(c.name);\n const read = base.columns.filter((c) => !app || !(surrogate(c) || version(c))).map((c) => c.name);\n return read.length ? read : base.columns.map((c) => c.name);\n}\n\n/**\n * The second lines of the columns at `paths`: a column whose rule has a `subtitle` is drawn with it wherever it is a\n * field, a header's fact or a card's title, so the record reads it too (the same rule a list's cell reads,\n * listQuestion.ts subtitleColumns). A path through a reference reads it from the table it reaches.\n */\nfunction secondLines(names: RecordReadNames, base: TableMeta, paths: readonly string[]): string[] {\n if (!names.display) return [];\n return paths.flatMap((path) => {\n const hop = path.lastIndexOf('.');\n const owner = hop < 0 ? base.id : tableAtPrefix(names.schema, base.id, path.slice(0, hop))?.id;\n const second = owner ? subtitlePath(names.display!(owner, path.slice(hop + 1)), path) : undefined;\n return second ? [second] : [];\n });\n}\n\n/** A fields section's columns: what it shows, the names of what it references, the record's name, and its workflow's field. */\nexport function fieldsColumns(\n names: RecordReadNames,\n base: TableMeta,\n section: ReadSection,\n): { fetched: string[]; labels: Map<string, string> } {\n const paths = section.paths?.length ? [...section.paths] : defaultFieldPaths(base, names.app);\n const namePath = namePathOf(names, base);\n /* A headline also reads its second figure and every field its actions\n fill a form from; they are fetched, not shown as facts. */\n const extra =\n section.presentation === 'headline'\n ? [\n ...(section.subfigure ? [section.subfigure] : []),\n ...(section.subtitle ? [section.subtitle] : []),\n ...(section.was ? [section.was] : []),\n ...(section.actions ?? []).flatMap((action) => [\n ...Object.values(action.prefill ?? {}),\n ...(action.to ? appTargetFields(action.to) : []),\n ]),\n ].filter((path) => !paths.includes(path))\n : [];\n const seconds = secondLines(names, base, [...new Set([...paths, ...(section.presentation === 'headline' ? extra : [])])]);\n const projection = referenceProjection(\n names.schema,\n base,\n [...new Set([...paths, ...extra, ...seconds])],\n section.names !== false && names.app,\n (table) => namePathOf(names, table),\n );\n const fetched = projection.fetched;\n if (namePath && !fetched.includes(namePath)) fetched.push(namePath);\n if (section.workflow && !fetched.includes(section.workflow.field)) fetched.push(section.workflow.field);\n // A row-defined column's fields are the ones its record's `per` picks (definedFields.ts),\n // through a reference too: `requested_item_id.answers` reads `requested_item_id.<per>`.\n for (const path of paths) {\n const through = names.defined ? definedThrough(names.schema, base.id, path, names.defined) : undefined;\n const per = through?.binding.per;\n const perPath = per === undefined ? undefined : through!.prefix ? `${through!.prefix}.${per}` : per;\n if (perPath && !fetched.includes(perPath)) fetched.push(perPath);\n }\n return { fetched, labels: projection.labels };\n}\n\n/**\n * The row-defined column a fields path ends on (`resources.<r>.defined`):\n * the record's own (`specs`) or one through references\n * (`requested_item_id.answers`), with the table it lives on, the hops before\n * it, and its binding. Undefined for any other path. A record shows the\n * column's fields wherever its path is shown, not only on its own page.\n */\nexport function definedThrough<B extends { per?: string }>(\n schema: DatabaseSchema,\n baseId: string,\n path: string,\n defined: (tableId: string) => Readonly<Record<string, B>> | undefined,\n): { table: TableMeta; column: string; prefix: string; binding: B } | undefined {\n const cut = path.lastIndexOf('.');\n const prefix = cut === -1 ? '' : path.slice(0, cut),\n column = path.slice(cut + 1);\n const table = tableAtPrefix(schema, baseId, prefix);\n const bound = table ? defined(table.id) : undefined;\n if (!table || !bound || !Object.hasOwn(bound, column)) return undefined;\n return { table, column, prefix, binding: bound[column] };\n}\n\n/** A record header's columns: its status, its facts, the names of what they reference, and the record's name. */\nexport function headerColumns(\n names: RecordReadNames,\n base: TableMeta,\n section: ReadSection,\n): { fetched: string[]; labels: Map<string, string> } {\n const projection = referenceProjection(\n names.schema,\n base,\n [...(section.status ? [section.status] : []), ...(section.paths ?? [])],\n names.app,\n (table) => namePathOf(names, table),\n );\n const fetched = projection.fetched;\n const namePath = namePathOf(names, base);\n if (namePath && !fetched.includes(namePath)) fetched.push(namePath);\n /* An inferred page's line under the record's name (pageAnatomy.ts). */\n if (section.subtitle && !fetched.includes(section.subtitle)) fetched.push(section.subtitle);\n /* And where a fact runs until: a visit's end, said with its start as one range. */\n for (const end of Object.values(section.spans ?? {})) if (!fetched.includes(end)) fetched.push(end);\n /* A fact's second line is drawn under its value, as a field's is. */\n for (const second of secondLines(names, base, section.paths ?? [])) if (!fetched.includes(second)) fetched.push(second);\n return { fetched, labels: projection.labels };\n}\n\n/** The key as a filter on the record's own row, one equality per key column. */\nfunction keyFilter(base: TableMeta, key: Readonly<Record<string, unknown>>): HttpFilter<'path'> {\n return { groups: [primaryKey(base).map((column) => ({ path: column, op: '=' as const, value: key[column] as string | number }))] };\n}\n\n/** A read of the record's own row, for columns: the probe (`root`), a fields section (`fields`), the header (`header`), a custom section's record (`<index>:record`). */\nexport function rowBody(pageId: string, base: TableMeta, key: Readonly<Record<string, unknown>>, columns: readonly string[], part: string) {\n return {\n count: 'none' as const,\n view: {\n id: `page:${pageId}:${part}`,\n name: base.name,\n base: base.id,\n columns: columns.map((path) => ({ path })),\n filter: keyFilter(base, key),\n limit: 1 as const,\n },\n };\n}\n\n/** The probe's columns: the key, and the record's name. */\nfunction probeColumns(names: RecordReadNames, base: TableMeta): string[] {\n const namePath = namePathOf(names, base);\n return [...primaryKey(base), ...(namePath ? [namePath] : [])];\n}\n\nconst isCards = (presentation: unknown): presentation is AppCardsList =>\n typeof presentation === 'object' && presentation !== null && (presentation as { kind?: unknown }).kind === 'cards';\n\n/** A related list's first request: its planned view at the reader's page size, with the names and keys a row needs. */\nexport function listView<V extends ReadView>(names: RecordReadNames, section: ReadSection, plan: ReadPlan<V>, rows: number) {\n const table = names.table ? names.table(section.from ?? '') : findTable(names.schema, section.from ?? '');\n const limit = section.limit ?? rows;\n const sized: V | undefined = plan.view && !section.limit ? { ...plan.view, limit } : plan.view;\n /* Cards read the second lines of the columns they draw with one (appListColumns.ts listSecondLineColumns). */\n const drawn = (sized as { columns?: ReadonlyArray<{ path: string }> } | undefined)?.columns;\n const seconds =\n table && drawn && isCards(section.presentation)\n ? secondLines(names, table, listSecondLineColumns(section.presentation)).filter((path) => !drawn.some((c) => c.path === path))\n : [];\n const view: V | undefined = seconds.length ? { ...sized!, columns: [...drawn!, ...seconds.map((path) => ({ path }))] } : sized;\n const explicit = (target: TableMeta) => (names.recordLabel(target.id) === undefined ? undefined : namePathOf(names, target));\n type Columns = Array<{ path: string; alias?: string }>;\n return view && table\n ? recordView(names.schema, table, view as V & { columns?: Columns }, names.app, (target) => namePathOf(names, target), explicit)\n : {\n view: view as (V & { columns: Columns }) | undefined,\n labelColumns: {} as Record<string, string>,\n hidden: [] as string[],\n keyColumns: [] as Array<{ column: string; index: number }>,\n labelColumn: undefined as { path: string; index: number } | undefined,\n };\n}\n\n/** A grouped list's page of groups, as `/api/breakdown` takes it: the request the page's compose asks and the list asks again. */\nexport function groupsBody(groups: HttpBreakdownDefinition, offset: number) {\n return { def: groups, limit: groups.limit, offset };\n}\n\n/** A metric's measure: a count asked as a breakdown with no key, or the plan's own breakdown; none for a plain aggregate. */\nexport function metricMeasure(plan: ReadPlan<ReadView>): HttpBreakdownDefinition | undefined {\n const counted: HttpBreakdownDefinition | undefined =\n plan.counts && plan.view && !plan.breakdown\n ? {\n base: plan.view.base,\n by: [],\n measures: [{ fn: 'count', alias: 'value' }],\n ...(plan.view.filter ? { filter: plan.view.filter as HttpBreakdownDefinition['filter'] } : {}),\n limit: 1,\n }\n : undefined;\n return plan.breakdown ?? counted;\n}\n\n/** Whether the record satisfies a `when`: one bounded query, key and condition composed the way every fold is. */\nexport function whenBody(base: TableMeta, key: Readonly<Record<string, unknown>>, when: string) {\n const keyText = primaryKey(base)\n .map((c) => `${c} = ${quoteValue(String(key[c]))}`)\n .join(' and ');\n return { q: `${base.id} ${andQuery(keyText, when)}`, limit: 1, offset: 0, count: 'none' as const };\n}\n\n/** The first page of a record's history. */\nexport function historyBody(base: TableMeta, key: Readonly<Record<string, unknown>>, limit: number) {\n return { table: base.id, key, limit };\n}\n\n/**\n * The sections a page draws when it opens on `tab`, as PageSections.tsx lays\n * them out: a strip of named tabs draws the one asked for (the first, when\n * none is) and every panel holding the record's own fields; a run of lists\n * made into tabs draws the one asked for; everything else is drawn. The\n * header is drawn in the head. What a closed tab would read is read when it\n * is opened, as ever, and asked for nothing here.\n */\nexport function drawnSections(\n schema: DatabaseSchema,\n page: { id?: string; sections: readonly ReadSection[]; listTabs?: boolean },\n tab: string | undefined,\n appPage: boolean,\n): Set<number> {\n return laidSections(schema, page, tab, appPage).drawn;\n}\n\n/** The address word a tab of a run of lists answers to: its list's title or table, an inferred page's history's own. */\nfunction listTabToken(schema: DatabaseSchema, section: ReadSection): string {\n return section.kind === 'history' ? HISTORY_TAB : (section.title ?? findTable(schema, section.from ?? '')?.name ?? section.from ?? '');\n}\n\n/**\n * A section a run of lists draws as one of its tabs: a list that is no picture and has no width an author gave it,\n * and on an inferred page its history, which ends the strip (pageAnatomy.ts) — read when its tab is opened, never\n * with the page.\n */\nexport function tabbedSection(section: ReadSection, appPage: boolean, inferred: boolean): boolean {\n return (\n (section.kind === 'list' && section.presentation !== 'gallery' && (section.width === undefined || !appPage)) ||\n (inferred && section.kind === 'history')\n );\n}\n\n/** What drawnSections says, and each run of related lists by its sections' indexes: a strip of tabs, or a list alone. */\nfunction laidSections(\n schema: DatabaseSchema,\n page: { id?: string; sections: readonly ReadSection[]; listTabs?: boolean },\n tab: string | undefined,\n appPage: boolean,\n): { drawn: Set<number>; runs: number[][] } {\n const drawn = new Set<number>();\n const runs: number[][] = [];\n const inferred = isInferredPage(page, appPage);\n const shownAll = page.sections.map((section, index) => ({ section, index })).filter(({ section }) => !section.hidden);\n const header = shownAll.find(({ section }) => section.kind === 'fields' && section.presentation === 'header');\n if (header) drawn.add(header.index);\n const hasAside = page.sections.some((section) => section.region === 'aside' && !section.hidden);\n const autoTabs = appPage ? page.listTabs === true : page.listTabs !== false;\n const tabbed = (section: ReadSection) => tabbedSection(section, appPage, inferred);\n type Shown = { section: ReadSection; index: number };\n const lay = (items: readonly Shown[], listTabs: boolean, scoped: boolean) => {\n for (let i = 0; i < items.length; i += 1) {\n if (!(listTabs && autoTabs && tabbed(items[i].section))) {\n drawn.add(items[i].index);\n continue;\n }\n let end = i;\n while (end + 1 < items.length && tabbed(items[end + 1].section)) end += 1;\n const run = items.slice(i, end + 1);\n if (run.length === 1) {\n drawn.add(run[0].index);\n runs.push([run[0].index]);\n } else {\n const token = (item: Shown) => (scoped ? `section:${item.index}` : listTabToken(schema, item.section));\n const asked = run.findIndex((item) => tabMatches(token(item), tab));\n drawn.add(run[asked === -1 ? 0 : asked].index);\n runs.push(run.map((item) => item.index));\n }\n i = end;\n }\n };\n for (const region of hasAside ? ['main', 'aside'] : [undefined]) {\n const shown = shownAll.filter(\n ({ section }) =>\n !(section.kind === 'fields' && section.presentation === 'header') && (!region || (section.region ?? 'main') === region),\n );\n const scoped = region === 'aside';\n const groups: Array<{ name: string; items: Shown[] }> = [];\n for (const item of shown) {\n if (!item.section.tab) continue;\n const group = groups.find((g) => g.name === item.section.tab);\n if (group) group.items.push(item);\n else groups.push({ name: item.section.tab, items: [item] });\n }\n if (groups.length < 2) {\n lay(shown, true, scoped);\n continue;\n }\n const first = shown.findIndex((item) => item.section.tab);\n lay(shown.slice(0, first), true, scoped);\n const asked = groups.findIndex((group) => tabMatches(`tab:${group.name}`, tab));\n groups.forEach((group, i) => {\n if (i === (asked === -1 ? 0 : asked) || group.items.some(({ section }) => section.kind === 'fields')) lay(group.items, false, scoped);\n });\n lay(\n shown.slice(first).filter((item) => !item.section.tab),\n true,\n scoped,\n );\n }\n return { drawn, runs };\n}\n\n/** A related tab's count's ceiling, as a list's total has one: past it the tab says \"10,000+\". */\nexport const RELATED_COUNT_LIMIT = 10_000;\n\n/**\n * The question a related tab's count asks, in the words `/api/counts` reads: the rows of its list that point at the\n * record (`booking class_session_id = 5`), under the list's own narrowing. One hop to the record by its whole key,\n * which is what an inferred page lists; any other list has no question, and its tab keeps the count's room empty.\n */\nexport function relatedCountQuestion(\n schema: DatabaseSchema,\n section: ReadSection,\n base: TableMeta,\n key: Readonly<Record<string, unknown>>,\n): string | undefined {\n if (section.kind !== 'list' || !section.from || !section.path || section.of || section.similar || section.group) return undefined;\n const hop = resolvePath(schema, section.from, section.path).path;\n if (hop?.hops.length !== 1 || hop.endsAt !== base.id) return undefined;\n const { from, to } = hop.hops[0];\n if (to.columns.some((column) => key[column] === undefined || key[column] === null)) return undefined;\n const meets = from.columns.map((column, i) => `${column} = ${quoteValue(String(key[to.columns[i]]))}`).join(' and ');\n return `${section.from} ${andQuery(meets, section.filter)}`;\n}\n\n/**\n * Every count a strip of related tabs shows, in one request: one statement for them all where each is a plain\n * condition (countEach), never a list's read per tab. The client's strip asks this very body (PageSections.tsx),\n * so on a composed page it is answered from the compose.\n */\nexport function relatedCountsBody(\n schema: DatabaseSchema,\n sections: readonly ReadSection[],\n base: TableMeta,\n key: Readonly<Record<string, unknown>>,\n): { items: string[]; countLimit: number } | undefined {\n const items = [...new Set(sections.flatMap((section) => relatedCountQuestion(schema, section, base, key) ?? []))].slice(\n 0,\n COUNT_EACH_MAX,\n );\n return items.length ? { items, countLimit: RELATED_COUNT_LIMIT } : undefined;\n}\n\n/**\n * Every read a record page's sections will ask for when it opens on `tab`,\n * given its plan: the record's row (every column any section drawn reads),\n * and each other request as the section builds it. A hidden section, and\n * one in a closed tab, reads nothing; a section behind a `when` is read\n * too, and its condition asked, since the answer is only kept until it is\n * asked for.\n */\nexport function recordPageReads(\n names: RecordReadNames,\n page: { id: string; sections: readonly ReadSection[]; listTabs?: boolean },\n base: TableMeta,\n plans: readonly ReadPlan[],\n key: Readonly<Record<string, unknown>>,\n options: { rows: number; history: boolean; tab?: string },\n): { row: string[]; parts: Array<{ part: string; columns: string[] }>; reads: ReadAsk[] } {\n const { drawn, runs } = laidSections(names.schema, page, options.tab, names.app);\n /* Each reader of the row with its own columns, too: the one read of all of\n them is refused whole where any column is, and then each is asked alone,\n as the sections would have been. */\n const parts = [{ part: 'root', columns: probeColumns(names, base) }];\n const reads: ReadAsk[] = [];\n const planOf = (index: number) => plans.find((plan) => plan.index === index);\n const view = (body: Record<string, unknown>) => reads.push({ path: '/api/view/run', body });\n const breakdown = (def: HttpBreakdownDefinition) => reads.push({ path: '/api/breakdown', body: { def } });\n page.sections.forEach((section, index) => {\n if (section.hidden || !drawn.has(index)) return;\n if (section.when) reads.push({ path: '/api/run', body: whenBody(base, key, section.when) });\n const plan = planOf(index);\n if (section.kind === 'fields') {\n const header = section.presentation === 'header';\n parts.push({\n part: header ? 'header' : 'fields',\n columns: (header ? headerColumns(names, base, section) : fieldsColumns(names, base, section)).fetched,\n });\n return;\n }\n if (section.kind === 'history') {\n if (options.history)\n reads.push({ path: '/api/record-history', body: historyBody(base, key, section.limit ?? DEFAULT_HISTORY_LIMIT) });\n return;\n }\n /* A note reads nothing. Flow runs are fetched lazily by their section, behind the reader's own check\n (server/recordFlows.ts), and a flow's diagram reads its steps when it is drawn, as the reader's rows\n (PageFlowDiagram.tsx). */\n if (kindReading(section.kind, 'none')) return;\n if (section.kind === 'custom' && section.record?.length) parts.push({ part: `${index}:record`, columns: [...section.record] });\n if (!plan || plan.error || plan.empty) return;\n switch (section.kind) {\n case 'metric': {\n const measure = metricMeasure(plan);\n if (measure) breakdown(measure);\n else if (plan.view) view({ view: plan.view });\n return;\n }\n case 'breakdown':\n case 'chart':\n if (plan.breakdown) breakdown(plan.breakdown);\n return;\n case 'timeline':\n for (const stream of plan.streams ?? []) {\n const asked = timelineReads(\n {\n table: (id) => (names.table ? names.table(id) : findTable(names.schema, id)),\n namePath: (table) => namePathOf(names, table),\n },\n stream,\n );\n if (asked) view({ view: asked.view, offset: 0 });\n if (asked?.side) view({ view: asked.side, offset: 0 });\n }\n return;\n case 'custom':\n for (const read of Object.values(plan.reads ?? {}))\n if (!read.error && !read.empty && read.view) view({ view: read.view, offset: 0, count: 'none' });\n for (const total of Object.values(plan.aggregates ?? {}))\n if (!total.error && !total.empty && total.breakdown) breakdown(total.breakdown);\n return;\n case 'list': {\n /* A grouped list asks its groups first; each group's rows are asked of the keys that come back. */\n if (section.group && plan.groups) {\n reads.push({ path: '/api/breakdown', body: groupsBody(plan.groups, 0) });\n if (plan.totals) breakdown(plan.totals);\n return;\n }\n const listed = listView(names, section, plan, options.rows).view;\n if (listed) view({ view: listed, offset: 0 });\n if (plan.totals) breakdown(plan.totals);\n return;\n }\n default:\n assertNever(section.kind, 'page section kind');\n }\n });\n /* An inferred page's tabs say how many rows each holds, all of them in one read; a list alone says it in its head. */\n if (isInferredPage(page, names.app))\n for (const run of runs) {\n const body = relatedCountsBody(\n names.schema,\n run.map((index) => page.sections[index]),\n base,\n key,\n );\n if (body) reads.push({ path: '/api/counts', body });\n }\n return { row: [...new Set(parts.flatMap((part) => part.columns))], parts, reads };\n}\n"],"mappings":";;;;;AA6CA,IAAaY,IAAsB;AA8FnC,SAAgBC,EACd,GACA,GACmC;CACnC,IAAIC,EAAO,SAASA,EAAO,SAAS,CAACA,EAAO,MAAM;CAClD,IAAMC,IAAQD,EAAO,SAAS,KAAA,IAAY,KAAA,IAAYE,EAAM,MAAMF,EAAO,IAAI,GACvEG,IAAYH,EAAO,KAAKC,GAAO,QAAQ,MAAM,MAAWG,EAAO,SAASJ,EAAO,EAAE,CAAC,EAAE,aAAa,KAAA,GACjGK,IAASF,IAAYD,EAAM,MAAMC,EAAU,KAAK,IAAI,KAAA,GACpDG,IAAQD,KAAUH,EAAM,SAASG,CAAM,GACvCE,IACJF,KAAUC,KAAS,CAACpB,EAAWmB,CAAM,CAAC,CAAC,SAASC,CAAK,IAChD;EAAE,GAAGN,EAAO;EAAM,SAAS,CAAC,GAAIA,EAAO,KAAK,WAAW,CAAC,GAAI,EAAE,MAAM,GAAGA,EAAO,GAAG,GAAGM,IAAQ,CAAC;CAAE,IAChGN,EAAO,MACPQ,IAAOR,EAAO,MAAM,QAAQ,CAACA,EAAO,KAAK,SAASA,EAAO,KAAK,SAASA,EAAO,KAAK,OAAO,KAAA;CAChG,OAAOQ,IAAO;EAAE;EAAM;CAAK,IAAI,EAAE,QAAK;AACxC;A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AAkB,GAA4B;CAChG,OACGzC,EAAQ,SAAS,UAAUA,EAAQ,iBAAiB,cAAcA,EAAQ,UAAU,KAAA,KAAa,CAAC0C,MAClGC,KAAY3C,EAAQ,SAAS;AAElC;AAyEA,IAAa4C,IAAsB;AAOnC,SAAgBC,EACd,GACA,GACA,GACA,GACoB;CACpB,IAAI7C,EAAQ,SAAS,UAAU,CAACA,EAAQ,QAAQ,CAACA,EAAQ,QAAQA,EAAQ,MAAMA,EAAQ,WAAWA,EAAQ,OAAO;CACjH,IAAML,IAAMxB,EAAY0C,GAAQb,EAAQ,MAAMA,EAAQ,IAAI,CAAC,CAAC;CAC5D,IAAIL,GAAK,KAAK,WAAW,KAAKA,EAAI,WAAWR,EAAK,IAAI;CACtD,IAAM,EAAE,SAAM,UAAOQ,EAAI,KAAK;CAC9B,IAAImD,EAAG,QAAQ,MAAM,MAAW1B,EAAIzC,OAAY,KAAA,KAAayC,EAAIzC,OAAY,IAAI,GAAG;CACpF,IAAMoE,IAAQC,EAAK,QAAQ,KAAK,GAAQ,MAAM,GAAGrE,EAAO,KAAKhB,EAAW,OAAOyD,EAAI0B,EAAG,QAAQG,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,OAAO;CACnH,OAAO,GAAGjD,EAAQ,KAAK,GAAGpC,EAASmF,GAAO/C,EAAQ,MAAM;AAC1D;AAOA,SAAgBkD,EACd,GACA,GACA,GACA,GACqD;CACrD,IAAMC,IAAQ,CAAC,GAAG,IAAI,IAAIC,EAAS,SAAS,MAAYP,EAAqBhC,GAAQb,GAASb,GAAMiC,CAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAChH,GAAA,EAEF;CACA,OAAO+B,EAAM,SAAS;EAAE;EAAO,YAAYP;CAAoB,IAAI,KAAA;AACrE"}
1
+ {"version":3,"file":"recordReads-CRKZKYSF.js","names":["primaryKey","findTable","quoteValue","andQuery","tableAtPrefix","labelPath","subtitlePath","recordView","referenceProjection","listSecondLineColumns","resolvePath","appTargetFields","RECORD_COMPOSE_PATH","timelineReads","stream","table","names","reference","column","target","named","view","side","namePathOf","defaultFieldPaths","keys","base","c","surrogate","version","read","app","secondLines","paths","hop","path","owner","second","fieldsColumns","section","namePath","extra","action","seconds","projection","fetched","through","definedThrough","per","perPath","cut","prefix","schema","baseId","bound","defined","headerColumns","end","keyFilter","key","rowBody","pageId","part","columns","isCards","presentation","listView","limit","rows","sized","plan","drawn","groupsBody","groups","metricMeasure","counted","whenBody","keyText","when","historyBody","tabbedSection","appPage","inferred","RELATED_COUNT_LIMIT","relatedCountQuestion","to","meets","from","i","relatedCountsBody","items","sections"],"sources":["../../../../../engine/src/shared/recordReads.ts"],"sourcesContent":["/**\n * What a record page reads, as the requests its sections send.\n *\n * A record page used to reach its reader in three waves of requests — the\n * root and the plan, then a request or two per section, then the history —\n * and at 20 ms to the database each wave was a round of admissions and\n * statements: a lender's loan finished at 0.9 s. The server now answers the\n * whole page in one request (server/http/recordCompose.ts, and the tenant\n * host's own): it plans the page, then asks each section's read on the\n * section's behalf, through the same route and the same grants as the\n * section's own request, and hands every answer back beside the plan. The\n * client keeps them for the requests they answer (client/composedReads.ts),\n * and a section that asks finds its answer waiting.\n *\n * So the one rule is that server and client build each request alike, and\n * the builders live here, used by both: the sections' own modules call them\n * for the request they send, and the server calls them to know what the\n * sections will ask. A request built differently is only asked again — the\n * section sends it, as it always did — so a drift costs a request, never a\n * wrong answer.\n *\n * The record's own row is the one read that is not asked alike: every fields\n * section, the header, the root probe and a custom section's record fields\n * read the one row, each for its columns, and which of them ask together\n * depends on what is drawn (a tab not yet opened asks nothing). The server\n * reads every column any of them names, once, and each is answered with\n * exactly its part (`rowPart`), as the client's own shared read already was\n * (pageFieldsRead.ts).\n */\nimport { subtitlePath } from './subtitlePath.js';\nimport { listSecondLineColumns } from './appListColumns.js';\nimport type { AppCardsList } from './appCards.js';\nimport { findTable, labelPath, primaryKey, type DatabaseSchema, type TableMeta } from './schema.js';\nimport { DEFAULT_HISTORY_LIMIT, HISTORY_TAB, isInferredPage, kindReading, type PageSection } from './pageModel.js';\nimport { resolvePath } from './pagePaths.js';\nimport { COUNT_EACH_MAX } from './reads.js';\nimport { assertNever } from './model.js';\nimport { andQuery, quoteValue } from './query.js';\nimport { tabMatches } from './addressParams.js';\nimport { recordView, referenceProjection } from './referenceModel.js';\nimport { tableAtPrefix } from './viewPaths.js';\nimport type { HttpBreakdownDefinition, HttpFilter } from './resourceHttp.js';\nimport { appTargetFields, type AppTarget } from './appLinks.js';\n\n/** The route a record page is composed on. */\nexport const RECORD_COMPOSE_PATH = '/api/pages/compose';\n\n/** Where a table's rows are named, as the reader's App says it (`recordLabel`, false where it is withheld). */\nexport interface RecordReadNames {\n readonly schema: DatabaseSchema;\n /** Reads in an App's words: references carry their record's name, lists their keys. */\n readonly app: boolean;\n readonly recordLabel: (tableId: string) => string | false | undefined;\n /** Where a table's rows are named, where the reader already knows (the client's labelPath, which is this rule over the same three). */\n readonly namePath?: (table: TableMeta) => string | undefined;\n /** A table by id, where the reader already holds it (the client's findTable, over the same schema). */\n readonly table?: (id: string) => TableMeta | undefined;\n /** A table's row-defined JSON columns (`resources.<r>.defined`): a section showing one also reads its `per`. */\n readonly defined?: (tableId: string) => Readonly<Record<string, { per?: string }>> | undefined;\n /** A column's display rule (`resources.<r>.display`), where a shown column's `subtitle` is read with the record. */\n readonly display?: (tableId: string, column: string) => { subtitle?: string } | null | undefined;\n}\n\n/** The parts of a section its reads are built from (client pageModel.ts PageSection, shared page.ts). */\nexport interface ReadSection {\n readonly kind: PageSection['kind'];\n readonly hidden?: boolean;\n readonly emptyMode?: 'hide' | 'collapse' | 'show';\n /** A grouped related list reads its groups, then each group's rows (the rows wait on the groups). */\n readonly group?: unknown;\n readonly presentation?: unknown;\n readonly paths?: readonly string[];\n readonly status?: string;\n readonly subfigure?: string;\n readonly subtitle?: string;\n readonly spans?: Readonly<Record<string, string>>;\n readonly was?: string;\n readonly actions?: ReadonlyArray<{ readonly prefill?: Readonly<Record<string, string>>; readonly to?: AppTarget }>;\n readonly names?: boolean;\n readonly workflow?: { readonly field: string };\n readonly from?: string;\n /** A related list's way back to the record, and its own narrowing: what its tab's count asks. */\n readonly path?: string;\n readonly filter?: string;\n readonly of?: string;\n readonly similar?: unknown;\n readonly limit?: number;\n readonly record?: readonly string[];\n readonly when?: string;\n readonly region?: string;\n readonly tab?: string;\n readonly title?: string;\n readonly width?: unknown;\n}\n\n/** A planned view, as the server builds it (ViewDef) or the client reads it off the wire (HttpViewDefinition). */\ninterface ReadView {\n readonly base: string;\n readonly columns?: ReadonlyArray<{ readonly path: string; readonly alias?: string }>;\n readonly filter?: unknown;\n readonly limit?: number;\n}\n\n/** The parts of a section's plan its reads are built from (pagePlans.ts). */\nexport interface ReadPlan<V extends ReadView = ReadView> {\n readonly index: number;\n readonly error?: string;\n readonly empty?: boolean;\n readonly view?: V;\n readonly counts?: boolean;\n readonly totals?: HttpBreakdownDefinition;\n readonly groups?: HttpBreakdownDefinition;\n readonly breakdown?: HttpBreakdownDefinition;\n readonly streams?: ReadonlyArray<TimelineReadStream<V>>;\n readonly reads?: Readonly<Record<string, { readonly error?: string; readonly empty?: boolean; readonly view?: V }>>;\n /** A custom section's aggregate reads, each a breakdown. */\n readonly aggregates?: Readonly<\n Record<string, { readonly error?: string; readonly empty?: boolean; readonly breakdown?: HttpBreakdownDefinition }>\n >;\n}\n\n/** A timeline stream's plan, as far as its reads go (pagePlans.ts): its table, its author, its rows and its far side. */\ninterface TimelineReadStream<V extends ReadView = ReadView> {\n readonly error?: string;\n readonly empty?: boolean;\n readonly from?: string;\n readonly by?: string;\n readonly view?: V;\n readonly key?: readonly string[];\n readonly side?: { readonly error?: string; readonly view?: V };\n}\n\n/**\n * A timeline stream's reads, as its section asks them (kit PageTimeline.tsx): its rows, where its author is a\n * reference with the person's name beside it, read through the reference as a list column of it is; and where the\n * stream has a far side, that side's rows. One rule for the section and the page's planned reads (`recordReads`),\n * so a composed page's answer is the very read the section asks: a record page whose timeline was planned without\n * the author's name asked it again, alone, once the page had drawn (a field report: a fifth round on a record).\n */\nexport function timelineReads<V extends ReadView>(\n names: { readonly table: (id: string) => TableMeta | undefined; readonly namePath: (table: TableMeta) => string | undefined },\n stream: TimelineReadStream<V>,\n): { view: V; side?: V } | undefined {\n if (stream.error || stream.empty || !stream.view) return undefined;\n const table = stream.from === undefined ? undefined : names.table(stream.from);\n const reference = stream.by ? table?.columns.find((column) => column.name === stream.by)?.references : undefined;\n const target = reference ? names.table(reference.table) : undefined;\n const named = target && names.namePath(target);\n const view =\n target && named && !primaryKey(target).includes(named)\n ? ({ ...stream.view, columns: [...(stream.view.columns ?? []), { path: `${stream.by}.${named}` }] } as V)\n : stream.view;\n const side = stream.side?.view && !stream.side.error && stream.key?.length ? stream.side.view : undefined;\n return side ? { view, side } : { view };\n}\n\n/** One request, as a section sends it: its route and its body, without the owner the transport adds. */\nexport interface ReadAsk {\n readonly path: string;\n readonly body: Record<string, unknown>;\n /** What the read is where it is not a page's own: a related list's (the `x-mistri-read` a list asking alone would carry), so a read audit says so. */\n readonly kind?: 'related';\n}\n\n/** Where a table's rows are named, as a view path. */\nconst namePathOf = (names: RecordReadNames, table: TableMeta): string | undefined =>\n names.namePath ? names.namePath(table) : labelPath(names.schema, table, names.recordLabel(table.id));\n\n/**\n * The fields a section shows when it names none. In the Workbench, every\n * column: it is the database as it is. In an App, every column a reader\n * reads — not a key the database handed out (a lone numeric or uuid primary\n * key, which opened a lead on \"ID 2\") and not a row version, the same two\n * the scaffold leaves out of the fields it writes (server/scaffold.ts).\n */\nexport function defaultFieldPaths(base: TableMeta, app: boolean): string[] {\n const keys = base.columns.filter((c) => c.primaryKey);\n const surrogate = (c: TableMeta['columns'][number]) =>\n c.primaryKey && keys.length === 1 && (/^(id|uuid|guid)$/i.test(c.name) || /int|serial|number|numeric|uuid/i.test(c.type ?? ''));\n const version = (c: TableMeta['columns'][number]) => /^(version|lock_version|row_version|rowversion|revision)$/i.test(c.name);\n const read = base.columns.filter((c) => !app || !(surrogate(c) || version(c))).map((c) => c.name);\n return read.length ? read : base.columns.map((c) => c.name);\n}\n\n/**\n * The second lines of the columns at `paths`: a column whose rule has a `subtitle` is drawn with it wherever it is a\n * field, a header's fact or a card's title, so the record reads it too (the same rule a list's cell reads,\n * listQuestion.ts subtitleColumns). A path through a reference reads it from the table it reaches.\n */\nfunction secondLines(names: RecordReadNames, base: TableMeta, paths: readonly string[]): string[] {\n if (!names.display) return [];\n return paths.flatMap((path) => {\n const hop = path.lastIndexOf('.');\n const owner = hop < 0 ? base.id : tableAtPrefix(names.schema, base.id, path.slice(0, hop))?.id;\n const second = owner ? subtitlePath(names.display!(owner, path.slice(hop + 1)), path) : undefined;\n return second ? [second] : [];\n });\n}\n\n/** A fields section's columns: what it shows, the names of what it references, the record's name, and its workflow's field. */\nexport function fieldsColumns(\n names: RecordReadNames,\n base: TableMeta,\n section: ReadSection,\n): { fetched: string[]; labels: Map<string, string> } {\n const paths = section.paths?.length ? [...section.paths] : defaultFieldPaths(base, names.app);\n const namePath = namePathOf(names, base);\n /* A headline also reads its second figure and every field its actions\n fill a form from; they are fetched, not shown as facts. */\n const extra =\n section.presentation === 'headline'\n ? [\n ...(section.subfigure ? [section.subfigure] : []),\n ...(section.subtitle ? [section.subtitle] : []),\n ...(section.was ? [section.was] : []),\n ...(section.actions ?? []).flatMap((action) => [\n ...Object.values(action.prefill ?? {}),\n ...(action.to ? appTargetFields(action.to) : []),\n ]),\n ].filter((path) => !paths.includes(path))\n : [];\n const seconds = secondLines(names, base, [...new Set([...paths, ...(section.presentation === 'headline' ? extra : [])])]);\n const projection = referenceProjection(\n names.schema,\n base,\n [...new Set([...paths, ...extra, ...seconds])],\n section.names !== false && names.app,\n (table) => namePathOf(names, table),\n );\n const fetched = projection.fetched;\n if (namePath && !fetched.includes(namePath)) fetched.push(namePath);\n if (section.workflow && !fetched.includes(section.workflow.field)) fetched.push(section.workflow.field);\n // A row-defined column's fields are the ones its record's `per` picks (definedFields.ts),\n // through a reference too: `requested_item_id.answers` reads `requested_item_id.<per>`.\n for (const path of paths) {\n const through = names.defined ? definedThrough(names.schema, base.id, path, names.defined) : undefined;\n const per = through?.binding.per;\n const perPath = per === undefined ? undefined : through!.prefix ? `${through!.prefix}.${per}` : per;\n if (perPath && !fetched.includes(perPath)) fetched.push(perPath);\n }\n return { fetched, labels: projection.labels };\n}\n\n/**\n * The row-defined column a fields path ends on (`resources.<r>.defined`):\n * the record's own (`specs`) or one through references\n * (`requested_item_id.answers`), with the table it lives on, the hops before\n * it, and its binding. Undefined for any other path. A record shows the\n * column's fields wherever its path is shown, not only on its own page.\n */\nexport function definedThrough<B extends { per?: string }>(\n schema: DatabaseSchema,\n baseId: string,\n path: string,\n defined: (tableId: string) => Readonly<Record<string, B>> | undefined,\n): { table: TableMeta; column: string; prefix: string; binding: B } | undefined {\n const cut = path.lastIndexOf('.');\n const prefix = cut === -1 ? '' : path.slice(0, cut),\n column = path.slice(cut + 1);\n const table = tableAtPrefix(schema, baseId, prefix);\n const bound = table ? defined(table.id) : undefined;\n if (!table || !bound || !Object.hasOwn(bound, column)) return undefined;\n return { table, column, prefix, binding: bound[column] };\n}\n\n/** A record header's columns: its status, its facts, the names of what they reference, and the record's name. */\nexport function headerColumns(\n names: RecordReadNames,\n base: TableMeta,\n section: ReadSection,\n): { fetched: string[]; labels: Map<string, string> } {\n const projection = referenceProjection(\n names.schema,\n base,\n [...(section.status ? [section.status] : []), ...(section.paths ?? [])],\n names.app,\n (table) => namePathOf(names, table),\n );\n const fetched = projection.fetched;\n const namePath = namePathOf(names, base);\n if (namePath && !fetched.includes(namePath)) fetched.push(namePath);\n /* An inferred page's line under the record's name (pageAnatomy.ts). */\n if (section.subtitle && !fetched.includes(section.subtitle)) fetched.push(section.subtitle);\n /* And where a fact runs until: a visit's end, said with its start as one range. */\n for (const end of Object.values(section.spans ?? {})) if (!fetched.includes(end)) fetched.push(end);\n /* A fact's second line is drawn under its value, as a field's is. */\n for (const second of secondLines(names, base, section.paths ?? [])) if (!fetched.includes(second)) fetched.push(second);\n return { fetched, labels: projection.labels };\n}\n\n/** The key as a filter on the record's own row, one equality per key column. */\nfunction keyFilter(base: TableMeta, key: Readonly<Record<string, unknown>>): HttpFilter<'path'> {\n return { groups: [primaryKey(base).map((column) => ({ path: column, op: '=' as const, value: key[column] as string | number }))] };\n}\n\n/** A read of the record's own row, for columns: the probe (`root`), a fields section (`fields`), the header (`header`), a custom section's record (`<index>:record`). */\nexport function rowBody(pageId: string, base: TableMeta, key: Readonly<Record<string, unknown>>, columns: readonly string[], part: string) {\n return {\n count: 'none' as const,\n view: {\n id: `page:${pageId}:${part}`,\n name: base.name,\n base: base.id,\n columns: columns.map((path) => ({ path })),\n filter: keyFilter(base, key),\n limit: 1 as const,\n },\n };\n}\n\n/** The probe's columns: the key, and the record's name. */\nfunction probeColumns(names: RecordReadNames, base: TableMeta): string[] {\n const namePath = namePathOf(names, base);\n return [...primaryKey(base), ...(namePath ? [namePath] : [])];\n}\n\nconst isCards = (presentation: unknown): presentation is AppCardsList =>\n typeof presentation === 'object' && presentation !== null && (presentation as { kind?: unknown }).kind === 'cards';\n\n/** A related list's first request: its planned view at the reader's page size, with the names and keys a row needs. */\nexport function listView<V extends ReadView>(names: RecordReadNames, section: ReadSection, plan: ReadPlan<V>, rows: number) {\n const table = names.table ? names.table(section.from ?? '') : findTable(names.schema, section.from ?? '');\n const limit = section.limit ?? rows;\n const sized: V | undefined = plan.view && !section.limit ? { ...plan.view, limit } : plan.view;\n /* Cards read the second lines of the columns they draw with one (appListColumns.ts listSecondLineColumns). */\n const drawn = (sized as { columns?: ReadonlyArray<{ path: string }> } | undefined)?.columns;\n const seconds =\n table && drawn && isCards(section.presentation)\n ? secondLines(names, table, listSecondLineColumns(section.presentation)).filter((path) => !drawn.some((c) => c.path === path))\n : [];\n const view: V | undefined = seconds.length ? { ...sized!, columns: [...drawn!, ...seconds.map((path) => ({ path }))] } : sized;\n const explicit = (target: TableMeta) => (names.recordLabel(target.id) === undefined ? undefined : namePathOf(names, target));\n type Columns = Array<{ path: string; alias?: string }>;\n return view && table\n ? recordView(names.schema, table, view as V & { columns?: Columns }, names.app, (target) => namePathOf(names, target), explicit)\n : {\n view: view as (V & { columns: Columns }) | undefined,\n labelColumns: {} as Record<string, string>,\n hidden: [] as string[],\n keyColumns: [] as Array<{ column: string; index: number }>,\n labelColumn: undefined as { path: string; index: number } | undefined,\n };\n}\n\n/** A grouped list's page of groups, as `/api/breakdown` takes it: the request the page's compose asks and the list asks again. */\nexport function groupsBody(groups: HttpBreakdownDefinition, offset: number) {\n return { def: groups, limit: groups.limit, offset };\n}\n\n/** A metric's measure: a count asked as a breakdown with no key, or the plan's own breakdown; none for a plain aggregate. */\nexport function metricMeasure(plan: ReadPlan<ReadView>): HttpBreakdownDefinition | undefined {\n const counted: HttpBreakdownDefinition | undefined =\n plan.counts && plan.view && !plan.breakdown\n ? {\n base: plan.view.base,\n by: [],\n measures: [{ fn: 'count', alias: 'value' }],\n ...(plan.view.filter ? { filter: plan.view.filter as HttpBreakdownDefinition['filter'] } : {}),\n limit: 1,\n }\n : undefined;\n return plan.breakdown ?? counted;\n}\n\n/** Whether the record satisfies a `when`: one bounded query, key and condition composed the way every fold is. */\nexport function whenBody(base: TableMeta, key: Readonly<Record<string, unknown>>, when: string) {\n const keyText = primaryKey(base)\n .map((c) => `${c} = ${quoteValue(String(key[c]))}`)\n .join(' and ');\n return { q: `${base.id} ${andQuery(keyText, when)}`, limit: 1, offset: 0, count: 'none' as const };\n}\n\n/** The first page of a record's history. */\nexport function historyBody(base: TableMeta, key: Readonly<Record<string, unknown>>, limit: number) {\n return { table: base.id, key, limit };\n}\n\n/**\n * The sections a page draws when it opens on `tab`, as PageSections.tsx lays\n * them out: a strip of named tabs draws the one asked for (the first, when\n * none is) and every panel holding the record's own fields; a run of lists\n * made into tabs draws the one asked for; everything else is drawn. The\n * header is drawn in the head. What a closed tab would read is read when it\n * is opened, as ever, and asked for nothing here.\n */\nexport function drawnSections(\n schema: DatabaseSchema,\n page: { id?: string; sections: readonly ReadSection[]; listTabs?: boolean },\n tab: string | undefined,\n appPage: boolean,\n): Set<number> {\n return laidSections(schema, page, tab, appPage).drawn;\n}\n\n/** The address word a tab of a run of lists answers to: its list's title or table, an inferred page's history's own. */\nfunction listTabToken(schema: DatabaseSchema, section: ReadSection): string {\n return section.kind === 'history' ? HISTORY_TAB : (section.title ?? findTable(schema, section.from ?? '')?.name ?? section.from ?? '');\n}\n\n/**\n * A section a run of lists draws as one of its tabs: a list that is no picture and has no width an author gave it,\n * and on an inferred page its history, which ends the strip (pageAnatomy.ts) — read when its tab is opened, never\n * with the page.\n */\nexport function tabbedSection(section: ReadSection, appPage: boolean, inferred: boolean): boolean {\n return (\n (section.kind === 'list' && section.presentation !== 'gallery' && (section.width === undefined || !appPage)) ||\n (inferred && section.kind === 'history')\n );\n}\n\n/** What drawnSections says, and each run of related lists by its sections' indexes: a strip of tabs, or a list alone. */\nfunction laidSections(\n schema: DatabaseSchema,\n page: { id?: string; sections: readonly ReadSection[]; listTabs?: boolean },\n tab: string | undefined,\n appPage: boolean,\n): { drawn: Set<number>; runs: number[][] } {\n const drawn = new Set<number>();\n const runs: number[][] = [];\n const inferred = isInferredPage(page, appPage);\n const shownAll = page.sections.map((section, index) => ({ section, index })).filter(({ section }) => !section.hidden);\n const header = shownAll.find(({ section }) => section.kind === 'fields' && section.presentation === 'header');\n if (header) drawn.add(header.index);\n const hasAside = page.sections.some((section) => section.region === 'aside' && !section.hidden);\n const autoTabs = appPage ? page.listTabs === true : page.listTabs !== false;\n const tabbed = (section: ReadSection) => tabbedSection(section, appPage, inferred);\n type Shown = { section: ReadSection; index: number };\n const lay = (items: readonly Shown[], listTabs: boolean, scoped: boolean) => {\n for (let i = 0; i < items.length; i += 1) {\n if (!(listTabs && autoTabs && tabbed(items[i].section))) {\n drawn.add(items[i].index);\n continue;\n }\n let end = i;\n while (end + 1 < items.length && tabbed(items[end + 1].section)) end += 1;\n const run = items.slice(i, end + 1);\n if (run.length === 1) {\n drawn.add(run[0].index);\n runs.push([run[0].index]);\n } else {\n const token = (item: Shown) => (scoped ? `section:${item.index}` : listTabToken(schema, item.section));\n const asked = run.findIndex((item) => tabMatches(token(item), tab));\n drawn.add(run[asked === -1 ? 0 : asked].index);\n runs.push(run.map((item) => item.index));\n }\n i = end;\n }\n };\n for (const region of hasAside ? ['main', 'aside'] : [undefined]) {\n const shown = shownAll.filter(\n ({ section }) =>\n !(section.kind === 'fields' && section.presentation === 'header') && (!region || (section.region ?? 'main') === region),\n );\n const scoped = region === 'aside';\n const groups: Array<{ name: string; items: Shown[] }> = [];\n for (const item of shown) {\n if (!item.section.tab) continue;\n const group = groups.find((g) => g.name === item.section.tab);\n if (group) group.items.push(item);\n else groups.push({ name: item.section.tab, items: [item] });\n }\n if (groups.length < 2) {\n lay(shown, true, scoped);\n continue;\n }\n const first = shown.findIndex((item) => item.section.tab);\n lay(shown.slice(0, first), true, scoped);\n const asked = groups.findIndex((group) => tabMatches(`tab:${group.name}`, tab));\n groups.forEach((group, i) => {\n if (i === (asked === -1 ? 0 : asked) || group.items.some(({ section }) => section.kind === 'fields')) lay(group.items, false, scoped);\n });\n lay(\n shown.slice(first).filter((item) => !item.section.tab),\n true,\n scoped,\n );\n }\n return { drawn, runs };\n}\n\n/** A related tab's count's ceiling, as a list's total has one: past it the tab says \"10,000+\". */\nexport const RELATED_COUNT_LIMIT = 10_000;\n\n/**\n * The question a related tab's count asks, in the words `/api/counts` reads: the rows of its list that point at the\n * record (`booking class_session_id = 5`), under the list's own narrowing. One hop to the record by its whole key,\n * which is what an inferred page lists; any other list has no question, and its tab keeps the count's room empty.\n */\nexport function relatedCountQuestion(\n schema: DatabaseSchema,\n section: ReadSection,\n base: TableMeta,\n key: Readonly<Record<string, unknown>>,\n): string | undefined {\n if (section.kind !== 'list' || !section.from || !section.path || section.of || section.similar || section.group) return undefined;\n const hop = resolvePath(schema, section.from, section.path).path;\n if (hop?.hops.length !== 1 || hop.endsAt !== base.id) return undefined;\n const { from, to } = hop.hops[0];\n if (to.columns.some((column) => key[column] === undefined || key[column] === null)) return undefined;\n const meets = from.columns.map((column, i) => `${column} = ${quoteValue(String(key[to.columns[i]]))}`).join(' and ');\n return `${section.from} ${andQuery(meets, section.filter)}`;\n}\n\n/**\n * Every count a strip of related tabs shows, in one request: one statement for them all where each is a plain\n * condition (countEach), never a list's read per tab. The client's strip asks this very body (PageSections.tsx),\n * so on a composed page it is answered from the compose.\n */\nexport function relatedCountsBody(\n schema: DatabaseSchema,\n sections: readonly ReadSection[],\n base: TableMeta,\n key: Readonly<Record<string, unknown>>,\n): { items: string[]; countLimit: number } | undefined {\n const items = [...new Set(sections.flatMap((section) => relatedCountQuestion(schema, section, base, key) ?? []))].slice(\n 0,\n COUNT_EACH_MAX,\n );\n return items.length ? { items, countLimit: RELATED_COUNT_LIMIT } : undefined;\n}\n\n/**\n * Every read a record page's sections will ask for when it opens on `tab`,\n * given its plan: the record's row (every column any section drawn reads),\n * and each other request as the section builds it. A hidden section, and\n * one in a closed tab, reads nothing; a section behind a `when` is read\n * too, and its condition asked, since the answer is only kept until it is\n * asked for.\n */\nexport function recordPageReads(\n names: RecordReadNames,\n page: { id: string; sections: readonly ReadSection[]; listTabs?: boolean },\n base: TableMeta,\n plans: readonly ReadPlan[],\n key: Readonly<Record<string, unknown>>,\n options: { rows: number; history: boolean; tab?: string },\n): { row: string[]; parts: Array<{ part: string; columns: string[] }>; reads: ReadAsk[] } {\n const { drawn, runs } = laidSections(names.schema, page, options.tab, names.app);\n /* Each reader of the row with its own columns, too: the one read of all of\n them is refused whole where any column is, and then each is asked alone,\n as the sections would have been. */\n const parts = [{ part: 'root', columns: probeColumns(names, base) }];\n const reads: ReadAsk[] = [];\n const planOf = (index: number) => plans.find((plan) => plan.index === index);\n /* A list section is a related list: what it asks, it asks as one (a read audit names the door `related`). */\n let kind: ReadAsk['kind'];\n const view = (body: Record<string, unknown>) => reads.push({ path: '/api/view/run', body, ...(kind && { kind }) });\n const breakdown = (def: HttpBreakdownDefinition) => reads.push({ path: '/api/breakdown', body: { def }, ...(kind && { kind }) });\n page.sections.forEach((section, index) => {\n if (section.hidden || !drawn.has(index)) return;\n kind = section.kind === 'list' ? 'related' : undefined;\n if (section.when) reads.push({ path: '/api/run', body: whenBody(base, key, section.when) });\n const plan = planOf(index);\n if (section.kind === 'fields') {\n const header = section.presentation === 'header';\n parts.push({\n part: header ? 'header' : 'fields',\n columns: (header ? headerColumns(names, base, section) : fieldsColumns(names, base, section)).fetched,\n });\n return;\n }\n if (section.kind === 'history') {\n if (options.history)\n reads.push({ path: '/api/record-history', body: historyBody(base, key, section.limit ?? DEFAULT_HISTORY_LIMIT) });\n return;\n }\n /* A note reads nothing. Flow runs are fetched lazily by their section, behind the reader's own check\n (server/recordFlows.ts), and a flow's diagram reads its steps when it is drawn, as the reader's rows\n (PageFlowDiagram.tsx). */\n if (kindReading(section.kind, 'none')) return;\n if (section.kind === 'custom' && section.record?.length) parts.push({ part: `${index}:record`, columns: [...section.record] });\n if (!plan || plan.error || plan.empty) return;\n switch (section.kind) {\n case 'metric': {\n const measure = metricMeasure(plan);\n if (measure) breakdown(measure);\n else if (plan.view) view({ view: plan.view });\n return;\n }\n case 'breakdown':\n case 'chart':\n if (plan.breakdown) breakdown(plan.breakdown);\n return;\n case 'timeline':\n for (const stream of plan.streams ?? []) {\n const asked = timelineReads(\n {\n table: (id) => (names.table ? names.table(id) : findTable(names.schema, id)),\n namePath: (table) => namePathOf(names, table),\n },\n stream,\n );\n if (asked) view({ view: asked.view, offset: 0 });\n if (asked?.side) view({ view: asked.side, offset: 0 });\n }\n return;\n case 'custom':\n for (const read of Object.values(plan.reads ?? {}))\n if (!read.error && !read.empty && read.view) view({ view: read.view, offset: 0, count: 'none' });\n for (const total of Object.values(plan.aggregates ?? {}))\n if (!total.error && !total.empty && total.breakdown) breakdown(total.breakdown);\n return;\n case 'list': {\n /* A grouped list asks its groups first; each group's rows are asked of the keys that come back. */\n if (section.group && plan.groups) {\n reads.push({ path: '/api/breakdown', body: groupsBody(plan.groups, 0), kind: 'related' });\n if (plan.totals) breakdown(plan.totals);\n return;\n }\n const listed = listView(names, section, plan, options.rows).view;\n if (listed) view({ view: listed, offset: 0 });\n if (plan.totals) breakdown(plan.totals);\n return;\n }\n default:\n assertNever(section.kind, 'page section kind');\n }\n });\n /* An inferred page's tabs say how many rows each holds, all of them in one read; a list alone says it in its head. */\n if (isInferredPage(page, names.app))\n for (const run of runs) {\n const body = relatedCountsBody(\n names.schema,\n run.map((index) => page.sections[index]),\n base,\n key,\n );\n if (body) reads.push({ path: '/api/counts', body, kind: 'related' });\n }\n return { row: [...new Set(parts.flatMap((part) => part.columns))], parts, reads };\n}\n"],"mappings":";;;;;AA6CA,IAAaY,IAAsB;AA8FnC,SAAgBC,EACd,GACA,GACmC;CACnC,IAAIC,EAAO,SAASA,EAAO,SAAS,CAACA,EAAO,MAAM;CAClD,IAAMC,IAAQD,EAAO,SAAS,KAAA,IAAY,KAAA,IAAYE,EAAM,MAAMF,EAAO,IAAI,GACvEG,IAAYH,EAAO,KAAKC,GAAO,QAAQ,MAAM,MAAWG,EAAO,SAASJ,EAAO,EAAE,CAAC,EAAE,aAAa,KAAA,GACjGK,IAASF,IAAYD,EAAM,MAAMC,EAAU,KAAK,IAAI,KAAA,GACpDG,IAAQD,KAAUH,EAAM,SAASG,CAAM,GACvCE,IACJF,KAAUC,KAAS,CAACpB,EAAWmB,CAAM,CAAC,CAAC,SAASC,CAAK,IAChD;EAAE,GAAGN,EAAO;EAAM,SAAS,CAAC,GAAIA,EAAO,KAAK,WAAW,CAAC,GAAI,EAAE,MAAM,GAAGA,EAAO,GAAG,GAAGM,IAAQ,CAAC;CAAE,IAChGN,EAAO,MACPQ,IAAOR,EAAO,MAAM,QAAQ,CAACA,EAAO,KAAK,SAASA,EAAO,KAAK,SAASA,EAAO,KAAK,OAAO,KAAA;CAChG,OAAOQ,IAAO;EAAE;EAAM;CAAK,IAA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).`);
4169
4169
  return s?.signedIn && s.surface ? s.surface : void 0;
4170
4170
  }
4171
- var Xr = "1.0.0-rc.28";
4171
+ var Xr = "1.0.0-rc.30";
4172
4172
  function Zr({ endpoint: e, auth: t, app: n, surface: r, basePath: c, navigator: d, version: f = Xr, fallback: m, children: h }) {
4173
4173
  let g = e.replace(/\/+$/, ""), _ = o(t);
4174
4174
  _.current = t;
@@ -4,7 +4,7 @@ import { n as s, r as c, t as l } from "./chunks/router-CAJxIEw4.js";
4
4
  import { createContext as u, useContext as d, useEffect as f, useMemo as p, useRef as m, useState as h } from "react";
5
5
  import { jsx as g } from "react/jsx-runtime";
6
6
  // packages/mistri/src/embed/index.tsx
7
- var _ = "1.0.0-rc.28", v = u(null), y;
7
+ var _ = "1.0.0-rc.30", v = u(null), y;
8
8
  async function b(n, i, a) {
9
9
  let o = i?.authorization(), s = a ? `?${new URLSearchParams({
10
10
  app: a.app,