@mistriwork/mistri 1.0.0-rc.53 → 1.0.0-rc.55
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.
- package/CHANGELOG.md +15 -0
- package/README.md +16 -1
- package/dist/client/assets/AccountAdministration-C3oTHIlY.js +2 -0
- package/dist/client/assets/AccountAdministration-C3oTHIlY.js.br +0 -0
- package/dist/client/assets/AccountAdministration-C3oTHIlY.js.gz +0 -0
- package/dist/client/assets/AccountAdministration-C3oTHIlY.js.map +1 -0
- package/dist/client/assets/AccountControl-Uuhsd5Ch.js +3 -0
- package/dist/client/assets/AccountControl-Uuhsd5Ch.js.br +0 -0
- package/dist/client/assets/AccountControl-Uuhsd5Ch.js.gz +0 -0
- package/dist/client/assets/AccountControl-Uuhsd5Ch.js.map +1 -0
- package/dist/client/assets/AccountProfile-B3Hv3021.js +2 -0
- package/dist/client/assets/AccountProfile-B3Hv3021.js.br +0 -0
- package/dist/client/assets/AccountProfile-B3Hv3021.js.gz +0 -0
- package/dist/client/assets/AccountProfile-B3Hv3021.js.map +1 -0
- package/dist/client/assets/ApiOperations-lBA4XqEY.js +2 -0
- package/dist/client/assets/ApiOperations-lBA4XqEY.js.br +0 -0
- package/dist/client/assets/ApiOperations-lBA4XqEY.js.gz +0 -0
- package/dist/client/assets/ApiOperations-lBA4XqEY.js.map +1 -0
- package/dist/client/assets/AppColumnMenuPopups-BpTx0J08.js +2 -0
- package/dist/client/assets/AppColumnMenuPopups-BpTx0J08.js.br +0 -0
- package/dist/client/assets/AppColumnMenuPopups-BpTx0J08.js.gz +0 -0
- package/dist/client/assets/AppColumnMenuPopups-BpTx0J08.js.map +1 -0
- package/dist/client/assets/AsOfChip-DrIg42Jh.js +2 -0
- package/dist/client/assets/AsOfChip-DrIg42Jh.js.br +0 -0
- package/dist/client/assets/AsOfChip-DrIg42Jh.js.gz +0 -0
- package/dist/client/assets/AsOfChip-DrIg42Jh.js.map +1 -0
- package/dist/client/assets/AssistantPanel-DUnYZzRA.js +3 -0
- package/dist/client/assets/AssistantPanel-DUnYZzRA.js.br +0 -0
- package/dist/client/assets/AssistantPanel-DUnYZzRA.js.gz +0 -0
- package/dist/client/assets/AssistantPanel-DUnYZzRA.js.map +1 -0
- package/dist/client/assets/AttachmentList-C7E3CulE.js +3 -0
- package/dist/client/assets/AttachmentList-C7E3CulE.js.br +0 -0
- package/dist/client/assets/AttachmentList-C7E3CulE.js.gz +0 -0
- package/dist/client/assets/AttachmentList-C7E3CulE.js.map +1 -0
- package/dist/client/assets/BoardCardEditor-CdtRbIXE.js +2 -0
- package/dist/client/assets/BoardCardEditor-CdtRbIXE.js.br +0 -0
- package/dist/client/assets/BoardCardEditor-CdtRbIXE.js.gz +0 -0
- package/dist/client/assets/BoardCardEditor-CdtRbIXE.js.map +1 -0
- package/dist/client/assets/BoardList-To48FR9L.js +5 -0
- package/dist/client/assets/BoardList-To48FR9L.js.br +0 -0
- package/dist/client/assets/BoardList-To48FR9L.js.gz +0 -0
- package/dist/client/assets/BoardList-To48FR9L.js.map +1 -0
- package/dist/client/assets/BrandingForm-B2fWEInI.js +2 -0
- package/dist/client/assets/BrandingForm-B2fWEInI.js.br +0 -0
- package/dist/client/assets/BrandingForm-B2fWEInI.js.gz +0 -0
- package/dist/client/assets/BrandingForm-B2fWEInI.js.map +1 -0
- package/dist/client/assets/BreakdownRoom-D5Eiw-HN.js +2 -0
- package/dist/client/assets/BreakdownRoom-D5Eiw-HN.js.br +0 -0
- package/dist/client/assets/BreakdownRoom-D5Eiw-HN.js.gz +0 -0
- package/dist/client/assets/BreakdownRoom-D5Eiw-HN.js.map +1 -0
- package/dist/client/assets/CalendarList-CqIrCeGU.js +2 -0
- package/dist/client/assets/CalendarList-CqIrCeGU.js.br +0 -0
- package/dist/client/assets/CalendarList-CqIrCeGU.js.gz +0 -0
- package/dist/client/assets/CalendarList-CqIrCeGU.js.map +1 -0
- package/dist/client/assets/CardsList-D0TknUSs.js +2 -0
- package/dist/client/assets/CardsList-D0TknUSs.js.br +0 -0
- package/dist/client/assets/CardsList-D0TknUSs.js.gz +0 -0
- package/dist/client/assets/CardsList-D0TknUSs.js.map +1 -0
- package/dist/client/assets/Chart-DB_dANy-.js +2 -0
- package/dist/client/assets/Chart-DB_dANy-.js.br +0 -0
- package/dist/client/assets/Chart-DB_dANy-.js.gz +0 -0
- package/dist/client/assets/Chart-DB_dANy-.js.map +1 -0
- package/dist/client/assets/ChartFigure-D_L7DSPq.js +3 -0
- package/dist/client/assets/ChartFigure-D_L7DSPq.js.br +0 -0
- package/dist/client/assets/ChartFigure-D_L7DSPq.js.gz +0 -0
- package/dist/client/assets/ChartFigure-D_L7DSPq.js.map +1 -0
- package/dist/client/assets/ChartShapes-Bn9bZ2Q5.js +2 -0
- package/dist/client/assets/ChartShapes-Bn9bZ2Q5.js.br +0 -0
- package/dist/client/assets/ChartShapes-Bn9bZ2Q5.js.gz +0 -0
- package/dist/client/assets/ChartShapes-Bn9bZ2Q5.js.map +1 -0
- package/dist/client/assets/CheckedAppTargetAction-DzDQn1Qk.js +2 -0
- package/dist/client/assets/CheckedAppTargetAction-DzDQn1Qk.js.br +0 -0
- package/dist/client/assets/CheckedAppTargetAction-DzDQn1Qk.js.gz +0 -0
- package/dist/client/assets/CheckedAppTargetAction-DzDQn1Qk.js.map +1 -0
- package/dist/client/assets/Choices-Bh7XDJMQ.js +2 -0
- package/dist/client/assets/Choices-Bh7XDJMQ.js.br +0 -0
- package/dist/client/assets/Choices-Bh7XDJMQ.js.gz +0 -0
- package/dist/client/assets/Choices-Bh7XDJMQ.js.map +1 -0
- package/dist/client/assets/ClaimInvitation-sd2TwRZG.js +2 -0
- package/dist/client/assets/ClaimInvitation-sd2TwRZG.js.br +0 -0
- package/dist/client/assets/ClaimInvitation-sd2TwRZG.js.gz +0 -0
- package/dist/client/assets/ClaimInvitation-sd2TwRZG.js.map +1 -0
- package/dist/client/assets/CommandAnswers-FWR-q8O8.js +2 -0
- package/dist/client/assets/CommandAnswers-FWR-q8O8.js.br +0 -0
- package/dist/client/assets/CommandAnswers-FWR-q8O8.js.gz +0 -0
- package/dist/client/assets/CommandAnswers-FWR-q8O8.js.map +1 -0
- package/dist/client/assets/CommandForm-BifWVCuD.js +3 -0
- package/dist/client/assets/CommandForm-BifWVCuD.js.br +0 -0
- package/dist/client/assets/CommandForm-BifWVCuD.js.gz +0 -0
- package/dist/client/assets/CommandForm-BifWVCuD.js.map +1 -0
- package/dist/client/assets/CommandLines-DHvCryX7.js +2 -0
- package/dist/client/assets/CommandLines-DHvCryX7.js.br +0 -0
- package/dist/client/assets/CommandLines-DHvCryX7.js.gz +0 -0
- package/dist/client/assets/CommandLines-DHvCryX7.js.map +1 -0
- package/dist/client/assets/CommandLive-DWt1x5kb.js +2 -0
- package/dist/client/assets/CommandLive-DWt1x5kb.js.br +0 -0
- package/dist/client/assets/CommandLive-DWt1x5kb.js.gz +0 -0
- package/dist/client/assets/CommandLive-DWt1x5kb.js.map +1 -0
- package/dist/client/assets/CommandReference-BnMFCUPp.js +3 -0
- package/dist/client/assets/CommandReference-BnMFCUPp.js.br +0 -0
- package/dist/client/assets/CommandReference-BnMFCUPp.js.gz +0 -0
- package/dist/client/assets/CommandReference-BnMFCUPp.js.map +1 -0
- package/dist/client/assets/Composer-DhlrkTFi.js +5 -0
- package/dist/client/assets/Composer-DhlrkTFi.js.br +0 -0
- package/dist/client/assets/Composer-DhlrkTFi.js.gz +0 -0
- package/dist/client/assets/Composer-DhlrkTFi.js.map +1 -0
- package/dist/client/assets/CountedLabel-GfVnsTq4.js +2 -0
- package/dist/client/assets/CountedLabel-GfVnsTq4.js.br +0 -0
- package/dist/client/assets/CountedLabel-GfVnsTq4.js.gz +0 -0
- package/dist/client/assets/CountedLabel-GfVnsTq4.js.map +1 -0
- package/dist/client/assets/CustomList-DL8nNJU9.js +2 -0
- package/dist/client/assets/CustomList-DL8nNJU9.js.br +0 -0
- package/dist/client/assets/CustomList-DL8nNJU9.js.gz +0 -0
- package/dist/client/assets/CustomList-DL8nNJU9.js.map +1 -0
- package/dist/client/assets/CustomPage-JX0jhBzY.js +3 -0
- package/dist/client/assets/CustomPage-JX0jhBzY.js.br +0 -0
- package/dist/client/assets/CustomPage-JX0jhBzY.js.gz +0 -0
- package/dist/client/assets/CustomPage-JX0jhBzY.js.map +1 -0
- package/dist/client/assets/CustomSection-Bf1Rq_ST.js +2 -0
- package/dist/client/assets/CustomSection-Bf1Rq_ST.js.br +0 -0
- package/dist/client/assets/CustomSection-Bf1Rq_ST.js.gz +0 -0
- package/dist/client/assets/CustomSection-Bf1Rq_ST.js.map +1 -0
- package/dist/client/assets/Dashboard-B8k8QFrA.js +3 -0
- package/dist/client/assets/Dashboard-B8k8QFrA.js.br +0 -0
- package/dist/client/assets/Dashboard-B8k8QFrA.js.gz +0 -0
- package/dist/client/assets/Dashboard-B8k8QFrA.js.map +1 -0
- package/dist/client/assets/DashboardActivity-C_OR3BxK.js +2 -0
- package/dist/client/assets/DashboardActivity-C_OR3BxK.js.br +0 -0
- package/dist/client/assets/DashboardActivity-C_OR3BxK.js.gz +0 -0
- package/dist/client/assets/DashboardActivity-C_OR3BxK.js.map +1 -0
- package/dist/client/assets/DashboardFind-LlbjnBB0.js +2 -0
- package/dist/client/assets/DashboardFind-LlbjnBB0.js.br +0 -0
- package/dist/client/assets/DashboardFind-LlbjnBB0.js.gz +0 -0
- package/dist/client/assets/DashboardFind-LlbjnBB0.js.map +1 -0
- package/dist/client/assets/DashboardList-D93_Q5-c.js +2 -0
- package/dist/client/assets/DashboardList-D93_Q5-c.js.br +0 -0
- package/dist/client/assets/DashboardList-D93_Q5-c.js.gz +0 -0
- package/dist/client/assets/DashboardList-D93_Q5-c.js.map +1 -0
- package/dist/client/assets/DateTimeInput-DttG9obK.js +2 -0
- package/dist/client/assets/DateTimeInput-DttG9obK.js.br +0 -0
- package/dist/client/assets/DateTimeInput-DttG9obK.js.gz +0 -0
- package/dist/client/assets/DateTimeInput-DttG9obK.js.map +1 -0
- package/dist/client/assets/DecisionChip-CG6siYHD.js +2 -0
- package/dist/client/assets/DecisionChip-CG6siYHD.js.br +0 -0
- package/dist/client/assets/DecisionChip-CG6siYHD.js.gz +0 -0
- package/dist/client/assets/DecisionChip-CG6siYHD.js.map +1 -0
- package/dist/client/assets/DefinedFields-DZlFlSfd.js +2 -0
- package/dist/client/assets/DefinedFields-DZlFlSfd.js.br +0 -0
- package/dist/client/assets/DefinedFields-DZlFlSfd.js.gz +0 -0
- package/dist/client/assets/DefinedFields-DZlFlSfd.js.map +1 -0
- package/dist/client/assets/Diagram-BxhoSfE0.js +6 -0
- package/dist/client/assets/Diagram-BxhoSfE0.js.br +0 -0
- package/dist/client/assets/Diagram-BxhoSfE0.js.gz +0 -0
- package/dist/client/assets/Diagram-BxhoSfE0.js.map +1 -0
- package/dist/client/assets/Directory-D4zheqdP.js +2 -0
- package/dist/client/assets/Directory-D4zheqdP.js.br +0 -0
- package/dist/client/assets/Directory-D4zheqdP.js.gz +0 -0
- package/dist/client/assets/Directory-D4zheqdP.js.map +1 -0
- package/dist/client/assets/Document-DzLpM-Kc.js +2 -0
- package/dist/client/assets/Document-DzLpM-Kc.js.br +0 -0
- package/dist/client/assets/Document-DzLpM-Kc.js.gz +0 -0
- package/dist/client/assets/Document-DzLpM-Kc.js.map +1 -0
- package/dist/client/assets/Export-CBsanqgv.js +2 -0
- package/dist/client/assets/Export-CBsanqgv.js.br +0 -0
- package/dist/client/assets/Export-CBsanqgv.js.gz +0 -0
- package/dist/client/assets/Export-CBsanqgv.js.map +1 -0
- package/dist/client/assets/FilePreview-B4u8iKc8.js +2 -0
- package/dist/client/assets/FilePreview-B4u8iKc8.js.br +0 -0
- package/dist/client/assets/FilePreview-B4u8iKc8.js.gz +0 -0
- package/dist/client/assets/FilePreview-B4u8iKc8.js.map +1 -0
- package/dist/client/assets/FormClaimSurface-COdtEKz3.js +2 -0
- package/dist/client/assets/FormClaimSurface-COdtEKz3.js.br +0 -0
- package/dist/client/assets/FormClaimSurface-COdtEKz3.js.gz +0 -0
- package/dist/client/assets/FormClaimSurface-COdtEKz3.js.map +1 -0
- package/dist/client/assets/FormDialog-D98xrJPB.js +3 -0
- package/dist/client/assets/FormDialog-D98xrJPB.js.br +0 -0
- package/dist/client/assets/FormDialog-D98xrJPB.js.gz +0 -0
- package/dist/client/assets/FormDialog-D98xrJPB.js.map +1 -0
- package/dist/client/assets/FormLines-DX8uGvcA.js +2 -0
- package/dist/client/assets/FormLines-DX8uGvcA.js.br +0 -0
- package/dist/client/assets/FormLines-DX8uGvcA.js.gz +0 -0
- package/dist/client/assets/FormLines-DX8uGvcA.js.map +1 -0
- package/dist/client/assets/FormParts-nBIRDBHU.js +2 -0
- package/dist/client/assets/FormParts-nBIRDBHU.js.br +0 -0
- package/dist/client/assets/FormParts-nBIRDBHU.js.gz +0 -0
- package/dist/client/assets/FormParts-nBIRDBHU.js.map +1 -0
- package/dist/client/assets/FormStatusSurface-O8Iy7bk0.js +2 -0
- package/dist/client/assets/FormStatusSurface-O8Iy7bk0.js.br +0 -0
- package/dist/client/assets/FormStatusSurface-O8Iy7bk0.js.gz +0 -0
- package/dist/client/assets/FormStatusSurface-O8Iy7bk0.js.map +1 -0
- package/dist/client/assets/Gallery-CySinSXi.js +3 -0
- package/dist/client/assets/Gallery-CySinSXi.js.br +0 -0
- package/dist/client/assets/Gallery-CySinSXi.js.gz +0 -0
- package/dist/client/assets/Gallery-CySinSXi.js.map +1 -0
- package/dist/client/assets/GanttList-DnIai0-w.js +2 -0
- package/dist/client/assets/GanttList-DnIai0-w.js.br +0 -0
- package/dist/client/assets/GanttList-DnIai0-w.js.gz +0 -0
- package/dist/client/assets/GanttList-DnIai0-w.js.map +1 -0
- package/dist/client/assets/GridCellEditor-gcPpvJzn.js +2 -0
- package/dist/client/assets/GridCellEditor-gcPpvJzn.js.br +0 -0
- package/dist/client/assets/GridCellEditor-gcPpvJzn.js.gz +0 -0
- package/dist/client/assets/GridCellEditor-gcPpvJzn.js.map +1 -0
- package/dist/client/assets/HeldFiles-mZGjxE5u.js +3 -0
- package/dist/client/assets/HeldFiles-mZGjxE5u.js.br +0 -0
- package/dist/client/assets/HeldFiles-mZGjxE5u.js.gz +0 -0
- package/dist/client/assets/HeldFiles-mZGjxE5u.js.map +1 -0
- package/dist/client/assets/HelpPanel-BGfN-MnO.js +2 -0
- package/dist/client/assets/HelpPanel-BGfN-MnO.js.br +0 -0
- package/dist/client/assets/HelpPanel-BGfN-MnO.js.gz +0 -0
- package/dist/client/assets/HelpPanel-BGfN-MnO.js.map +1 -0
- package/dist/client/assets/ImportDialog-BLlN4Vtt.js +9 -0
- package/dist/client/assets/ImportDialog-BLlN4Vtt.js.br +0 -0
- package/dist/client/assets/ImportDialog-BLlN4Vtt.js.gz +0 -0
- package/dist/client/assets/ImportDialog-BLlN4Vtt.js.map +1 -0
- package/dist/client/assets/InboxList-Bretku0p.js +2 -0
- package/dist/client/assets/InboxList-Bretku0p.js.br +0 -0
- package/dist/client/assets/InboxList-Bretku0p.js.gz +0 -0
- package/dist/client/assets/InboxList-Bretku0p.js.map +1 -0
- package/dist/client/assets/IntakeControls-BYaK9c_Y.js +2 -0
- package/dist/client/assets/IntakeControls-BYaK9c_Y.js.br +0 -0
- package/dist/client/assets/IntakeControls-BYaK9c_Y.js.gz +0 -0
- package/dist/client/assets/IntakeControls-BYaK9c_Y.js.map +1 -0
- package/dist/client/assets/IntegrationsForm-DD-wymlU.js +2 -0
- package/dist/client/assets/IntegrationsForm-DD-wymlU.js.br +0 -0
- package/dist/client/assets/IntegrationsForm-DD-wymlU.js.gz +0 -0
- package/dist/client/assets/IntegrationsForm-DD-wymlU.js.map +1 -0
- package/dist/client/assets/JsonView-CKli9JvY.js +4 -0
- package/dist/client/assets/JsonView-CKli9JvY.js.br +0 -0
- package/dist/client/assets/JsonView-CKli9JvY.js.gz +0 -0
- package/dist/client/assets/JsonView-CKli9JvY.js.map +1 -0
- package/dist/client/assets/LayoutBuilder-DkIdCwDb.js +2 -0
- package/dist/client/assets/LayoutBuilder-DkIdCwDb.js.br +0 -0
- package/dist/client/assets/LayoutBuilder-DkIdCwDb.js.gz +0 -0
- package/dist/client/assets/LayoutBuilder-DkIdCwDb.js.map +1 -0
- package/dist/client/assets/Lightbox-BKRJ9eO8.js +2 -0
- package/dist/client/assets/Lightbox-BKRJ9eO8.js.br +0 -0
- package/dist/client/assets/Lightbox-BKRJ9eO8.js.gz +0 -0
- package/dist/client/assets/Lightbox-BKRJ9eO8.js.map +1 -0
- package/dist/client/assets/LiveNotices-COmDyFZU.js +2 -0
- package/dist/client/assets/LiveNotices-COmDyFZU.js.br +0 -0
- package/dist/client/assets/LiveNotices-COmDyFZU.js.gz +0 -0
- package/dist/client/assets/LiveNotices-COmDyFZU.js.map +1 -0
- package/dist/client/assets/MinorMoneyInput-BIaj9R54.js +2 -0
- package/dist/client/assets/MinorMoneyInput-BIaj9R54.js.br +0 -0
- package/dist/client/assets/MinorMoneyInput-BIaj9R54.js.gz +0 -0
- package/dist/client/assets/MinorMoneyInput-BIaj9R54.js.map +1 -0
- package/dist/client/assets/MultiStepForm-DwSyN21A.js +3 -0
- package/dist/client/assets/MultiStepForm-DwSyN21A.js.br +0 -0
- package/dist/client/assets/MultiStepForm-DwSyN21A.js.gz +0 -0
- package/dist/client/assets/MultiStepForm-DwSyN21A.js.map +1 -0
- package/dist/client/assets/NewMenu-D4HZDAeP.js +2 -0
- package/dist/client/assets/NewMenu-D4HZDAeP.js.br +0 -0
- package/dist/client/assets/NewMenu-D4HZDAeP.js.gz +0 -0
- package/dist/client/assets/NewMenu-D4HZDAeP.js.map +1 -0
- package/dist/client/assets/NewRecord--Iql2V5j.js +3 -0
- package/dist/client/assets/NewRecord--Iql2V5j.js.br +0 -0
- package/dist/client/assets/NewRecord--Iql2V5j.js.gz +0 -0
- package/dist/client/assets/NewRecord--Iql2V5j.js.map +1 -0
- package/dist/client/assets/PageFlowDiagram-CguZrEus.js +3 -0
- package/dist/client/assets/PageFlowDiagram-CguZrEus.js.br +0 -0
- package/dist/client/assets/PageFlowDiagram-CguZrEus.js.gz +0 -0
- package/dist/client/assets/PageFlowDiagram-CguZrEus.js.map +1 -0
- package/dist/client/assets/PageFlows-BbT-8hoI.js +2 -0
- package/dist/client/assets/PageFlows-BbT-8hoI.js.br +0 -0
- package/dist/client/assets/PageFlows-BbT-8hoI.js.gz +0 -0
- package/dist/client/assets/PageFlows-BbT-8hoI.js.map +1 -0
- package/dist/client/assets/PageGroups-yuIcWvGD.js +2 -0
- package/dist/client/assets/PageGroups-yuIcWvGD.js.br +0 -0
- package/dist/client/assets/PageGroups-yuIcWvGD.js.gz +0 -0
- package/dist/client/assets/PageGroups-yuIcWvGD.js.map +1 -0
- package/dist/client/assets/PageHistory-BI7R0cP-.js +2 -0
- package/dist/client/assets/PageHistory-BI7R0cP-.js.br +0 -0
- package/dist/client/assets/PageHistory-BI7R0cP-.js.gz +0 -0
- package/dist/client/assets/PageHistory-BI7R0cP-.js.map +1 -0
- package/dist/client/assets/PageSkeleton-BL26CKwY.js +2 -0
- package/dist/client/assets/PageSkeleton-BL26CKwY.js.br +0 -0
- package/dist/client/assets/PageSkeleton-BL26CKwY.js.gz +0 -0
- package/dist/client/assets/PageSkeleton-BL26CKwY.js.map +1 -0
- package/dist/client/assets/Palette-GwxPg8yp.js +3 -0
- package/dist/client/assets/Palette-GwxPg8yp.js.br +0 -0
- package/dist/client/assets/Palette-GwxPg8yp.js.gz +0 -0
- package/dist/client/assets/Palette-GwxPg8yp.js.map +1 -0
- package/dist/client/assets/PeekPanel-DpeJQhsK.js +2 -0
- package/dist/client/assets/PeekPanel-DpeJQhsK.js.br +0 -0
- package/dist/client/assets/PeekPanel-DpeJQhsK.js.gz +0 -0
- package/dist/client/assets/PeekPanel-DpeJQhsK.js.map +1 -0
- package/dist/client/assets/PlacedFormSurface-CNfB-JTM.js +2 -0
- package/dist/client/assets/PlacedFormSurface-CNfB-JTM.js.br +0 -0
- package/dist/client/assets/PlacedFormSurface-CNfB-JTM.js.gz +0 -0
- package/dist/client/assets/PlacedFormSurface-CNfB-JTM.js.map +1 -0
- package/dist/client/assets/Prefs-DRAVcik_.js +2 -0
- package/dist/client/assets/Prefs-DRAVcik_.js.br +0 -0
- package/dist/client/assets/Prefs-DRAVcik_.js.gz +0 -0
- package/dist/client/assets/Prefs-DRAVcik_.js.map +1 -0
- package/dist/client/assets/PresentedList-CPgfQFZ4.js +2 -0
- package/dist/client/assets/PresentedList-CPgfQFZ4.js.br +0 -0
- package/dist/client/assets/PresentedList-CPgfQFZ4.js.gz +0 -0
- package/dist/client/assets/PresentedList-CPgfQFZ4.js.map +1 -0
- package/dist/client/assets/PublicGuard-CA_sYFh1.js +2 -0
- package/dist/client/assets/PublicGuard-CA_sYFh1.js.br +0 -0
- package/dist/client/assets/PublicGuard-CA_sYFh1.js.gz +0 -0
- package/dist/client/assets/PublicGuard-CA_sYFh1.js.map +1 -0
- package/dist/client/assets/QrCode-D1hdBMKl.js +4 -0
- package/dist/client/assets/QrCode-D1hdBMKl.js.br +0 -0
- package/dist/client/assets/QrCode-D1hdBMKl.js.gz +0 -0
- package/dist/client/assets/QrCode-D1hdBMKl.js.map +1 -0
- package/dist/client/assets/QuickAdd-DVlRjLaf.js +2 -0
- package/dist/client/assets/QuickAdd-DVlRjLaf.js.br +0 -0
- package/dist/client/assets/QuickAdd-DVlRjLaf.js.gz +0 -0
- package/dist/client/assets/QuickAdd-DVlRjLaf.js.map +1 -0
- package/dist/client/assets/Record-CbJCwrxQ.js +2 -0
- package/dist/client/assets/Record-CbJCwrxQ.js.br +0 -0
- package/dist/client/assets/Record-CbJCwrxQ.js.gz +0 -0
- package/dist/client/assets/Record-CbJCwrxQ.js.map +1 -0
- package/dist/client/assets/RecordModal-CAsopcf_.js +2 -0
- package/dist/client/assets/RecordModal-CAsopcf_.js.br +0 -0
- package/dist/client/assets/RecordModal-CAsopcf_.js.gz +0 -0
- package/dist/client/assets/RecordModal-CAsopcf_.js.map +1 -0
- package/dist/client/assets/RichTextEditor-Bj2OL6iF.js +144 -0
- package/dist/client/assets/RichTextEditor-Bj2OL6iF.js.br +0 -0
- package/dist/client/assets/RichTextEditor-Bj2OL6iF.js.gz +0 -0
- package/dist/client/assets/RichTextEditor-Bj2OL6iF.js.map +1 -0
- package/dist/client/assets/SavedFormSurface-CdD9ykE5.js +2 -0
- package/dist/client/assets/SavedFormSurface-CdD9ykE5.js.br +0 -0
- package/dist/client/assets/SavedFormSurface-CdD9ykE5.js.gz +0 -0
- package/dist/client/assets/SavedFormSurface-CdD9ykE5.js.map +1 -0
- package/dist/client/assets/SectionPeriod-BMy1bK7R.js +2 -0
- package/dist/client/assets/SectionPeriod-BMy1bK7R.js.br +0 -0
- package/dist/client/assets/SectionPeriod-BMy1bK7R.js.gz +0 -0
- package/dist/client/assets/SectionPeriod-BMy1bK7R.js.map +1 -0
- package/dist/client/assets/SetFieldDialog-D016AWKw.js +2 -0
- package/dist/client/assets/SetFieldDialog-D016AWKw.js.br +0 -0
- package/dist/client/assets/SetFieldDialog-D016AWKw.js.gz +0 -0
- package/dist/client/assets/SetFieldDialog-D016AWKw.js.map +1 -0
- package/dist/client/assets/SignedInFormDialog-DbnqvTgs.js +2 -0
- package/dist/client/assets/SignedInFormDialog-DbnqvTgs.js.br +0 -0
- package/dist/client/assets/SignedInFormDialog-DbnqvTgs.js.gz +0 -0
- package/dist/client/assets/SignedInFormDialog-DbnqvTgs.js.map +1 -0
- package/dist/client/assets/SuggestBox-DQPzg1mm.js +2 -0
- package/dist/client/assets/SuggestBox-DQPzg1mm.js.br +0 -0
- package/dist/client/assets/SuggestBox-DQPzg1mm.js.gz +0 -0
- package/dist/client/assets/SuggestBox-DQPzg1mm.js.map +1 -0
- package/dist/client/assets/SuiteAppPreference-OTBArq0c.js +2 -0
- package/dist/client/assets/SuiteAppPreference-OTBArq0c.js.br +0 -0
- package/dist/client/assets/SuiteAppPreference-OTBArq0c.js.gz +0 -0
- package/dist/client/assets/SuiteAppPreference-OTBArq0c.js.map +1 -0
- package/dist/client/assets/SuiteAppSwitcher-CwRCCSZM.js +2 -0
- package/dist/client/assets/SuiteAppSwitcher-CwRCCSZM.js.br +0 -0
- package/dist/client/assets/SuiteAppSwitcher-CwRCCSZM.js.gz +0 -0
- package/dist/client/assets/SuiteAppSwitcher-CwRCCSZM.js.map +1 -0
- package/dist/client/assets/SupportLog-DsUxaQQv.js +2 -0
- package/dist/client/assets/SupportLog-DsUxaQQv.js.br +0 -0
- package/dist/client/assets/SupportLog-DsUxaQQv.js.gz +0 -0
- package/dist/client/assets/SupportLog-DsUxaQQv.js.map +1 -0
- package/dist/client/assets/SupportSessions-SaHjgezM.js +2 -0
- package/dist/client/assets/SupportSessions-SaHjgezM.js.br +0 -0
- package/dist/client/assets/SupportSessions-SaHjgezM.js.gz +0 -0
- package/dist/client/assets/SupportSessions-SaHjgezM.js.map +1 -0
- package/dist/client/assets/TenantAdministration-mrM2QnDf.js +4 -0
- package/dist/client/assets/TenantAdministration-mrM2QnDf.js.br +0 -0
- package/dist/client/assets/TenantAdministration-mrM2QnDf.js.gz +0 -0
- package/dist/client/assets/TenantAdministration-mrM2QnDf.js.map +1 -0
- package/dist/client/assets/TenantApiTokens-BdjukuDq.js +2 -0
- package/dist/client/assets/TenantApiTokens-BdjukuDq.js.br +0 -0
- package/dist/client/assets/TenantApiTokens-BdjukuDq.js.gz +0 -0
- package/dist/client/assets/TenantApiTokens-BdjukuDq.js.map +1 -0
- package/dist/client/assets/TenantInvitations-BBZW5PlJ.js +2 -0
- package/dist/client/assets/TenantInvitations-BBZW5PlJ.js.br +0 -0
- package/dist/client/assets/TenantInvitations-BBZW5PlJ.js.gz +0 -0
- package/dist/client/assets/TenantInvitations-BBZW5PlJ.js.map +1 -0
- package/dist/client/assets/ThemeLab-D-rbgFHt.js +4 -0
- package/dist/client/assets/ThemeLab-D-rbgFHt.js.br +0 -0
- package/dist/client/assets/ThemeLab-D-rbgFHt.js.gz +0 -0
- package/dist/client/assets/ThemeLab-D-rbgFHt.js.map +1 -0
- package/dist/client/assets/TimelineComposer-Ckp7S3Jw.js +2 -0
- package/dist/client/assets/TimelineComposer-Ckp7S3Jw.js.br +0 -0
- package/dist/client/assets/TimelineComposer-Ckp7S3Jw.js.gz +0 -0
- package/dist/client/assets/TimelineComposer-Ckp7S3Jw.js.map +1 -0
- package/dist/client/assets/TimelineReactions-CCNJr1iP.js +2 -0
- package/dist/client/assets/TimelineReactions-CCNJr1iP.js.br +0 -0
- package/dist/client/assets/TimelineReactions-CCNJr1iP.js.gz +0 -0
- package/dist/client/assets/TimelineReactions-CCNJr1iP.js.map +1 -0
- package/dist/client/assets/TopNav-rfzfaYnb.js +3 -0
- package/dist/client/assets/TopNav-rfzfaYnb.js.br +0 -0
- package/dist/client/assets/TopNav-rfzfaYnb.js.gz +0 -0
- package/dist/client/assets/TopNav-rfzfaYnb.js.map +1 -0
- package/dist/client/assets/Tour-CD7xBphI.js +2 -0
- package/dist/client/assets/Tour-CD7xBphI.js.br +0 -0
- package/dist/client/assets/Tour-CD7xBphI.js.gz +0 -0
- package/dist/client/assets/Tour-CD7xBphI.js.map +1 -0
- package/dist/client/assets/TreeList-Btn-HOEG.js +2 -0
- package/dist/client/assets/TreeList-Btn-HOEG.js.br +0 -0
- package/dist/client/assets/TreeList-Btn-HOEG.js.gz +0 -0
- package/dist/client/assets/TreeList-Btn-HOEG.js.map +1 -0
- package/dist/client/assets/TreePicker-1SOl8uOl.js +2 -0
- package/dist/client/assets/TreePicker-1SOl8uOl.js.br +0 -0
- package/dist/client/assets/TreePicker-1SOl8uOl.js.gz +0 -0
- package/dist/client/assets/TreePicker-1SOl8uOl.js.map +1 -0
- package/dist/client/assets/ViewFormDialog-Cy6-wsa6.js +3 -0
- package/dist/client/assets/ViewFormDialog-Cy6-wsa6.js.br +0 -0
- package/dist/client/assets/ViewFormDialog-Cy6-wsa6.js.gz +0 -0
- package/dist/client/assets/ViewFormDialog-Cy6-wsa6.js.map +1 -0
- package/dist/client/assets/appImport-B1Zw1Xns.js +4 -0
- package/dist/client/assets/appImport-B1Zw1Xns.js.br +0 -0
- package/dist/client/assets/appImport-B1Zw1Xns.js.gz +0 -0
- package/dist/client/assets/appImport-B1Zw1Xns.js.map +1 -0
- package/dist/client/assets/appLive-CVqL8HXE.js +3 -0
- package/dist/client/assets/appLive-CVqL8HXE.js.br +0 -0
- package/dist/client/assets/appLive-CVqL8HXE.js.gz +0 -0
- package/dist/client/assets/appLive-CVqL8HXE.js.map +1 -0
- package/dist/client/assets/assistantStream-CmRE78Om.js +7 -0
- package/dist/client/assets/assistantStream-CmRE78Om.js.br +0 -0
- package/dist/client/assets/assistantStream-CmRE78Om.js.gz +0 -0
- package/dist/client/assets/assistantStream-CmRE78Om.js.map +1 -0
- package/dist/client/assets/autoBucket-Cua5aa7g.js +2 -0
- package/dist/client/assets/autoBucket-Cua5aa7g.js.br +0 -0
- package/dist/client/assets/autoBucket-Cua5aa7g.js.gz +0 -0
- package/dist/client/assets/autoBucket-Cua5aa7g.js.map +1 -0
- package/dist/client/assets/beacon-tBH10XJa.js +2 -0
- package/dist/client/assets/beacon-tBH10XJa.js.br +0 -0
- package/dist/client/assets/beacon-tBH10XJa.js.gz +0 -0
- package/dist/client/assets/beacon-tBH10XJa.js.map +1 -0
- package/dist/client/assets/blocks-BbQFlpp5.js +3 -0
- package/dist/client/assets/blocks-BbQFlpp5.js.br +0 -0
- package/dist/client/assets/blocks-BbQFlpp5.js.gz +0 -0
- package/dist/client/assets/blocks-BbQFlpp5.js.map +1 -0
- package/dist/client/assets/builtInInputs-Cyh7CLeu.js +3 -0
- package/dist/client/assets/builtInInputs-Cyh7CLeu.js.br +0 -0
- package/dist/client/assets/builtInInputs-Cyh7CLeu.js.gz +0 -0
- package/dist/client/assets/builtInInputs-Cyh7CLeu.js.map +1 -0
- package/dist/client/assets/commandDraft-BDEpsjhG.js +2 -0
- package/dist/client/assets/commandDraft-BDEpsjhG.js.br +0 -0
- package/dist/client/assets/commandDraft-BDEpsjhG.js.gz +0 -0
- package/dist/client/assets/commandDraft-BDEpsjhG.js.map +1 -0
- package/dist/client/assets/componentLoader-CJDtPEZP.js +2 -0
- package/dist/client/assets/componentLoader-CJDtPEZP.js.br +0 -0
- package/dist/client/assets/componentLoader-CJDtPEZP.js.gz +0 -0
- package/dist/client/assets/componentLoader-CJDtPEZP.js.map +1 -0
- package/dist/client/assets/composer-DkpMOCcL.js +2 -0
- package/dist/client/assets/composer-DkpMOCcL.js.br +0 -0
- package/dist/client/assets/composer-DkpMOCcL.js.gz +0 -0
- package/dist/client/assets/composer-DkpMOCcL.js.map +1 -0
- package/dist/client/assets/computedParse-53SjyCBD.js +2 -0
- package/dist/client/assets/computedParse-53SjyCBD.js.br +0 -0
- package/dist/client/assets/computedParse-53SjyCBD.js.gz +0 -0
- package/dist/client/assets/computedParse-53SjyCBD.js.map +1 -0
- package/dist/client/assets/computedValue-D8nYJsY5.js +2 -0
- package/dist/client/assets/computedValue-D8nYJsY5.js.br +0 -0
- package/dist/client/assets/computedValue-D8nYJsY5.js.gz +0 -0
- package/dist/client/assets/computedValue-D8nYJsY5.js.map +1 -0
- package/dist/client/assets/conditionWords-DmDsN22s.js +2 -0
- package/dist/client/assets/conditionWords-DmDsN22s.js.br +0 -0
- package/dist/client/assets/conditionWords-DmDsN22s.js.gz +0 -0
- package/dist/client/assets/conditionWords-DmDsN22s.js.map +1 -0
- package/dist/client/assets/definedValues-fS5XjL-r.js +2 -0
- package/dist/client/assets/definedValues-fS5XjL-r.js.br +0 -0
- package/dist/client/assets/definedValues-fS5XjL-r.js.gz +0 -0
- package/dist/client/assets/definedValues-fS5XjL-r.js.map +1 -0
- package/dist/client/assets/experimentExposure-DTa8Hm5F.js +3 -0
- package/dist/client/assets/experimentExposure-DTa8Hm5F.js.br +0 -0
- package/dist/client/assets/experimentExposure-DTa8Hm5F.js.gz +0 -0
- package/dist/client/assets/experimentExposure-DTa8Hm5F.js.map +1 -0
- package/dist/client/assets/export-Bi1hKzaY.js +4 -0
- package/dist/client/assets/export-Bi1hKzaY.js.br +0 -0
- package/dist/client/assets/export-Bi1hKzaY.js.gz +0 -0
- package/dist/client/assets/export-Bi1hKzaY.js.map +1 -0
- package/dist/client/assets/formCommandRun-CXnf_Zru.js +2 -0
- package/dist/client/assets/formCommandRun-CXnf_Zru.js.br +0 -0
- package/dist/client/assets/formCommandRun-CXnf_Zru.js.gz +0 -0
- package/dist/client/assets/formCommandRun-CXnf_Zru.js.map +1 -0
- package/dist/client/assets/formStepCheck-BLuzAKCW.js +2 -0
- package/dist/client/assets/formStepCheck-BLuzAKCW.js.br +0 -0
- package/dist/client/assets/formStepCheck-BLuzAKCW.js.gz +0 -0
- package/dist/client/assets/formStepCheck-BLuzAKCW.js.map +1 -0
- package/dist/client/assets/handoff-DHp2ED4T.js +3 -0
- package/dist/client/assets/handoff-DHp2ED4T.js.br +0 -0
- package/dist/client/assets/handoff-DHp2ED4T.js.gz +0 -0
- package/dist/client/assets/handoff-DHp2ED4T.js.map +1 -0
- package/dist/client/assets/headlessLanding-DlBPoRJv.js +2 -0
- package/dist/client/assets/headlessLanding-DlBPoRJv.js.br +0 -0
- package/dist/client/assets/headlessLanding-DlBPoRJv.js.gz +0 -0
- package/dist/client/assets/headlessLanding-DlBPoRJv.js.map +1 -0
- package/dist/client/assets/host-DOVtLLi5.js +3 -0
- package/dist/client/assets/host-DOVtLLi5.js.br +0 -0
- package/dist/client/assets/host-DOVtLLi5.js.gz +0 -0
- package/dist/client/assets/host-DOVtLLi5.js.map +1 -0
- package/dist/client/assets/index-DjGO_I24.js +16 -0
- package/dist/client/assets/index-DjGO_I24.js.br +0 -0
- package/dist/client/assets/index-DjGO_I24.js.gz +0 -0
- package/dist/client/assets/index-DjGO_I24.js.map +1 -0
- package/dist/client/assets/liveSync-DPK6WHVY.js +3 -0
- package/dist/client/assets/liveSync-DPK6WHVY.js.br +0 -0
- package/dist/client/assets/liveSync-DPK6WHVY.js.gz +0 -0
- package/dist/client/assets/liveSync-DPK6WHVY.js.map +1 -0
- package/dist/client/assets/mentionRows-CqchdJxU.js +2 -0
- package/dist/client/assets/mentionRows-CqchdJxU.js.br +0 -0
- package/dist/client/assets/mentionRows-CqchdJxU.js.gz +0 -0
- package/dist/client/assets/mentionRows-CqchdJxU.js.map +1 -0
- package/dist/client/assets/newMenuModel-BUNDBPHB.js +2 -0
- package/dist/client/assets/newMenuModel-BUNDBPHB.js.br +0 -0
- package/dist/client/assets/newMenuModel-BUNDBPHB.js.gz +0 -0
- package/dist/client/assets/newMenuModel-BUNDBPHB.js.map +1 -0
- package/dist/client/assets/newRecordModel-COacFZQp.js +2 -0
- package/dist/client/assets/newRecordModel-COacFZQp.js.br +0 -0
- package/dist/client/assets/newRecordModel-COacFZQp.js.gz +0 -0
- package/dist/client/assets/newRecordModel-COacFZQp.js.map +1 -0
- package/dist/client/assets/oauthConsent-DWxzgFzp.js +2 -0
- package/dist/client/assets/oauthConsent-DWxzgFzp.js.br +0 -0
- package/dist/client/assets/oauthConsent-DWxzgFzp.js.gz +0 -0
- package/dist/client/assets/oauthConsent-DWxzgFzp.js.map +1 -0
- package/dist/client/assets/pageControls-BPzyEwVL.js +2 -0
- package/dist/client/assets/pageControls-BPzyEwVL.js.br +0 -0
- package/dist/client/assets/pageControls-BPzyEwVL.js.gz +0 -0
- package/dist/client/assets/pageControls-BPzyEwVL.js.map +1 -0
- package/dist/client/assets/paramControls-BJ5DF1BB.js +2 -0
- package/dist/client/assets/paramControls-BJ5DF1BB.js.br +0 -0
- package/dist/client/assets/paramControls-BJ5DF1BB.js.gz +0 -0
- package/dist/client/assets/paramControls-BJ5DF1BB.js.map +1 -0
- package/dist/client/assets/public-DUkNqQBu.js +3 -0
- package/dist/client/assets/public-DUkNqQBu.js.br +0 -0
- package/dist/client/assets/public-DUkNqQBu.js.gz +0 -0
- package/dist/client/assets/public-DUkNqQBu.js.map +1 -0
- package/dist/client/assets/publicInputs-DkbtGAz6.js +3 -0
- package/dist/client/assets/publicInputs-DkbtGAz6.js.br +0 -0
- package/dist/client/assets/publicInputs-DkbtGAz6.js.gz +0 -0
- package/dist/client/assets/publicInputs-DkbtGAz6.js.map +1 -0
- package/dist/client/assets/publicPageCommand-Df3ovK3o.js +2 -0
- package/dist/client/assets/publicPageCommand-Df3ovK3o.js.br +0 -0
- package/dist/client/assets/publicPageCommand-Df3ovK3o.js.gz +0 -0
- package/dist/client/assets/publicPageCommand-Df3ovK3o.js.map +1 -0
- package/dist/client/assets/publicPlacement-Xrx9FwDa.js +2 -0
- package/dist/client/assets/publicPlacement-Xrx9FwDa.js.br +0 -0
- package/dist/client/assets/publicPlacement-Xrx9FwDa.js.gz +0 -0
- package/dist/client/assets/publicPlacement-Xrx9FwDa.js.map +1 -0
- package/dist/client/assets/recordSearch-BooQh5lq.js +2 -0
- package/dist/client/assets/recordSearch-BooQh5lq.js.br +0 -0
- package/dist/client/assets/recordSearch-BooQh5lq.js.gz +0 -0
- package/dist/client/assets/recordSearch-BooQh5lq.js.map +1 -0
- package/dist/client/assets/savedFormApi-Csjc8bPX.js +2 -0
- package/dist/client/assets/savedFormApi-Csjc8bPX.js.br +0 -0
- package/dist/client/assets/savedFormApi-Csjc8bPX.js.gz +0 -0
- package/dist/client/assets/savedFormApi-Csjc8bPX.js.map +1 -0
- package/dist/client/assets/shell-qehtQ0mZ.js +13 -0
- package/dist/client/assets/shell-qehtQ0mZ.js.br +0 -0
- package/dist/client/assets/shell-qehtQ0mZ.js.gz +0 -0
- package/dist/client/assets/shell-qehtQ0mZ.js.map +1 -0
- package/dist/client/assets/steps-CRDgoYvd.js +2 -0
- package/dist/client/assets/steps-CRDgoYvd.js.br +0 -0
- package/dist/client/assets/steps-CRDgoYvd.js.gz +0 -0
- package/dist/client/assets/steps-CRDgoYvd.js.map +1 -0
- package/dist/client/assets/tenant-B6BEC4RN.js +3 -0
- package/dist/client/assets/tenant-B6BEC4RN.js.br +0 -0
- package/dist/client/assets/tenant-B6BEC4RN.js.gz +0 -0
- package/dist/client/assets/tenant-B6BEC4RN.js.map +1 -0
- package/dist/client/assets/tenantInvitations-B-SDmeVC.js +2 -0
- package/dist/client/assets/tenantInvitations-B-SDmeVC.js.br +0 -0
- package/dist/client/assets/tenantInvitations-B-SDmeVC.js.gz +0 -0
- package/dist/client/assets/tenantInvitations-B-SDmeVC.js.map +1 -0
- package/dist/client/assets/tenantLive-BTRcOx4D.js +2 -0
- package/dist/client/assets/tenantLive-BTRcOx4D.js.br +0 -0
- package/dist/client/assets/tenantLive-BTRcOx4D.js.gz +0 -0
- package/dist/client/assets/tenantLive-BTRcOx4D.js.map +1 -0
- package/dist/client/assets/themeBench-otuiwrzM.js +2 -0
- package/dist/client/assets/themeBench-otuiwrzM.js.br +0 -0
- package/dist/client/assets/themeBench-otuiwrzM.js.gz +0 -0
- package/dist/client/assets/themeBench-otuiwrzM.js.map +1 -0
- package/dist/client/assets/uiKitLoader-DVKww90c.js +2 -0
- package/dist/client/assets/uiKitLoader-DVKww90c.js.br +0 -0
- package/dist/client/assets/uiKitLoader-DVKww90c.js.gz +0 -0
- package/dist/client/assets/uiKitLoader-DVKww90c.js.map +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/index.html.br +0 -0
- package/dist/client/index.html.gz +0 -0
- package/dist/client/index.public.html +2 -2
- package/dist/client/index.public.html.br +0 -0
- package/dist/client/index.public.html.gz +0 -0
- package/dist/docs/check-codes.md +2 -0
- package/dist/docs/cli.md +18 -0
- package/dist/docs/status.md +3 -3
- package/dist/embed/react/headless.js +1 -1
- package/dist/embed/react/index.js +1 -1
- package/dist/server/build/check.js +38 -1
- package/dist/server/build/checkProblems.d.ts +1 -1
- package/dist/server/cli/appTargets.js +23 -1
- package/dist/server/cli/backstopCli.js +141 -0
- package/dist/server/cli/usage.js +17 -0
- package/dist/server/commands/businessCommands.js +24 -9
- package/dist/server/links/publicLink.d.ts +4 -2
- package/dist/server/links/publicLink.js +23 -7
- package/dist/server/tenant/tenantBackstop.js +389 -0
- package/dist/server/tenant/tenantIntake.js +7 -0
- package/dist/server/tenant/tenantPublicHttp.js +1 -1
- package/package.json +4 -4
- package/schema/check.schema.json +1 -1
- package/dist/client/assets/AccountAdministration-BEFVSrBc.js +0 -2
- package/dist/client/assets/AccountAdministration-BEFVSrBc.js.br +0 -0
- package/dist/client/assets/AccountAdministration-BEFVSrBc.js.gz +0 -0
- package/dist/client/assets/AccountAdministration-BEFVSrBc.js.map +0 -1
- package/dist/client/assets/AccountControl-BAqIxGya.js +0 -3
- package/dist/client/assets/AccountControl-BAqIxGya.js.br +0 -0
- package/dist/client/assets/AccountControl-BAqIxGya.js.gz +0 -0
- package/dist/client/assets/AccountControl-BAqIxGya.js.map +0 -1
- package/dist/client/assets/AccountProfile-B3IgWjgQ.js +0 -2
- package/dist/client/assets/AccountProfile-B3IgWjgQ.js.br +0 -0
- package/dist/client/assets/AccountProfile-B3IgWjgQ.js.gz +0 -0
- package/dist/client/assets/AccountProfile-B3IgWjgQ.js.map +0 -1
- package/dist/client/assets/ApiOperations-CMf0Xs25.js +0 -2
- package/dist/client/assets/ApiOperations-CMf0Xs25.js.br +0 -0
- package/dist/client/assets/ApiOperations-CMf0Xs25.js.gz +0 -0
- package/dist/client/assets/ApiOperations-CMf0Xs25.js.map +0 -1
- package/dist/client/assets/AppColumnMenuPopups-Br8fjj7B.js +0 -2
- package/dist/client/assets/AppColumnMenuPopups-Br8fjj7B.js.br +0 -0
- package/dist/client/assets/AppColumnMenuPopups-Br8fjj7B.js.gz +0 -0
- package/dist/client/assets/AppColumnMenuPopups-Br8fjj7B.js.map +0 -1
- package/dist/client/assets/AsOfChip-a0RplKGi.js +0 -2
- package/dist/client/assets/AsOfChip-a0RplKGi.js.br +0 -4
- package/dist/client/assets/AsOfChip-a0RplKGi.js.gz +0 -0
- package/dist/client/assets/AsOfChip-a0RplKGi.js.map +0 -1
- package/dist/client/assets/AssistantPanel-BLS9AxEl.js +0 -3
- package/dist/client/assets/AssistantPanel-BLS9AxEl.js.br +0 -0
- package/dist/client/assets/AssistantPanel-BLS9AxEl.js.gz +0 -0
- package/dist/client/assets/AssistantPanel-BLS9AxEl.js.map +0 -1
- package/dist/client/assets/AttachmentList-DJ8wm38t.js +0 -3
- package/dist/client/assets/AttachmentList-DJ8wm38t.js.br +0 -0
- package/dist/client/assets/AttachmentList-DJ8wm38t.js.gz +0 -0
- package/dist/client/assets/AttachmentList-DJ8wm38t.js.map +0 -1
- package/dist/client/assets/BoardCardEditor-CPAGTthc.js +0 -2
- package/dist/client/assets/BoardCardEditor-CPAGTthc.js.br +0 -0
- package/dist/client/assets/BoardCardEditor-CPAGTthc.js.gz +0 -0
- package/dist/client/assets/BoardCardEditor-CPAGTthc.js.map +0 -1
- package/dist/client/assets/BoardList-gVxJ-cwD.js +0 -5
- package/dist/client/assets/BoardList-gVxJ-cwD.js.br +0 -0
- package/dist/client/assets/BoardList-gVxJ-cwD.js.gz +0 -0
- package/dist/client/assets/BoardList-gVxJ-cwD.js.map +0 -1
- package/dist/client/assets/BrandingForm-eRqUdbav.js +0 -2
- package/dist/client/assets/BrandingForm-eRqUdbav.js.br +0 -0
- package/dist/client/assets/BrandingForm-eRqUdbav.js.gz +0 -0
- package/dist/client/assets/BrandingForm-eRqUdbav.js.map +0 -1
- package/dist/client/assets/BreakdownRoom-Dkp3r4uH.js +0 -2
- package/dist/client/assets/BreakdownRoom-Dkp3r4uH.js.br +0 -0
- package/dist/client/assets/BreakdownRoom-Dkp3r4uH.js.gz +0 -0
- package/dist/client/assets/BreakdownRoom-Dkp3r4uH.js.map +0 -1
- package/dist/client/assets/CalendarList-DkbgEtsr.js +0 -2
- package/dist/client/assets/CalendarList-DkbgEtsr.js.br +0 -0
- package/dist/client/assets/CalendarList-DkbgEtsr.js.gz +0 -0
- package/dist/client/assets/CalendarList-DkbgEtsr.js.map +0 -1
- package/dist/client/assets/CardsList-DESCe0Se.js +0 -2
- package/dist/client/assets/CardsList-DESCe0Se.js.br +0 -0
- package/dist/client/assets/CardsList-DESCe0Se.js.gz +0 -0
- package/dist/client/assets/CardsList-DESCe0Se.js.map +0 -1
- package/dist/client/assets/Chart-BJtwslq1.js +0 -2
- package/dist/client/assets/Chart-BJtwslq1.js.br +0 -0
- package/dist/client/assets/Chart-BJtwslq1.js.gz +0 -0
- package/dist/client/assets/Chart-BJtwslq1.js.map +0 -1
- package/dist/client/assets/ChartFigure-B9paSqQQ.js +0 -3
- package/dist/client/assets/ChartFigure-B9paSqQQ.js.br +0 -0
- package/dist/client/assets/ChartFigure-B9paSqQQ.js.gz +0 -0
- package/dist/client/assets/ChartFigure-B9paSqQQ.js.map +0 -1
- package/dist/client/assets/ChartShapes-C0yo8HZH.js +0 -2
- package/dist/client/assets/ChartShapes-C0yo8HZH.js.br +0 -0
- package/dist/client/assets/ChartShapes-C0yo8HZH.js.gz +0 -0
- package/dist/client/assets/ChartShapes-C0yo8HZH.js.map +0 -1
- package/dist/client/assets/CheckedAppTargetAction-qY9CPkEO.js +0 -2
- package/dist/client/assets/CheckedAppTargetAction-qY9CPkEO.js.br +0 -0
- package/dist/client/assets/CheckedAppTargetAction-qY9CPkEO.js.gz +0 -0
- package/dist/client/assets/CheckedAppTargetAction-qY9CPkEO.js.map +0 -1
- package/dist/client/assets/Choices-GdRNH_mx.js +0 -2
- package/dist/client/assets/Choices-GdRNH_mx.js.br +0 -0
- package/dist/client/assets/Choices-GdRNH_mx.js.gz +0 -0
- package/dist/client/assets/Choices-GdRNH_mx.js.map +0 -1
- package/dist/client/assets/ClaimInvitation-YeXU1LEs.js +0 -2
- package/dist/client/assets/ClaimInvitation-YeXU1LEs.js.br +0 -0
- package/dist/client/assets/ClaimInvitation-YeXU1LEs.js.gz +0 -0
- package/dist/client/assets/ClaimInvitation-YeXU1LEs.js.map +0 -1
- package/dist/client/assets/CommandAnswers-DNQXXN24.js +0 -2
- package/dist/client/assets/CommandAnswers-DNQXXN24.js.br +0 -0
- package/dist/client/assets/CommandAnswers-DNQXXN24.js.gz +0 -0
- package/dist/client/assets/CommandAnswers-DNQXXN24.js.map +0 -1
- package/dist/client/assets/CommandForm-BnrRo7i9.js +0 -3
- package/dist/client/assets/CommandForm-BnrRo7i9.js.br +0 -0
- package/dist/client/assets/CommandForm-BnrRo7i9.js.gz +0 -0
- package/dist/client/assets/CommandForm-BnrRo7i9.js.map +0 -1
- package/dist/client/assets/CommandLines-D5rQCQR_.js +0 -2
- package/dist/client/assets/CommandLines-D5rQCQR_.js.br +0 -0
- package/dist/client/assets/CommandLines-D5rQCQR_.js.gz +0 -0
- package/dist/client/assets/CommandLines-D5rQCQR_.js.map +0 -1
- package/dist/client/assets/CommandLive-daI-q2kN.js +0 -2
- package/dist/client/assets/CommandLive-daI-q2kN.js.br +0 -0
- package/dist/client/assets/CommandLive-daI-q2kN.js.gz +0 -0
- package/dist/client/assets/CommandLive-daI-q2kN.js.map +0 -1
- package/dist/client/assets/CommandReference-CWNRBkVG.js +0 -3
- package/dist/client/assets/CommandReference-CWNRBkVG.js.br +0 -0
- package/dist/client/assets/CommandReference-CWNRBkVG.js.gz +0 -0
- package/dist/client/assets/CommandReference-CWNRBkVG.js.map +0 -1
- package/dist/client/assets/Composer-BgFzO7NO.js +0 -5
- package/dist/client/assets/Composer-BgFzO7NO.js.br +0 -0
- package/dist/client/assets/Composer-BgFzO7NO.js.gz +0 -0
- package/dist/client/assets/Composer-BgFzO7NO.js.map +0 -1
- package/dist/client/assets/CountedLabel-C-ukQQwd.js +0 -2
- package/dist/client/assets/CountedLabel-C-ukQQwd.js.br +0 -0
- package/dist/client/assets/CountedLabel-C-ukQQwd.js.gz +0 -0
- package/dist/client/assets/CountedLabel-C-ukQQwd.js.map +0 -1
- package/dist/client/assets/CustomList-CMeXLiRs.js +0 -2
- package/dist/client/assets/CustomList-CMeXLiRs.js.br +0 -0
- package/dist/client/assets/CustomList-CMeXLiRs.js.gz +0 -0
- package/dist/client/assets/CustomList-CMeXLiRs.js.map +0 -1
- package/dist/client/assets/CustomPage-DxbIpGFy.js +0 -3
- package/dist/client/assets/CustomPage-DxbIpGFy.js.br +0 -0
- package/dist/client/assets/CustomPage-DxbIpGFy.js.gz +0 -0
- package/dist/client/assets/CustomPage-DxbIpGFy.js.map +0 -1
- package/dist/client/assets/CustomSection-CYzi7Lj9.js +0 -2
- package/dist/client/assets/CustomSection-CYzi7Lj9.js.br +0 -0
- package/dist/client/assets/CustomSection-CYzi7Lj9.js.gz +0 -0
- package/dist/client/assets/CustomSection-CYzi7Lj9.js.map +0 -1
- package/dist/client/assets/Dashboard-BUGK3zGI.js +0 -3
- package/dist/client/assets/Dashboard-BUGK3zGI.js.br +0 -0
- package/dist/client/assets/Dashboard-BUGK3zGI.js.gz +0 -0
- package/dist/client/assets/Dashboard-BUGK3zGI.js.map +0 -1
- package/dist/client/assets/DashboardActivity-BB4qsDzC.js +0 -2
- package/dist/client/assets/DashboardActivity-BB4qsDzC.js.br +0 -0
- package/dist/client/assets/DashboardActivity-BB4qsDzC.js.gz +0 -0
- package/dist/client/assets/DashboardActivity-BB4qsDzC.js.map +0 -1
- package/dist/client/assets/DashboardFind-CMIsCwb3.js +0 -2
- package/dist/client/assets/DashboardFind-CMIsCwb3.js.br +0 -0
- package/dist/client/assets/DashboardFind-CMIsCwb3.js.gz +0 -0
- package/dist/client/assets/DashboardFind-CMIsCwb3.js.map +0 -1
- package/dist/client/assets/DashboardList-iW9Gql3w.js +0 -2
- package/dist/client/assets/DashboardList-iW9Gql3w.js.br +0 -2
- package/dist/client/assets/DashboardList-iW9Gql3w.js.gz +0 -0
- package/dist/client/assets/DashboardList-iW9Gql3w.js.map +0 -1
- package/dist/client/assets/DateTimeInput-DV8fZohg.js +0 -2
- package/dist/client/assets/DateTimeInput-DV8fZohg.js.br +0 -0
- package/dist/client/assets/DateTimeInput-DV8fZohg.js.gz +0 -0
- package/dist/client/assets/DateTimeInput-DV8fZohg.js.map +0 -1
- package/dist/client/assets/DecisionChip-C3cDys1Z.js +0 -2
- package/dist/client/assets/DecisionChip-C3cDys1Z.js.br +0 -0
- package/dist/client/assets/DecisionChip-C3cDys1Z.js.gz +0 -0
- package/dist/client/assets/DecisionChip-C3cDys1Z.js.map +0 -1
- package/dist/client/assets/DefinedFields-3n2Soz-Y.js +0 -2
- package/dist/client/assets/DefinedFields-3n2Soz-Y.js.br +0 -0
- package/dist/client/assets/DefinedFields-3n2Soz-Y.js.gz +0 -0
- package/dist/client/assets/DefinedFields-3n2Soz-Y.js.map +0 -1
- package/dist/client/assets/Diagram-CKGgpgPM.js +0 -6
- package/dist/client/assets/Diagram-CKGgpgPM.js.br +0 -0
- package/dist/client/assets/Diagram-CKGgpgPM.js.gz +0 -0
- package/dist/client/assets/Diagram-CKGgpgPM.js.map +0 -1
- package/dist/client/assets/Directory-DJVpV7IV.js +0 -2
- package/dist/client/assets/Directory-DJVpV7IV.js.br +0 -0
- package/dist/client/assets/Directory-DJVpV7IV.js.gz +0 -0
- package/dist/client/assets/Directory-DJVpV7IV.js.map +0 -1
- package/dist/client/assets/Document-C8JqEzQm.js +0 -2
- package/dist/client/assets/Document-C8JqEzQm.js.br +0 -0
- package/dist/client/assets/Document-C8JqEzQm.js.gz +0 -0
- package/dist/client/assets/Document-C8JqEzQm.js.map +0 -1
- package/dist/client/assets/Export-C0b_yEEy.js +0 -2
- package/dist/client/assets/Export-C0b_yEEy.js.br +0 -0
- package/dist/client/assets/Export-C0b_yEEy.js.gz +0 -0
- package/dist/client/assets/Export-C0b_yEEy.js.map +0 -1
- package/dist/client/assets/FilePreview-w7BXsOyx.js +0 -2
- package/dist/client/assets/FilePreview-w7BXsOyx.js.br +0 -0
- package/dist/client/assets/FilePreview-w7BXsOyx.js.gz +0 -0
- package/dist/client/assets/FilePreview-w7BXsOyx.js.map +0 -1
- package/dist/client/assets/FormClaimSurface-5vq42d7b.js +0 -2
- package/dist/client/assets/FormClaimSurface-5vq42d7b.js.br +0 -0
- package/dist/client/assets/FormClaimSurface-5vq42d7b.js.gz +0 -0
- package/dist/client/assets/FormClaimSurface-5vq42d7b.js.map +0 -1
- package/dist/client/assets/FormDialog-3yKMuF7B.js +0 -3
- package/dist/client/assets/FormDialog-3yKMuF7B.js.br +0 -0
- package/dist/client/assets/FormDialog-3yKMuF7B.js.gz +0 -0
- package/dist/client/assets/FormDialog-3yKMuF7B.js.map +0 -1
- package/dist/client/assets/FormLines-CY1C9COP.js +0 -2
- package/dist/client/assets/FormLines-CY1C9COP.js.br +0 -0
- package/dist/client/assets/FormLines-CY1C9COP.js.gz +0 -0
- package/dist/client/assets/FormLines-CY1C9COP.js.map +0 -1
- package/dist/client/assets/FormParts-DJVp_owY.js +0 -2
- package/dist/client/assets/FormParts-DJVp_owY.js.br +0 -0
- package/dist/client/assets/FormParts-DJVp_owY.js.gz +0 -0
- package/dist/client/assets/FormParts-DJVp_owY.js.map +0 -1
- package/dist/client/assets/FormStatusSurface-CPMwa7QE.js +0 -2
- package/dist/client/assets/FormStatusSurface-CPMwa7QE.js.br +0 -0
- package/dist/client/assets/FormStatusSurface-CPMwa7QE.js.gz +0 -0
- package/dist/client/assets/FormStatusSurface-CPMwa7QE.js.map +0 -1
- package/dist/client/assets/Gallery-B_LLDDUw.js +0 -3
- package/dist/client/assets/Gallery-B_LLDDUw.js.br +0 -0
- package/dist/client/assets/Gallery-B_LLDDUw.js.gz +0 -0
- package/dist/client/assets/Gallery-B_LLDDUw.js.map +0 -1
- package/dist/client/assets/GanttList-y1Wk45kW.js +0 -2
- package/dist/client/assets/GanttList-y1Wk45kW.js.br +0 -0
- package/dist/client/assets/GanttList-y1Wk45kW.js.gz +0 -0
- package/dist/client/assets/GanttList-y1Wk45kW.js.map +0 -1
- package/dist/client/assets/GridCellEditor-Cwvx04N5.js +0 -2
- package/dist/client/assets/GridCellEditor-Cwvx04N5.js.br +0 -0
- package/dist/client/assets/GridCellEditor-Cwvx04N5.js.gz +0 -0
- package/dist/client/assets/GridCellEditor-Cwvx04N5.js.map +0 -1
- package/dist/client/assets/HeldFiles-DUHxhq9d.js +0 -3
- package/dist/client/assets/HeldFiles-DUHxhq9d.js.br +0 -0
- package/dist/client/assets/HeldFiles-DUHxhq9d.js.gz +0 -0
- package/dist/client/assets/HeldFiles-DUHxhq9d.js.map +0 -1
- package/dist/client/assets/HelpPanel-Di2tvhfb.js +0 -2
- package/dist/client/assets/HelpPanel-Di2tvhfb.js.br +0 -0
- package/dist/client/assets/HelpPanel-Di2tvhfb.js.gz +0 -0
- package/dist/client/assets/HelpPanel-Di2tvhfb.js.map +0 -1
- package/dist/client/assets/ImportDialog-B4EbMpGl.js +0 -9
- package/dist/client/assets/ImportDialog-B4EbMpGl.js.br +0 -0
- package/dist/client/assets/ImportDialog-B4EbMpGl.js.gz +0 -0
- package/dist/client/assets/ImportDialog-B4EbMpGl.js.map +0 -1
- package/dist/client/assets/InboxList-BvJpcz1L.js +0 -2
- package/dist/client/assets/InboxList-BvJpcz1L.js.br +0 -0
- package/dist/client/assets/InboxList-BvJpcz1L.js.gz +0 -0
- package/dist/client/assets/InboxList-BvJpcz1L.js.map +0 -1
- package/dist/client/assets/IntakeControls-Dy3rMrg5.js +0 -2
- package/dist/client/assets/IntakeControls-Dy3rMrg5.js.br +0 -0
- package/dist/client/assets/IntakeControls-Dy3rMrg5.js.gz +0 -0
- package/dist/client/assets/IntakeControls-Dy3rMrg5.js.map +0 -1
- package/dist/client/assets/IntegrationsForm-DTjGOAv5.js +0 -2
- package/dist/client/assets/IntegrationsForm-DTjGOAv5.js.br +0 -0
- package/dist/client/assets/IntegrationsForm-DTjGOAv5.js.gz +0 -0
- package/dist/client/assets/IntegrationsForm-DTjGOAv5.js.map +0 -1
- package/dist/client/assets/JsonView-DmrwXpyM.js +0 -4
- package/dist/client/assets/JsonView-DmrwXpyM.js.br +0 -0
- package/dist/client/assets/JsonView-DmrwXpyM.js.gz +0 -0
- package/dist/client/assets/JsonView-DmrwXpyM.js.map +0 -1
- package/dist/client/assets/LayoutBuilder-DBAvjJEg.js +0 -2
- package/dist/client/assets/LayoutBuilder-DBAvjJEg.js.br +0 -0
- package/dist/client/assets/LayoutBuilder-DBAvjJEg.js.gz +0 -0
- package/dist/client/assets/LayoutBuilder-DBAvjJEg.js.map +0 -1
- package/dist/client/assets/Lightbox-C_vo7dPe.js +0 -2
- package/dist/client/assets/Lightbox-C_vo7dPe.js.br +0 -0
- package/dist/client/assets/Lightbox-C_vo7dPe.js.gz +0 -0
- package/dist/client/assets/Lightbox-C_vo7dPe.js.map +0 -1
- package/dist/client/assets/LiveNotices-QbVC63BG.js +0 -2
- package/dist/client/assets/LiveNotices-QbVC63BG.js.br +0 -0
- package/dist/client/assets/LiveNotices-QbVC63BG.js.gz +0 -0
- package/dist/client/assets/LiveNotices-QbVC63BG.js.map +0 -1
- package/dist/client/assets/MinorMoneyInput-BOL3gPaK.js +0 -2
- package/dist/client/assets/MinorMoneyInput-BOL3gPaK.js.br +0 -0
- package/dist/client/assets/MinorMoneyInput-BOL3gPaK.js.gz +0 -0
- package/dist/client/assets/MinorMoneyInput-BOL3gPaK.js.map +0 -1
- package/dist/client/assets/MultiStepForm-D23AjYF_.js +0 -3
- package/dist/client/assets/MultiStepForm-D23AjYF_.js.br +0 -0
- package/dist/client/assets/MultiStepForm-D23AjYF_.js.gz +0 -0
- package/dist/client/assets/MultiStepForm-D23AjYF_.js.map +0 -1
- package/dist/client/assets/NewMenu-B8j3Zi8s.js +0 -2
- package/dist/client/assets/NewMenu-B8j3Zi8s.js.br +0 -0
- package/dist/client/assets/NewMenu-B8j3Zi8s.js.gz +0 -0
- package/dist/client/assets/NewMenu-B8j3Zi8s.js.map +0 -1
- package/dist/client/assets/NewRecord-BAg40Hhp.js +0 -3
- package/dist/client/assets/NewRecord-BAg40Hhp.js.br +0 -0
- package/dist/client/assets/NewRecord-BAg40Hhp.js.gz +0 -0
- package/dist/client/assets/NewRecord-BAg40Hhp.js.map +0 -1
- package/dist/client/assets/PageFlowDiagram-C51TfpoJ.js +0 -3
- package/dist/client/assets/PageFlowDiagram-C51TfpoJ.js.br +0 -0
- package/dist/client/assets/PageFlowDiagram-C51TfpoJ.js.gz +0 -0
- package/dist/client/assets/PageFlowDiagram-C51TfpoJ.js.map +0 -1
- package/dist/client/assets/PageFlows-BiSv9bqL.js +0 -2
- package/dist/client/assets/PageFlows-BiSv9bqL.js.br +0 -0
- package/dist/client/assets/PageFlows-BiSv9bqL.js.gz +0 -0
- package/dist/client/assets/PageFlows-BiSv9bqL.js.map +0 -1
- package/dist/client/assets/PageGroups-tVhbOtn7.js +0 -2
- package/dist/client/assets/PageGroups-tVhbOtn7.js.br +0 -0
- package/dist/client/assets/PageGroups-tVhbOtn7.js.gz +0 -0
- package/dist/client/assets/PageGroups-tVhbOtn7.js.map +0 -1
- package/dist/client/assets/PageHistory-9Nz4Pjoh.js +0 -2
- package/dist/client/assets/PageHistory-9Nz4Pjoh.js.br +0 -0
- package/dist/client/assets/PageHistory-9Nz4Pjoh.js.gz +0 -0
- package/dist/client/assets/PageHistory-9Nz4Pjoh.js.map +0 -1
- package/dist/client/assets/PageSkeleton-BJNN5V-p.js +0 -2
- package/dist/client/assets/PageSkeleton-BJNN5V-p.js.br +0 -0
- package/dist/client/assets/PageSkeleton-BJNN5V-p.js.gz +0 -0
- package/dist/client/assets/PageSkeleton-BJNN5V-p.js.map +0 -1
- package/dist/client/assets/Palette-BZN_2UF7.js +0 -3
- package/dist/client/assets/Palette-BZN_2UF7.js.br +0 -0
- package/dist/client/assets/Palette-BZN_2UF7.js.gz +0 -0
- package/dist/client/assets/Palette-BZN_2UF7.js.map +0 -1
- package/dist/client/assets/PeekPanel-DqB7Qabw.js +0 -2
- package/dist/client/assets/PeekPanel-DqB7Qabw.js.br +0 -0
- package/dist/client/assets/PeekPanel-DqB7Qabw.js.gz +0 -0
- package/dist/client/assets/PeekPanel-DqB7Qabw.js.map +0 -1
- package/dist/client/assets/PlacedFormSurface-Dole7stp.js +0 -2
- package/dist/client/assets/PlacedFormSurface-Dole7stp.js.br +0 -0
- package/dist/client/assets/PlacedFormSurface-Dole7stp.js.gz +0 -0
- package/dist/client/assets/PlacedFormSurface-Dole7stp.js.map +0 -1
- package/dist/client/assets/Prefs-WgpIqvuL.js +0 -2
- package/dist/client/assets/Prefs-WgpIqvuL.js.br +0 -0
- package/dist/client/assets/Prefs-WgpIqvuL.js.gz +0 -0
- package/dist/client/assets/Prefs-WgpIqvuL.js.map +0 -1
- package/dist/client/assets/PresentedList-DOTbJvTU.js +0 -2
- package/dist/client/assets/PresentedList-DOTbJvTU.js.br +0 -0
- package/dist/client/assets/PresentedList-DOTbJvTU.js.gz +0 -0
- package/dist/client/assets/PresentedList-DOTbJvTU.js.map +0 -1
- package/dist/client/assets/PublicGuard-mSFZn9_g.js +0 -2
- package/dist/client/assets/PublicGuard-mSFZn9_g.js.br +0 -0
- package/dist/client/assets/PublicGuard-mSFZn9_g.js.gz +0 -0
- package/dist/client/assets/PublicGuard-mSFZn9_g.js.map +0 -1
- package/dist/client/assets/QrCode-2OEllMUz.js +0 -4
- package/dist/client/assets/QrCode-2OEllMUz.js.br +0 -0
- package/dist/client/assets/QrCode-2OEllMUz.js.gz +0 -0
- package/dist/client/assets/QrCode-2OEllMUz.js.map +0 -1
- package/dist/client/assets/QuickAdd-LyBB6Gt9.js +0 -2
- package/dist/client/assets/QuickAdd-LyBB6Gt9.js.br +0 -0
- package/dist/client/assets/QuickAdd-LyBB6Gt9.js.gz +0 -0
- package/dist/client/assets/QuickAdd-LyBB6Gt9.js.map +0 -1
- package/dist/client/assets/Record-iCEaV6lG.js +0 -2
- package/dist/client/assets/Record-iCEaV6lG.js.br +0 -0
- package/dist/client/assets/Record-iCEaV6lG.js.gz +0 -0
- package/dist/client/assets/Record-iCEaV6lG.js.map +0 -1
- package/dist/client/assets/RecordModal-CLixiup0.js +0 -2
- package/dist/client/assets/RecordModal-CLixiup0.js.br +0 -0
- package/dist/client/assets/RecordModal-CLixiup0.js.gz +0 -0
- package/dist/client/assets/RecordModal-CLixiup0.js.map +0 -1
- package/dist/client/assets/RichTextEditor-CXlz-XUb.js +0 -144
- package/dist/client/assets/RichTextEditor-CXlz-XUb.js.br +0 -0
- package/dist/client/assets/RichTextEditor-CXlz-XUb.js.gz +0 -0
- package/dist/client/assets/RichTextEditor-CXlz-XUb.js.map +0 -1
- package/dist/client/assets/SavedFormSurface-Db5Gl7DH.js +0 -2
- package/dist/client/assets/SavedFormSurface-Db5Gl7DH.js.br +0 -0
- package/dist/client/assets/SavedFormSurface-Db5Gl7DH.js.gz +0 -0
- package/dist/client/assets/SavedFormSurface-Db5Gl7DH.js.map +0 -1
- package/dist/client/assets/SectionPeriod-Ux2j_4Of.js +0 -2
- package/dist/client/assets/SectionPeriod-Ux2j_4Of.js.br +0 -0
- package/dist/client/assets/SectionPeriod-Ux2j_4Of.js.gz +0 -0
- package/dist/client/assets/SectionPeriod-Ux2j_4Of.js.map +0 -1
- package/dist/client/assets/SetFieldDialog-B7ixbVq5.js +0 -2
- package/dist/client/assets/SetFieldDialog-B7ixbVq5.js.br +0 -0
- package/dist/client/assets/SetFieldDialog-B7ixbVq5.js.gz +0 -0
- package/dist/client/assets/SetFieldDialog-B7ixbVq5.js.map +0 -1
- package/dist/client/assets/SignedInFormDialog-BWf7vI9K.js +0 -2
- package/dist/client/assets/SignedInFormDialog-BWf7vI9K.js.br +0 -0
- package/dist/client/assets/SignedInFormDialog-BWf7vI9K.js.gz +0 -0
- package/dist/client/assets/SignedInFormDialog-BWf7vI9K.js.map +0 -1
- package/dist/client/assets/SuggestBox-_0VTy6B5.js +0 -2
- package/dist/client/assets/SuggestBox-_0VTy6B5.js.br +0 -0
- package/dist/client/assets/SuggestBox-_0VTy6B5.js.gz +0 -0
- package/dist/client/assets/SuggestBox-_0VTy6B5.js.map +0 -1
- package/dist/client/assets/SuiteAppPreference-CPVsuVDU.js +0 -2
- package/dist/client/assets/SuiteAppPreference-CPVsuVDU.js.br +0 -0
- package/dist/client/assets/SuiteAppPreference-CPVsuVDU.js.gz +0 -0
- package/dist/client/assets/SuiteAppPreference-CPVsuVDU.js.map +0 -1
- package/dist/client/assets/SuiteAppSwitcher-DtQiqPiF.js +0 -2
- package/dist/client/assets/SuiteAppSwitcher-DtQiqPiF.js.br +0 -0
- package/dist/client/assets/SuiteAppSwitcher-DtQiqPiF.js.gz +0 -0
- package/dist/client/assets/SuiteAppSwitcher-DtQiqPiF.js.map +0 -1
- package/dist/client/assets/SupportLog-jf7pTIZG.js +0 -2
- package/dist/client/assets/SupportLog-jf7pTIZG.js.br +0 -0
- package/dist/client/assets/SupportLog-jf7pTIZG.js.gz +0 -0
- package/dist/client/assets/SupportLog-jf7pTIZG.js.map +0 -1
- package/dist/client/assets/SupportSessions-CSYHA41a.js +0 -2
- package/dist/client/assets/SupportSessions-CSYHA41a.js.br +0 -0
- package/dist/client/assets/SupportSessions-CSYHA41a.js.gz +0 -0
- package/dist/client/assets/SupportSessions-CSYHA41a.js.map +0 -1
- package/dist/client/assets/TenantAdministration-DKTvRGUl.js +0 -4
- package/dist/client/assets/TenantAdministration-DKTvRGUl.js.br +0 -0
- package/dist/client/assets/TenantAdministration-DKTvRGUl.js.gz +0 -0
- package/dist/client/assets/TenantAdministration-DKTvRGUl.js.map +0 -1
- package/dist/client/assets/TenantApiTokens-C4J5Wuzo.js +0 -2
- package/dist/client/assets/TenantApiTokens-C4J5Wuzo.js.br +0 -0
- package/dist/client/assets/TenantApiTokens-C4J5Wuzo.js.gz +0 -0
- package/dist/client/assets/TenantApiTokens-C4J5Wuzo.js.map +0 -1
- package/dist/client/assets/TenantInvitations-CJjeQpBL.js +0 -2
- package/dist/client/assets/TenantInvitations-CJjeQpBL.js.br +0 -0
- package/dist/client/assets/TenantInvitations-CJjeQpBL.js.gz +0 -0
- package/dist/client/assets/TenantInvitations-CJjeQpBL.js.map +0 -1
- package/dist/client/assets/ThemeLab-BlHW8bS-.js +0 -4
- package/dist/client/assets/ThemeLab-BlHW8bS-.js.br +0 -0
- package/dist/client/assets/ThemeLab-BlHW8bS-.js.gz +0 -0
- package/dist/client/assets/ThemeLab-BlHW8bS-.js.map +0 -1
- package/dist/client/assets/TimelineComposer-DaEDminW.js +0 -2
- package/dist/client/assets/TimelineComposer-DaEDminW.js.br +0 -0
- package/dist/client/assets/TimelineComposer-DaEDminW.js.gz +0 -0
- package/dist/client/assets/TimelineComposer-DaEDminW.js.map +0 -1
- package/dist/client/assets/TimelineReactions-B1Wxyv7x.js +0 -2
- package/dist/client/assets/TimelineReactions-B1Wxyv7x.js.br +0 -0
- package/dist/client/assets/TimelineReactions-B1Wxyv7x.js.gz +0 -0
- package/dist/client/assets/TimelineReactions-B1Wxyv7x.js.map +0 -1
- package/dist/client/assets/TopNav-DOStbBhL.js +0 -3
- package/dist/client/assets/TopNav-DOStbBhL.js.br +0 -0
- package/dist/client/assets/TopNav-DOStbBhL.js.gz +0 -0
- package/dist/client/assets/TopNav-DOStbBhL.js.map +0 -1
- package/dist/client/assets/Tour-cAfVD2Yu.js +0 -2
- package/dist/client/assets/Tour-cAfVD2Yu.js.br +0 -0
- package/dist/client/assets/Tour-cAfVD2Yu.js.gz +0 -0
- package/dist/client/assets/Tour-cAfVD2Yu.js.map +0 -1
- package/dist/client/assets/TreeList-D_ohqw7u.js +0 -2
- package/dist/client/assets/TreeList-D_ohqw7u.js.br +0 -0
- package/dist/client/assets/TreeList-D_ohqw7u.js.gz +0 -0
- package/dist/client/assets/TreeList-D_ohqw7u.js.map +0 -1
- package/dist/client/assets/TreePicker-OydKZl-A.js +0 -2
- package/dist/client/assets/TreePicker-OydKZl-A.js.br +0 -0
- package/dist/client/assets/TreePicker-OydKZl-A.js.gz +0 -0
- package/dist/client/assets/TreePicker-OydKZl-A.js.map +0 -1
- package/dist/client/assets/ViewFormDialog-7pn2ng-S.js +0 -3
- package/dist/client/assets/ViewFormDialog-7pn2ng-S.js.br +0 -0
- package/dist/client/assets/ViewFormDialog-7pn2ng-S.js.gz +0 -0
- package/dist/client/assets/ViewFormDialog-7pn2ng-S.js.map +0 -1
- package/dist/client/assets/appImport-B4bQP_lQ.js +0 -4
- package/dist/client/assets/appImport-B4bQP_lQ.js.br +0 -0
- package/dist/client/assets/appImport-B4bQP_lQ.js.gz +0 -0
- package/dist/client/assets/appImport-B4bQP_lQ.js.map +0 -1
- package/dist/client/assets/appLive-CIqITyZn.js +0 -3
- package/dist/client/assets/appLive-CIqITyZn.js.br +0 -0
- package/dist/client/assets/appLive-CIqITyZn.js.gz +0 -0
- package/dist/client/assets/appLive-CIqITyZn.js.map +0 -1
- package/dist/client/assets/assistantStream-Bj63nxSt.js +0 -7
- package/dist/client/assets/assistantStream-Bj63nxSt.js.br +0 -0
- package/dist/client/assets/assistantStream-Bj63nxSt.js.gz +0 -0
- package/dist/client/assets/assistantStream-Bj63nxSt.js.map +0 -1
- package/dist/client/assets/autoBucket-BhkQ0nwI.js +0 -2
- package/dist/client/assets/autoBucket-BhkQ0nwI.js.br +0 -0
- package/dist/client/assets/autoBucket-BhkQ0nwI.js.gz +0 -0
- package/dist/client/assets/autoBucket-BhkQ0nwI.js.map +0 -1
- package/dist/client/assets/beacon-YSoe7wc_.js +0 -2
- package/dist/client/assets/beacon-YSoe7wc_.js.br +0 -0
- package/dist/client/assets/beacon-YSoe7wc_.js.gz +0 -0
- package/dist/client/assets/beacon-YSoe7wc_.js.map +0 -1
- package/dist/client/assets/blocks-DNa-65ch.js +0 -3
- package/dist/client/assets/blocks-DNa-65ch.js.br +0 -0
- package/dist/client/assets/blocks-DNa-65ch.js.gz +0 -0
- package/dist/client/assets/blocks-DNa-65ch.js.map +0 -1
- package/dist/client/assets/builtInInputs-CFEbrblH.js +0 -3
- package/dist/client/assets/builtInInputs-CFEbrblH.js.br +0 -0
- package/dist/client/assets/builtInInputs-CFEbrblH.js.gz +0 -0
- package/dist/client/assets/builtInInputs-CFEbrblH.js.map +0 -1
- package/dist/client/assets/commandDraft-BvAvZW4M.js +0 -2
- package/dist/client/assets/commandDraft-BvAvZW4M.js.br +0 -0
- package/dist/client/assets/commandDraft-BvAvZW4M.js.gz +0 -0
- package/dist/client/assets/commandDraft-BvAvZW4M.js.map +0 -1
- package/dist/client/assets/componentLoader-D2gOSzXa.js +0 -2
- package/dist/client/assets/componentLoader-D2gOSzXa.js.br +0 -0
- package/dist/client/assets/componentLoader-D2gOSzXa.js.gz +0 -0
- package/dist/client/assets/componentLoader-D2gOSzXa.js.map +0 -1
- package/dist/client/assets/composer-ClRSVYV-.js +0 -2
- package/dist/client/assets/composer-ClRSVYV-.js.br +0 -0
- package/dist/client/assets/composer-ClRSVYV-.js.gz +0 -0
- package/dist/client/assets/composer-ClRSVYV-.js.map +0 -1
- package/dist/client/assets/computedParse-BMaavMZY.js +0 -2
- package/dist/client/assets/computedParse-BMaavMZY.js.br +0 -0
- package/dist/client/assets/computedParse-BMaavMZY.js.gz +0 -0
- package/dist/client/assets/computedParse-BMaavMZY.js.map +0 -1
- package/dist/client/assets/computedValue-CqPf4g73.js +0 -2
- package/dist/client/assets/computedValue-CqPf4g73.js.br +0 -0
- package/dist/client/assets/computedValue-CqPf4g73.js.gz +0 -0
- package/dist/client/assets/computedValue-CqPf4g73.js.map +0 -1
- package/dist/client/assets/conditionWords-BDvIH00N.js +0 -2
- package/dist/client/assets/conditionWords-BDvIH00N.js.br +0 -0
- package/dist/client/assets/conditionWords-BDvIH00N.js.gz +0 -0
- package/dist/client/assets/conditionWords-BDvIH00N.js.map +0 -1
- package/dist/client/assets/definedValues-DnMCxINu.js +0 -2
- package/dist/client/assets/definedValues-DnMCxINu.js.br +0 -0
- package/dist/client/assets/definedValues-DnMCxINu.js.gz +0 -0
- package/dist/client/assets/definedValues-DnMCxINu.js.map +0 -1
- package/dist/client/assets/experimentExposure-gXR4VMHx.js +0 -3
- package/dist/client/assets/experimentExposure-gXR4VMHx.js.br +0 -0
- package/dist/client/assets/experimentExposure-gXR4VMHx.js.gz +0 -0
- package/dist/client/assets/experimentExposure-gXR4VMHx.js.map +0 -1
- package/dist/client/assets/export-Bv8qrDqj.js +0 -4
- package/dist/client/assets/export-Bv8qrDqj.js.br +0 -0
- package/dist/client/assets/export-Bv8qrDqj.js.gz +0 -0
- package/dist/client/assets/export-Bv8qrDqj.js.map +0 -1
- package/dist/client/assets/formCommandRun-fpjddbvH.js +0 -2
- package/dist/client/assets/formCommandRun-fpjddbvH.js.br +0 -0
- package/dist/client/assets/formCommandRun-fpjddbvH.js.gz +0 -0
- package/dist/client/assets/formCommandRun-fpjddbvH.js.map +0 -1
- package/dist/client/assets/formStepCheck-YTK-TGv8.js +0 -2
- package/dist/client/assets/formStepCheck-YTK-TGv8.js.br +0 -0
- package/dist/client/assets/formStepCheck-YTK-TGv8.js.gz +0 -0
- package/dist/client/assets/formStepCheck-YTK-TGv8.js.map +0 -1
- package/dist/client/assets/handoff-qa9R1o1K.js +0 -3
- package/dist/client/assets/handoff-qa9R1o1K.js.br +0 -0
- package/dist/client/assets/handoff-qa9R1o1K.js.gz +0 -0
- package/dist/client/assets/handoff-qa9R1o1K.js.map +0 -1
- package/dist/client/assets/headlessLanding-BStjGgfK.js +0 -2
- package/dist/client/assets/headlessLanding-BStjGgfK.js.br +0 -0
- package/dist/client/assets/headlessLanding-BStjGgfK.js.gz +0 -0
- package/dist/client/assets/headlessLanding-BStjGgfK.js.map +0 -1
- package/dist/client/assets/host-BKoLXcmr.js +0 -3
- package/dist/client/assets/host-BKoLXcmr.js.br +0 -0
- package/dist/client/assets/host-BKoLXcmr.js.gz +0 -0
- package/dist/client/assets/host-BKoLXcmr.js.map +0 -1
- package/dist/client/assets/index-zwYbIjmM.js +0 -16
- package/dist/client/assets/index-zwYbIjmM.js.br +0 -0
- package/dist/client/assets/index-zwYbIjmM.js.gz +0 -0
- package/dist/client/assets/index-zwYbIjmM.js.map +0 -1
- package/dist/client/assets/liveSync-Bwi-_k5G.js +0 -3
- package/dist/client/assets/liveSync-Bwi-_k5G.js.br +0 -0
- package/dist/client/assets/liveSync-Bwi-_k5G.js.gz +0 -0
- package/dist/client/assets/liveSync-Bwi-_k5G.js.map +0 -1
- package/dist/client/assets/mentionRows-D4PHzjAg.js +0 -2
- package/dist/client/assets/mentionRows-D4PHzjAg.js.br +0 -0
- package/dist/client/assets/mentionRows-D4PHzjAg.js.gz +0 -0
- package/dist/client/assets/mentionRows-D4PHzjAg.js.map +0 -1
- package/dist/client/assets/newMenuModel-DXMku4hx.js +0 -2
- package/dist/client/assets/newMenuModel-DXMku4hx.js.br +0 -0
- package/dist/client/assets/newMenuModel-DXMku4hx.js.gz +0 -0
- package/dist/client/assets/newMenuModel-DXMku4hx.js.map +0 -1
- package/dist/client/assets/newRecordModel-BnTagtFI.js +0 -2
- package/dist/client/assets/newRecordModel-BnTagtFI.js.br +0 -0
- package/dist/client/assets/newRecordModel-BnTagtFI.js.gz +0 -0
- package/dist/client/assets/newRecordModel-BnTagtFI.js.map +0 -1
- package/dist/client/assets/oauthConsent-CvLqTMMJ.js +0 -2
- package/dist/client/assets/oauthConsent-CvLqTMMJ.js.br +0 -0
- package/dist/client/assets/oauthConsent-CvLqTMMJ.js.gz +0 -0
- package/dist/client/assets/oauthConsent-CvLqTMMJ.js.map +0 -1
- package/dist/client/assets/pageControls-D6FAgmKD.js +0 -2
- package/dist/client/assets/pageControls-D6FAgmKD.js.br +0 -0
- package/dist/client/assets/pageControls-D6FAgmKD.js.gz +0 -0
- package/dist/client/assets/pageControls-D6FAgmKD.js.map +0 -1
- package/dist/client/assets/paramControls-BsTjzS8D.js +0 -2
- package/dist/client/assets/paramControls-BsTjzS8D.js.br +0 -0
- package/dist/client/assets/paramControls-BsTjzS8D.js.gz +0 -0
- package/dist/client/assets/paramControls-BsTjzS8D.js.map +0 -1
- package/dist/client/assets/public-Bas7PiXU.js +0 -3
- package/dist/client/assets/public-Bas7PiXU.js.br +0 -0
- package/dist/client/assets/public-Bas7PiXU.js.gz +0 -0
- package/dist/client/assets/public-Bas7PiXU.js.map +0 -1
- package/dist/client/assets/publicInputs-D98jMI3d.js +0 -3
- package/dist/client/assets/publicInputs-D98jMI3d.js.br +0 -0
- package/dist/client/assets/publicInputs-D98jMI3d.js.gz +0 -0
- package/dist/client/assets/publicInputs-D98jMI3d.js.map +0 -1
- package/dist/client/assets/publicPageCommand-blnlplFb.js +0 -2
- package/dist/client/assets/publicPageCommand-blnlplFb.js.br +0 -0
- package/dist/client/assets/publicPageCommand-blnlplFb.js.gz +0 -0
- package/dist/client/assets/publicPageCommand-blnlplFb.js.map +0 -1
- package/dist/client/assets/publicPlacement-BIAyrghS.js +0 -2
- package/dist/client/assets/publicPlacement-BIAyrghS.js.br +0 -0
- package/dist/client/assets/publicPlacement-BIAyrghS.js.gz +0 -0
- package/dist/client/assets/publicPlacement-BIAyrghS.js.map +0 -1
- package/dist/client/assets/recordSearch-BX6y7hWJ.js +0 -2
- package/dist/client/assets/recordSearch-BX6y7hWJ.js.br +0 -0
- package/dist/client/assets/recordSearch-BX6y7hWJ.js.gz +0 -0
- package/dist/client/assets/recordSearch-BX6y7hWJ.js.map +0 -1
- package/dist/client/assets/savedFormApi-DPymDUH-.js +0 -2
- package/dist/client/assets/savedFormApi-DPymDUH-.js.br +0 -0
- package/dist/client/assets/savedFormApi-DPymDUH-.js.gz +0 -0
- package/dist/client/assets/savedFormApi-DPymDUH-.js.map +0 -1
- package/dist/client/assets/shell-Cg-_POu5.js +0 -13
- package/dist/client/assets/shell-Cg-_POu5.js.br +0 -0
- package/dist/client/assets/shell-Cg-_POu5.js.gz +0 -0
- package/dist/client/assets/shell-Cg-_POu5.js.map +0 -1
- package/dist/client/assets/steps-CFHtYWMF.js +0 -2
- package/dist/client/assets/steps-CFHtYWMF.js.br +0 -0
- package/dist/client/assets/steps-CFHtYWMF.js.gz +0 -0
- package/dist/client/assets/steps-CFHtYWMF.js.map +0 -1
- package/dist/client/assets/tenant-DF_TRFSU.js +0 -3
- package/dist/client/assets/tenant-DF_TRFSU.js.br +0 -0
- package/dist/client/assets/tenant-DF_TRFSU.js.gz +0 -0
- package/dist/client/assets/tenant-DF_TRFSU.js.map +0 -1
- package/dist/client/assets/tenantInvitations-yKUYEnjk.js +0 -2
- package/dist/client/assets/tenantInvitations-yKUYEnjk.js.br +0 -0
- package/dist/client/assets/tenantInvitations-yKUYEnjk.js.gz +0 -0
- package/dist/client/assets/tenantInvitations-yKUYEnjk.js.map +0 -1
- package/dist/client/assets/tenantLive-BcywI9-R.js +0 -2
- package/dist/client/assets/tenantLive-BcywI9-R.js.br +0 -0
- package/dist/client/assets/tenantLive-BcywI9-R.js.gz +0 -0
- package/dist/client/assets/tenantLive-BcywI9-R.js.map +0 -1
- package/dist/client/assets/themeBench-BzOpxgk5.js +0 -2
- package/dist/client/assets/themeBench-BzOpxgk5.js.br +0 -0
- package/dist/client/assets/themeBench-BzOpxgk5.js.gz +0 -0
- package/dist/client/assets/themeBench-BzOpxgk5.js.map +0 -1
- package/dist/client/assets/uiKitLoader-DPDTxyeS.js +0 -2
- package/dist/client/assets/uiKitLoader-DPDTxyeS.js.br +0 -0
- package/dist/client/assets/uiKitLoader-DPDTxyeS.js.gz +0 -0
- package/dist/client/assets/uiKitLoader-DPDTxyeS.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"mappings":";kpCAWMA,GAAe,snBAmDrB,EAGaC,GAAY,CACvB,GAAG,OAAO,OAAOC,EAAc,EAC/B,GAAG,OAAO,OAAOC,EAAW,EAC5B,GAAG,OAAO,OAAOC,CAAa,EAC9B,GAAGJ,EACL,ECnEAK,EAAAC,EAAA,CACE,sBACA,2BACF,GCoCAC,GAAA,CAAoC,sBAAwB,sBAAwB,yBAA2B,EAE/GC,GAAA,EAAAC,iBAAA,IAGAC,EAAA,GAAAC,GAAA,MAAAA,IAAA,GAWA,SAAAC,GAAA,2FAsBE,IAAAC,EAAA,IADAC,cAAAN,CACA,yBAAAO,CAAA,4BACAC,EAAA,IAAAC,IACAC,EAAAC,IAAA,WAAAC,EAAA,KAAAJ,EAAA,CACO,4BAAAK,GAAA,kBAAAA,GAAA,4BAA4F,SAAAF,CAAW,GAE9G,SAAAC,EAAA,aACO,UAAAP,EAAoB,GAAAS,EAAA,eAAAA,CAAA,KAAzB,UACGZ,EAAAa,CAAA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CACF,CACF,EACA,UACE,OAAA2B,EAAA,WACF,EACA,gBAAAiD,GAAA9Z,EAAApN,CAAA,EACA,cACE,IAAA8W,EAAAxK,EAAA,OAAA4O,GAAA5O,EAAA,OAAA5K,CAAA,SACA,OAAAoV,EAAA8N,GAAA9N,EAAAtQ,CAAA,QACF,EAEA,eAAA8X,GAAA2F,EAAA,uBAAAkD,GAAA,EAAA7iB,EAAA0L,CAAA,CAMF,EAIA,yBACE,iCAAAwM,GAAA,CACE,4CAEI,MAAA4K,EACA,oBAAAC,EACA,YAAAC,GACA,wBAAAC,GACA,0BAAAve,EACF,KAEF,cACA,YACA,eACF,GAEFwe,GAAA/B,EAAA,E","names":["SHEET_TOKENS","UI_TOKENS","PALETTE_TOKENS","FONT_TOKENS","RADIUS_TOKENS","say","defineMessages","GAPS","InCard","createContext","given","slot","Card","classes","useContext","className","Tag","level","heading","title","import_jsx_runtime","tone","ground","count","action","_Fragment","description","Stack","gap","Row","align","foot","Cluster","min","Beside","side","railWidth","rail","Text","size","VisuallyHidden","Heading","Tone","Value","host","useUiHost","known","resource","column","value","rule","authoredDisplay","display","dress","dressFor","Dressed","target","ReferenceName","Said","named","useQuery","fallback","Meter","style","max","label","Empty","PlatformEmpty","Skeleton","lines","height","width","at","Loaded","failed","query","note","useRef","import_react","Problem","sayKit","nothing","empty","loading","children","Icon","PlatformIcon","Segmented","buttons","options","option","key","step","event","next","index","onChange","said","folds","node","Stat","points","trend","point","nested","change","Sparkline","Columns","StackedColumns","rows","series","useScrolls","box","scrolls","setScrolls","useState","measure","watch","Table","columns","sorted","sort","sortable","onSort","onRowClick","row","drawn","rowKey","Items","runs","groups","Children","group","ItemRun","id","useId","Item","interactive","href","onClick","follow","useFollow","words","marked","lead","useHostIfAny","Button","props","LinkedButton","UiButton","rest","ButtonLink","useFlags","source","reader","useSyncExternalStore","used","committed","useVisitor","useMemo","selection","useAnalytics","name","fields","useDeclared","page","UiPageContext","withReadState","result","refusedRead","error","ROWS_LIMIT","ROW_RESOURCE","rowOf","resourceOfRow","useRows","declared","_offset","asked","limit","useInfiniteQuery","pageParam","last","pages","sum","one","data","total","more","useCallback","hasNextPage","isFetchingNextPage","fetchNextPage","failedOver","refused","optional","optionally","useRecord","show","useBreakdown","pageLoadPlace","frame","pageLoadKey","scope","view","loader","place","useLoader","each","keepPreviousData","useForm","handle","outcome","setOutcome","read","opened","ended","input","refetch","state","gone","useNavigate","pageHref","address","params","prefill","inAppPath","path","c","useHref","to","then","useComposer","text","useFile","landed","useReducer","useViewer","keyText","useCommand","viewer","useHandle","useCommandHandle","ref","useGranted","useAction","answers","setAnswers","running","setRunning","wanted","round","setRound","current","ask","by","before","results","again","n","track","work","review","setReview","fresh","subscribeReviews","reviewFresh","available","record","prepared","field","useAddressState","param","set","useMessage","subscribeMessages","messageLanguage","args","COMPACT_FROM","sayMoney","code","currency","defaultCurrency","major","minor","minorFigure","compact","formatMoney","whole","formatWholeMoney","useFormat","formatTimezone","formatNumber","formatPercent","formatDate","short","formatAbsolute","formatDateTime","formatRelativeDay","useLook","useToken","useSectionSize","UiSizeContext","useDeployment","marks","parts","locale","sign","part","parseMoney","formatLocale","typed","mark","decimal","shape","digits","currencyDigits","majorToMinorText","below","blank","same","other","unserved","useField","command","served","start","blankCommandValues","setGiven","touched","setTouched","shown","setShown","money","held","holding","problem","commandProblems","commandInput","layoutPoint","zoom","viewportScale","viewportBox","element","LIMIT","SETTLE_MS","useOptions","usePicker","second","useCommandSource","first","useResourceSource","where","reference","setQuery","setAsked","selected","setSelected","settle","onPage","found","resolved","controls","Checkbox","onDemand","ChoiceCards","FileField","Select","Slider","Switch","TextArea","TextField","YesNo","load","registerPageBlocks","blocks","pageBlocks","unregistered","isDay","raw","day","splitRange","from","joinRange","TEXT_ID","idKeyOf","keys","table","columnKind","paramValue","kind","paramKinds","SLOT_NAMES","FAMILIES","isSlot","nearest","lower","edits","b","i","a","j","uiKitProblems","problems","names","near","component","family","defineUiKit","kit","defaultUiKit","defaultSlots","Rows","RecordCard","Metric","Chart","Breakdown","Timeline","Tree","Gantt","Board","Calendar","Gallery","Split","Assistant","Tabs","Steps","paramControls","__vitePreload","reserved","Part","Choose","Search","DateRange","Avatar","CheckCards","DateField","Drawer","Modal","Pagination","Popover","Tooltip","Grid","Panel","FIELDS","SURFACE_FIELDS","defineSurface","definition","definePage","draw","kinds","Page","createElement","UiParamKindsContext","useParam","tableNamed","useRecordKey","CommandForm","busy","onDone","ListResource","NO_ROW","RowButton","UiScopeContext","listed","run","CommandButton","done","ActionButton","Scope","outer","conditions","scopedCondition","List","condition","status","Refused","HOST_GLOBAL","UI_EXPORTS","PAGE_ONLY","uiViewRunBody","base","paths","uiRowsQuery","uiBreakdownText","TIMESTAMP_TEXT","isoTimestamp","match","time","zone","offset","isTimestampColumn","type","timestampPaths","resolvePath","rowsByPath","got","answered","nameOf","stamps","parsed","written","formatter","message","format","IntlMessageFormat","byLocale","sayAppMessage","catalog","APP_FLAG_VALUES_PATH","EXPERIMENT_EXPOSURES_PATH","EXPERIMENT_VISITOR_PATH","EXPERIMENT_FORM_HEADER","EXPERIMENT_ADDRESS_HEADER","isAssignmentReceipt","captureAppFlagValues","fail","nodes","copy","depth","array","proto","entries","descriptor","item","object","values","version","receipt","emptyExposureCoverage","createPageAppFlags","disposed","visitorSelection","visitorHeaders","createAppFlagsState","identity","sessionIdentity","lease","captureTenantLease","owner","captureExperimentExposureSender","appId","active","presentation","appPresentation","assertSessionCurrent","tenantLeaseActive","signal","tenantReadApi","response","fetchServer","invalidateSession","unsubscribe","subscribeSessionIdentity","subscribeTenantLease","subscribeAppPresentation","reply","stop","listeners","generation","controller","pending","attempted","exposures","assignmentReceipts","retiredCoverage","unavailable","captured","failure","snapshot","notify","listener","started","abort","port","sender","createExperimentExposureQueue","ANALYTICS_BEACON_PATH","BATCH","DELAY_MS","createAnalyticsBeacon","now","delay","queue","timer","flush","events","when","add","route","pageAnalyticsBeacon","beacon","addHostListener","tenantQualified","qualify","shell","tenant","tableOf","pageBridge","viewRows","body","pageApi","api","choiceShape","primaryKey","labelPath","resourceChoices","search","quote","rowLabel","resourceChoiceName","root","shellRoot","look","attribute","dark","density","densityChoice","deployment","app","logo","flags","pageHost","keyed","asking","batchedBreakdown","PAGE_LOAD_PATH","openRecord","navFollow","room","viewPath","publicFormAddress","shownUnplaced","hrefFor","fillPageComposer","mode","filesOnLease","pictureOnLeaseNow","ownedBy","reads","commandChoicePage","detail","readReferenceName","columnDisplay","columnLabel","observer","media","toast","publicMessages","React","JsxRuntime","ReactDOM","ui","setPageHost"],"ignoreList":[],"sources":["../../../../kit/src/shared/uiTokens.ts","../../../src/client/copy/components/components/sdk/kit.ts","../../../src/client/components/sdk/kit.tsx","../../../src/client/copy/components/components/sdk/hooks.ts","../../../src/client/components/sdk/hooks.ts","../../../src/client/components/sdk/deployment.ts","../../../src/client/copy/components/components/sdk/fields.ts","../../../src/client/components/sdk/fields.ts","../../../src/client/components/sdk/layout.ts","../../../src/client/copy/components/components/sdk/options.ts","../../../src/client/components/sdk/options.ts","../../../src/client/components/sdk/index.ts","../../../src/client/components/sdk/pageBlocks.ts","../../../src/client/components/sdk/paramKinds.ts","../../../src/client/copy/components/components/sdk/page.ts","../../../../ui/src/uiKitSlots.ts","../../../../ui/src/UiKit.tsx","../../../src/client/components/sdk/page.tsx","../../../src/shared/uiSdk.ts","../../../src/client/components/sdk/rows.ts","../../../src/client/components/sdk/appMessage.ts","../../../src/client/copy/components/components/sdk/host.ts","../../../src/shared/appFlagValues.ts","../../../src/client/copy/shell/appFlags.ts","../../../src/client/appFlags.ts","../../../src/shared/appAnalytics.ts","../../../src/client/analyticsBeacon.ts","../../../src/client/components/sdk/host.tsx"],"sourcesContent":["/**\n * The custom properties a custom component may read: `@mistriwork/mistri/ui` exports\n * them as `tokens`, and `mistri check` holds a component's `var(--…)` to\n * them. They are not listed by hand a second time — the theme's roles, faces\n * and corners are read off the tables the theme wears them from\n * (themeTokens.ts), so a role added there is a token here. Only the sheets'\n * own steps (space, type sizes, motion, depth, the larger corners) are named below,\n * because no theme role carries them.\n */\nimport { FONT_TOKENS, PALETTE_TOKENS, RADIUS_TOKENS } from '@mistriwork/engine/shared/themeTokens.js';\n\nconst SHEET_TOKENS = [\n '--radius-lg',\n '--radius-pop',\n '--radius-panel',\n '--radius-dialog',\n '--radius-item',\n '--type-ui',\n '--type-display',\n '--type-list-title',\n '--type-record-title',\n '--space-1',\n '--space-2',\n '--space-3',\n '--space-4',\n '--space-5',\n '--space-6',\n '--space-7',\n '--space-8',\n '--space-1h',\n '--space-2h',\n '--space-3h',\n '--space-4h',\n '--control-h',\n '--section-seam',\n '--page-head-gap',\n '--page-measure',\n '--room-inset',\n '--row-h',\n '--text-xs',\n '--text-sm',\n '--text-base',\n '--text-md',\n '--text-lg',\n '--text-xl',\n '--heading-weight',\n '--track-caps',\n '--track-display',\n '--track-title',\n '--t-hover',\n '--t-press',\n '--t-popover',\n '--t-panel',\n '--ease-out',\n '--ease-in-out',\n '--shadow-pop',\n '--shadow-panel',\n '--shadow-modal',\n '--scrim',\n '--scrim-light',\n '--focus-width',\n '--focus-offset',\n] as const;\n\n/** Every token a component may name, theme roles first, then faces, corners and the sheets' own steps. */\nexport const UI_TOKENS = [\n ...Object.values(PALETTE_TOKENS),\n ...Object.values(FONT_TOKENS),\n ...Object.values(RADIUS_TOKENS),\n ...SHEET_TOKENS,\n] as readonly string[];\n\n/** What a reader reaches for from another system's vocabulary, and the token that says it here. */\nconst WORDS: Record<string, string> = {\n negative: '--status-critical',\n danger: '--status-critical',\n error: '--status-critical',\n destructive: '--status-critical',\n red: '--status-critical',\n positive: '--status-good',\n success: '--status-good',\n green: '--status-good',\n warning: '--status-warning',\n caution: '--status-warning',\n info: '--status-info',\n text: '--ink',\n foreground: '--ink',\n fg: '--ink',\n 'text-muted': '--ink-muted',\n muted: '--ink-muted',\n secondary: '--ink-muted',\n subtle: '--ink-subtle',\n background: '--ground',\n bg: '--ground',\n page: '--ground',\n card: '--surface',\n panel: '--surface',\n border: '--line',\n divider: '--line',\n primary: '--accent',\n brand: '--accent',\n 'accent-color': '--accent',\n font: '--sans',\n 'font-family': '--sans',\n 'font-mono': '--mono',\n 'border-radius': '--radius',\n rounded: '--radius',\n // Renamed before 1.0, with `nav.currentInk`: words on a fill are on<Fill>.\n 'nav-current-ink': '--nav-on-current',\n};\n\nfunction distance(a: string, b: string): number {\n const row = Array.from({ length: b.length + 1 }, (_, i) => i);\n for (let i = 1; i <= a.length; i++) {\n let diagonal = row[0]!;\n row[0] = i;\n for (let j = 1; j <= b.length; j++) {\n const above = row[j]!;\n row[j] = Math.min(row[j]! + 1, row[j - 1]! + 1, diagonal + (a[i - 1] === b[j - 1] ? 0 : 1));\n diagonal = above;\n }\n }\n return row[b.length]!;\n}\n\n/**\n * The tokens renamed before 1.0, each to the one that says it now. Read before spelling: by spelling `--text-dim` is\n * nearest `--text-sm` and `--ok` nearest `--ink` (a field report). `mistri upgrade` rewrites them from this table.\n */\nexport const RENAMED_TOKENS: Readonly<Record<string, string>> = {\n '--text': '--ink',\n '--text-dim': '--ink-muted',\n '--border': '--line',\n '--border-strong': '--line-strong',\n '--danger': '--status-critical',\n '--warn': '--status-warning',\n '--ok': '--status-good',\n '--surface-2': '--raised',\n '--bg': '--ground',\n};\n\n/** The token a name was most likely meant to be: the one it was renamed to, the word another system uses for it, else the nearest spelling. */\nexport function nearestToken(name: string): string | undefined {\n if (Object.hasOwn(RENAMED_TOKENS, name)) return RENAMED_TOKENS[name];\n const bare = name.replace(/^--/, '').toLowerCase();\n /* Own keys only: `--constructor` is not a word another system uses, whatever Object.prototype holds. */\n const said = Object.hasOwn(WORDS, bare) ? WORDS[bare] : undefined;\n if (said) return said;\n let best: string | undefined;\n let bestDistance = 3;\n for (const token of UI_TOKENS) {\n const gap = distance(bare, token.slice(2));\n if (gap < bestDistance) [best, bestDistance] = [token, gap];\n }\n return best;\n}\n","/** What sdk/kit says, in the custom components 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 nothingHereYet: 'Nothing here yet.',\n notRead: 'This could not be read.',\n});\n","/**\n * The kit a custom component draws with: the platform's own pieces, dressed\n * in the classes every look already dresses, so a component reads as part of\n * the App in all three looks, light and dark, without a colour of its own.\n *\n * Each takes explicit props. The column a `Value` belongs to and how its App\n * dresses it come from the host (context.ts), never from the walk's globals,\n * so the same piece draws in the page and in a component's tests. Layout\n * follows docs/design.md: one box, never a box in a box (a `Card` inside a\n * `Card` draws as a plain group); the 20px field gap and the 40px section\n * seam as `Stack`'s two gaps; a tone is a dot and its word.\n */\nimport {\n Children,\n createContext,\n useContext,\n useEffect,\n useId,\n useRef,\n useState,\n type ComponentProps,\n type CSSProperties,\n type KeyboardEvent,\n type MouseEvent,\n type ReactNode,\n} from 'react';\nimport type { AppIconName } from '@mistriwork/engine/shared/appIcons.js';\nimport { Button as UiButton, ButtonLink } from '@mistriwork/ui/Button.js';\nimport { Icon as PlatformIcon } from '@mistriwork/kit/client/components/Icon.js';\nimport { Empty as PlatformEmpty, Problem } from '@mistriwork/kit/client/components/Notes.js';\nimport { Dressed, Said } from '@mistriwork/kit/client/components/Dressed.js';\nimport { authoredDisplay, dressFor, type DisplayRule } from '@mistriwork/kit/client/components/valueModel.js';\nimport { useQuery } from '@tanstack/react-query';\nimport { useHostIfAny, useUiHost } from './context.js';\n/* Named apart: `say` is also Sparkline's prop below, a figure's speaker. */\nimport { say as sayKit } from '../../copy/components/components/sdk/kit.js';\nimport { Sparkline, StackedColumns } from '@mistriwork/kit/client/components/Chart.js';\n\nexport { Dropdown } from '@mistriwork/kit/client/components/Dropdown.js';\nexport { SplitListDetail } from '../SplitListDetail.js';\n\ntype Gap = 'tight' | 'field' | 'section';\nconst GAPS: Record<Gap, string> = { tight: 'kit-gap-tight', field: 'kit-gap-field', section: 'kit-gap-section' };\n\nconst InCard = createContext(false);\n\n/** A slot that was given something: `0` is a count, and `null`, `false` and `undefined` are a slot left empty. */\nconst given = (slot: ReactNode): boolean => slot !== undefined && slot !== null && slot !== false;\n\n/**\n * One box: a hairline and the surface. A card inside a card is a plain group, as design.md's refusal list asks.\n * `count` (a quiet number beside the title) and `action` (right-aligned in the same row) turn the title into a header\n * row; with neither it is the heading alone. `ground=\"nav\"` is the box on the look's navigation ground (see\n * `data-ground` in kit.css): everything the kit draws inside it takes that ground's inks.\n * `description` is one quiet line under the title (what the part holds), and `tone` says the title in a status ink\n * (a part about trouble). The title is an h3 unless `level` says another: a page of the App's own has the platform's h1 above it, and an\n * h3 straight under it skips a level of the outline (WCAG 1.3.1), so a card that is a section of the page is `level={2}`.\n */\nexport function Card({\n title,\n level = 3,\n count,\n action,\n description,\n tone,\n ground,\n children,\n className,\n}: {\n title?: ReactNode;\n level?: 2 | 3 | 4;\n count?: ReactNode;\n action?: ReactNode;\n description?: ReactNode;\n tone?: ToneName;\n ground?: 'nav';\n children?: ReactNode;\n className?: string;\n}) {\n const nested = useContext(InCard);\n const classes = [nested ? 'kit-group' : 'kit-card', className].filter(Boolean).join(' ');\n const Tag = `h${level}` as 'h2' | 'h3' | 'h4';\n const heading = title !== undefined && (\n <Tag className={['kit-card-title', tone && `kit-card-title-${tone}`].filter(Boolean).join(' ')}>{title}</Tag>\n );\n return (\n <div className={classes} {...(ground ? { 'data-ground': ground } : {})}>\n {given(count) || given(action) ? (\n <div className=\"kit-card-head\">\n {heading}\n {given(count) && <span className=\"kit-card-count\">{count}</span>}\n {given(action) && <span className=\"kit-card-action\">{action}</span>}\n </div>\n ) : (\n <>{heading}</>\n )}\n {given(description) && <p className=\"kit-card-description\">{description}</p>}\n <InCard.Provider value={true}>{children}</InCard.Provider>\n </div>\n );\n}\n\n/** Children one under another, a field's 20px apart (default), a section's 40px, or tight. */\nexport function Stack({\n gap = 'field',\n as: Tag = 'div',\n children,\n className,\n}: {\n gap?: Gap;\n as?: 'div' | 'ul' | 'ol';\n children?: ReactNode;\n className?: string;\n}) {\n return <Tag className={['kit-stack', GAPS[gap], className].filter(Boolean).join(' ')}>{children}</Tag>;\n}\n\n/** Children side by side, wrapping onto a new line where there is no room. `foot` says the row is the page's actions\n at the screen's foot (a sticky row of verbs on a phone): a notice stands above it, as above a record's bar, and\n never over the verbs it reports on. */\nexport function Row({\n gap = 'field',\n align = 'center',\n foot,\n children,\n className,\n}: {\n gap?: Gap;\n align?: 'start' | 'center' | 'baseline' | 'end';\n foot?: boolean;\n children?: ReactNode;\n className?: string;\n}) {\n return (\n <div\n className={['kit-row', GAPS[gap], `kit-align-${align}`, className].filter(Boolean).join(' ')}\n {...(foot ? { 'data-foot-actions': '' } : {})}\n >\n {children}\n </div>\n );\n}\n\n/** Children in a grid of equal columns as wide as `min` where there is room, fewer where there is not: it wraps, and\n never scrolls sideways. A card or a stat that should sit three across at a desk and stack on a phone, with no\n breakpoint written. `min` is a CSS length (`'16rem'` by default); a column is never wider than the box itself. */\nexport function Cluster({\n min = '16rem',\n gap = 'field',\n children,\n className,\n}: {\n min?: string;\n gap?: Gap;\n children?: ReactNode;\n className?: string;\n}) {\n return (\n <div className={['kit-cluster', GAPS[gap], className].filter(Boolean).join(' ')} style={{ '--kit-cluster-min': min } as CSSProperties}>\n {children}\n </div>\n );\n}\n\n/**\n * A main column beside a rail: the page's content and the notes, filters or facts that go with it. The main takes what\n * the rail leaves (`minmax(0, 1fr)`) and the rail is `railWidth` wide (a CSS length, `'20rem'` by default, and never\n * past half the box). `side` says which edge the rail stands at. Where the box itself is too narrow for both it stacks,\n * the main first and the rail under it, and it never scrolls sideways. Cluster makes equal columns; this makes two\n * unequal ones.\n */\nexport function Beside({\n rail,\n railWidth = '20rem',\n side = 'end',\n children,\n className,\n}: {\n rail: ReactNode;\n railWidth?: string;\n side?: 'start' | 'end';\n children?: ReactNode;\n className?: string;\n}) {\n return (\n /* The host is the container the stacking asks about, so the grid inside it can change with it. */\n <div className=\"kit-beside-host\">\n <div\n className={['kit-beside', side === 'start' && 'kit-beside-start', className].filter(Boolean).join(' ')}\n style={{ '--kit-beside-rail': railWidth } as CSSProperties}\n >\n <div className=\"kit-beside-main\">{children}</div>\n <div className=\"kit-beside-rail\">{rail}</div>\n </div>\n </div>\n );\n}\n\n/**\n * A line of words: `<Text tone=\"muted\" size=\"sm\">Not shared with your role.</Text>`. The default is the page's ink; `muted`\n * is its secondary ink, for a note or a caption; `danger` is the status colour for a refusal or a failure. It stands\n * in a Card or on the page and sets no layout of its own.\n */\nexport function Text({\n tone = 'default',\n size = 'md',\n children,\n}: {\n tone?: 'default' | 'muted' | 'danger';\n size?: 'sm' | 'md';\n children?: ReactNode;\n}) {\n return (\n <p className={['kit-text', tone === 'default' ? '' : `kit-text-${tone}`, size === 'sm' ? 'kit-text-sm' : ''].filter(Boolean).join(' ')}>\n {children}\n </p>\n );\n}\n\n/**\n * Words only a screen reader hears: a count's unit, the \"opens in a new tab\" a link's icon implies, a heading a sighted\n * reader has no use for. It is clipped, not `display: none`, so it stays in the accessibility tree and the page's\n * tab order and layout never see it. A page that wrote its own clip rule for this can drop it.\n */\nexport function VisuallyHidden({ children }: { children?: ReactNode }) {\n return <span className=\"kit-visually-hidden\">{children}</span>;\n}\n\n/** A heading inside a section: the section's own title is its h2, so this is an h3 by default. */\nexport function Heading({ level = 3, children, className }: { level?: 3 | 4; children?: ReactNode; className?: string }) {\n const Tag = level === 4 ? 'h4' : 'h3';\n return <Tag className={['kit-heading', className].filter(Boolean).join(' ')}>{children}</Tag>;\n}\n\nexport type ToneName = 'good' | 'warn' | 'bad' | 'info' | 'neutral';\n\n/** A meaning as the looks say one: a dot and its word. Earned, like a display rule's tone. */\nexport function Tone({ tone, children }: { tone: ToneName; children?: ReactNode }) {\n return <span className={`tone tone-${tone}`}>{children}</span>;\n}\n\n/**\n * A value, drawn as the App draws it: name the resource and the column and\n * its display rule dresses it (money, a tone, a relative day), or pass\n * `display` to say one here. An id past 2^53 arrives as a string and keeps\n * every digit; nothing here runs it through Number().\n */\nexport function Value({\n value,\n resource,\n column,\n display,\n compact = false,\n}: {\n value: unknown;\n resource?: string;\n column?: string;\n display?: Omit<DisplayRule, 'bar' | 'max'> & { bar?: boolean | number };\n compact?: boolean;\n}) {\n const host = useUiHost();\n const known = resource && column ? host.column(resource, column) : undefined;\n if (value === null || value === undefined || value === '') return <span className=\"null\">—</span>;\n const rule = authoredDisplay(display) ?? known?.rule ?? null;\n const dress = dressFor(rule, value);\n if (dress) return <Dressed dress={dress} compact={compact} />;\n /* A reference holds its record's key; the lists say the record's name, so a column named here does too. */\n const target = known?.meta?.references?.table;\n if (target && display === undefined && (typeof value === 'string' || typeof value === 'number'))\n return (\n <ReferenceName resource={target} value={value} fallback={<Said col={known?.meta} value={value} compact={compact} app={host.app} />} />\n );\n return <Said col={known?.meta} value={value} compact={compact} app={host.app} />;\n}\n\n/**\n * The name of the record a reference column holds, read as the platform's pickers read one (the host's `choiceName`:\n * under the reader's grants), kept in the page's cache so a column of one record is one read. It holds the key's place\n * while it arrives, so the row does not move, and says the key where the record is not the reader's to read.\n */\nfunction ReferenceName({ resource, value, fallback }: { resource: string; value: string | number; fallback: ReactNode }) {\n const host = useUiHost();\n const named = useQuery({\n queryKey: ['mistri-ui', 'reference-name', ...host.scope, resource, value],\n queryFn: () => host.choiceName({ resource }, value).catch(() => null),\n retry: false,\n });\n if (named.isPending) return <span style={{ opacity: 0 }}>{fallback}</span>;\n return named.data ? <span className=\"prose\">{named.data.label}</span> : fallback;\n}\n\n/** A share of a whole as a bar and its figure: `value` against `max` (100 by default), in a tone when it means something. */\nexport function Meter({ value, max = 100, tone, label }: { value: number; max?: number; tone?: ToneName; label?: ReactNode }) {\n const fill = max > 0 && Number.isFinite(value) ? Math.max(0, Math.min(100, (value / max) * 100)) : 0;\n const style: CSSProperties = { width: `${fill}%` };\n return (\n <span\n className={`meter-wrap${tone ? ` meter-${tone}` : ''}`}\n role=\"meter\"\n aria-valuenow={value}\n aria-valuemin={0}\n aria-valuemax={max}\n aria-label={typeof label === 'string' ? label : undefined}\n >\n <span className=\"pct-bar\">\n <span className=\"pct-fill\" style={style} />\n </span>\n {label !== undefined && <span className=\"num-value\">{label}</span>}\n </span>\n );\n}\n\n/** What a component says when it has nothing to draw: the platform's own quiet note. */\nexport function Empty({ title, description, action }: { title: ReactNode; description?: ReactNode; action?: ReactNode }) {\n return <PlatformEmpty text={title} detail={description} action={action} />;\n}\n\n/**\n * A placeholder block: the platform's skeleton bar, at the size what is coming will take (`height`, and `width` where\n * it is not the box's), so nothing under it moves when it lands. `lines` draws that many, one under another, the last\n * shorter, for a paragraph. It is for `<Loaded loading={…}>`, and says nothing to assistive technology itself: the\n * wait is announced once, by what holds it.\n */\nexport function Skeleton({ height, width, lines = 1 }: { height?: number | string; width?: number | string; lines?: number }) {\n const count = Math.max(1, Math.floor(lines));\n return (\n <span className=\"kit-skeleton\" aria-hidden=\"true\">\n {Array.from({ length: count }, (_, at) => (\n <span\n key={at}\n className=\"sk-bar kit-skeleton-bar\"\n style={{\n ...(height === undefined ? {} : { blockSize: height }),\n ...(width !== undefined ? { inlineSize: width } : count > 1 && at === count - 1 ? { inlineSize: '60%' } : {}),\n }}\n />\n ))}\n </span>\n );\n}\n\n/** What `<Loaded>` reads of a read: a hook's query (`useRows`, `useRecord`, `useBreakdown`) as it stands. */\ninterface LoadedQuery<T> {\n data: T | undefined;\n isError: boolean;\n error: Error | null;\n refetch(): unknown;\n /** An `optional: true` read the reader was refused: drawn as `empty`, never as a failure or a wait. */\n refused?: boolean;\n}\n\n/**\n * A read's states before its drawing, said as every section says them: the platform's placeholder while it is asked\n * (at `height`, the size the drawing will take, so nothing under it moves when it lands, or what `loading` draws in its\n * place: a `Skeleton` shaped like the drawing), `Empty` for no rows or no record (`empty`, or the house sentence;\n * `empty={null}` draws nothing), and the house problem with Try again when it could not be read — focus on\n * Try again when the drawing it replaced held it, so focus is never dropped. Then `children(data)`, the App's own.\n * What was read stays drawn when a later refresh fails: a finished screen is never swapped for a note. Domain states\n * (\"not eligible\", \"unavailable\") are the App's to draw inside it.\n */\nexport function Loaded<T>({\n query,\n empty,\n loading,\n height,\n children,\n}: {\n query: LoadedQuery<T>;\n empty?: ReactNode;\n loading?: ReactNode;\n height?: number | string;\n children: (data: NonNullable<T>) => ReactNode;\n}) {\n const failed = query.data === undefined && query.isError;\n const note = useRef<HTMLDivElement>(null);\n useEffect(() => {\n // The placeholder holds no focus; a drawing that did and went (a refresh that failed once its rows were dropped) left it on the body.\n if (!failed) return;\n const at = document.activeElement;\n if (at === null || at === document.body) note.current?.querySelector<HTMLElement>('.problem-retry')?.focus({ preventScroll: true });\n }, [failed]);\n if (failed)\n return (\n <div ref={note} className=\"kit-loaded\">\n <Problem text={query.error?.message || sayKit('notRead')} retry={() => void query.refetch()} />\n </div>\n );\n /* `empty={null}` says draw nothing; only an `empty` left out is the house sentence. */\n const nothing = empty === undefined ? <Empty title={sayKit('nothingHereYet')} /> : empty;\n if (query.data === undefined && query.refused) return <>{nothing}</>;\n if (query.data === undefined && loading !== undefined)\n return (\n <div role=\"status\" aria-label={sayKit('common.loading')}>\n {loading}\n </div>\n );\n if (query.data === undefined)\n return (\n <div\n className=\"sk-bar kit-loading\"\n role=\"status\"\n aria-label={sayKit('common.loading')}\n {...(height === undefined ? {} : { style: { blockSize: height } })}\n />\n );\n if (query.data === null || (Array.isArray(query.data) && query.data.length === 0)) return <>{nothing}</>;\n return <>{children(query.data as NonNullable<T>)}</>;\n}\n\n/** One of the App's curated marks (the names a view's `icon` takes). Decoration unless it has a label. */\nexport function Icon({ name, label, size }: { name: AppIconName; label?: string; size?: number | string }) {\n return <PlatformIcon name={name} label={label} size={size} />;\n}\n\n/**\n * A segmented control: a few exclusive choices said as one row of words, the\n * chosen one filled in the look's tab dress — a filter's All / Needs attention,\n * a range's 7 d / 30 d. A choice may carry a count, a pill beside its word.\n * One target: arrows move the choice, as a radio group's do. A value no option carries leaves every one unchosen (the\n * first stays the tab stop). Past four choices the row is too wide for a phone, so at a phone's width a native picker\n * stands in its place; `className` is the App's own class, on whichever of the two is drawn.\n */\nexport function Segmented<T extends string>({\n label,\n value,\n options,\n onChange,\n size = 'default',\n className,\n}: {\n label: string;\n value: T;\n options: ReadonlyArray<{ value: T; label: ReactNode; count?: number; name?: string }>;\n onChange(value: T): void;\n size?: 'default' | 'compact';\n className?: string;\n}) {\n const buttons = useRef<Array<HTMLButtonElement | null>>([]);\n const at = Math.max(\n 0,\n options.findIndex((option) => option.value === value),\n );\n const key = (event: KeyboardEvent<HTMLButtonElement>, index: number) => {\n const step =\n event.key === 'ArrowRight' || event.key === 'ArrowDown' ? 1 : event.key === 'ArrowLeft' || event.key === 'ArrowUp' ? -1 : 0;\n const next = step\n ? (index + step + options.length) % options.length\n : event.key === 'Home'\n ? 0\n : event.key === 'End'\n ? options.length - 1\n : -1;\n if (next < 0) return;\n event.preventDefault();\n onChange(options[next].value);\n buttons.current[next]?.focus();\n };\n /* A picker's words are text: a count is said after the word, and a label that is not text falls back to the option's name. */\n const said = (option: (typeof options)[number]) =>\n `${typeof option.label === 'string' ? option.label : (option.name ?? option.value)}${option.count === undefined ? '' : ` (${option.count})`}`;\n const folds = options.length > 4;\n return (\n <>\n <div\n className={`kit-segmented${size === 'compact' ? ' kit-segmented-compact' : ''}${folds ? ' kit-segmented-folds' : ''}${className ? ` ${className}` : ''}`}\n role=\"radiogroup\"\n aria-label={label}\n >\n {options.map((option, index) => (\n <button\n key={option.value}\n type=\"button\"\n role=\"radio\"\n aria-checked={option.value === value}\n tabIndex={index === at ? 0 : -1}\n aria-label={option.name}\n ref={(node) => {\n buttons.current[index] = node;\n }}\n className=\"kit-segment\"\n onClick={() => onChange(option.value)}\n onKeyDown={(event) => key(event, index)}\n >\n <span>{option.label}</span>\n {option.count !== undefined && <span className=\"kit-segment-count\">{option.count}</span>}\n </button>\n ))}\n </div>\n {folds && (\n <select\n className={`kit-segmented-pick field-control${className ? ` ${className}` : ''}`}\n aria-label={label}\n value={options.some((option) => option.value === value) ? value : ''}\n onChange={(event) => onChange(event.target.value as T)}\n >\n {!options.some((option) => option.value === value) && <option value=\"\" disabled hidden />}\n {options.map((option) => (\n <option key={option.value} value={option.value}>\n {said(option)}\n </option>\n ))}\n </select>\n )}\n </>\n );\n}\n\n/**\n * A figure and what it counts, as a dashboard's stat card says one: the\n * figure, its label, its change against the period before (in the tone of\n * the news where the caller knows which way is good) and, from four points,\n * its trend. As tall as what it says, so a strip of them stands from one edge.\n */\nexport function Stat({\n label,\n value,\n change,\n trend,\n say = String,\n}: {\n label: ReactNode;\n value: ReactNode;\n change?: { text: ReactNode; tone?: ToneName };\n trend?: ReadonlyArray<number | { key: string; value: number }>;\n say?: (value: unknown) => string;\n}) {\n const points = (trend ?? []).map((point, index) => (typeof point === 'number' ? { key: String(index), value: point } : point));\n /* In a Card it is a figure in that box, not a box in a box (as a Card in a Card is a plain group). */\n const nested = useContext(InCard);\n return (\n <div className={nested ? 'kit-stat kit-stat-plain' : 'kit-stat'}>\n <span className=\"kit-stat-label\">{label}</span>\n {/* The trend rides beside the figure, so a Stat with none is the same height as one with. */}\n <span className=\"kit-stat-row\">\n <span className=\"kit-stat-figure\">{value}</span>\n {points.length >= 4 && (\n <span className={`spark-host kit-stat-spark${change?.tone === 'good' ? ' good' : change?.tone === 'bad' ? ' bad' : ''}`}>\n <Sparkline rows={points} say={say} />\n </span>\n )}\n </span>\n {change && <span className={`kit-stat-change${change.tone ? ` kit-stat-${change.tone}` : ''}`}>{change.text}</span>}\n </div>\n );\n}\n\n/**\n * Columns over periods (or any keys), each divided by series: Tracked and\n * Business events a day, say. Levels on the left, periods along the bottom,\n * the current column's parts in a pill over it, and a legend of the series.\n */\nexport function Columns({\n rows,\n series,\n say,\n height,\n}: {\n rows: ReadonlyArray<{ key: string; values: Record<string, number> }>;\n series: ReadonlyArray<{ key: string; label: string }>;\n say?: (value: unknown) => string;\n height?: number;\n}) {\n return (\n <div className=\"kit-columns\">\n <StackedColumns rows={[...rows]} series={[...series]} say={say} high={height} />\n </div>\n );\n}\n\nexport interface TableColumn<Row> {\n /** The row's field this column reads, and the key a sort names. */\n key: string;\n label: ReactNode;\n align?: 'left' | 'right';\n /** Dress the cell as this resource's column is dressed (money, a tone, a relative day), as `Value` does. */\n resource?: string;\n column?: string;\n display?: ComponentProps<typeof Value>['display'];\n /** Draw the cell yourself; the value, its dress and the row link are then yours. */\n render?: (row: Row) => ReactNode;\n /** Left out of the sort even where the table sorts. */\n sortable?: boolean;\n}\n\n/**\n * Whether a box scrolls sideways right now. Such a box is a Tab stop and has a name (WCAG 2.1.1; axe\n * scrollable-region-focusable): a keyboard reader cannot reach what is off the edge of a box they cannot focus. It is\n * so only while it scrolls — a table that fits adds no stop to the page — and only attributes change, so nothing moves.\n */\nfunction useScrolls() {\n const box = useRef<HTMLDivElement>(null);\n const [scrolls, setScrolls] = useState(false);\n useEffect(() => {\n const node = box.current;\n if (!node) return;\n const measure = () => setScrolls(node.scrollWidth > node.clientWidth + 1);\n measure();\n if (typeof ResizeObserver === 'undefined') return;\n const watch = new ResizeObserver(measure);\n watch.observe(node);\n if (node.firstElementChild) watch.observe(node.firstElementChild);\n return () => watch.disconnect();\n }, []);\n return { box, scrolls };\n}\n\n/**\n * Rows the component read, in the look's own table: the head, the hairlines and the row hover are the platform's,\n * and each cell is a `Value`, so a column dressed in the App is dressed here. Sorting is the caller's, as its rows\n * are: a head is a button once `onSort` is given, and the table says which way it stands; it never reorders what it\n * was handed. With `onRowClick` the first cell is the row's link (one target for the keyboard) and the whole row\n * answers a pointer.\n */\nexport function Table<Row extends Record<string, unknown>>({\n label,\n columns,\n rows,\n rowKey,\n sort,\n onSort,\n onRowClick,\n empty,\n}: {\n /** What the table is, for assistive technology: a table of rows has no heading of its own. */\n label: string;\n columns: ReadonlyArray<TableColumn<Row>>;\n rows: ReadonlyArray<Row>;\n rowKey?: (row: Row, index: number) => string | number;\n sort?: { key: string; direction: 'asc' | 'desc' };\n onSort?: (key: string) => void;\n onRowClick?: (row: Row) => void;\n /** Said under the head when there are no rows. */\n empty?: ReactNode;\n}) {\n const { box, scrolls } = useScrolls();\n return (\n <div ref={box} className=\"table-wrap kit-table\" {...(scrolls ? { role: 'region', tabIndex: 0, 'aria-label': label } : {})}>\n <table aria-label={label}>\n <thead>\n <tr>\n {columns.map((column) => {\n const align = column.align ?? 'left';\n const sorted = sort?.key === column.key ? sort.direction : undefined;\n const sortable = Boolean(onSort) && column.sortable !== false;\n return (\n <th\n key={column.key}\n className={`align-${align}${sorted ? ' sorted' : ''}`}\n aria-sort={sorted ? (sorted === 'asc' ? 'ascending' : 'descending') : undefined}\n >\n {sortable ? (\n <button type=\"button\" className=\"th-sort\" onClick={() => onSort?.(column.key)}>\n {column.label}\n {sorted && <span aria-hidden=\"true\">{sorted === 'asc' ? ' ↑' : ' ↓'}</span>}\n </button>\n ) : (\n <span className=\"th-sort not-sortable\">{column.label}</span>\n )}\n </th>\n );\n })}\n </tr>\n </thead>\n <tbody>\n {rows.map((row, index) => (\n <tr\n key={rowKey ? rowKey(row, index) : index}\n className={onRowClick ? 'clickable' : undefined}\n onClick={onRowClick && (() => onRowClick(row))}\n >\n {columns.map((column, at) => {\n const drawn = column.render ? (\n column.render(row)\n ) : (\n <Value value={row[column.key]} resource={column.resource} column={column.column} display={column.display} compact />\n );\n return (\n <td key={column.key} className={`align-${column.align ?? 'left'}${typeof row[column.key] === 'number' ? ' num' : ''}`}>\n {onRowClick && at === 0 ? (\n <button\n type=\"button\"\n className=\"kit-table-link\"\n onClick={(event) => {\n // The row's own click is the pointer's; this one is the keyboard's, and must not run it twice.\n event.stopPropagation();\n onRowClick(row);\n }}\n >\n {drawn}\n </button>\n ) : (\n drawn\n )}\n </td>\n );\n })}\n </tr>\n ))}\n </tbody>\n </table>\n {rows.length === 0 && empty !== undefined && <div className=\"kit-table-empty\">{empty}</div>}\n </div>\n );\n}\n\n/** One run of an `Items` list under a head of its own: `title` is the head's words, `count` a quiet number beside it, and\n `items` its `Item`s. */\ninterface ItemGroup {\n key?: string;\n title: ReactNode;\n count?: ReactNode;\n items: ReactNode;\n}\n\n/** Rows of a list with no head row: a lead, a title, a quiet note and an action each. `label` names the list for\n assistive technology; `empty` stands in its place when there are no `Item`s. With `groups` the rows come in runs, each\n under a head that holds the top of the room while its own rows pass beneath it (a run with no rows is not drawn). */\nexport function Items({\n label,\n empty,\n groups,\n children,\n className,\n}: {\n label?: string;\n empty?: ReactNode;\n groups?: readonly ItemGroup[];\n children?: ReactNode;\n className?: string;\n}) {\n /* In a Card the rows are that box's, not a box in a box: no inset of their own, as a Stat in a Card is plain. */\n const nested = useContext(InCard);\n const runs = (groups ?? []).filter((group) => Children.toArray(group.items).length > 0);\n if (Children.toArray(children).length === 0 && runs.length === 0)\n return given(empty) ? <div className={`kit-items-empty${nested ? ' kit-items-empty-flush' : ''}`}>{empty}</div> : null;\n return (\n <ul className={['kit-items', nested && 'kit-items-flush', className].filter(Boolean).join(' ')} aria-label={label}>\n {runs.map((group, at) => (\n <ItemRun key={group.key ?? at} group={group} />\n ))}\n {children}\n </ul>\n );\n}\n\n/* A run is one list item holding its head and its own list, labelled by the head: the groups are a list of lists to a\n screen reader. The run spans the shared columns, so the lead column still lines up down every run, and being the\n containing block of its sticky head is what lets the next run's head take the place of this one. */\nfunction ItemRun({ group }: { group: ItemGroup }) {\n const id = useId();\n return (\n <li className=\"kit-items-run\">\n <div id={id} className=\"kit-items-head\">\n <span className=\"kit-items-head-title\">{group.title}</span>\n {given(group.count) && <span className=\"kit-items-head-count\">{group.count}</span>}\n </div>\n <ul className=\"kit-items-run-rows\" aria-labelledby={id}>\n {group.items}\n </ul>\n </li>\n );\n}\n\n/**\n * One row of `Items`. `lead` is a slot before the text (an icon, an avatar, a time, a `Value`), `title` the row's words,\n * `note` one quiet line under it and `action` a slot at the row's end (buttons, a menu, a `Value`). The lead is one\n * column the rows of an `Items` share, as wide as its widest, so a time or a mark lines up down the list whichever rows\n * carry one. `tone` puts a mark of that tone in the column (a dot, as a status is one), or, beside a `lead`, says the\n * lead in the tone's ink; the words that mean it are the row's own. With `href` or `onClick` the title is the row's one\n * link or button (a single target for the keyboard) and the whole row answers a pointer, as a table's rows do: the\n * target reaches across the row, so a finger anywhere on it is the target's own. A click inside `action` is the\n * action's and never opens the row; at a narrow width the action wraps under the note rather than squeeze it.\n */\nexport function Item({\n lead,\n title,\n note,\n action,\n tone,\n href,\n onClick,\n}: {\n lead?: ReactNode;\n title: ReactNode;\n note?: ReactNode;\n action?: ReactNode;\n tone?: ToneName;\n href?: string;\n onClick?: () => void;\n}) {\n const target = useRef<HTMLAnchorElement & HTMLButtonElement>(null);\n const interactive = href !== undefined || onClick !== undefined;\n const follow = useFollow(href, onClick);\n const words =\n href !== undefined ? (\n <a ref={target} className=\"kit-item-target\" href={href} onClick={follow}>\n {title}\n </a>\n ) : onClick ? (\n <button ref={target} type=\"button\" className=\"kit-item-target\" onClick={onClick}>\n {title}\n </button>\n ) : (\n title\n );\n const marked = given(lead) || tone !== undefined;\n return (\n <li\n className={`kit-item${interactive ? ' kit-item-clickable' : ''}`}\n /* The pointer's click is the target's own, run once: one that began in the target already is. */\n onClick={interactive ? (event) => void (target.current?.contains(event.target as Node) || target.current?.click()) : undefined}\n >\n {marked && (\n <span className={`kit-item-lead${tone ? ` kit-item-lead-${tone}` : ''}`}>\n {given(lead) ? lead : <span className=\"kit-item-mark\" aria-hidden=\"true\" />}\n </span>\n )}\n <span className=\"kit-item-main\">\n <span className=\"kit-item-body\">\n <span className=\"kit-item-title\">{words}</span>\n {given(note) && <span className=\"kit-item-note\">{note}</span>}\n </span>\n {given(action) && (\n <span className=\"kit-item-action\" onClick={(event) => event.stopPropagation()}>\n {action}\n </span>\n )}\n </span>\n </li>\n );\n}\n\n/**\n * An address in this App is followed in place, as `useNavigate` does: a plain `<a>` would load the whole page again.\n * A modified or middle click keeps the browser's own meaning (a new tab, a download), and so does another origin.\n */\nfunction useFollow(href: string | undefined, onClick?: () => void) {\n const host = useHostIfAny();\n return (event: MouseEvent<HTMLAnchorElement>) => {\n onClick?.();\n if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n if (!host || href === undefined || !href.startsWith('/') || href.startsWith('//')) return;\n event.preventDefault();\n host.follow(href);\n };\n}\n\ntype ButtonProps = ComponentProps<typeof UiButton>;\ntype LinkProps = Omit<ComponentProps<typeof ButtonLink>, 'onClick'> & { href: string; onClick?: () => void };\n\n/**\n * The platform's one button. With `href` it is an `<a>` in the button's dress, so the action that opens another page\n * has an address: a new tab, a copied link, and the page still follows an address of this App in place. Without it, a\n * `<button>`; `busy` is the button's alone.\n */\nexport function Button(props: ButtonProps | LinkProps) {\n if ('href' in props && props.href !== undefined) return <LinkedButton {...(props as LinkProps)} />;\n return <UiButton {...(props as ButtonProps)} />;\n}\n\nfunction LinkedButton({ href, onClick, ...rest }: LinkProps) {\n const follow = useFollow(href, onClick);\n return <ButtonLink {...rest} href={href} onClick={follow} />;\n}\n","/** What sdk/hooks says, in the custom components 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 reviewNotOffered: '{label} has no record revision to review; run it as it is.',\n visitorUnavailable: 'Visitor experiments are unavailable in this component host.',\n thePageReadsIsNotOne: 'The page \"{label}\" reads {map}; \"{resource}\" is not one of them. Add it to the page\\'s reads.',\n thePageRunsIsNotOne:\n 'The page \"{label}\" runs {map}; \"{command}\" is not one of them. Add it to the `commands` list of its definePage. Declaring grants nothing: useCommand(\\'{command}\\').granted then says whether this reader may run it.',\n thePageRunsActionIsNotOne: 'The page \"{label}\" runs {map}; \"{action}\" is not one of them. Add it to the page\\'s actions.',\n useaddressstateKeepsAPages: \"useAddressState keeps a page's place in its address; it is drawn on a free-form page (definePage).\",\n thePageKeepsInItsAddress: 'The page \"{label}\" keeps {params} in its address; add \"{name}\" to its params.',\n addressView: 'the view \"{view}\"',\n addressRecord: 'a record under \"{view}\"',\n addressPage: 'the page \"{path}\"',\n noAddressFor: 'The App has no address for {what}: name a view, record or page it declares.',\n noCommands: 'no commands',\n noActions: 'no actions',\n noParameters: 'no parameters',\n thePageLoadsIsNotOne: 'The page \"{label}\" loads {map}; \"{loader}\" is not one of them. Add it to the page\\'s loaders.',\n noLoaders: 'no loaders',\n useloaderOutsideAPage: \"useLoader runs a free-form page's loader; it is drawn on a page (definePage).\",\n});\n","/**\n * The hooks a custom component reads and moves with. The declared reads of a\n * `custom()` section are the first way to data — checked at load, planned,\n * narrowed by the dashboard's window — and these are the escape hatch for\n * what a component asks for itself: rows, one record or a breakdown of an App\n * resource, by the resource's own name, never a table or SQL.\n *\n * Every read is an ordinary request through the page's session, authorized\n * on the server like any other: role grants, field projection, row policy.\n * These names narrow what a component asks for; they are not the boundary.\n * Reads go through the page's one query cache, keyed by the reader, so a\n * sign-out or a switch of account never serves one reader's rows to another.\n */\nimport { useCallback, useContext, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from 'react';\nimport { keepPreviousData, useInfiniteQuery, useQuery, type UseQueryResult } from '@tanstack/react-query';\nimport {\n defaultCurrency,\n formatAbsolute,\n formatDate,\n formatDateTime,\n formatMoney,\n formatNumber,\n formatPercent,\n formatRelativeDay,\n formatTimezone,\n formatWholeMoney,\n} from '@mistriwork/kit/client/locale.js';\nimport { minorFigure } from '@mistriwork/engine/shared/money.js';\nimport {\n UiPageContext,\n UiSizeContext,\n type UiPageFrame,\n type UiAddress,\n useUiHost,\n type OpenMode,\n type UiOpenViewOptions,\n type UiBreakdownOptions,\n type UiChoice,\n type UiCommandHandle,\n type UiCommandOptions,\n type UiCommandOutcome,\n type UiCommandRef,\n type UiCommandReview,\n type UiFormOutcome,\n type UiFormState,\n type UiLook,\n type UiRow,\n type UiRowsOptions,\n type UiSize,\n type UiViewer,\n} from './context.js';\nimport { say } from '../../copy/components/components/sdk/hooks.js';\nimport { reviewFresh, subscribeReviews } from '../../commandReviews.js';\nimport { messageLanguage, subscribeMessages } from '@mistriwork/kit/client/messages.js';\nimport type { AppFlagReader, AppFlagValue } from '../../../shared/appFlagValues.js';\n\n/** Reads are render-local until React commits this exact render. Suspended or\n * abandoned renders share no consumption set with the committed tree. No ref or\n * memoized mutable set: concurrent work must not leak reads into another effect. */\nexport function useFlags<V = Readonly<Record<string, AppFlagValue>>>(): AppFlagReader<V> {\n const source = useUiHost().flags;\n const reader = useSyncExternalStore(source.subscribe, source.snapshot, source.snapshot);\n useEffect(() => {\n void source.load();\n }, [source, reader]);\n const used = new Set<string>();\n let committed = false;\n useEffect(() => {\n committed = true;\n if (used.size) source.commitUse?.(reader, [...used]);\n });\n return Object.freeze({\n get ready() {\n return reader.ready;\n },\n get(key: string) {\n const value = reader.get(key);\n if (!committed) used.add(key);\n return value;\n },\n }) as AppFlagReader<V>;\n}\n\n/** Call start from an authored interaction, never an effect or page load.\n * The server cookie is opaque; this does not sign in or grant App access. */\nexport function useVisitor(): { start(selection?: { readonly form?: string; readonly address?: string }): Promise<void> } {\n const source = useUiHost().flags;\n return useMemo(\n () => ({\n async start(selection?: { readonly form?: string; readonly address?: string }) {\n if (!source.establishVisitor) throw new Error(say('visitorUnavailable'));\n await source.establishVisitor(selection);\n },\n }),\n [source],\n );\n}\n\n/** Emit a custom event the App declared in `analytics.events`: `useAnalytics().emit('compare-opened', { vehicleId })`.\n * Fire-and-forget from an event handler. The server keeps only the declared name and fields, and takes who it\n * was from the session or visitor cookie, never from here. */\nexport function useAnalytics(): { emit(name: string, fields?: Readonly<Record<string, string | number | boolean>>): void } {\n const source = useUiHost().analytics;\n return useMemo(\n () => ({ emit: (name: string, fields?: Readonly<Record<string, string | number | boolean>>) => source.emit(name, fields) }),\n [source],\n );\n}\n\n/* A free-form page reads what it declared (definePage, `reads`): any other\n resource is a mistake said here, before the server refuses it as a denial\n for a reader who cannot read it — and it is the page's read, so the\n request says which page asks. Outside a page a component may name any\n resource. */\nexport function useDeclared(resource: string): string | undefined {\n const page = useContext(UiPageContext);\n if (page && !page.reads.includes(resource)) {\n throw new Error(say('thePageReadsIsNotOne', { label: page.label, map: page.reads.map((name) => `\"${name}\"`).join(', '), resource }));\n }\n return page?.view;\n}\n\n/**\n * A read's freshness beside its data. `isPending` is the first read, with nothing to draw yet; `isFetching` is any read\n * under way, a background refresh included. A refresh that fails keeps the last good data and says so (`isStale`,\n * `refreshError`), so a component never shows it as fresh nor swaps a finished screen for a note. Each read is\n * consistent on its own: two hooks are two reads, with no snapshot across them.\n */\ninterface UiReadState {\n isFetching: boolean;\n isStale: boolean;\n refreshError: Error | null;\n}\n\n/* TanStack's own `isStale` is \"older than its stale time\", which every read here always is (no stale time is set):\n the one a component can act on is whether the data it holds failed to refresh. */\nfunction withReadState<T>(result: UseQueryResult<T>): UseQueryResult<T> & UiReadState {\n return { ...result, isStale: result.isRefetchError, refreshError: result.isRefetchError ? result.error : null };\n}\n\n/** How far a `useRows` read has paged: the page size asked, whether the server holds more, and its count where it made one. */\ninterface UiRowsPaging {\n limit: number;\n hasMore: boolean;\n /** Only from a count the server made; never a page's length. */\n total?: number;\n}\n\n/* A refusal is the reader's grant, not a failure: the read answered 401 (signed out) or 403 (not this reader's). */\nconst refusedRead = (error: unknown) => [401, 403].includes((error as { status?: number } | null)?.status ?? 0);\n\n/** What an `optional: true` read adds: the reader was refused it (401 or 403), which is neither an error nor an empty result. */\nexport interface UiRefusable {\n refused: boolean;\n}\n\n/** What `useRows` holds: the rows read so far, the read's state, and `more()` for the next page. */\nexport interface UiRowsQuery extends UiReadState {\n data: UiRow[] | undefined;\n isPending: boolean;\n isError: boolean;\n error: Error | null;\n refetch(): unknown;\n page: UiRowsPaging;\n /** Reads the next `limit` rows onto the end; nothing while there are none or one is already under way. */\n more(): void;\n}\n\nconst ROWS_LIMIT = 20;\n\n/* A row remembers the resource it was read from, out of sight (not a key, never in a spread or a JSON), so a button on\n it names its row by that resource's title whether or not the page wraps the row in a List or a Scope. */\nconst ROW_RESOURCE = Symbol.for('mistri.row.resource');\nfunction rowOf<R extends object>(resource: string, row: R): R {\n if (!Object.hasOwn(row, ROW_RESOURCE)) Object.defineProperty(row, ROW_RESOURCE, { value: resource });\n return row;\n}\n/** The resource a row was read from (`useRows`), where it was read that way. */\nexport const resourceOfRow = (row: object): string | undefined => (row as { [ROW_RESOURCE]?: string })[ROW_RESOURCE];\n\n/**\n * Rows of one App resource: `useRows('pay_run', { query: 'status = review', show: ['title', 'net_total'], sort: 'pay_date desc', limit: 12 })`.\n * Each row carries its resource's key columns beside `show`. The first `limit` rows (20 unless said); `page.hasMore` says whether the server holds more, and `more()` reads them.\n */\nexport function useRows(resource: string, options: UiRowsOptions & { enabled?: boolean; optional: true }): UiRowsQuery & UiRefusable;\nexport function useRows(resource: string, options?: UiRowsOptions & { enabled?: boolean; optional?: false }): UiRowsQuery;\nexport function useRows(\n resource: string,\n options: UiRowsOptions & { enabled?: boolean; optional?: boolean } = {},\n): UiRowsQuery & UiRefusable {\n const host = useUiHost();\n const declared = useDeclared(resource);\n const { enabled = true, optional = false, offset: _offset, ...rest } = options;\n /* A row always carries its key columns beside `show`, as a `List`'s do: whether `row.id` is there never depends on\n what `show` happened to name. The read is the reader's own, so no column is widened past what `show` could name. */\n const asked = declared ? { ...rest, keys: true, page: declared } : { ...rest, keys: true };\n const limit = rest.limit ?? ROWS_LIMIT;\n const query = useInfiniteQuery({\n queryKey: ['mistri-ui', 'rows', ...host.scope, resource, asked],\n queryFn: ({ pageParam }) => host.rows(resource, pageParam ? { ...asked, offset: pageParam } : asked),\n initialPageParam: 0,\n /* The next page starts where the rows read so far end: a refresh re-reads every page from the first. */\n getNextPageParam: (last, pages) => (last.more ? pages.reduce((sum, one) => sum + one.rows.length, 0) : undefined),\n enabled,\n });\n const pages = query.data?.pages;\n const data = useMemo(() => pages?.flatMap((one) => one.rows).map((row) => rowOf(resource, row)), [pages, resource]);\n const total = pages?.[pages.length - 1]?.total;\n const { hasNextPage, isFetchingNextPage, fetchNextPage } = query;\n const more = useCallback(() => {\n if (hasNextPage && !isFetchingNextPage) void fetchNextPage();\n }, [hasNextPage, isFetchingNextPage, fetchNextPage]);\n const failedOver = query.isRefetchError || query.isFetchNextPageError;\n /* Under `optional` a refusal is a state to draw, never a failure: no error, no rows kept from before the grant went. */\n const refused = optional && query.isError && refusedRead(query.error);\n return {\n data: refused ? undefined : data,\n refused,\n isPending: query.isPending,\n isFetching: query.isFetching,\n isError: query.isError && !refused,\n error: refused ? null : query.error,\n isStale: query.isRefetchError && !refused,\n refreshError: failedOver && !refused ? query.error : null,\n refetch: query.refetch,\n page: { limit, hasMore: hasNextPage, ...(total === undefined ? {} : { total }) },\n more,\n };\n}\n\n/* A read that may be refused, as `optional: true` says it: a 401 or 403 is `refused`, never an error, and keeps no data. */\nfunction optionally<T>(result: UseQueryResult<T> & UiReadState, optional: boolean): UseQueryResult<T> & UiReadState & UiRefusable {\n const refused = optional && result.isError && refusedRead(result.error);\n if (!refused) return { ...result, refused: false };\n return {\n ...result,\n refused,\n data: undefined,\n isError: false,\n isRefetchError: false,\n error: null,\n isStale: false,\n refreshError: null,\n } as unknown as UseQueryResult<T> & UiReadState & UiRefusable;\n}\n\n/**\n * One record of an App resource by its key: `useRecord('employee', { id: 4 }, ['name', 'title'])`. With\n * `{ optional: true }` a refusal (401, 403) is `refused: true`, not an error: `useRecord('employee', key, undefined, { optional: true })`.\n */\nexport function useRecord(\n resource: string,\n key: Readonly<Record<string, unknown>> | undefined,\n show: readonly string[] | undefined,\n options: { optional: true },\n): UseQueryResult<UiRow | null> & UiReadState & UiRefusable;\nexport function useRecord(\n resource: string,\n key: Readonly<Record<string, unknown>> | undefined,\n show?: readonly string[],\n options?: { optional?: false },\n): UseQueryResult<UiRow | null> & UiReadState;\nexport function useRecord(\n resource: string,\n key: Readonly<Record<string, unknown>> | undefined,\n show?: readonly string[],\n options: { optional?: boolean } = {},\n): UseQueryResult<UiRow | null> & UiReadState & UiRefusable {\n const host = useUiHost();\n const page = useDeclared(resource);\n return optionally(\n withReadState(\n useQuery({\n queryKey: ['mistri-ui', 'record', ...host.scope, resource, key, show, page],\n queryFn: async () => (await host.record(resource, key!, show, page ? { page } : {})) ?? null,\n enabled: key !== undefined,\n }),\n ),\n options.optional === true,\n );\n}\n\n/**\n * A resource's rows grouped and measured: `useBreakdown('pay_stub', { by: 'status', measure: 'sum net' })`.\n * Each row is keyed as the server names its columns: the groups by their paths (`status`, `day(moved_at)`),\n * the measure as written (`count`, `sum(net)`, `max(on_hand_after)`).\n */\nexport function useBreakdown(\n resource: string,\n options: UiBreakdownOptions & { optional: true },\n): UseQueryResult<UiRow[]> & UiReadState & UiRefusable;\nexport function useBreakdown(resource: string, options: UiBreakdownOptions & { optional?: false }): UseQueryResult<UiRow[]> & UiReadState;\nexport function useBreakdown(\n resource: string,\n options: UiBreakdownOptions & { optional?: boolean },\n): UseQueryResult<UiRow[]> & UiReadState & UiRefusable {\n const host = useUiHost();\n const page = useDeclared(resource);\n const { optional = false, ...rest } = options;\n const asked = page ? { ...rest, page } : rest;\n return optionally(\n withReadState(\n useQuery({\n queryKey: ['mistri-ui', 'breakdown', ...host.scope, resource, asked],\n queryFn: () => host.breakdown(resource, asked),\n }),\n ),\n optional,\n );\n}\n\n/** The address parameters a page holds, as its loaders are asked them: only the ones it has a value for. */\nexport const pageLoadPlace = (frame: UiPageFrame): Record<string, string> =>\n Object.fromEntries(frame.params.flatMap((name) => (frame.get(name) === undefined ? [] : [[name, frame.get(name)!]])));\n\n/* One entry per reader, page, loader and place: the page's `data` and `useLoader` of the same loader share it, and a\n command that commits reads all of them again with `['mistri-page', 'load']` (commands.tsx). */\nexport const pageLoadKey = (scope: readonly unknown[], view: string, loader: string, place: Readonly<Record<string, string>>) =>\n ['mistri-page', 'load', ...scope, view, loader, place] as const;\n\n/**\n * One of a page's loaders, by its name: `page.useLoader('dueFigure')`. Each loader has its own cache entry and its own\n * state, so a slow one does not hold another back, and it is asked again as the page's place in the address changes\n * and after a command the page runs commits, as the page's `data` and its rows are. `data` is undefined while it loads.\n */\nexport function useLoader(name: string): UseQueryResult<unknown> & UiReadState {\n const host = useUiHost();\n const frame = useContext(UiPageContext);\n if (!frame) throw new Error(say('useloaderOutsideAPage'));\n const named = frame.loaders ?? [];\n if (!named.includes(name)) {\n throw new Error(\n say('thePageLoadsIsNotOne', {\n label: frame.label,\n map: named.length ? named.map((each) => `\"${each}\"`).join(', ') : say('noLoaders'),\n loader: name,\n }),\n );\n }\n const place = pageLoadPlace(frame);\n return withReadState(\n useQuery({\n queryKey: pageLoadKey(host.scope, frame.view, name, place),\n queryFn: async () => (await host.load(frame.view, place, name)) ?? null,\n placeholderData: keepPreviousData,\n }),\n );\n}\n\n/** What `page.useForm` holds: the declared form's draft as it stands, how its last opening ended, and the form itself. */\ninterface UiForm extends UiReadState {\n label: string;\n /** Whether this reader is served the form; one that is not (or a public form) opens as `openForm` does. */\n granted: boolean;\n steps: UiFormState['steps'];\n /** The open draft, as the form's own layout resumes it; null without one. */\n resume: UiFormState['draft'];\n /** Where the form opens: the step its draft reopens, or the first not saved; null at the review, or without a draft. */\n step: string | null;\n saved: readonly string[];\n /** The draft holds saved steps not yet submitted: leaving loses nothing, but they are not sent. */\n dirty: boolean;\n expiresAt: string | null;\n /** A submit sent and not yet known to have landed: `startOver()` refuses until it is. */\n pending: boolean;\n /** How the form ended the last time this page opened it; null before. */\n outcome: UiFormOutcome | null;\n isPending: boolean;\n error: Error | null;\n /** The form over the page, filled with what was given (`at` a step its draft has reached); resolves as it closes, and\n the draft is read again. */\n open(input?: Readonly<Record<string, unknown>>, options?: { at?: string }): Promise<UiFormOutcome>;\n /** The form opened at a step its draft has reached (never past the first not saved). */\n goTo(step: string): Promise<UiFormOutcome>;\n /** The draft discarded, as the form's Start over does: false while a submit is pending, or without a draft. */\n startOver(): Promise<boolean>;\n}\n\n/**\n * One of the form views a page declares (`forms: ['apply']`): `const apply = page.useForm('apply')`. Its draft is the\n * one the form's own layout resumes, read through the same server and keys, so the page's \"Continue your application\"\n * and the form never disagree. Every submit is still the server's to grant.\n */\nexport function useForm(view: string): UiForm {\n const host = useUiHost();\n const handle = useMemo(() => host.form(view), [host, view]);\n const [outcome, setOutcome] = useState<UiFormOutcome | null>(null);\n const read = withReadState(useQuery({ queryKey: ['mistri-ui', 'form', ...host.scope, view], queryFn: () => handle.state() }));\n const { refetch } = read;\n const opened = useCallback(\n async (input?: Readonly<Record<string, unknown>>, at?: string) => {\n const ended = await handle.open(input, at === undefined ? {} : { at });\n setOutcome(ended);\n void refetch();\n return ended;\n },\n [handle, refetch],\n );\n const state = read.data;\n return {\n label: state?.label ?? view,\n granted: state?.granted ?? false,\n steps: state?.steps ?? [],\n resume: state?.draft ?? null,\n step: state?.draft?.step ?? null,\n saved: state?.draft?.saved ?? [],\n dirty: (state?.draft?.saved.length ?? 0) > 0,\n expiresAt: state?.draft?.expiresAt ?? null,\n pending: state?.pending ?? false,\n outcome,\n isPending: read.isPending,\n error: read.error,\n isFetching: read.isFetching,\n isStale: read.isStale,\n refreshError: read.refreshError,\n open: (input, options) => opened(input, options?.at),\n goTo: (step) => opened(undefined, step),\n startOver: async () => {\n const gone = await handle.startOver();\n void refetch();\n return gone;\n },\n };\n}\n\n/** Where a component may send the reader: a record (as a page, a peek or a dialog), one of the App's views, or one of its forms in a dialog. */\nexport function useNavigate(): {\n openRecord(resource: string, key: Readonly<Record<string, unknown>>, options?: { mode?: OpenMode; label?: string }): void;\n openView(view: string, options?: UiOpenViewOptions): void;\n openForm(view: string, prefill?: Readonly<Record<string, string | number>>): void;\n openPage(name: string, params?: Readonly<Record<string, string>>): void;\n pageHref(name: string, params?: Readonly<Record<string, string>>): string;\n publicLink(view: string): string | undefined;\n} {\n const host = useUiHost();\n /* One answer for both: the page's canonical address through the App's own rules, or a mistake said in words. */\n const pageHref = (name: string, params?: Readonly<Record<string, string>>): string => {\n const address = host.href({ kind: 'page', path: name, ...(params ? { params } : {}) });\n if (address === undefined) throw new Error(say('noAddressFor', { what: say('addressPage', { path: name }) }));\n return address;\n };\n return {\n openPage: (name, params) => host.follow(pageHref(name, params)),\n pageHref,\n openRecord: (resource, key, options) => host.openRecord(resource, key, options),\n openView: (view, options) => host.openView(view, options),\n openForm: (view, prefill) => host.openForm(view, prefill),\n publicLink: (view) => host.publicLink(view),\n };\n}\n\n/** An address on this origin written as a path (`/leads/4?tab=open`): never an absolute or protocol-relative one, which a\n sign-in's `then` must not be a way to follow (headlessLanding.js reads it, and sends a signed-in person there). */\n// A browser drops tabs and newlines from an address, so `/\\t/evil` would be read as `//evil`: refuse control characters too.\nconst inAppPath = (path: string): boolean =>\n path.startsWith('/') && !path.startsWith('//') && ![...path].some((c) => c === '\\\\' || c <= '\\u001f' || c === '\\u007f');\n\n/**\n * The App's own addresses, as strings for an `<a href>` (and for an embedding app's navigator): `useHref().record('leads', { id: 4 })`.\n * Each is the one canonical address the router reads back (appAddress.ts). A view, page or record the App has no\n * address for is a mistake said here, not a link that goes nowhere.\n */\nexport function useHref(): {\n signIn(options?: { then?: string }): string;\n view(view: string, params?: Readonly<Record<string, string>>): string;\n record(view: string, key: Readonly<Record<string, unknown>>, options?: { tab?: string }): string;\n page(path: string, params?: Readonly<Record<string, string>>): string;\n} {\n const host = useUiHost();\n return useMemo(() => {\n const said = (to: UiAddress, what: string) => {\n const address = host.href(to);\n if (address === undefined) throw new Error(say('noAddressFor', { what }));\n return address;\n };\n return {\n signIn: (options) => {\n const address = said({ kind: 'signIn' }, 'the sign-in');\n const then = options?.then;\n return then !== undefined && inAppPath(then) ? `${address}?then=${encodeURIComponent(then)}` : address;\n },\n view: (view, params) => said({ kind: 'view', view, ...(params ? { params } : {}) }, say('addressView', { view })),\n record: (view, key, options) =>\n said({ kind: 'record', view, key, ...(options?.tab ? { tab: options.tab } : {}) }, say('addressRecord', { view })),\n page: (path, params) => said({ kind: 'page', path, ...(params ? { params } : {}) }, say('addressPage', { path })),\n };\n }, [host]);\n}\n\n/** The page's timeline composer, from a custom section beside it: `fill` puts a template's words in the box (and\n chooses Reply or Internal note, where the page offers it) for the reader to edit and send — it never sends. It\n answers false when the page draws no composer. */\nexport function useComposer(): { fill(text: string, options?: { mode?: 'reply' | 'note' }): boolean } {\n const host = useUiHost();\n return { fill: (text, options = {}) => host.fillComposer(text, options.mode) };\n}\n\n/**\n * Where a file resource's row is served, for an `<img>`: `useFile('member_avatar')({ id: 4 }, { thumbnail: true })`.\n * In a tenant App the file is read on the reader's lease first, so the address is undefined until it lands, and the\n * component draws again then.\n */\nexport function useFile(\n resource: string,\n): (key: Readonly<Record<string, unknown>>, options?: { thumbnail?: boolean }) => string | undefined {\n const host = useUiHost();\n useDeclared(resource);\n /* A new function once a file lands, so a component that keeps what it drew by this one draws again too. */\n const [landed, drawn] = useReducer((count: number) => count + 1, 0);\n return useCallback((key, options) => host.fileAddress(resource, key, options, drawn), [host, resource, landed]);\n}\n\n/** Who is reading: signed in or not, the signed-in account's id and the roles they hold here. Redraws when that changes. */\nexport function useViewer(): UiViewer {\n const host = useUiHost();\n const said = useSyncExternalStore(\n host.subscribeViewer,\n () => JSON.stringify(host.viewer()),\n () => '',\n );\n /* Parsed once for each reading, so `roles` (and the viewer) is the same array until who is reading, or what they hold,\n changes: an effect that depends on it runs when the reading changes, not on every draw. */\n return useMemo(() => (said ? (JSON.parse(said) as UiViewer) : host.viewer()), [said, host]);\n}\n\nconst keyText = (key: Readonly<Record<string, unknown>>) =>\n JSON.stringify(\n Object.keys(key)\n .sort()\n .map((column) => [column, String(key[column])]),\n );\n\n/** Why a command cannot be run on a record, before any click (`useCommand(...).reason(record)`). */\nexport type CommandUnavailable = 'signed-out' | 'not-granted' | 'unavailable';\n\n/** A command as a component holds it (`useCommand`). */\ninterface UiCommand {\n label: string;\n granted: boolean;\n /** The resource whose records it runs on, where it has one (not public: `CommandButton` names its row from it). */\n resource?: string;\n /** Whether it is available on this record now; undefined until the server has said. */\n available(record: Readonly<Record<string, unknown>>): boolean | undefined;\n /**\n * Why it cannot be run on this record, said before any click: `'signed-out'`, `'not-granted'` (the\n * reader's role is not granted it), or `'unavailable'` (the server said its `when` does not hold for\n * this record and reader now); undefined while it can be, and until the server has said. Nothing the\n * page did not already know: a precondition only the command's handler checks is the App's to say.\n */\n reason(record: Readonly<Record<string, unknown>>): CommandUnavailable | undefined;\n /** Whether a run on this record is on its way. */\n pending(record: Readonly<Record<string, unknown>>): boolean;\n run(\n record: Readonly<Record<string, unknown>>,\n input?: Readonly<Record<string, unknown>>,\n options?: UiCommandOptions,\n ): Promise<UiCommandOutcome>;\n open(\n record: Readonly<Record<string, unknown>>,\n input?: Readonly<Record<string, unknown>>,\n options?: UiCommandOptions,\n ): Promise<UiCommandOutcome>;\n /** What a review shows before the person confirms, and the token `run(record, input, { review })` pins it with. */\n prepare(\n record?: Readonly<Record<string, unknown>>,\n input?: Readonly<Record<string, unknown>>,\n ): Promise<UiCommandReview | Extract<UiCommandOutcome, { status: 'refused' }>>;\n /** Whether the last review `prepare` gave still stands; true before any. */\n reviewFresh: boolean;\n /**\n * The choices one of its inputs offers, as they were served with the command: a choice's declared options, or a\n * table's rows (`field.choice({ from })`) where they come with it — on a public page, read as the public reads them\n * and kept until a row changes, so the page draws its own select with no read of its own. Undefined for an input\n * that offers none, or whose rows its own form reads.\n */\n choices(field: string): readonly UiChoice[] | undefined;\n}\n\n/**\n * One of the App's commands, as its actions offer it, by name: `useCommand('reactToPost')`.\n * A command no action offers and a signed-in form does names no record: it\n * is sent as its form sends it, and the record handed in is not read.\n *\n * `run(record, input)` sends it when the input is complete and valid, and\n * opens the platform's own form, filled with what was given, when it is not;\n * `open` always opens the form. Either way it is the one command pipeline —\n * prepared for the record's revision, sent once under a request key,\n * refused in the server's words, the page's reads refreshed after it — and\n * nothing a component sends is a write of its own. `available(record)` asks\n * the server whether the command's `when` holds for this record and this\n * reader, once per record, and answers undefined until it has; `reason(record)`\n * says why not in a word. A signed-out reader is granted no command. An applied\n * run resolves with what the command returned (`output`), so a component acts on\n * what it made without looking it up.\n */\nexport function useCommand(ref: UiCommandRef): UiCommand {\n const viewer = useViewer();\n return useHandle(useCommandHandle(ref, viewer), viewer);\n}\n\n/** The host's handle on a command, as this reader is served it: what `useCommand` holds, and `useField` reads its input from. */\nexport function useCommandHandle(ref: UiCommandRef, viewer: UiViewer): UiCommandHandle {\n const host = useUiHost();\n /* A free-form page runs what it declared (definePage, `commands`), as it reads what it declared. */\n const page = useContext(UiPageContext);\n if (page && !page.commands.includes(ref)) {\n throw new Error(\n say('thePageRunsIsNotOne', {\n label: page.label,\n map: page.commands.length ? page.commands.map((name) => `\"${name}\"`).join(', ') : say('noCommands'),\n command: ref,\n }),\n );\n }\n return useMemo(() => host.command(ref, page?.view), [host, ref, page?.view, viewer.signedIn, viewer.account]); // eslint-disable-line react-hooks/exhaustive-deps\n}\n\n/**\n * Whether this reader may run one of the App's commands, without running it: `useGranted('raiseInvoice')`. It reads\n * what `useCommand(…).granted` reads (signed in, granted the command, and served the action or form that offers it),\n * but a free-form page need not declare the command in `commands` to ask, since asking writes nothing: a page that\n * shows an entry only to a role that may use it lists the commands it runs, not the ones it only asks about.\n */\nexport function useGranted(ref: UiCommandRef): boolean {\n const host = useUiHost();\n const viewer = useViewer();\n const page = useContext(UiPageContext);\n return useMemo(() => host.command(ref, page?.view).granted, [host, ref, page?.view, viewer.signedIn, viewer.account]); // eslint-disable-line react-hooks/exhaustive-deps\n}\n\n/**\n * One of the App's fixed actions, a machine's verb or `action(label, { set })`, by its id: `useAction('startVisit')`. It\n * is held as a command is (`granted`, `available`, `reason`, `pending`, `run`, `open`, and the same outcome), but it is\n * the record page's own button: `run(record)` writes the action's `set` to that record by its key through the update\n * route, asking first when the action says `confirm`, and the server judges it again, as it judges the record page's —\n * a record in a state the action leaves, or one this reader may not move, is refused in its words, never skipped. It\n * takes no input, but for the reason an action asks (`run(record, { reason })`). On a free-form page it is one of the\n * page's `actions`, which name fixed actions of the resources it reads.\n */\nexport function useAction(ref: UiCommandRef): UiCommand {\n const host = useUiHost();\n const page = useContext(UiPageContext);\n if (page && !(page.actions ?? []).includes(ref)) {\n throw new Error(\n say('thePageRunsActionIsNotOne', {\n label: page.label,\n map: page.actions?.length ? page.actions.map((name) => `\"${name}\"`).join(', ') : say('noActions'),\n action: ref,\n }),\n );\n }\n const viewer = useViewer();\n const handle = useMemo(() => host.action(ref, page?.reads), [host, ref, page?.reads, viewer.signedIn, viewer.account]); // eslint-disable-line react-hooks/exhaustive-deps\n return useHandle(handle, viewer);\n}\n\n/** What `useCommand` and `useAction` share: a handle held as a component holds it, its availability asked of the server once per record. */\nfunction useHandle(handle: UiCommandHandle, viewer: UiViewer): UiCommand {\n const [answers, setAnswers] = useState<ReadonlyMap<string, boolean>>(new Map());\n const [running, setRunning] = useState<ReadonlySet<string>>(new Set());\n const asked = useRef(new Map<string, Readonly<Record<string, unknown>>>());\n const wanted = useRef(new Map<string, Readonly<Record<string, unknown>>>());\n const [round, setRound] = useState(0);\n /* The handle whose answers are wanted: one for another reader or command asks everything again. */\n const current = useRef(handle);\n useEffect(() => {\n if (current.current === handle) return;\n current.current = handle;\n asked.current.clear();\n setAnswers(new Map());\n }, [handle]);\n useEffect(\n () => () => {\n current.current = undefined as unknown as typeof handle;\n },\n [],\n );\n /* The records a draw asked about, asked of the server after it (one batch, commandAvailability.ts). */\n useEffect(() => {\n const ask = [...wanted.current].filter(([text]) => !asked.current.has(text));\n wanted.current.clear();\n if (!ask.length) return;\n for (const [text, key] of ask) asked.current.set(text, key);\n const by = handle;\n void Promise.all(ask.map(async ([text, key]) => [text, by.granted ? await by.available(key).catch(() => false) : false] as const)).then(\n (results) => {\n if (current.current === by) setAnswers((before) => new Map([...before, ...results]));\n },\n );\n });\n /* Asked again after a run, keeping the last answers until the new ones arrive: a chip does not blink. */\n const again = () => {\n asked.current.clear();\n setRound((n) => n + 1);\n };\n const track = (text: string, work: Promise<UiCommandOutcome>) => {\n setRunning((before) => new Set(before).add(text));\n return work.finally(() => {\n setRunning((before) => {\n const next = new Set(before);\n next.delete(text);\n return next;\n });\n /* What a command changed may change what is available: asked again after it settles. */\n again();\n });\n };\n void round;\n /* The last review this component prepared, read from the tab's reviews so a live change to its record draws again. */\n const [review, setReview] = useState<string | undefined>(undefined);\n const fresh = useSyncExternalStore(\n subscribeReviews,\n () => review === undefined || reviewFresh(review),\n () => true,\n );\n const available = (record: Readonly<Record<string, unknown>>) => {\n const text = keyText(record);\n if (!asked.current.has(text)) wanted.current.set(text, record);\n return answers.get(text);\n };\n return {\n label: handle.label,\n granted: handle.granted,\n resource: handle.resource,\n available,\n reason(record) {\n // A public page's public command is everyone's: granted, signed in or not (publicPageCommand.ts).\n if (!viewer.signedIn && !handle.granted) return 'signed-out';\n if (!handle.granted) return 'not-granted';\n return available(record) === false ? 'unavailable' : undefined;\n },\n pending: (record) => running.has(keyText(record)),\n run: (record, input, options) => track(keyText(record), handle.run(record, input, options)),\n open: (record, input, options) => track(keyText(record), handle.open(record, input, options)),\n prepare: async (record = {}, input) => {\n if (!handle.prepare) return { status: 'refused', message: say('reviewNotOffered', { label: handle.label }) };\n const prepared = await handle.prepare(record, input);\n if (!('status' in prepared) && current.current === handle) setReview(prepared.token);\n return prepared;\n },\n reviewFresh: fresh,\n choices: (field) => handle.choices?.(field),\n };\n}\n\n/**\n * A free-form page's place, kept in its address: `const [list, setList] = useAddressState('list')` reads and writes\n * `/{app}/pick-walk?list=12`, so a page reached by a link, a reload or Back opens where the reader was.\n * The name is one of the page's declared `params` (a page's `useParam` is this hook). A change refines the place the\n * reader is on, in the address as they go; `{ push: true }` makes it a step Back returns from.\n */\nexport function useAddressState(\n name: string,\n): [string | undefined, (value: string | number | undefined, options?: { push?: boolean }) => void] {\n const page = useContext(UiPageContext);\n if (!page) throw new Error(say('useaddressstateKeepsAPages'));\n if (!page.params.includes(name)) {\n throw new Error(\n say('thePageKeepsInItsAddress', {\n label: page.label,\n params: page.params.length ? page.params.map((param) => `\"${param}\"`).join(', ') : say('noParameters'),\n name,\n }),\n );\n }\n const set = useCallback(\n (value: string | number | undefined, options?: { push?: boolean }) =>\n page.set(name, value === undefined || value === '' ? undefined : String(value), options),\n [page, name],\n );\n return [page.get(name), set];\n}\n\n/**\n * One of the App's messages (`messages/<locale>.ts`) in the reader's\n * language, its `{name}`s filled from `args`: `useMessage('help.title')`,\n * `useMessage('help.results', { count: 3 })`. Redraws when the reader picks\n * another language. A key the catalog lacks is said as itself.\n */\nexport function useMessage(key: string, args?: Readonly<Record<string, string | number | boolean | Date | null | undefined>>): string {\n const host = useUiHost();\n useSyncExternalStore(subscribeMessages, messageLanguage, messageLanguage);\n return host.message(key, args);\n}\n\n/** How `useFormat().money` says a figure: as a column's display rule says one (`format: 'money'`). */\ninterface UiMoneyFormat {\n /** An ISO 4217 code; the App's `ui.currency` when not given. */\n currency?: string;\n /** The value is kept in minor units: 1999 is said as 19.99, exactly. */\n minor?: boolean;\n /** Without the minor digits where they are all zero: \"$24,495\", and \"$24,495.50\" still. */\n whole?: boolean;\n /** Compact from a thousand (\"$27.9K\"), for a figure meant to be glanced at; put the exact one in its title. */\n compact?: boolean;\n}\n\n/* Where a compact figure starts, as a metric card's (dashboardModel.ts CARD_COMPACT). */\nconst COMPACT_FROM = 1000;\n\n/**\n * Money said as the display rules say it: exact to the currency's minor digits, a decimal string past 2^53 digit for\n * digit (never through Number()), minor units read exactly. A currency code alone is `{ currency }`.\n */\nfunction sayMoney(value: number | string, options: string | UiMoneyFormat = {}): string {\n const { currency, minor, whole, compact } = typeof options === 'string' ? { currency: options } : options;\n const code = currency || defaultCurrency();\n const major = minor ? minorFigure(value, code) : value;\n if (major === undefined) return String(value);\n if (compact && Math.abs(Number(major)) >= COMPACT_FROM)\n return formatMoney(Number(major), code, { notation: 'compact', maximumFractionDigits: 1 });\n return whole ? formatWholeMoney(major, code) : formatMoney(major, code);\n}\n\n/** Figures in the App's locale, currency and timezone (`ui.locale`, `ui.currency`, `ui.timezone`), as every built-in section says them. */\nexport function useFormat() {\n return {\n /** The App's day (`ui.timezone`, in a tenant App the reader's tenant's own): the zone a page reckons \"today\" in, as the built-in calendar does. Undefined where the App names none, so `Intl` uses the reader's own. */\n timezone: formatTimezone(),\n number: (value: number | string, options?: Intl.NumberFormatOptions) => formatNumber(value, options),\n money: (value: number | string, options?: string | UiMoneyFormat) => sayMoney(value, options),\n percent: (value: number) => formatPercent(value),\n date: (value: string) => formatDate(value),\n /**\n * A moment as the App's clock says it; with `timezone`, the instant said in that zone with its name (\"2:30 PM\n * PDT\"). `style: 'short'` says it in the fewest characters (\"3/5/26, 2:30 PM\"), for a cell or a card's line.\n */\n dateTime: (value: string, options?: { timezone?: string; style?: 'short' }) => {\n const short = options?.style === 'short';\n return options?.timezone\n ? formatAbsolute(value, { time: true, zone: options.timezone, short })\n : formatDateTime(value, short ? 'short' : undefined);\n },\n /** \"in 3 days\", \"yesterday\"; undefined for a value that is not a date. */\n relative: (value: string) => formatRelativeDay(value) ?? undefined,\n };\n}\n\n/** The look the App wears for this reader, light or dark, and the density. */\nexport function useLook(): UiLook {\n const host = useUiHost();\n const said = useSyncExternalStore(\n host.subscribeLook,\n () => JSON.stringify(host.look()),\n () => '',\n );\n return said ? (JSON.parse(said) as UiLook) : host.look();\n}\n\n/** One design token's value as the look resolves it — `useToken('--accent')` — for a canvas or an SVG attribute. CSS can say `var(--accent)` itself. */\nexport function useToken(name: `--${string}`): string {\n const host = useUiHost();\n return useSyncExternalStore(\n host.subscribeLook,\n () => host.token(name),\n () => '',\n );\n}\n\n/** The section's measured width, and whether it is phone-narrow: a component lays itself out for the room it has. */\nexport function useSectionSize(): UiSize {\n return useContext(UiSizeContext);\n}\n","/**\n * `useDeployment()`: what this server presents the App as — its name, mark, theme, locale and base path — for a\n * free-form page that says the program's name or draws its mark. Read-only and presentation only: a deployment\n * override (the config's `\"presentation\"`) is already in it, and nothing of the server's own settings is.\n */\nimport { useMemo } from 'react';\nimport { useUiHost, type UiDeployment } from './context.js';\n\nexport type { UiDeployment };\n\nexport function useDeployment(): UiDeployment {\n const host = useUiHost();\n return useMemo(() => Object.freeze({ ...host.deployment() }), [host]);\n}\n","/** What sdk/fields says, in the custom components 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 enterAnAmount: 'Enter an amount.',\n atMostDecimals: 'Enter an amount with at most {digits} decimal places.',\n enterAWholeAmount: 'Enter a whole amount.',\n zeroOrMore: 'Enter an amount of zero or more.',\n notAnInput: '{command} has no input \"{name}\" to bind: useField names one of the inputs the command declares.',\n});\n","/**\n * One input of a command, bound for a component that draws its own control (`useField`), and the amount parse the\n * platform's money box reads with (`parseMoney`). Both read the declaration the platform's own form judges by, so a\n * custom control and the native one agree on what a value is before the server judges it again.\n */\nimport { useMemo, useState, useId } from 'react';\nimport { currencyDigits } from '@mistriwork/engine/shared/money.js';\nimport { majorToMinorText } from '@mistriwork/engine/shared/moneyEntry.js';\nimport { defaultCurrency, formatLocale } from '@mistriwork/kit/client/locale.js';\nimport { blankCommandValues, commandInput, commandProblems, type CommandValues } from '../CommandFields.js';\nimport { useCommandHandle, useViewer } from './hooks.js';\nimport type { UiCommandRef } from './context.js';\nimport type { AppCommandField } from '../../../shared/command.js';\nimport { say } from '../../copy/components/components/sdk/fields.js';\n\n/** An amount as typed, read: whole minor units as text (exact past 2^53) and the major amount with a point, or why not. */\nexport type MoneyParse = { minor: string; major: string } | { problem: string };\n\n/* The locale's own marks: its group and decimal separators, the currency's sign as it writes it. */\nfunction marks(locale: string | undefined, currency: string): { group?: string; decimal: string; sign?: string } {\n const parts = new Intl.NumberFormat(locale).formatToParts(12345.6);\n const sign = new Intl.NumberFormat(locale, { style: 'currency', currency }).formatToParts(1).find((part) => part.type === 'currency');\n return {\n group: parts.find((part) => part.type === 'group')?.value,\n decimal: parts.find((part) => part.type === 'decimal')?.value ?? '.',\n sign: sign?.value,\n };\n}\n\n/**\n * Text a person typed as an amount of `currency`, read as the platform's money box reads it: grouping and the\n * currency's sign dropped, the locale's decimal mark taken as the point, at most the currency's own decimal places\n * (19.999 dollars is a typo, never rounded), and a negative only where `negative` allows one, as a field allows one\n * only when its `min` is below zero. Text to text, never through a float, so an amount past 2^53 is exact.\n */\nexport function parseMoney(text: string, options: { currency: string; locale?: string; negative?: boolean }): MoneyParse {\n const { currency } = options;\n const { group, decimal, sign } = marks(options.locale ?? formatLocale(), currency);\n let typed = text.replace(/−/g, '-');\n for (const mark of [sign, currency]) if (mark) typed = typed.split(mark).join('');\n typed = typed.replace(/[\\s ]/g, '');\n if (group && group.trim()) typed = typed.split(group).join('');\n if (decimal !== '.') typed = typed.split(decimal).join('.');\n const shape = /^[-+]?(\\d*)(?:\\.(\\d*))?$/.exec(typed);\n if (!shape || !(shape[1] || shape[2])) return { problem: say('enterAnAmount') };\n const digits = currencyDigits(currency);\n const minor = majorToMinorText(typed, currency);\n if (minor === undefined) return { problem: digits ? say('atMostDecimals', { digits }) : say('enterAWholeAmount') };\n if (minor.startsWith('-') && !options.negative) return { problem: say('zeroOrMore') };\n const below = minor.startsWith('-') ? '-' : '';\n const whole = minor.replace('-', '').padStart(digits + 1, '0');\n return { minor, major: digits ? `${below}${whole.slice(0, -digits)}.${whole.slice(-digits)}` : `${below}${whole}` };\n}\n\n/** What a control is handed, the `InputProps` an App's input component receives in a form (`ui.inputs`). */\ninterface UiFieldInputProps {\n value: string | number | boolean | null;\n onChange(value: string | number | boolean | null): void;\n id: string;\n describedBy?: string;\n invalid: boolean;\n disabled: boolean;\n required: boolean;\n label: string;\n field: { name: string; resource?: string };\n context: 'command';\n}\n\n/** One input of a command, bound (`useField`). */\nexport interface UiField {\n inputProps: UiFieldInputProps;\n /** What the control last handed back, as text. */\n text: string;\n /** The value as the platform's own form sends it (an amount as its major-unit text); null while there is none, or it is not one. */\n value: unknown;\n /** Whether the control has handed anything back. */\n touched: boolean;\n /** Whether the value is other than the one the field starts with. */\n dirty: boolean;\n /** What is wrong with it, in the person's words: said once `validate()` has run, and kept current from then on. */\n error: string | undefined;\n /** Judges it now and says what is wrong from here on; true when nothing is. */\n validate(): boolean;\n}\n\nconst blank = (value: unknown) => value === undefined || value === null || value === '';\nconst same = (one: unknown, other: unknown) => (blank(one) && blank(other)) || Object.is(one, other);\n\n/* A field for a command this reader is not served: drawn, disabled, and never judged. */\nconst unserved = (name: string): AppCommandField => ({ name, label: name, type: 'text' }) as AppCommandField;\n\n/**\n * One input of a command, by name, for a control a component draws itself: `inputProps` is the contract an App's\n * input component receives in the platform's own form, and the value is judged by the same declaration — its kind,\n * `required`, bounds and format — so a custom control and the form agree. A money input reads what is typed with\n * `parseMoney` in the App's locale and the field's currency. Nothing is sent: the component hands `value` to\n * `useCommand(...).run`, where the server judges it again, and names a refusal's field from the outcome's `fields`.\n */\nexport function useField(command: UiCommandRef, name: string): UiField {\n const viewer = useViewer();\n const handle = useCommandHandle(command, viewer);\n const declared = handle.input?.(name);\n if (!declared && handle.granted) throw new Error(say('notAnInput', { command, name }));\n const field = declared ?? unserved(name);\n /* Only a reader who may run it is told what is wrong: for anyone else the control is a disabled picture of the field. */\n const served = handle.granted && declared;\n const start = useMemo(() => blankCommandValues([field])[name] ?? null, [field, name]);\n const [given, setGiven] = useState<string | number | boolean | null>(start as string | number | boolean | null);\n const [touched, setTouched] = useState(false);\n const [shown, setShown] = useState(false);\n const id = useId();\n /* What the form would hold: a typed amount read in the locale, so the declaration judges the figure, not the marks. */\n const money =\n field.type === 'money' && typeof given === 'string' && given.trim()\n ? parseMoney(given, { currency: field.currency ?? defaultCurrency(), negative: (field.min ?? 0) < 0 })\n : undefined;\n const held = money && 'major' in money ? money.major : given;\n const holding: CommandValues = { [name]: held ?? undefined };\n const problem = served\n ? ((money && 'problem' in money ? money.problem : undefined) ?? commandProblems([field], holding)[name])\n : undefined;\n let value: unknown = null;\n if (served && !problem) {\n try {\n value = commandInput([field], holding)[name] ?? null;\n } catch {\n value = null;\n }\n }\n const error = shown ? problem : undefined;\n return {\n inputProps: {\n value: given,\n onChange: (next) => {\n setGiven(next);\n setTouched(true);\n },\n id,\n describedBy: error ? `${id}-error` : undefined,\n invalid: Boolean(error),\n disabled: !handle.granted,\n required: Boolean(field.required),\n label: field.label,\n field: { name, ...(handle.resource ? { resource: handle.resource } : {}) },\n context: 'command',\n },\n text: given === null ? '' : String(given),\n value,\n touched,\n dirty: !same(held, start),\n error,\n validate: () => {\n setShown(true);\n return !problem;\n },\n };\n}\n","/**\n * `layoutPoint`: where a pointer is inside an element, in the layout pixels the page draws and styles in. The density\n * preference zooms the root, so a pointer event's client coordinates and an element's drawn box are both screen pixels\n * while `left`, `translate` and a column's width are layout pixels; a page that hit-tests or drags by the one and\n * places by the other lands off by the zoom. This answers on the one ruler the shell measures with.\n */\nimport { viewportBox, viewportScale } from '@mistriwork/ui/internal/ruler.js';\n\nexport function layoutPoint(event: { clientX: number; clientY: number }, element: Element): { x: number; y: number } {\n const zoom = viewportScale();\n const box = viewportBox(element);\n return { x: event.clientX / zoom - box.left, y: event.clientY / zoom - box.top };\n}\n","/** What sdk/options says, in the custom components 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 notAvailable: 'Not available',\n notAReference: '{command} has no input \"{name}\" that picks a record: useOptions names a reference input the command declares.',\n});\n","/**\n * The records a command's reference input may pick, for a component that draws its own picker (`useOptions`). They are\n * read where the platform's own picker reads them — the reader's door, the input's filter — so a custom picker offers\n * exactly what the native one does, and the server judges the pick again when the command runs.\n */\nimport { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useInfiniteQuery, useQuery } from '@tanstack/react-query';\nimport { useCommandHandle, useDeclared, useViewer } from './hooks.js';\nimport { useUiHost, type UiCommandRef, type UiOption, type UiReferenceInput, type UiResourceChoices } from './context.js';\nimport { say } from '../../copy/components/components/sdk/options.js';\n\nconst LIMIT = 20;\n/* Long enough that a typed word is one read, short enough that a pause shows its matches. */\nconst SETTLE_MS = 150;\n\n/** The record a picker holds, named: `available` is false when the reader cannot see it, which is never \"not found\". */\ntype UiResolvedOption = UiOption & { available: boolean };\n\n/** What `useOptions(resource, …)` is asked beside the resource: a condition on its rows, as `useRows`' `where`. */\ninterface UiResourceOptions {\n where?: unknown;\n}\n\n/** A reference input's choices, searched and paged, and the one picked (`useOptions`). */\nexport interface UiOptions {\n /** The text searched for, as typed. */\n query: string;\n setQuery(text: string): void;\n /** The matches read so far, a page each; the latest query's, never an earlier one's. */\n pages: UiOption[][];\n hasMore: boolean;\n /** Reads the next page onto the end; nothing while there is none or one is already under way. */\n more(): void;\n /** The picked record's key. */\n selected: string | number | undefined;\n select(key: string | number | undefined): void;\n /** The picked record named, read by its key when it is not among the matches; undefined while there is none or it is being read. */\n resolved: UiResolvedOption | undefined;\n /** True while what is typed has not been searched yet. */\n isPending: boolean;\n error: Error | null;\n}\n\n/**\n * The records one reference input of a command offers: `useOptions('assignVisit', 'nurse')`. Typing searches (the\n * latest text wins: an earlier answer arriving late is never shown), `more()` reads the next page, and `select(key)`\n * holds a pick whose name is read by its key when it is not on a page, so a key from the address or a draft is named\n * too. A reader who has lost access to the resource is told the pick is not available, never that it does not exist.\n * A reader not granted the command is offered nothing. Draw the list with `Typeahead` from `@mistriwork/ui`, which\n * keeps the keyboard.\n *\n * `useOptions('country', { where: { active: true } })` offers a resource's own records instead, with no command\n * behind them: a declared read (a free-form page must list the resource in `reads`), labelled by the resource's title\n * column, under the reader's grants and row policy: the reader is offered only the rows they may read.\n */\nexport function useOptions(command: UiCommandRef, name: string): UiOptions;\nexport function useOptions(resource: string, options?: UiResourceOptions): UiOptions;\nexport function useOptions(first: string, second?: string | UiResourceOptions): UiOptions {\n /* Which form is the call's own shape, the same on every render of one call site: a hook is never added or dropped. */\n const source = typeof second === 'string' ? useCommandSource(first, second) : useResourceSource(first, second);\n return usePicker(source);\n}\n\n/** Where a picker's choices come from: the field to read them by, and what its cache keys on. */\ninterface PickerSource {\n field: UiReferenceInput | UiResourceChoices | undefined;\n key: readonly unknown[];\n}\n\nfunction useCommandSource(command: UiCommandRef, name: string): PickerSource {\n const viewer = useViewer();\n const handle = useCommandHandle(command, viewer);\n const declared = handle.input?.(name);\n if (handle.granted && declared?.type !== 'reference') throw new Error(say('notAReference', { command, name }));\n const reference = handle.granted && declared?.type === 'reference' ? (declared as UiReferenceInput) : undefined;\n return { field: reference, key: [command, name] };\n}\n\nfunction useResourceSource(resource: string, options: UiResourceOptions = {}): PickerSource {\n /* A declared read: a page that does not list the resource is refused here, as `useRows` refuses it. */\n const page = useDeclared(resource);\n const where = options.where;\n return {\n field: { resource, ...(where === undefined ? {} : { where }), ...(page ? { page } : {}) },\n key: [resource, where, page],\n };\n}\n\nfunction usePicker({ field: reference, key: source }: PickerSource): UiOptions {\n const host = useUiHost();\n const [query, setQuery] = useState('');\n const [asked, setAsked] = useState('');\n const [selected, setSelected] = useState<string | number | undefined>(undefined);\n useEffect(() => {\n const text = query.trim();\n if (text === asked) return;\n const settle = setTimeout(() => setAsked(text), SETTLE_MS);\n return () => clearTimeout(settle);\n }, [query, asked]);\n const read = useInfiniteQuery({\n /* The text is in the key, so each query has its own answer and only the latest one's is drawn. */\n queryKey: ['mistri-ui', 'options', ...host.scope, ...source, asked],\n queryFn: ({ pageParam }) => host.choices(reference!, asked, { offset: pageParam, limit: LIMIT }),\n initialPageParam: 0,\n getNextPageParam: (last, pages) => (last.more ? pages.length * LIMIT : undefined),\n enabled: Boolean(reference),\n retry: false,\n });\n const pages = useMemo(() => read.data?.pages.map((one) => one.options) ?? [], [read.data]);\n const { hasNextPage, isFetchingNextPage, fetchNextPage } = read;\n const more = useCallback(() => {\n if (hasNextPage && !isFetchingNextPage) void fetchNextPage();\n }, [hasNextPage, isFetchingNextPage, fetchNextPage]);\n const onPage = useMemo(() => pages.flat().find((option) => option.key === selected), [pages, selected]);\n const named = useQuery({\n queryKey: ['mistri-ui', 'option', ...host.scope, ...source, selected],\n /* A key the reader cannot read is answered as unavailable, as an access loss is: the picker never says it is gone. */\n queryFn: async (): Promise<UiResolvedOption> => {\n const found = await host.choiceName(reference!, selected!).catch(() => null);\n return found ? { ...found, available: true } : { key: selected!, label: say('notAvailable'), available: false };\n },\n enabled: Boolean(reference) && selected !== undefined && !onPage,\n retry: false,\n });\n const resolved = selected === undefined ? undefined : onPage ? { ...onPage, available: true } : named.data;\n return {\n query,\n setQuery,\n pages,\n hasMore: Boolean(hasNextPage),\n more,\n selected,\n select: setSelected,\n resolved,\n isPending: Boolean(reference) && (read.isPending || query.trim() !== asked),\n error: read.error,\n };\n}\n","/**\n * `@mistriwork/mistri/ui`: everything a custom component imports from mistri. The\n * host's own React (re-exported, so a component can take its hooks from here\n * and never resolve a React of its own), the kit (kit.tsx) and the hooks\n * (hooks.ts). Nothing else of the client is reachable through it: no store,\n * no walk, no raw request.\n *\n * In the page this module is the page's own, handed to components through\n * the host modules (packages/mistri/src/server/app/componentSdk.ts); published, it is built to\n * dist/ui for a component's tests (config/vite.ui.config.ts), with its types in\n * packages/mistri/schema/ui.d.ts. Its value exports are `UI_EXPORTS` (shared/uiSdk.ts),\n * which a test holds to this list.\n */\nimport * as React from 'react';\nimport { onDemand } from '@mistriwork/kit/client/components/onDemand.js';\n\nexport { React };\nexport { UI_TOKENS as tokens } from '@mistriwork/kit/shared/uiTokens.js';\nexport { Fragment, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState } from 'react';\nexport {\n Beside,\n Button,\n Card,\n Cluster,\n Columns,\n Dropdown,\n Empty,\n Heading,\n Icon,\n Item,\n Items,\n Loaded,\n Meter,\n Row,\n Segmented,\n Skeleton,\n SplitListDetail,\n Stack,\n Stat,\n Table,\n Text,\n Tone,\n Value,\n VisuallyHidden,\n} from './kit.js';\n/* The platform's fields, as the shell dresses its own (pageControls.ts): a part of their own with their rules, fetched\n the first time a component draws one, so one that draws none carries none. A record section that asks a question\n draws the platform's field here, not a native input dressed to look like one. The rest of the house controls (a\n modal, a drawer, a date picker) are a free-form page's, from `@mistriwork/mistri/page`. */\nconst controls = () => import('./pageControls.js');\nexport const Checkbox = onDemand(controls, 'Checkbox', { quiet: true });\nexport const ChoiceCards = onDemand(controls, 'ChoiceCards', { quiet: true });\nexport const FileField = onDemand(controls, 'FileField', { quiet: true });\nexport const Select = onDemand(controls, 'Select', { quiet: true });\nexport const Slider = onDemand(controls, 'Slider', { quiet: true });\nexport const Switch = onDemand(controls, 'Switch', { quiet: true });\nexport const TextArea = onDemand(controls, 'TextArea', { quiet: true });\nexport const TextField = onDemand(controls, 'TextField', { quiet: true });\nexport const YesNo = onDemand(controls, 'YesNo', { quiet: true });\nexport {\n useAction,\n useAnalytics,\n useBreakdown,\n useComposer,\n useCommand,\n useGranted,\n useFile,\n useFlags,\n useFormat,\n useHref,\n useLook,\n useMessage,\n useNavigate,\n useRecord,\n useRows,\n useSectionSize,\n useToken,\n useViewer,\n useVisitor,\n} from './hooks.js';\n/* What the deployment presents the App as (its own module: deployment.ts). */\nexport { useDeployment } from './deployment.js';\nexport { parseMoney, useField } from './fields.js';\nexport { layoutPoint } from './layout.js';\nexport { useOptions } from './options.js';\n","/**\n * How `@mistriwork/mistri/page`'s blocks load, handed in by the module that draws a free-form page (CustomPage.tsx).\n *\n * The blocks (blocks.tsx) are the platform's rooms — a dashboard, a record page, a tree — and those draw values and\n * sections that are components, which reach `@mistriwork/mistri/page` again through the host (host.tsx). Were page.tsx to\n * import the blocks, even lazily, the SDK would join the page's tangle of imports (test/repo/runtime-cycles), as\n * uiBridge.ts says of navigation; so it imports nothing of them, and the page's drawer registers here.\n */\nlet load: (() => Promise<unknown>) | undefined;\n\nexport function registerPageBlocks(blocks: () => Promise<unknown>): void {\n load = blocks;\n}\n\n/** The blocks module, once a page has said how it loads; a refusal otherwise, which the part says as one it could not load. */\nexport function pageBlocks<M>(unregistered: string): Promise<M> {\n return (load?.() ?? Promise.reject(new Error(unregistered))) as Promise<M>;\n}\n","/**\n * What a free-form page's address parameters hold, and how each is read back from the text the address carries\n * (page.tsx `useParam`, and the controls bound to a param: paramControls.tsx). Apart from both so neither imports the other.\n */\n\nimport { columnKind } from '@mistriwork/engine/shared/schema.js';\n\n/** What a param holds (`params: { class: 'id' }`): an id, a day, a run of days, words as written, or one of a few. */\nexport type ParamKind = 'id' | 'text' | 'date' | 'date-range' | readonly string[];\nexport type ParamValue = string | number;\n\n/** A day on the calendar, `YYYY-MM-DD`: 2026-02-30 parses, as March 2, but is not one. */\nfunction isDay(raw: string): boolean {\n if (!/^\\d{4}-\\d{2}-\\d{2}$/.test(raw)) return false;\n const day = new Date(`${raw}T00:00:00Z`);\n return !Number.isNaN(day.getTime()) && day.toISOString().slice(0, 10) === raw;\n}\n\n/** A run of days as the address says it, `2026-11-01..2026-11-08`: either end may be left open (`..2026-11-08`), not both. */\nexport function splitRange(raw: string | undefined): readonly [string, string] | undefined {\n const at = raw?.indexOf('..') ?? -1;\n if (raw === undefined || at < 0) return undefined;\n const from = raw.slice(0, at);\n const to = raw.slice(at + 2);\n if ((!from && !to) || (from && !isDay(from)) || (to && !isDay(to))) return undefined;\n return [from, to];\n}\n\nexport const joinRange = (from: string, to: string): string | undefined => (from || to ? `${from}..${to}` : undefined);\n\n/* What an `'id'` param holds follows the key of the table it names (a param named for a resource the page reads): a\n tenant's tables carry opaque text ids, a count-up table integers. A param naming no table holds an integer, as it always did. */\ntype IdKey = 'integer' | 'text';\n/* URL-safe text only, the characters an address carries unescaped (RFC 3986's unreserved): an id with a slash or a\n space in it is no id a link can hold. */\nconst TEXT_ID = /^[A-Za-z0-9._~-]{1,256}$/;\n\n/** How a resource's key reads an `'id'` param: text where its only key column is text (or a uuid), an integer otherwise. */\nexport function idKeyOf(table: { columns: ReadonlyArray<{ type: string; primaryKey?: boolean }> } | undefined): IdKey {\n const keys = table?.columns.filter((column) => column.primaryKey) ?? [];\n return keys.length === 1 && columnKind(keys[0]!.type) === 'text' ? 'text' : 'integer';\n}\n\n/* An address is typed by hand and kept in bookmarks, so a value is checked before the page sees it: one that is not of\n its kind is no value, as a param the address lacks is. An id past 2^53 stays its digits: Number() would round it. */\nexport function paramValue(raw: string | undefined, kind: ParamKind, key: IdKey = 'integer'): ParamValue | undefined {\n if (raw === undefined) return undefined;\n if (Array.isArray(kind)) return kind.includes(raw) ? raw : undefined;\n if (kind === 'id') {\n if (key === 'text') return TEXT_ID.test(raw) ? raw : undefined;\n if (!/^(0|[1-9]\\d*)$/.test(raw)) return undefined;\n const id = Number(raw);\n return Number.isSafeInteger(id) ? id : raw;\n }\n if (kind === 'date') return isDay(raw) ? raw : undefined;\n if (kind === 'date-range') return splitRange(raw) ? raw : undefined;\n return raw;\n}\n\n/* Each param's kind: a list of names (`params: ['list']`) is text, as it was before params had kinds. */\nexport function paramKinds(params: unknown): Readonly<Record<string, ParamKind>> {\n if (Array.isArray(params)) return Object.fromEntries(params.map((name: string) => [name, 'text' as const]));\n return params && typeof params === 'object' ? (params as Record<string, ParamKind>) : {};\n}\n","/** What sdk/page says, in the custom components 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 definePageTakes: 'definePage takes the page: its label, reads and component.',\n definePageHasNo:\n 'definePage has no \"{name}\". It takes path, label, icon, nav, roles, reads, commands, forms, params, loader, loaders, public, description, favorite, head, layout and component.',\n defineSurfaceTakes: 'defineSurface takes the surface: its label and reads.',\n defineSurfaceHasNo:\n 'defineSurface has no \"{name}\". It takes label, icon, description, favorite, roles, reads, commands, forms and loader.',\n commandDone: '{label} done.',\n listNotYours: 'This list is not available to your role.',\n listForMembers: 'This list is for signed-in members.',\n listShowingFirst: 'Showing the first {count}.',\n listNamesNoResource: '<List> reads no resource: give it `from`, or draw it inside a <Scope from>.',\n recordKeyOutside:\n 'useRecordKey reads the record a page is a tab of, and \"{label}\" is not a record\\'s tab: place it at pages/<list view>/[id]/<tab>.page.tsx.',\n recordKeyUnnamed:\n \"useRecordKey reads the record a page is a tab of, and this page is not a record's tab: place it at pages/<list view>/[id]/<tab>.page.tsx.\",\n recordKeyOther: 'useRecordKey(\"{resource}\") on a tab of a \"{table}\" record: name the record\\'s own resource, \"{table}\".',\n recordKeyUnread:\n 'useRecordKey(\"{resource}\"): \"{label}\" reads {map}. A record\\'s tab reads its record\\'s resource: add \"{resource}\" to its reads.',\n blocksUnregistered: '@mistriwork/mistri/page: no page has said how its blocks load.',\n});\n","/**\n * The slots a control kit may fill and the rules a kit is held to before it draws (UiKit.tsx, Preview), in a module\n * with no React and no primitive in it: an App's load and `mistri check` judge a kit with these on the server, where\n * an App's own typecheck follows the import and has no JSX to read a primitive's module with.\n */\n/** Every slot a kit may fill, in the order the docs list them. */\nexport const SLOT_NAMES = [\n 'Button',\n 'ButtonLink',\n 'TextField',\n 'MaskedField',\n 'MoneyField',\n 'SensitiveField',\n 'Select',\n 'MultiSelect',\n 'Dropdown',\n 'MultiDropdown',\n 'Typeahead',\n 'DateField',\n 'Checkbox',\n 'YesNo',\n 'ChoiceCards',\n 'CheckCards',\n 'Consent',\n 'Switch',\n 'Slider',\n 'Modal',\n 'Drawer',\n 'Popover',\n 'Tooltip',\n 'DropMenu',\n 'DropGroup',\n 'DropItem',\n 'DropSeparator',\n 'Tabs',\n 'Pagination',\n 'Avatar',\n] as const;\nexport type SlotName = (typeof SLOT_NAMES)[number];\n\n/* The parts that share one state of their own: a kit that drew a menu's items but not its menu would hand Base UI's\n items a menu they cannot find. */\nconst FAMILIES: ReadonlyArray<readonly SlotName[]> = [['DropMenu', 'DropGroup', 'DropItem', 'DropSeparator']];\n\nconst isSlot = (name: string): name is SlotName => (SLOT_NAMES as readonly string[]).includes(name);\n\n/* The slot a misspelled name was meant to be: one letter's case, or two edits, away. */\nfunction nearest(name: string): string | undefined {\n const lower = name.toLowerCase();\n return SLOT_NAMES.find((slot) => slot.toLowerCase() === lower) ?? SLOT_NAMES.find((slot) => edits(slot.toLowerCase(), lower) <= 2);\n}\nfunction edits(a: string, b: string): number {\n let row = Array.from({ length: b.length + 1 }, (_, i) => i);\n for (let i = 1; i <= a.length; i++) {\n const next = [i];\n for (let j = 1; j <= b.length; j++) next[j] = Math.min(row[j] + 1, next[j - 1] + 1, row[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1));\n row = next;\n }\n return row[b.length];\n}\n\n/**\n * What is wrong with a value offered as a kit, each as the rest of a sentence that begins with the kit's name (\"the\n * UI kit (./ui/kit.tsx) has no slot named …\"); none for a kit. `mistri check` and an App's load say the same.\n */\nexport function uiKitProblems(value: unknown): string[] {\n if (!value || typeof value !== 'object' || Array.isArray(value))\n return ['has no default export made by defineUiKit: export default defineUiKit({ Button, … }).'];\n const problems: string[] = [];\n const names = Object.keys(value);\n for (const name of names) {\n if (!isSlot(name)) {\n const near = nearest(name);\n problems.push(`has no slot named \"${name}\"${near ? ` (did you mean \"${near}\"?)` : ''}; the slots are ${SLOT_NAMES.join(', ')}.`);\n continue;\n }\n const component = (value as Record<string, unknown>)[name];\n if (typeof component !== 'function' && !(component && typeof component === 'object'))\n problems.push(`gives \"${name}\" something that is not a component: a slot takes a function that draws it.`);\n }\n for (const family of FAMILIES) {\n const given = family.filter((name) => names.includes(name));\n if (given.length && given.length < family.length)\n problems.push(\n `draws ${given.join(', ')} but not ${family.filter((name) => !given.includes(name)).join(', ')}: a menu's parts share the menu's state, so a kit draws all ${family.length} or none.`,\n );\n }\n return problems;\n}\n","/**\n * A control kit (Preview): another drawing of the primitives here, slot by slot. Every slotted primitive reads the\n * kit in place (internal/uiKitContext.ts) and draws the kit's component for its slot with the very props it was given,\n * its own otherwise, so a kit that draws only the button leaves every other control as it was and no screen that\n * imports a primitive changes. The page itself (a grid, a record's layout, the navigation) stays the platform's;\n * what a kit replaces is the controls on it.\n *\n * The contract is each slot's props type below, plus the behavior the conformance suite holds a kit to\n * (`@mistriwork/ui/conformance.js`): a value and its change, disabled, the words a slot is handed, a modal's handle and\n * where its focus goes back to, a menu's and a listbox's keys, a popup drawn inside the dialog that opened it.\n *\n * Nothing here imports a primitive's module, only its types: a kit compiled apart from the page reads this file for\n * `defineUiKit`, and the defaults arrive in `defaultUiKit` as the page loads them.\n */\nimport { createElement, type ComponentProps, type ComponentType, type ReactNode } from 'react';\nimport type { Avatar } from './Avatar.js';\nimport type { Button, ButtonLink } from './Button.js';\nimport type { ChangeDetails } from './changeDetails.js';\nimport type { CheckCards, Checkbox, ChoiceCards, Consent, YesNo } from './Choices.js';\nimport type { DateField } from './DateField.js';\nimport type { Drawer } from './Drawer.js';\nimport type { DropGroup, DropItem, DropMenu, DropSeparator } from './DropMenu.js';\nimport type { Dropdown, MultiDropdown } from './Dropdown.js';\nimport type { Modal } from './Modal.js';\nimport type { Pagination } from './Pagination.js';\nimport type { Popover } from './Popover.js';\nimport type { MultiSelect, Select } from './Select.js';\nimport type { SensitiveField } from './SensitiveField.js';\nimport type { Slider } from './Slider.js';\nimport type { Switch } from './Switch.js';\nimport type { Tabs } from './Tabs.js';\nimport type { MaskedField, MoneyField, TextField } from './TextField.js';\nimport type { Tooltip } from './Tooltip.js';\nimport type { TypeaheadProps } from './Typeahead.js';\nimport { UiKitContext, defaultSlots, installUiKit } from './internal/uiKitContext.js';\nimport { SLOT_NAMES, uiKitProblems, type SlotName } from './uiKitSlots.js';\n\n/* A kit may call a change callback without its details (the value alone); the seam fills them in for every caller\n (internal/uiKitContext.ts), so in a kit's props the details are optional and everywhere else they are not. */\ntype KitCallback<F> = F extends (...args: [...infer A, infer D extends ChangeDetails<string>]) => infer R\n ? (...args: A | [...A, D]) => R\n : F;\ntype KitProps<P> = { [K in keyof P]: KitCallback<P[K]> };\ntype Slot<C extends ComponentType<any>> = ComponentType<KitProps<ComponentProps<C>>>;\n/* A Typeahead's item callbacks carry no details, and passed through KitCallback while `T` is still open the item itself\n is taken for details (`onPick(item)` then asks for a `T & ChangeDetails`), so they keep their own types. */\ntype TypeaheadItemProps = 'itemKey' | 'itemLabel' | 'itemClassName' | 'renderItem' | 'onPick' | 'onHighlight';\n\n/** Each slot's component, typed by the props the platform draws it with. */\nexport interface UiKitSlots {\n Button: Slot<typeof Button>;\n /** A link dressed as a button: a download, another page. */\n ButtonLink: Slot<typeof ButtonLink>;\n TextField: Slot<typeof TextField>;\n MaskedField: Slot<typeof MaskedField>;\n MoneyField: Slot<typeof MoneyField>;\n SensitiveField: Slot<typeof SensitiveField>;\n Select: Slot<typeof Select>;\n MultiSelect: Slot<typeof MultiSelect>;\n Dropdown: Slot<typeof Dropdown>;\n MultiDropdown: Slot<typeof MultiDropdown>;\n /** Generic in the item it lists, as the default is. */\n Typeahead: <T>(props: KitProps<Omit<TypeaheadProps<T>, TypeaheadItemProps>> & Pick<TypeaheadProps<T>, TypeaheadItemProps>) => ReactNode;\n DateField: Slot<typeof DateField>;\n Checkbox: Slot<typeof Checkbox>;\n YesNo: Slot<typeof YesNo>;\n ChoiceCards: Slot<typeof ChoiceCards>;\n CheckCards: Slot<typeof CheckCards>;\n Consent: Slot<typeof Consent>;\n Switch: Slot<typeof Switch>;\n Slider: Slot<typeof Slider>;\n /** Open from mount; `onClose` heard once however it closed; `ref` takes the handle that closes it. */\n Modal: Slot<typeof Modal>;\n Drawer: Slot<typeof Drawer>;\n Popover: Slot<typeof Popover>;\n Tooltip: Slot<typeof Tooltip>;\n /** A menu's four parts share the menu's state, so a kit draws all four or none. */\n DropMenu: Slot<typeof DropMenu>;\n DropGroup: Slot<typeof DropGroup>;\n DropItem: Slot<typeof DropItem>;\n DropSeparator: Slot<typeof DropSeparator>;\n Tabs: Slot<typeof Tabs>;\n Pagination: Slot<typeof Pagination>;\n Avatar: Slot<typeof Avatar>;\n}\n\n/** A kit: any of the slots; the rest draw as they always have. */\nexport type UiKit = Readonly<Partial<UiKitSlots>>;\n\n/** Declares a kit, refusing a slot it does not have in words: `export default defineUiKit({ Button, Modal })`. */\nexport function defineUiKit(kit: UiKit): UiKit {\n const problems = uiKitProblems(kit);\n if (problems.length) throw new Error(`The UI kit ${problems.join(' It ')}`);\n return Object.freeze({ ...kit });\n}\n\n/** The primitives' own drawing, by slot, for a kit that dresses a default rather than replacing it. Filled as the\n page loads each primitive, so read it when drawing, not when the kit is defined. */\nexport const defaultUiKit = defaultSlots as unknown as Readonly<Partial<UiKitSlots>>;\n\n/** Draws everything inside it with this kit; a page with one kit installs it once instead (`installUiKit`). */\nexport function UiKitProvider({ kit, children }: { kit: UiKit; children?: ReactNode }) {\n return createElement(UiKitContext.Provider, { value: kit as never }, children);\n}\n\nexport { installUiKit, SLOT_NAMES, uiKitProblems, type SlotName };\n","/**\n * `@mistriwork/mistri/page`: a free-form page, one file each (`pages/<path>.page.tsx`); the file's name is its path.\n *\n * const page = definePage({ label: 'Pick walk', reads: ['pick_list'], commands: ['pickList'],\n * params: ['list'], loader: 'pickWalk', component: PickWalk });\n * export default page;\n * function PickWalk({ data }) { const [list, setList] = page.useParam('list'); … }\n *\n * What the page says of itself is read by the server without drawing it\n * (server/app/appPages.ts) and served back as its manifest, which the page\n * is drawn inside (UiPageFrame): the hooks bound to the definition read and\n * run only what it declares, and its loader's result arrives as `data`.\n *\n * `definePage` hands back a component — the page itself — with its hooks on\n * it. They are the SDK's own hooks: `page.useX` is the shape so the types\n * can bind them to this page's reads, commands and parameters\n * (packages/mistri/schema/page.d.ts), and so a linter still sees them as hooks.\n *\n * It is the one import a page needs: everything `@mistriwork/mistri/ui` exports, and beside it the page's own — the\n * platform's command form and per-row buttons, `Scope` and `List`, the layout's `Grid` and `Panel`, the platform's\n * sections as components (blocks.tsx) and the house controls (pageControls.ts), each part loaded when a page first\n * draws one. In the page this module is the page's own, reached through the import map like `@mistriwork/mistri/ui`;\n * its value exports are `PAGE_EXPORTS` (shared/uiSdk.ts), of which `UI_EXPORTS` is a part.\n */\nimport { createContext, createElement, useContext, useMemo, type ComponentType, type ReactNode } from 'react';\nimport { Refused } from '@mistriwork/kit/client/components/Notes.js';\nimport {\n resourceOfRow,\n useAction,\n useAddressState,\n useBreakdown,\n useCommand,\n useFile,\n useForm,\n useLoader,\n useRecord,\n useRows,\n} from './hooks.js';\nimport { Button, Loaded } from './kit.js';\nimport {\n scopedCondition,\n UiPageContext,\n UiParamKindsContext,\n UiScopeContext,\n useUiHost,\n type UiCommandOutcome,\n type UiScope,\n} from './context.js';\nimport { onDemand } from '@mistriwork/kit/client/components/onDemand.js';\nimport { pageBlocks } from './pageBlocks.js';\nimport { state } from '@mistriwork/kit/client/core.js';\nimport { tableNamed } from '@mistriwork/engine/shared/schema.js';\nimport { idKeyOf, paramKinds, paramValue, type ParamValue } from './paramKinds.js';\nimport { say } from '../../copy/components/components/sdk/page.js';\n\nexport * from './index.js';\nexport { Beside, Card, Cluster, Columns, Empty, Heading, Item, Items, Loaded, Row, Stack, Stat, Value } from './kit.js';\nexport { Button };\n/* A page's place in its address, as written: `page.useParam` reads it through this hook and checks it against the\n param's kind; this one is for a module the page draws that is not the page itself (a widget, the Console's rooms). */\nexport { useAddressState };\n/* An App's control kit (Preview): its module imports these from here, so the kit and the page share the one seam. */\nexport { defineUiKit, defaultUiKit } from '@mistriwork/ui/UiKit.js';\n/* The platform's blocks (blocks.tsx): a part of their own, loaded when a page first draws one. They draw the\n platform's rooms, which reach this module again through the host, so the module that draws a free-form page hands\n in how they load (pageBlocks.ts) rather than this one importing them. */\nconst blocks = () => pageBlocks<typeof import('./blocks.js')>(say('blocksUnregistered'));\nexport const Rows = onDemand(blocks, 'Rows');\nexport const RecordCard = onDemand(blocks, 'RecordCard');\nexport const Metric = onDemand(blocks, 'Metric');\nexport const Chart = onDemand(blocks, 'Chart');\nexport const Breakdown = onDemand(blocks, 'Breakdown');\nexport const Timeline = onDemand(blocks, 'Timeline');\nexport const Tree = onDemand(blocks, 'Tree');\nexport const Gantt = onDemand(blocks, 'Gantt');\nexport const Board = onDemand(blocks, 'Board');\nexport const Calendar = onDemand(blocks, 'Calendar');\nexport const Gallery = onDemand(blocks, 'Gallery');\nexport const Split = onDemand(blocks, 'Split');\nexport const Assistant = onDemand(blocks, 'Assistant');\nexport const Tabs = onDemand(blocks, 'Tabs');\nexport const Steps = onDemand(blocks, 'Steps');\n\n/* Controls bound to a param of the page (paramControls.tsx): the address is their state. A part of their own, fetched the\n first time a page draws one; the box they stand in holds a control's height (kit.css), so the part arrives in place. */\nconst paramControls = () => import('./paramControls.js');\nfunction reserved<P extends object>(Part: ComponentType<P>): (props: P) => ReactNode {\n return (props) => (\n <div className=\"kit-param\">\n <Part {...props} />\n </div>\n );\n}\nexport const Choose = reserved(onDemand(paramControls, 'Choose', { quiet: true }));\nexport const Search = reserved(onDemand(paramControls, 'Search', { quiet: true }));\nexport const DateRange = reserved(onDemand(paramControls, 'DateRange', { quiet: true }));\n\n/* The rest of the house controls, as the shell dresses its own (pageControls.ts), the fields being the SDK's own\n (index.ts): a part of their own with their rules, fetched the first time a page draws one, so a page that draws\n none carries none. */\nconst controls = () => import('./pageControls.js');\nexport const Avatar = onDemand(controls, 'Avatar', { quiet: true });\nexport const CheckCards = onDemand(controls, 'CheckCards', { quiet: true });\nexport const DateField = onDemand(controls, 'DateField', { quiet: true });\nexport const Drawer = onDemand(controls, 'Drawer', { quiet: true });\nexport const Modal = onDemand(controls, 'Modal', { quiet: true });\nexport const Pagination = onDemand(controls, 'Pagination', { quiet: true });\nexport const Popover = onDemand(controls, 'Popover', { quiet: true });\nexport const Tooltip = onDemand(controls, 'Tooltip', { quiet: true });\n\n/** The page's grid: blocks and panels side by side by their `width`, wrapping as a dashboard's sections do. */\nexport function Grid({ children }: { children?: ReactNode }) {\n return <div className=\"page-body\">{children}</div>;\n}\n\n/** A titled region of the grid, a dashboard section's box: `<Panel title=\"Open lines\" width=\"half\">…</Panel>`. */\nexport function Panel({\n title,\n width = 'full',\n children,\n}: {\n title?: ReactNode;\n width?: 'full' | 'half' | 'third' | 'two-thirds';\n children?: ReactNode;\n}) {\n return (\n <section className={`page-section width-${width}`}>\n {title !== undefined && <h2 className=\"page-section-title\">{title}</h2>}\n {children}\n </section>\n );\n}\n\n/** What a page's component is drawn with: its loader's result, and the props the platform placed it with. */\nexport interface PageProps<D = unknown> {\n data: D;\n props: Readonly<Record<string, unknown>>;\n}\n\nconst FIELDS = [\n 'label',\n 'icon',\n 'nav',\n 'roles',\n 'reads',\n 'commands',\n 'actions',\n 'params',\n 'loader',\n 'loaders',\n 'forms',\n 'public',\n 'description',\n 'favorite',\n 'head',\n 'layout',\n];\n\n/** The keys `defineSurface` takes: a free-form page's, but what only something drawn by mistri has (server/app/appSurfaces.ts). */\nconst SURFACE_FIELDS = ['label', 'icon', 'description', 'favorite', 'roles', 'reads', 'commands', 'forms', 'loader'];\n\n/** A surface as `defineSurface` makes it: its definition, for the server to read and a front end's types to follow. */\nexport interface SurfaceDefinition {\n readonly definition: Readonly<Record<string, unknown>>;\n}\n\n/**\n * What a front end the App draws itself may read and run (`surfaces/<key>.surface.ts`): a free-form page's manifest\n * with nothing to draw. The server reads it from the file; this is the same check where a front end imports it.\n */\nexport function defineSurface(definition: Record<string, unknown>): SurfaceDefinition {\n if (!definition || typeof definition !== 'object') throw new TypeError(say('defineSurfaceTakes'));\n for (const name of Object.keys(definition)) if (!SURFACE_FIELDS.includes(name)) throw new TypeError(say('defineSurfaceHasNo', { name }));\n return { definition: Object.freeze({ ...definition }) };\n}\n\n/** A page as `definePage` makes it: the component that draws it, its definition and its hooks. */\nexport interface PageDefinition<D = unknown> {\n (props: PageProps<D>): ReactNode;\n readonly definition: Readonly<Record<string, unknown>>;\n readonly useRows: typeof useRows;\n readonly useRecord: typeof useRecord;\n readonly useBreakdown: typeof useBreakdown;\n readonly useFile: typeof useFile;\n readonly useCommand: typeof useCommand;\n readonly useAction: typeof useAction;\n readonly useForm: typeof useForm;\n readonly useLoader: typeof useLoader;\n readonly useRecordKey: (resource: string) => Readonly<Record<string, unknown>>;\n readonly useParam: (name: string) => [ParamValue | undefined, (value: string | number | undefined, options?: { push?: boolean }) => void];\n /** The param controls, held to the page's params and reads by the types (schema/page.d.ts); the same components at run time. */\n readonly Choose: typeof Choose;\n readonly Search: typeof Search;\n readonly DateRange: typeof DateRange;\n /** A command's form over several steps, its step held in one of the page's params (steps.tsx). */\n readonly Steps: typeof Steps;\n}\n\n/** A free-form page: its label, reads, commands, actions, parameters and loader, and the component that draws it. */\nexport function definePage<D = unknown>(\n definition: Record<string, unknown> & { component: ComponentType<PageProps<D>> },\n): PageDefinition<D> {\n if (!definition || typeof definition !== 'object' || typeof definition.component !== 'function')\n throw new TypeError(say('definePageTakes'));\n const { component, ...fields } = definition;\n for (const name of Object.keys(fields)) if (!FIELDS.includes(name)) throw new TypeError(say('definePageHasNo', { name }));\n const draw = component;\n const kinds = paramKinds(fields.params);\n // The kinds ride the page's context, so a control bound to a param reads its words without the page naming them twice.\n const Page = (props: PageProps<D>) => createElement(UiParamKindsContext.Provider, { value: kinds }, createElement(draw, props));\n function useParam(name: string) {\n const [raw, set] = useAddressState(name);\n const frame = useContext(UiPageContext);\n /* An id param named for a resource the page reads is that resource's key: text for a tenant's opaque ids. */\n const table = kinds[name] === 'id' && frame?.reads.includes(name) && state.schema ? tableNamed(state.schema, name) : undefined;\n return [paramValue(raw, kinds[name] ?? 'text', idKeyOf(table)), set] as [\n ParamValue | undefined,\n (value: string | number | undefined, options?: { push?: boolean }) => void,\n ];\n }\n /* A record's tab learns its record from the place it is drawn in, not from a param: the address is the record's\n own (`/compass/accounts/13/map`), and the resource is named so the key's type is that resource's key. */\n function useRecordKey(resource: string) {\n const frame = useContext(UiPageContext);\n const record = frame?.record;\n if (!record)\n throw new Error(typeof fields.label === 'string' ? say('recordKeyOutside', { label: fields.label }) : say('recordKeyUnnamed'));\n if (record.table !== undefined && record.table !== resource) throw new Error(say('recordKeyOther', { resource, table: record.table }));\n if (!frame.reads.includes(resource))\n throw new Error(say('recordKeyUnread', { label: frame.label, map: frame.reads.map((name) => `\"${name}\"`).join(', '), resource }));\n return record.key;\n }\n return Object.assign(Page, {\n definition: Object.freeze(fields),\n useRows,\n useRecord,\n useBreakdown,\n useFile,\n useCommand,\n useAction,\n useForm,\n useLoader,\n useRecordKey,\n useParam,\n Choose,\n Search,\n DateRange,\n Steps,\n });\n}\n\n/**\n * A command's own form, behind a button: `<CommandForm command=\"releaseOrder\" />`, or on one record,\n * `<CommandForm command=\"pickList\" record={{ id: 12 }} />`. The platform's dialog, the one pipeline;\n * the button is not drawn for a reader who may not run the command.\n */\nexport function CommandForm({\n command,\n record,\n label,\n intent = 'secondary',\n onDone,\n}: {\n command: string;\n record?: Readonly<Record<string, unknown>>;\n label?: ReactNode;\n intent?: 'primary' | 'secondary' | 'quiet';\n onDone?: (outcome: Awaited<ReturnType<ReturnType<typeof useCommand>['open']>>) => void;\n}) {\n const handle = useCommand(command);\n const key = record ?? {};\n if (!handle.granted) return null;\n const busy = handle.pending(key);\n return (\n <Button\n intent={intent}\n busy={busy}\n disabled={busy || handle.available(key) === false}\n onClick={() => void handle.open(key).then((outcome) => onDone?.(outcome))}\n >\n {label ?? handle.label}\n </Button>\n );\n}\n\n/* The resource a `List`'s rows are of, for a button on one of them to name its row from (a command no action offers\n says none of its own). Not a Scope: blocks drawn in a row do not inherit the list's condition. */\nconst ListResource = createContext<string | undefined>(undefined);\n\n/* The row of a command that names none (`targets: 'none'`): its key is empty, as its form's submit sends it. */\nconst NO_ROW: Readonly<Record<string, unknown>> = Object.freeze({});\n\ntype ButtonIntent = 'primary' | 'secondary' | 'quiet' | 'danger';\ntype ButtonSize = 'compact' | 'default' | 'large';\ninterface RowButtonProps {\n row: Readonly<Record<string, unknown>>;\n label?: string;\n intent?: ButtonIntent;\n size?: ButtonSize;\n done?: string;\n onDone?: (outcome: UiCommandOutcome) => void;\n}\n\n/* What a command's and an action's button share: drawn only for a reader granted it, held while the row's state does\n not allow it or a run on that row is on its way, and named with the row, so \"Check in\" on twenty rows reads as\n twenty different buttons. */\nfunction RowButton({\n handle,\n row,\n label,\n intent = 'secondary',\n size = 'default',\n run,\n}: Omit<RowButtonProps, 'done' | 'onDone'> & { handle: ReturnType<typeof useCommand>; run: () => void }) {\n const host = useUiHost();\n const scope = useContext(UiScopeContext);\n const listed = useContext(ListResource);\n if (!handle.granted) return null;\n const said = label ?? handle.label;\n const resource = handle.resource ?? resourceOfRow(row) ?? listed ?? scope?.from;\n const title = resource ? host.rowTitle(resource, row) : undefined;\n const busy = handle.pending(row);\n return (\n <Button\n intent={intent}\n size={size}\n busy={busy}\n disabled={busy || handle.available(row) === false}\n aria-label={title ? `${said} ${title}` : said}\n onClick={run}\n >\n {said}\n </Button>\n );\n}\n\n/**\n * One command on one row: `<CommandButton command=\"checkIn\" row={booking} />`, or a command that names no row\n * (`targets: 'none'`), with none: `<CommandButton command=\"postRent\" />`. Its outcome is said in the page's live\n * region — in `done`'s words when given — and a refusal in the server's (the command's run says it). The hook\n * (`useCommand`) stays for what a button cannot say.\n */\nexport function CommandButton({\n command,\n done,\n onDone,\n row = NO_ROW,\n ...props\n}: Omit<RowButtonProps, 'row'> & { command: string; row?: RowButtonProps['row'] }) {\n const handle = useCommand(command);\n const host = useUiHost();\n const label = props.label ?? handle.label;\n const run = () =>\n void handle.run(row, undefined, { label }).then((outcome) => {\n if (outcome.status === 'applied') host.announce(done ?? outcome.message ?? say('commandDone', { label }), 'ok');\n onDone?.(outcome);\n });\n return <RowButton handle={handle} run={run} row={row} {...props} />;\n}\n\n/** One of the page's fixed actions on one row, as `CommandButton` draws a command: `<ActionButton action=\"startVisit\" row={visit} />`. */\nexport function ActionButton({ action, done, onDone, ...props }: RowButtonProps & { action: string }) {\n const handle = useAction(action);\n const label = props.label ?? handle.label;\n // An action says its own outcome (sdk/commands.tsx), in `done`'s words where given.\n const run = () =>\n void handle.run(props.row, undefined, { label, ...(done === undefined ? {} : { done }) }).then((outcome) => onDone?.(outcome));\n return <RowButton handle={handle} run={run} {...props} />;\n}\n\n/**\n * One resource and condition for the blocks inside it: `<Scope from=\"booking\" where={{ class_session_id: classId }}>`.\n * A block that names no `from` reads the Scope's resource under its condition, its own `where` and `query` added by\n * \"and\"; one that names another resource reads that one alone; a Scope inside another on the same resource narrows it.\n */\nexport function Scope({ from, where, query, children }: { from: string; where?: unknown; query?: string; children?: ReactNode }) {\n const outer = useContext(UiScopeContext);\n // A condition written inline is a new object on every draw; what it says is what keeps the blocks' reads still.\n const said = JSON.stringify([from, where, query, outer]);\n const scope = useMemo<UiScope>(() => {\n const { where: conditions, query: text } = scopedCondition(outer, from, where, query);\n return { from, where: conditions, ...(text ? { query: text } : {}) };\n }, [said]); // eslint-disable-line react-hooks/exhaustive-deps\n return <UiScopeContext.Provider value={scope}>{children}</UiScopeContext.Provider>;\n}\n\n/* A row's React key: its key columns, which a `List` reads beside `show` (so they are the ones `show` did not name),\n else the whole row. Never its index: a row that leaves the list (checked in, say) would hand its focused button to\n the row after it. */\nfunction rowKey(row: Readonly<Record<string, unknown>>, show: readonly string[] | undefined): string {\n const names = Object.keys(row);\n const keys = show ? names.filter((name) => !show.includes(name)) : [];\n return JSON.stringify((keys.length ? keys : names).map((name) => row[name]));\n}\n\n/**\n * Rows drawn by the page, one at a time: `<List from=\"booking\" where={{ status: 'booked' }} show={['guest_name']}>{(b) => …}</List>`.\n * The read's states are the platform's (Loaded's, and a note where the reader may not read it), so `children` draws\n * only rows; each row carries its key beside `show`, for a `CommandButton` on it.\n */\nexport function List({\n from,\n where,\n query,\n show,\n sort,\n limit,\n empty,\n label,\n children,\n}: {\n from?: string;\n where?: unknown;\n query?: string;\n show?: readonly string[];\n sort?: string;\n limit?: number;\n empty?: ReactNode;\n label?: string;\n children: (row: Readonly<Record<string, unknown>>, index: number) => ReactNode;\n}) {\n const scope = useContext(UiScopeContext);\n const resource = from ?? scope?.from;\n if (!resource) throw new Error(say('listNamesNoResource'));\n const condition = scopedCondition(scope, resource, where, query);\n const rows = useRows(resource, {\n ...(condition.where.length ? { where: condition.where.length === 1 ? condition.where[0] : condition.where } : {}),\n ...(condition.query ? { query: condition.query } : {}),\n ...(show ? { show } : {}),\n ...(sort ? { sort } : {}),\n ...(limit === undefined ? {} : { limit }),\n keys: true,\n });\n const status = (rows.error as { status?: number } | null)?.status;\n /* A context the server forgot, which entering again could not replace (tenantTransport.ts): the transport's own line\n says the page needs a reload; the person's role is not the reason. */\n if (rows.data === undefined && status === 403 && (rows.error as { code?: string }).code === 'tenant_context_unavailable')\n return <Refused text={(rows.error as Error).message} />;\n if (rows.data === undefined && (status === 401 || status === 403))\n return <Refused text={say(status === 401 ? 'listForMembers' : 'listNotYours')} />;\n return (\n <Loaded query={rows} empty={empty}>\n {(data) => (\n <ListResource.Provider value={resource}>\n <ul className=\"kit-stack kit-gap-tight\" aria-label={label}>\n {data.map((row, index) => (\n <li key={rowKey(row, show)}>{children(row, index)}</li>\n ))}\n </ul>\n {/* A list cut at its limit says so, so a reader never takes the first rows for all of them. */}\n {rows.page.hasMore && <p className=\"kit-list-more\">{say('listShowingFirst', { count: data.length })}</p>}\n </ListResource.Provider>\n )}\n </Loaded>\n );\n}\n","/**\n * The public SDK a custom component draws with, `@mistriwork/mistri/ui`, as both sides\n * need to name it: the server serves each host module a component imports as\n * a small module over the page's own copy (componentSdk.ts), and a\n * component's bare names are written as their paths when it is served\n * (http/componentRoutes.ts). One\n * React, one QueryClient: a component that brought its own React would break\n * hooks, and one with its own query cache would outlive a sign-out.\n *\n * `UI_EXPORTS` is the SDK's runtime surface, pinned against the module that\n * implements it (packages/mistri/src/client/components/sdk/index.ts) by a component test, so\n * the served module can never offer a name the host does not have.\n */\n\n/** Where the host modules are served, and the bare names a served component's imports are written from. */\nexport const SDK_PATH = '/_mistri/sdk/';\nexport const HOST_MODULES = {\n react: 'react.js',\n 'react/jsx-runtime': 'react-jsx-runtime.js',\n 'react-dom': 'react-dom.js',\n '@mistriwork/mistri/ui': 'ui.js',\n '@mistriwork/mistri/page': 'page.js',\n} as const;\nexport type HostModule = keyof typeof HOST_MODULES;\n/** The host modules once each. Pure, so the page's bundle, which reads only `HOST_GLOBAL` here, drops it. */\nexport const SERVED_MODULES = /* @__PURE__ */ Object.keys(HOST_MODULES) as HostModule[];\n\n/** The global the page puts its modules on, read only by the served host modules. */\nexport const HOST_GLOBAL = '__mistri';\n\n/** Every value `@mistriwork/mistri/ui` exports. */\nexport const UI_EXPORTS = [\n 'React',\n 'Fragment',\n 'useState',\n 'useEffect',\n 'useMemo',\n 'useRef',\n 'useCallback',\n 'useId',\n 'useReducer',\n 'useContext',\n 'Card',\n 'Beside',\n 'Stack',\n 'Row',\n 'Cluster',\n 'Heading',\n 'Button',\n 'Dropdown',\n 'SplitListDetail',\n 'Value',\n 'Tone',\n 'Meter',\n 'Empty',\n 'Loaded',\n 'Icon',\n 'Segmented',\n 'Skeleton',\n 'Stat',\n 'Columns',\n 'Table',\n 'Items',\n 'Item',\n 'Text',\n 'VisuallyHidden',\n 'Checkbox',\n 'ChoiceCards',\n 'FileField',\n 'Select',\n 'Slider',\n 'Switch',\n 'TextArea',\n 'TextField',\n 'YesNo',\n 'useRows',\n 'useRecord',\n 'useBreakdown',\n 'useNavigate',\n 'useHref',\n 'useComposer',\n 'useFormat',\n 'useLook',\n 'useToken',\n 'tokens',\n 'useSectionSize',\n 'useCommand',\n 'useGranted',\n 'useAction',\n 'useViewer',\n 'useFile',\n 'useFlags',\n 'useVisitor',\n 'useAnalytics',\n 'useMessage',\n 'useDeployment',\n 'useField',\n 'parseMoney',\n 'layoutPoint',\n 'useOptions',\n] as const;\n\n/**\n * What `@mistriwork/mistri/page` adds to the SDK: `definePage` and `defineSurface`, the platform's command form and per-row buttons,\n * `Scope` and `List`, and the platform's sections as blocks (components/sdk/page.tsx), and the rest of the house controls (the fields are the SDK's own).\n */\nconst PAGE_ONLY = [\n 'definePage',\n 'defineSurface',\n 'useAddressState',\n 'CommandForm',\n 'CommandButton',\n 'ActionButton',\n 'Scope',\n 'List',\n 'Grid',\n 'Panel',\n 'Tabs',\n 'Rows',\n 'RecordCard',\n 'Metric',\n 'Chart',\n 'Breakdown',\n 'Timeline',\n 'Tree',\n 'Gantt',\n 'Board',\n 'Calendar',\n 'Gallery',\n 'Split',\n 'Assistant',\n 'Choose',\n 'Search',\n 'DateRange',\n 'Steps',\n 'Avatar',\n 'CheckCards',\n 'DateField',\n 'Drawer',\n 'Modal',\n 'Pagination',\n 'Popover',\n 'Tooltip',\n 'defineUiKit',\n 'defaultUiKit',\n] as const;\n\n/**\n * Every value `@mistriwork/mistri/page` exports: the one import a page needs. `@mistriwork/mistri/ui` is a part of\n * it, so a component written for a record page moves to a free-form page without changing an import.\n */\nexport const PAGE_EXPORTS = [...UI_EXPORTS, ...PAGE_ONLY] as const;\n\n/** Where an App's compiled components are served: `/{app}/_components/<file>`. */\nexport const COMPONENTS_SEGMENT = '_components';\n\n/**\n * The reads a page's hooks send, as both sides need them: the host sends them (client/components/sdk/host.tsx), and\n * `mistri check` builds the same requests from a page's literal `show`, `query` and `sort` and holds them to the\n * page's reads by the rule the server refuses them with (http/tablesReached.ts strayRead). A path that crosses a\n * reference reads the table it lands on, so a check that only read the hook's first argument would pass a page the\n * browser is refused.\n */\nexport function uiViewRunBody(base: string, name: string, paths: readonly string[], query: string, limit: number) {\n return {\n count: 'none' as const,\n ...(query.trim() ? { query: query.trim() } : {}),\n view: { id: `ui:${base}`, name, base, columns: paths.map((path) => ({ path })), limit },\n };\n}\n/** The query box's text a `useRows` read runs: its conditions, then its order. */\nexport const uiRowsQuery = (query: string | undefined, sort: string | undefined): string =>\n [query ?? '', sort ? `sort ${sort}` : ''].join(' ');\n/** The text a `useBreakdown` read is asked as (`/api/breakdown`). */\nexport const uiBreakdownText = (base: string, query: string | undefined, measure: string | undefined, by: string): string =>\n [base, query ?? '', `${measure ?? 'count'} by ${by}`].filter(Boolean).join(' ');\n","/**\n * A view's answer as a component reads it: each row keyed by the paths it\n * asked for, in the words it wrote them (`customer_id.name`), whatever name\n * the server's result gave the column. Shared by the declared reads of a\n * custom section and the SDK's hooks, so both hand a component one shape.\n */\nimport type { UiRow } from './context.js';\nimport { resolvePath } from '@mistriwork/engine/shared/viewPaths.js';\nimport type { DatabaseSchema } from '@mistriwork/engine/shared/schema.js';\n\n/** Where a read's paths start, so a column's declared type can be found for each. */\ninterface RowsBase {\n schema: DatabaseSchema | null | undefined;\n base: string;\n}\n\ninterface ViewAnswer {\n view?: unknown;\n columns?: string[];\n rows?: UiRow[];\n errors?: Array<{ message: string }>;\n}\n\n/* The server hands a Postgres timestamp as the text the database stores\n (postgresDates.ts, on purpose: the grid shows what is stored), so\n `2026-10-12 19:16:00-04` reaches a component, and `Date.parse` reads that,\n and the `+00` of UTC, as NaN. A component computes with its times, so it is\n handed ISO 8601 with a full offset. Only the strict shape of a database's\n timestamp text is touched, and only in a column declared a timestamp: a\n string that merely looks like one is the author's. A timestamp without a\n zone stays without one; an offset is never invented. */\nconst TIMESTAMP_TEXT = /^(\\d{4}-\\d{2}-\\d{2})[ T](\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?)\\s*(Z|[+-]\\d{2}(?::?\\d{2})?)?$/;\n\nfunction isoTimestamp(value: unknown): unknown {\n if (typeof value !== 'string') return value;\n const match = TIMESTAMP_TEXT.exec(value.trim());\n if (!match) return value;\n const [, day, time, zone] = match;\n let offset = '';\n if (zone === 'Z') offset = 'Z';\n else if (zone) {\n const digits = zone.slice(1).replace(':', '');\n offset = `${zone[0]}${digits.slice(0, 2)}:${digits.slice(2) || '00'}`;\n }\n return `${day}T${time.length === 5 ? `${time}:00` : time}${offset}`;\n}\n\nconst isTimestampColumn = (type: string) => /timestamp|datetime/i.test(type ?? '');\n\nfunction timestampPaths(paths: readonly string[], typed: RowsBase | undefined): Set<string> {\n const found = new Set<string>();\n if (!typed?.schema) return found;\n for (const path of paths) {\n try {\n const resolved = resolvePath(typed.schema, typed.base, path);\n if (!resolved.rollup && !resolved.computed && !resolved.tags && !resolved.jsonKey && isTimestampColumn(resolved.column.type))\n found.add(path);\n } catch {\n /* A path the schema cannot resolve is the server's to refuse; it is read as it came. */\n }\n }\n return found;\n}\n\nexport function rowsByPath(paths: readonly string[], got: ViewAnswer, fallback: string, typed?: RowsBase): UiRow[] {\n if (!got || !('view' in got) || !Array.isArray(got.rows)) throw new Error(got?.errors?.[0]?.message ?? fallback);\n const columns = got.columns ?? [...paths];\n /* Each value by its path's own column, not by where the path stands in the\n asking list: a record page reads its row once for every section, in the\n order the first one named the columns, and hands each section its own\n columns of that one answer (composedReads.ts). Zipped by position, a\n section that named shared columns in another order read one column's\n value under another's name. The answer's view says which path each of its\n columns is. */\n const answered = (got.view as { columns?: Array<{ path?: unknown }> } | null | undefined)?.columns;\n const nameOf = new Map<string, string>();\n if (Array.isArray(answered))\n answered.forEach((column, i) => {\n if (typeof column?.path === 'string' && columns[i] !== undefined && !nameOf.has(column.path)) nameOf.set(column.path, columns[i]);\n });\n const stamps = timestampPaths(paths, typed);\n return got.rows.map((row) =>\n Object.fromEntries(\n paths.map((path, i) => {\n const value = row[nameOf.get(path) ?? columns[i] ?? path];\n return [path, stamps.has(path) ? isoTimestamp(value) : value];\n }),\n ),\n );\n}\n","/**\n * One of an App's messages said by a custom component (`useMessage`): the\n * server hands the catalog over already in the reader's words, each message\n * parsed (appPayload `messages`), and this says one with its arguments in\n * the reader's locale. A test's fixture hands it the catalog as text. The\n * formatter comes with the component SDK, which is loaded only where a\n * component is drawn, so no first page carries it.\n */\nimport IntlMessageFormat from 'intl-messageformat';\nimport { formatLocale } from '@mistriwork/kit/client/locale.js';\n\ntype Formatter = InstanceType<typeof IntlMessageFormat>;\ntype Parsed = Exclude<ConstructorParameters<typeof IntlMessageFormat>[0], string>;\n/** What a message's `{name}`s are filled with. */\ntype MessageArgs = Readonly<Record<string, string | number | boolean | Date | null | undefined>>;\n\n/** Built once per message and locale: a component re-renders often, and a formatter is costly to build. */\nconst parsed = new WeakMap<object, Map<string, Formatter>>();\nconst written = new Map<string, Formatter>();\n\nfunction formatter(message: string | readonly unknown[], locale: string): Formatter {\n if (typeof message === 'string') {\n const id = `${locale}\\n${message}`;\n let format = written.get(id);\n if (!format) written.set(id, (format = new IntlMessageFormat(message, locale)));\n return format;\n }\n let byLocale = parsed.get(message);\n if (!byLocale) parsed.set(message, (byLocale = new Map()));\n let format = byLocale.get(locale);\n if (!format) byLocale.set(locale, (format = new IntlMessageFormat(message as Parsed, locale)));\n return format;\n}\n\n/**\n * Say `key` from `catalog`. A key the catalog lacks is said as itself — a\n * section shows the slip rather than failing — and so is a message whose\n * arguments were not all given, since the formatter refuses a missing one.\n */\nexport function sayAppMessage(\n catalog: Readonly<Record<string, string | readonly unknown[]>> | undefined,\n key: string,\n args?: MessageArgs,\n): string {\n const message = catalog && Object.hasOwn(catalog, key) ? catalog[key] : undefined;\n if (message === undefined) return key;\n try {\n return String(formatter(message, formatLocale() ?? 'en-US').format(args as Record<string, string | number | boolean | Date>));\n } catch {\n return key;\n }\n}\n","/** What sdk/host says, in the custom components 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 isNotOneOfThisApps: '\"{resource}\" is not one of this App\\'s resources.',\n theRowsOfCould: 'The rows of \"{name}\" could not be read.',\n isNotAList: '\"{view}\" is not a list or dashboard this reader is served.',\n thePageCannotOpen: 'The page cannot open a form yet; try again once it has loaded.',\n thisPageCannotRun: 'This page cannot run commands.',\n});\n","/** Private evaluated presentation response. Never hydrate from SSR, persist in\n * browser storage or include assignment receipts in the public App manifest. */\nexport const APP_FLAG_VALUES_PATH = '/api/flags/evaluate';\nexport const EXPERIMENT_EXPOSURES_PATH = '/api/experiments/exposures';\nexport const EXPERIMENT_VISITOR_PATH = '/api/experiments/visitor';\nexport const EXPERIMENT_FORM_HEADER = 'x-mistri-experiment-form';\nexport const EXPERIMENT_ADDRESS_HEADER = 'x-mistri-experiment-address';\nexport interface ExperimentVisitorSelection {\n readonly form?: string;\n readonly address?: string;\n}\nexport function isAssignmentReceipt(value: unknown): value is string {\n return typeof value === 'string' && value.length <= 4096 && /^ar1\\.[A-Za-z0-9_-]{39,}$/.test(value);\n}\ntype AppFlagJson = null | boolean | string | number | readonly AppFlagJson[] | { readonly [key: string]: AppFlagJson };\nexport type AppFlagValue = boolean | string | number | { readonly [key: string]: AppFlagJson };\nexport interface AppFlagValues {\n readonly values: Readonly<Record<string, AppFlagValue>>;\n readonly version: { readonly global: number | null; readonly tenant: number | null };\n readonly diagnostics?: readonly ('provider_error' | 'invalid_snapshot' | 'scope_mismatch' | 'invalid_context' | 'missing_identity')[];\n /** Opaque server-issued proof, only for the corresponding served decision.\n * Its presence grants no client assignment or reporting authority. */\n readonly assignmentReceipts?: Readonly<Record<string, string>>;\n}\nexport interface AppFlagReader<V = Readonly<Record<string, AppFlagValue>>> {\n readonly ready: boolean;\n /** An absent/unready value throws. A flag never grants access. */\n get<K extends Extract<keyof V, string>>(key: K): V[K];\n}\n\n/** Small transport validator, independent of the private catalog/evaluator. */\nexport function captureAppFlagValues(input: unknown): AppFlagValues {\n const fail = (): never => {\n throw new Error('Invalid evaluated flag values.');\n };\n let nodes = 0;\n const copy = (value: unknown, depth: number): AppFlagJson => {\n if (++nodes > 32768 || depth > 12) return fail();\n if (value === null) return null;\n if (typeof value === 'boolean') return value;\n if (typeof value === 'string') return value.length <= 4096 ? value : fail();\n if (typeof value === 'number') return Number.isFinite(value) ? (Object.is(value, -0) ? 0 : value) : fail();\n if (!value || typeof value !== 'object') return fail();\n const array = Array.isArray(value),\n proto = Object.getPrototypeOf(value);\n if (array ? proto !== Array.prototype : proto !== Object.prototype && proto !== null) return fail();\n const keys = Reflect.ownKeys(value).filter((key) => !array || key !== 'length');\n if (keys.length > 256 || (array && keys.length !== value.length)) return fail();\n const entries = keys.map((key, i) => {\n if (\n typeof key !== 'string' ||\n key.length > 4096 ||\n ['__proto__', 'prototype', 'constructor'].includes(key) ||\n (array && key !== String(i))\n )\n return fail();\n const descriptor = Object.getOwnPropertyDescriptor(value, key)!;\n if (!descriptor.enumerable || !('value' in descriptor)) return fail();\n return [key, copy(descriptor.value, depth + 1)] as const;\n });\n return Object.freeze(array ? entries.map(([, item]) => item) : Object.fromEntries(entries));\n };\n const object = (value: AppFlagJson | undefined): Record<string, AppFlagJson> => {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return fail();\n return value as Record<string, AppFlagJson>;\n };\n const raw = object(copy(input, 0));\n if (Object.keys(raw).some((key) => !['values', 'version', 'diagnostics', 'assignmentReceipts'].includes(key))) return fail();\n const values = object(raw.values),\n version = object(raw.version);\n if (\n Object.keys(version).length !== 2 ||\n !['global', 'tenant'].every(\n (key) =>\n Object.hasOwn(version, key) &&\n (version[key] === null || (typeof version[key] === 'number' && Number.isSafeInteger(version[key]) && version[key] >= 0)),\n )\n )\n return fail();\n for (const [key, value] of Object.entries(values)) {\n if (!/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/.test(key) || value === null || Array.isArray(value)) return fail();\n }\n if (Object.hasOwn(raw, 'assignmentReceipts')) {\n for (const [key, receipt] of Object.entries(object(raw.assignmentReceipts))) {\n if (!Object.hasOwn(values, key) || !isAssignmentReceipt(receipt)) return fail();\n }\n }\n if (\n Object.hasOwn(raw, 'diagnostics') &&\n (!Array.isArray(raw.diagnostics) ||\n raw.diagnostics.length > 5 ||\n new Set(raw.diagnostics).size !== raw.diagnostics.length ||\n raw.diagnostics.some(\n (item) =>\n typeof item !== 'string' ||\n !['provider_error', 'invalid_snapshot', 'scope_mismatch', 'invalid_context', 'missing_identity'].includes(item),\n ))\n )\n return fail();\n return raw as unknown as AppFlagValues;\n}\n","/** What appFlags says, in the shell 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 visitorUnavailable: 'Visitor experiments are unavailable for this App or session.',\n ownerUnavailable: 'No active App flag owner.',\n requestOwnerRetired: 'Flag request owner retired.',\n responseOwnerChanged: 'Flag response owner changed.',\n valuesUnavailable: 'Evaluated flag values unavailable.',\n responseTooLarge: 'Flag response too large.',\n valuesNotReady: 'Evaluated flag values are not ready for this App.',\n undeclaredFlag: 'Undeclared evaluated flag: {key}.',\n});\n","/** Called once, on first SDK flags use. Nothing is hydrated from HTML/storage. */\nimport {\n APP_FLAG_VALUES_PATH,\n EXPERIMENT_VISITOR_PATH,\n EXPERIMENT_FORM_HEADER,\n EXPERIMENT_ADDRESS_HEADER,\n type ExperimentVisitorSelection,\n captureAppFlagValues,\n type AppFlagReader,\n type AppFlagValues,\n} from '../shared/appFlagValues.js';\nimport {\n assertSessionCurrent,\n captureTenantLease,\n sessionIdentity,\n subscribeSessionIdentity,\n subscribeTenantLease,\n tenantLeaseActive,\n} from '@mistriwork/kit/client/sessionIdentity.js';\nimport { appPresentation, subscribeAppPresentation } from '@mistriwork/kit/client/connectionTransition.js';\nimport type { createExperimentExposureQueue, ExposureCoverage } from './experimentExposure.js';\nimport { say } from './copy/shell/appFlags.js';\nimport { fetchServer } from '@mistriwork/kit/client/transport.js';\n\nconst emptyExposureCoverage = (): ExposureCoverage => ({\n queued: 0,\n inFlight: 0,\n recorded: 0,\n duplicate: 0,\n failed: 0,\n unknown: 0,\n dropped: 0,\n});\ntype ExposureSender = Parameters<typeof createExperimentExposureQueue>[0];\n\nexport interface AppFlagsSource extends AppFlagReader {\n snapshot(): AppFlagReader;\n subscribe(listener: () => void): () => void;\n load(): Promise<void>;\n /** Explicit browser actual-use lifecycle port. get/snapshot/load are passive;\n * only a committed render (or an explicit consumed feature) calls this. */\n commitUse?(reader: AppFlagReader, keys: readonly string[]): void;\n exposureCoverage?(): ExposureCoverage;\n /** Explicit user action only. Never called by flag reads or rendering. */\n establishVisitor?(selection?: ExperimentVisitorSelection): Promise<void>;\n}\n\nexport function createPageAppFlags(active: () => string | null) {\n let disposed = false;\n let visitorSelection: ExperimentVisitorSelection = Object.freeze({});\n const visitorHeaders = () => ({\n ...(visitorSelection.form ? { [EXPERIMENT_FORM_HEADER]: visitorSelection.form } : {}),\n ...(visitorSelection.address ? { [EXPERIMENT_ADDRESS_HEADER]: visitorSelection.address } : {}),\n });\n const source = createAppFlagsState({\n async exposure(owner, signal) {\n // Capture native ownership before loading optional experiment delivery.\n const identity = sessionIdentity(),\n lease = captureTenantLease(identity);\n if (identity.mode !== 'authenticated' && identity.mode !== 'anonymous') return;\n const { captureExperimentExposureSender } = await import('./experimentExposure.js');\n if (signal.aborted || !owner.current() || identity !== sessionIdentity() || lease !== captureTenantLease(identity)) return;\n return captureExperimentExposureSender(owner, { visitor: identity.mode === 'anonymous', selection: visitorSelection });\n },\n capture() {\n const appId = active(),\n identity = sessionIdentity(),\n presentation = appPresentation(),\n selection = visitorSelection;\n if (disposed || !appId || !presentation.available || identity.appId !== appId) throw new Error(say('ownerUnavailable'));\n assertSessionCurrent(identity);\n return {\n appId,\n current: () =>\n !disposed &&\n visitorSelection === selection &&\n active() === appId &&\n identity === sessionIdentity() &&\n presentation.generation === appPresentation().generation &&\n appPresentation().available &&\n (!identity.tenantRequired || tenantLeaseActive(identity)),\n };\n },\n async read(owner, signal) {\n const identity = sessionIdentity();\n if (!owner.current()) throw new Error(say('requestOwnerRetired'));\n const path = `${APP_FLAG_VALUES_PATH}?${new URLSearchParams({ app: owner.appId })}`;\n if (identity.tenantRequired) {\n const { tenantReadApi } = await import('./tenantTransport.js');\n if (!owner.current() || signal.aborted) throw new Error(say('requestOwnerRetired'));\n return tenantReadApi(path, undefined, owner.appId, signal);\n }\n const response = await fetchServer(path, {\n signal,\n method: 'GET',\n credentials: 'same-origin',\n cache: 'no-store',\n headers: identity.mode === 'authenticated' ? { 'x-mistri-account': identity.accountId! } : visitorHeaders(),\n });\n if (!owner.current() || signal.aborted) throw new Error(say('requestOwnerRetired'));\n try {\n assertSessionCurrent(identity, response.headers.get('x-mistri-account'));\n if (\n (identity.mode === 'anonymous' && response.headers.get('x-mistri-account')) ||\n response.status === 401 ||\n response.headers.get('x-mistri-app') !== owner.appId\n )\n throw new Error(say('responseOwnerChanged'));\n } catch (error) {\n const { invalidateSession } = await import('@mistriwork/kit/client/sessionLifecycle.js');\n if (owner.current()) invalidateSession('account-changed');\n throw error;\n }\n if (!response.ok) throw new Error(say('valuesUnavailable'));\n const text = await response.text();\n if (text.length > 1024 * 1024) throw new Error(say('responseTooLarge'));\n return JSON.parse(text) as unknown;\n },\n });\n const unsubscribe = [\n subscribeSessionIdentity(source.retire),\n subscribeTenantLease(source.retire),\n subscribeAppPresentation(source.retire),\n ];\n return Object.freeze({\n ...source,\n get ready() {\n return source.ready;\n },\n async establishVisitor(selection: ExperimentVisitorSelection = {}) {\n if (\n Object.keys(selection).some((key) => !['form', 'address'].includes(key)) ||\n (selection.form !== undefined && !/^[a-z0-9][a-z0-9-]{0,63}$/.test(selection.form)) ||\n (selection.address !== undefined &&\n (!selection.form ||\n typeof selection.address !== 'string' ||\n selection.address.length > 512 ||\n /[\\p{Cc}\\p{Cs}]/u.test(selection.address)))\n )\n throw new Error(say('visitorUnavailable'));\n const selected = Object.freeze({ ...selection });\n visitorSelection = selected;\n source.retire();\n const identity = sessionIdentity(),\n appId = active(),\n presentation = appPresentation();\n if (disposed || !appId || identity.appId !== appId || identity.mode !== 'anonymous' || !presentation.available)\n throw new Error(say('visitorUnavailable'));\n const current = () =>\n !disposed &&\n visitorSelection === selected &&\n active() === appId &&\n identity === sessionIdentity() &&\n presentation.generation === appPresentation().generation &&\n appPresentation().available;\n const response = await fetchServer(EXPERIMENT_VISITOR_PATH, {\n method: 'POST',\n credentials: 'same-origin',\n cache: 'no-store',\n headers: { 'content-type': 'application/json', 'x-mistri-visitor': 'establish', ...visitorHeaders() },\n body: '{}',\n signal: AbortSignal.timeout(10000),\n });\n if (!current() || !response.ok || response.headers.get('x-mistri-app') !== appId || response.headers.has('x-mistri-account'))\n throw new Error(say('visitorUnavailable'));\n const text = await response.text();\n if (!current() || text.length > 128) throw new Error(say('visitorUnavailable'));\n const reply = JSON.parse(text) as unknown;\n if (!reply || typeof reply !== 'object' || Object.keys(reply).length !== 1 || (reply as { ready?: unknown }).ready !== true)\n throw new Error(say('visitorUnavailable'));\n source.retire();\n await source.load();\n },\n dispose() {\n disposed = true;\n for (const stop of unsubscribe) stop();\n source.retire();\n },\n });\n}\ninterface AppFlagsOwner {\n readonly appId: string;\n current(): boolean;\n}\n\n/** SDK-only state. The host supplies ordinary transport and synchronous owner\n * retirement. No persistence, SSR adoption or client targeting. Imperative get\n * is passive; reporting requires the explicit commitUse lifecycle port. */\nexport function createAppFlagsState(port: {\n capture(): AppFlagsOwner;\n read(owner: AppFlagsOwner, signal: AbortSignal): Promise<unknown>;\n exposure?(owner: AppFlagsOwner, signal: AbortSignal): ExposureSender | undefined | Promise<ExposureSender | undefined>;\n}) {\n const listeners = new Set<() => void>();\n let generation = 0,\n controller: AbortController | undefined,\n pending: Promise<void> | undefined;\n let attempted = false;\n let exposures: ReturnType<typeof createExperimentExposureQueue> | undefined;\n let assignmentReceipts: AppFlagValues['assignmentReceipts'];\n let retiredCoverage = emptyExposureCoverage();\n const unavailable = () => new Error(say('valuesNotReady'));\n const reader = (data?: AppFlagValues, owner?: AppFlagsOwner, failure?: unknown): AppFlagReader => {\n const captured = generation,\n values = data?.values;\n const current = () => captured === generation && !!owner?.current();\n return Object.freeze({\n get ready() {\n return !!values && current();\n },\n get(key: string) {\n if (!values || !current()) throw failure instanceof Error ? failure : unavailable();\n if (!Object.hasOwn(values, key)) throw new Error(say('undeclaredFlag', { key }));\n return values[key];\n },\n });\n };\n let snapshot = reader();\n const notify = () => {\n for (const listener of [...listeners]) {\n try {\n listener();\n } catch {\n /* Observers cannot veto retirement. */\n }\n }\n };\n const retire = () => {\n ++generation;\n assignmentReceipts = undefined;\n if (exposures) {\n exposures.retire();\n const ended = exposures.coverage();\n retiredCoverage = Object.fromEntries(\n Object.entries(retiredCoverage).map(([key, value]) => [key, value + ended[key as keyof ExposureCoverage]]),\n ) as unknown as ExposureCoverage;\n exposures = undefined;\n }\n controller?.abort();\n controller = undefined;\n pending = undefined;\n attempted = false;\n snapshot = reader();\n notify();\n };\n return Object.freeze({\n get ready() {\n return snapshot.ready;\n },\n get: (key: string) => snapshot.get(key),\n snapshot: () => snapshot,\n commitUse(reader: AppFlagReader, keys: readonly string[]) {\n if (reader !== snapshot || !reader.ready) return;\n for (const key of keys) {\n const receipt = assignmentReceipts && Object.hasOwn(assignmentReceipts, key) ? assignmentReceipts[key] : undefined;\n if (receipt) exposures?.consume(receipt);\n }\n },\n exposureCoverage(): ExposureCoverage {\n const active = exposures?.coverage() ?? emptyExposureCoverage();\n return Object.freeze(\n Object.fromEntries(Object.entries(retiredCoverage).map(([key, value]) => [key, value + active[key as keyof ExposureCoverage]])),\n ) as unknown as ExposureCoverage;\n },\n subscribe(listener: () => void) {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n retire,\n load(): Promise<void> {\n if (pending) return pending;\n if (attempted) return Promise.resolve();\n attempted = true;\n const started = generation,\n abort = (controller = new AbortController());\n pending = (async () => {\n let owner: AppFlagsOwner | undefined;\n try {\n owner = port.capture();\n if (!owner.current()) throw unavailable();\n const raw = await port.read(owner, abort.signal);\n if (started !== generation || abort.signal.aborted || !owner.current()) return;\n const data = captureAppFlagValues(raw);\n if (started !== generation || abort.signal.aborted || !owner.current()) return;\n if (port.exposure && data.assignmentReceipts && Object.keys(data.assignmentReceipts).length) {\n const sender = await port.exposure(owner, abort.signal);\n if (started !== generation || abort.signal.aborted || !owner.current()) return;\n if (sender) {\n const { createExperimentExposureQueue } = await import('./experimentExposure.js');\n if (started !== generation || abort.signal.aborted || !owner.current()) return;\n assignmentReceipts = data.assignmentReceipts;\n exposures = createExperimentExposureQueue(sender);\n }\n }\n snapshot = reader(data, owner);\n notify();\n } catch (error) {\n if (started !== generation || abort.signal.aborted || (owner && !owner.current())) return;\n snapshot = reader(undefined, undefined, error);\n notify();\n } finally {\n if (started === generation) pending = undefined;\n }\n })();\n return pending;\n },\n });\n}\n","/**\n * Behavior analytics, declared: which built-in kinds an App collects, the\n * custom events its components may emit, and the funnels read over them.\n *\n * Off unless declared. A declaration only names things; what is stored, and\n * where, is the `analytics` store's (src/server/analytics/), bound by\n * configuration, never by the App. The finding codes `analytics-unknown-step`,\n * `analytics-not-collected` and `analytics-name-clash` are carried in\n * brackets, which is how `mistri check --json` reads a code.\n */\nimport { isFormView, type AppDef } from './appModel.js';\nimport { isRecord, VIEW_KEY } from '@mistriwork/engine/shared/model.js';\nimport { captureFlagDeclaration } from './appExperiments.js';\nimport { DURATION_WORDS, parseDuration } from '@mistriwork/engine/shared/duration.js';\n\nconst ANALYTICS_KINDS = ['views', 'commands', 'forms'] as const;\nexport type AnalyticsKind = (typeof ANALYTICS_KINDS)[number];\n\n/** Closed bounds: a declaration is data a person reads, not a pipeline. */\nexport const ANALYTICS_LIMITS = Object.freeze({ events: 64, eventFields: 16, funnels: 32, steps: 10, windowHours: 8760, valueLength: 200 });\n\n/** Exactly one of view, command, form (with an optional step) or event. */\nexport type AnalyticsStep =\n | { readonly view: string }\n | { readonly command: string }\n | { readonly form: string; readonly step?: string }\n | { readonly event: string };\n\nexport interface AnalyticsFunnel {\n readonly unit: 'subject' | 'visitor';\n /** `'72 hours'`: how long after its first step a subject may take the rest. */\n readonly conversionWindow: string;\n readonly steps: readonly AnalyticsStep[];\n}\n\nexport interface AnalyticsDeclaration {\n readonly collect?: readonly AnalyticsKind[];\n readonly events?: Readonly<Record<string, { readonly fields: readonly string[] }>>;\n readonly funnels?: Readonly<Record<string, AnalyticsFunnel>>;\n}\n\nconst NAME = /^[A-Za-z][A-Za-z0-9_.-]{0,127}$/;\nconst FIELD = /^[A-Za-z_][A-Za-z0-9_]{0,63}$/;\nconst FORBIDDEN = new Set(['__proto__', 'prototype', 'constructor']);\n\nfunction object(value: unknown, at: string, keys: readonly string[]): Record<string, unknown> {\n if (!isRecord(value)) throw new Error(`${at} must be an object.`);\n for (const key of Object.keys(value))\n if (!keys.includes(key)) throw new Error(`${at} has \"${key}\", which it does not take. It takes: ${keys.join(', ')}.`);\n return value;\n}\n\n/** The authored `analytics` block, closed and frozen. Throws a sentence naming where. */\nexport function normalizeAnalytics(input: unknown, where: string): AnalyticsDeclaration {\n const at = `${where}: analytics`;\n const raw = object(captureFlagDeclaration(input), at, ['collect', 'events', 'funnels']);\n let collect: AnalyticsKind[] | undefined;\n if (raw.collect !== undefined) {\n if (\n !Array.isArray(raw.collect) ||\n raw.collect.some((kind) => !ANALYTICS_KINDS.includes(kind as AnalyticsKind)) ||\n new Set(raw.collect).size !== raw.collect.length\n ) {\n if (Array.isArray(raw.collect) && raw.collect.includes('actions'))\n throw new Error(`${at} collect has \"actions\", which is now \"commands\": the command runs an action or a form starts.`);\n throw new Error(`${at} collect is a list of ${ANALYTICS_KINDS.map((kind) => `\"${kind}\"`).join(', ')}, each once.`);\n }\n collect = [...raw.collect] as AnalyticsKind[];\n }\n let events: Record<string, { fields: readonly string[] }> | undefined;\n if (raw.events !== undefined) {\n const declared = object(raw.events, `${at} events`, Object.keys(isRecord(raw.events) ? raw.events : {}));\n if (Object.keys(declared).length > ANALYTICS_LIMITS.events)\n throw new Error(`${at} events holds at most ${ANALYTICS_LIMITS.events} events.`);\n events = {};\n for (const [name, value] of Object.entries(declared)) {\n // An App's own names, a custom event's and a funnel's, are spelled as its view ids are.\n if (!VIEW_KEY.test(name))\n throw new Error(`${at} events \"${name}\" is not an id of lowercase letters, digits and \"-\", as a view id is ('compare-opened').`);\n const event = object(value, `${at} events \"${name}\"`, ['fields']);\n const fields = event.fields ?? [];\n if (\n !Array.isArray(fields) ||\n fields.length > ANALYTICS_LIMITS.eventFields ||\n fields.some((field) => typeof field !== 'string' || !FIELD.test(field) || FORBIDDEN.has(field)) ||\n new Set(fields).size !== fields.length\n ) {\n throw new Error(`${at} events \"${name}\" fields is a list of at most ${ANALYTICS_LIMITS.eventFields} distinct field names.`);\n }\n events[name] = Object.freeze({ fields: Object.freeze([...fields] as string[]) });\n }\n }\n let funnels: Record<string, AnalyticsFunnel> | undefined;\n if (raw.funnels !== undefined) {\n const declared = object(raw.funnels, `${at} funnels`, Object.keys(isRecord(raw.funnels) ? raw.funnels : {}));\n if (Object.keys(declared).length > ANALYTICS_LIMITS.funnels)\n throw new Error(`${at} funnels holds at most ${ANALYTICS_LIMITS.funnels} funnels.`);\n funnels = {};\n for (const [id, value] of Object.entries(declared)) {\n if (!VIEW_KEY.test(id))\n throw new Error(`${at} funnels \"${id}\" is not an id of lowercase letters, digits and \"-\", as a view id is ('apply-funnel').`);\n const here = `${at} funnel \"${id}\"`;\n const funnel = object(value, here, ['unit', 'conversionWindow', 'steps']);\n if (funnel.unit !== 'subject' && funnel.unit !== 'visitor') throw new Error(`${here} unit is \"subject\" or \"visitor\".`);\n const windowMs = parseDuration(funnel.conversionWindow);\n if (!windowMs || windowMs > ANALYTICS_LIMITS.windowHours * 3_600_000) {\n throw new Error(\n `${here} conversionWindow is ${DURATION_WORDS}, above zero and at most a year ('${ANALYTICS_LIMITS.windowHours} hours').`,\n );\n }\n if (!Array.isArray(funnel.steps) || funnel.steps.length < 2 || funnel.steps.length > ANALYTICS_LIMITS.steps) {\n throw new Error(`${here} steps is a list of 2 to ${ANALYTICS_LIMITS.steps} steps.`);\n }\n const steps = funnel.steps.map((entry, index): AnalyticsStep => {\n const step = `${here} step ${index + 1}`;\n if (isRecord(entry) && entry.action !== undefined)\n throw new Error(`${step} has \"action\", which is now \"command\": the id of the command it counts.`);\n const given = isRecord(entry) ? Object.keys(entry).filter((key) => ['view', 'command', 'form', 'event'].includes(key)) : [];\n if (given.length !== 1) throw new Error(`${step} names exactly one of view, command, form or event.`);\n const kind = given[0] as 'view' | 'command' | 'form' | 'event';\n const record = object(entry, step, kind === 'form' ? ['form', 'step'] : [kind]);\n const name = record[kind];\n if (typeof name !== 'string' || !NAME.test(name) || FORBIDDEN.has(name)) throw new Error(`${step} ${kind} is not a name.`);\n if (record.step !== undefined && (typeof record.step !== 'string' || !NAME.test(record.step)))\n throw new Error(`${step} step is not a name.`);\n return Object.freeze(\n kind === 'form' ? { form: name, ...(record.step === undefined ? {} : { step: record.step as string }) } : { [kind]: name },\n ) as AnalyticsStep;\n });\n funnels[id] = Object.freeze({\n unit: funnel.unit,\n conversionWindow: (funnel.conversionWindow as string).trim(),\n steps: Object.freeze(steps),\n });\n }\n }\n return Object.freeze({\n ...(collect ? { collect: Object.freeze(collect) } : {}),\n ...(events ? { events: Object.freeze(events) } : {}),\n ...(funnels ? { funnels: Object.freeze(funnels) } : {}),\n });\n}\n\n/** The beacon's path, after the App's mount. Reserved: no App id or view starts with an underscore. */\nexport const ANALYTICS_BEACON_PATH = '/_mistri/analytics';\n\n/** What a funnel's steps name, read off the parsed App: views and pages, the commands actions and forms run, forms and their steps. */\nexport function analyticsCatalog(app: AppDef, pages: ReadonlyArray<{ id: string }> = []): AnalyticsCatalog {\n const views = new Set<string>(pages.map((page) => page.id)),\n commands = new Set<string>();\n const forms = new Map<string, readonly string[]>();\n for (const [key, view] of Object.entries(app.views)) {\n if (isFormView(view)) {\n forms.set(\n key,\n (view.steps ?? []).map((step) => step.id),\n );\n commands.add(view.command.id);\n for (const step of view.steps ?? []) if (step.command) commands.add(step.command.id);\n } else views.add(key);\n }\n // The landing is kept apart from the views, and it is the first step of most funnels.\n if (app.landing) views.add(app.landing.view);\n for (const [name, resource] of Object.entries(app.resources ?? {})) {\n if (resource.form)\n forms.set(\n name,\n (resource.form.steps ?? []).map((step) => step.id),\n );\n for (const action of resource.actions ?? []) if ('command' in action && action.command) commands.add(action.command.id);\n }\n return { views, commands, forms };\n}\n\n/** What the references of a funnel are checked against. */\nexport interface AnalyticsCatalog {\n /** Every list or dashboard view key, the landing's, and every page id. */\n readonly views: ReadonlySet<string>;\n /** The command ids an action or a form runs: what the server sees at admission. */\n readonly commands: ReadonlySet<string>;\n /** A form's id (a form view key or a resource with a New form) to its step ids. */\n readonly forms: ReadonlyMap<string, readonly string[]>;\n /** The names `defineEvent` issued, when the caller can see them; absent, a business event is not judged. */\n readonly businessEvents?: ReadonlySet<string>;\n}\n\n/** The step's kind, and the built-in kind it needs collected. */\nexport const stepKind = (step: AnalyticsStep): 'view' | 'command' | 'form' | 'event' =>\n 'view' in step ? 'view' : 'command' in step ? 'command' : 'form' in step ? 'form' : 'event';\nconst COLLECTS = { view: 'views', command: 'commands', form: 'forms' } as const;\n\n/** Every problem a declaration has against the App it belongs to, each ending in its finding code. */\nexport function analyticsProblems(declaration: AnalyticsDeclaration, catalog: AnalyticsCatalog, where: string): string[] {\n const problems: string[] = [];\n const custom = Object.keys(declaration.events ?? {});\n for (const name of custom) {\n if (catalog.businessEvents?.has(name)) {\n problems.push(\n `${where}: analytics events \"${name}\" is also a business event of this App. Custom and business events share one namespace: rename the custom one. [analytics-name-clash]`,\n );\n }\n }\n for (const [id, funnel] of Object.entries(declaration.funnels ?? {})) {\n funnel.steps.forEach((step, index) => {\n const here = `${where}: analytics funnel \"${id}\" step ${index + 1}`;\n const kind = stepKind(step);\n let known = true;\n if ('view' in step) known = catalog.views.has(step.view);\n else if ('command' in step) known = catalog.commands.has(step.command);\n else if ('form' in step) {\n const steps = catalog.forms.get(step.form);\n known = !!steps && (step.step === undefined || steps.includes(step.step));\n } else known = custom.includes(step.event) || !catalog.businessEvents || catalog.businessEvents.has(step.event);\n if (!known) {\n problems.push(\n `${here} names ${kind} \"${(step as Record<string, string>)[kind]}${'step' in step && step.step ? `\", step \"${step.step}` : ''}\", which this App does not declare. [analytics-unknown-step]`,\n );\n return;\n }\n if (kind !== 'event' && !declaration.collect?.includes(COLLECTS[kind])) {\n problems.push(\n `${here} counts ${kind}s, and analytics.collect does not list \"${COLLECTS[kind]}\", so none is recorded. [analytics-not-collected]`,\n );\n }\n });\n }\n return problems;\n}\n","/**\n * Behavior events from the page, batched and sent to the App's one beacon\n * route. Nothing here identifies anyone: the server takes the unit from the\n * session or the visitor cookie, so a body carries only a kind, a declared\n * name, the declared fields and how long ago it happened. A failure is\n * dropped, never retried or stored: this is telemetry, not a record.\n */\nimport { ANALYTICS_BEACON_PATH } from '../shared/appAnalytics.js';\nimport { addHostListener } from '@mistriwork/kit/client/shellHost.js';\nimport { fetchServer } from '@mistriwork/kit/client/transport.js';\n\ntype AnalyticsFields = Readonly<Record<string, string | number | boolean>>;\ninterface Queued {\n readonly kind: 'event' | 'view' | 'form';\n readonly name: string;\n readonly at: number;\n readonly fields?: AnalyticsFields;\n readonly step?: string;\n readonly route?: string;\n}\n\nconst BATCH = 20,\n DELAY_MS = 1500;\n\nexport function createAnalyticsBeacon(options: {\n readonly send: (body: string) => void;\n readonly now?: () => number;\n readonly delayMs?: number;\n}) {\n const now = options.now ?? Date.now,\n delay = options.delayMs ?? DELAY_MS;\n let queue: Queued[] = [],\n timer: ReturnType<typeof setTimeout> | undefined;\n const flush = () => {\n if (timer) {\n clearTimeout(timer);\n timer = undefined;\n }\n if (!queue.length) return;\n const at = now(),\n events = queue.map(({ at: when, ...rest }) => ({ ...rest, age: Math.max(0, at - when) }));\n queue = [];\n try {\n options.send(JSON.stringify({ events }));\n } catch {\n /* telemetry is never a reason to fail a page */\n }\n };\n const add = (event: Omit<Queued, 'at'>) => {\n queue.push({ ...event, at: now() });\n if (queue.length >= BATCH) flush();\n else timer ??= setTimeout(flush, delay);\n };\n return Object.freeze({\n /** A component's own event: the name and fields the App declared (the server drops the rest). */\n emit(name: string, fields?: AnalyticsFields) {\n if (typeof name !== 'string' || !name || name.length > 128) throw new Error('An analytics event is named with its declared name.');\n add({ kind: 'event', name, ...(fields ? { fields: { ...fields } } : {}) });\n },\n view(name: string, route?: string) {\n add({ kind: 'view', name, ...(route ? { route } : {}) });\n },\n form(name: string, step?: string) {\n add({ kind: 'form', name, ...(step ? { step } : {}) });\n },\n flush,\n });\n}\n\n/** The page's beacon: a keepalive POST to this App's route, so a closing tab still sends. */\nexport function pageAnalyticsBeacon() {\n const beacon = createAnalyticsBeacon({\n send: (body) => {\n void fetchServer(ANALYTICS_BEACON_PATH, {\n method: 'POST',\n credentials: 'same-origin',\n cache: 'no-store',\n keepalive: true,\n headers: { 'content-type': 'application/json' },\n body,\n }).catch(() => {});\n },\n });\n if (typeof document !== 'undefined')\n addHostListener(document, 'visibilitychange', () => {\n if (document.visibilityState === 'hidden') beacon.flush();\n });\n return beacon;\n}\n","/**\n * The page's side of `@mistriwork/mistri/ui`: the host a component's kit and hooks\n * read (context.ts), over the App payload and the session endpoints, and the\n * page's own modules put on one frozen global for the host modules a\n * served component imports (packages/mistri/src/server/app/componentSdk.ts).\n *\n * Loaded with the first custom section or value renderer a page draws, never\n * before: an App without components pays nothing for it. Every read is an\n * ordinary request under the reader's session (`/api/view/run`,\n * `/api/breakdown`), authorized on the server; a resource is named as the\n * App names it, and one the App does not declare is refused here as a\n * mistake before it is refused there as a denial.\n */\nimport * as React from 'react';\nimport * as JsxRuntime from 'react/jsx-runtime';\nimport * as ReactDOM from 'react-dom';\nimport * as ui from './index.js';\nimport * as page from './page.js';\nimport './kit.css';\nimport {\n api,\n columnDisplay,\n columnLabel,\n labelPath,\n openRecord,\n pageApi,\n primaryKey,\n quote,\n rowLabel,\n state,\n toast,\n} from '@mistriwork/kit/client/core.js';\nimport { PAGE_LOAD_PATH } from '@mistriwork/engine/shared/pageRoutes.js';\nimport { ownedBy } from '@mistriwork/kit/client/requestIdentity.js';\nimport { sessionIdentity, subscribeSessionIdentity } from '@mistriwork/kit/client/sessionIdentity.js';\nimport { batchedBreakdown } from '@mistriwork/kit/client/breakdownBatch.js';\nimport { densityChoice } from '@mistriwork/kit/client/density.js';\nimport { fillComposer as fillPageComposer } from '@mistriwork/kit/client/components/composerDraft.js';\nimport { tableNamed, type TableMeta } from '@mistriwork/engine/shared/schema.js';\nimport { HOST_GLOBAL, uiBreakdownText, uiRowsQuery, uiViewRunBody } from '../../../shared/uiSdk.js';\nimport { pageBridge } from '@mistriwork/kit/client/uiBridge.js';\nimport type { DisplayRule } from '@mistriwork/kit/client/components/valueModel.js';\nimport { setPageHost, type UiDeployment, type UiHost, type UiLook, type UiOption, type UiResourceChoices, type UiRow } from './context.js';\nimport { rowsByPath } from './rows.js';\nimport { sayAppMessage } from './appMessage.js';\nimport { publicMessages } from './publicMessages.js';\nimport { say } from '../../copy/components/components/sdk/host.js';\nimport { served, shownUnplaced } from '@mistriwork/kit/client/addressMount.js';\nimport { filesOnLease, pictureOnLeaseNow } from '@mistriwork/kit/client/fileSource.js';\nimport { hrefFor, viewPath } from '../../publicAddress.js';\nimport { publicFormAddress } from '../../../shared/appAddress.js';\nimport { createPageAppFlags } from '../../appFlags.js';\nimport { pageAnalyticsBeacon } from '../../analyticsBeacon.js';\nimport { navFollow, shellRoot } from '@mistriwork/kit/client/shellHost.js';\nimport { shell } from '@mistriwork/kit/client/shellMode.js';\n\n/** An in-App address as the shell writes it for this session: a tenant's carries its selector. Anything it cannot read stays as given. */\nfunction tenantQualified(href: string): string {\n const { tenant } = sessionIdentity();\n const qualify = shell().tenantLinks?.qualify;\n if (!tenant || !qualify) return href;\n try {\n return qualify(href, tenant.appId, tenant.tenantId);\n } catch {\n return href;\n }\n}\n\nfunction tableOf(resource: string): TableMeta {\n const table = state.schema ? (tableNamed(state.schema, resource) as TableMeta | undefined) : undefined;\n const declared = (pageBridge.activeApp() as { resources?: Record<string, unknown> } | null)?.resources ?? {};\n if (!table || (Object.keys(declared).length && !Object.hasOwn(declared, table.id) && !table.union)) {\n throw new Error(say('isNotOneOfThisApps', { resource }));\n }\n return table;\n}\n\n/* A free-form page's own reads say which page asks, so the server holds them to its manifest too. */\nasync function viewRows(\n table: TableMeta,\n show: readonly string[] | undefined,\n query: string,\n limit: number,\n page?: string,\n where?: unknown,\n offset?: number,\n): Promise<UiRow[]> {\n const paths = show?.length ? [...show] : table.columns.map((column) => column.name);\n const body = {\n ...uiViewRunBody(table.id, table.name, paths, query, limit),\n /* Sent as written, not compiled here: the server judges it against the columns this reader is served. */\n ...(where === undefined ? {} : { where }),\n ...(offset ? { offset } : {}),\n };\n const got = page ? await pageApi(page, '/api/view/run', body) : await api('/api/view/run', body);\n return rowsByPath(paths, got, say('theRowsOfCould', { name: table.name }), { schema: state.schema, base: table.id });\n}\n\n/* A resource's own records as a picker's choices (`useOptions('country')`): the ordinary read of the resource — the\n page's own when a free-form page asks, so the server holds it to the manifest — labelled by the title column the\n catalog names, which a record page's breadcrumb uses. Row policy and field projection are the server's, as for any read. */\nfunction choiceShape(resource: string): { table: TableMeta; by: string; label: string } {\n const table = tableOf(resource);\n const by = (primaryKey(table) as string[])[0];\n const label = (labelPath(table) as string | undefined) ?? by;\n return { table, by, label };\n}\nasync function resourceChoices(\n field: UiResourceChoices,\n text: string,\n offset: number,\n limit: number,\n): Promise<{ options: UiOption[]; more: boolean }> {\n const { table, by, label } = choiceShape(field.resource);\n const search = text.trim() ? `${label} contains ${quote(text.trim())}` : '';\n const got = await viewRows(\n table,\n [...new Set([by, label])],\n [search, `sort ${label}`].join(' '),\n limit + 1,\n field.page,\n field.where,\n offset,\n );\n const options = got.slice(0, limit).flatMap((row) => {\n const key = row[by];\n return typeof key === 'string' || typeof key === 'number' ? [{ key, label: String(rowLabel(table, row)) }] : [];\n });\n return { options, more: got.length > limit };\n}\nasync function resourceChoiceName(field: UiResourceChoices, key: string | number): Promise<UiOption | null> {\n const { table, by, label } = choiceShape(field.resource);\n const [row] = await viewRows(table, [...new Set([by, label])], `${by} = ${quote(String(key))}`, 1, field.page, field.where);\n return row ? { key, label: String(rowLabel(table, row)) } : null;\n}\n\nconst root = () => shellRoot();\n\nfunction look(): UiLook {\n const attribute = root().dataset.theme;\n const dark = attribute === 'dark' || (!attribute && window.matchMedia?.('(prefers-color-scheme: dark)').matches);\n const density = densityChoice() as UiLook['density'];\n const id = root().dataset.visualTheme ?? 'workshop';\n return { look: id, preset: root().dataset.themePreset ?? id, mode: dark ? 'dark' : 'light', density };\n}\n\n/** The App as this deployment presents it: read from the payload the page was served (the overrides are already in it). */\nfunction deployment(): UiDeployment {\n const app = pageBridge.activeApp() as {\n name?: string;\n ui?: { logo?: string | { href?: string; markHref?: string }; theme?: { preset?: string }; locale?: string };\n } | null;\n const logo = app?.ui?.logo;\n return {\n name: app?.name ?? '',\n mark: logo && typeof logo === 'object' ? (logo.markHref ?? logo.href ?? null) : null,\n theme: app?.ui?.theme?.preset ?? null,\n locale: app?.ui?.locale ?? null,\n basePath: served(''),\n };\n}\n\nlet flags: ReturnType<typeof createPageAppFlags> | undefined;\nlet beacon: ReturnType<typeof pageAnalyticsBeacon> | undefined;\nconst pageHost: UiHost = {\n analytics: { emit: (name, fields) => (beacon ??= pageAnalyticsBeacon()).emit(name, fields) },\n get flags() {\n return (flags ??= createPageAppFlags(() => {\n const app = pageBridge.activeApp() as { id?: string } | null;\n return app?.id && app.id === state.activeConnection ? app.id : null;\n }));\n },\n /* The connection and the session's epoch: a sign-in, a sign-out or another account never reads another's cached rows. */\n get scope() {\n return [state.activeConnection ?? '', sessionIdentity().epoch];\n },\n /* One row past the page is asked for and dropped: whether there are more is then the server's answer, where a\n full page would only say there might be. No total is asked for (`count: 'none'`), so none is reported. */\n async rows(resource, { where, query, show, sort, limit, page, keys, offset }) {\n const table = tableOf(resource);\n const paths = keys && show?.length ? [...new Set([...show, ...(primaryKey(table) as string[])])] : show;\n const size = limit ?? 20;\n const got = await viewRows(table, paths, uiRowsQuery(query, sort), size + 1, page, where, offset);\n return { rows: got.slice(0, size), more: got.length > size };\n },\n async record(resource, key, show, asking = {}) {\n const table = tableOf(resource);\n const keyed = primaryKey(table) as string[];\n const where = keyed.map((column) => `${column} = ${quote(String(key[column]))}`).join(' and ');\n /* The key rides beside `show`, as a read's rows carry it: the record's type says it is there. */\n const paths = show?.length ? [...new Set([...show, ...keyed])] : show;\n return (await viewRows(table, paths, where, 1, asking.page))[0];\n },\n async breakdown(resource, { by, measure, query, limit, page }) {\n const table = tableOf(resource);\n const text = uiBreakdownText(table.id, query, measure, by);\n /* A page's breakdown is asked alone: a batch is many sections' and carries no one page's name. */\n const got = page\n ? ((await pageApi(page, '/api/breakdown', { text, ...(limit ? { limit } : {}) })) as { rows?: UiRow[] })\n : await batchedBreakdown<{ rows?: UiRow[] }>({ text, limit });\n return got.rows ?? [];\n },\n async load(page, params, loader) {\n /* A tenant's lease answers a refusal as a reply, not a throw (tenantTransport.ts): it is the page's error either way. */\n const got = (await pageApi(page, PAGE_LOAD_PATH, { page, params, ...(loader === undefined ? {} : { loader }) })) as {\n data?: unknown;\n error?: unknown;\n };\n if (typeof got.error === 'string') throw new Error(got.error);\n return got.data;\n },\n openRecord(resource, key, options = {}) {\n const table = tableOf(resource);\n const label = options.label ?? '';\n if ((options.mode === 'drawer' || options.mode === 'modal') && pageBridge.openPeek)\n pageBridge.openPeek(table.id, { ...key }, label, options.mode);\n else void openRecord(table.id, { ...key }, label);\n },\n openView(view, options) {\n if (!pageBridge.openView?.(view, options)) throw new Error(say('isNotAList', { view }));\n },\n /* The shell's own listener reads the address again (navFollow), so no entry is made by hand and no App is reloaded.\n A tenant's session reads an address with no selector as a link to some other tenant, and that is a fresh document\n (tenantNavigation.ts): so the address goes in the form the shell writes it, with this tenant's selector. */\n follow: (href) => navFollow(tenantQualified(href)),\n /* The page's command pipeline and forms, registered by sdk/commands.tsx (uiBridge.ts says why). */\n openForm(view, prefill = {}) {\n if (!pageBridge.commands) throw new Error(say('thePageCannotOpen'));\n pageBridge.commands.openForm(view, prefill);\n },\n /* Asked of the bridge at each call, not as the handle is made: a page draws before sdk/commands.tsx has loaded. */\n form(view) {\n const served = () => {\n if (!pageBridge.commands) throw new Error(say('thePageCannotOpen'));\n return pageBridge.commands.form(view);\n };\n return {\n state: async () => served().state(),\n open: async (input, options) => served().open(input, options),\n startOver: async () => served().startOver(),\n };\n },\n /* A tenant's link to hand out: a view a visitor reads by the tenant's public address, a public\n form (never one of the payload's rooms) by its intake address. Only the tenant's own lease is served them. */\n publicLink(view) {\n const app = pageBridge.activeApp() as { id?: string; views?: object; addresses?: { intake?: string; public?: string } } | null;\n if (!app?.id || typeof view !== 'string' || !view) return undefined;\n const room = Boolean(app.views && Object.hasOwn(app.views, view));\n const address = room ? app.addresses?.public : app.addresses?.intake;\n const path = room ? viewPath(view) : publicFormAddress(app.id, view);\n if (!address || !path) return undefined;\n return `${window.location.origin}${shownUnplaced(path)}?via=${encodeURIComponent(address)}`;\n },\n href: (to) => hrefFor(to),\n fillComposer(text, mode) {\n return fillPageComposer(text, mode);\n },\n fileAddress(resource, key, options = {}, drawn) {\n const table = tableOf(resource);\n /* A tenant's file is never a link (fileSource.ts): an <img> sends no lease, so the file route refuses it. It is\n read on the lease into a blob the shell's own attachments share, and has an address once that lands. */\n if (filesOnLease()) return pictureOnLeaseNow(table.id, { ...key }, options.thumbnail ? 'thumb' : undefined, drawn ?? (() => {}));\n return served(\n `/api/file?${new URLSearchParams({\n ...ownedBy(state.activeConnection ?? null),\n table: table.id,\n key: JSON.stringify(key),\n inline: '1',\n ...(options.thumbnail ? { variant: 'thumb' } : {}),\n })}`,\n );\n },\n command: (ref, page) =>\n pageBridge.commands?.command(ref, page) ?? {\n label: ref,\n granted: false,\n available: async () => false,\n run: async () => ({ status: 'refused', message: say('thisPageCannotRun') }),\n open: async () => ({ status: 'refused', message: say('thisPageCannotRun') }),\n },\n action: (ref, reads) =>\n pageBridge.commands?.action(ref, reads) ?? {\n label: ref,\n granted: false,\n available: async () => false,\n run: async () => ({ status: 'refused', message: say('thisPageCannotRun') }),\n open: async () => ({ status: 'refused', message: say('thisPageCannotRun') }),\n },\n /* The platform's own picker reads (CommandReference.tsx), through the reader's connection: loaded where a component\n first asks, so a page that draws no picker never carries it. */\n async choices(field, text, { offset, limit }) {\n if ('resource' in field) return resourceChoices(field, text, offset, limit);\n const { commandChoicePage } = await import('../CommandReference.js');\n const page = await commandChoicePage(field, text, state.activeConnection ?? '', offset, limit);\n return {\n options: page.choices.map(({ value, label, detail }) => ({ key: value, label, ...(detail ? { detail } : {}) })),\n more: page.more,\n };\n },\n async choiceName(field, key) {\n if ('resource' in field) return resourceChoiceName(field, key);\n const { readReferenceName } = await import('../CommandReference.js');\n const named = await readReferenceName(field, key, state.activeConnection ?? '');\n return named && { key, ...named };\n },\n viewer() {\n const identity = sessionIdentity();\n if (identity.mode !== 'authenticated' || !identity.accountId) return { signedIn: false, roles: [] };\n const app = pageBridge.activeApp() as { viewerRoles?: readonly string[] } | null;\n return { signedIn: true, account: identity.accountId, roles: app?.viewerRoles ?? [] };\n },\n subscribeViewer: (listener) => subscribeSessionIdentity(listener),\n column(resource, name) {\n const table = state.schema ? (tableNamed(state.schema, resource) as TableMeta | undefined) : undefined;\n if (!table) return undefined;\n return {\n meta: table.columns.find((column) => column.name === name),\n rule: columnDisplay(table.id, name) as DisplayRule | null,\n label: (columnLabel(table.id, name) as string | null) ?? name,\n };\n },\n look,\n deployment,\n token: (name) => getComputedStyle(root()).getPropertyValue(name).trim(),\n subscribeLook(listener) {\n const observer = new MutationObserver(listener);\n observer.observe(root(), { attributes: true, attributeFilter: ['data-theme', 'data-visual-theme', 'data-palette', 'style', 'class'] });\n const media = window.matchMedia?.('(prefers-color-scheme: dark)');\n media?.addEventListener?.('change', listener);\n return () => {\n observer.disconnect();\n media?.removeEventListener?.('change', listener);\n };\n },\n get app() {\n return pageBridge.inAppMode();\n },\n announce: (text, tone) => toast(text, tone),\n rowTitle(resource, row) {\n const table = state.schema ? (tableNamed(state.schema, resource) as TableMeta | undefined) : undefined;\n return table ? (rowLabel(table, row) as string) : undefined;\n },\n /* A public form's page has no App payload: its components say from the catalog served beside them. */\n message: (key, args) =>\n sayAppMessage(\n (pageBridge.activeApp() as { messages?: Readonly<Record<string, readonly unknown[]>> } | null)?.messages ?? publicMessages(),\n key,\n args,\n ),\n};\n\n/* The page's modules, for the host modules a component's bare imports reach.\n Frozen: a component may read them, and none may swap one for another. */\nif (!(HOST_GLOBAL in globalThis)) {\n Object.defineProperty(globalThis, HOST_GLOBAL, {\n value: Object.freeze({\n modules: Object.freeze({\n react: React,\n 'react/jsx-runtime': JsxRuntime,\n 'react-dom': ReactDOM,\n '@mistriwork/mistri/ui': ui,\n '@mistriwork/mistri/page': page,\n }),\n }),\n enumerable: false,\n writable: false,\n configurable: false,\n });\n}\nsetPageHost(pageHost);\n"],"file":"host-BKoLXcmr.js"}
|