@opengeni/react 6.5.2-canary.41607687019001 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.d.ts +4 -0
- package/dist/app/app-state.js +19 -14
- package/dist/app/components/Composer.js +25 -23
- package/dist/app/components/agent/agent-capability-picker.js +10 -8
- package/dist/app/components/artifacts/artifact-browse-controls.js +4 -4
- package/dist/app/components/artifacts/artifact-library.js +21 -19
- package/dist/app/components/artifacts/artifact-page-chrome.js +3 -3
- package/dist/app/components/artifacts/artifact-viewer.js +23 -22
- package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
- package/dist/app/components/artifacts/chat-interactive-block.js +12 -12
- package/dist/app/components/artifacts/copy-artifact-link.js +7 -5
- package/dist/app/components/artifacts/file-reach-dialog.js +11 -9
- package/dist/app/components/artifacts/inline-chat-image.js +18 -18
- package/dist/app/components/artifacts/retained-file-preview.js +24 -23
- package/dist/app/components/artifacts/retained-text-preview.js +3 -3
- package/dist/app/components/artifacts/site-audience.js +6 -5
- package/dist/app/components/artifacts/site-conversations.js +16 -14
- package/dist/app/components/artifacts/site-data.js +18 -16
- package/dist/app/components/artifacts/site-public-link.js +3 -2
- package/dist/app/components/artifacts/site-publishing-page.js +39 -37
- package/dist/app/components/artifacts/site-publishing.js +34 -32
- package/dist/app/components/artifacts/site-settings.js +38 -36
- package/dist/app/components/artifacts/site-version-menu.js +8 -7
- package/dist/app/components/billing-class-mark.js +3 -3
- package/dist/app/components/bots/bot-launch-strip.js +17 -17
- package/dist/app/components/bots/bot-template-dialog.js +30 -28
- package/dist/app/components/bots/bot-template-shortcuts.js +19 -19
- package/dist/app/components/bots/bot-templates-page.js +38 -36
- package/dist/app/components/bots/bot-templates-page.js.map +1 -1
- package/dist/app/components/capabilities/capability-detail-sheet.js +13 -11
- package/dist/app/components/capabilities/capability-logo-source.js +13 -13
- package/dist/app/components/capabilities/capability-logo.js +4 -3
- package/dist/app/components/capabilities/connector-tool-permissions.js +8 -6
- package/dist/app/components/capabilities/native-connect-setup.js +14 -14
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -6
- package/dist/app/components/capabilities/perform-capability-action.js +7 -6
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -17
- package/dist/app/components/capabilities/session-capability-card.js +72 -70
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +28 -26
- package/dist/app/components/capabilities/session-connection-accounts.js +4 -3
- package/dist/app/components/capabilities/session-custom-mcp-card.js +20 -19
- package/dist/app/components/capabilities/session-github-card.js +22 -20
- package/dist/app/components/capabilities/session-machine-card.js +27 -25
- package/dist/app/components/capabilities/session-personal-github-card.js +16 -16
- package/dist/app/components/capabilities/session-plugin-card.js +10 -9
- package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -3
- package/dist/app/components/capabilities/use-connection-accounts.js +5 -4
- package/dist/app/components/command-menu/chat-status.js +15 -13
- package/dist/app/components/command-menu/chat-switcher.js +35 -33
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
- package/dist/app/components/command-menu/command-menu.js +53 -50
- package/dist/app/components/command-menu/command-menu.js.map +1 -1
- package/dist/app/components/command-menu/shortcut-sheet.js +18 -16
- package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
- package/dist/app/components/common.js +4 -3
- package/dist/app/components/composer-capabilities-menu-body.js +4 -4
- package/dist/app/components/composer-mobile-plus-panel.js +8 -8
- package/dist/app/components/composer-mobile-plus.js +1 -1
- package/dist/app/components/credit-required-gate.js +3 -3
- package/dist/app/components/credit-required-prompt.js +10 -8
- package/dist/app/components/credit-required-prompt.js.map +1 -1
- package/dist/app/components/credits/checkout-credits-celebration.js +3 -2
- package/dist/app/components/credits/checkout-return.js +3 -2
- package/dist/app/components/credits/checkout-return.js.map +1 -1
- package/dist/app/components/credits/coupon-redeem.js +5 -4
- package/dist/app/components/credits/credit-refusal-notice.js +7 -5
- package/dist/app/components/cross-slot-deep-link-recovery.js +5 -4
- package/dist/app/components/desktop/app-shots.js +13 -11
- package/dist/app/components/desktop/computer-use.js +6 -4
- package/dist/app/components/desktop/this-computer.js +9 -7
- package/dist/app/components/feedback.js +5 -4
- package/dist/app/components/follow-up-repository-menu-body.js +8 -6
- package/dist/app/components/follow-up-repository-menu-body.js.map +1 -1
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +5 -4
- package/dist/app/components/in-app-help-link.js +3 -3
- package/dist/app/components/knowledge/agent-learning-settings.js +3 -2
- package/dist/app/components/knowledge/agent-learning-settings.js.map +1 -1
- package/dist/app/components/machines/connect-machine-dialog.js +18 -16
- package/dist/app/components/manual-repository-editor.js +3 -2
- package/dist/app/components/markdown.js +6 -6
- package/dist/app/components/models/models-ui.js +12 -10
- package/dist/app/components/my-things.js +12 -10
- package/dist/app/components/my-things.js.map +1 -1
- package/dist/app/components/new-session-starters.js +3 -3
- package/dist/app/components/own-where-it-works.js +9 -7
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +5 -5
- package/dist/app/components/rail/channel-create-dialog.js +7 -5
- package/dist/app/components/rail/project-glyph.js +17 -17
- package/dist/app/components/rail/project-profile.js +31 -29
- package/dist/app/components/rail/rail-context.js +3 -3
- package/dist/app/components/rail/rail-sections.js +68 -66
- package/dist/app/components/rail/session-header.js +59 -57
- package/dist/app/components/rail/session-list.js +66 -64
- package/dist/app/components/rail/session-row-content.js +4 -4
- package/dist/app/components/rail/session-row-hover-details.js +14 -12
- package/dist/app/components/rail/session-shell.js +90 -88
- package/dist/app/components/rail/site-session-group-heading.js +8 -8
- package/dist/app/components/repository-picker.js +8 -6
- package/dist/app/components/secrets/session-secrets-panel.js +4 -3
- package/dist/app/components/secrets/vault-model.js +3 -2
- package/dist/app/components/session/agent-configuration-panel.js +25 -23
- package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
- package/dist/app/components/session/artifact-link-boundary.js +3 -3
- package/dist/app/components/session/artifact-session-page.js +11 -9
- package/dist/app/components/session/banners.js +8 -8
- package/dist/app/components/session/codex-usage-notice.js +5 -3
- package/dist/app/components/session/console-new-conversation.js +42 -40
- package/dist/app/components/session/context-text-reader.js +3 -2
- package/dist/app/components/session/descendant-requests.js +39 -37
- package/dist/app/components/session/descendant-requests.js.map +1 -1
- package/dist/app/components/session/editable-artifacts-workspace.js +36 -34
- package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
- package/dist/app/components/session/failed-session-banner.js +13 -11
- package/dist/app/components/session/failed-session-banner.js.map +1 -1
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +2 -2
- package/dist/app/components/session/human-input.js +33 -31
- package/dist/app/components/session/inspector.js +57 -55
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/message-actions.js +5 -4
- package/dist/app/components/session/message-actions.js.map +1 -1
- package/dist/app/components/session/message-resource-attachments.js +12 -11
- package/dist/app/components/session/message-resource-attachments.js.map +1 -1
- package/dist/app/components/session/model-context-inspector.js +6 -4
- package/dist/app/components/session/model-recovery-notice.js +3 -3
- package/dist/app/components/session/new-session-settings-menu.js +11 -9
- package/dist/app/components/session/new-session-setup-strip.js +18 -18
- package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
- package/dist/app/components/session/sandbox-switcher.js +10 -9
- package/dist/app/components/session/sandbox-workspace.js +47 -46
- package/dist/app/components/session/search-markdown-highlight.js +7 -7
- package/dist/app/components/session/search-results-view.js +8 -8
- package/dist/app/components/session/session-admin-access.js +13 -11
- package/dist/app/components/session/session-admission-notice.js +7 -5
- package/dist/app/components/session/session-avatar-picker.js +22 -20
- package/dist/app/components/session/session-avatar.js +16 -16
- package/dist/app/components/session/session-machine-access-notice.js +7 -5
- package/dist/app/components/session/session-profile-dialog.js +29 -27
- package/dist/app/components/session/session-profile-editor.js +30 -28
- package/dist/app/components/session/session-retention.js +10 -8
- package/dist/app/components/session/session-search-dialog.js +10 -10
- package/dist/app/components/session/session-skill-reviews.js +2 -1
- package/dist/app/components/session/session-skill-reviews.js.map +1 -1
- package/dist/app/components/session/session-tenancy-control.js +13 -11
- package/dist/app/components/session/session-tenancy-control.js.map +1 -1
- package/dist/app/components/session/session-unattended-setting.js +7 -5
- package/dist/app/components/session/session-usage-limit-section.js +11 -9
- package/dist/app/components/session/share-chat-dialog.js +9 -7
- package/dist/app/components/session/site-origin-link.js +3 -3
- package/dist/app/components/session/subagents.js +8 -8
- package/dist/app/components/session/subscription-account-indicator.js +6 -6
- package/dist/app/components/session-connectors-menu-body.js +4 -3
- package/dist/app/components/session-connectors-menu-body.js.map +1 -1
- package/dist/app/components/settings/row-select.js +7 -5
- package/dist/app/components/toaster.js +3 -2
- package/dist/app/components/transcription-settings.js +11 -9
- package/dist/app/components/ui/destructive-confirm.js +11 -9
- package/dist/app/components/usage/usage-entry.js +5 -5
- package/dist/app/components/window-bar.js +16 -14
- package/dist/app/components/workspace-composer-plus.js +22 -21
- package/dist/app/components/workspace-reach.js +6 -4
- package/dist/app/components/workspace-tenant-boundary.js +5 -4
- package/dist/app/embed/memory-navigation.js +3 -3
- package/dist/app/embed/session-app.js +211 -209
- package/dist/app/lib/actions/actions-provider.js +15 -13
- package/dist/app/lib/agent-capabilities.js +3 -3
- package/dist/app/lib/app-surfaces.js +7 -6
- package/dist/app/lib/archive-session.d.ts +9 -4
- package/dist/app/lib/archive-session.js +4 -2
- package/dist/app/lib/bot-templates.js +3 -2
- package/dist/app/lib/capabilities.js +3 -2
- package/dist/app/lib/codex-usage-query.js +2 -2
- package/dist/app/lib/composer-connectors.js +17 -16
- package/dist/app/lib/console-site.js +2 -2
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +9 -9
- package/dist/app/lib/failed-session-copy.js +3 -3
- package/dist/app/lib/inbox.js +4 -2
- package/dist/app/lib/model-access-onboarding.js +3 -3
- package/dist/app/lib/move-chat-to-machine.js +3 -3
- package/dist/app/lib/navigation.js +2 -2
- package/dist/app/lib/session-branch-cache.js +6 -6
- package/dist/app/lib/session-create.js +4 -4
- package/dist/app/lib/session-group-pagination.js +6 -6
- package/dist/app/lib/session-hover-facts.js +13 -11
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +3 -3
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/session-restart-operation-controller.js +4 -3
- package/dist/app/lib/session-tenancy.js +3 -2
- package/dist/app/lib/session-usage-limit.js +3 -2
- package/dist/app/lib/sessions-group.js +5 -5
- package/dist/app/lib/site-publishing.js +3 -2
- package/dist/app/lib/site-tool-consent-dialog.js +9 -7
- package/dist/app/lib/site-tool-consent-dialog.js.map +1 -1
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/subscription-plans.js +3 -2
- package/dist/app/lib/toast.js +2 -1
- package/dist/app/lib/turn-failure-analytics.js +4 -4
- package/dist/app/lib/use-duplicate-site.js +6 -5
- package/dist/app/lib/use-follow-up-repositories.js +6 -5
- package/dist/app/lib/use-workspace-integrations.js +4 -3
- package/dist/app/lib/use-workspace-machines.js +4 -4
- package/dist/app/lib/use-workspace-model-catalog.js +5 -4
- package/dist/app/lib/use-workspace-rigs.js +2 -2
- package/dist/app/lib/workspace-navigation-preference.js +4 -4
- package/dist/app/lib/workspace-scope-context.js +3 -3
- package/dist/app/routes/artifacts.js +67 -66
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +42 -40
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +8 -7
- package/dist/app/routes/session.js +119 -117
- package/dist/app/routes/sessions-index-hydration.js +5 -5
- package/dist/app/routes/sessions-index.js +104 -102
- package/dist/app/routes/site-view.js +67 -65
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +4 -4
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +10 -10
- package/dist/automations.js +17 -15
- package/dist/automations.js.map +1 -1
- package/dist/browser-viewer-TC27OCIP.js +23 -0
- package/dist/chat-interactive-block-RWPQBHVS.js +18 -0
- package/dist/chunk-2BDT3UZQ.js +229 -0
- package/dist/chunk-2CLNIEK4.js +373 -0
- package/dist/chunk-2FSBSCZJ.js +451 -0
- package/dist/chunk-2I7HDP53.js +199 -0
- package/dist/chunk-2INLDVK3.js +15 -0
- package/dist/chunk-2KALVELR.js +126 -0
- package/dist/chunk-2M3J7ZWQ.js +418 -0
- package/dist/chunk-2OP6WLGV.js +708 -0
- package/dist/chunk-2RG7NIAS.js +2936 -0
- package/dist/chunk-2STUPWEL.js +135 -0
- package/dist/chunk-2YUOVM3G.js +271 -0
- package/dist/chunk-2Z3NQNTM.js +3670 -0
- package/dist/chunk-3CPWWGNK.js +920 -0
- package/dist/chunk-3ED2U6XE.js +37 -0
- package/dist/chunk-3GZA4BUW.js +216 -0
- package/dist/chunk-3IK6UYO6.js +1022 -0
- package/dist/chunk-3PZ7JZI2.js +431 -0
- package/dist/chunk-4DVJ6ONS.js +50 -0
- package/dist/chunk-4DVNUCRR.js +2386 -0
- package/dist/chunk-4DVNUCRR.js.map +1 -0
- package/dist/chunk-4E3ZJRTZ.js +41 -0
- package/dist/chunk-4SAWSRAA.js +141 -0
- package/dist/chunk-53AGXXZM.js +307 -0
- package/dist/chunk-54YW6SZZ.js +818 -0
- package/dist/chunk-57AZS3IE.js +2317 -0
- package/dist/chunk-5CPEEAFD.js +143 -0
- package/dist/chunk-5EWSRZ2Y.js +340 -0
- package/dist/chunk-5IE76VCY.js +387 -0
- package/dist/chunk-5NWEKLDZ.js +170 -0
- package/dist/chunk-5O2FCCHZ.js +198 -0
- package/dist/chunk-5QAY6K77.js +399 -0
- package/dist/chunk-5YKW2K6I.js +625 -0
- package/dist/chunk-5YKW2K6I.js.map +1 -0
- package/dist/chunk-6BCXNDEI.js +4116 -0
- package/dist/chunk-6BCXNDEI.js.map +1 -0
- package/dist/chunk-6DK6Z4UN.js +2599 -0
- package/dist/chunk-6DVCC7QS.js +702 -0
- package/dist/chunk-6JHU2UBS.js +2058 -0
- package/dist/chunk-6PZ7OBYU.js +490 -0
- package/dist/chunk-6WD2INST.js +539 -0
- package/dist/chunk-6WD2INST.js.map +1 -0
- package/dist/chunk-6WGRDRMA.js +163 -0
- package/dist/chunk-77WAKEAH.js +186 -0
- package/dist/chunk-7T2ZE3VT.js +5558 -0
- package/dist/chunk-7T2ZE3VT.js.map +1 -0
- package/dist/chunk-7TDO3CUM.js +393 -0
- package/dist/chunk-7TIX2UAR.js +247 -0
- package/dist/chunk-7V5REBCP.js +148 -0
- package/dist/chunk-7VMZGLYI.js +339 -0
- package/dist/chunk-7W37NS3I.js +236 -0
- package/dist/chunk-7X6SDK2C.js +111 -0
- package/dist/chunk-7ZNUHRP5.js +95 -0
- package/dist/chunk-A36PZALD.js +84 -0
- package/dist/chunk-AUI6VA63.js +107 -0
- package/dist/chunk-AW2MQB37.js +24 -0
- package/dist/chunk-AWKES45Y.js +198 -0
- package/dist/chunk-AXHZYXUV.js +132 -0
- package/dist/chunk-BHNSJVBC.js +129 -0
- package/dist/chunk-BJEJFISW.js +50 -0
- package/dist/chunk-BJFH6JI5.js +422 -0
- package/dist/chunk-BMICEQZQ.js +960 -0
- package/dist/chunk-BTLBYBLU.js +29 -0
- package/dist/chunk-BXBDYNRP.js +89 -0
- package/dist/chunk-C372BFOV.js +357 -0
- package/dist/chunk-C43KRXGA.js +234 -0
- package/dist/chunk-C43KRXGA.js.map +1 -0
- package/dist/chunk-CMKGILJK.js +4824 -0
- package/dist/chunk-CRAOSVHC.js +50 -0
- package/dist/chunk-CRU35QQH.js +281 -0
- package/dist/chunk-CUIWCGMA.js +172 -0
- package/dist/chunk-D5TWNFFE.js +38 -0
- package/dist/chunk-DF5EAHDN.js +4461 -0
- package/dist/chunk-DJAXC5OK.js +56 -0
- package/dist/chunk-DXBYWSL5.js +3550 -0
- package/dist/chunk-DXR5PDFP.js +84 -0
- package/dist/chunk-DZWARC4M.js +267 -0
- package/dist/chunk-DZXEDSQI.js +106 -0
- package/dist/chunk-E7XERZWC.js +48 -0
- package/dist/chunk-ECJBYNLJ.js +79 -0
- package/dist/chunk-EDI6SJ2N.js +43 -0
- package/dist/chunk-EWSOC6WF.js +114 -0
- package/dist/chunk-F2OPHAUN.js +103 -0
- package/dist/chunk-F4ISQGGM.js +81 -0
- package/dist/chunk-FO4LYKJL.js +197 -0
- package/dist/chunk-FPXASDG5.js +73 -0
- package/dist/chunk-FSOQDUCG.js +117 -0
- package/dist/chunk-FSOQDUCG.js.map +1 -0
- package/dist/chunk-FVXBNBHO.js +157 -0
- package/dist/chunk-FYWT2O76.js +34 -0
- package/dist/chunk-FYWT2O76.js.map +1 -0
- package/dist/chunk-FZC5N55X.js +981 -0
- package/dist/chunk-GAVYGBFI.js +99 -0
- package/dist/chunk-GFIMOUDT.js +846 -0
- package/dist/chunk-GFIMOUDT.js.map +1 -0
- package/dist/chunk-GKVJIDHF.js +33 -0
- package/dist/chunk-GVN5SZLX.js +212 -0
- package/dist/chunk-H3T7IWNA.js +134 -0
- package/dist/chunk-HAX4LCR5.js +261 -0
- package/dist/chunk-HC4JFZVU.js +121 -0
- package/dist/chunk-HEFPPMBQ.js +581 -0
- package/dist/chunk-HGKTHF2U.js +1356 -0
- package/dist/chunk-HGKTHF2U.js.map +1 -0
- package/dist/chunk-HNLR7Q4Z.js +83 -0
- package/dist/chunk-HSOXMJOT.js +12 -0
- package/dist/chunk-I4MRDSUF.js +281 -0
- package/dist/chunk-I4QEJ62Y.js +202 -0
- package/dist/chunk-I5B5L6Q4.js +56 -0
- package/dist/chunk-I5QZJODL.js +264 -0
- package/dist/chunk-I7ITSXSJ.js +603 -0
- package/dist/chunk-I7XIZRFD.js +390 -0
- package/dist/chunk-IDANQPRH.js +82 -0
- package/dist/chunk-IFB3WJ36.js +212 -0
- package/dist/chunk-IHTAKKTK.js +264 -0
- package/dist/chunk-IKXNLWAL.js +205 -0
- package/dist/chunk-IKXNLWAL.js.map +1 -0
- package/dist/chunk-ILDXWY37.js +173 -0
- package/dist/chunk-IMDQUHBJ.js +570 -0
- package/dist/chunk-IMZCQBOT.js +119 -0
- package/dist/chunk-IXPTECSC.js +403 -0
- package/dist/chunk-J255A3N5.js +71 -0
- package/dist/chunk-J5F5HPPW.js +141 -0
- package/dist/chunk-JDTGRRNU.js +5045 -0
- package/dist/chunk-JDTGRRNU.js.map +1 -0
- package/dist/chunk-JEA3QDX7.js +2469 -0
- package/dist/chunk-JEUPAVYY.js +156 -0
- package/dist/chunk-JKHKLL5W.js +194 -0
- package/dist/chunk-JQL7ZH6C.js +650 -0
- package/dist/chunk-JWB44UGJ.js +57 -0
- package/dist/chunk-JZ4NLCAP.js +333 -0
- package/dist/chunk-K2A5PXQ5.js +412 -0
- package/dist/chunk-K56XV3C3.js +623 -0
- package/dist/chunk-K6GAXXVA.js +23 -0
- package/dist/chunk-KCBMFSMS.js +199 -0
- package/dist/chunk-KF2FV3ZJ.js +268 -0
- package/dist/chunk-KJD65EJP.js +278 -0
- package/dist/chunk-KLEUWIMZ.js +386 -0
- package/dist/chunk-KODELWYT.js +309 -0
- package/dist/chunk-KRDR5RJD.js +83 -0
- package/dist/chunk-KUDGXAF7.js +914 -0
- package/dist/chunk-KY2R73CG.js +171 -0
- package/dist/chunk-KY2R73CG.js.map +1 -0
- package/dist/chunk-KYS77RPN.js +85 -0
- package/dist/chunk-L7YTNTIK.js +368 -0
- package/dist/chunk-LHPNABDH.js +686 -0
- package/dist/chunk-MFROMEKA.js +401 -0
- package/dist/chunk-MIHN76LX.js +2656 -0
- package/dist/chunk-MIYFS2XN.js +42 -0
- package/dist/chunk-MJUCFQMS.js +65 -0
- package/dist/chunk-MM4FNWI4.js +3064 -0
- package/dist/chunk-MNZG4OHU.js +790 -0
- package/dist/chunk-MVW6HNPI.js +250 -0
- package/dist/chunk-MVW6HNPI.js.map +1 -0
- package/dist/chunk-N6AACDUW.js +200 -0
- package/dist/chunk-NC55IFN3.js +781 -0
- package/dist/chunk-NC7PVOEK.js +98 -0
- package/dist/chunk-NCYMNCJO.js +70 -0
- package/dist/chunk-ND2BXV3P.js +259 -0
- package/dist/chunk-NDBTFUO6.js +272 -0
- package/dist/chunk-NDQJZ7HF.js +206 -0
- package/dist/chunk-NGJJJPZZ.js +162 -0
- package/dist/chunk-NJTSNNE7.js +251 -0
- package/dist/chunk-NPGISCU6.js +4159 -0
- package/dist/chunk-NPGISCU6.js.map +1 -0
- package/dist/chunk-NRTE7DNV.js +1270 -0
- package/dist/chunk-NULUNM7H.js +290 -0
- package/dist/chunk-NUNZS36W.js +227 -0
- package/dist/chunk-NW53H5RW.js +2424 -0
- package/dist/chunk-NXCMHIKI.js +263 -0
- package/dist/chunk-O3LKCBP5.js +159 -0
- package/dist/chunk-O4EA4F3W.js +103 -0
- package/dist/chunk-O4EA4F3W.js.map +1 -0
- package/dist/chunk-O4OOG3D6.js +116 -0
- package/dist/chunk-O4OOG3D6.js.map +1 -0
- package/dist/chunk-O6N4ABCA.js +376 -0
- package/dist/chunk-O732GAFC.js +112 -0
- package/dist/chunk-OF4TIKYC.js +690 -0
- package/dist/chunk-OMPVOMPP.js +70 -0
- package/dist/chunk-OPJJSKUK.js +118 -0
- package/dist/chunk-OPWCMA4D.js +196 -0
- package/dist/chunk-ORJPS5VN.js +1193 -0
- package/dist/chunk-OSY5K7L7.js +187 -0
- package/dist/chunk-OV6QJRT4.js +45 -0
- package/dist/chunk-OVKYVZMW.js +108 -0
- package/dist/chunk-OZCBM3UC.js +171 -0
- package/dist/chunk-P3A2EINJ.js +61 -0
- package/dist/chunk-PTAG4PDC.js +27 -0
- package/dist/chunk-PTF5B7TJ.js +298 -0
- package/dist/chunk-Q3DPEYX4.js +848 -0
- package/dist/chunk-Q6CGOPJD.js +215 -0
- package/dist/chunk-Q6CGOPJD.js.map +1 -0
- package/dist/chunk-QB2KMIDP.js +100 -0
- package/dist/chunk-QCSJ4CWE.js +1067 -0
- package/dist/chunk-QIOQ2NPQ.js +414 -0
- package/dist/chunk-QK5EFEUT.js +353 -0
- package/dist/chunk-QPQBLYQJ.js +41 -0
- package/dist/chunk-QPSGCC5D.js +184 -0
- package/dist/chunk-QZAAUQRN.js +474 -0
- package/dist/chunk-QZM6YDJW.js +489 -0
- package/dist/chunk-QZM6YDJW.js.map +1 -0
- package/dist/chunk-RGBI63KJ.js +188 -0
- package/dist/chunk-RLBKLAEY.js +138 -0
- package/dist/chunk-RMFKVOM7.js +304 -0
- package/dist/chunk-ROKQU7WG.js +258 -0
- package/dist/chunk-RPVREAU7.js +251 -0
- package/dist/chunk-RQKLF42C.js +723 -0
- package/dist/chunk-SC6RRD2D.js +38 -0
- package/dist/chunk-SC6RRD2D.js.map +1 -0
- package/dist/chunk-SEO7TICN.js +94 -0
- package/dist/chunk-SHHJCL7X.js +432 -0
- package/dist/chunk-SIRLACNZ.js +114 -0
- package/dist/chunk-SKPHMYAA.js +237 -0
- package/dist/chunk-SODC7T6L.js +1583 -0
- package/dist/chunk-SQJIKMN3.js +366 -0
- package/dist/chunk-SVINDKVW.js +26 -0
- package/dist/chunk-SYCDHPZF.js +335 -0
- package/dist/chunk-T2QX3FDP.js +133 -0
- package/dist/chunk-T3OWFVMS.js +1187 -0
- package/dist/chunk-T6XI5FLY.js +61 -0
- package/dist/chunk-T7OXJZCX.js +62 -0
- package/dist/chunk-TAT5USZN.js +353 -0
- package/dist/chunk-TPQTRNER.js +172 -0
- package/dist/chunk-TUIN4MB7.js +266 -0
- package/dist/chunk-TX3VECZU.js +71 -0
- package/dist/chunk-TXLIEOJX.js +9624 -0
- package/dist/chunk-U3DN4HEY.js +27 -0
- package/dist/chunk-U7XM7CB4.js +191 -0
- package/dist/chunk-UJK53QFL.js +140 -0
- package/dist/chunk-UMTXA2TH.js +319 -0
- package/dist/chunk-UPDSXFK5.js +199 -0
- package/dist/chunk-UTIAXH52.js +269 -0
- package/dist/chunk-UVN5TMHU.js +1184 -0
- package/dist/chunk-V4Z4B2E3.js +52 -0
- package/dist/chunk-V4Z4B2E3.js.map +1 -0
- package/dist/chunk-VGYXW3VG.js +246 -0
- package/dist/chunk-VS7AHPCZ.js +255 -0
- package/dist/chunk-VTTAJOQ7.js +121 -0
- package/dist/chunk-VWPOLUAO.js +99 -0
- package/dist/chunk-X3MWB2QU.js +3851 -0
- package/dist/chunk-X6KAJI3V.js +211 -0
- package/dist/chunk-XBLRHV5R.js +50 -0
- package/dist/chunk-XDFP2LMW.js +605 -0
- package/dist/chunk-XEQMZB3C.js +525 -0
- package/dist/chunk-XEYLT5VA.js +223 -0
- package/dist/chunk-XHIQ5I6N.js +918 -0
- package/dist/chunk-XLH7QY2R.js +378 -0
- package/dist/chunk-XWFAMUZQ.js +113 -0
- package/dist/chunk-Y4BB2KS2.js +294 -0
- package/dist/chunk-Y4BB2KS2.js.map +1 -0
- package/dist/chunk-Y4OBB2VN.js +84 -0
- package/dist/chunk-YCVD6CI3.js +234 -0
- package/dist/chunk-YENLNISG.js +270 -0
- package/dist/chunk-YIRVLKAX.js +351 -0
- package/dist/chunk-YL73CVNK.js +390 -0
- package/dist/chunk-YLS6QE5G.js +288 -0
- package/dist/chunk-YNF2OC54.js +366 -0
- package/dist/chunk-YNF2OC54.js.map +1 -0
- package/dist/chunk-YPWU5KPE.js +147 -0
- package/dist/chunk-YQXTDZSU.js +2984 -0
- package/dist/chunk-YSJEAAOL.js +178 -0
- package/dist/chunk-YWIFM7D7.js +499 -0
- package/dist/chunk-YWVI6ZMK.js +103 -0
- package/dist/chunk-Z4FMAFNH.js +847 -0
- package/dist/chunk-Z654FWNU.js +136 -0
- package/dist/chunk-Z7Y523PS.js +130 -0
- package/dist/chunk-ZD67RM6G.js +60 -0
- package/dist/chunk-ZEG4VPBL.js +187 -0
- package/dist/chunk-ZHDFQITM.js +283 -0
- package/dist/chunk-ZHDFQITM.js.map +1 -0
- package/dist/chunk-ZLYCOBHW.js +75 -0
- package/dist/chunk-ZNJ5MTXV.js +89 -0
- package/dist/chunk-ZSGY3H53.js +155 -0
- package/dist/chunk-ZTPXACWB.js +1788 -0
- package/dist/chunk-ZUA3JMI6.js +107 -0
- package/dist/chunk-ZYAZUPPV.js +559 -0
- package/dist/composer.js +8 -8
- package/dist/computer-viewer-TDDO25AV.js +21 -0
- package/dist/connect.js +12 -12
- package/dist/desktop-dictation.js +12 -10
- package/dist/desktop-dictation.js.map +1 -1
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-2G3VLPVQ.js +24 -0
- package/dist/embedded-voice-T5IWOWGD.js +24 -0
- package/dist/fleet-decision-row-WM64KXP3.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +51 -51
- package/dist/interaction.js +5 -5
- package/dist/machines.js +3 -3
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +40 -32
- package/dist/meetings.js.map +1 -1
- package/dist/messages/en.d.ts +3 -0
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-SMC6J6QN.js +22 -0
- package/dist/payment-page-card-G4U63KUV.js +223 -0
- package/dist/platform-activity-row-BUZGZAKZ.js +128 -0
- package/dist/queue-surface-implementation-4KUZ4PJV.js +908 -0
- package/dist/realtime.js +4 -4
- package/dist/recorder-host-WF2RRR56.js +69 -0
- package/dist/recorder-host-WF2RRR56.js.map +1 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-ESDMOFSD.js +27 -0
- package/dist/session-app.js +211 -209
- package/dist/session-connect-cards-Q53KMMYY.js +25 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-CF3I35WJ.js +30 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +33 -31
- package/dist/session.js +5 -5
- package/dist/sites.js +2 -2
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-CJK4RYZ4.js +157 -0
- package/dist/timeline-annotation-selection-67GF5H26.js +208 -0
- package/dist/timeline-annotations-dialog-ONJPQDJQ.js +283 -0
- package/dist/ui/access-list.js +11 -9
- package/dist/ui/access-list.js.map +1 -1
- package/dist/ui/api-error.d.ts +6 -3
- package/dist/ui/api-error.js +2 -1
- package/dist/ui/cadence-picker.js +6 -4
- package/dist/ui/choice-cards.js +5 -3
- package/dist/ui/confirm-dialog.js +2 -2
- package/dist/ui/copy-field.js +5 -3
- package/dist/ui/detail-page.js +2 -2
- package/dist/ui/detail-sheet.js +2 -2
- package/dist/ui/diff-view.js +4 -3
- package/dist/ui/disclosure.js +3 -3
- package/dist/ui/email-chips-input.js +5 -3
- package/dist/ui/error-message.js +2 -1
- package/dist/ui/error-reference.d.ts +15 -0
- package/dist/ui/error-text.d.ts +10 -0
- package/dist/ui/error-text.js +9 -0
- package/dist/ui/error-text.js.map +1 -0
- package/dist/ui/field.js +4 -2
- package/dist/ui/flush-form-page.js +8 -6
- package/dist/ui/form-dialog.js +7 -5
- package/dist/ui/list-row.js +3 -3
- package/dist/ui/load-failure.js +3 -2
- package/dist/ui/load-failure.js.map +1 -1
- package/dist/ui/notice.js +3 -1
- package/dist/ui/relative-time.js +2 -2
- package/dist/ui/revision-history.js +9 -7
- package/dist/ui/revision-history.js.map +1 -1
- package/dist/ui/role-select.js +10 -8
- package/dist/ui/segmented-control.js +4 -2
- package/dist/ui/select-menu.js +5 -3
- package/dist/ui/setting-row.js +3 -1
- package/dist/ui/switch.js +4 -2
- package/dist/ui/usage-meter.js +3 -3
- package/dist/ui/word-list-row.js +4 -2
- package/dist/usage.js +2 -2
- package/dist/workbench.js +4 -4
- package/package.json +5 -6
- package/src/app/app-state.tsx +126 -14
- package/src/app/components/artifacts/site-data.tsx +2 -2
- package/src/app/components/artifacts/site-settings.tsx +2 -2
- package/src/app/components/rail/session-list.tsx +7 -8
- package/src/app/components/rail/session-shell.tsx +3 -3
- package/src/app/components/repository-picker.tsx +8 -1
- package/src/app/components/session/model-context-inspector.tsx +2 -1
- package/src/app/components/session/session-admin-access.tsx +2 -2
- package/src/app/lib/actions/chat-operations.ts +4 -4
- package/src/app/lib/archive-session.test.tsx +265 -2
- package/src/app/lib/archive-session.tsx +175 -9
- package/src/app/lib/copy-link.ts +2 -2
- package/src/app/lib/inbox.tsx +2 -2
- package/src/app/lib/session-failure-toasts.ts +3 -2
- package/src/app/lib/toast.test.tsx +215 -0
- package/src/app/lib/toast.tsx +67 -2
- package/src/app/personal-github-reconnect.test.tsx +356 -0
- package/src/app/routes/artifacts.tsx +1 -2
- package/src/components/tool-action-review.tsx +14 -1
- package/src/meetings/delete-meeting-dialog.tsx +2 -1
- package/src/meetings/meeting-ask.tsx +2 -1
- package/src/meetings/meeting-detail-page.tsx +2 -1
- package/src/meetings/meeting-notes.tsx +2 -1
- package/src/meetings/meeting-settings.tsx +4 -1
- package/src/meetings/meeting-transcript.tsx +4 -1
- package/src/meetings/recorder-context.tsx +10 -0
- package/src/meetings/recorder-host.test.tsx +60 -2
- package/src/meetings/recorder-host.tsx +16 -3
- package/src/meetings/recorder-panel.tsx +2 -1
- package/src/meetings/recorder-workspace.test.tsx +26 -1
- package/src/messages/en.ts +6 -0
- package/src/ui/api-error.test.ts +29 -5
- package/src/ui/api-error.tsx +10 -4
- package/src/ui/error-message.tsx +8 -0
- package/src/ui/error-reference.test.ts +54 -0
- package/src/ui/error-reference.ts +51 -0
- package/src/ui/error-text.test.tsx +66 -0
- package/src/ui/error-text.tsx +49 -0
- package/src/ui/field.tsx +4 -1
- package/src/ui/notice.tsx +7 -2
- package/src/ui/setting-row.tsx +4 -1
- package/styles/app.css +12 -0
- package/styles/compiled.css +9 -0
- package/dist/browser-viewer-NOP5EAUO.js +0 -23
- package/dist/chat-interactive-block-G7O44JHR.js +0 -18
- package/dist/chunk-26RWVLRD.js +0 -135
- package/dist/chunk-2AHTY7OT.js +0 -247
- package/dist/chunk-2GDNWKSC.js +0 -3670
- package/dist/chunk-2JENKGCE.js +0 -339
- package/dist/chunk-2KYQC4T5.js +0 -155
- package/dist/chunk-2RREGDQH.js +0 -708
- package/dist/chunk-2T7DX6KR.js +0 -353
- package/dist/chunk-2VB2O4FQ.js +0 -920
- package/dist/chunk-2VTTKH23.js +0 -94
- package/dist/chunk-2XNG2KNT.js +0 -172
- package/dist/chunk-2YC6JQRO.js +0 -399
- package/dist/chunk-2ZVRJRXC.js +0 -27
- package/dist/chunk-35737UT4.js +0 -162
- package/dist/chunk-366XZ4PM.js +0 -41
- package/dist/chunk-36MIDGAH.js +0 -199
- package/dist/chunk-3FD76LXM.js +0 -212
- package/dist/chunk-3OVIXY4O.js +0 -213
- package/dist/chunk-3OVIXY4O.js.map +0 -1
- package/dist/chunk-3QNRBEYH.js +0 -432
- package/dist/chunk-3QX55WLC.js +0 -15
- package/dist/chunk-3USJPT2S.js +0 -1022
- package/dist/chunk-42CMQ5VR.js +0 -251
- package/dist/chunk-4LPOWQJY.js +0 -42
- package/dist/chunk-4NBTZRKT.js +0 -79
- package/dist/chunk-4OXI6HCV.js +0 -118
- package/dist/chunk-4SZZAFYQ.js +0 -2317
- package/dist/chunk-4TQL3WP2.js +0 -140
- package/dist/chunk-4Y6BK7IU.js +0 -196
- package/dist/chunk-4YD7YZC5.js +0 -373
- package/dist/chunk-5DTST3TP.js +0 -81
- package/dist/chunk-5FH5LQVS.js +0 -130
- package/dist/chunk-5KWMYPJV.js +0 -847
- package/dist/chunk-5MUJDC6C.js +0 -84
- package/dist/chunk-5QM2WPKV.js +0 -41
- package/dist/chunk-5WUN7XPD.js +0 -1184
- package/dist/chunk-64PO2WXU.js +0 -1067
- package/dist/chunk-6AHATAAY.js +0 -431
- package/dist/chunk-6ED2YWBT.js +0 -56
- package/dist/chunk-6GXVYAGR.js +0 -170
- package/dist/chunk-6H4SJBPE.js +0 -85
- package/dist/chunk-6MT3HHUB.js +0 -84
- package/dist/chunk-6UHCBH4G.js +0 -198
- package/dist/chunk-6WLX3NR3.js +0 -198
- package/dist/chunk-73NXYYWE.js +0 -112
- package/dist/chunk-76ERNKIZ.js +0 -603
- package/dist/chunk-776QZ573.js +0 -57
- package/dist/chunk-7BYWOFVH.js +0 -171
- package/dist/chunk-7O5CGGIQ.js +0 -108
- package/dist/chunk-7QOHRZ67.js +0 -251
- package/dist/chunk-7WIDB4PL.js +0 -2058
- package/dist/chunk-7WKP3DYJ.js +0 -37
- package/dist/chunk-7XOVTPDI.js +0 -227
- package/dist/chunk-AB5MBIXY.js +0 -281
- package/dist/chunk-ADNMXBCX.js +0 -1193
- package/dist/chunk-AFBJTUFK.js +0 -202
- package/dist/chunk-ALVRWCXE.js +0 -61
- package/dist/chunk-AOHU6O3M.js +0 -247
- package/dist/chunk-AOHU6O3M.js.map +0 -1
- package/dist/chunk-APW4T4SW.js +0 -270
- package/dist/chunk-AXBSYWKX.js +0 -2656
- package/dist/chunk-B2I5ZW35.js +0 -422
- package/dist/chunk-B3LMRTRF.js +0 -223
- package/dist/chunk-BE2XENG2.js +0 -292
- package/dist/chunk-BE2XENG2.js.map +0 -1
- package/dist/chunk-BF4SADKX.js +0 -29
- package/dist/chunk-BKP43KK4.js +0 -1788
- package/dist/chunk-BM3NEZ6X.js +0 -781
- package/dist/chunk-BT3BAGB5.js +0 -216
- package/dist/chunk-BTSYDIVJ.js +0 -357
- package/dist/chunk-BUBNGKWG.js +0 -70
- package/dist/chunk-BVUJV5WR.js +0 -126
- package/dist/chunk-BZO5ZMUP.js +0 -27
- package/dist/chunk-C3HUF3M2.js +0 -157
- package/dist/chunk-C5QCAOES.js +0 -264
- package/dist/chunk-CGK6ALQU.js +0 -159
- package/dist/chunk-CPYGO76Q.js +0 -335
- package/dist/chunk-CQH4FWYA.js +0 -490
- package/dist/chunk-CZP5QXNB.js +0 -234
- package/dist/chunk-D2TOWEYH.js +0 -266
- package/dist/chunk-D6L4GHRH.js +0 -340
- package/dist/chunk-DKT3N37I.js +0 -50
- package/dist/chunk-DMMJIFKA.js +0 -84
- package/dist/chunk-DO74DQC7.js +0 -26
- package/dist/chunk-DOFJZ2JU.js +0 -83
- package/dist/chunk-DSXVY5WZ.js +0 -119
- package/dist/chunk-E337C2VK.js +0 -82
- package/dist/chunk-E6NRSRBE.js +0 -114
- package/dist/chunk-E6SQKHAU.js +0 -114
- package/dist/chunk-E7UIVD7F.js +0 -236
- package/dist/chunk-EGBII4CP.js +0 -229
- package/dist/chunk-EILSAQVJ.js +0 -200
- package/dist/chunk-ELL6HSYR.js +0 -307
- package/dist/chunk-EUBGLFFR.js +0 -73
- package/dist/chunk-EW6RNWSH.js +0 -212
- package/dist/chunk-EYUT5Y6V.js +0 -2599
- package/dist/chunk-F7U3QPZ3.js +0 -304
- package/dist/chunk-FBTJKSTM.js +0 -1270
- package/dist/chunk-FC2FTSK3.js +0 -2424
- package/dist/chunk-FOGNA3BU.js +0 -148
- package/dist/chunk-FQFKHNC7.js +0 -650
- package/dist/chunk-FTCHM755.js +0 -50
- package/dist/chunk-FXSHP4JZ.js +0 -3550
- package/dist/chunk-G6ZZC543.js +0 -818
- package/dist/chunk-G7FU6PUA.js +0 -100
- package/dist/chunk-GA4YEAMX.js +0 -3851
- package/dist/chunk-GE33BGB7.js +0 -12
- package/dist/chunk-GQ67HSJY.js +0 -570
- package/dist/chunk-GXXZ3WAK.js +0 -106
- package/dist/chunk-H2TCRX3H.js +0 -237
- package/dist/chunk-HLL4PBO7.js +0 -60
- package/dist/chunk-HLOEPV5C.js +0 -259
- package/dist/chunk-HUAGBS4O.js +0 -56
- package/dist/chunk-I36GSRUJ.js +0 -211
- package/dist/chunk-I6VBHT7S.js +0 -261
- package/dist/chunk-ICNNNOXE.js +0 -333
- package/dist/chunk-ICX64J4U.js +0 -172
- package/dist/chunk-ID36Y46W.js +0 -5046
- package/dist/chunk-ID36Y46W.js.map +0 -1
- package/dist/chunk-IGVVXLKJ.js +0 -559
- package/dist/chunk-IKJLSBUI.js +0 -2984
- package/dist/chunk-IKMUFDVS.js +0 -50
- package/dist/chunk-IKUNOX7F.js +0 -255
- package/dist/chunk-ILKDYBON.js +0 -288
- package/dist/chunk-IVYJX3OY.js +0 -187
- package/dist/chunk-JCY4CMDH.js +0 -107
- package/dist/chunk-JJZPLGIP.js +0 -474
- package/dist/chunk-JW33RV4V.js +0 -143
- package/dist/chunk-JWPA6ZPZ.js +0 -351
- package/dist/chunk-JZ4QXS6D.js +0 -50
- package/dist/chunk-K42OUZQ3.js +0 -386
- package/dist/chunk-K5TOVX5A.js +0 -206
- package/dist/chunk-K63HGHZX.js +0 -99
- package/dist/chunk-K6R5T44I.js +0 -75
- package/dist/chunk-KHJ5PXFM.js +0 -914
- package/dist/chunk-KJZRQ55O.js +0 -2319
- package/dist/chunk-KJZRQ55O.js.map +0 -1
- package/dist/chunk-KKI55ZMW.js +0 -65
- package/dist/chunk-KRPLAAFP.js +0 -199
- package/dist/chunk-KVFEZDBO.js +0 -134
- package/dist/chunk-L4I665WK.js +0 -45
- package/dist/chunk-L4OF77LE.js +0 -110
- package/dist/chunk-L4OF77LE.js.map +0 -1
- package/dist/chunk-LA5T52RM.js +0 -70
- package/dist/chunk-LM2W5YAT.js +0 -401
- package/dist/chunk-LQ62ECE6.js +0 -390
- package/dist/chunk-LQDUHU3Y.js +0 -71
- package/dist/chunk-LRJIYTZW.js +0 -4157
- package/dist/chunk-LRJIYTZW.js.map +0 -1
- package/dist/chunk-LRN6GYAZ.js +0 -138
- package/dist/chunk-M4SDVTKJ.js +0 -790
- package/dist/chunk-MA6O7CM6.js +0 -99
- package/dist/chunk-MBIBB6GI.js +0 -197
- package/dist/chunk-MF3ZFB4H.js +0 -199
- package/dist/chunk-MJJGJMYJ.js +0 -98
- package/dist/chunk-MLJADQFI.js +0 -4824
- package/dist/chunk-MQG7RV3B.js +0 -62
- package/dist/chunk-MTTGSQA5.js +0 -186
- package/dist/chunk-MW7Y3T55.js +0 -525
- package/dist/chunk-MYUFMVCH.js +0 -121
- package/dist/chunk-N3OARGH2.js +0 -61
- package/dist/chunk-NB2HMRT2.js +0 -353
- package/dist/chunk-NFDFYWMV.js +0 -141
- package/dist/chunk-NWGNFN3N.js +0 -1187
- package/dist/chunk-NWJRPDIO.js +0 -840
- package/dist/chunk-NWJRPDIO.js.map +0 -1
- package/dist/chunk-NXWBBZJV.js +0 -267
- package/dist/chunk-NY2QWROL.js +0 -71
- package/dist/chunk-O2IOPP3R.js +0 -848
- package/dist/chunk-O2UWH5RG.js +0 -141
- package/dist/chunk-O5YWDLYF.js +0 -393
- package/dist/chunk-OBMCZO7E.js +0 -121
- package/dist/chunk-OD3DCCCB.js +0 -132
- package/dist/chunk-OMH7R6I3.js +0 -390
- package/dist/chunk-OSA5EQG5.js +0 -113
- package/dist/chunk-OSJ3MUTZ.js +0 -2936
- package/dist/chunk-OWAYJ2OV.js +0 -368
- package/dist/chunk-OYXBFSGK.js +0 -269
- package/dist/chunk-PC2EBA5G.js +0 -4116
- package/dist/chunk-PC2EBA5G.js.map +0 -1
- package/dist/chunk-PC2MVXIP.js +0 -363
- package/dist/chunk-PC2MVXIP.js.map +0 -1
- package/dist/chunk-PENGLDR5.js +0 -309
- package/dist/chunk-PSMAWRPL.js +0 -191
- package/dist/chunk-PW4IMTYR.js +0 -702
- package/dist/chunk-PW54V7T5.js +0 -387
- package/dist/chunk-Q2EXYSMO.js +0 -24
- package/dist/chunk-Q2XJK5I4.js +0 -51
- package/dist/chunk-Q2XJK5I4.js.map +0 -1
- package/dist/chunk-Q4EFRI6X.js +0 -258
- package/dist/chunk-Q52CXW6C.js +0 -48
- package/dist/chunk-Q6XQ2R37.js +0 -184
- package/dist/chunk-QAJ53XBW.js +0 -23
- package/dist/chunk-QDTKECT4.js +0 -129
- package/dist/chunk-QE3ZFGI3.js +0 -43
- package/dist/chunk-QHHSUR2Y.js +0 -298
- package/dist/chunk-QHNVNR7B.js +0 -173
- package/dist/chunk-QIK2Q6N5.js +0 -376
- package/dist/chunk-QWL4L366.js +0 -38
- package/dist/chunk-R3J2PTVQ.js +0 -690
- package/dist/chunk-RBRX5ZS3.js +0 -319
- package/dist/chunk-REX6JIC7.js +0 -33
- package/dist/chunk-RGZ7EEC3.js +0 -537
- package/dist/chunk-RGZ7EEC3.js.map +0 -1
- package/dist/chunk-RIPS7GFR.js +0 -960
- package/dist/chunk-RTBZNFNV.js +0 -1354
- package/dist/chunk-RTBZNFNV.js.map +0 -1
- package/dist/chunk-SKMNW4SW.js +0 -187
- package/dist/chunk-SRFARKXC.js +0 -623
- package/dist/chunk-SWIHWCTW.js +0 -4461
- package/dist/chunk-TA5CFTO4.js +0 -103
- package/dist/chunk-TF4ZVJLI.js +0 -156
- package/dist/chunk-TG7DADJR.js +0 -9624
- package/dist/chunk-TI4R2ZD5.js +0 -623
- package/dist/chunk-TI4R2ZD5.js.map +0 -1
- package/dist/chunk-TNKWOUWP.js +0 -412
- package/dist/chunk-TNUSPXPW.js +0 -5555
- package/dist/chunk-TNUSPXPW.js.map +0 -1
- package/dist/chunk-TNYFHKVV.js +0 -366
- package/dist/chunk-TPMZBOFH.js +0 -178
- package/dist/chunk-TW3LKRJF.js +0 -263
- package/dist/chunk-TZAO65I4.js +0 -83
- package/dist/chunk-U5EFEMYU.js +0 -89
- package/dist/chunk-U6M4LS3M.js +0 -378
- package/dist/chunk-UI4HI5QK.js +0 -918
- package/dist/chunk-UJDOWCQ3.js +0 -272
- package/dist/chunk-UJUQ2QOX.js +0 -581
- package/dist/chunk-UQ3IM6FY.js +0 -133
- package/dist/chunk-UYE47LO6.js +0 -246
- package/dist/chunk-VADHIT26.js +0 -89
- package/dist/chunk-VFQ3H6CO.js +0 -163
- package/dist/chunk-VGUN6VB2.js +0 -188
- package/dist/chunk-VGWWEVSD.js +0 -723
- package/dist/chunk-VIEFJ2DM.js +0 -2469
- package/dist/chunk-VLXM36VS.js +0 -268
- package/dist/chunk-W3BFRR2G.js +0 -499
- package/dist/chunk-W5MPXR3A.js +0 -981
- package/dist/chunk-W5OWKVZG.js +0 -136
- package/dist/chunk-W6FRORMX.js +0 -486
- package/dist/chunk-W6FRORMX.js.map +0 -1
- package/dist/chunk-W7XROSZO.js +0 -232
- package/dist/chunk-W7XROSZO.js.map +0 -1
- package/dist/chunk-WEZ5PXZP.js +0 -403
- package/dist/chunk-WHWUWN2X.js +0 -197
- package/dist/chunk-WHWUWN2X.js.map +0 -1
- package/dist/chunk-WLEDGIVS.js +0 -114
- package/dist/chunk-WLEDGIVS.js.map +0 -1
- package/dist/chunk-WNDAKLHG.js +0 -281
- package/dist/chunk-WTJ4PLMU.js +0 -103
- package/dist/chunk-WV2KPJUW.js +0 -107
- package/dist/chunk-X3VY5EGY.js +0 -277
- package/dist/chunk-X3VY5EGY.js.map +0 -1
- package/dist/chunk-XDBYWVCW.js +0 -418
- package/dist/chunk-XF7MA4U5.js +0 -36
- package/dist/chunk-XF7MA4U5.js.map +0 -1
- package/dist/chunk-XOSQP3YA.js +0 -605
- package/dist/chunk-XYBV4ZJQ.js +0 -271
- package/dist/chunk-YBKVGLQR.js +0 -147
- package/dist/chunk-YDCUBUWH.js +0 -1583
- package/dist/chunk-YG6NARQY.js +0 -51
- package/dist/chunk-YG6NARQY.js.map +0 -1
- package/dist/chunk-YSVD5HI4.js +0 -278
- package/dist/chunk-YT3WGNG6.js +0 -290
- package/dist/chunk-YYICQDK4.js +0 -414
- package/dist/chunk-YYLMZLI6.js +0 -686
- package/dist/chunk-ZAMTKG5U.js +0 -95
- package/dist/chunk-ZDLYSXKN.js +0 -111
- package/dist/chunk-ZG447FSS.js +0 -194
- package/dist/chunk-ZIT5KD4Q.js +0 -264
- package/dist/chunk-ZUDOVDKR.js +0 -3064
- package/dist/chunk-ZW2ECJ3A.js +0 -451
- package/dist/computer-viewer-LPZ763KF.js +0 -21
- package/dist/embedded-new-voice-YVMKSLKJ.js +0 -24
- package/dist/embedded-voice-BJPQFXSU.js +0 -24
- package/dist/fleet-decision-row-AA4H5CDT.js +0 -361
- package/dist/model-policy-picker-menu-HSMWVO4P.js +0 -22
- package/dist/payment-page-card-3LTSFJGN.js +0 -223
- package/dist/platform-activity-row-5VYV6TX4.js +0 -128
- package/dist/queue-surface-implementation-NXHZUKD2.js +0 -908
- package/dist/recorder-host-ZKRWTDBM.js +0 -57
- package/dist/recorder-host-ZKRWTDBM.js.map +0 -1
- package/dist/sandbox-files-YCMLQUFU.js +0 -27
- package/dist/session-connect-cards-KSQLMRM5.js +0 -25
- package/dist/session-realtime-ZR6JLG3Y.js +0 -30
- package/dist/timeline-annotation-markers-YAHDPWVG.js +0 -157
- package/dist/timeline-annotation-selection-KHXNCEJP.js +0 -208
- package/dist/timeline-annotations-dialog-Y4XD3N7B.js +0 -283
- /package/dist/{browser-viewer-NOP5EAUO.js.map → browser-viewer-TC27OCIP.js.map} +0 -0
- /package/dist/{chat-interactive-block-G7O44JHR.js.map → chat-interactive-block-RWPQBHVS.js.map} +0 -0
- /package/dist/{chunk-EGBII4CP.js.map → chunk-2BDT3UZQ.js.map} +0 -0
- /package/dist/{chunk-4YD7YZC5.js.map → chunk-2CLNIEK4.js.map} +0 -0
- /package/dist/{chunk-ZW2ECJ3A.js.map → chunk-2FSBSCZJ.js.map} +0 -0
- /package/dist/{chunk-KRPLAAFP.js.map → chunk-2I7HDP53.js.map} +0 -0
- /package/dist/{chunk-3QX55WLC.js.map → chunk-2INLDVK3.js.map} +0 -0
- /package/dist/{chunk-BVUJV5WR.js.map → chunk-2KALVELR.js.map} +0 -0
- /package/dist/{chunk-XDBYWVCW.js.map → chunk-2M3J7ZWQ.js.map} +0 -0
- /package/dist/{chunk-2RREGDQH.js.map → chunk-2OP6WLGV.js.map} +0 -0
- /package/dist/{chunk-OSJ3MUTZ.js.map → chunk-2RG7NIAS.js.map} +0 -0
- /package/dist/{chunk-26RWVLRD.js.map → chunk-2STUPWEL.js.map} +0 -0
- /package/dist/{chunk-XYBV4ZJQ.js.map → chunk-2YUOVM3G.js.map} +0 -0
- /package/dist/{chunk-2GDNWKSC.js.map → chunk-2Z3NQNTM.js.map} +0 -0
- /package/dist/{chunk-2VB2O4FQ.js.map → chunk-3CPWWGNK.js.map} +0 -0
- /package/dist/{chunk-7WKP3DYJ.js.map → chunk-3ED2U6XE.js.map} +0 -0
- /package/dist/{chunk-BT3BAGB5.js.map → chunk-3GZA4BUW.js.map} +0 -0
- /package/dist/{chunk-3USJPT2S.js.map → chunk-3IK6UYO6.js.map} +0 -0
- /package/dist/{chunk-6AHATAAY.js.map → chunk-3PZ7JZI2.js.map} +0 -0
- /package/dist/{chunk-JZ4QXS6D.js.map → chunk-4DVJ6ONS.js.map} +0 -0
- /package/dist/{chunk-5QM2WPKV.js.map → chunk-4E3ZJRTZ.js.map} +0 -0
- /package/dist/{chunk-NFDFYWMV.js.map → chunk-4SAWSRAA.js.map} +0 -0
- /package/dist/{chunk-ELL6HSYR.js.map → chunk-53AGXXZM.js.map} +0 -0
- /package/dist/{chunk-G6ZZC543.js.map → chunk-54YW6SZZ.js.map} +0 -0
- /package/dist/{chunk-4SZZAFYQ.js.map → chunk-57AZS3IE.js.map} +0 -0
- /package/dist/{chunk-JW33RV4V.js.map → chunk-5CPEEAFD.js.map} +0 -0
- /package/dist/{chunk-D6L4GHRH.js.map → chunk-5EWSRZ2Y.js.map} +0 -0
- /package/dist/{chunk-PW54V7T5.js.map → chunk-5IE76VCY.js.map} +0 -0
- /package/dist/{chunk-6GXVYAGR.js.map → chunk-5NWEKLDZ.js.map} +0 -0
- /package/dist/{chunk-6UHCBH4G.js.map → chunk-5O2FCCHZ.js.map} +0 -0
- /package/dist/{chunk-2YC6JQRO.js.map → chunk-5QAY6K77.js.map} +0 -0
- /package/dist/{chunk-EYUT5Y6V.js.map → chunk-6DK6Z4UN.js.map} +0 -0
- /package/dist/{chunk-PW4IMTYR.js.map → chunk-6DVCC7QS.js.map} +0 -0
- /package/dist/{chunk-7WIDB4PL.js.map → chunk-6JHU2UBS.js.map} +0 -0
- /package/dist/{chunk-CQH4FWYA.js.map → chunk-6PZ7OBYU.js.map} +0 -0
- /package/dist/{chunk-VFQ3H6CO.js.map → chunk-6WGRDRMA.js.map} +0 -0
- /package/dist/{chunk-MTTGSQA5.js.map → chunk-77WAKEAH.js.map} +0 -0
- /package/dist/{chunk-O5YWDLYF.js.map → chunk-7TDO3CUM.js.map} +0 -0
- /package/dist/{chunk-2AHTY7OT.js.map → chunk-7TIX2UAR.js.map} +0 -0
- /package/dist/{chunk-FOGNA3BU.js.map → chunk-7V5REBCP.js.map} +0 -0
- /package/dist/{chunk-2JENKGCE.js.map → chunk-7VMZGLYI.js.map} +0 -0
- /package/dist/{chunk-E7UIVD7F.js.map → chunk-7W37NS3I.js.map} +0 -0
- /package/dist/{chunk-ZDLYSXKN.js.map → chunk-7X6SDK2C.js.map} +0 -0
- /package/dist/{chunk-ZAMTKG5U.js.map → chunk-7ZNUHRP5.js.map} +0 -0
- /package/dist/{chunk-DMMJIFKA.js.map → chunk-A36PZALD.js.map} +0 -0
- /package/dist/{chunk-WV2KPJUW.js.map → chunk-AUI6VA63.js.map} +0 -0
- /package/dist/{chunk-Q2EXYSMO.js.map → chunk-AW2MQB37.js.map} +0 -0
- /package/dist/{chunk-6WLX3NR3.js.map → chunk-AWKES45Y.js.map} +0 -0
- /package/dist/{chunk-OD3DCCCB.js.map → chunk-AXHZYXUV.js.map} +0 -0
- /package/dist/{chunk-QDTKECT4.js.map → chunk-BHNSJVBC.js.map} +0 -0
- /package/dist/{chunk-FTCHM755.js.map → chunk-BJEJFISW.js.map} +0 -0
- /package/dist/{chunk-B2I5ZW35.js.map → chunk-BJFH6JI5.js.map} +0 -0
- /package/dist/{chunk-RIPS7GFR.js.map → chunk-BMICEQZQ.js.map} +0 -0
- /package/dist/{chunk-BF4SADKX.js.map → chunk-BTLBYBLU.js.map} +0 -0
- /package/dist/{chunk-U5EFEMYU.js.map → chunk-BXBDYNRP.js.map} +0 -0
- /package/dist/{chunk-BTSYDIVJ.js.map → chunk-C372BFOV.js.map} +0 -0
- /package/dist/{chunk-MLJADQFI.js.map → chunk-CMKGILJK.js.map} +0 -0
- /package/dist/{chunk-DKT3N37I.js.map → chunk-CRAOSVHC.js.map} +0 -0
- /package/dist/{chunk-WNDAKLHG.js.map → chunk-CRU35QQH.js.map} +0 -0
- /package/dist/{chunk-2XNG2KNT.js.map → chunk-CUIWCGMA.js.map} +0 -0
- /package/dist/{chunk-QWL4L366.js.map → chunk-D5TWNFFE.js.map} +0 -0
- /package/dist/{chunk-SWIHWCTW.js.map → chunk-DF5EAHDN.js.map} +0 -0
- /package/dist/{chunk-HUAGBS4O.js.map → chunk-DJAXC5OK.js.map} +0 -0
- /package/dist/{chunk-FXSHP4JZ.js.map → chunk-DXBYWSL5.js.map} +0 -0
- /package/dist/{chunk-5MUJDC6C.js.map → chunk-DXR5PDFP.js.map} +0 -0
- /package/dist/{chunk-NXWBBZJV.js.map → chunk-DZWARC4M.js.map} +0 -0
- /package/dist/{chunk-GXXZ3WAK.js.map → chunk-DZXEDSQI.js.map} +0 -0
- /package/dist/{chunk-Q52CXW6C.js.map → chunk-E7XERZWC.js.map} +0 -0
- /package/dist/{chunk-4NBTZRKT.js.map → chunk-ECJBYNLJ.js.map} +0 -0
- /package/dist/{chunk-QE3ZFGI3.js.map → chunk-EDI6SJ2N.js.map} +0 -0
- /package/dist/{chunk-E6NRSRBE.js.map → chunk-EWSOC6WF.js.map} +0 -0
- /package/dist/{chunk-TA5CFTO4.js.map → chunk-F2OPHAUN.js.map} +0 -0
- /package/dist/{chunk-5DTST3TP.js.map → chunk-F4ISQGGM.js.map} +0 -0
- /package/dist/{chunk-MBIBB6GI.js.map → chunk-FO4LYKJL.js.map} +0 -0
- /package/dist/{chunk-EUBGLFFR.js.map → chunk-FPXASDG5.js.map} +0 -0
- /package/dist/{chunk-C3HUF3M2.js.map → chunk-FVXBNBHO.js.map} +0 -0
- /package/dist/{chunk-W5MPXR3A.js.map → chunk-FZC5N55X.js.map} +0 -0
- /package/dist/{chunk-MA6O7CM6.js.map → chunk-GAVYGBFI.js.map} +0 -0
- /package/dist/{chunk-REX6JIC7.js.map → chunk-GKVJIDHF.js.map} +0 -0
- /package/dist/{chunk-EW6RNWSH.js.map → chunk-GVN5SZLX.js.map} +0 -0
- /package/dist/{chunk-KVFEZDBO.js.map → chunk-H3T7IWNA.js.map} +0 -0
- /package/dist/{chunk-I6VBHT7S.js.map → chunk-HAX4LCR5.js.map} +0 -0
- /package/dist/{chunk-OBMCZO7E.js.map → chunk-HC4JFZVU.js.map} +0 -0
- /package/dist/{chunk-UJUQ2QOX.js.map → chunk-HEFPPMBQ.js.map} +0 -0
- /package/dist/{chunk-DOFJZ2JU.js.map → chunk-HNLR7Q4Z.js.map} +0 -0
- /package/dist/{chunk-GE33BGB7.js.map → chunk-HSOXMJOT.js.map} +0 -0
- /package/dist/{chunk-AB5MBIXY.js.map → chunk-I4MRDSUF.js.map} +0 -0
- /package/dist/{chunk-AFBJTUFK.js.map → chunk-I4QEJ62Y.js.map} +0 -0
- /package/dist/{chunk-6ED2YWBT.js.map → chunk-I5B5L6Q4.js.map} +0 -0
- /package/dist/{chunk-C5QCAOES.js.map → chunk-I5QZJODL.js.map} +0 -0
- /package/dist/{chunk-76ERNKIZ.js.map → chunk-I7ITSXSJ.js.map} +0 -0
- /package/dist/{chunk-OMH7R6I3.js.map → chunk-I7XIZRFD.js.map} +0 -0
- /package/dist/{chunk-E337C2VK.js.map → chunk-IDANQPRH.js.map} +0 -0
- /package/dist/{chunk-3FD76LXM.js.map → chunk-IFB3WJ36.js.map} +0 -0
- /package/dist/{chunk-ZIT5KD4Q.js.map → chunk-IHTAKKTK.js.map} +0 -0
- /package/dist/{chunk-QHNVNR7B.js.map → chunk-ILDXWY37.js.map} +0 -0
- /package/dist/{chunk-GQ67HSJY.js.map → chunk-IMDQUHBJ.js.map} +0 -0
- /package/dist/{chunk-DSXVY5WZ.js.map → chunk-IMZCQBOT.js.map} +0 -0
- /package/dist/{chunk-WEZ5PXZP.js.map → chunk-IXPTECSC.js.map} +0 -0
- /package/dist/{chunk-NY2QWROL.js.map → chunk-J255A3N5.js.map} +0 -0
- /package/dist/{chunk-O2UWH5RG.js.map → chunk-J5F5HPPW.js.map} +0 -0
- /package/dist/{chunk-VIEFJ2DM.js.map → chunk-JEA3QDX7.js.map} +0 -0
- /package/dist/{chunk-TF4ZVJLI.js.map → chunk-JEUPAVYY.js.map} +0 -0
- /package/dist/{chunk-ZG447FSS.js.map → chunk-JKHKLL5W.js.map} +0 -0
- /package/dist/{chunk-FQFKHNC7.js.map → chunk-JQL7ZH6C.js.map} +0 -0
- /package/dist/{chunk-776QZ573.js.map → chunk-JWB44UGJ.js.map} +0 -0
- /package/dist/{chunk-ICNNNOXE.js.map → chunk-JZ4NLCAP.js.map} +0 -0
- /package/dist/{chunk-TNKWOUWP.js.map → chunk-K2A5PXQ5.js.map} +0 -0
- /package/dist/{chunk-SRFARKXC.js.map → chunk-K56XV3C3.js.map} +0 -0
- /package/dist/{chunk-QAJ53XBW.js.map → chunk-K6GAXXVA.js.map} +0 -0
- /package/dist/{chunk-MF3ZFB4H.js.map → chunk-KCBMFSMS.js.map} +0 -0
- /package/dist/{chunk-VLXM36VS.js.map → chunk-KF2FV3ZJ.js.map} +0 -0
- /package/dist/{chunk-YSVD5HI4.js.map → chunk-KJD65EJP.js.map} +0 -0
- /package/dist/{chunk-K42OUZQ3.js.map → chunk-KLEUWIMZ.js.map} +0 -0
- /package/dist/{chunk-PENGLDR5.js.map → chunk-KODELWYT.js.map} +0 -0
- /package/dist/{chunk-TZAO65I4.js.map → chunk-KRDR5RJD.js.map} +0 -0
- /package/dist/{chunk-KHJ5PXFM.js.map → chunk-KUDGXAF7.js.map} +0 -0
- /package/dist/{chunk-6H4SJBPE.js.map → chunk-KYS77RPN.js.map} +0 -0
- /package/dist/{chunk-OWAYJ2OV.js.map → chunk-L7YTNTIK.js.map} +0 -0
- /package/dist/{chunk-YYLMZLI6.js.map → chunk-LHPNABDH.js.map} +0 -0
- /package/dist/{chunk-LM2W5YAT.js.map → chunk-MFROMEKA.js.map} +0 -0
- /package/dist/{chunk-AXBSYWKX.js.map → chunk-MIHN76LX.js.map} +0 -0
- /package/dist/{chunk-4LPOWQJY.js.map → chunk-MIYFS2XN.js.map} +0 -0
- /package/dist/{chunk-KKI55ZMW.js.map → chunk-MJUCFQMS.js.map} +0 -0
- /package/dist/{chunk-ZUDOVDKR.js.map → chunk-MM4FNWI4.js.map} +0 -0
- /package/dist/{chunk-M4SDVTKJ.js.map → chunk-MNZG4OHU.js.map} +0 -0
- /package/dist/{chunk-EILSAQVJ.js.map → chunk-N6AACDUW.js.map} +0 -0
- /package/dist/{chunk-BM3NEZ6X.js.map → chunk-NC55IFN3.js.map} +0 -0
- /package/dist/{chunk-MJJGJMYJ.js.map → chunk-NC7PVOEK.js.map} +0 -0
- /package/dist/{chunk-LA5T52RM.js.map → chunk-NCYMNCJO.js.map} +0 -0
- /package/dist/{chunk-HLOEPV5C.js.map → chunk-ND2BXV3P.js.map} +0 -0
- /package/dist/{chunk-UJDOWCQ3.js.map → chunk-NDBTFUO6.js.map} +0 -0
- /package/dist/{chunk-K5TOVX5A.js.map → chunk-NDQJZ7HF.js.map} +0 -0
- /package/dist/{chunk-35737UT4.js.map → chunk-NGJJJPZZ.js.map} +0 -0
- /package/dist/{chunk-42CMQ5VR.js.map → chunk-NJTSNNE7.js.map} +0 -0
- /package/dist/{chunk-FBTJKSTM.js.map → chunk-NRTE7DNV.js.map} +0 -0
- /package/dist/{chunk-YT3WGNG6.js.map → chunk-NULUNM7H.js.map} +0 -0
- /package/dist/{chunk-7XOVTPDI.js.map → chunk-NUNZS36W.js.map} +0 -0
- /package/dist/{chunk-FC2FTSK3.js.map → chunk-NW53H5RW.js.map} +0 -0
- /package/dist/{chunk-TW3LKRJF.js.map → chunk-NXCMHIKI.js.map} +0 -0
- /package/dist/{chunk-CGK6ALQU.js.map → chunk-O3LKCBP5.js.map} +0 -0
- /package/dist/{chunk-QIK2Q6N5.js.map → chunk-O6N4ABCA.js.map} +0 -0
- /package/dist/{chunk-73NXYYWE.js.map → chunk-O732GAFC.js.map} +0 -0
- /package/dist/{chunk-R3J2PTVQ.js.map → chunk-OF4TIKYC.js.map} +0 -0
- /package/dist/{chunk-BUBNGKWG.js.map → chunk-OMPVOMPP.js.map} +0 -0
- /package/dist/{chunk-4OXI6HCV.js.map → chunk-OPJJSKUK.js.map} +0 -0
- /package/dist/{chunk-4Y6BK7IU.js.map → chunk-OPWCMA4D.js.map} +0 -0
- /package/dist/{chunk-ADNMXBCX.js.map → chunk-ORJPS5VN.js.map} +0 -0
- /package/dist/{chunk-SKMNW4SW.js.map → chunk-OSY5K7L7.js.map} +0 -0
- /package/dist/{chunk-L4I665WK.js.map → chunk-OV6QJRT4.js.map} +0 -0
- /package/dist/{chunk-7O5CGGIQ.js.map → chunk-OVKYVZMW.js.map} +0 -0
- /package/dist/{chunk-7BYWOFVH.js.map → chunk-OZCBM3UC.js.map} +0 -0
- /package/dist/{chunk-ALVRWCXE.js.map → chunk-P3A2EINJ.js.map} +0 -0
- /package/dist/{chunk-BZO5ZMUP.js.map → chunk-PTAG4PDC.js.map} +0 -0
- /package/dist/{chunk-QHHSUR2Y.js.map → chunk-PTF5B7TJ.js.map} +0 -0
- /package/dist/{chunk-O2IOPP3R.js.map → chunk-Q3DPEYX4.js.map} +0 -0
- /package/dist/{chunk-G7FU6PUA.js.map → chunk-QB2KMIDP.js.map} +0 -0
- /package/dist/{chunk-64PO2WXU.js.map → chunk-QCSJ4CWE.js.map} +0 -0
- /package/dist/{chunk-YYICQDK4.js.map → chunk-QIOQ2NPQ.js.map} +0 -0
- /package/dist/{chunk-NB2HMRT2.js.map → chunk-QK5EFEUT.js.map} +0 -0
- /package/dist/{chunk-366XZ4PM.js.map → chunk-QPQBLYQJ.js.map} +0 -0
- /package/dist/{chunk-Q6XQ2R37.js.map → chunk-QPSGCC5D.js.map} +0 -0
- /package/dist/{chunk-JJZPLGIP.js.map → chunk-QZAAUQRN.js.map} +0 -0
- /package/dist/{chunk-VGUN6VB2.js.map → chunk-RGBI63KJ.js.map} +0 -0
- /package/dist/{chunk-LRN6GYAZ.js.map → chunk-RLBKLAEY.js.map} +0 -0
- /package/dist/{chunk-F7U3QPZ3.js.map → chunk-RMFKVOM7.js.map} +0 -0
- /package/dist/{chunk-Q4EFRI6X.js.map → chunk-ROKQU7WG.js.map} +0 -0
- /package/dist/{chunk-7QOHRZ67.js.map → chunk-RPVREAU7.js.map} +0 -0
- /package/dist/{chunk-VGWWEVSD.js.map → chunk-RQKLF42C.js.map} +0 -0
- /package/dist/{chunk-2VTTKH23.js.map → chunk-SEO7TICN.js.map} +0 -0
- /package/dist/{chunk-3QNRBEYH.js.map → chunk-SHHJCL7X.js.map} +0 -0
- /package/dist/{chunk-E6SQKHAU.js.map → chunk-SIRLACNZ.js.map} +0 -0
- /package/dist/{chunk-H2TCRX3H.js.map → chunk-SKPHMYAA.js.map} +0 -0
- /package/dist/{chunk-YDCUBUWH.js.map → chunk-SODC7T6L.js.map} +0 -0
- /package/dist/{chunk-TNYFHKVV.js.map → chunk-SQJIKMN3.js.map} +0 -0
- /package/dist/{chunk-DO74DQC7.js.map → chunk-SVINDKVW.js.map} +0 -0
- /package/dist/{chunk-CPYGO76Q.js.map → chunk-SYCDHPZF.js.map} +0 -0
- /package/dist/{chunk-UQ3IM6FY.js.map → chunk-T2QX3FDP.js.map} +0 -0
- /package/dist/{chunk-NWGNFN3N.js.map → chunk-T3OWFVMS.js.map} +0 -0
- /package/dist/{chunk-N3OARGH2.js.map → chunk-T6XI5FLY.js.map} +0 -0
- /package/dist/{chunk-MQG7RV3B.js.map → chunk-T7OXJZCX.js.map} +0 -0
- /package/dist/{chunk-2T7DX6KR.js.map → chunk-TAT5USZN.js.map} +0 -0
- /package/dist/{chunk-ICX64J4U.js.map → chunk-TPQTRNER.js.map} +0 -0
- /package/dist/{chunk-D2TOWEYH.js.map → chunk-TUIN4MB7.js.map} +0 -0
- /package/dist/{chunk-LQDUHU3Y.js.map → chunk-TX3VECZU.js.map} +0 -0
- /package/dist/{chunk-TG7DADJR.js.map → chunk-TXLIEOJX.js.map} +0 -0
- /package/dist/{chunk-2ZVRJRXC.js.map → chunk-U3DN4HEY.js.map} +0 -0
- /package/dist/{chunk-PSMAWRPL.js.map → chunk-U7XM7CB4.js.map} +0 -0
- /package/dist/{chunk-4TQL3WP2.js.map → chunk-UJK53QFL.js.map} +0 -0
- /package/dist/{chunk-RBRX5ZS3.js.map → chunk-UMTXA2TH.js.map} +0 -0
- /package/dist/{chunk-36MIDGAH.js.map → chunk-UPDSXFK5.js.map} +0 -0
- /package/dist/{chunk-OYXBFSGK.js.map → chunk-UTIAXH52.js.map} +0 -0
- /package/dist/{chunk-5WUN7XPD.js.map → chunk-UVN5TMHU.js.map} +0 -0
- /package/dist/{chunk-UYE47LO6.js.map → chunk-VGYXW3VG.js.map} +0 -0
- /package/dist/{chunk-IKUNOX7F.js.map → chunk-VS7AHPCZ.js.map} +0 -0
- /package/dist/{chunk-MYUFMVCH.js.map → chunk-VTTAJOQ7.js.map} +0 -0
- /package/dist/{chunk-K63HGHZX.js.map → chunk-VWPOLUAO.js.map} +0 -0
- /package/dist/{chunk-GA4YEAMX.js.map → chunk-X3MWB2QU.js.map} +0 -0
- /package/dist/{chunk-I36GSRUJ.js.map → chunk-X6KAJI3V.js.map} +0 -0
- /package/dist/{chunk-IKMUFDVS.js.map → chunk-XBLRHV5R.js.map} +0 -0
- /package/dist/{chunk-XOSQP3YA.js.map → chunk-XDFP2LMW.js.map} +0 -0
- /package/dist/{chunk-MW7Y3T55.js.map → chunk-XEQMZB3C.js.map} +0 -0
- /package/dist/{chunk-B3LMRTRF.js.map → chunk-XEYLT5VA.js.map} +0 -0
- /package/dist/{chunk-UI4HI5QK.js.map → chunk-XHIQ5I6N.js.map} +0 -0
- /package/dist/{chunk-U6M4LS3M.js.map → chunk-XLH7QY2R.js.map} +0 -0
- /package/dist/{chunk-OSA5EQG5.js.map → chunk-XWFAMUZQ.js.map} +0 -0
- /package/dist/{chunk-6MT3HHUB.js.map → chunk-Y4OBB2VN.js.map} +0 -0
- /package/dist/{chunk-CZP5QXNB.js.map → chunk-YCVD6CI3.js.map} +0 -0
- /package/dist/{chunk-APW4T4SW.js.map → chunk-YENLNISG.js.map} +0 -0
- /package/dist/{chunk-JWPA6ZPZ.js.map → chunk-YIRVLKAX.js.map} +0 -0
- /package/dist/{chunk-LQ62ECE6.js.map → chunk-YL73CVNK.js.map} +0 -0
- /package/dist/{chunk-ILKDYBON.js.map → chunk-YLS6QE5G.js.map} +0 -0
- /package/dist/{chunk-YBKVGLQR.js.map → chunk-YPWU5KPE.js.map} +0 -0
- /package/dist/{chunk-IKJLSBUI.js.map → chunk-YQXTDZSU.js.map} +0 -0
- /package/dist/{chunk-TPMZBOFH.js.map → chunk-YSJEAAOL.js.map} +0 -0
- /package/dist/{chunk-W3BFRR2G.js.map → chunk-YWIFM7D7.js.map} +0 -0
- /package/dist/{chunk-WTJ4PLMU.js.map → chunk-YWVI6ZMK.js.map} +0 -0
- /package/dist/{chunk-5KWMYPJV.js.map → chunk-Z4FMAFNH.js.map} +0 -0
- /package/dist/{chunk-W5OWKVZG.js.map → chunk-Z654FWNU.js.map} +0 -0
- /package/dist/{chunk-5FH5LQVS.js.map → chunk-Z7Y523PS.js.map} +0 -0
- /package/dist/{chunk-HLL4PBO7.js.map → chunk-ZD67RM6G.js.map} +0 -0
- /package/dist/{chunk-IVYJX3OY.js.map → chunk-ZEG4VPBL.js.map} +0 -0
- /package/dist/{chunk-K6R5T44I.js.map → chunk-ZLYCOBHW.js.map} +0 -0
- /package/dist/{chunk-VADHIT26.js.map → chunk-ZNJ5MTXV.js.map} +0 -0
- /package/dist/{chunk-2KYQC4T5.js.map → chunk-ZSGY3H53.js.map} +0 -0
- /package/dist/{chunk-BKP43KK4.js.map → chunk-ZTPXACWB.js.map} +0 -0
- /package/dist/{chunk-JCY4CMDH.js.map → chunk-ZUA3JMI6.js.map} +0 -0
- /package/dist/{chunk-IGVVXLKJ.js.map → chunk-ZYAZUPPV.js.map} +0 -0
- /package/dist/{computer-viewer-LPZ763KF.js.map → computer-viewer-TDDO25AV.js.map} +0 -0
- /package/dist/{embedded-new-voice-YVMKSLKJ.js.map → embedded-new-voice-2G3VLPVQ.js.map} +0 -0
- /package/dist/{embedded-voice-BJPQFXSU.js.map → embedded-voice-T5IWOWGD.js.map} +0 -0
- /package/dist/{fleet-decision-row-AA4H5CDT.js.map → fleet-decision-row-WM64KXP3.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-HSMWVO4P.js.map → model-policy-picker-menu-SMC6J6QN.js.map} +0 -0
- /package/dist/{payment-page-card-3LTSFJGN.js.map → payment-page-card-G4U63KUV.js.map} +0 -0
- /package/dist/{platform-activity-row-5VYV6TX4.js.map → platform-activity-row-BUZGZAKZ.js.map} +0 -0
- /package/dist/{queue-surface-implementation-NXHZUKD2.js.map → queue-surface-implementation-4KUZ4PJV.js.map} +0 -0
- /package/dist/{sandbox-files-YCMLQUFU.js.map → sandbox-files-ESDMOFSD.js.map} +0 -0
- /package/dist/{session-connect-cards-KSQLMRM5.js.map → session-connect-cards-Q53KMMYY.js.map} +0 -0
- /package/dist/{session-realtime-ZR6JLG3Y.js.map → session-realtime-CF3I35WJ.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-YAHDPWVG.js.map → timeline-annotation-markers-CJK4RYZ4.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-KHXNCEJP.js.map → timeline-annotation-selection-67GF5H26.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-Y4XD3N7B.js.map → timeline-annotations-dialog-ONJPQDJQ.js.map} +0 -0
package/dist/chunk-NWGNFN3N.js
DELETED
|
@@ -1,1187 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
allowanceLabels,
|
|
4
|
-
allowanceResetSentence,
|
|
5
|
-
formatAllowanceInstant,
|
|
6
|
-
sessionUsageLimitLabels,
|
|
7
|
-
sessionUsageLimitPercent,
|
|
8
|
-
summarizeSessionUsageLimit,
|
|
9
|
-
summarizeSessionUsageLimitRefusal
|
|
10
|
-
} from "./chunk-4U7SHFQ2.js";
|
|
11
|
-
import {
|
|
12
|
-
usePolledValue
|
|
13
|
-
} from "./chunk-RV3O5OCQ.js";
|
|
14
|
-
import {
|
|
15
|
-
OpenGeniContext
|
|
16
|
-
} from "./chunk-TVQCDDSZ.js";
|
|
17
|
-
import {
|
|
18
|
-
cn
|
|
19
|
-
} from "./chunk-TXS65BB2.js";
|
|
20
|
-
import {
|
|
21
|
-
useOpenGeniText
|
|
22
|
-
} from "./chunk-TNUSPXPW.js";
|
|
23
|
-
|
|
24
|
-
// src/hooks/use-usage.ts
|
|
25
|
-
import {
|
|
26
|
-
getMyUsage
|
|
27
|
-
} from "@opengeni/sdk/usage-allowances";
|
|
28
|
-
import { useCallback, useContext, useEffect, useMemo, useRef } from "react";
|
|
29
|
-
|
|
30
|
-
// src/usage/summary.ts
|
|
31
|
-
function reading(scope, usage) {
|
|
32
|
-
if (usage.limit === null) return null;
|
|
33
|
-
return {
|
|
34
|
-
scope,
|
|
35
|
-
fraction: usage.fraction ?? (usage.limit === 0 ? 1 : usage.used / usage.limit),
|
|
36
|
-
status: usage.status,
|
|
37
|
-
resetsAt: usage.resetsAt,
|
|
38
|
-
used: usage.used,
|
|
39
|
-
limit: usage.limit,
|
|
40
|
-
remaining: Math.max(0, usage.remaining ?? usage.limit - usage.used)
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function summarizeUsage(usage, subjectId) {
|
|
44
|
-
const row = subjectId === void 0 ? usage.members[0] : usage.members.find((member2) => member2.subjectId === subjectId);
|
|
45
|
-
const member = row ? reading("member", row) : null;
|
|
46
|
-
const workspace = reading("workspace", usage.workspace);
|
|
47
|
-
const readings = [member, workspace].filter((value) => value !== null);
|
|
48
|
-
if (readings.length === 0) return { state: "unlimited", binding: null, member, workspace };
|
|
49
|
-
const exhausted = (workspace?.status === "exhausted" ? workspace : null) ?? (member?.status === "exhausted" ? member : null);
|
|
50
|
-
if (exhausted) return { state: "exhausted", binding: exhausted, member, workspace };
|
|
51
|
-
const warnings = readings.filter((value) => value.status === "warning");
|
|
52
|
-
const candidates = warnings.length > 0 ? warnings : readings;
|
|
53
|
-
const binding = candidates.reduce(
|
|
54
|
-
(tightest, value) => value.remaining < tightest.remaining ? value : tightest
|
|
55
|
-
);
|
|
56
|
-
return { state: warnings.length > 0 ? "warning" : "ok", binding, member, workspace };
|
|
57
|
-
}
|
|
58
|
-
function usagePercentLabel(fraction) {
|
|
59
|
-
if (!Number.isFinite(fraction) || fraction <= 0) return "0";
|
|
60
|
-
if (fraction < 0.01) return "<1";
|
|
61
|
-
if (fraction < 1 && Math.round(fraction * 100) === 100) return "99";
|
|
62
|
-
return String(Math.round(fraction * 100));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// src/hooks/use-usage.ts
|
|
66
|
-
function readOwnUsage(client, workspaceId, period, signal) {
|
|
67
|
-
const query = period === void 0 ? {} : { period };
|
|
68
|
-
const options = signal ? { signal } : {};
|
|
69
|
-
if ("getMyUsage" in client && typeof client.getMyUsage === "function") {
|
|
70
|
-
return client.getMyUsage(workspaceId, query, options);
|
|
71
|
-
}
|
|
72
|
-
if ("requestJson" in client && typeof client.requestJson === "function") {
|
|
73
|
-
return getMyUsage(client, workspaceId, query, options);
|
|
74
|
-
}
|
|
75
|
-
throw new Error("@opengeni/react: the usage client needs getMyUsage or requestJson.");
|
|
76
|
-
}
|
|
77
|
-
function useUsage(options = {}) {
|
|
78
|
-
const context = useContext(OpenGeniContext);
|
|
79
|
-
const client = options.client ?? context?.client;
|
|
80
|
-
const workspaceId = options.workspaceId ?? context?.workspaceId;
|
|
81
|
-
if (!client || !workspaceId) {
|
|
82
|
-
throw new Error(
|
|
83
|
-
"@opengeni/react: useUsage needs a client and workspace. Wrap the tree in <OpenGeniProvider> or pass { client, workspaceId }."
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
const period = options.period;
|
|
87
|
-
const load = useCallback(
|
|
88
|
-
(signal) => readOwnUsage(client, workspaceId, period, signal),
|
|
89
|
-
[client, workspaceId, period]
|
|
90
|
-
);
|
|
91
|
-
const state = usePolledValue(load, {
|
|
92
|
-
pollIntervalMs: options.pollIntervalMs,
|
|
93
|
-
enabled: options.enabled
|
|
94
|
-
});
|
|
95
|
-
const refreshKey = options.refreshKey;
|
|
96
|
-
const seenKey = useRef(refreshKey);
|
|
97
|
-
const refresh = state.refresh;
|
|
98
|
-
useEffect(() => {
|
|
99
|
-
if (Object.is(seenKey.current, refreshKey)) return;
|
|
100
|
-
seenKey.current = refreshKey;
|
|
101
|
-
void refresh();
|
|
102
|
-
}, [refreshKey, refresh]);
|
|
103
|
-
const usage = state.data;
|
|
104
|
-
const summary = useMemo(() => usage ? summarizeUsage(usage) : null, [usage]);
|
|
105
|
-
return { usage, summary, loading: state.loading, error: state.error, refresh };
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// src/components/usage-meter.tsx
|
|
109
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
110
|
-
var DEFAULT_USAGE_METER_LABELS = (t) => {
|
|
111
|
-
return {
|
|
112
|
-
...allowanceLabels(t),
|
|
113
|
-
title: t("usageMeter.yourUsage"),
|
|
114
|
-
workspaceTitle: t("usageMeter.workspaceUsage"),
|
|
115
|
-
left: (percent) => `${percent}% left`,
|
|
116
|
-
used: (percent) => `${percent}% used`,
|
|
117
|
-
limitReached: t("usageMeter.limitReached"),
|
|
118
|
-
nearLimit: t("usageMeter.nearLimit"),
|
|
119
|
-
amountLeft: (amount) => `${amount} left`,
|
|
120
|
-
unlimited: t("usageMeter.noUsageLimit"),
|
|
121
|
-
loading: t("usageMeter.checkingUsage"),
|
|
122
|
-
error: t("usageMeter.couldnTLoadUsage"),
|
|
123
|
-
retry: t("usageMeter.tryAgain"),
|
|
124
|
-
amounts: (used, limit) => `${used} of ${limit} used`,
|
|
125
|
-
workspaceLine: (value) => t("usageMeter.workspaceValue", { value })
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
function UsageMeter({
|
|
129
|
-
usage,
|
|
130
|
-
client,
|
|
131
|
-
workspaceId,
|
|
132
|
-
period,
|
|
133
|
-
refreshKey,
|
|
134
|
-
...view
|
|
135
|
-
}) {
|
|
136
|
-
if (usage !== void 0) {
|
|
137
|
-
return /* @__PURE__ */ jsx(
|
|
138
|
-
UsageMeterView,
|
|
139
|
-
{
|
|
140
|
-
...view,
|
|
141
|
-
summary: usage ? summarizeUsage(usage) : null,
|
|
142
|
-
loading: usage === null
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
return /* @__PURE__ */ jsx(
|
|
147
|
-
LoadingUsageMeter,
|
|
148
|
-
{
|
|
149
|
-
...view,
|
|
150
|
-
client,
|
|
151
|
-
workspaceId,
|
|
152
|
-
period,
|
|
153
|
-
refreshKey
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
function LoadingUsageMeter({
|
|
158
|
-
client,
|
|
159
|
-
workspaceId,
|
|
160
|
-
period,
|
|
161
|
-
refreshKey,
|
|
162
|
-
...view
|
|
163
|
-
}) {
|
|
164
|
-
const state = useUsage({ client, workspaceId, period, refreshKey });
|
|
165
|
-
return /* @__PURE__ */ jsx(
|
|
166
|
-
UsageMeterView,
|
|
167
|
-
{
|
|
168
|
-
...view,
|
|
169
|
-
summary: state.summary,
|
|
170
|
-
loading: state.loading && !state.summary,
|
|
171
|
-
error: state.summary ? null : state.error,
|
|
172
|
-
onRetry: () => void state.refresh()
|
|
173
|
-
}
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
var FILL = {
|
|
177
|
-
ok: "bg-og-accent",
|
|
178
|
-
warning: "bg-og-status-waiting",
|
|
179
|
-
exhausted: "bg-og-danger"
|
|
180
|
-
};
|
|
181
|
-
function valueText(reading2, measure, labels) {
|
|
182
|
-
if (reading2.status === "exhausted") return labels.limitReached;
|
|
183
|
-
return measure === "left" ? labels.left(usagePercentLabel(Math.max(0, 1 - reading2.fraction))) : labels.used(usagePercentLabel(reading2.fraction));
|
|
184
|
-
}
|
|
185
|
-
function UsageMeterView({
|
|
186
|
-
summary,
|
|
187
|
-
loading = false,
|
|
188
|
-
error = null,
|
|
189
|
-
onRetry,
|
|
190
|
-
measure = "left",
|
|
191
|
-
formatAmount,
|
|
192
|
-
labels: overrides,
|
|
193
|
-
density = "default",
|
|
194
|
-
showWorkspace = true,
|
|
195
|
-
className
|
|
196
|
-
}) {
|
|
197
|
-
const t = useOpenGeniText();
|
|
198
|
-
const labels = { ...DEFAULT_USAGE_METER_LABELS(t), ...overrides };
|
|
199
|
-
const compact = density === "compact";
|
|
200
|
-
if (loading || error || !summary) {
|
|
201
|
-
return /* @__PURE__ */ jsx(
|
|
202
|
-
"div",
|
|
203
|
-
{
|
|
204
|
-
className: cn("og-root min-w-0 text-og-sm", className),
|
|
205
|
-
"data-og-usage-meter": error ? "error" : "loading",
|
|
206
|
-
"aria-busy": loading || void 0,
|
|
207
|
-
children: error ? /* @__PURE__ */ jsxs("p", { className: "flex flex-wrap items-center gap-x-2 text-og-fg-muted", role: "alert", children: [
|
|
208
|
-
labels.error,
|
|
209
|
-
onRetry ? /* @__PURE__ */ jsx(
|
|
210
|
-
"button",
|
|
211
|
-
{
|
|
212
|
-
type: "button",
|
|
213
|
-
onClick: onRetry,
|
|
214
|
-
className: "rounded-og-sm og-link focus-visible:outline-2 focus-visible:outline-og-accent",
|
|
215
|
-
children: labels.retry
|
|
216
|
-
}
|
|
217
|
-
) : null
|
|
218
|
-
] }) : /* @__PURE__ */ jsx("span", { className: "text-og-fg-subtle", children: labels.loading })
|
|
219
|
-
}
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
const primary = summary.member ?? summary.workspace;
|
|
223
|
-
if (!primary) {
|
|
224
|
-
return /* @__PURE__ */ jsxs(
|
|
225
|
-
"div",
|
|
226
|
-
{
|
|
227
|
-
className: cn("og-root min-w-0 text-og-sm text-og-fg-muted", className),
|
|
228
|
-
"data-og-usage-meter": "unlimited",
|
|
229
|
-
children: [
|
|
230
|
-
compact ? null : /* @__PURE__ */ jsxs("span", { className: "font-medium text-og-fg", children: [
|
|
231
|
-
labels.title,
|
|
232
|
-
" \xB7 "
|
|
233
|
-
] }),
|
|
234
|
-
labels.unlimited
|
|
235
|
-
]
|
|
236
|
-
}
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
const title = summary.member ? labels.title : labels.workspaceTitle;
|
|
240
|
-
const value = valueText(primary, measure, labels);
|
|
241
|
-
const fill = Math.min(1, Math.max(0, primary.fraction));
|
|
242
|
-
const reset = allowanceResetSentence(labels, primary.resetsAt);
|
|
243
|
-
const pool = showWorkspace && summary.member && summary.workspace && (summary.binding?.scope === "workspace" || summary.workspace.status !== "ok") ? summary.workspace : null;
|
|
244
|
-
const meterProps = {
|
|
245
|
-
role: "meter",
|
|
246
|
-
"aria-label": title || labels.title,
|
|
247
|
-
"aria-valuemin": 0,
|
|
248
|
-
"aria-valuemax": 100,
|
|
249
|
-
"aria-valuenow": Math.round(fill * 100),
|
|
250
|
-
"aria-valuetext": `${value}. ${reset}${pool ? ` ${labels.workspaceLine(valueText(pool, measure, labels))}.` : ""}`
|
|
251
|
-
};
|
|
252
|
-
const bar = /* @__PURE__ */ jsx(
|
|
253
|
-
"span",
|
|
254
|
-
{
|
|
255
|
-
"aria-hidden": true,
|
|
256
|
-
className: cn(
|
|
257
|
-
"relative block overflow-hidden rounded-full",
|
|
258
|
-
density === "hero" ? "h-1.5" : "h-1",
|
|
259
|
-
primary.status === "exhausted" ? "bg-og-danger/15" : "bg-og-surface-3",
|
|
260
|
-
compact ? "w-16 shrink-0" : "w-full"
|
|
261
|
-
),
|
|
262
|
-
children: /* @__PURE__ */ jsx(
|
|
263
|
-
"span",
|
|
264
|
-
{
|
|
265
|
-
className: cn("absolute inset-y-0 left-0 rounded-full", FILL[primary.status]),
|
|
266
|
-
style: { width: `${Math.round(fill * 1e3) / 10}%` }
|
|
267
|
-
}
|
|
268
|
-
)
|
|
269
|
-
}
|
|
270
|
-
);
|
|
271
|
-
const valueClass = cn(
|
|
272
|
-
"shrink-0 whitespace-nowrap tabular-nums",
|
|
273
|
-
primary.status === "ok" ? "text-og-fg-muted" : "font-medium",
|
|
274
|
-
primary.status === "warning" && "text-og-status-waiting",
|
|
275
|
-
primary.status === "exhausted" && "text-og-danger"
|
|
276
|
-
);
|
|
277
|
-
if (compact) {
|
|
278
|
-
return /* @__PURE__ */ jsxs(
|
|
279
|
-
"span",
|
|
280
|
-
{
|
|
281
|
-
...meterProps,
|
|
282
|
-
"data-og-usage-meter": primary.status,
|
|
283
|
-
title: primary.resetsAt ? `${reset} ${formatAllowanceInstant(t, primary.resetsAt)}` : reset,
|
|
284
|
-
className: cn("og-root inline-flex min-w-0 items-center gap-2 text-og-xs", className),
|
|
285
|
-
children: [
|
|
286
|
-
/* @__PURE__ */ jsx("span", { className: valueClass, children: value }),
|
|
287
|
-
bar
|
|
288
|
-
]
|
|
289
|
-
}
|
|
290
|
-
);
|
|
291
|
-
}
|
|
292
|
-
const amounts = formatAmount ? labels.amounts(formatAmount(primary.used), formatAmount(primary.limit)) : null;
|
|
293
|
-
if (density === "hero") {
|
|
294
|
-
const headline = formatAmount ? labels.amountLeft(formatAmount(primary.remaining)) : labels.left(usagePercentLabel(Math.max(0, 1 - primary.fraction)));
|
|
295
|
-
return /* @__PURE__ */ jsxs(
|
|
296
|
-
"div",
|
|
297
|
-
{
|
|
298
|
-
...meterProps,
|
|
299
|
-
"data-og-usage-meter": primary.status,
|
|
300
|
-
className: cn("og-root flex min-w-0 flex-col gap-3", className),
|
|
301
|
-
children: [
|
|
302
|
-
title ? /* @__PURE__ */ jsx("span", { className: "text-og-sm font-medium text-og-fg-muted", children: title }) : null,
|
|
303
|
-
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1", children: [
|
|
304
|
-
/* @__PURE__ */ jsx("span", { className: "text-2xl leading-8 font-semibold tracking-[-0.5px] text-og-fg tabular-nums", children: headline }),
|
|
305
|
-
primary.status !== "ok" ? /* @__PURE__ */ jsxs(
|
|
306
|
-
"span",
|
|
307
|
-
{
|
|
308
|
-
className: cn(
|
|
309
|
-
"inline-flex h-[22px] items-center gap-1.5 rounded-full border px-2 text-og-xs font-medium",
|
|
310
|
-
primary.status === "warning" ? "border-og-status-waiting/30 text-og-status-waiting" : "border-og-danger/30 text-og-danger"
|
|
311
|
-
),
|
|
312
|
-
children: [
|
|
313
|
-
/* @__PURE__ */ jsx(
|
|
314
|
-
"span",
|
|
315
|
-
{
|
|
316
|
-
"aria-hidden": true,
|
|
317
|
-
className: cn(
|
|
318
|
-
"size-1.5 rounded-full",
|
|
319
|
-
primary.status === "warning" ? "bg-og-status-waiting" : "bg-og-danger"
|
|
320
|
-
)
|
|
321
|
-
}
|
|
322
|
-
),
|
|
323
|
-
primary.status === "warning" ? labels.nearLimit : labels.limitReached
|
|
324
|
-
]
|
|
325
|
-
}
|
|
326
|
-
) : null
|
|
327
|
-
] }),
|
|
328
|
-
bar,
|
|
329
|
-
/* @__PURE__ */ jsxs("p", { className: "text-og-xs text-og-fg-muted tabular-nums", children: [
|
|
330
|
-
[
|
|
331
|
-
amounts ?? labels.used(usagePercentLabel(primary.fraction)),
|
|
332
|
-
amounts ? `${usagePercentLabel(primary.fraction)}%` : null
|
|
333
|
-
].filter(Boolean).join(" \xB7 "),
|
|
334
|
-
" ",
|
|
335
|
-
"\xB7",
|
|
336
|
-
" ",
|
|
337
|
-
/* @__PURE__ */ jsx("span", { title: primary.resetsAt ? formatAllowanceInstant(t, primary.resetsAt) : void 0, children: reset })
|
|
338
|
-
] }),
|
|
339
|
-
pool ? /* @__PURE__ */ jsx(PoolLine, { reading: pool, measure, labels }) : null
|
|
340
|
-
]
|
|
341
|
-
}
|
|
342
|
-
);
|
|
343
|
-
}
|
|
344
|
-
return /* @__PURE__ */ jsxs(
|
|
345
|
-
"div",
|
|
346
|
-
{
|
|
347
|
-
...meterProps,
|
|
348
|
-
"data-og-usage-meter": primary.status,
|
|
349
|
-
className: cn("og-root flex min-w-0 flex-col gap-2 text-og-sm", className),
|
|
350
|
-
children: [
|
|
351
|
-
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-baseline justify-between gap-3", children: [
|
|
352
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate font-medium text-og-fg", children: title }),
|
|
353
|
-
/* @__PURE__ */ jsx("span", { className: valueClass, children: value })
|
|
354
|
-
] }),
|
|
355
|
-
bar,
|
|
356
|
-
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-wrap items-baseline justify-between gap-x-3 gap-y-1 text-og-xs text-og-fg-subtle", children: [
|
|
357
|
-
/* @__PURE__ */ jsx("span", { title: primary.resetsAt ? formatAllowanceInstant(t, primary.resetsAt) : void 0, children: reset }),
|
|
358
|
-
amounts ? /* @__PURE__ */ jsx("span", { className: "tabular-nums", children: amounts }) : null
|
|
359
|
-
] }),
|
|
360
|
-
pool ? /* @__PURE__ */ jsx(PoolLine, { reading: pool, measure, labels }) : null
|
|
361
|
-
]
|
|
362
|
-
}
|
|
363
|
-
);
|
|
364
|
-
}
|
|
365
|
-
function PoolLine({
|
|
366
|
-
reading: reading2,
|
|
367
|
-
measure,
|
|
368
|
-
labels
|
|
369
|
-
}) {
|
|
370
|
-
return /* @__PURE__ */ jsx(
|
|
371
|
-
"p",
|
|
372
|
-
{
|
|
373
|
-
className: cn(
|
|
374
|
-
"text-og-xs",
|
|
375
|
-
reading2.status === "exhausted" ? "font-medium text-og-danger" : reading2.status === "warning" ? "text-og-status-waiting" : "text-og-fg-muted"
|
|
376
|
-
),
|
|
377
|
-
children: labels.workspaceLine(valueText(reading2, measure, labels))
|
|
378
|
-
}
|
|
379
|
-
);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
// src/components/usage-limit-notice.tsx
|
|
383
|
-
import { GaugeIcon, XIcon } from "lucide-react";
|
|
384
|
-
import { useEffect as useEffect2, useState } from "react";
|
|
385
|
-
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
386
|
-
var DEFAULT_USAGE_LIMIT_NOTICE_LABELS = (t) => {
|
|
387
|
-
return {
|
|
388
|
-
...allowanceLabels(t),
|
|
389
|
-
memberWarning: (percent) => t("usageLimitNotice.youVeUsedPercentOf", { percent }),
|
|
390
|
-
workspaceWarning: (percent) => t("usageLimitNotice.thisWorkspaceHasUsedPercent", { percent }),
|
|
391
|
-
memberExhausted: t("usageLimitNotice.youVeReachedYourUsage"),
|
|
392
|
-
workspaceExhausted: t("usageLimitNotice.thisWorkspaceHasReachedIts"),
|
|
393
|
-
dismiss: t("usageLimitNotice.dismiss")
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
function UsageLimitNotice({
|
|
397
|
-
usage,
|
|
398
|
-
client,
|
|
399
|
-
workspaceId,
|
|
400
|
-
period,
|
|
401
|
-
refreshKey,
|
|
402
|
-
...view
|
|
403
|
-
}) {
|
|
404
|
-
if (usage !== void 0) {
|
|
405
|
-
return /* @__PURE__ */ jsx2(UsageLimitNoticeView, { ...view, summary: usage ? summarizeUsage(usage) : null });
|
|
406
|
-
}
|
|
407
|
-
return /* @__PURE__ */ jsx2(
|
|
408
|
-
LoadingNotice,
|
|
409
|
-
{
|
|
410
|
-
...view,
|
|
411
|
-
client,
|
|
412
|
-
workspaceId,
|
|
413
|
-
period,
|
|
414
|
-
refreshKey
|
|
415
|
-
}
|
|
416
|
-
);
|
|
417
|
-
}
|
|
418
|
-
function LoadingNotice({
|
|
419
|
-
client,
|
|
420
|
-
workspaceId,
|
|
421
|
-
period,
|
|
422
|
-
refreshKey,
|
|
423
|
-
...view
|
|
424
|
-
}) {
|
|
425
|
-
const { summary } = useUsage({ client, workspaceId, period, refreshKey });
|
|
426
|
-
return /* @__PURE__ */ jsx2(UsageLimitNoticeView, { ...view, summary });
|
|
427
|
-
}
|
|
428
|
-
function readDismissed(key) {
|
|
429
|
-
if (!key || typeof sessionStorage === "undefined") return false;
|
|
430
|
-
try {
|
|
431
|
-
return sessionStorage.getItem(key) === "1";
|
|
432
|
-
} catch {
|
|
433
|
-
return false;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
function UsageLimitNoticeView({
|
|
437
|
-
summary,
|
|
438
|
-
labels: overrides,
|
|
439
|
-
action,
|
|
440
|
-
dismissStorageKey,
|
|
441
|
-
className
|
|
442
|
-
}) {
|
|
443
|
-
const t = useOpenGeniText();
|
|
444
|
-
const labels = { ...DEFAULT_USAGE_LIMIT_NOTICE_LABELS(t), ...overrides };
|
|
445
|
-
const binding = summary?.binding ?? null;
|
|
446
|
-
const state = summary?.state;
|
|
447
|
-
const key = dismissStorageKey && binding && state === "warning" ? `${dismissStorageKey}:warning:${binding.scope}:${binding.resetsAt ?? "none"}` : null;
|
|
448
|
-
const [dismissed, setDismissed] = useState(() => readDismissed(key));
|
|
449
|
-
useEffect2(() => setDismissed(readDismissed(key)), [key]);
|
|
450
|
-
if (!summary || !binding || state !== "warning" && state !== "exhausted") return null;
|
|
451
|
-
if (state === "warning" && dismissed) return null;
|
|
452
|
-
const workspace = binding.scope === "workspace";
|
|
453
|
-
const exhausted = state === "exhausted";
|
|
454
|
-
const headline = exhausted ? workspace ? labels.workspaceExhausted : labels.memberExhausted : workspace ? labels.workspaceWarning(usagePercentLabel(binding.fraction)) : labels.memberWarning(usagePercentLabel(binding.fraction));
|
|
455
|
-
const reset = allowanceResetSentence(labels, binding.resetsAt);
|
|
456
|
-
const dismiss = () => {
|
|
457
|
-
setDismissed(true);
|
|
458
|
-
if (!key) return;
|
|
459
|
-
try {
|
|
460
|
-
sessionStorage.setItem(key, "1");
|
|
461
|
-
} catch {
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
return /* @__PURE__ */ jsxs2(
|
|
465
|
-
"div",
|
|
466
|
-
{
|
|
467
|
-
role: "status",
|
|
468
|
-
"data-og-usage-notice": exhausted ? "exhausted" : "warning",
|
|
469
|
-
"data-og-usage-scope": binding.scope,
|
|
470
|
-
className: cn(
|
|
471
|
-
"og-root flex min-w-0 items-start gap-2 px-3.5 pt-2.5 text-og-sm md:px-4",
|
|
472
|
-
className
|
|
473
|
-
),
|
|
474
|
-
children: [
|
|
475
|
-
/* @__PURE__ */ jsx2(GaugeIcon, { "aria-hidden": true, className: "mt-0.5 size-3.5 shrink-0 text-og-status-waiting" }),
|
|
476
|
-
/* @__PURE__ */ jsxs2("p", { className: "min-w-0 flex-1 text-og-fg-muted", children: [
|
|
477
|
-
/* @__PURE__ */ jsx2("span", { className: cn(exhausted && "font-medium text-og-fg"), children: headline }),
|
|
478
|
-
" ",
|
|
479
|
-
exhausted ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
480
|
-
workspace ? labels.workspaceRemedy : labels.memberRemedy,
|
|
481
|
-
" "
|
|
482
|
-
] }) : null,
|
|
483
|
-
/* @__PURE__ */ jsx2(
|
|
484
|
-
"span",
|
|
485
|
-
{
|
|
486
|
-
className: "whitespace-nowrap",
|
|
487
|
-
title: binding.resetsAt ? formatAllowanceInstant(t, binding.resetsAt) : void 0,
|
|
488
|
-
children: reset
|
|
489
|
-
}
|
|
490
|
-
)
|
|
491
|
-
] }),
|
|
492
|
-
action ? /* @__PURE__ */ jsx2("div", { className: "shrink-0", children: action(summary) }) : null,
|
|
493
|
-
!exhausted ? /* @__PURE__ */ jsx2(
|
|
494
|
-
"button",
|
|
495
|
-
{
|
|
496
|
-
type: "button",
|
|
497
|
-
"aria-label": labels.dismiss,
|
|
498
|
-
onClick: dismiss,
|
|
499
|
-
className: "-mt-0.5 -mr-1 grid size-6 shrink-0 place-items-center rounded-og-sm text-og-fg-subtle transition hover:bg-og-surface-2 hover:text-og-fg focus-visible:outline-2 focus-visible:outline-og-accent pointer-coarse:size-9",
|
|
500
|
-
children: /* @__PURE__ */ jsx2(XIcon, { "aria-hidden": true, className: "size-3.5" })
|
|
501
|
-
}
|
|
502
|
-
) : null
|
|
503
|
-
]
|
|
504
|
-
}
|
|
505
|
-
);
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
// src/components/usage-member-list.tsx
|
|
509
|
-
import { Slider } from "radix-ui";
|
|
510
|
-
import { useId, useMemo as useMemo2, useState as useState2 } from "react";
|
|
511
|
-
import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
512
|
-
var DEFAULT_USAGE_MEMBER_LIST_LABELS = (t) => ({
|
|
513
|
-
listLabel: t("usageMemberList.memberUsage"),
|
|
514
|
-
used: (percent) => `${percent}% used`,
|
|
515
|
-
noLimitUsed: t("usageMemberList.noIndividualLimit"),
|
|
516
|
-
amounts: (used, limit) => `${used} of ${limit}`,
|
|
517
|
-
nearLimit: t("usageMemberList.nearLimit"),
|
|
518
|
-
limitReached: t("usageMemberList.limitReached"),
|
|
519
|
-
limit: t("usageMemberList.limit"),
|
|
520
|
-
defaultEqualShare: (percent) => t("usageMemberList.equalSharePercent", { percent }),
|
|
521
|
-
defaultNone: t("usageMemberList.noIndividualLimit"),
|
|
522
|
-
defaultShare: (percent) => t("usageMemberList.defaultPercent", { percent }),
|
|
523
|
-
defaultAmount: (amount) => t("usageMemberList.defaultAmount", { amount }),
|
|
524
|
-
share: (percent) => t("usageMemberList.percentOfBudget", { percent }),
|
|
525
|
-
amount: (amount) => `${amount} fixed`,
|
|
526
|
-
fixedAmountHidden: t("usageMemberList.fixedAmount"),
|
|
527
|
-
edit: (name) => t("usageMemberList.changeLimitForName", { name }),
|
|
528
|
-
editorTitle: (name) => t("usageMemberList.limitForName", { name }),
|
|
529
|
-
optionDefault: t("usageMemberList.default"),
|
|
530
|
-
optionShare: t("usageMemberList.shareOfBudget"),
|
|
531
|
-
optionAmount: t("usageMemberList.fixedAmount"),
|
|
532
|
-
fixedAmountHint: t("usageMemberList.eachPeriodDoesnTGrow"),
|
|
533
|
-
shareSlider: t("usageMemberList.shareOfTheWorkspaceBudget"),
|
|
534
|
-
shareInput: t("usageMemberList.sharePercent"),
|
|
535
|
-
amountInput: t("usageMemberList.fixedAmount"),
|
|
536
|
-
equalShareMultiple: (multiple) => t("usageMemberList.multipleAnEqualShare", { multiple }),
|
|
537
|
-
sameAsEqualShare: t("usageMemberList.aboutAnEqualShare"),
|
|
538
|
-
atBudget: (amount) => t("usageMemberList.aboutAmountAtTheCurrent", { amount }),
|
|
539
|
-
save: t("usageMemberList.save"),
|
|
540
|
-
saving: t("usageMemberList.saving"),
|
|
541
|
-
cancel: t("usageMemberList.cancel"),
|
|
542
|
-
saveFailed: t("usageMemberList.couldnTSaveTheLimit"),
|
|
543
|
-
invalidAmount: t("usageMemberList.enterAnAmountOfZero"),
|
|
544
|
-
totalWithin: (percent) => t("usageMemberList.memberLimitsAddUpTo", { percent }),
|
|
545
|
-
totalOver: (percent) => t("usageMemberList.memberLimitsAddUpTo", { percent }),
|
|
546
|
-
oversubscribedHelp: t("usageMemberList.thatSAllowedLimitsAre"),
|
|
547
|
-
unlimitedMembers: (count) => count === 1 ? "1 member has no individual limit." : t("usageMemberList.countMembersHaveNoIndividual", { count }),
|
|
548
|
-
empty: t("usageMemberList.noMembersYet")
|
|
549
|
-
});
|
|
550
|
-
var STATUS_RANK = { exhausted: 0, warning: 1, ok: 2 };
|
|
551
|
-
function shareBase(usage) {
|
|
552
|
-
return usage.workspace.limit ?? usage.workspace.includedCredits + usage.workspace.grantsRemaining;
|
|
553
|
-
}
|
|
554
|
-
function formatPercent(value) {
|
|
555
|
-
const scaled = value * 100;
|
|
556
|
-
return Number.isInteger(Math.round(scaled * 10) / 10) || scaled >= 10 ? String(Math.round(scaled)) : (Math.round(scaled * 10) / 10).toFixed(1);
|
|
557
|
-
}
|
|
558
|
-
function formatMultiple(value) {
|
|
559
|
-
return value >= 10 ? String(Math.round(value)) : (Math.round(value * 10) / 10).toString();
|
|
560
|
-
}
|
|
561
|
-
function describeMemberLimit(t, member, context) {
|
|
562
|
-
const labels = { ...DEFAULT_USAGE_MEMBER_LIST_LABELS(t), ...context.labels };
|
|
563
|
-
const ofBudget = (limit) => limit !== null && context.shareBase > 0 ? formatPercent(limit / context.shareBase) : "0";
|
|
564
|
-
const rule = member.rule;
|
|
565
|
-
if (rule && "share" in rule) return labels.share(formatPercent(rule.share));
|
|
566
|
-
if (rule && "credits" in rule) {
|
|
567
|
-
return context.amounts ? labels.amount(context.amounts.format(rule.credits)) : labels.fixedAmountHidden;
|
|
568
|
-
}
|
|
569
|
-
const fallback = context.memberDefault ?? "none";
|
|
570
|
-
if (fallback === "none" || member.limit === null) return labels.defaultNone;
|
|
571
|
-
if (fallback === "equal_share") return labels.defaultEqualShare(ofBudget(member.limit));
|
|
572
|
-
if ("share" in fallback) return labels.defaultShare(formatPercent(fallback.share));
|
|
573
|
-
return context.amounts ? labels.defaultAmount(context.amounts.format(fallback.credits)) : labels.defaultShare(ofBudget(member.limit));
|
|
574
|
-
}
|
|
575
|
-
function UsageMemberList({
|
|
576
|
-
usage,
|
|
577
|
-
memberDefault,
|
|
578
|
-
describe,
|
|
579
|
-
onChangeRule,
|
|
580
|
-
amounts,
|
|
581
|
-
labels: overrides,
|
|
582
|
-
framed = true,
|
|
583
|
-
className
|
|
584
|
-
}) {
|
|
585
|
-
const t = useOpenGeniText();
|
|
586
|
-
const labels = { ...DEFAULT_USAGE_MEMBER_LIST_LABELS(t), ...overrides };
|
|
587
|
-
const base = shareBase(usage);
|
|
588
|
-
const [editing, setEditing] = useState2(null);
|
|
589
|
-
const name = (member) => describe?.(member) ?? {
|
|
590
|
-
name: member.externalIdentity?.externalId ?? member.subjectId,
|
|
591
|
-
detail: null
|
|
592
|
-
};
|
|
593
|
-
const members = useMemo2(
|
|
594
|
-
() => [...usage.members].sort(
|
|
595
|
-
(left, right) => STATUS_RANK[left.status] - STATUS_RANK[right.status] || right.used - left.used
|
|
596
|
-
),
|
|
597
|
-
[usage.members]
|
|
598
|
-
);
|
|
599
|
-
if (members.length === 0) {
|
|
600
|
-
return /* @__PURE__ */ jsx3("p", { className: cn("og-root text-og-sm text-og-fg-muted", className), children: labels.empty });
|
|
601
|
-
}
|
|
602
|
-
return /* @__PURE__ */ jsxs3("div", { className: cn("og-root flex min-w-0 flex-col gap-3", className), children: [
|
|
603
|
-
/* @__PURE__ */ jsx3(AllocationSummary, { usage, base, labels, framed }),
|
|
604
|
-
/* @__PURE__ */ jsx3(
|
|
605
|
-
"ul",
|
|
606
|
-
{
|
|
607
|
-
"aria-label": labels.listLabel,
|
|
608
|
-
className: cn(
|
|
609
|
-
"divide-y divide-og-border",
|
|
610
|
-
framed && "overflow-hidden rounded-og-md border border-og-border"
|
|
611
|
-
),
|
|
612
|
-
children: members.map((member) => /* @__PURE__ */ jsx3(
|
|
613
|
-
MemberRow,
|
|
614
|
-
{
|
|
615
|
-
member,
|
|
616
|
-
identity: name(member),
|
|
617
|
-
usage,
|
|
618
|
-
base,
|
|
619
|
-
memberDefault,
|
|
620
|
-
amounts,
|
|
621
|
-
labels,
|
|
622
|
-
framed,
|
|
623
|
-
editing: editing === member.subjectId,
|
|
624
|
-
onEdit: onChangeRule ? () => setEditing(
|
|
625
|
-
(current) => current === member.subjectId ? null : member.subjectId
|
|
626
|
-
) : void 0,
|
|
627
|
-
onClose: () => setEditing(null),
|
|
628
|
-
onSave: onChangeRule ? async (rule) => {
|
|
629
|
-
await onChangeRule(member, rule);
|
|
630
|
-
setEditing(null);
|
|
631
|
-
} : void 0
|
|
632
|
-
},
|
|
633
|
-
member.subjectId
|
|
634
|
-
))
|
|
635
|
-
}
|
|
636
|
-
)
|
|
637
|
-
] });
|
|
638
|
-
}
|
|
639
|
-
function memberShares(usage, base) {
|
|
640
|
-
let total = 0;
|
|
641
|
-
let unlimited = 0;
|
|
642
|
-
for (const member of usage.members) {
|
|
643
|
-
if (member.limit === null) unlimited += 1;
|
|
644
|
-
else total += base > 0 ? member.limit / base : 0;
|
|
645
|
-
}
|
|
646
|
-
return { total, unlimited };
|
|
647
|
-
}
|
|
648
|
-
function AllocationSummary({
|
|
649
|
-
usage,
|
|
650
|
-
base,
|
|
651
|
-
labels,
|
|
652
|
-
framed
|
|
653
|
-
}) {
|
|
654
|
-
if (base <= 0) return null;
|
|
655
|
-
const { total, unlimited } = memberShares(usage, base);
|
|
656
|
-
const limited = usage.members.length - unlimited;
|
|
657
|
-
const over = total > 1.005;
|
|
658
|
-
const shaped = usage.members.some((member) => member.rule !== null);
|
|
659
|
-
if (limited === 0 || !over && !shaped && unlimited === 0) return null;
|
|
660
|
-
return /* @__PURE__ */ jsxs3(
|
|
661
|
-
"div",
|
|
662
|
-
{
|
|
663
|
-
"data-og-usage-allocation": over ? "oversubscribed" : "within",
|
|
664
|
-
className: cn(
|
|
665
|
-
"flex min-w-0 flex-col gap-1 text-og-sm",
|
|
666
|
-
framed || over ? "rounded-og-md px-3 py-2" : "pt-1",
|
|
667
|
-
over ? "bg-og-status-waiting/8 text-og-fg" : framed ? "bg-og-surface-1 text-og-fg-muted" : "text-og-fg-muted"
|
|
668
|
-
),
|
|
669
|
-
children: [
|
|
670
|
-
limited > 0 ? /* @__PURE__ */ jsx3(AllocationBar, { total, over, children: over ? labels.totalOver(formatPercent(total)) : labels.totalWithin(formatPercent(total)) }) : null,
|
|
671
|
-
over ? /* @__PURE__ */ jsx3("p", { className: "text-og-xs text-og-fg-muted", children: labels.oversubscribedHelp }) : null,
|
|
672
|
-
unlimited > 0 ? /* @__PURE__ */ jsx3("p", { className: "text-og-xs text-og-fg-muted", children: labels.unlimitedMembers(unlimited) }) : null
|
|
673
|
-
]
|
|
674
|
-
}
|
|
675
|
-
);
|
|
676
|
-
}
|
|
677
|
-
function AllocationBar({
|
|
678
|
-
total,
|
|
679
|
-
over,
|
|
680
|
-
children
|
|
681
|
-
}) {
|
|
682
|
-
const scale = Math.max(1, total);
|
|
683
|
-
return /* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-col gap-1.5", children: [
|
|
684
|
-
/* @__PURE__ */ jsx3("p", { className: cn(over && "font-medium"), children }),
|
|
685
|
-
/* @__PURE__ */ jsxs3("span", { "aria-hidden": true, className: "relative block h-1 overflow-hidden rounded-full bg-og-surface-3", children: [
|
|
686
|
-
/* @__PURE__ */ jsx3(
|
|
687
|
-
"span",
|
|
688
|
-
{
|
|
689
|
-
className: "absolute inset-y-0 left-0 bg-og-accent/70",
|
|
690
|
-
style: { width: `${Math.min(total, 1) / scale * 100}%` }
|
|
691
|
-
}
|
|
692
|
-
),
|
|
693
|
-
over ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
694
|
-
/* @__PURE__ */ jsx3(
|
|
695
|
-
"span",
|
|
696
|
-
{
|
|
697
|
-
className: "absolute inset-y-0 bg-og-status-waiting",
|
|
698
|
-
style: { left: `${1 / scale * 100}%`, right: 0 }
|
|
699
|
-
}
|
|
700
|
-
),
|
|
701
|
-
/* @__PURE__ */ jsx3(
|
|
702
|
-
"span",
|
|
703
|
-
{
|
|
704
|
-
className: "absolute inset-y-[-2px] w-px bg-og-fg",
|
|
705
|
-
style: { left: `${1 / scale * 100}%` }
|
|
706
|
-
}
|
|
707
|
-
)
|
|
708
|
-
] }) : null
|
|
709
|
-
] })
|
|
710
|
-
] });
|
|
711
|
-
}
|
|
712
|
-
function MemberRow({
|
|
713
|
-
member,
|
|
714
|
-
identity,
|
|
715
|
-
usage,
|
|
716
|
-
base,
|
|
717
|
-
memberDefault,
|
|
718
|
-
amounts,
|
|
719
|
-
labels,
|
|
720
|
-
framed,
|
|
721
|
-
editing,
|
|
722
|
-
onEdit,
|
|
723
|
-
onClose,
|
|
724
|
-
onSave
|
|
725
|
-
}) {
|
|
726
|
-
const t = useOpenGeniText();
|
|
727
|
-
const editorId = useId();
|
|
728
|
-
const limited = member.limit !== null;
|
|
729
|
-
const fraction = member.fraction ?? 0;
|
|
730
|
-
const limitText = describeMemberLimit(t, member, {
|
|
731
|
-
memberDefault,
|
|
732
|
-
shareBase: base,
|
|
733
|
-
amounts,
|
|
734
|
-
labels
|
|
735
|
-
});
|
|
736
|
-
return /* @__PURE__ */ jsxs3("li", { className: cn("min-w-0", framed && "bg-og-bg"), "data-og-usage-member": member.subjectId, children: [
|
|
737
|
-
/* @__PURE__ */ jsxs3(
|
|
738
|
-
"div",
|
|
739
|
-
{
|
|
740
|
-
className: cn(
|
|
741
|
-
"grid min-w-0 grid-cols-1 gap-x-4 gap-y-2 py-3 sm:grid-cols-[minmax(0,1.2fr)_minmax(0,1fr)_11rem] sm:items-center",
|
|
742
|
-
framed && "px-3.5"
|
|
743
|
-
),
|
|
744
|
-
children: [
|
|
745
|
-
/* @__PURE__ */ jsxs3("div", { className: "min-w-0", children: [
|
|
746
|
-
/* @__PURE__ */ jsx3("p", { className: "truncate text-og-sm font-medium text-og-fg", children: identity.name }),
|
|
747
|
-
identity.detail ? /* @__PURE__ */ jsx3("p", { className: "truncate text-og-xs text-og-fg-subtle", children: identity.detail }) : null
|
|
748
|
-
] }),
|
|
749
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
750
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 items-baseline justify-between gap-2 text-og-xs", children: [
|
|
751
|
-
/* @__PURE__ */ jsx3(
|
|
752
|
-
"span",
|
|
753
|
-
{
|
|
754
|
-
className: cn(
|
|
755
|
-
"tabular-nums",
|
|
756
|
-
member.status === "ok" && "text-og-fg-muted",
|
|
757
|
-
member.status === "warning" && "font-medium text-og-status-waiting",
|
|
758
|
-
member.status === "exhausted" && "font-medium text-og-danger"
|
|
759
|
-
),
|
|
760
|
-
children: limited ? member.status === "exhausted" ? labels.limitReached : `${labels.used(usagePercentLabel(fraction))}${member.status === "warning" ? ` \xB7 ${labels.nearLimit}` : ""}` : labels.noLimitUsed
|
|
761
|
-
}
|
|
762
|
-
),
|
|
763
|
-
amounts ? /* @__PURE__ */ jsx3("span", { className: "truncate text-og-fg-subtle tabular-nums", children: limited ? labels.amounts(amounts.format(member.used), amounts.format(member.limit)) : amounts.format(member.used) }) : null
|
|
764
|
-
] }),
|
|
765
|
-
/* @__PURE__ */ jsx3(
|
|
766
|
-
"span",
|
|
767
|
-
{
|
|
768
|
-
"aria-hidden": true,
|
|
769
|
-
className: cn(
|
|
770
|
-
"relative block h-1 overflow-hidden rounded-full",
|
|
771
|
-
limited ? "bg-og-surface-3" : "bg-transparent"
|
|
772
|
-
),
|
|
773
|
-
children: limited ? /* @__PURE__ */ jsx3(
|
|
774
|
-
"span",
|
|
775
|
-
{
|
|
776
|
-
className: cn(
|
|
777
|
-
"absolute inset-y-0 left-0 rounded-full",
|
|
778
|
-
member.status === "ok" ? "bg-og-accent" : member.status === "warning" ? "bg-og-status-waiting" : "bg-og-danger"
|
|
779
|
-
),
|
|
780
|
-
style: { width: `${Math.min(1, Math.max(0, fraction)) * 100}%` }
|
|
781
|
-
}
|
|
782
|
-
) : null
|
|
783
|
-
}
|
|
784
|
-
)
|
|
785
|
-
] }),
|
|
786
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 items-center justify-between gap-2 sm:justify-end", children: [
|
|
787
|
-
/* @__PURE__ */ jsx3("span", { className: "text-og-xs text-og-fg-subtle sm:hidden", children: labels.limit }),
|
|
788
|
-
onEdit ? /* @__PURE__ */ jsx3(
|
|
789
|
-
"button",
|
|
790
|
-
{
|
|
791
|
-
type: "button",
|
|
792
|
-
onClick: onEdit,
|
|
793
|
-
"aria-expanded": editing,
|
|
794
|
-
"aria-controls": editing ? editorId : void 0,
|
|
795
|
-
"aria-label": `${labels.edit(identity.name)}: ${limitText}`,
|
|
796
|
-
className: "inline-flex h-8 max-w-full items-center gap-1.5 truncate rounded-og-sm border border-og-border px-2.5 text-og-control text-og-fg transition hover:bg-og-surface-2 focus-visible:outline-2 focus-visible:outline-og-accent pointer-coarse:h-10",
|
|
797
|
-
children: limitText
|
|
798
|
-
}
|
|
799
|
-
) : /* @__PURE__ */ jsx3("span", { className: "truncate text-og-xs text-og-fg-muted", children: limitText })
|
|
800
|
-
] })
|
|
801
|
-
]
|
|
802
|
-
}
|
|
803
|
-
),
|
|
804
|
-
editing && onSave ? /* @__PURE__ */ jsx3(
|
|
805
|
-
MemberLimitEditor,
|
|
806
|
-
{
|
|
807
|
-
id: editorId,
|
|
808
|
-
member,
|
|
809
|
-
name: identity.name,
|
|
810
|
-
usage,
|
|
811
|
-
base,
|
|
812
|
-
memberDefault,
|
|
813
|
-
amounts,
|
|
814
|
-
labels,
|
|
815
|
-
framed,
|
|
816
|
-
onCancel: onClose,
|
|
817
|
-
onSave
|
|
818
|
-
}
|
|
819
|
-
) : null
|
|
820
|
-
] });
|
|
821
|
-
}
|
|
822
|
-
function initialMode(rule, amounts) {
|
|
823
|
-
if (rule === null) return "share";
|
|
824
|
-
if ("share" in rule) return "share";
|
|
825
|
-
return amounts ? "amount" : "share";
|
|
826
|
-
}
|
|
827
|
-
function MemberLimitEditor({
|
|
828
|
-
id,
|
|
829
|
-
member,
|
|
830
|
-
name,
|
|
831
|
-
usage,
|
|
832
|
-
base,
|
|
833
|
-
memberDefault,
|
|
834
|
-
amounts,
|
|
835
|
-
labels,
|
|
836
|
-
framed,
|
|
837
|
-
onCancel,
|
|
838
|
-
onSave
|
|
839
|
-
}) {
|
|
840
|
-
const t = useOpenGeniText();
|
|
841
|
-
const count = Math.max(1, usage.members.length);
|
|
842
|
-
const equal = 1 / count;
|
|
843
|
-
const currentShare = member.rule && "share" in member.rule ? member.rule.share : member.limit !== null && base > 0 ? member.limit / base : equal;
|
|
844
|
-
const startPercent = Math.min(100, Math.max(0, Math.round(currentShare * 100)));
|
|
845
|
-
const startAmount = amounts && member.rule && "credits" in member.rule ? stripPrefix(amounts.format(member.rule.credits), amounts.prefix) : amounts && member.limit !== null ? stripPrefix(amounts.format(member.limit), amounts.prefix) : "";
|
|
846
|
-
const [mode, setMode] = useState2(() => initialMode(member.rule, amounts));
|
|
847
|
-
const [sharePercent, setSharePercent] = useState2(startPercent);
|
|
848
|
-
const [amountText, setAmountText] = useState2(startAmount);
|
|
849
|
-
const [saving, setSaving] = useState2(false);
|
|
850
|
-
const [error, setError] = useState2(null);
|
|
851
|
-
const share = sharePercent / 100;
|
|
852
|
-
const parsedAmount = amounts && mode === "amount" ? amounts.parse(amountText) : null;
|
|
853
|
-
const defaultLimitText = describeMemberLimit(
|
|
854
|
-
t,
|
|
855
|
-
{
|
|
856
|
-
rule: null,
|
|
857
|
-
limit: member.rule === null ? member.limit : defaultLimitFor(memberDefault, base, count)
|
|
858
|
-
},
|
|
859
|
-
{ memberDefault, shareBase: base, amounts, labels }
|
|
860
|
-
);
|
|
861
|
-
const unchanged = mode === "default" ? member.rule === null : mode === "share" ? (member.rule === null || "share" in member.rule) && sharePercent === startPercent : member.rule !== null && "credits" in member.rule && amountText === startAmount;
|
|
862
|
-
const draftLimit = mode === "share" ? share * base : mode === "amount" ? parsedAmount : defaultLimitFor(memberDefault, base, count);
|
|
863
|
-
const others = usage.members.reduce(
|
|
864
|
-
(sum, other) => other.subjectId === member.subjectId || other.limit === null ? sum : sum + other.limit,
|
|
865
|
-
0
|
|
866
|
-
);
|
|
867
|
-
const draftTotal = base > 0 && draftLimit !== null ? (others + draftLimit) / base : null;
|
|
868
|
-
async function save() {
|
|
869
|
-
let rule;
|
|
870
|
-
if (mode === "default") rule = null;
|
|
871
|
-
else if (mode === "share") rule = { share };
|
|
872
|
-
else {
|
|
873
|
-
if (parsedAmount === null || !Number.isSafeInteger(parsedAmount) || parsedAmount < 0) {
|
|
874
|
-
setError(labels.invalidAmount);
|
|
875
|
-
return;
|
|
876
|
-
}
|
|
877
|
-
rule = { credits: parsedAmount };
|
|
878
|
-
}
|
|
879
|
-
setSaving(true);
|
|
880
|
-
setError(null);
|
|
881
|
-
try {
|
|
882
|
-
await onSave(rule);
|
|
883
|
-
} catch (cause) {
|
|
884
|
-
setError(cause instanceof Error && cause.message ? cause.message : labels.saveFailed);
|
|
885
|
-
setSaving(false);
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
const modes = [
|
|
889
|
-
{ value: "share", label: labels.optionShare },
|
|
890
|
-
...amounts ? [{ value: "amount", label: labels.optionAmount }] : [],
|
|
891
|
-
{ value: "default", label: labels.optionDefault }
|
|
892
|
-
];
|
|
893
|
-
return /* @__PURE__ */ jsxs3(
|
|
894
|
-
"div",
|
|
895
|
-
{
|
|
896
|
-
id,
|
|
897
|
-
role: "group",
|
|
898
|
-
"aria-label": labels.editorTitle(name),
|
|
899
|
-
className: cn(
|
|
900
|
-
"bg-og-surface-1 px-3.5 py-3",
|
|
901
|
-
framed ? "border-t border-og-border" : "mb-3 rounded-og-md"
|
|
902
|
-
),
|
|
903
|
-
onKeyDown: (event) => {
|
|
904
|
-
if (event.key === "Escape" && !saving) {
|
|
905
|
-
event.stopPropagation();
|
|
906
|
-
onCancel();
|
|
907
|
-
}
|
|
908
|
-
},
|
|
909
|
-
children: [
|
|
910
|
-
/* @__PURE__ */ jsxs3("fieldset", { className: "flex min-w-0 flex-col gap-3", disabled: saving, children: [
|
|
911
|
-
/* @__PURE__ */ jsx3("legend", { className: "sr-only", children: labels.editorTitle(name) }),
|
|
912
|
-
/* @__PURE__ */ jsx3(
|
|
913
|
-
"div",
|
|
914
|
-
{
|
|
915
|
-
role: "radiogroup",
|
|
916
|
-
"aria-label": labels.limit,
|
|
917
|
-
className: "inline-flex w-fit max-w-full flex-wrap gap-0.5 rounded-og-sm bg-og-surface-3/60 p-0.5",
|
|
918
|
-
children: modes.map((option) => /* @__PURE__ */ jsxs3(
|
|
919
|
-
"label",
|
|
920
|
-
{
|
|
921
|
-
className: cn(
|
|
922
|
-
"relative inline-flex h-7 cursor-pointer items-center rounded-[5px] px-2.5 text-og-control transition has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-og-accent pointer-coarse:h-9",
|
|
923
|
-
mode === option.value ? "bg-og-bg font-medium text-og-fg shadow-sm" : "text-og-fg-muted hover:text-og-fg"
|
|
924
|
-
),
|
|
925
|
-
children: [
|
|
926
|
-
/* @__PURE__ */ jsx3(
|
|
927
|
-
"input",
|
|
928
|
-
{
|
|
929
|
-
type: "radio",
|
|
930
|
-
name: `${id}-mode`,
|
|
931
|
-
value: option.value,
|
|
932
|
-
checked: mode === option.value,
|
|
933
|
-
onChange: () => setMode(option.value),
|
|
934
|
-
className: "sr-only"
|
|
935
|
-
}
|
|
936
|
-
),
|
|
937
|
-
option.label
|
|
938
|
-
]
|
|
939
|
-
},
|
|
940
|
-
option.value
|
|
941
|
-
))
|
|
942
|
-
}
|
|
943
|
-
),
|
|
944
|
-
mode === "share" ? /* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-col gap-2", children: [
|
|
945
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
946
|
-
/* @__PURE__ */ jsxs3(
|
|
947
|
-
Slider.Root,
|
|
948
|
-
{
|
|
949
|
-
value: [sharePercent],
|
|
950
|
-
min: 0,
|
|
951
|
-
max: 100,
|
|
952
|
-
step: 1,
|
|
953
|
-
onValueChange: (next) => setSharePercent(next[0] ?? 0),
|
|
954
|
-
"data-og-share-slider": "",
|
|
955
|
-
className: "relative flex h-6 min-w-0 flex-1 touch-none items-center select-none pointer-coarse:h-10",
|
|
956
|
-
children: [
|
|
957
|
-
/* @__PURE__ */ jsx3(Slider.Track, { className: "relative h-1.5 grow overflow-hidden rounded-full bg-og-surface-3", children: /* @__PURE__ */ jsx3(Slider.Range, { className: "absolute h-full rounded-full bg-og-accent" }) }),
|
|
958
|
-
count > 1 ? /* @__PURE__ */ jsx3(
|
|
959
|
-
"span",
|
|
960
|
-
{
|
|
961
|
-
"aria-hidden": true,
|
|
962
|
-
className: "pointer-events-none absolute top-1/2 h-3.5 w-0.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-og-fg-subtle",
|
|
963
|
-
style: { left: `${equal * 100}%` }
|
|
964
|
-
}
|
|
965
|
-
) : null,
|
|
966
|
-
/* @__PURE__ */ jsx3(
|
|
967
|
-
Slider.Thumb,
|
|
968
|
-
{
|
|
969
|
-
"aria-label": labels.shareSlider,
|
|
970
|
-
"aria-valuetext": `${sharePercent}%`,
|
|
971
|
-
className: "block size-4 rounded-full border-2 border-og-accent bg-og-bg shadow-sm transition focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-og-accent pointer-coarse:size-6"
|
|
972
|
-
}
|
|
973
|
-
)
|
|
974
|
-
]
|
|
975
|
-
}
|
|
976
|
-
),
|
|
977
|
-
/* @__PURE__ */ jsxs3("label", { className: "flex shrink-0 items-center gap-1 text-og-sm text-og-fg", children: [
|
|
978
|
-
/* @__PURE__ */ jsx3(
|
|
979
|
-
"input",
|
|
980
|
-
{
|
|
981
|
-
type: "number",
|
|
982
|
-
inputMode: "numeric",
|
|
983
|
-
min: 0,
|
|
984
|
-
max: 100,
|
|
985
|
-
step: 1,
|
|
986
|
-
value: sharePercent,
|
|
987
|
-
"aria-label": labels.shareInput,
|
|
988
|
-
onChange: (event) => {
|
|
989
|
-
const next = Number(event.target.value);
|
|
990
|
-
if (Number.isFinite(next))
|
|
991
|
-
setSharePercent(Math.min(100, Math.max(0, Math.round(next))));
|
|
992
|
-
},
|
|
993
|
-
className: "h-8 w-16 rounded-og-sm border border-og-border bg-og-bg px-2 text-right tabular-nums focus-visible:outline-2 focus-visible:outline-og-accent pointer-coarse:h-10"
|
|
994
|
-
}
|
|
995
|
-
),
|
|
996
|
-
"%"
|
|
997
|
-
] })
|
|
998
|
-
] }),
|
|
999
|
-
/* @__PURE__ */ jsx3("p", { className: "text-og-xs text-og-fg-subtle", "aria-live": "polite", children: [
|
|
1000
|
-
count > 1 ? Math.abs(share * count - 1) < 0.05 ? labels.sameAsEqualShare : labels.equalShareMultiple(formatMultiple(share * count)) : null,
|
|
1001
|
-
amounts && base > 0 ? labels.atBudget(amounts.format(Math.round(share * base))) : null
|
|
1002
|
-
].filter(Boolean).join(" \xB7 ") })
|
|
1003
|
-
] }) : mode === "amount" && amounts ? /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-1 text-og-sm text-og-fg", children: [
|
|
1004
|
-
amounts.prefix ? /* @__PURE__ */ jsx3("span", { className: "text-og-fg-subtle", children: amounts.prefix }) : null,
|
|
1005
|
-
/* @__PURE__ */ jsx3(
|
|
1006
|
-
"input",
|
|
1007
|
-
{
|
|
1008
|
-
type: "number",
|
|
1009
|
-
inputMode: "decimal",
|
|
1010
|
-
min: 0,
|
|
1011
|
-
step: amounts.step ?? 0.01,
|
|
1012
|
-
value: amountText,
|
|
1013
|
-
"aria-label": labels.amountInput,
|
|
1014
|
-
"aria-invalid": error === labels.invalidAmount || void 0,
|
|
1015
|
-
onChange: (event) => setAmountText(event.target.value),
|
|
1016
|
-
className: "h-8 w-28 rounded-og-sm border border-og-border bg-og-bg px-2 tabular-nums focus-visible:outline-2 focus-visible:outline-og-accent pointer-coarse:h-10"
|
|
1017
|
-
}
|
|
1018
|
-
),
|
|
1019
|
-
/* @__PURE__ */ jsx3("span", { className: "ml-2 text-og-xs text-og-fg-subtle", children: labels.fixedAmountHint })
|
|
1020
|
-
] }) : /* @__PURE__ */ jsx3("p", { className: "text-og-sm text-og-fg-muted", children: defaultLimitText })
|
|
1021
|
-
] }),
|
|
1022
|
-
draftTotal !== null ? /* @__PURE__ */ jsx3(
|
|
1023
|
-
"p",
|
|
1024
|
-
{
|
|
1025
|
-
className: cn("mt-3 text-og-xs", draftTotal > 1.005 ? "text-og-fg" : "text-og-fg-subtle"),
|
|
1026
|
-
children: draftTotal > 1.005 ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
1027
|
-
/* @__PURE__ */ jsx3("span", { className: "font-medium", children: labels.totalOver(formatPercent(draftTotal)) }),
|
|
1028
|
-
" ",
|
|
1029
|
-
/* @__PURE__ */ jsx3("span", { className: "text-og-fg-muted", children: labels.oversubscribedHelp })
|
|
1030
|
-
] }) : labels.totalWithin(formatPercent(draftTotal))
|
|
1031
|
-
}
|
|
1032
|
-
) : null,
|
|
1033
|
-
error ? /* @__PURE__ */ jsx3("p", { role: "alert", className: "mt-2 text-og-xs text-og-danger", children: error }) : null,
|
|
1034
|
-
/* @__PURE__ */ jsxs3("div", { className: "mt-3 flex items-center justify-end gap-2", children: [
|
|
1035
|
-
/* @__PURE__ */ jsx3(
|
|
1036
|
-
"button",
|
|
1037
|
-
{
|
|
1038
|
-
type: "button",
|
|
1039
|
-
onClick: onCancel,
|
|
1040
|
-
disabled: saving,
|
|
1041
|
-
className: "inline-flex h-8 items-center rounded-og-sm px-3 text-og-control text-og-fg transition hover:bg-og-surface-2 focus-visible:outline-2 focus-visible:outline-og-accent disabled:opacity-50 pointer-coarse:h-10",
|
|
1042
|
-
children: labels.cancel
|
|
1043
|
-
}
|
|
1044
|
-
),
|
|
1045
|
-
/* @__PURE__ */ jsx3(
|
|
1046
|
-
"button",
|
|
1047
|
-
{
|
|
1048
|
-
type: "button",
|
|
1049
|
-
onClick: () => void save(),
|
|
1050
|
-
disabled: saving || unchanged,
|
|
1051
|
-
className: "inline-flex h-8 items-center rounded-og-sm border border-og-primary-border bg-og-primary px-3 text-og-control font-medium text-og-primary-fg transition hover:bg-og-primary-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-og-accent disabled:cursor-not-allowed disabled:opacity-50 pointer-coarse:h-10",
|
|
1052
|
-
children: saving ? labels.saving : labels.save
|
|
1053
|
-
}
|
|
1054
|
-
)
|
|
1055
|
-
] })
|
|
1056
|
-
]
|
|
1057
|
-
}
|
|
1058
|
-
);
|
|
1059
|
-
}
|
|
1060
|
-
function stripPrefix(text, prefix) {
|
|
1061
|
-
const plain = prefix && text.startsWith(prefix) ? text.slice(prefix.length) : text;
|
|
1062
|
-
return plain.replace(/,/g, "");
|
|
1063
|
-
}
|
|
1064
|
-
function defaultLimitFor(memberDefault, base, count) {
|
|
1065
|
-
const fallback = memberDefault ?? "none";
|
|
1066
|
-
if (fallback === "none") return null;
|
|
1067
|
-
if (fallback === "equal_share") return base / count;
|
|
1068
|
-
if ("share" in fallback) return fallback.share * base;
|
|
1069
|
-
return fallback.credits;
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
// src/components/session-usage-limit-notice.tsx
|
|
1073
|
-
import { GaugeIcon as GaugeIcon2, XIcon as XIcon2 } from "lucide-react";
|
|
1074
|
-
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
1075
|
-
import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1076
|
-
function readDismissed2(key) {
|
|
1077
|
-
if (!key || typeof sessionStorage === "undefined") return false;
|
|
1078
|
-
try {
|
|
1079
|
-
return sessionStorage.getItem(key) === "1";
|
|
1080
|
-
} catch {
|
|
1081
|
-
return false;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
function SessionUsageLimitNotice({
|
|
1085
|
-
usage,
|
|
1086
|
-
refusal,
|
|
1087
|
-
onChangeLimit,
|
|
1088
|
-
mainTaskHref,
|
|
1089
|
-
goalPaused = false,
|
|
1090
|
-
stale = false,
|
|
1091
|
-
dismissStorageKey,
|
|
1092
|
-
labels: overrides,
|
|
1093
|
-
className
|
|
1094
|
-
}) {
|
|
1095
|
-
const t = useOpenGeniText();
|
|
1096
|
-
const labels = sessionUsageLimitLabels(t, overrides);
|
|
1097
|
-
const fromUsage = summarizeSessionUsageLimit(t, usage, overrides, { stale });
|
|
1098
|
-
const summary = refusal && fromUsage.state !== "reached" ? summarizeSessionUsageLimitRefusal(t, refusal, overrides) : fromUsage;
|
|
1099
|
-
const near = summary.state === "near";
|
|
1100
|
-
const key = dismissStorageKey && near && summary.rootSessionId ? `${dismissStorageKey}:session-usage-limit:${summary.rootSessionId}:${summary.version ?? 0}` : null;
|
|
1101
|
-
const [dismissed, setDismissed] = useState3(() => readDismissed2(key));
|
|
1102
|
-
useEffect3(() => setDismissed(readDismissed2(key)), [key]);
|
|
1103
|
-
if (summary.state !== "reached" && !near) return null;
|
|
1104
|
-
if (near && dismissed) return null;
|
|
1105
|
-
const reached = summary.state === "reached";
|
|
1106
|
-
const amount = summary.amountText ?? "";
|
|
1107
|
-
const dismiss = () => {
|
|
1108
|
-
setDismissed(true);
|
|
1109
|
-
if (!key) return;
|
|
1110
|
-
try {
|
|
1111
|
-
sessionStorage.setItem(key, "1");
|
|
1112
|
-
} catch {
|
|
1113
|
-
}
|
|
1114
|
-
};
|
|
1115
|
-
let action = null;
|
|
1116
|
-
if (onChangeLimit) {
|
|
1117
|
-
action = /* @__PURE__ */ jsx4(
|
|
1118
|
-
"button",
|
|
1119
|
-
{
|
|
1120
|
-
type: "button",
|
|
1121
|
-
onClick: onChangeLimit,
|
|
1122
|
-
"data-og-session-usage-limit-action": "change",
|
|
1123
|
-
className: cn(
|
|
1124
|
-
"inline-flex h-8 shrink-0 items-center rounded-og-sm border px-3 text-og-control font-medium transition focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-og-accent pointer-coarse:h-11",
|
|
1125
|
-
reached ? "border-og-primary-border bg-og-primary text-og-primary-fg hover:bg-og-primary-hover" : "border-og-border bg-og-surface-1 text-og-fg hover:bg-og-surface-2"
|
|
1126
|
-
),
|
|
1127
|
-
children: labels.changeLimit
|
|
1128
|
-
}
|
|
1129
|
-
);
|
|
1130
|
-
} else if (mainTaskHref) {
|
|
1131
|
-
action = /* @__PURE__ */ jsx4("a", { href: mainTaskHref, className: "og-link shrink-0 text-og-control font-medium", children: labels.openMainTask });
|
|
1132
|
-
}
|
|
1133
|
-
const remedy = !onChangeLimit && reached ? labels.reachedReadOnlyRemedy : goalPaused ? labels.reachedGoalRemedy : labels.reachedRemedy;
|
|
1134
|
-
return /* @__PURE__ */ jsxs4(
|
|
1135
|
-
"div",
|
|
1136
|
-
{
|
|
1137
|
-
role: "status",
|
|
1138
|
-
"data-og-session-usage-limit": reached ? "reached" : "near",
|
|
1139
|
-
className: cn(
|
|
1140
|
-
"og-root flex min-w-0 flex-wrap items-start gap-x-2 gap-y-2 px-3.5 pt-2.5 text-og-sm md:px-4",
|
|
1141
|
-
className
|
|
1142
|
-
),
|
|
1143
|
-
children: [
|
|
1144
|
-
/* @__PURE__ */ jsx4(GaugeIcon2, { "aria-hidden": true, className: "mt-0.5 size-3.5 shrink-0 text-og-status-waiting" }),
|
|
1145
|
-
/* @__PURE__ */ jsx4("div", { className: "min-w-0 flex-1 basis-48", children: reached ? /* @__PURE__ */ jsxs4(Fragment3, { children: [
|
|
1146
|
-
/* @__PURE__ */ jsx4("p", { className: "font-medium text-og-fg", children: labels.reachedTitle }),
|
|
1147
|
-
/* @__PURE__ */ jsxs4("p", { className: "mt-0.5 text-og-fg-muted", children: [
|
|
1148
|
-
amount ? `${labels.reachedAmount(amount)} ` : "",
|
|
1149
|
-
remedy,
|
|
1150
|
-
summary.stale ? ` ${labels.staleNote}` : ""
|
|
1151
|
-
] })
|
|
1152
|
-
] }) : /* @__PURE__ */ jsxs4("p", { className: "text-og-fg-muted", children: [
|
|
1153
|
-
labels.near(sessionUsageLimitPercent(summary.fraction ?? 0), amount),
|
|
1154
|
-
summary.stale ? ` ${labels.staleNote}` : ""
|
|
1155
|
-
] }) }),
|
|
1156
|
-
action,
|
|
1157
|
-
!reached ? /* @__PURE__ */ jsx4(
|
|
1158
|
-
"button",
|
|
1159
|
-
{
|
|
1160
|
-
type: "button",
|
|
1161
|
-
"aria-label": labels.dismiss,
|
|
1162
|
-
onClick: dismiss,
|
|
1163
|
-
className: "-mt-0.5 -mr-1 grid size-6 shrink-0 place-items-center rounded-og-sm text-og-fg-subtle transition hover:bg-og-surface-2 hover:text-og-fg focus-visible:outline-2 focus-visible:outline-og-accent pointer-coarse:size-9",
|
|
1164
|
-
children: /* @__PURE__ */ jsx4(XIcon2, { "aria-hidden": true, className: "size-3.5" })
|
|
1165
|
-
}
|
|
1166
|
-
) : null
|
|
1167
|
-
]
|
|
1168
|
-
}
|
|
1169
|
-
);
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
export {
|
|
1173
|
-
summarizeUsage,
|
|
1174
|
-
usagePercentLabel,
|
|
1175
|
-
useUsage,
|
|
1176
|
-
DEFAULT_USAGE_METER_LABELS,
|
|
1177
|
-
UsageMeter,
|
|
1178
|
-
UsageMeterView,
|
|
1179
|
-
DEFAULT_USAGE_LIMIT_NOTICE_LABELS,
|
|
1180
|
-
UsageLimitNotice,
|
|
1181
|
-
UsageLimitNoticeView,
|
|
1182
|
-
DEFAULT_USAGE_MEMBER_LIST_LABELS,
|
|
1183
|
-
describeMemberLimit,
|
|
1184
|
-
UsageMemberList,
|
|
1185
|
-
SessionUsageLimitNotice
|
|
1186
|
-
};
|
|
1187
|
-
//# sourceMappingURL=chunk-NWGNFN3N.js.map
|