@protobase/ui 0.122.0 → 0.122.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/alias-check-panel.d.ts +13 -0
- package/dist/account/alias-check-panel.js +40 -0
- package/dist/account/alias-check-run.d.ts +37 -0
- package/dist/account/alias-check-run.js +24 -0
- package/dist/account/alias-check.d.ts +15 -0
- package/dist/account/alias-check.js +16 -0
- package/dist/account/blocks/personal-mail-block.js +3 -1
- package/dist/account/mail-sender-dialog.d.ts +4 -1
- package/dist/account/mail-sender-dialog.js +10 -2
- package/dist/account/mail-senders-section.d.ts +8 -3
- package/dist/account/mail-senders-section.js +25 -6
- package/dist/account/messages.d.ts +2 -2
- package/dist/account/use-alias-check.d.ts +12 -0
- package/dist/account/use-alias-check.js +54 -0
- package/dist/activity-chart/messages.d.ts +2 -2
- package/dist/app/charts/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-messages.d.ts +2 -2
- package/dist/app/conversation/messages.d.ts +2 -2
- package/dist/app/conversation-page/messages.d.ts +2 -2
- package/dist/app/create/messages.d.ts +2 -2
- package/dist/app/custom-section.d.ts +1 -1
- package/dist/app/delete/messages.d.ts +2 -2
- package/dist/app/displays/list-cards.d.ts +1 -1
- package/dist/app/displays/messages.d.ts +2 -2
- package/dist/app/embedded-list/messages.d.ts +2 -2
- package/dist/app/export/messages.d.ts +2 -2
- package/dist/app/field-messages.d.ts +2 -2
- package/dist/app/field-types/runner-install/messages.d.ts +2 -2
- package/dist/app/field-types/widget-part.d.ts +1 -1
- package/dist/app/field-types/workflow/definition.d.ts +1 -1
- package/dist/app/field-types/workflow/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-status/messages.d.ts +2 -2
- package/dist/app/file-viewers/messages.d.ts +2 -2
- package/dist/app/focus/messages.d.ts +2 -2
- package/dist/app/gallery/gallery-layout.d.ts +2 -2
- package/dist/app/gallery/messages.d.ts +2 -2
- package/dist/app/hand-order/messages.d.ts +2 -2
- package/dist/app/history/messages.d.ts +2 -2
- package/dist/app/import/messages.d.ts +2 -2
- package/dist/app/list-messages.d.ts +2 -2
- package/dist/app/messages.d.ts +2 -2
- package/dist/app/pages/custom-boundary.d.ts +1 -1
- package/dist/app/pages/custom-chosen.d.ts +1 -1
- package/dist/app/pages/messages.d.ts +2 -2
- package/dist/app/record-chart/messages.d.ts +2 -2
- package/dist/app/record-messages.d.ts +2 -2
- package/dist/app/record-mode/shown-layout.d.ts +1 -1
- package/dist/app/record-row/messages.d.ts +2 -2
- package/dist/app/related-cards/messages.d.ts +2 -2
- package/dist/app/runtime/messages.d.ts +2 -2
- package/dist/app/saved/saved-list.d.ts +1 -1
- package/dist/app/search/messages.d.ts +2 -2
- package/dist/app/searches/messages.d.ts +2 -2
- package/dist/app-shell/messages.d.ts +2 -2
- package/dist/assistant-dock/messages.d.ts +2 -2
- package/dist/auth/messages.d.ts +2 -2
- package/dist/chat/messages.d.ts +2 -2
- package/dist/compact-table/messages.d.ts +2 -2
- package/dist/data-grid/column-spec.d.ts +1 -1
- package/dist/data-grid/messages.d.ts +2 -2
- package/dist/filter-panel/messages.d.ts +2 -2
- package/dist/inline-child-table/messages.d.ts +2 -2
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/locale/en.js +7 -0
- package/dist/locale/en.json.d.ts +7 -0
- package/dist/locale/messages.d.ts +14 -0
- package/dist/locale/nl.js +7 -0
- package/dist/locale/texts-gate.d.ts +1 -1
- package/dist/mailbox/messages.d.ts +2 -2
- package/dist/mentions/messages.d.ts +2 -2
- package/dist/mocks/customers.d.ts +1 -1
- package/dist/mocks/invoices.d.ts +1 -1
- package/dist/mocks/orders.d.ts +3 -3
- package/dist/notifications/bell/messages.d.ts +2 -2
- package/dist/organizations/messages.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/plugins/before-sign-in.d.ts +1 -1
- package/dist/plugins/messages.d.ts +2 -2
- package/dist/primitives/messages.d.ts +2 -2
- package/dist/record-view/messages.d.ts +2 -2
- package/dist/shell/assets/{account-page-Dw3W4H6l.js → account-page-BESKgoYT.js} +2 -2
- package/dist/shell/assets/{app-B4Vl9AEn.js → app-DANB5cb3.js} +5 -5
- package/dist/shell/assets/{assistant-shell-DyBHCHuy.js → assistant-shell-DUxCRpci.js} +2 -2
- package/dist/shell/assets/{board-display-BlJwyapl.js → board-display-Blx6nTDs.js} +2 -2
- package/dist/shell/assets/{calendar-display-C2vvdk6I.js → calendar-display-SPyIwDLG.js} +2 -2
- package/dist/shell/assets/{call-rings-DKHVIKwh.js → call-rings-BGJkCQwP.js} +2 -2
- package/dist/shell/assets/{calls-CDleoS9h.js → calls-BRoDIvWu.js} +2 -2
- package/dist/shell/assets/{circle-alert-DYA4c4B7.js → circle-alert-BZyGgZSj.js} +2 -2
- package/dist/shell/assets/{composed-page-BtPlNGV4.js → composed-page-By2d8F85.js} +2 -2
- package/dist/shell/assets/{composer-section-zJurnYKu.js → composer-section-BiCIOqwU.js} +2 -2
- package/dist/shell/assets/{connect-route-oTxVxU6f.js → connect-route-BZsnJGaF.js} +2 -2
- package/dist/shell/assets/{copy-field-D_iD-sgT.js → copy-field-DpbjVuK4.js} +2 -2
- package/dist/shell/assets/{create-route-z6BVZwk3.js → create-route-DglCC2Tk.js} +2 -2
- package/dist/shell/assets/{custom-step-container-field-vl09jwo_.js → custom-step-container-field-DJbluU0F.js} +2 -2
- package/dist/shell/assets/{embedded-list-B0wJoqm3.js → embedded-list-CepLmiOu.js} +3 -3
- package/dist/shell/assets/en-Cn7SAD9K.js +2 -0
- package/dist/shell/assets/{export-dialog-DN8mwLKi.js → export-dialog-B9fvLoT2.js} +2 -2
- package/dist/shell/assets/export-worker-C4HtUYaa.js +15 -0
- package/dist/shell/assets/{first-organization-page-CN5x-0QP.js → first-organization-page-CSIsJmoQ.js} +2 -2
- package/dist/shell/assets/{graph-view-w7lrzAmt.js → graph-view-IPDrZVmC.js} +2 -2
- package/dist/shell/assets/{group-donut-g3nDENBg.js → group-donut-DRT539D9.js} +2 -2
- package/dist/shell/assets/{guest-call-page-_-o8LpKg.js → guest-call-page-IxjqrW0F.js} +3 -3
- package/dist/shell/assets/{html-viewer-Bfjrowsp.js → html-viewer-C-FI9kDC.js} +2 -2
- package/dist/shell/assets/{import-dialog-DeGzN4TA.js → import-dialog-DDaXN05w.js} +2 -2
- package/dist/shell/assets/{import-table-dialog-BcSfnTNF.js → import-table-dialog-CHWoi7_S.js} +2 -2
- package/dist/shell/assets/{index-Bu8r1CM4.js → index-tI-2Oomu.js} +1 -1
- package/dist/shell/assets/{invitations-page-CVkFsOgL.js → invitations-page-BE0tj3Aw.js} +2 -2
- package/dist/shell/assets/{layout-grid-Cmzqqy11.js → layout-grid-7R6t_Nlh.js} +2 -2
- package/dist/shell/assets/{legend-item-dXfws39r.js → legend-item-C-DA-JTo.js} +2 -2
- package/dist/shell/assets/{list-page-C7H5G772.js → list-page-Dj-oZ99M.js} +4 -4
- package/dist/shell/assets/{maplibre-C1Y1UO5-.js → maplibre-D0uTAdwG.js} +2 -2
- package/dist/shell/assets/{markdown-content-Be_Vsipv.js → markdown-content-BpKVfSRq.js} +2 -2
- package/dist/shell/assets/{members-page-vnYWXsnN.js → members-page-Ced4meCg.js} +2 -2
- package/dist/shell/assets/{message-content-BgtfnCSo.js → message-content-DSZOlZUY.js} +2 -2
- package/dist/shell/assets/{messages-BJNycdpS.js → messages-CEK97JXa.js} +2 -2
- package/dist/shell/assets/nl-BU1R957e.js +2 -0
- package/dist/shell/assets/{organization-page-Cbb97Ebt.js → organization-page-Dp_D2xbC.js} +2 -2
- package/dist/shell/assets/{organizations-page-Cq7fzpZa.js → organizations-page-CtrgjIWL.js} +2 -2
- package/dist/shell/assets/parse-worker-zWUgfCm6.js +35 -0
- package/dist/shell/assets/{pending-invitation-row-xX2VAQLM.js → pending-invitation-row-Bs60Zx0i.js} +2 -2
- package/dist/shell/assets/{period-chart-CgHgMZ2l.js → period-chart-CIgxhMTn.js} +2 -2
- package/dist/shell/assets/{person-row-CjXGB6eY.js → person-row-BH3iAvuG.js} +2 -2
- package/dist/shell/assets/{public-form-page-DROsvcsL.js → public-form-page-NPPZ_rgo.js} +2 -2
- package/dist/shell/assets/{record-lines-D-pcqwS2.js → record-lines-hY9wRXCf.js} +2 -2
- package/dist/shell/assets/{record-map-COL77PxJ.js → record-map-Dzt7xpK8.js} +2 -2
- package/dist/shell/assets/{record-opens-AboxTqcw.js → record-opens-DN1LnH9j.js} +2 -2
- package/dist/shell/assets/{record-page-Ctj-uKq1.js → record-page-CSsNYC0Q.js} +3 -3
- package/dist/shell/assets/{record-preview--cdSUcRq.js → record-preview-B1WiPOw4.js} +2 -2
- package/dist/shell/assets/{records-map-C5es9EjJ.js → records-map-BLcMBygH.js} +2 -2
- package/dist/shell/assets/{render-node-BbfwkxfK.js → render-node-DyvozeRy.js} +3 -3
- package/dist/shell/assets/{reorder-button-ClD-Ptqm.js → reorder-button-NNfcfua7.js} +2 -2
- package/dist/shell/assets/{run-trace-view-BlfDwdyz.js → run-trace-view-BoBj-5R0.js} +2 -2
- package/dist/shell/assets/{runner-install-field-E1dq6epi.js → runner-install-field-BdfsPY9H.js} +2 -2
- package/dist/shell/assets/{runtime-update-Dwwvn6ea.js → runtime-update-CRO1fS5O.js} +2 -2
- package/dist/shell/assets/{shared-protobase-ui-9v4EmiO7.js → shared-protobase-ui-BbJCcQ0y.js} +1 -1
- package/dist/shell/assets/{sheet-source-C2r0xsKl.js → sheet-source-DSJ73Heh.js} +3 -3
- package/dist/shell/assets/{sign-in-policy-page-D9_X1fyz.js → sign-in-policy-page-RaxuDREW.js} +2 -2
- package/dist/shell/assets/{start-block-queries-CSHzGGu1.js → start-block-queries-DTa6akPc.js} +2 -2
- package/dist/shell/assets/{step-catalog-DFsFCluU.js → step-catalog-UHxllpni.js} +2 -2
- package/dist/shell/assets/{step-panel-DmMSxA8x.js → step-panel-BkpaCVJd.js} +2 -2
- package/dist/shell/assets/{timeline-display-Br58uLQ8.js → timeline-display-CFIOdA59.js} +2 -2
- package/dist/shell/assets/{trash-DzKZquG9.js → trash-IV6Ox5bV.js} +2 -2
- package/dist/shell/assets/{update-set-DwG0XGif.js → update-set-BTHuLrBr.js} +2 -2
- package/dist/shell/assets/{use-calendar-move-DusjGuvd.js → use-calendar-move-CaU_5smA.js} +2 -2
- package/dist/shell/assets/{use-display-rows-llOhHJvA.js → use-display-rows-C_H7lxLW.js} +2 -2
- package/dist/shell/assets/{use-my-invitations-tnMnjktl.js → use-my-invitations-DSp8OwP9.js} +2 -2
- package/dist/shell/assets/{use-paged-search-BWcRlArY.js → use-paged-search-DOcO0Rbz.js} +2 -2
- package/dist/shell/assets/{use-run-trace-B2K4dLw0.js → use-run-trace-BsH3vq5k.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-ted3LYxk.js → use-workflow-page-DDl2MUPY.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-f_gVwLT2.js → use-workflow-types-nJ6UhHeL.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-T1QChoXq.js → workflow-canvas-xG0FmrJj.js} +2 -2
- package/dist/shell/assets/{workflow-field-D0Yp-t1X.js → workflow-field-fuI75chK.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-CJmYosOs.js → workflow-graph-editor-DCCcZ5AP.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-CaJfI9Xi.js → workflow-run-field-BxIU66mn.js} +3 -3
- package/dist/shell/assets/{workflow-status-field-DlZvZQNx.js → workflow-status-field-Bnk5IHI5.js} +2 -2
- package/dist/shell/assets/{workflow-workbench-BcZEcj70.js → workflow-workbench-7EvpXFq6.js} +2 -2
- package/dist/shell/index.html +3 -3
- package/dist/shell/protobase.shell.json +2 -2
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/{account-page-Dw3W4H6l.js.map → account-page-BESKgoYT.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-DANB5cb3.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-DyBHCHuy.js.map → assistant-shell-DUxCRpci.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-BlJwyapl.js.map → board-display-Blx6nTDs.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-C2vvdk6I.js.map → calendar-display-SPyIwDLG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-DKHVIKwh.js.map → call-rings-BGJkCQwP.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-CDleoS9h.js.map → calls-BRoDIvWu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-DYA4c4B7.js.map → circle-alert-BZyGgZSj.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-BtPlNGV4.js.map → composed-page-By2d8F85.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-zJurnYKu.js.map → composer-section-BiCIOqwU.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-oTxVxU6f.js.map → connect-route-BZsnJGaF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-D_iD-sgT.js.map → copy-field-DpbjVuK4.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-z6BVZwk3.js.map → create-route-DglCC2Tk.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-vl09jwo_.js.map → custom-step-container-field-DJbluU0F.js.map} +1 -1
- package/dist/shell-source-maps/assets/{embedded-list-B0wJoqm3.js.map → embedded-list-CepLmiOu.js.map} +1 -1
- package/dist/shell-source-maps/assets/en-Cn7SAD9K.js.map +1 -0
- package/dist/shell-source-maps/assets/{export-dialog-DN8mwLKi.js.map → export-dialog-B9fvLoT2.js.map} +1 -1
- package/dist/shell-source-maps/assets/export-worker-C4HtUYaa.js.map +1 -0
- package/dist/shell-source-maps/assets/{first-organization-page-CN5x-0QP.js.map → first-organization-page-CSIsJmoQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{graph-view-w7lrzAmt.js.map → graph-view-IPDrZVmC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-g3nDENBg.js.map → group-donut-DRT539D9.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-_-o8LpKg.js.map → guest-call-page-IxjqrW0F.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-Bfjrowsp.js.map → html-viewer-C-FI9kDC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-DeGzN4TA.js.map → import-dialog-DDaXN05w.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-BcSfnTNF.js.map → import-table-dialog-CHWoi7_S.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-CVkFsOgL.js.map → invitations-page-BE0tj3Aw.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-Cmzqqy11.js.map → layout-grid-7R6t_Nlh.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-dXfws39r.js.map → legend-item-C-DA-JTo.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-C7H5G772.js.map → list-page-Dj-oZ99M.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-C1Y1UO5-.js.map → maplibre-D0uTAdwG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-Be_Vsipv.js.map → markdown-content-BpKVfSRq.js.map} +1 -1
- package/dist/shell-source-maps/assets/{members-page-vnYWXsnN.js.map → members-page-Ced4meCg.js.map} +1 -1
- package/dist/shell-source-maps/assets/{message-content-BgtfnCSo.js.map → message-content-DSZOlZUY.js.map} +1 -1
- package/dist/shell-source-maps/assets/{messages-BJNycdpS.js.map → messages-CEK97JXa.js.map} +1 -1
- package/dist/shell-source-maps/assets/nl-BU1R957e.js.map +1 -0
- package/dist/shell-source-maps/assets/{organization-page-Cbb97Ebt.js.map → organization-page-Dp_D2xbC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page-Cq7fzpZa.js.map → organizations-page-CtrgjIWL.js.map} +1 -1
- package/dist/shell-source-maps/assets/parse-worker-zWUgfCm6.js.map +1 -0
- package/dist/shell-source-maps/assets/{pending-invitation-row-xX2VAQLM.js.map → pending-invitation-row-Bs60Zx0i.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-CgHgMZ2l.js.map → period-chart-CIgxhMTn.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-CjXGB6eY.js.map → person-row-BH3iAvuG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-DROsvcsL.js.map → public-form-page-NPPZ_rgo.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-D-pcqwS2.js.map → record-lines-hY9wRXCf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-COL77PxJ.js.map → record-map-Dzt7xpK8.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-AboxTqcw.js.map → record-opens-DN1LnH9j.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-page-Ctj-uKq1.js.map → record-page-CSsNYC0Q.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-preview--cdSUcRq.js.map → record-preview-B1WiPOw4.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-C5es9EjJ.js.map → records-map-BLcMBygH.js.map} +1 -1
- package/dist/shell-source-maps/assets/render-node-DyvozeRy.js.map +1 -0
- package/dist/shell-source-maps/assets/{reorder-button-ClD-Ptqm.js.map → reorder-button-NNfcfua7.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-BlfDwdyz.js.map → run-trace-view-BoBj-5R0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-E1dq6epi.js.map → runner-install-field-BdfsPY9H.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-Dwwvn6ea.js.map → runtime-update-CRO1fS5O.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-C2r0xsKl.js.map → sheet-source-DSJ73Heh.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-D9_X1fyz.js.map → sign-in-policy-page-RaxuDREW.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-CSHzGGu1.js.map → start-block-queries-DTa6akPc.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-DFsFCluU.js.map → step-catalog-UHxllpni.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-DmMSxA8x.js.map → step-panel-BkpaCVJd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-Br58uLQ8.js.map → timeline-display-CFIOdA59.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-DzKZquG9.js.map → trash-IV6Ox5bV.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-DwG0XGif.js.map → update-set-BTHuLrBr.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-DusjGuvd.js.map → use-calendar-move-CaU_5smA.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-llOhHJvA.js.map → use-display-rows-C_H7lxLW.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-my-invitations-tnMnjktl.js.map → use-my-invitations-DSp8OwP9.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-BWcRlArY.js.map → use-paged-search-DOcO0Rbz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-B2K4dLw0.js.map → use-run-trace-BsH3vq5k.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-ted3LYxk.js.map → use-workflow-page-DDl2MUPY.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-f_gVwLT2.js.map → use-workflow-types-nJ6UhHeL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-T1QChoXq.js.map → workflow-canvas-xG0FmrJj.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-D0Yp-t1X.js.map → workflow-field-fuI75chK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-CJmYosOs.js.map → workflow-graph-editor-DCCcZ5AP.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-CaJfI9Xi.js.map → workflow-run-field-BxIU66mn.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-status-field-DlZvZQNx.js.map → workflow-status-field-Bnk5IHI5.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-BcZEcj70.js.map → workflow-workbench-7EvpXFq6.js.map} +1 -1
- package/dist/status/messages.d.ts +2 -2
- package/dist/users/messages.d.ts +2 -2
- package/package.json +5 -5
- package/dist/shell/assets/en-DnsB2haa.js +0 -2
- package/dist/shell/assets/export-worker-DbK8hf_0.js +0 -15
- package/dist/shell/assets/nl-Ce2dHlet.js +0 -2
- package/dist/shell/assets/parse-worker-MvbeuzYJ.js +0 -35
- package/dist/shell-source-maps/assets/app-B4Vl9AEn.js.map +0 -1
- package/dist/shell-source-maps/assets/en-DnsB2haa.js.map +0 -1
- package/dist/shell-source-maps/assets/export-worker-DbK8hf_0.js.map +0 -1
- package/dist/shell-source-maps/assets/nl-Ce2dHlet.js.map +0 -1
- package/dist/shell-source-maps/assets/parse-worker-MvbeuzYJ.js.map +0 -1
- package/dist/shell-source-maps/assets/render-node-BbfwkxfK.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maplibre-
|
|
1
|
+
{"version":3,"file":"maplibre-D0uTAdwG.js","names":["useState","_Fragment","maplibre.setWorkerUrl","workerUrl","maplibre.addProtocol","Protocol","maplibre","n","a","t","__toESM","require_react","require_jsx_runtime","Segmented","guarded","messages","createLucideIcon","maplibre_gl_exports","An","UF","maplibre_gl_worker_default","Source","useMap","Layer","B","__iconData","MapPin","import_react","mapLayerStorageKey","chosenMapLayer","layers","layer","id","readMapLayer","storage","writeMapLayer","text","import_jsx_runtime","styleValue","MapLayerSwitch","chosenId","setChosenId","map","chosen","choose","value","beforeId","below","mapLib"],"sources":["../../../../../node_modules/.bun/lucide-react@1.52.0+0ac650c021fb1b59/node_modules/lucide-react/dist/esm/icons/map-pin.mjs","../../../src/app/map/map-layer-choice.ts","../../../src/app/map/messages.ts","../../../src/app/map/map-layer-switch.tsx","../../../src/app/map/maplibre.ts"],"sourcesContent":["/**\n * @license lucide-react v1.52.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"map-pin\",\n size: 24,\n node: [\n [\n \"path\",\n {\n d: \"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\",\n key: \"1r0f0z\"\n }\n ],\n [\"circle\", { cx: \"12\", cy: \"10\", r: \"3\", key: \"ilqhr7\" }]\n ]\n};\n__iconData.node;\nconst MapPin = createLucideIcon(__iconData);\n\nexport { __iconData, MapPin as default };\n//# sourceMappingURL=map-pin.mjs.map\n","import type { MapLayerModel } from '@protobase/client'\nimport { guarded } from '../../lib/guarded'\n\nexport const mapLayerStorageKey = 'protobase:map-layer'\n\n/** The layer the browser last chose, if the app still offers it: else the style's own map, which is the default. */\nexport const chosenMapLayer = (layers: MapLayerModel[], id: string | null | undefined) => layers.find((layer) => layer.id === id)\n\n/** The id of the layer chosen in this browser, if any; unavailable storage reads as the default map. */\nexport const readMapLayer = (storage: Pick<Storage, 'getItem'>) => guarded(() => storage.getItem(mapLayerStorageKey), null)\n\n/** Remembers a layer by its id, and the default map by forgetting the choice, so the default costs no storage. */\nexport const writeMapLayer = (storage: Pick<Storage, 'setItem' | 'removeItem'>, id: string | undefined) =>\n guarded(() => (id === undefined ? storage.removeItem(mapLayerStorageKey) : storage.setItem(mapLayerStorageKey, id)), undefined)\n","import { messages } from '../../locale/messages'\n\nexport const text = messages('app/map')\n","import { useState } from 'react'\nimport { Layer, Source, useMap } from 'react-map-gl/maplibre'\nimport type { MapLayerModel } from '@protobase/client'\nimport { Segmented } from '../../primitives/segmented'\nimport { chosenMapLayer, readMapLayer, writeMapLayer } from './map-layer-choice'\nimport { text } from './messages'\n\n// The default map's value in the switch: no layer id can be empty.\nconst styleValue = ''\n\n/**\n * Inside a map, a switch in its top left corner between the style's map and each of `layers`, and the chosen layer's\n * tiles drawn over the style's, under `below` when the map has that layer, such as the areas around records. The\n * layer's credit joins the map's attribution while it shows. Outside its bounds the style's map shows through. The\n * choice is remembered in this browser, for every map. Nothing without layers.\n */\nexport const MapLayerSwitch = ({ layers, below }: { layers: MapLayerModel[] | undefined; below?: string }) => {\n const [chosenId, setChosenId] = useState(() => readMapLayer(localStorage))\n const { current: map } = useMap()\n if (!layers || layers.length === 0) return null\n const chosen = chosenMapLayer(layers, chosenId)\n const choose = (value: string) => {\n const id = value === styleValue ? undefined : value\n writeMapLayer(localStorage, id)\n setChosenId(id ?? null)\n }\n const beforeId = below && map?.getLayer(below) ? below : undefined\n return (\n <>\n {chosen && (\n <Source key={chosen.id} id={`map-layer-${chosen.id}`} type=\"raster\" tiles={[chosen.tiles]} tileSize={256} attribution={chosen.attribution} maxzoom={chosen.maxzoom ?? 22} {...(chosen.bounds && { bounds: chosen.bounds })}>\n <Layer id={`map-layer-${chosen.id}`} type=\"raster\" {...(beforeId && { beforeId })} />\n </Source>\n )}\n <div className=\"absolute left-2.5 top-2.5 z-10 rounded-md shadow\">\n <Segmented label={text('mapLayer')} value={chosen?.id ?? styleValue} onChange={choose} options={[{ value: styleValue, label: text('map') }, ...layers.map((layer) => ({ value: layer.id, label: layer.label }))]} />\n </div>\n </>\n )\n}\n","import * as maplibre from 'maplibre-gl'\nimport workerUrl from 'maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url'\nimport 'maplibre-gl/dist/maplibre-gl.css'\nimport { Protocol } from 'pmtiles'\n\n// This module loads the first time a map is drawn, and once: MapLibre runs its worker from the bundled file, as its\n// docs say for Vite, and reads `pmtiles://` sources in a style by range requests to the one archive. A map takes\n// MapLibre from here, so a build that drops modules imported only for their effects keeps this one.\nmaplibre.setWorkerUrl(workerUrl)\nmaplibre.addProtocol('pmtiles', new Protocol().tile)\n\n/** MapLibre, set up to run its worker and read PMTiles archives: what a map draws with. */\nexport const mapLib = maplibre\n"],"ignoreList":[0],"mappings":"uzBASA,IAAMyB,EAAa,CACjB,KAAM,UACN,KAAM,GACN,KAAM,CACJ,CACE,OACA,CACE,EAAG,uGACH,IAAK,QACP,CACF,EACA,CAAC,SAAU,CAAE,GAAI,KAAM,GAAI,KAAM,EAAG,IAAK,IAAK,QAAS,CAAC,CAC1D,CACF,EACAA,EAAW,KACX,IAAMC,EAASV,EAAiBS,CAAU,aCrB7BG,EAAqB,sBAGrBC,GAAkB,EAAyB,IAAkCC,EAAO,KAAM,GAAUC,EAAM,KAAOC,CAAE,EAGnHC,EAAgB,GAAsCnB,MAAcoB,EAAQ,QAAQN,CAAkB,EAAG,IAAI,EAG7GO,GAAiB,EAAkD,IAC9ErB,MAAekB,IAAO,IAAA,GAAYE,EAAQ,WAAWN,CAAkB,EAAIM,EAAQ,QAAQN,EAAoBI,CAAE,EAAI,IAAA,EAAS,ECXnHI,EAAOrB,EAAS,SAAS,aCMhCuB,EAAa,GAQNC,GAAkB,CAAE,SAAQ,WAAqE,CAC5G,GAAM,CAACC,EAAUC,IAAA,EAAezC,EAAAA,SAAAA,KAAeiC,EAAa,YAAY,CAAC,EACnE,CAAE,QAASS,GAAQpB,EAAO,EAChC,GAAI,CAACQ,GAAUA,EAAO,SAAW,EAAG,OAAO,KAC3C,IAAMa,EAASd,EAAeC,EAAQU,CAAQ,EACxCI,EAAU,GAAkB,CAChC,IAAMZ,EAAKa,IAAUP,EAAa,IAAA,GAAYO,EAC9CV,EAAc,aAAcH,CAAE,EAC9BS,EAAYT,GAAM,IAAI,CACxB,EACMc,EAAWC,GAASL,GAAK,SAASK,CAAK,EAAIA,EAAQ,IAAA,GACzD,OACE,EAAAV,EAAA,KAAA,CAAApC,EAAAA,SAAA,CAAA,SAAA,CACG0C,IACC,EAAAN,EAAA,IAAA,CAAChB,EAAD,CAAwB,GAAI,aAAasB,EAAO,KAAM,KAAK,SAAS,MAAO,CAACA,EAAO,KAAK,EAAG,SAAU,IAAK,YAAaA,EAAO,YAAa,QAASA,EAAO,SAAW,GAAI,GAAKA,EAAO,QAAU,CAAE,OAAQA,EAAO,MAAO,EACtN,UAAA,EAAAN,EAAA,IAAA,CAACd,EAAD,CAAO,GAAI,aAAaoB,EAAO,KAAM,KAAK,SAAS,GAAKG,GAAY,CAAE,UAAS,CAAK,CAAA,CAC9E,EAFKH,EAAO,EAEZ,GAEV,EAAAN,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mDACb,UAAA,EAAAA,EAAA,IAAA,CAACxB,EAAD,CAAW,MAAOuB,EAAK,UAAU,EAAG,MAAOO,GAAQ,IAAML,EAAY,SAAUM,EAAQ,QAAS,CAAC,CAAE,MAAON,EAAY,MAAOF,EAAK,KAAK,CAAE,EAAG,GAAGN,EAAO,IAAK,IAAW,CAAE,MAAOC,EAAM,GAAI,MAAOA,EAAM,KAAM,EAAE,CAAC,CAAI,CAAA,CAChN,CAAA,CACL,CAAA,CAAA,CAEN,EC/BA7B,EAAsBC,CAAS,EAC/BC,EAAqB,UAAW,IAAIC,EAAS,CAAC,CAAC,IAAI,EAGnD,IAAa2C,EAAS1C","debugId":"f4b9301d-c06a-4c96-9988-60d50699c8c9"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-content-
|
|
1
|
+
{"version":3,"file":"markdown-content-BpKVfSRq.js","names":["Marked","useMemo","DOMPurify","n","a","t","__toESM","require_react","require_jsx_runtime","useHeadingLevel","cn","purify_default","U","safeAddress","newTabLink","imageSchemes","titled","linkSchemes","escapeHtml","import_react","nestedHeadingLevel","under","depth","parser","block","text","tokens","address","inLink","href","title","parsers","markdownHtml","markdown","source","token","headingsUnder","import_jsx_runtime","page","MarkdownContent","insideLink","html","className"],"sources":["../../../src/markdown/nested-heading-level.ts","../../../src/markdown/markdown-html.ts","../../../src/markdown/markdown-content.tsx"],"sourcesContent":["/**\n * The level a markdown heading of `depth` takes under a heading of level `under`: one below it at the least, so `#` and\n * `##` both become the level under it and `###` the one after, and never past h6. With nothing above it, `depth` stays.\n */\nexport const nestedHeadingLevel = (depth: number, under: number) => {\n if (under === 0) return depth\n return Math.min(6, Math.max(under + 1, depth + under - 1))\n}\n","import { Marked, type Tokens } from 'marked'\nimport { nestedHeadingLevel } from './nested-heading-level'\nimport { escapeHtml, imageSchemes, linkSchemes, newTabLink, safeAddress, titled } from './safe-html'\n\nexport type MarkdownHtmlOptions = {\n /** The HTML goes inside a link, such as a card: its links become their text and its images their alt text. */\n inLink?: boolean\n /** The level of the heading the HTML sits under, whose level its own headings go below; 0, the default, keeps them. */\n headingsUnder?: number\n}\n\nconst parser = ({ inLink = false }: MarkdownHtmlOptions) =>\n new Marked({\n gfm: true,\n // A line break in the text is one on the page, as in a comment on GitHub\n breaks: true,\n renderer: {\n // Raw HTML shows as the text it is, never as markup\n html: ({ text, block }: Tokens.HTML | Tokens.Tag) => (block ? `<p>${escapeHtml(text)}</p>` : escapeHtml(text)),\n link({ href, title, tokens }: Tokens.Link) {\n const text = this.parser.parseInline(tokens)\n const address = inLink ? null : safeAddress(href, linkSchemes)\n if (address === null) return text\n return newTabLink(address, title, text)\n },\n image({ href, title, text }: Tokens.Image) {\n const address = inLink ? null : safeAddress(href, imageSchemes)\n if (address === null) return escapeHtml(text)\n return `<img src=\"${escapeHtml(address)}\" alt=\"${escapeHtml(text)}\"${titled(title)} loading=\"lazy\">`\n },\n },\n })\n\nconst parsers = { inLink: parser({ inLink: true }), page: parser({}) }\n\n/**\n * Markdown as HTML (GitHub's flavour, line breaks kept): raw HTML escaped, links and images only to http(s), mailto and\n * tel addresses or relative ones, links opening in a new tab and headings below `headingsUnder`. The page sanitises the\n * result again before showing it.\n */\nexport const markdownHtml = (source: string, { inLink = false, headingsUnder = 0 }: MarkdownHtmlOptions = {}) => {\n const markdown = inLink ? parsers.inLink : parsers.page\n const tokens = markdown.lexer(source)\n markdown.walkTokens(tokens, (token) => {\n if (token.type === 'heading') token.depth = nestedHeadingLevel(token.depth, headingsUnder)\n })\n return markdown.parser(tokens)\n}\n","import { useMemo } from 'react'\nimport DOMPurify from 'dompurify'\nimport { cn } from '../lib/cn'\nimport { useHeadingLevel } from '../lib/heading-level'\nimport { markdownHtml } from './markdown-html'\n\n// The parts markdown makes, in the theme's colours; code and tables wrap rather than scroll inside\nconst page = cn(\n 'break-words [&>*:first-child]:mt-0 [&>*:last-child]:mb-0',\n '[&_p]:my-2 [&_ul]:my-2 [&_ol]:my-2 [&_pre]:my-2 [&_blockquote]:my-2 [&_table]:my-2 [&_hr]:my-3',\n '[&_h1]:mt-4 [&_h1]:mb-2 [&_h1]:text-lg [&_h1]:font-semibold [&_h2]:mt-4 [&_h2]:mb-2 [&_h2]:text-base [&_h2]:font-semibold',\n '[&_h3]:mt-3 [&_h3]:mb-1 [&_h3]:font-semibold [&_h4]:mt-3 [&_h4]:mb-1 [&_h4]:font-semibold [&_h5]:font-semibold [&_h6]:font-semibold',\n '[&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_li:has(>input)]:list-none [&_li>input]:mr-1.5 [&_li>input]:-ml-5 [&_li>input]:align-middle',\n '[&_a]:text-primary-text [&_a]:underline [&_a]:underline-offset-2 hover:[&_a]:text-primary-hover',\n '[&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em]',\n '[&_pre]:whitespace-pre-wrap [&_pre]:rounded-md [&_pre]:bg-muted [&_pre]:p-3 [&_pre_code]:bg-transparent [&_pre_code]:p-0',\n '[&_blockquote]:border-l-2 [&_blockquote]:border-border-strong [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground',\n '[&_table]:w-full [&_table]:border-collapse [&_th]:border [&_th]:border-border [&_th]:bg-surface [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-semibold',\n '[&_td]:border [&_td]:border-border [&_td]:px-2 [&_td]:py-1 [&_td]:[overflow-wrap:anywhere]',\n '[&_hr]:border-border [&_img]:inline [&_img]:max-w-full [&_img]:rounded [&_del]:text-muted-foreground',\n)\n\n// Inside a link, such as a card, it reads as running text: no gaps between blocks and headings no larger\nconst inLink = cn('[&_*]:my-0 [&_h1]:font-semibold [&_h2]:font-semibold [&_h3]:font-semibold [&_ul]:list-inside [&_ol]:list-inside [&_pre]:whitespace-pre-wrap [&_code]:font-mono [&_code]:text-[0.9em]')\n\nexport type MarkdownContentProps = {\n source: string\n /** It is shown inside a link, such as a card: its own links and images show as their text. */\n inLink?: boolean\n className?: string\n}\n\n/**\n * Markdown rendered, sanitised before it reaches the page: raw HTML shows as text, links open in a new tab and headings\n * sit below the heading the markdown is under, such as a record page section's.\n */\nexport const MarkdownContent = ({ source, inLink: insideLink = false, className }: MarkdownContentProps) => {\n const headingsUnder = useHeadingLevel()\n const html = useMemo(() => DOMPurify.sanitize(markdownHtml(source, { inLink: insideLink, headingsUnder }), { ADD_ATTR: ['target'] }), [source, insideLink, headingsUnder])\n return <div className={cn(insideLink ? inLink : page, className)} dangerouslySetInnerHTML={{ __html: html }} />\n}\n"],"mappings":"kyBAIaoB,GAAsB,EAAe,IAC5CC,IAAU,EAAUC,EACjB,KAAK,IAAI,EAAG,KAAK,IAAID,EAAQ,EAAGC,EAAQD,EAAQ,CAAC,CAAC,ECKrDE,GAAU,CAAE,SAAS,MACzB,IAAIvB,EAAO,CACT,IAAK,GAEL,OAAQ,GACR,SAAU,CAER,MAAO,CAAE,OAAM,WAAuCwB,EAAQ,MAAMN,EAAWO,CAAI,EAAE,MAAQP,EAAWO,CAAI,EAC5G,KAAK,CAAE,OAAM,QAAO,UAAuB,CACzC,IAAMA,EAAO,KAAK,OAAO,YAAYC,CAAM,EACrCC,EAAUC,EAAS,KAAOf,EAAYgB,EAAMZ,CAAW,EAE7D,OADIU,IAAY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":"692957d2-46a0-4fee-9251-23d3e1eefabe"}
|
package/dist/shell-source-maps/assets/{members-page-vnYWXsnN.js.map → members-page-Ced4meCg.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"members-page-
|
|
1
|
+
{"version":3,"file":"members-page-Ced4meCg.js","names":["_Fragment","useCallback","n","a","t","__toESM","require_react","require_jsx_runtime","Spinner","useAuth","useOrganizationText","presenceOf","StatusMark","AuthError","Button","useAction","grantableRoles","SectionError","text","keys","authMessage","organizationRoleLabel","AccountSection","useQuery","PageHeader","AppRolesPicker","PersonRow","import_react","import_jsx_runtime","assignableOrganizationRoles","current","MemberRow","organizationId","roles","organizations","self","member","organizationRoles","roleLocked","membershipRoles","role","status","presence","busy","run","session","event","onChanged","selected","MembersPage","query","members","error","load","refetch","statuses"],"sources":["../../../src/organizations/members-page.tsx"],"sourcesContent":["import { useQuery } from '@tanstack/react-query'\nimport { useCallback, useState } from 'react'\nimport { keys } from '../data/query-keys'\nimport { AuthError, type CurrentOrganization, type OrganizationMember, type OrganizationRole, type PersonStatus } from '@protobase/client'\nimport { AccountSection, SectionError } from '../account/account-section'\nimport { PageHeader } from '../app-shell'\nimport { authMessage } from '../auth/auth-messages'\nimport { useAuth } from '../auth/auth-provider'\nimport { PersonRow } from '../people/person-row'\nimport { presenceOf, type Presence, type PresenceByUser } from '../presence/presence'\nimport { StatusMark } from '../status/status-mark'\nimport { Button } from '../primitives/button'\nimport { Spinner } from '../primitives/spinner'\nimport { AppRolesPicker } from './app-roles-picker'\nimport { grantableRoles, organizationRoleLabel } from './organization-paths'\nimport { useAction } from './use-action'\nimport { text } from './messages'\nimport { useOrganizationText } from './organization-word'\n\n/** The organization roles the person may set: owners every one, admins those below owner. */\nexport const assignableOrganizationRoles = (current?: CurrentOrganization): OrganizationRole[] => (current?.role === 'owner' ? ['owner', 'admin', 'member'] : ['admin', 'member'])\n\nconst MemberRow = ({ member, current, status, presence, onChanged }: { member: OrganizationMember; current: CurrentOrganization; status?: PersonStatus | undefined; presence?: Presence | undefined; onChanged: () => void }) => {\n const { session, organizations } = useAuth()\n const t = useOrganizationText()\n const organizationId = current.organization!.id\n const { busy, error, run } = useAction()\n const roles = organizations?.roles ?? []\n const self = member.id === current.memberId\n const organizationRoles = assignableOrganizationRoles(current)\n // Only an owner changes an owner, as the server checks too.\n const roleLocked = member.role === 'owner' && current.role !== 'owner'\n const membershipRoles = roles.filter((role) => role.membership)\n return (\n <PersonRow\n name={member.name}\n email={member.email}\n self={self}\n error={error}\n {...((status || presence) && { status: <StatusMark status={status} presence={presence} /> })}\n actions={\n <>\n <select\n aria-label={t('roleOf', { name: member.name })}\n value={member.role}\n disabled={busy || roleLocked}\n onChange={(event) => void run(async () => { await session.organizations.setRole(organizationId, member.id, event.target.value as OrganizationRole); onChanged() })}\n className=\"h-7 rounded-md border border-border-strong bg-background px-2 text-body\"\n >\n {(roleLocked ? [member.role] : organizationRoles).map((role) => <option key={role} value={role}>{organizationRoleLabel(role)}</option>)}\n </select>\n {!self && (\n <Button size=\"sm\" variant=\"danger\" loading={busy} disabled={roleLocked} onClick={() => void run(async () => { await session.organizations.removeMember(organizationId, member.id); onChanged() })}>\n {text('remove')}\n </Button>\n )}\n </>\n }\n >\n <AppRolesPicker roles={membershipRoles} selected={member.appRoles} grantable={grantableRoles(roles, current)} disabled={busy} onChange={(selected) => void run(async () => { await session.organizations.setAppRoles(member.id, selected); onChanged() })} />\n </PersonRow>\n )\n}\n\n/**\n * The members of the organization one works in, for its owners and admins: organization roles, which decide who\n * manages it, and app roles, which decide what each sees and does; only roles the person may give can change. In an\n * app with status, `statuses` puts each member's beside their name (see `useStatuses`), and `presence`, the app's, puts\n * whether they are online or away before it (see `usePresence`).\n */\nexport const MembersPage = ({ current, statuses, presence }: { current?: CurrentOrganization; statuses?: readonly PersonStatus[] | undefined; presence?: PresenceByUser | undefined }) => {\n const { session } = useAuth()\n const t = useOrganizationText()\n const organizationId = current?.organization?.id\n // A query, so the start cache keeps the members and the page's first frame lists them\n const query = useQuery({ queryKey: keys.organizationMembers(organizationId ?? ''), queryFn: () => session.organizations.members(organizationId!), enabled: Boolean(organizationId), retry: false })\n const members = query.data\n const error = query.error ? (query.error instanceof AuthError ? authMessage(query.error) : text('couldNotReadMembers')) : undefined\n const { refetch } = query\n const load = useCallback(() => void refetch(), [refetch])\n if (!current?.organization) return null\n return (\n <div className=\"mx-auto flex w-full max-w-3xl flex-col gap-4 px-4 py-6 md:px-6\">\n <PageHeader title={text('members')} subtitle={text('whoWorks', { organization: current.organization.name })} />\n <AccountSection title={text('members')} description={t('membersDescription')}>\n <SectionError message={error} />\n {members ? (\n <ul className=\"divide-y rounded-md border\">\n {members.map((member) => <MemberRow key={`${member.id}/${member.role}/${member.appRoles.join()}`} member={member} current={current} status={statuses?.find((status) => status.userId === member.userId)} presence={presenceOf(presence, member.userId)} onChanged={load} />)}\n </ul>\n ) : (\n !error && <div className=\"flex items-center gap-2 text-muted-foreground\"><Spinner /> {text('loading')}</div>\n )}\n </AccountSection>\n </div>\n )\n}\n"],"mappings":"q3BAoBa6B,EAA+B,GAAuDC,GAAS,OAAS,QAAU,CAAC,QAAS,QAAS,QAAQ,EAAI,CAAC,QAAS,QAAQ,EAE1KC,GAAa,CAAE,SAAQ,UAAS,SAAQ,WAAU,eAAyK,CAC/N,GAAM,CAAE,UAAS,iBAAkBtB,EAAQ,EACrCL,EAAIM,EAAoB,EACxBsB,EAAiBF,EAAQ,aAAc,GACvC,CAAE,OAAM,QAAO,OAAQf,EAAU,EACjCkB,EAAQC,GAAe,OAAS,CAAC,EACjCC,EAAOC,EAAO,KAAON,EAAQ,SAC7BO,EAAoBR,EAA4BC,CAAO,EAEvDQ,EAAaF,EAAO,OAAS,SAAWN,EAAQ,OAAS,QACzDS,EAAkBN,EAAM,OAAQ,GAASO,EAAK,UAAU,EAC9D,OACE,EAAAZ,EAAA,IAAA,CAACF,EAAD,CACE,KAAMU,EAAO,KACb,MAAOA,EAAO,MACR,OACC,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EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,gDAAf,SAAA,EAA+D,EAAAA,EAAA,IAAA,CAACpB,EAAD,CAAU,CAAA,EAAC,IAAEU,EAAK,SAAS,CAAO,CAE/F,CAAA,CAAA,CACb,CAAA,CAAA,IAd4B,IAgBrC","debugId":"9e77899e-0a0e-45b4-96ed-7ebb8c67f5cf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-content-BgtfnCSo.js","names":["Marked","useMemo","DOMPurify","n","a","t","__toESM","require_react","require_jsx_runtime","bodyParts","mentionClass","cn","purify_default","U","safeAddress","newTabLink","linkSchemes","escapeHtml","import_react","addressLike","hostOf","address","misleadingLinkText","named","text","namedHost","href","fence","closesFence","open","line","quote","quoteAsTyped","listItem","rule","indented","lineBreak","chatLines","lines","inFence","inBlock","marker","typed","match","blank","opensBlock","asTyped","plainText","tokens","token","marked","block","misleading","title","raw","withMentions","mentions","part","messageHtml","import_jsx_runtime","message","MessageContent","html"],"sources":["../../../src/mentions/link-text.ts","../../../src/mentions/message-lines.ts","../../../src/mentions/message-html.ts","../../../src/mentions/message-content.tsx"],"sourcesContent":["// Link text that reads as a web address: a scheme, `www.` or a dotted host, then a path, query or nothing\nconst addressLike = /^(?:[a-z][a-z0-9+.-]*:\\/\\/)?((?:[\\p{L}\\p{N}-]+\\.)+[\\p{L}]{2,})(?::\\d+)?(?:[/?#]\\S*)?$/iu\n\nconst hostOf = (address: string) => {\n if (!URL.canParse(address)) return\n return new URL(address).hostname.toLowerCase()\n}\n\n/**\n * Whether a link's text names a web address on another host than the link opens, such as\n * `[https://example.com](https://elsewhere.example)`, so the reader would be misled about where it goes.\n */\nexport const misleadingLinkText = (text: string, href: string) => {\n const named = addressLike.exec(text.trim())?.[1]\n if (!named) return false\n // A name no browser takes as a host, such as one mixing writing directions, may still read as one: show the link's own\n const namedHost = hostOf(`http://${named}`)\n if (!namedHost) return true\n return hostOf(href) !== namedHost\n}\n","// Markdown's line rules that chat habits beat, applied line by line outside code fences:\n// - a line under a quote or a list item that is neither starts a block of its own, rather than joining it lazily;\n// - a quote needs `> ` with a space, so `>5 failed logins` stays as typed;\n// - a `---` or `___` line under text stays a line of that text.\n// A backtick fence's info string holds no backtick, so ```inline``` is code within a line\nconst fence = /^ {0,3}(`{3,}(?=[^`]*$)|~{3,})/\n// A fence closes on a line of its marker, at least as long, and nothing after it but spaces\nconst closesFence = (line: string, open: string) => new RegExp(`^ {0,3}${open}[~\\`]* *$`).test(line)\nconst quote = /^ {0,3}>/\nconst quoteAsTyped = /^( {0,3})>(?=[^ \\t>])/\nconst listItem = /^ {0,3}([-*+]|\\d{1,9}[.)])([ \\t]|$)/\nconst rule = /^ {0,3}([-_])[ \\t]*(\\1[ \\t]*){2,}$/\nconst indented = /^[ \\t]/\n// Text from the API or an import can end its lines with `\\r\\n` or a lone `\\r`\nconst lineBreak = /\\r\\n?|\\n/\n\n/** A message's text with the chat line rules above made explicit for the markdown parser. */\nexport const chatLines = (text: string) => {\n const lines: string[] = []\n let inFence: string | undefined\n let inBlock = false\n for (const line of text.split(lineBreak)) {\n if (inFence) {\n if (closesFence(line, inFence)) inFence = undefined\n lines.push(line)\n continue\n }\n const marker = fence.exec(line)?.[1]\n if (marker) {\n inFence = marker\n inBlock = false\n lines.push(line)\n continue\n }\n const typed = line.replace(quoteAsTyped, '$1\\\\>').replace(rule, (match) => match.replace(/^ */, '$&\\\\'))\n const blank = typed.trim() === ''\n const opensBlock = quote.test(typed) || listItem.test(typed)\n if (inBlock && !blank && !opensBlock && !indented.test(typed)) lines.push('')\n inBlock = opensBlock || (inBlock && !blank && indented.test(typed))\n lines.push(typed)\n }\n return lines.join('\\n')\n}\n","import { Marked, type Token, type Tokens } from 'marked'\nimport { escapeHtml, linkSchemes, newTabLink, safeAddress } from '../markdown/safe-html'\nimport { misleadingLinkText } from './link-text'\nimport { bodyParts, mentionClass } from './mention-text'\nimport { chatLines } from './message-lines'\n\n// What a chat message leaves as typed: headings, rules, tables, link definitions and indented code, which a message\n// rarely means; code blocks come only from ``` fences\nconst asTyped = () => undefined\n\n// A link whose text names another address than the link's, marked before mentions turn its text into markup\ntype CheckedLink = Tokens.Link & { misleading?: boolean }\n\n// Text as it reads, with all formatting inside it flattened\nconst plainText = (tokens: Token[]): string =>\n tokens.map((token) => ('tokens' in token && token.tokens ? plainText(token.tokens) : 'text' in token ? token.text : '')).join('')\n\nconst marked = new Marked({\n gfm: true,\n // A line break in the text is one on the page, as in a chat message\n breaks: true,\n tokenizer: { heading: asTyped, lheading: asTyped, hr: asTyped, table: asTyped, def: asTyped, code: asTyped },\n renderer: {\n // Raw HTML shows as the text it is, never as markup\n html: ({ text, block }: Tokens.HTML | Tokens.Tag) => (block ? `<p>${escapeHtml(text)}</p>` : escapeHtml(text)),\n link({ href, title, tokens, misleading }: CheckedLink) {\n const text = this.parser.parseInline(tokens)\n const address = safeAddress(href, linkSchemes)\n if (address === null) return text\n // Text naming another address than the link's shows the link's own, so it cannot pass for a trusted one\n if (misleading) return newTabLink(address, title, escapeHtml(href))\n return newTabLink(address, title, text)\n },\n // An image shows as the markdown written for it\n image: ({ raw }: Tokens.Image) => escapeHtml(raw),\n },\n})\n\nconst withMentions = (text: string, mentions: readonly { name?: string }[]) =>\n bodyParts(text, mentions)\n .map((part) => ('mention' in part ? `<span class=\"${escapeHtml(mentionClass)}\">@${escapeHtml(part.mention)}</span>` : escapeHtml(part.text)))\n .join('')\n\n/**\n * A message's text as HTML: bold, italic, strikethrough, code, code blocks, lists and quotes, by chat's line rules\n * (`chatLines`), web addresses as links opening in a new tab, and each `@{name}` of someone it mentions picked out,\n * outside code. Raw HTML shows as text and\n * links go only to http(s), mailto and tel addresses or relative ones; the page sanitises the result again.\n */\nexport const messageHtml = (text: string, mentions: readonly { name?: string }[]) => {\n const tokens = marked.lexer(chatLines(text))\n marked.walkTokens(tokens, (token) => {\n // A link is reached before the text inside it\n if (token.type === 'link') (token as CheckedLink).misleading = misleadingLinkText(plainText(token.tokens ?? []), token.href)\n // Bold comes only from `**`, so `__init__` stays as typed\n if (token.type === 'strong' && token.raw.startsWith('__')) Object.assign(token, { type: 'text', text: token.raw, tokens: undefined })\n if (token.type !== 'text' || token.tokens) return\n token.text = withMentions(token.text, mentions)\n token.escaped = true\n })\n return marked.parser(tokens)\n}\n","import { useMemo } from 'react'\nimport DOMPurify from 'dompurify'\nimport { cn } from '../lib/cn'\nimport { messageHtml } from './message-html'\n\n// The parts a message's markdown makes, close together as in a chat with a line's gap between paragraphs, in the theme's colours; code wraps rather than scrolls\nconst message = cn(\n 'break-words [&>*:first-child]:mt-0 [&>*:last-child]:mb-0',\n '[&_p]:my-2 [&_ul]:my-1 [&_ol]:my-1 [&_pre]:my-1 [&_blockquote]:my-1',\n '[&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_li:has(>input)]:list-none [&_li>input]:mr-1.5 [&_li>input]:-ml-5 [&_li>input]:align-middle',\n '[&_a]:text-primary-text [&_a]:underline [&_a]:underline-offset-2 hover:[&_a]:text-primary-hover',\n '[&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em]',\n '[&_pre]:whitespace-pre-wrap [&_pre]:rounded-md [&_pre]:bg-muted [&_pre]:p-3 [&_pre_code]:bg-transparent [&_pre_code]:p-0',\n '[&_blockquote]:border-l-2 [&_blockquote]:border-border-strong [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground [&_del]:text-muted-foreground',\n)\n\nexport type MessageContentProps = { text: string; mentions: readonly { name?: string }[] }\n\n/** A message's text with its markdown and mentions rendered, sanitised before it reaches the page. */\nexport const MessageContent = ({ text, mentions }: MessageContentProps) => {\n const html = useMemo(() => DOMPurify.sanitize(messageHtml(text, mentions), { ADD_ATTR: ['target'] }), [text, mentions])\n return <div className={message} dangerouslySetInnerHTML={{ __html: html }} />\n}\n"],"mappings":"6xBACMmB,EAAc,0FAEdC,EAAU,GAAoB,CAClC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,GAAG,OAAO,OAAOA,EAAO,CAAE,KAAM,OAAQ,KAAMA,EAAM,IAAK,OAAQ,IAAA,EAAU,CAAC,EAChI,IAAM,OAAS,QAAUA,EAAM,UACnC,EAAM,KAAOM,EAAaN,EAAM,KAAMO,CAAQ,EAC9C,EAAM,QAAU,GAClB,CAAC,EACMN,EAAO,OAAOF,CAAM,CAC7B,aCvDMY,EAAUjD,EACd,2DACA,sEACA,6JACA,kGACA,4GACA,2HACA,sJACF,EAKakD,GAAkB,CAAE,OAAM,cAAoC,CACzE,IAAMC,GAAA,EAAO7D,EAAAA,QAAAA,KAAcC,EAAU,SAASwD,EAAYlC,EAAMgC,CAAQ,EAAG,CAAE,SAAU,CAAC,QAAQ,CAAE,CAAC,EAAG,CAAChC,EAAMgC,CAAQ,CAAC,EACtH,OAAO,EAAAG,EAAA,IAAA,CAAC,MAAD,CAAK,UAAWC,EAAS,wBAAyB,CAAE,OAAQE,CAAK,CAAI,CAAA,CAC9E","debugId":"60b5f9c2-4a8b-467e-9ba2-91f735aaa8e1"}
|
|
1
|
+
{"version":3,"file":"message-content-DSZOlZUY.js","names":["Marked","useMemo","DOMPurify","n","a","t","__toESM","require_react","require_jsx_runtime","bodyParts","mentionClass","cn","purify_default","U","safeAddress","newTabLink","linkSchemes","escapeHtml","import_react","addressLike","hostOf","address","misleadingLinkText","named","text","namedHost","href","fence","closesFence","open","line","quote","quoteAsTyped","listItem","rule","indented","lineBreak","chatLines","lines","inFence","inBlock","marker","typed","match","blank","opensBlock","asTyped","plainText","tokens","token","marked","block","misleading","title","raw","withMentions","mentions","part","messageHtml","import_jsx_runtime","message","MessageContent","html"],"sources":["../../../src/mentions/link-text.ts","../../../src/mentions/message-lines.ts","../../../src/mentions/message-html.ts","../../../src/mentions/message-content.tsx"],"sourcesContent":["// Link text that reads as a web address: a scheme, `www.` or a dotted host, then a path, query or nothing\nconst addressLike = /^(?:[a-z][a-z0-9+.-]*:\\/\\/)?((?:[\\p{L}\\p{N}-]+\\.)+[\\p{L}]{2,})(?::\\d+)?(?:[/?#]\\S*)?$/iu\n\nconst hostOf = (address: string) => {\n if (!URL.canParse(address)) return\n return new URL(address).hostname.toLowerCase()\n}\n\n/**\n * Whether a link's text names a web address on another host than the link opens, such as\n * `[https://example.com](https://elsewhere.example)`, so the reader would be misled about where it goes.\n */\nexport const misleadingLinkText = (text: string, href: string) => {\n const named = addressLike.exec(text.trim())?.[1]\n if (!named) return false\n // A name no browser takes as a host, such as one mixing writing directions, may still read as one: show the link's own\n const namedHost = hostOf(`http://${named}`)\n if (!namedHost) return true\n return hostOf(href) !== namedHost\n}\n","// Markdown's line rules that chat habits beat, applied line by line outside code fences:\n// - a line under a quote or a list item that is neither starts a block of its own, rather than joining it lazily;\n// - a quote needs `> ` with a space, so `>5 failed logins` stays as typed;\n// - a `---` or `___` line under text stays a line of that text.\n// A backtick fence's info string holds no backtick, so ```inline``` is code within a line\nconst fence = /^ {0,3}(`{3,}(?=[^`]*$)|~{3,})/\n// A fence closes on a line of its marker, at least as long, and nothing after it but spaces\nconst closesFence = (line: string, open: string) => new RegExp(`^ {0,3}${open}[~\\`]* *$`).test(line)\nconst quote = /^ {0,3}>/\nconst quoteAsTyped = /^( {0,3})>(?=[^ \\t>])/\nconst listItem = /^ {0,3}([-*+]|\\d{1,9}[.)])([ \\t]|$)/\nconst rule = /^ {0,3}([-_])[ \\t]*(\\1[ \\t]*){2,}$/\nconst indented = /^[ \\t]/\n// Text from the API or an import can end its lines with `\\r\\n` or a lone `\\r`\nconst lineBreak = /\\r\\n?|\\n/\n\n/** A message's text with the chat line rules above made explicit for the markdown parser. */\nexport const chatLines = (text: string) => {\n const lines: string[] = []\n let inFence: string | undefined\n let inBlock = false\n for (const line of text.split(lineBreak)) {\n if (inFence) {\n if (closesFence(line, inFence)) inFence = undefined\n lines.push(line)\n continue\n }\n const marker = fence.exec(line)?.[1]\n if (marker) {\n inFence = marker\n inBlock = false\n lines.push(line)\n continue\n }\n const typed = line.replace(quoteAsTyped, '$1\\\\>').replace(rule, (match) => match.replace(/^ */, '$&\\\\'))\n const blank = typed.trim() === ''\n const opensBlock = quote.test(typed) || listItem.test(typed)\n if (inBlock && !blank && !opensBlock && !indented.test(typed)) lines.push('')\n inBlock = opensBlock || (inBlock && !blank && indented.test(typed))\n lines.push(typed)\n }\n return lines.join('\\n')\n}\n","import { Marked, type Token, type Tokens } from 'marked'\nimport { escapeHtml, linkSchemes, newTabLink, safeAddress } from '../markdown/safe-html'\nimport { misleadingLinkText } from './link-text'\nimport { bodyParts, mentionClass } from './mention-text'\nimport { chatLines } from './message-lines'\n\n// What a chat message leaves as typed: headings, rules, tables, link definitions and indented code, which a message\n// rarely means; code blocks come only from ``` fences\nconst asTyped = () => undefined\n\n// A link whose text names another address than the link's, marked before mentions turn its text into markup\ntype CheckedLink = Tokens.Link & { misleading?: boolean }\n\n// Text as it reads, with all formatting inside it flattened\nconst plainText = (tokens: Token[]): string =>\n tokens.map((token) => ('tokens' in token && token.tokens ? plainText(token.tokens) : 'text' in token ? token.text : '')).join('')\n\nconst marked = new Marked({\n gfm: true,\n // A line break in the text is one on the page, as in a chat message\n breaks: true,\n tokenizer: { heading: asTyped, lheading: asTyped, hr: asTyped, table: asTyped, def: asTyped, code: asTyped },\n renderer: {\n // Raw HTML shows as the text it is, never as markup\n html: ({ text, block }: Tokens.HTML | Tokens.Tag) => (block ? `<p>${escapeHtml(text)}</p>` : escapeHtml(text)),\n link({ href, title, tokens, misleading }: CheckedLink) {\n const text = this.parser.parseInline(tokens)\n const address = safeAddress(href, linkSchemes)\n if (address === null) return text\n // Text naming another address than the link's shows the link's own, so it cannot pass for a trusted one\n if (misleading) return newTabLink(address, title, escapeHtml(href))\n return newTabLink(address, title, text)\n },\n // An image shows as the markdown written for it\n image: ({ raw }: Tokens.Image) => escapeHtml(raw),\n },\n})\n\nconst withMentions = (text: string, mentions: readonly { name?: string }[]) =>\n bodyParts(text, mentions)\n .map((part) => ('mention' in part ? `<span class=\"${escapeHtml(mentionClass)}\">@${escapeHtml(part.mention)}</span>` : escapeHtml(part.text)))\n .join('')\n\n/**\n * A message's text as HTML: bold, italic, strikethrough, code, code blocks, lists and quotes, by chat's line rules\n * (`chatLines`), web addresses as links opening in a new tab, and each `@{name}` of someone it mentions picked out,\n * outside code. Raw HTML shows as text and\n * links go only to http(s), mailto and tel addresses or relative ones; the page sanitises the result again.\n */\nexport const messageHtml = (text: string, mentions: readonly { name?: string }[]) => {\n const tokens = marked.lexer(chatLines(text))\n marked.walkTokens(tokens, (token) => {\n // A link is reached before the text inside it\n if (token.type === 'link') (token as CheckedLink).misleading = misleadingLinkText(plainText(token.tokens ?? []), token.href)\n // Bold comes only from `**`, so `__init__` stays as typed\n if (token.type === 'strong' && token.raw.startsWith('__')) Object.assign(token, { type: 'text', text: token.raw, tokens: undefined })\n if (token.type !== 'text' || token.tokens) return\n token.text = withMentions(token.text, mentions)\n token.escaped = true\n })\n return marked.parser(tokens)\n}\n","import { useMemo } from 'react'\nimport DOMPurify from 'dompurify'\nimport { cn } from '../lib/cn'\nimport { messageHtml } from './message-html'\n\n// The parts a message's markdown makes, close together as in a chat with a line's gap between paragraphs, in the theme's colours; code wraps rather than scrolls\nconst message = cn(\n 'break-words [&>*:first-child]:mt-0 [&>*:last-child]:mb-0',\n '[&_p]:my-2 [&_ul]:my-1 [&_ol]:my-1 [&_pre]:my-1 [&_blockquote]:my-1',\n '[&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_li:has(>input)]:list-none [&_li>input]:mr-1.5 [&_li>input]:-ml-5 [&_li>input]:align-middle',\n '[&_a]:text-primary-text [&_a]:underline [&_a]:underline-offset-2 hover:[&_a]:text-primary-hover',\n '[&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em]',\n '[&_pre]:whitespace-pre-wrap [&_pre]:rounded-md [&_pre]:bg-muted [&_pre]:p-3 [&_pre_code]:bg-transparent [&_pre_code]:p-0',\n '[&_blockquote]:border-l-2 [&_blockquote]:border-border-strong [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground [&_del]:text-muted-foreground',\n)\n\nexport type MessageContentProps = { text: string; mentions: readonly { name?: string }[] }\n\n/** A message's text with its markdown and mentions rendered, sanitised before it reaches the page. */\nexport const MessageContent = ({ text, mentions }: MessageContentProps) => {\n const html = useMemo(() => DOMPurify.sanitize(messageHtml(text, mentions), { ADD_ATTR: ['target'] }), [text, mentions])\n return <div className={message} dangerouslySetInnerHTML={{ __html: html }} />\n}\n"],"mappings":"6xBACMmB,EAAc,0FAEdC,EAAU,GAAoB,CAClC,GAAK,IAAI,SAASC,CAAO,EACzB,OAAO,IAAI,IAAIA,CAAO,CAAC,CAAC,SAAS,YAAY,CAC/C,EAMaC,GAAsB,EAAc,IAAiB,CAChE,IAAMC,EAAQJ,EAAY,KAAKK,EAAK,KAAK,CAAC,CAAC,GAAG,GAC9C,GAAI,CAACD,EAAO,MAAO,GAEnB,IAAME,EAAYL,EAAO,UAAUG,GAAO,EAE1C,MADA,CAAKE,GACEL,EAAOM,CAAI,IAAMD,CAC1B,ECdME,EAAQ,iCAERC,GAAe,EAAc,IAAqB,OAAO,UAAUC,EAAK,UAAU,CAAC,CAAC,KAAKC,CAAI,EAC7FC,EAAQ,WACRC,EAAe,wBACfC,EAAW,sCACXC,EAAO,qCACPC,EAAW,SAEXC,EAAY,WAGLC,EAAa,GAAiB,CACzC,IAAMC,EAAkB,CAAC,EACrBC,EACAC,EAAU,GACd,IAAK,IAAMV,KAAQN,EAAK,MAAMY,CAAS,EAAG,CACxC,GAAIG,EAAS,CACPX,EAAYE,EAAMS,CAAO,IAAG,EAAU,IAAA,IAC1CD,EAAM,KAAKR,CAAI,EACf,QACF,CACA,IAAMW,EAASd,EAAM,KAAKG,CAAI,CAAC,GAAG,GAClC,GAAIW,EAAQ,CACV,EAAUA,EACV,EAAU,GACVH,EAAM,KAAKR,CAAI,EACf,QACF,CACA,IAAMY,E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AO,gBAAgBxC,EAAWP,CAAY,EAAE,KAAKO,EAAWwC,EAAK,OAAO,EAAE,SAAWxC,EAAWwC,EAAK,IAAI,CAAE,CAAC,CAC5I,KAAK,EAAE,EAQCC,GAAe,EAAc,IAA2C,CACnF,IAAMV,EAASE,EAAO,MAAMb,EAAUb,CAAI,CAAC,EAU3C,OATA0B,EAAO,WAAWF,EAAS,GAAU,CAE/BC,EAAM,OAAS,SAAQ,EAAuB,WAAa3B,EAAmByB,EAAUE,EAAM,QAAU,CAAC,CAAC,EAAGA,EAAM,IAAI,GAEvHA,EAAM,OAAS,UAAYA,EAAM,IAAI,WAAW,IAAI,GAAG,OAAO,OAAOA,EAAO,CAAE,KAAM,OAAQ,KAAMA,EAAM,IAAK,OAAQ,IAAA,EAAU,CAAC,EAChI,IAAM,OAAS,QAAUA,EAAM,UACnC,EAAM,KAAOM,EAAaN,EAAM,KAAMO,CAAQ,EAC9C,EAAM,QAAU,GAClB,CAAC,EACMN,EAAO,OAAOF,CAAM,CAC7B,aCvDMY,EAAUjD,EACd,2DACA,sEACA,6JACA,kGACA,4GACA,2HACA,sJACF,EAKakD,GAAkB,CAAE,OAAM,cAAoC,CACzE,IAAMC,GAAA,EAAO7D,EAAAA,QAAAA,KAAcC,EAAU,SAASwD,EAAYlC,EAAMgC,CAAQ,EAAG,CAAE,SAAU,CAAC,QAAQ,CAAE,CAAC,EAAG,CAAChC,EAAMgC,CAAQ,CAAC,EACtH,OAAO,EAAAG,EAAA,IAAA,CAAC,MAAD,CAAK,UAAWC,EAAS,wBAAyB,CAAE,OAAQE,CAAK,CAAI,CAAA,CAC9E","debugId":"d264e959-5183-47ca-8613-d46961486cd0"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-BJNycdpS.js","names":["text","text","n","a","t","recordKey","parseSort","encodeKey","can","recordTitle","messages","printFilter","where","isApiError","refusalReason","writablePosition","position","model","permissions","field","listHandOrder","relatedHandOrder","item","dragsRank","view","filter","sort","orderBy","text$1","moveRefusal","error","fallback","title","undoOps","writes","changed","fields","before","record","everyRecord","records","pageToken","page","client","resource","narrowed","extra","rankBounds","after","id","self","encoded","value","links","other","link","from","to","dependsOn","dependents","pending","waiting","bound","key","found","selfPending","anchoredMove","keyAt","order","at","unknown","more","index","numberedBefore","written","results","entry","idOf","text"],"sources":["../../../src/app/hand-order/hand-order.ts","../../../src/app/hand-order/messages.ts","../../../src/app/hand-order/move-refusal.ts","../../../src/app/hand-order/undo-ops.ts","../../../src/app/rank-after/rank-bounds.ts","../../../src/app/hand-order/anchored-move.ts","../../../src/app/hand-order/numbered-before.ts","../../../src/app/rank-after/messages.ts"],"sourcesContent":["import type { ResourcePermissions } from '@protobase/client'\nimport type { RelatedModel, ResourceModel, ViewModel } from '@protobase/schema'\nimport { parseSort } from '../list-order'\nimport { can } from '../permissions'\n\n/** The records loaded per request to reorder them by hand, the list API's largest page; all pages load. */\nexport const handOrderPage = 500\n\n/** The field a user may sort `model`'s records by hand in: its `position`, when they may update it. */\nconst writablePosition = (model: ResourceModel, permissions: ResourcePermissions) => {\n const position = model.position\n if (!position || !can(permissions, 'update')) return undefined\n const field = model.fields[position.field]\n return field && !field.readOnly ? position.field : undefined\n}\n\n/**\n * The field the list page sorts all of `model`'s records by hand in. A resource whose records are ordered within a\n * parent is sorted in the parent's related section instead, since its list mixes the parents.\n */\nexport const listHandOrder = (model: ResourceModel, permissions: ResourcePermissions) =>\n model.position?.within === undefined ? writablePosition(model, permissions) : undefined\n\n/**\n * The field a related section sorts its records by hand in: those of one parent, when the section lists every record\n * whose `within` relation points at the page's record, no filter or join resource leaving some out.\n */\nexport const relatedHandOrder = (item: RelatedModel, model: ResourceModel, permissions: ResourcePermissions) =>\n model.position?.within !== undefined && item.field === model.position.within && !item.through && !item.from && !item.filter ? writablePosition(model, permissions) : undefined\n\n/**\n * Whether the list page's table moves its rows by dragging at any time, without **Reorder**: its list turns\n * `drag.rank` on, and it shows every record in the order of `field`, from `listHandOrder`, without a filter or search.\n */\nexport const dragsRank = (view: ViewModel | undefined, field: string | undefined, orderBy: string, filter: string) => {\n if (field === undefined || view?.list?.drag?.rank !== true || filter !== '') return false\n const sort = parseSort(orderBy)\n return sort.columnId === field && sort.direction === 'asc'\n}\n","import { messages } from '../../locale/messages'\n\nexport const text = messages('app/hand-order')\n","import { isApiError } from '@protobase/client'\nimport { refusalReason } from '../displays/board-columns'\nimport { text } from './messages'\n\n/** What was refused: a move of the record titled `title`, or an undo (no title), on a list or a board. */\nexport type Refused = { title?: string | undefined; place: 'list' | 'board' }\n\n/**\n * The toast of a refused move or undo. When the order changed where it was dropped (412), a warning that it was not\n * saved and that the list, which reloads by itself, shows the current order; otherwise an error with `fallback` and the\n * server's reason.\n */\nexport const moveRefusal = (error: unknown, fallback: string, { title, place }: Refused) => {\n if (!isApiError(error) || error.status !== 412) return { state: 'error' as const, title: fallback, description: refusalReason(error) }\n if (title === undefined) return { state: 'warning' as const, title: fallback, description: text('orderChangedSince', { place }) }\n return { state: 'warning' as const, title: text('notSaved', { title }), description: text('orderChangedThere', { place }) }\n}\n","import type { BatchOp } from '@protobase/client'\nimport type { ResourceModel } from '@protobase/schema'\nimport { recordKey } from '../../live/model-helpers'\n\n/** A record a drag saved: its values before the drag, and the record and ETag the server gave back. */\nexport type DragWrite = { before: Record<string, unknown>; record: Record<string, unknown>; etag: string }\n\n/**\n * The batch that undoes a drag: an update of each record it saved putting back those of `fields` it changed, with the\n * ETag the save gave it, so a record changed again since is refused rather than overwritten.\n */\nexport const undoOps = (model: ResourceModel, writes: DragWrite[], fields: string[]): BatchOp[] =>\n writes.flatMap(({ before, record, etag }) => {\n const changed = fields.filter((field) => Object.hasOwn(before, field) && before[field] !== record[field])\n if (changed.length === 0) return []\n return [{ op: 'update', resource: model.name, key: recordKey(model, record), data: Object.fromEntries(changed.map((field) => [field, before[field]])), etag }]\n })\n","import type { Client } from '@protobase/client'\nimport { printFilter, where, type ResourceModel, type ViewModel } from '@protobase/schema'\nimport { encodeKey } from '@protobase/schema/internal'\nimport { recordKey, recordTitle } from '../../live/model-helpers'\n\n/** A record a re-ranked record must stay below or above: its key as the API encodes it, its rank and its title. */\nexport type RankBound = { key: string; rank: unknown; title: string }\n\n/**\n * What a re-ranked record must keep to, by its position's `after`: `after`, the pending records it depends on, which it\n * must rank below; `before`, the records that depend on it while it is pending, which must rank below it.\n */\nexport type RankBounds = { after: RankBound[]; before: RankBound[] }\n\n// A record's dependencies are few, but all of them count\nconst everyRecord = async (client: Client, resource: string, filter: string) => {\n const records: Record<string, unknown>[] = []\n let pageToken = ''\n do {\n const page = await client.search(resource, { filter, pageSize: 100, ...(pageToken && { pageToken }) })\n records.push(...page.items)\n pageToken = page.nextPageToken\n } while (pageToken)\n return records\n}\n\nconst narrowed = (filter: string, extra: string | undefined) => (extra === undefined ? filter : `(${filter}) AND (${extra})`)\n\n/**\n * The records `record` must rank between, through the list API: the join records that hold its key on either side,\n * then the records they name, those it depends on narrowed to the pending ones. Without `after` on the resource's\n * position there are none.\n */\nexport const rankBounds = async (client: Client, model: ResourceModel, view: ViewModel | undefined, record: Record<string, unknown>): Promise<RankBounds> => {\n const after = model.position?.after\n if (!after) return { after: [], before: [] }\n const id = model.primaryKey[0]!\n // `after` takes a key of one field\n const self = recordKey(model, record) as string | number\n const encoded = (value: unknown) => encodeKey([value as string | number])\n const links = await everyRecord(client, after.resource, narrowed(printFilter(where.or(where.eq(after.field, self), where.eq(after.key, self))), after.filter))\n const other = (from: string, to: string) => links.flatMap((link) => (encoded(link[from]) === encoded(self) && encoded(link[to]) !== encoded(self) ? [link[to] as string | number] : []))\n const dependsOn = other(after.field, after.key)\n const dependents = other(after.key, after.field)\n\n const [pending, waiting] = await Promise.all([\n everyRecord(client, model.name, narrowed(printFilter(where.in(id, [self, ...dependsOn])), after.while)),\n dependents.length === 0 ? [] : everyRecord(client, model.name, printFilter(where.in(id, dependents))),\n ])\n const bound = (found: Record<string, unknown>): RankBound => {\n const key = encodeKey(recordKey(model, found))\n return { key, rank: found[model.position!.field], title: recordTitle(model, view, found, key) }\n }\n const selfPending = pending.some((found) => encoded(found[id]) === encoded(self))\n return { after: pending.filter((found) => encoded(found[id]) !== encoded(self)).map(bound), before: selfPending ? waiting.map(bound) : [] }\n}\n","import type { BatchOp } from '@protobase/client'\nimport type { ResourceModel } from '@protobase/schema'\nimport { recordKey } from '../../live/model-helpers'\n\n/**\n * The `move` that saves the record at `index` of `order`, the list as shown once it was dropped: anchored to the record\n * above it and the one below, so it saves while the record after that anchor is still the one below, whatever else\n * changed. `filter` is the list's, so the server reads the same list. With `more` records after `order` not loaded, a\n * record dropped last does not know the one below it, so only its anchor is checked.\n */\nexport const anchoredMove = (model: ResourceModel, field: string, filter: string, order: Record<string, unknown>[], index: number, more = false): BatchOp => {\n const keyAt = (at: number) => (order[at] ? recordKey(model, order[at]) : null)\n const unknown = more && index === order.length - 1\n return { op: 'move', resource: model.name, field, key: recordKey(model, order[index]!), after: keyAt(index - 1), ...(!unknown && { before: keyAt(index + 1) }), ...(filter && { filter }) }\n}\n","import type { BatchResult } from '@protobase/client'\n\n/**\n * The value of the order field each record numbered by a batch's `reorder` and `move` operations had before the first\n * of them, as the server had it, by `idOf` the record: what an undo puts back, rather than the order the list loaded with.\n */\nexport const numberedBefore = (results: BatchResult['results'], idOf: (record: Record<string, unknown>) => string) => {\n const before = new Map<string, unknown>()\n for (const written of results) {\n if (written.op !== 'reorder' && written.op !== 'move') continue\n for (const entry of written.records) {\n const id = idOf(entry.record)\n if (!before.has(id)) before.set(id, entry.previous)\n }\n }\n return before\n}\n","import { messages } from '../../locale/messages'\n\nexport const text = messages('app/rank-after')\n"],"mappings":"skBASA,IAAMe,GAAoB,EAAsB,IAAqC,CACnF,IAAMC,EAAWC,EAAM,SACvB,GAAI,CAACD,GAAY,CAACR,EAAIU,EAAa,QAAQ,EAAG,OAC9C,IAAMC,EAAQF,EAAM,OAAOD,EAAS,OACpC,OAAOG,GAAS,CAACA,EAAM,SAAWH,EAAS,MAAQ,IA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pC,EAAS,IAAI,IACnB,IAAK,IAAMqC,KAAWC,EACpB,GAAID,EAAQ,KAAO,WAAaA,EAAQ,KAAO,OAC/C,IAAK,IAAME,KAASF,EAAQ,QAAS,CACnC,IAAMzB,EAAK4B,EAAKD,EAAM,MAAM,EACvBvC,EAAO,IAAIY,CAAE,GAAGZ,EAAO,IAAIY,EAAI2B,EAAM,QAAQ,CACpD,CAEF,OAAOvC,CACT,ECdayC,EAAOpE,EAAS,gBAAgB","debugId":"4937271d-a52a-4a31-8dfb-cb6d02721430"}
|
|
1
|
+
{"version":3,"file":"messages-CEK97JXa.js","names":["text","text","n","a","t","recordKey","parseSort","encodeKey","can","recordTitle","messages","printFilter","where","isApiError","refusalReason","writablePosition","position","model","permissions","field","listHandOrder","relatedHandOrder","item","dragsRank","view","filter","sort","orderBy","text$1","moveRefusal","error","fallback","title","undoOps","writes","changed","fields","before","record","everyRecord","records","pageToken","page","client","resource","narrowed","extra","rankBounds","after","id","self","encoded","value","links","other","link","from","to","dependsOn","dependents","pending","waiting","bound","key","found","selfPending","anchoredMove","keyAt","order","at","unknown","more","index","numberedBefore","written","results","entry","idOf","text"],"sources":["../../../src/app/hand-order/hand-order.ts","../../../src/app/hand-order/messages.ts","../../../src/app/hand-order/move-refusal.ts","../../../src/app/hand-order/undo-ops.ts","../../../src/app/rank-after/rank-bounds.ts","../../../src/app/hand-order/anchored-move.ts","../../../src/app/hand-order/numbered-before.ts","../../../src/app/rank-after/messages.ts"],"sourcesContent":["import type { ResourcePermissions } from '@protobase/client'\nimport type { RelatedModel, ResourceModel, ViewModel } from '@protobase/schema'\nimport { parseSort } from '../list-order'\nimport { can } from '../permissions'\n\n/** The records loaded per request to reorder them by hand, the list API's largest page; all pages load. */\nexport const handOrderPage = 500\n\n/** The field a user may sort `model`'s records by hand in: its `position`, when they may update it. */\nconst writablePosition = (model: ResourceModel, permissions: ResourcePermissions) => {\n const position = model.position\n if (!position || !can(permissions, 'update')) return undefined\n const field = model.fields[position.field]\n return field && !field.readOnly ? position.field : undefined\n}\n\n/**\n * The field the list page sorts all of `model`'s records by hand in. A resource whose records are ordered within a\n * parent is sorted in the parent's related section instead, since its list mixes the parents.\n */\nexport const listHandOrder = (model: ResourceModel, permissions: ResourcePermissions) =>\n model.position?.within === undefined ? writablePosition(model, permissions) : undefined\n\n/**\n * The field a related section sorts its records by hand in: those of one parent, when the section lists every record\n * whose `within` relation points at the page's record, no filter or join resource leaving some out.\n */\nexport const relatedHandOrder = (item: RelatedModel, model: ResourceModel, permissions: ResourcePermissions) =>\n model.position?.within !== undefined && item.field === model.position.within && !item.through && !item.from && !item.filter ? writablePosition(model, permissions) : undefined\n\n/**\n * Whether the list page's table moves its rows by dragging at any time, without **Reorder**: its list turns\n * `drag.rank` on, and it shows every record in the order of `field`, from `listHandOrder`, without a filter or search.\n */\nexport const dragsRank = (view: ViewModel | undefined, field: string | undefined, orderBy: string, filter: string) => {\n if (field === undefined || view?.list?.drag?.rank !== true || filter !== '') return false\n const sort = parseSort(orderBy)\n return sort.columnId === field && sort.direction === 'asc'\n}\n","import { messages } from '../../locale/messages'\n\nexport const text = messages('app/hand-order')\n","import { isApiError } from '@protobase/client'\nimport { refusalReason } from '../displays/board-columns'\nimport { text } from './messages'\n\n/** What was refused: a move of the record titled `title`, or an undo (no title), on a list or a board. */\nexport type Refused = { title?: string | undefined; place: 'list' | 'board' }\n\n/**\n * The toast of a refused move or undo. When the order changed where it was dropped (412), a warning that it was not\n * saved and that the list, which reloads by itself, shows the current order; otherwise an error with `fallback` and the\n * server's reason.\n */\nexport const moveRefusal = (error: unknown, fallback: string, { title, place }: Refused) => {\n if (!isApiError(error) || error.status !== 412) return { state: 'error' as const, title: fallback, description: refusalReason(error) }\n if (title === undefined) return { state: 'warning' as const, title: fallback, description: text('orderChangedSince', { place }) }\n return { state: 'warning' as const, title: text('notSaved', { title }), description: text('orderChangedThere', { place }) }\n}\n","import type { BatchOp } from '@protobase/client'\nimport type { ResourceModel } from '@protobase/schema'\nimport { recordKey } from '../../live/model-helpers'\n\n/** A record a drag saved: its values before the drag, and the record and ETag the server gave back. */\nexport type DragWrite = { before: Record<string, unknown>; record: Record<string, unknown>; etag: string }\n\n/**\n * The batch that undoes a drag: an update of each record it saved putting back those of `fields` it changed, with the\n * ETag the save gave it, so a record changed again since is refused rather than overwritten.\n */\nexport const undoOps = (model: ResourceModel, writes: DragWrite[], fields: string[]): BatchOp[] =>\n writes.flatMap(({ before, record, etag }) => {\n const changed = fields.filter((field) => Object.hasOwn(before, field) && before[field] !== record[field])\n if (changed.length === 0) return []\n return [{ op: 'update', resource: model.name, key: recordKey(model, record), data: Object.fromEntries(changed.map((field) => [field, before[field]])), etag }]\n })\n","import type { Client } from '@protobase/client'\nimport { printFilter, where, type ResourceModel, type ViewModel } from '@protobase/schema'\nimport { encodeKey } from '@protobase/schema/internal'\nimport { recordKey, recordTitle } from '../../live/model-helpers'\n\n/** A record a re-ranked record must stay below or above: its key as the API encodes it, its rank and its title. */\nexport type RankBound = { key: string; rank: unknown; title: string }\n\n/**\n * What a re-ranked record must keep to, by its position's `after`: `after`, the pending records it depends on, which it\n * must rank below; `before`, the records that depend on it while it is pending, which must rank below it.\n */\nexport type RankBounds = { after: RankBound[]; before: RankBound[] }\n\n// A record's dependencies are few, but all of them count\nconst everyRecord = async (client: Client, resource: string, filter: string) => {\n const records: Record<string, unknown>[] = []\n let pageToken = ''\n do {\n const page = await client.search(resource, { filter, pageSize: 100, ...(pageToken && { pageToken }) })\n records.push(...page.items)\n pageToken = page.nextPageToken\n } while (pageToken)\n return records\n}\n\nconst narrowed = (filter: string, extra: string | undefined) => (extra === undefined ? filter : `(${filter}) AND (${extra})`)\n\n/**\n * The records `record` must rank between, through the list API: the join records that hold its key on either side,\n * then the records they name, those it depends on narrowed to the pending ones. Without `after` on the resource's\n * position there are none.\n */\nexport const rankBounds = async (client: Client, model: ResourceModel, view: ViewModel | undefined, record: Record<string, unknown>): Promise<RankBounds> => {\n const after = model.position?.after\n if (!after) return { after: [], before: [] }\n const id = model.primaryKey[0]!\n // `after` takes a key of one field\n const self = recordKey(model, record) as string | number\n const encoded = (value: unknown) => encodeKey([value as string | number])\n const links = await everyRecord(client, after.resource, narrowed(printFilter(where.or(where.eq(after.field, self), where.eq(after.key, self))), after.filter))\n const other = (from: string, to: string) => links.flatMap((link) => (encoded(link[from]) === encoded(self) && encoded(link[to]) !== encoded(self) ? [link[to] as string | number] : []))\n const dependsOn = other(after.field, after.key)\n const dependents = other(after.key, after.field)\n\n const [pending, waiting] = await Promise.all([\n everyRecord(client, model.name, narrowed(printFilter(where.in(id, [self, ...dependsOn])), after.while)),\n dependents.length === 0 ? [] : everyRecord(client, model.name, printFilter(where.in(id, dependents))),\n ])\n const bound = (found: Record<string, unknown>): RankBound => {\n const key = encodeKey(recordKey(model, found))\n return { key, rank: found[model.position!.field], title: recordTitle(model, view, found, key) }\n }\n const selfPending = pending.some((found) => encoded(found[id]) === encoded(self))\n return { after: pending.filter((found) => encoded(found[id]) !== encoded(self)).map(bound), before: selfPending ? waiting.map(bound) : [] }\n}\n","import type { BatchOp } from '@protobase/client'\nimport type { ResourceModel } from '@protobase/schema'\nimport { recordKey } from '../../live/model-helpers'\n\n/**\n * The `move` that saves the record at `index` of `order`, the list as shown once it was dropped: anchored to the record\n * above it and the one below, so it saves while the record after that anchor is still the one below, whatever else\n * changed. `filter` is the list's, so the server reads the same list. With `more` records after `order` not loaded, a\n * record dropped last does not know the one below it, so only its anchor is checked.\n */\nexport const anchoredMove = (model: ResourceModel, field: string, filter: string, order: Record<string, unknown>[], index: number, more = false): BatchOp => {\n const keyAt = (at: number) => (order[at] ? recordKey(model, order[at]) : null)\n const unknown = more && index === order.length - 1\n return { op: 'move', resource: model.name, field, key: recordKey(model, order[index]!), after: keyAt(index - 1), ...(!unknown && { before: keyAt(index + 1) }), ...(filter && { filter }) }\n}\n","import type { BatchResult } from '@protobase/client'\n\n/**\n * The value of the order field each record numbered by a batch's `reorder` and `move` operations had before the first\n * of them, as the server had it, by `idOf` the record: what an undo puts back, rather than the order the list loaded with.\n */\nexport const numberedBefore = (results: BatchResult['results'], idOf: (record: Record<string, unknown>) => string) => {\n const before = new Map<string, unknown>()\n for (const written of results) {\n if (written.op !== 'reorder' && written.op !== 'move') continue\n for (const entry of written.records) {\n const id = idOf(entry.record)\n if (!before.has(id)) before.set(id, entry.previous)\n }\n }\n return before\n}\n","import { messages } from '../../locale/messages'\n\nexport const text = messages('app/rank-after')\n"],"mappings":"skBASA,IAAMe,GAAoB,EAAsB,IAAqC,CACnF,IAAMC,EAAWC,EAAM,SACvB,GAAI,CAACD,GAAY,CAACR,EAAIU,EAAa,QAAQ,EAAG,OAC9C,IAAMC,EAAQF,EAAM,OAAOD,EAAS,OACpC,OAAOG,GAAS,CAACA,EAAM,SAAWH,EAAS,MAAQ,IAAA,EACrD,EAMaI,GAAiB,EAAsB,IAClDH,EAAM,UAAU,SAAW,IAAA,GAAYF,EAAiBE,EAAOC,CAAW,EAAI,IAAA,GAMnEG,GAAoB,EAAoB,EAAsB,IACzEJ,EAAM,UAAU,SAAW,IAAA,IAAaK,EAAK,QAAUL,EAAM,SAAS,QAAU,CAACK,EAAK,SAAW,CAACA,EAAK,MAAQ,CAACA,EAAK,OAASP,EAAiBE,EAAOC,CAAW,EAAI,IAAA,GAM1JK,GAAa,EAA6B,EAA2B,EAAiB,IAAmB,CACpH,GAAIJ,IAAU,IAAA,IAAaK,GAAM,MAAM,MAAM,OAAS,IAAQC,IAAW,GAAI,MAAO,GACpF,IAAMC,EAAOpB,EAAUqB,CAAO,EAC9B,OAAOD,EAAK,WAAaP,GAASO,EAAK,YAAc,KACvD,ECpCa1B,EAAOU,EAAS,gBAAgB,ECUhCmB,GAAe,EAAgB,EAAkB,CAAE,QAAO,WACjE,CAAChB,EAAWiB,CAAK,GAAKA,EAAM,SAAW,IAAY,CAAE,MAAO,QAAkB,MAAOC,EAAU,YAAajB,EAAcgB,CAAK,CAAE,EACjIE,IAAU,IAAA,GAAkB,CAA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