@opengeni/react 6.37.3 → 6.37.4-canary.45279257475001
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.js +32 -32
- package/dist/app/components/Composer.css +1 -1
- package/dist/app/components/Composer.css.map +1 -1
- package/dist/app/components/Composer.js +44 -43
- package/dist/app/components/add-card-dialog.js +3 -2
- package/dist/app/components/add-card-dialog.js.map +1 -1
- package/dist/app/components/add-card.js +3 -3
- package/dist/app/components/agent/agent-capability-picker.js +9 -9
- package/dist/app/components/agents/agent-can-use.js +48 -47
- package/dist/app/components/agents/agent-form-page.js +143 -142
- package/dist/app/components/agents/agent-form-page.js.map +1 -1
- package/dist/app/components/agents/agent-page.js +124 -123
- package/dist/app/components/agents/agent-setup-sections.js +78 -77
- package/dist/app/components/agents/agent-skills.js +14 -13
- package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
- package/dist/app/components/agents/agent-trigger-dialog.js +34 -33
- package/dist/app/components/agents/agent-trigger-picker.js +8 -8
- package/dist/app/components/agents/agent-trigger-repositories.js +16 -16
- package/dist/app/components/agents/agents-page.js +96 -95
- package/dist/app/components/agents/agents-page.js.map +1 -1
- package/dist/app/components/agents/composer-agent-chip.js +60 -59
- package/dist/app/components/agents/session-agent-chip.js +55 -54
- package/dist/app/components/artifacts/app-package.js +13 -12
- package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
- package/dist/app/components/artifacts/artifact-library.js +29 -28
- package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
- package/dist/app/components/artifacts/artifact-viewer.js +67 -66
- package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
- package/dist/app/components/artifacts/chat-interactive-block.js +30 -29
- package/dist/app/components/artifacts/chat-interactive-block.js.map +1 -1
- package/dist/app/components/artifacts/copy-artifact-link.js +2 -2
- package/dist/app/components/artifacts/file-reach-dialog.js +13 -12
- package/dist/app/components/artifacts/inline-chat-image.js +52 -51
- package/dist/app/components/artifacts/ready-made-apps.js +13 -12
- package/dist/app/components/artifacts/retained-file-preview.js +58 -57
- package/dist/app/components/artifacts/retained-text-preview.js +8 -8
- package/dist/app/components/artifacts/site-actions.js +12 -12
- package/dist/app/components/artifacts/site-audience.js +9 -8
- package/dist/app/components/artifacts/site-conversations.js +35 -35
- package/dist/app/components/artifacts/site-data.js +27 -26
- package/dist/app/components/artifacts/site-public-link.js +3 -3
- package/dist/app/components/artifacts/site-publishing-page.js +69 -68
- package/dist/app/components/artifacts/site-publishing.js +54 -53
- package/dist/app/components/artifacts/site-settings.js +68 -67
- package/dist/app/components/artifacts/site-version-menu.js +10 -10
- package/dist/app/components/billing-class-mark.js +7 -7
- package/dist/app/components/capabilities/capability-detail-sheet.js +18 -17
- package/dist/app/components/capabilities/capability-logo-source.js +29 -28
- package/dist/app/components/capabilities/capability-logo.js +1 -1
- package/dist/app/components/capabilities/connection-account-picker.js +2 -2
- package/dist/app/components/capabilities/connection-ownership-selector.js +4 -3
- package/dist/app/components/capabilities/connector-tool-permissions.js +8 -8
- package/dist/app/components/capabilities/detail-dialog.js +3 -2
- package/dist/app/components/capabilities/native-connect-setup.js +32 -31
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +6 -6
- package/dist/app/components/capabilities/perform-capability-action.js +2 -2
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +32 -31
- package/dist/app/components/capabilities/session-capability-card.css +1 -1
- package/dist/app/components/capabilities/session-capability-card.css.map +1 -1
- package/dist/app/components/capabilities/session-capability-card.js +136 -135
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.css +1 -1
- package/dist/app/components/capabilities/session-chrome-card.css.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +49 -48
- package/dist/app/components/capabilities/session-connect-inputs-card.js +34 -33
- package/dist/app/components/capabilities/session-custom-mcp-card.js +39 -38
- package/dist/app/components/capabilities/session-github-card.js +45 -44
- package/dist/app/components/capabilities/session-machine-card.css +1 -1
- package/dist/app/components/capabilities/session-machine-card.css.map +1 -1
- package/dist/app/components/capabilities/session-machine-card.js +50 -49
- package/dist/app/components/capabilities/session-personal-github-card.js +33 -32
- package/dist/app/components/capabilities/session-plugin-card.js +21 -20
- package/dist/app/components/capabilities/use-capabilities-catalog.js +1 -1
- package/dist/app/components/capabilities/use-connection-accounts.js +2 -2
- package/dist/app/components/chat-payment-pages.js +2 -2
- package/dist/app/components/command-menu/chat-status.js +26 -26
- package/dist/app/components/command-menu/chat-switcher.js +87 -86
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
- package/dist/app/components/command-menu/command-menu.js +332 -330
- package/dist/app/components/command-menu/command-menu.js.map +1 -1
- package/dist/app/components/command-menu/shortcut-sheet.js +27 -26
- package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
- package/dist/app/components/composer-capabilities-menu-body.js +7 -7
- package/dist/app/components/composer-mobile-plus-panel.js +29 -28
- package/dist/app/components/composer-mobile-plus-panel.js.map +1 -1
- package/dist/app/components/composer-mobile-plus.js +5 -4
- package/dist/app/components/credit-required-gate.js +7 -7
- package/dist/app/components/credit-required-prompt.js +25 -24
- package/dist/app/components/credit-required-prompt.js.map +1 -1
- package/dist/app/components/credits/checkout-credits-celebration.js +4 -3
- package/dist/app/components/credits/checkout-return.js +4 -3
- package/dist/app/components/credits/checkout-return.js.map +1 -1
- package/dist/app/components/credits/coupon-redeem.js +1 -1
- package/dist/app/components/credits/credit-refusal-notice.js +7 -7
- package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
- package/dist/app/components/desktop/app-shots.css +1 -1
- package/dist/app/components/desktop/app-shots.css.map +1 -1
- package/dist/app/components/desktop/app-shots.js +10 -9
- package/dist/app/components/desktop/app-update.js +3 -3
- package/dist/app/components/desktop/computer-use.js +3 -3
- package/dist/app/components/desktop/this-computer.css +1 -1
- package/dist/app/components/desktop/this-computer.css.map +1 -1
- package/dist/app/components/desktop/this-computer.js +7 -6
- package/dist/app/components/feedback.js +11 -10
- package/dist/app/components/follow-up-repository-menu-body.js +13 -13
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +3 -3
- package/dist/app/components/in-app-help-link.js +3 -3
- package/dist/app/components/knowledge/agent-learning-settings.js +3 -3
- package/dist/app/components/machines/connect-machine-dialog.css +1 -1
- package/dist/app/components/machines/connect-machine-dialog.css.map +1 -1
- package/dist/app/components/machines/connect-machine-dialog.js +25 -24
- package/dist/app/components/manual-repository-editor.js +3 -3
- package/dist/app/components/markdown.js +16 -15
- package/dist/app/components/model-identity.js +3 -3
- package/dist/app/components/models/models-ui.js +17 -16
- package/dist/app/components/models/provider-mark.js +3 -3
- package/dist/app/components/models/subscription-usage.js +5 -5
- package/dist/app/components/my-things.js +16 -15
- package/dist/app/components/my-things.js.map +1 -1
- package/dist/app/components/own-where-it-works.js +11 -10
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +11 -11
- package/dist/app/components/rail/channel-create-dialog.js +7 -6
- package/dist/app/components/rail/project-glyph.js +53 -52
- package/dist/app/components/rail/project-profile.js +74 -73
- package/dist/app/components/rail/rail-context.js +2 -2
- package/dist/app/components/rail/rail-sections.js +155 -154
- package/dist/app/components/rail/session-header.js +125 -124
- package/dist/app/components/rail/session-list.js +152 -151
- package/dist/app/components/rail/session-row-content.js +6 -6
- package/dist/app/components/rail/session-row-hover-details.js +36 -36
- package/dist/app/components/rail/session-shell.js +192 -191
- package/dist/app/components/rail/site-session-group-heading.js +36 -36
- package/dist/app/components/repository-picker.js +13 -13
- package/dist/app/components/secrets/session-secrets-panel.js +4 -4
- package/dist/app/components/session/agent-configuration-panel.js +45 -44
- package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
- package/dist/app/components/session/artifact-session-page.js +7 -7
- package/dist/app/components/session/banners.js +20 -19
- package/dist/app/components/session/chat-avatar.js +53 -52
- package/dist/app/components/session/console-new-conversation.css +1 -1
- package/dist/app/components/session/console-new-conversation.css.map +1 -1
- package/dist/app/components/session/console-new-conversation.js +110 -109
- package/dist/app/components/session/descendant-requests.js +110 -109
- package/dist/app/components/session/descendant-requests.js.map +1 -1
- package/dist/app/components/session/editable-artifacts-workspace.js +60 -59
- package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
- package/dist/app/components/session/failed-session-banner.js +29 -28
- 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 +3 -3
- package/dist/app/components/session/human-input.js +88 -87
- package/dist/app/components/session/inspector.js +146 -145
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/linked-panel.js +3 -3
- package/dist/app/components/session/message-actions.js +11 -10
- package/dist/app/components/session/message-actions.js.map +1 -1
- package/dist/app/components/session/model-recovery-notice.js +4 -4
- package/dist/app/components/session/new-session-settings-menu.css +1 -1
- package/dist/app/components/session/new-session-settings-menu.css.map +1 -1
- package/dist/app/components/session/new-session-settings-menu.js +30 -29
- package/dist/app/components/session/new-session-setup-strip.js +56 -55
- package/dist/app/components/session/pull-request-panel.js +25 -24
- package/dist/app/components/session/sandbox-recovery-actions.js +5 -4
- package/dist/app/components/session/sandbox-switcher.js +22 -22
- package/dist/app/components/session/sandbox-workspace.js +120 -119
- package/dist/app/components/session/search-markdown-highlight.js +17 -16
- package/dist/app/components/session/search-results-view.js +18 -17
- package/dist/app/components/session/session-admin-access.js +14 -13
- package/dist/app/components/session/session-admission-notice.js +11 -11
- package/dist/app/components/session/session-avatar-picker.js +60 -59
- package/dist/app/components/session/session-avatar.js +55 -54
- package/dist/app/components/session/session-machine-access-notice.js +11 -11
- package/dist/app/components/session/session-profile-dialog.js +71 -70
- package/dist/app/components/session/session-profile-editor.js +72 -71
- package/dist/app/components/session/session-retention.js +6 -6
- package/dist/app/components/session/session-search-dialog.js +21 -20
- package/dist/app/components/session/session-search-dialog.js.map +1 -1
- package/dist/app/components/session/session-skill-reviews.js +5 -5
- package/dist/app/components/session/session-tenancy-control.js +32 -31
- package/dist/app/components/session/session-tenancy-control.js.map +1 -1
- package/dist/app/components/session/session-unattended-setting.js +1 -1
- package/dist/app/components/session/session-usage-limit-section.js +11 -11
- package/dist/app/components/session/share-chat-dialog.js +11 -10
- package/dist/app/components/session/subagents.js +23 -23
- package/dist/app/components/session/subscription-account-indicator.js +25 -25
- package/dist/app/components/session/subscription-account-menu.js +7 -7
- package/dist/app/components/session-connectors-menu-body.js +10 -10
- package/dist/app/components/settings/row-select.js +6 -6
- package/dist/app/components/toaster.js +2 -2
- package/dist/app/components/transcription-settings.js +10 -10
- package/dist/app/components/ui/destructive-confirm.js +11 -10
- package/dist/app/components/usage/usage-entry.js +8 -8
- package/dist/app/components/window-bar.js +26 -26
- package/dist/app/components/workspace-composer-plus.js +44 -43
- package/dist/app/components/workspace-reach.js +6 -6
- package/dist/app/embed/session-app.css +1 -1
- package/dist/app/embed/session-app.css.map +1 -1
- package/dist/app/embed/session-app.js +388 -387
- package/dist/app/lib/actions/actions-provider.js +19 -19
- package/dist/app/lib/agent-capabilities.js +4 -4
- package/dist/app/lib/app-connect-card.js +15 -14
- package/dist/app/lib/app-shared-key-dialog.js +9 -8
- package/dist/app/lib/app-surfaces.js +2 -2
- package/dist/app/lib/app-sync-opt-in.js +6 -5
- package/dist/app/lib/codex-usage-query.js +3 -3
- package/dist/app/lib/composer-agent.js +2 -2
- package/dist/app/lib/composer-connectors.js +33 -32
- package/dist/app/lib/composer-send-blocking.js +2 -2
- package/dist/app/lib/console-site.js +8 -7
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +30 -29
- package/dist/app/lib/failed-session-copy.js +5 -5
- package/dist/app/lib/feedback-capture.js +2 -2
- package/dist/app/lib/model-access-onboarding.js +4 -4
- package/dist/app/lib/move-chat-to-machine.js +5 -5
- package/dist/app/lib/personal-resource-attachments.js +1 -1
- package/dist/app/lib/session-branch-cache.js +19 -19
- package/dist/app/lib/session-create.js +5 -5
- package/dist/app/lib/session-group-pagination.js +19 -19
- package/dist/app/lib/session-hover-facts.js +26 -26
- package/dist/app/lib/session-list-dirty-scopes.js +20 -20
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +16 -16
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/sessions-group.js +23 -23
- package/dist/app/lib/site-tool-consent-dialog.js +25 -24
- 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/turn-failure-analytics.js +6 -6
- package/dist/app/lib/use-artifact-catalog.js +2 -2
- package/dist/app/lib/use-duplicate-site.js +5 -5
- package/dist/app/lib/use-follow-up-repositories.js +7 -6
- package/dist/app/lib/use-personal-resource-attachment.js +2 -2
- package/dist/app/lib/use-workspace-machines.js +9 -9
- package/dist/app/lib/use-workspace-model-catalog.js +5 -5
- package/dist/app/lib/use-workspace-rigs.js +6 -6
- package/dist/app/lib/workspace-navigation-preference.js +5 -5
- package/dist/app/lib/workspace-scope-context.js +4 -4
- package/dist/app/routes/app-page-view.js +22 -21
- package/dist/app/routes/app-page-view.js.map +1 -1
- package/dist/app/routes/app-page.js +2 -2
- package/dist/app/routes/artifacts.js +153 -152
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +106 -105
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +6 -6
- package/dist/app/routes/session.css +1 -1
- package/dist/app/routes/session.css.map +1 -1
- package/dist/app/routes/session.js +246 -245
- package/dist/app/routes/sessions-index-hydration.js +6 -6
- package/dist/app/routes/sessions-index.css +1 -1
- package/dist/app/routes/sessions-index.css.map +1 -1
- package/dist/app/routes/sessions-index.js +202 -201
- package/dist/app/routes/site-view.css +1 -1
- package/dist/app/routes/site-view.css.map +1 -1
- package/dist/app/routes/site-view.js +195 -194
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +9 -8
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +51 -50
- package/dist/automation-model.js +6 -6
- package/dist/automations.js +71 -70
- package/dist/automations.js.map +1 -1
- package/dist/browser-viewer-O5FJOWWI.js +23 -0
- package/dist/chat-interactive-block-TQTOUHRC.js +22 -0
- package/dist/chunk-23TTCFRP.js +3690 -0
- package/dist/chunk-2BOFLWNJ.js +129 -0
- package/dist/chunk-2NO5QJCL.js +438 -0
- package/dist/chunk-2NO5QJCL.js.map +1 -0
- package/dist/chunk-3DMD2KHT.js +851 -0
- package/dist/chunk-3DOISS3I.js +132 -0
- package/dist/chunk-3KWTXE4O.js +199 -0
- package/dist/chunk-3TRERIPD.js +93 -0
- package/dist/chunk-3UXBTL7Z.js +92 -0
- package/dist/chunk-3XEKXNB4.js +283 -0
- package/dist/chunk-3ZJUQG4K.js +428 -0
- package/dist/chunk-42WTAUUW.js +335 -0
- package/dist/chunk-46ZC5VNC.js +38 -0
- package/dist/chunk-4BVEFGX7.js +166 -0
- package/dist/chunk-4IOFV4S4.js +401 -0
- package/dist/chunk-4ISXBLJV.js +137 -0
- package/dist/chunk-4L2MBYLH.js +283 -0
- package/dist/chunk-4N3B25HA.js +850 -0
- package/dist/chunk-4N3B25HA.js.map +1 -0
- package/dist/chunk-4NWUZ6SL.js +176 -0
- package/dist/chunk-4QVX6CTT.js +318 -0
- package/dist/chunk-4YARO4Y5.js +2984 -0
- package/dist/chunk-4Z7BPBS7.js +34 -0
- package/dist/chunk-55ILMX6B.js +794 -0
- package/dist/chunk-57OAQTWD.js +103 -0
- package/dist/chunk-5BRPLALX.js +380 -0
- package/dist/chunk-5BRPLALX.js.map +1 -0
- package/dist/chunk-5EF4JI6Q.js +214 -0
- package/dist/chunk-5EF4JI6Q.js.map +1 -0
- package/dist/chunk-5GXX3NI7.js +46 -0
- package/dist/chunk-5VE3PPSK.js +353 -0
- package/dist/chunk-62T2ZPD5.js +266 -0
- package/dist/chunk-655JT4VH.js +251 -0
- package/dist/chunk-65OPNLE4.js +505 -0
- package/dist/chunk-67PIP46J.js +229 -0
- package/dist/chunk-6CAK65QV.js +211 -0
- package/dist/chunk-6CDBX3XG.js +33 -0
- package/dist/chunk-6D3D2JWY.js +278 -0
- package/dist/chunk-6DGQB6GT.js +107 -0
- package/dist/chunk-6NFK3J2O.js +188 -0
- package/dist/chunk-6R3QX3AC.js +538 -0
- package/dist/chunk-6S5OMLAL.js +400 -0
- package/dist/chunk-6SG2VVVB.js +249 -0
- package/dist/chunk-6U57GGJI.js +110 -0
- package/dist/chunk-6V2PEFPS.js +98 -0
- package/dist/chunk-6VASZZVV.js +3321 -0
- package/dist/chunk-7BBYH5R5.js +168 -0
- package/dist/chunk-7EO3T3IX.js +209 -0
- package/dist/chunk-7EZQ6EKM.js +158 -0
- package/dist/chunk-7HI53NPP.js +15 -0
- package/dist/chunk-7J4BFENI.js +37 -0
- package/dist/chunk-7LSGNY2L.js +114 -0
- package/dist/chunk-7MMONDFK.js +1236 -0
- package/dist/chunk-7MWPBGDX.js +175 -0
- package/dist/chunk-7NSDIQMY.js +371 -0
- package/dist/chunk-7XPDLT5G.js +231 -0
- package/dist/chunk-A3BCF4MV.js +378 -0
- package/dist/chunk-A5GX3CAE.js +849 -0
- package/dist/chunk-AAHQJWEP.js +515 -0
- package/dist/chunk-AAWEPZOG.js +144 -0
- package/dist/chunk-ABRT345L.js +598 -0
- package/dist/chunk-AJ7KJ7XZ.js +4519 -0
- package/dist/chunk-AJ7KJ7XZ.js.map +1 -0
- package/dist/chunk-ANXFE2EP.js +91 -0
- package/dist/chunk-AQNE4XWU.js +271 -0
- package/dist/chunk-AV2OMWDS.js +4979 -0
- package/dist/chunk-AYHMHAU5.js +1019 -0
- package/dist/chunk-AZ637XK3.js +50 -0
- package/dist/chunk-B6AH43UQ.js +2434 -0
- package/dist/chunk-BBECLK22.js +383 -0
- package/dist/chunk-BWYPJG3P.js +158 -0
- package/dist/chunk-CI7F4Y26.js +396 -0
- package/dist/chunk-CNLSXEQC.js +931 -0
- package/dist/chunk-COCB4HE3.js +65 -0
- package/dist/chunk-CPEVLG3B.js +357 -0
- package/dist/chunk-CRHH5C6Z.js +5920 -0
- package/dist/chunk-CRHH5C6Z.js.map +1 -0
- package/dist/chunk-CVC4RO7D.js +155 -0
- package/dist/chunk-CY6RLRHJ.js +3110 -0
- package/dist/chunk-D3WLSMCL.js +117 -0
- package/dist/chunk-D7SSOJEU.js +178 -0
- package/dist/chunk-DBOD5WXT.js +818 -0
- package/dist/chunk-DFWSRIFL.js +162 -0
- package/dist/chunk-DITZUBOK.js +126 -0
- package/dist/chunk-DKD2ZZSJ.js +287 -0
- package/dist/chunk-DOJWHSRD.js +246 -0
- package/dist/chunk-DR6LZXJI.js +187 -0
- package/dist/chunk-DV73XOVB.js +650 -0
- package/dist/chunk-DYO7DNDD.js +316 -0
- package/dist/chunk-DYZASWWT.js +234 -0
- package/dist/chunk-EAJHD44A.js +573 -0
- package/dist/chunk-EAJHD44A.js.map +1 -0
- package/dist/chunk-EC5HUNXI.js +1263 -0
- package/dist/chunk-ECQ7FV3E.js +247 -0
- package/dist/chunk-ECVCSZWY.js +406 -0
- package/dist/chunk-EMXO5HCY.js +333 -0
- package/dist/chunk-ENJX5TAA.js +265 -0
- package/dist/chunk-EQSYPIAI.js +66 -0
- package/dist/chunk-EV73XMK3.js +1152 -0
- package/dist/chunk-F2SGC74A.js +2553 -0
- package/dist/chunk-F3LIUDXN.js +738 -0
- package/dist/chunk-F3LIUDXN.js.map +1 -0
- package/dist/chunk-F5ABIEWA.js +1029 -0
- package/dist/chunk-F5ABIEWA.js.map +1 -0
- package/dist/chunk-F5DEBD4D.js +230 -0
- package/dist/chunk-F6JJBUQ2.js +566 -0
- package/dist/chunk-FEVZDJOZ.js +1024 -0
- package/dist/chunk-FF22IUY3.js +121 -0
- package/dist/chunk-FILRDNUQ.js +256 -0
- package/dist/chunk-FLB3BP2E.js +227 -0
- package/dist/chunk-FZVMMHPC.js +639 -0
- package/dist/chunk-G6D5NVWM.js +112 -0
- package/dist/chunk-GGH5STTP.js +192 -0
- package/dist/chunk-GGHX6GS7.js +187 -0
- package/dist/chunk-GIHE7U3Y.js +174 -0
- package/dist/chunk-GO5VIAA7.js +264 -0
- package/dist/chunk-GSK637QS.js +27 -0
- package/dist/chunk-HBYO34CP.js +56 -0
- package/dist/chunk-HFROJDFQ.js +118 -0
- package/dist/chunk-HGEDFQ7G.js +251 -0
- package/dist/chunk-HH3QTFGV.js +1356 -0
- package/dist/chunk-HHFFPE67.js +220 -0
- package/dist/chunk-HHYTB5OL.js +246 -0
- package/dist/chunk-HPKWAHHI.js +48 -0
- package/dist/chunk-HSPOCEGP.js +373 -0
- package/dist/chunk-IC74VN2I.js +608 -0
- package/dist/chunk-ICSQO2CV.js +1021 -0
- package/dist/chunk-IEZE7SL6.js +3070 -0
- package/dist/chunk-IGHNTARW.js +170 -0
- package/dist/chunk-IKYS56PQ.js +138 -0
- package/dist/chunk-IO474NRY.js +56 -0
- package/dist/chunk-IP2CCFAV.js +723 -0
- package/dist/chunk-IT5GF54F.js +3851 -0
- package/dist/chunk-IX67G5FD.js +270 -0
- package/dist/chunk-IXNJK7KJ.js +292 -0
- package/dist/chunk-IZWTARYT.js +276 -0
- package/dist/chunk-JBV2HY43.js +108 -0
- package/dist/chunk-JE62XK5K.js +33 -0
- package/dist/chunk-JFAWCALM.js +85 -0
- package/dist/chunk-JQGPATQZ.js +83 -0
- package/dist/chunk-JYZGX5UZ.js +274 -0
- package/dist/chunk-K227GMSM.js +72 -0
- package/dist/chunk-KB2O7JIJ.js +449 -0
- package/dist/chunk-KT6GC67G.js +12 -0
- package/dist/chunk-KTGKGHEA.js +75 -0
- package/dist/chunk-KU77XHWB.js +285 -0
- package/dist/chunk-KZIRVLCM.js +175 -0
- package/dist/chunk-L3DUSTRN.js +259 -0
- package/dist/chunk-L6WVCO6D.js +61 -0
- package/dist/chunk-L7PCZEEG.js +79 -0
- package/dist/chunk-LEN2DVU6.js +311 -0
- package/dist/chunk-LGOQW2CE.js +191 -0
- package/dist/chunk-LK2JO72Y.js +389 -0
- package/dist/chunk-LSJPFW34.js +3996 -0
- package/dist/chunk-LSJPFW34.js.map +1 -0
- package/dist/chunk-LXLHIOJM.js +584 -0
- package/dist/chunk-LYQQ4VBE.js +1333 -0
- package/dist/chunk-M22ZHQ7S.js +1628 -0
- package/dist/chunk-M5RKFV6K.js +20 -0
- package/dist/chunk-MCPKUVMQ.js +99 -0
- package/dist/chunk-MDGNCUAC.js +145 -0
- package/dist/chunk-MFLU3466.js +99 -0
- package/dist/chunk-MIUJ3EH5.js +60 -0
- package/dist/chunk-MO3XJQN2.js +629 -0
- package/dist/chunk-MTHAYXDH.js +107 -0
- package/dist/chunk-MVYQDBE6.js +79 -0
- package/dist/chunk-NA7VZQPL.js +307 -0
- package/dist/chunk-ND6FWOSO.js +2431 -0
- package/dist/chunk-NGTCSS53.js +24 -0
- package/dist/chunk-NGTCSS53.js.map +1 -0
- package/dist/chunk-NIFPH34L.js +351 -0
- package/dist/chunk-NKYC6WHQ.js +103 -0
- package/dist/chunk-NML7VKLU.js +391 -0
- package/dist/chunk-NPAWLKJB.js +41 -0
- package/dist/chunk-NQSKI2YD.js +1185 -0
- package/dist/chunk-NXQFBC22.js +114 -0
- package/dist/chunk-NXRZMHVM.js +43 -0
- package/dist/chunk-NYU5DE4K.js +1309 -0
- package/dist/chunk-O2EEYPIZ.js +48 -0
- package/dist/chunk-O4TOEISQ.js +67 -0
- package/dist/chunk-O533L2TG.js +129 -0
- package/dist/chunk-O664PL2U.js +47 -0
- package/dist/chunk-O664PL2U.js.map +1 -0
- package/dist/chunk-ON6ZGJDW.js +532 -0
- package/dist/chunk-OPELE3Z4.js +311 -0
- package/dist/chunk-OTSUC6PP.js +234 -0
- package/dist/chunk-OXM267RC.js +128 -0
- package/dist/chunk-OXM267RC.js.map +1 -0
- package/dist/chunk-OZNL5OKT.js +1184 -0
- package/dist/chunk-P3PDKPLK.js +432 -0
- package/dist/chunk-PCZBYN2H.js +372 -0
- package/dist/chunk-PIPXXQFV.js +57 -0
- package/dist/chunk-PMUZUPPE.js +131 -0
- package/dist/chunk-PN52EIFV.js +113 -0
- package/dist/chunk-PPQJIVGM.js +175 -0
- package/dist/chunk-PQYFOTNI.js +469 -0
- package/dist/chunk-PUX4YJAW.js +1095 -0
- package/dist/chunk-PYMQM65Y.js +125 -0
- package/dist/chunk-Q5UO7GT5.js +404 -0
- package/dist/chunk-QA5UNVHD.js +85 -0
- package/dist/chunk-QDZR7FXG.js +215 -0
- package/dist/chunk-QNOWKKZ4.js +40 -0
- package/dist/chunk-QUXQYYZO.js +73 -0
- package/dist/chunk-QVOTPOXK.js +29 -0
- package/dist/chunk-R2DSOIME.js +772 -0
- package/dist/chunk-RFQQXXJ6.js +366 -0
- package/dist/chunk-RLWI34XM.js +27 -0
- package/dist/chunk-RMWCGSEP.js +124 -0
- package/dist/chunk-ROTEQD2Z.js +441 -0
- package/dist/chunk-RPCWZFP7.js +296 -0
- package/dist/chunk-RW5QRWVI.js +141 -0
- package/dist/chunk-RZZHOHL6.js +5089 -0
- package/dist/chunk-S5STZCBZ.js +133 -0
- package/dist/chunk-SD4A5P24.js +1803 -0
- package/dist/chunk-SJM4TCWJ.js +197 -0
- package/dist/chunk-SJXK56WZ.js +905 -0
- package/dist/chunk-SJXK56WZ.js.map +1 -0
- package/dist/chunk-SQYTYXR4.js +100 -0
- package/dist/chunk-SRDHDIRQ.js +177 -0
- package/dist/chunk-SVC674IM.js +263 -0
- package/dist/chunk-SYYFA7W7.js +23 -0
- package/dist/chunk-T2UUHB7V.js +1187 -0
- package/dist/chunk-TBOH54QP.js +298 -0
- package/dist/chunk-TG2GO424.js +196 -0
- package/dist/chunk-TOJNLC42.js +107 -0
- package/dist/chunk-TW75KM7T.js +412 -0
- package/dist/chunk-TWWAPJYE.js +26 -0
- package/dist/chunk-UARZCGWU.js +202 -0
- package/dist/chunk-UCNTAS2U.js +2580 -0
- package/dist/chunk-UD7IARSL.js +162 -0
- package/dist/chunk-UDKZKGUQ.js +379 -0
- package/dist/chunk-UEUYUUZA.js +3183 -0
- package/dist/chunk-UEUYUUZA.js.map +1 -0
- package/dist/chunk-UJRSZ6ZB.js +391 -0
- package/dist/chunk-UTM23O3G.js +50 -0
- package/dist/chunk-UUJSS56V.js +4570 -0
- package/dist/chunk-UWSF733U.js +42 -0
- package/dist/chunk-V4ZYJWU3.js +386 -0
- package/dist/chunk-VEIT2EGK.js +207 -0
- package/dist/chunk-VGG6DOTN.js +172 -0
- package/dist/chunk-VGSGAQJX.js +82 -0
- package/dist/chunk-VHK5CBIG.js +2317 -0
- package/dist/chunk-VLA2DTYG.js +154 -0
- package/dist/chunk-VSN6XKZ5.js +278 -0
- package/dist/chunk-VW6TOTDQ.js +111 -0
- package/dist/chunk-W3HKBWPM.js +406 -0
- package/dist/chunk-WDYM5SFM.js +73 -0
- package/dist/chunk-WJ4AZ2AR.js +2551 -0
- package/dist/chunk-WMQHP4E3.js +214 -0
- package/dist/chunk-WP5A6F6P.js +269 -0
- package/dist/chunk-WUR2DYJX.js +527 -0
- package/dist/chunk-WUR2DYJX.js.map +1 -0
- package/dist/chunk-WWQH3L6M.js +407 -0
- package/dist/chunk-WYIC3CXE.js +157 -0
- package/dist/chunk-WYIC3CXE.js.map +1 -0
- package/dist/chunk-X3T6ULUZ.js +297 -0
- package/dist/chunk-XA32OUL4.js +52 -0
- package/dist/chunk-XCICIQIE.js +113 -0
- package/dist/chunk-XHRIUCBD.js +138 -0
- package/dist/chunk-XJBWVT5X.js +1177 -0
- package/dist/chunk-XKQRWJFE.js +270 -0
- package/dist/chunk-XN3EVUB5.js +134 -0
- package/dist/chunk-XT6GBN2G.js +828 -0
- package/dist/chunk-XYVDTM4D.js +184 -0
- package/dist/chunk-XZO5X3KH.js +84 -0
- package/dist/chunk-Y34DIEOG.js +201 -0
- package/dist/chunk-YAIYUFCX.js +114 -0
- package/dist/chunk-YFLRBEDS.js +200 -0
- package/dist/chunk-YIKMBS4B.js +10053 -0
- package/dist/chunk-YIKMBS4B.js.map +1 -0
- package/dist/chunk-YQX227EF.js +403 -0
- package/dist/chunk-YVAB57JZ.js +340 -0
- package/dist/chunk-YWHSODBB.js +250 -0
- package/dist/chunk-YWJHCJQW.js +218 -0
- package/dist/chunk-Z37DSW2K.js +570 -0
- package/dist/chunk-ZELN2B72.js +399 -0
- package/dist/chunk-ZFGGR2JW.js +236 -0
- package/dist/chunk-ZL7SEED7.js +773 -0
- package/dist/composer.js +37 -36
- package/dist/computer-viewer-CNYFTUGF.js +21 -0
- package/dist/connect.js +31 -30
- package/dist/connection-step-up-EZRZW2LY.js +147 -0
- package/dist/connection-step-up-EZRZW2LY.js.map +1 -0
- package/dist/desktop-dictation.js +24 -24
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-A56WDECM.js +25 -0
- package/dist/embedded-voice-CBTSMIWW.js +25 -0
- package/dist/fleet-decision-row-6PQTGI2U.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +299 -298
- package/dist/interaction.js +9 -9
- package/dist/latest-question-F3VPDR7U.js +1 -1
- package/dist/lib/modal-layer.d.ts +11 -0
- package/dist/machine-request-model.js +1 -1
- package/dist/machines.js +8 -8
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +117 -116
- package/dist/meetings.js.map +1 -1
- package/dist/messages/en.d.ts +1 -0
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-ZU72JATS.js +23 -0
- package/dist/payment-page-card-5VEUANFD.js +227 -0
- package/dist/payment-page-card-5VEUANFD.js.map +1 -0
- package/dist/platform-activity-row-5IQT6R5Z.js +156 -0
- package/dist/queue-surface-implementation-TPCJ4R6N.js +933 -0
- package/dist/queue-surface-implementation-TPCJ4R6N.js.map +1 -0
- package/dist/realtime.js +17 -17
- package/dist/recorder-host-G5M676VM.js +80 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-HCXOP6ZO.js +29 -0
- package/dist/session-app.css +1 -1
- package/dist/session-app.css.map +1 -1
- package/dist/session-app.js +388 -387
- package/dist/session-connect-cards-MYJRQWSA.js +28 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-YFVGQFJK.js +30 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +96 -95
- package/dist/session.js +42 -42
- package/dist/sites.js +3 -3
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +4 -3
- package/dist/timeline-annotation-markers-5ELTFV5B.js +157 -0
- package/dist/timeline-annotation-selection-XHUOFRIY.js +208 -0
- package/dist/timeline-annotations-dialog-X2VNDYZ4.js +283 -0
- package/dist/timeline-model.js +58 -58
- package/dist/ui/access-list.js +24 -23
- package/dist/ui/access-list.js.map +1 -1
- package/dist/ui/cadence-picker.js +7 -7
- package/dist/ui/choice-cards.js +3 -3
- package/dist/ui/confirm-dialog.js +4 -3
- package/dist/ui/copy-field.js +3 -3
- package/dist/ui/detail-page.js +6 -5
- package/dist/ui/detail-sheet.js +6 -5
- package/dist/ui/dialog.js +2 -1
- package/dist/ui/diff-view.js +3 -3
- package/dist/ui/disclosure.js +7 -6
- package/dist/ui/email-chips-input.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/flush-form-page.js +8 -7
- package/dist/ui/form-dialog.js +7 -6
- package/dist/ui/list-row.js +6 -6
- package/dist/ui/load-failure.js +3 -3
- package/dist/ui/relative-time.js +3 -3
- package/dist/ui/revision-history.js +13 -13
- package/dist/ui/role-select.js +12 -11
- package/dist/ui/select-menu.js +5 -5
- package/dist/ui/settings-nav.js +6 -6
- package/dist/ui/sheet.js +3 -2
- package/dist/ui/usage-meter.js +4 -4
- package/dist/usage.js +3 -3
- package/dist/workbench.js +11 -11
- package/package.json +6 -5
- package/src/app/components/command-menu/command-menu.tsx +232 -228
- package/src/components/automations/automation-model.ts +1 -0
- package/src/components/file-browser.tsx +69 -64
- package/src/components/session-capability-frame.tsx +36 -34
- package/src/components/this-computer/this-computer-setup.tsx +36 -29
- package/src/lib/modal-layer.tsx +33 -0
- package/src/messages/en.ts +1 -0
- package/src/timeline/screenshot-lightbox.tsx +137 -128
- package/src/ui/detail-sheet.tsx +44 -40
- package/src/ui/dialog.tsx +39 -35
- package/src/ui/form-dialog-layer.test.tsx +4 -3
- package/src/ui/form-dialog.tsx +28 -26
- package/src/ui/sheet.tsx +36 -46
- package/styles/compiled.css +57 -12
- package/styles/index.css +19 -0
- package/styles/this-computer.css +1 -1
- package/dist/browser-viewer-J6O65JXH.js +0 -23
- package/dist/chat-interactive-block-R5JEJYMR.js +0 -22
- package/dist/chunk-236GMLCR.js +0 -50
- package/dist/chunk-24S44WBL.js +0 -200
- package/dist/chunk-27HN57HE.js +0 -274
- package/dist/chunk-2FLGURHP.js +0 -297
- package/dist/chunk-2SH6CLOR.js +0 -378
- package/dist/chunk-2XZ3EUSP.js +0 -505
- package/dist/chunk-2ZC62PY4.js +0 -113
- package/dist/chunk-36YTBVYF.js +0 -197
- package/dist/chunk-3775TQE5.js +0 -10053
- package/dist/chunk-3775TQE5.js.map +0 -1
- package/dist/chunk-3CF2B2LD.js +0 -110
- package/dist/chunk-3GENISSH.js +0 -129
- package/dist/chunk-3IEVQMGO.js +0 -2431
- package/dist/chunk-3N3EN7FA.js +0 -34
- package/dist/chunk-3NMKLLEB.js +0 -218
- package/dist/chunk-3VSKLEUE.js +0 -4570
- package/dist/chunk-3X4HTUUR.js +0 -538
- package/dist/chunk-3XHPCZ6N.js +0 -380
- package/dist/chunk-3XHPCZ6N.js.map +0 -1
- package/dist/chunk-4GFLP4OY.js +0 -131
- package/dist/chunk-4GUPD7CJ.js +0 -234
- package/dist/chunk-4OGDD2EM.js +0 -2434
- package/dist/chunk-4T2RJ2HY.js +0 -93
- package/dist/chunk-4XEPZARK.js +0 -391
- package/dist/chunk-4YJGB22T.js +0 -570
- package/dist/chunk-4YNWA5YG.js +0 -236
- package/dist/chunk-4ZRGFCSP.js +0 -5919
- package/dist/chunk-4ZRGFCSP.js.map +0 -1
- package/dist/chunk-54NTSBQO.js +0 -33
- package/dist/chunk-5BRK72J5.js +0 -214
- package/dist/chunk-5BRK72J5.js.map +0 -1
- package/dist/chunk-5CGZOJN7.js +0 -111
- package/dist/chunk-5ERDSF2C.js +0 -79
- package/dist/chunk-5I6CWDA6.js +0 -3176
- package/dist/chunk-5I6CWDA6.js.map +0 -1
- package/dist/chunk-5JG277OH.js +0 -92
- package/dist/chunk-5JOTMM3F.js +0 -3996
- package/dist/chunk-5JOTMM3F.js.map +0 -1
- package/dist/chunk-5ORXRVXV.js +0 -469
- package/dist/chunk-5XVOL3KH.js +0 -931
- package/dist/chunk-67BMBRTK.js +0 -406
- package/dist/chunk-67JCL67N.js +0 -84
- package/dist/chunk-6F34IWSA.js +0 -47
- package/dist/chunk-6F34IWSA.js.map +0 -1
- package/dist/chunk-6GCMLYER.js +0 -432
- package/dist/chunk-6GODDS6F.js +0 -103
- package/dist/chunk-6GYRHQVL.js +0 -5089
- package/dist/chunk-6LF2ZE52.js +0 -851
- package/dist/chunk-6MSTIFAL.js +0 -406
- package/dist/chunk-6OMREP52.js +0 -187
- package/dist/chunk-6P3QOMPV.js +0 -57
- package/dist/chunk-6SPEMI7K.js +0 -850
- package/dist/chunk-6SPEMI7K.js.map +0 -1
- package/dist/chunk-6WGJB6GO.js +0 -65
- package/dist/chunk-72PGXQDN.js +0 -399
- package/dist/chunk-75LF7LSI.js +0 -307
- package/dist/chunk-7CIMPDGL.js +0 -26
- package/dist/chunk-7EJWP62C.js +0 -271
- package/dist/chunk-7FY47EN2.js +0 -138
- package/dist/chunk-7I4KWTJS.js +0 -112
- package/dist/chunk-7J3TLTPI.js +0 -50
- package/dist/chunk-7M5DPUGZ.js +0 -215
- package/dist/chunk-7ZQVRVNI.js +0 -1263
- package/dist/chunk-A2QOUEU3.js +0 -256
- package/dist/chunk-A36WG3BT.js +0 -175
- package/dist/chunk-ADFUTR45.js +0 -138
- package/dist/chunk-ADNH5GSP.js +0 -1236
- package/dist/chunk-AGW5H6QV.js +0 -1356
- package/dist/chunk-AHBEBGLO.js +0 -27
- package/dist/chunk-AJIGRQIO.js +0 -311
- package/dist/chunk-AP63EUPJ.js +0 -145
- package/dist/chunk-ATWXYAWP.js +0 -227
- package/dist/chunk-AU2DT7O2.js +0 -29
- package/dist/chunk-AX65L6QV.js +0 -316
- package/dist/chunk-AZHZ2EU4.js +0 -333
- package/dist/chunk-B57G2C45.js +0 -357
- package/dist/chunk-BIQMUTVW.js +0 -1333
- package/dist/chunk-BOZN54YB.js +0 -149
- package/dist/chunk-BOZN54YB.js.map +0 -1
- package/dist/chunk-BPCI4ZGR.js +0 -4979
- package/dist/chunk-BRJLN3ZL.js +0 -67
- package/dist/chunk-BY7AWWDB.js +0 -177
- package/dist/chunk-CBSBNUGV.js +0 -523
- package/dist/chunk-CBSBNUGV.js.map +0 -1
- package/dist/chunk-CGS44LYC.js +0 -1022
- package/dist/chunk-CGS44LYC.js.map +0 -1
- package/dist/chunk-CHKHQHOO.js +0 -3070
- package/dist/chunk-CSGKUDNB.js +0 -1024
- package/dist/chunk-CZPN2HP3.js +0 -441
- package/dist/chunk-D2VP4C5B.js +0 -515
- package/dist/chunk-D32VVOBJ.js +0 -738
- package/dist/chunk-D32VVOBJ.js.map +0 -1
- package/dist/chunk-D4AF4SOJ.js +0 -246
- package/dist/chunk-DCML4SXQ.js +0 -201
- package/dist/chunk-DECSYLBP.js +0 -572
- package/dist/chunk-DECSYLBP.js.map +0 -1
- package/dist/chunk-DEKCTHXM.js +0 -639
- package/dist/chunk-DGS62JWP.js +0 -828
- package/dist/chunk-DHXRMZPQ.js +0 -276
- package/dist/chunk-DJ4X4U4A.js +0 -1021
- package/dist/chunk-DLMMQMKZ.js +0 -2551
- package/dist/chunk-DWPE3Y7M.js +0 -144
- package/dist/chunk-EFD4DD3E.js +0 -113
- package/dist/chunk-EGSRY63C.js +0 -251
- package/dist/chunk-EIVA3MAH.js +0 -85
- package/dist/chunk-EJYHPNXD.js +0 -103
- package/dist/chunk-EQ263DHZ.js +0 -27
- package/dist/chunk-EVJ42E62.js +0 -137
- package/dist/chunk-EW3N5SCT.js +0 -1628
- package/dist/chunk-F47X7XPQ.js +0 -124
- package/dist/chunk-F4ESDJTE.js +0 -400
- package/dist/chunk-F7NV3EL5.js +0 -2580
- package/dist/chunk-FFWVFU6S.js +0 -48
- package/dist/chunk-FPPPLIGK.js +0 -1184
- package/dist/chunk-FUJ6DWRZ.js +0 -207
- package/dist/chunk-FWEMP52Y.js +0 -199
- package/dist/chunk-FX4HG4FR.js +0 -37
- package/dist/chunk-FZOK37SC.js +0 -155
- package/dist/chunk-GBGJIR6F.js +0 -404
- package/dist/chunk-GCURVP5U.js +0 -211
- package/dist/chunk-GFMRMSFN.js +0 -196
- package/dist/chunk-GH4VY3H5.js +0 -178
- package/dist/chunk-GJFTPSGN.js +0 -278
- package/dist/chunk-GKOIWZ4C.js +0 -794
- package/dist/chunk-GNTEF5TL.js +0 -158
- package/dist/chunk-GQF2HWQE.js +0 -407
- package/dist/chunk-GXYS6BI3.js +0 -311
- package/dist/chunk-H27MS36Q.js +0 -318
- package/dist/chunk-H4NDK35I.js +0 -85
- package/dist/chunk-H6DJIEO6.js +0 -269
- package/dist/chunk-HC7C4ZN2.js +0 -608
- package/dist/chunk-HUKGLWAY.js +0 -174
- package/dist/chunk-HUS2QEPV.js +0 -428
- package/dist/chunk-HUTQJY3F.js +0 -23
- package/dist/chunk-HWOYJOKK.js +0 -266
- package/dist/chunk-I46F7LUI.js +0 -15
- package/dist/chunk-I57PYKVN.js +0 -386
- package/dist/chunk-IBI3N3P7.js +0 -56
- package/dist/chunk-IEUZ4ASX.js +0 -3110
- package/dist/chunk-IHLF7R6Q.js +0 -1309
- package/dist/chunk-J3XWJ2A6.js +0 -209
- package/dist/chunk-J45WTHTL.js +0 -229
- package/dist/chunk-J4OOKDRV.js +0 -40
- package/dist/chunk-J6YVN3W7.js +0 -162
- package/dist/chunk-JOZFVEBN.js +0 -2984
- package/dist/chunk-K7GGLL2U.js +0 -231
- package/dist/chunk-KDHWX7XH.js +0 -292
- package/dist/chunk-KMLELG4O.js +0 -46
- package/dist/chunk-KQY4P4EO.js +0 -373
- package/dist/chunk-KSDCQPJY.js +0 -12
- package/dist/chunk-KW4OJ3RS.js +0 -175
- package/dist/chunk-KWOYMJKM.js +0 -1803
- package/dist/chunk-KYDLVMKA.js +0 -99
- package/dist/chunk-KZYQNVXE.js +0 -449
- package/dist/chunk-L3GNEC6B.js +0 -1019
- package/dist/chunk-L5JV7MAF.js +0 -372
- package/dist/chunk-LC5E7CVA.js +0 -191
- package/dist/chunk-LEYZQZFS.js +0 -121
- package/dist/chunk-LFMTPBET.js +0 -265
- package/dist/chunk-LFQI2C46.js +0 -175
- package/dist/chunk-LH3SDMDC.js +0 -172
- package/dist/chunk-LJKZGQTI.js +0 -192
- package/dist/chunk-LQDSZPB5.js +0 -73
- package/dist/chunk-LTYUE572.js +0 -117
- package/dist/chunk-M3WCB73E.js +0 -379
- package/dist/chunk-M47MKLW2.js +0 -283
- package/dist/chunk-M5FX5KH5.js +0 -629
- package/dist/chunk-MHL727ZE.js +0 -129
- package/dist/chunk-N3AAMSBH.js +0 -170
- package/dist/chunk-N4TJ7A7I.js +0 -41
- package/dist/chunk-NFZAMHSR.js +0 -401
- package/dist/chunk-NRAVQJE2.js +0 -61
- package/dist/chunk-NU4HYZ3C.js +0 -48
- package/dist/chunk-NUZNJSL5.js +0 -285
- package/dist/chunk-NY5DX43C.js +0 -133
- package/dist/chunk-O3C4BASC.js +0 -773
- package/dist/chunk-O5JDQZGV.js +0 -176
- package/dist/chunk-OMYT3X2Y.js +0 -107
- package/dist/chunk-OSQ6YGZW.js +0 -412
- package/dist/chunk-OWXSWGP3.js +0 -263
- package/dist/chunk-PBCSPCF6.js +0 -43
- package/dist/chunk-PBKG2OPJ.js +0 -849
- package/dist/chunk-PCP5GF77.js +0 -366
- package/dist/chunk-PCSRHFRF.js +0 -75
- package/dist/chunk-PHNHJKEL.js +0 -287
- package/dist/chunk-PIPD74PT.js +0 -650
- package/dist/chunk-PMBZMVKE.js +0 -33
- package/dist/chunk-PMVZYQ5W.js +0 -107
- package/dist/chunk-POUIWV6K.js +0 -2553
- package/dist/chunk-PTSRBKQC.js +0 -118
- package/dist/chunk-Q5AQJQXU.js +0 -114
- package/dist/chunk-QAS2OFG5.js +0 -371
- package/dist/chunk-QCJ6SNCP.js +0 -532
- package/dist/chunk-QFMPAR74.js +0 -73
- package/dist/chunk-QHF4B7R4.js +0 -166
- package/dist/chunk-QHGWFKTK.js +0 -52
- package/dist/chunk-QJ4YC4PM.js +0 -353
- package/dist/chunk-QMFX5BDA.js +0 -3851
- package/dist/chunk-QSG6FWOK.js +0 -126
- package/dist/chunk-QTT5574G.js +0 -154
- package/dist/chunk-R6CFPY3F.js +0 -278
- package/dist/chunk-R6OBJ7LF.js +0 -131
- package/dist/chunk-R6OBJ7LF.js.map +0 -1
- package/dist/chunk-RAUWORZV.js +0 -1187
- package/dist/chunk-RG7PMYWW.js +0 -82
- package/dist/chunk-RLS563ST.js +0 -403
- package/dist/chunk-RQAE6DI7.js +0 -259
- package/dist/chunk-RWWQLVGV.js +0 -184
- package/dist/chunk-S6GFECVG.js +0 -56
- package/dist/chunk-SBWVYYRA.js +0 -283
- package/dist/chunk-SHW2QUOE.js +0 -158
- package/dist/chunk-SQJQVTHA.js +0 -3690
- package/dist/chunk-STTCF3OR.js +0 -202
- package/dist/chunk-SVG5U7UN.js +0 -270
- package/dist/chunk-SY6V3Z2U.js +0 -270
- package/dist/chunk-T3WYQHAO.js +0 -42
- package/dist/chunk-TCDDOFRG.js +0 -79
- package/dist/chunk-TGG3ODCS.js +0 -99
- package/dist/chunk-TL6UOSMX.js +0 -4519
- package/dist/chunk-TL6UOSMX.js.map +0 -1
- package/dist/chunk-TU6FW6IJ.js +0 -566
- package/dist/chunk-TXSZR2SB.js +0 -188
- package/dist/chunk-TYZ3WUKG.js +0 -1095
- package/dist/chunk-U3GQZEAO.js +0 -584
- package/dist/chunk-U4EMW7RP.js +0 -249
- package/dist/chunk-UBSHJB6M.js +0 -83
- package/dist/chunk-UFRXYZCJ.js +0 -125
- package/dist/chunk-UHBIXNRW.js +0 -100
- package/dist/chunk-UJB54P4M.js +0 -335
- package/dist/chunk-UJKVMFFF.js +0 -114
- package/dist/chunk-UJSXNGKJ.js +0 -141
- package/dist/chunk-UNOJ5PNN.js +0 -3321
- package/dist/chunk-UOBJFO25.js +0 -351
- package/dist/chunk-UPRN4FBY.js +0 -38
- package/dist/chunk-UQQUMT5P.js +0 -91
- package/dist/chunk-UTFX46TK.js +0 -1177
- package/dist/chunk-V5HRUE42.js +0 -396
- package/dist/chunk-VCWRMKTQ.js +0 -296
- package/dist/chunk-VJAP57SP.js +0 -114
- package/dist/chunk-VMJN6YQL.js +0 -391
- package/dist/chunk-VUNGU657.js +0 -20
- package/dist/chunk-VWEGG7JQ.js +0 -134
- package/dist/chunk-VWT7ORWC.js +0 -437
- package/dist/chunk-VWT7ORWC.js.map +0 -1
- package/dist/chunk-VXGQVX53.js +0 -1152
- package/dist/chunk-W7UFWXZ6.js +0 -72
- package/dist/chunk-WKBJNGYV.js +0 -230
- package/dist/chunk-WZZV7DUU.js +0 -723
- package/dist/chunk-XDWW2DLJ.js +0 -247
- package/dist/chunk-XF55A7CC.js +0 -162
- package/dist/chunk-XGUBIE35.js +0 -187
- package/dist/chunk-XIUJL352.js +0 -66
- package/dist/chunk-XKPVWLMM.js +0 -383
- package/dist/chunk-XSR6J5LY.js +0 -234
- package/dist/chunk-Y2LD4FTV.js +0 -132
- package/dist/chunk-Y3TQ2M2O.js +0 -214
- package/dist/chunk-Y5HXP2NR.js +0 -251
- package/dist/chunk-Y6CNWBV3.js +0 -264
- package/dist/chunk-YGPMLIFT.js +0 -2317
- package/dist/chunk-YIR4KVJO.js +0 -389
- package/dist/chunk-YN6UVG4Z.js +0 -250
- package/dist/chunk-YNIDJOGT.js +0 -340
- package/dist/chunk-YP4SNX4P.js +0 -220
- package/dist/chunk-YPIOAMHD.js +0 -246
- package/dist/chunk-YPM3T3UM.js +0 -598
- package/dist/chunk-YRJZYQ5A.js +0 -898
- package/dist/chunk-YRJZYQ5A.js.map +0 -1
- package/dist/chunk-YVODOJZG.js +0 -298
- package/dist/chunk-ZAGLLXX5.js +0 -107
- package/dist/chunk-ZD67RM6G.js +0 -60
- package/dist/chunk-ZLY7M463.js +0 -1185
- package/dist/chunk-ZNIG3CPB.js +0 -98
- package/dist/chunk-ZOQKWIFS.js +0 -108
- package/dist/chunk-ZU5WVSHV.js +0 -168
- package/dist/chunk-ZWEVJPXC.js +0 -818
- package/dist/chunk-ZWFLYN7T.js +0 -772
- package/dist/computer-viewer-ZISZUM4L.js +0 -21
- package/dist/connection-step-up-UQHDCXFE.js +0 -146
- package/dist/connection-step-up-UQHDCXFE.js.map +0 -1
- package/dist/embedded-new-voice-UWSSA7AB.js +0 -25
- package/dist/embedded-voice-T34K465A.js +0 -25
- package/dist/fleet-decision-row-REAWMEHI.js +0 -361
- package/dist/model-policy-picker-menu-2CTRKSDJ.js +0 -23
- package/dist/payment-page-card-OOOFGIMH.js +0 -226
- package/dist/payment-page-card-OOOFGIMH.js.map +0 -1
- package/dist/platform-activity-row-EZYTZPYR.js +0 -156
- package/dist/queue-surface-implementation-HDZ42LN7.js +0 -932
- package/dist/queue-surface-implementation-HDZ42LN7.js.map +0 -1
- package/dist/recorder-host-6HFQQTNI.js +0 -80
- package/dist/sandbox-files-6JY7WVMO.js +0 -28
- package/dist/session-connect-cards-VTSJODCX.js +0 -27
- package/dist/session-realtime-G3ZGG3KR.js +0 -30
- package/dist/timeline-annotation-markers-S6DMHCI6.js +0 -157
- package/dist/timeline-annotation-selection-UFZOKL5E.js +0 -208
- package/dist/timeline-annotations-dialog-FPJ4MPHD.js +0 -283
- /package/dist/{browser-viewer-J6O65JXH.js.map → browser-viewer-O5FJOWWI.js.map} +0 -0
- /package/dist/{chat-interactive-block-R5JEJYMR.js.map → chat-interactive-block-TQTOUHRC.js.map} +0 -0
- /package/dist/{chunk-SQJQVTHA.js.map → chunk-23TTCFRP.js.map} +0 -0
- /package/dist/{chunk-3GENISSH.js.map → chunk-2BOFLWNJ.js.map} +0 -0
- /package/dist/{chunk-6LF2ZE52.js.map → chunk-3DMD2KHT.js.map} +0 -0
- /package/dist/{chunk-Y2LD4FTV.js.map → chunk-3DOISS3I.js.map} +0 -0
- /package/dist/{chunk-FWEMP52Y.js.map → chunk-3KWTXE4O.js.map} +0 -0
- /package/dist/{chunk-4T2RJ2HY.js.map → chunk-3TRERIPD.js.map} +0 -0
- /package/dist/{chunk-5JG277OH.js.map → chunk-3UXBTL7Z.js.map} +0 -0
- /package/dist/{chunk-M47MKLW2.js.map → chunk-3XEKXNB4.js.map} +0 -0
- /package/dist/{chunk-HUS2QEPV.js.map → chunk-3ZJUQG4K.js.map} +0 -0
- /package/dist/{chunk-UJB54P4M.js.map → chunk-42WTAUUW.js.map} +0 -0
- /package/dist/{chunk-UPRN4FBY.js.map → chunk-46ZC5VNC.js.map} +0 -0
- /package/dist/{chunk-QHF4B7R4.js.map → chunk-4BVEFGX7.js.map} +0 -0
- /package/dist/{chunk-NFZAMHSR.js.map → chunk-4IOFV4S4.js.map} +0 -0
- /package/dist/{chunk-EVJ42E62.js.map → chunk-4ISXBLJV.js.map} +0 -0
- /package/dist/{chunk-SBWVYYRA.js.map → chunk-4L2MBYLH.js.map} +0 -0
- /package/dist/{chunk-O5JDQZGV.js.map → chunk-4NWUZ6SL.js.map} +0 -0
- /package/dist/{chunk-H27MS36Q.js.map → chunk-4QVX6CTT.js.map} +0 -0
- /package/dist/{chunk-JOZFVEBN.js.map → chunk-4YARO4Y5.js.map} +0 -0
- /package/dist/{chunk-3N3EN7FA.js.map → chunk-4Z7BPBS7.js.map} +0 -0
- /package/dist/{chunk-GKOIWZ4C.js.map → chunk-55ILMX6B.js.map} +0 -0
- /package/dist/{chunk-6GODDS6F.js.map → chunk-57OAQTWD.js.map} +0 -0
- /package/dist/{chunk-KMLELG4O.js.map → chunk-5GXX3NI7.js.map} +0 -0
- /package/dist/{chunk-QJ4YC4PM.js.map → chunk-5VE3PPSK.js.map} +0 -0
- /package/dist/{chunk-HWOYJOKK.js.map → chunk-62T2ZPD5.js.map} +0 -0
- /package/dist/{chunk-EGSRY63C.js.map → chunk-655JT4VH.js.map} +0 -0
- /package/dist/{chunk-2XZ3EUSP.js.map → chunk-65OPNLE4.js.map} +0 -0
- /package/dist/{chunk-J45WTHTL.js.map → chunk-67PIP46J.js.map} +0 -0
- /package/dist/{chunk-GCURVP5U.js.map → chunk-6CAK65QV.js.map} +0 -0
- /package/dist/{chunk-PMBZMVKE.js.map → chunk-6CDBX3XG.js.map} +0 -0
- /package/dist/{chunk-R6CFPY3F.js.map → chunk-6D3D2JWY.js.map} +0 -0
- /package/dist/{chunk-PMVZYQ5W.js.map → chunk-6DGQB6GT.js.map} +0 -0
- /package/dist/{chunk-TXSZR2SB.js.map → chunk-6NFK3J2O.js.map} +0 -0
- /package/dist/{chunk-3X4HTUUR.js.map → chunk-6R3QX3AC.js.map} +0 -0
- /package/dist/{chunk-F4ESDJTE.js.map → chunk-6S5OMLAL.js.map} +0 -0
- /package/dist/{chunk-U4EMW7RP.js.map → chunk-6SG2VVVB.js.map} +0 -0
- /package/dist/{chunk-3CF2B2LD.js.map → chunk-6U57GGJI.js.map} +0 -0
- /package/dist/{chunk-ZNIG3CPB.js.map → chunk-6V2PEFPS.js.map} +0 -0
- /package/dist/{chunk-UNOJ5PNN.js.map → chunk-6VASZZVV.js.map} +0 -0
- /package/dist/{chunk-ZU5WVSHV.js.map → chunk-7BBYH5R5.js.map} +0 -0
- /package/dist/{chunk-J3XWJ2A6.js.map → chunk-7EO3T3IX.js.map} +0 -0
- /package/dist/{chunk-SHW2QUOE.js.map → chunk-7EZQ6EKM.js.map} +0 -0
- /package/dist/{chunk-I46F7LUI.js.map → chunk-7HI53NPP.js.map} +0 -0
- /package/dist/{chunk-FX4HG4FR.js.map → chunk-7J4BFENI.js.map} +0 -0
- /package/dist/{chunk-Q5AQJQXU.js.map → chunk-7LSGNY2L.js.map} +0 -0
- /package/dist/{chunk-ADNH5GSP.js.map → chunk-7MMONDFK.js.map} +0 -0
- /package/dist/{chunk-KW4OJ3RS.js.map → chunk-7MWPBGDX.js.map} +0 -0
- /package/dist/{chunk-QAS2OFG5.js.map → chunk-7NSDIQMY.js.map} +0 -0
- /package/dist/{chunk-K7GGLL2U.js.map → chunk-7XPDLT5G.js.map} +0 -0
- /package/dist/{chunk-2SH6CLOR.js.map → chunk-A3BCF4MV.js.map} +0 -0
- /package/dist/{chunk-PBKG2OPJ.js.map → chunk-A5GX3CAE.js.map} +0 -0
- /package/dist/{chunk-D2VP4C5B.js.map → chunk-AAHQJWEP.js.map} +0 -0
- /package/dist/{chunk-DWPE3Y7M.js.map → chunk-AAWEPZOG.js.map} +0 -0
- /package/dist/{chunk-YPM3T3UM.js.map → chunk-ABRT345L.js.map} +0 -0
- /package/dist/{chunk-UQQUMT5P.js.map → chunk-ANXFE2EP.js.map} +0 -0
- /package/dist/{chunk-7EJWP62C.js.map → chunk-AQNE4XWU.js.map} +0 -0
- /package/dist/{chunk-BPCI4ZGR.js.map → chunk-AV2OMWDS.js.map} +0 -0
- /package/dist/{chunk-L3GNEC6B.js.map → chunk-AYHMHAU5.js.map} +0 -0
- /package/dist/{chunk-7J3TLTPI.js.map → chunk-AZ637XK3.js.map} +0 -0
- /package/dist/{chunk-4OGDD2EM.js.map → chunk-B6AH43UQ.js.map} +0 -0
- /package/dist/{chunk-XKPVWLMM.js.map → chunk-BBECLK22.js.map} +0 -0
- /package/dist/{chunk-GNTEF5TL.js.map → chunk-BWYPJG3P.js.map} +0 -0
- /package/dist/{chunk-V5HRUE42.js.map → chunk-CI7F4Y26.js.map} +0 -0
- /package/dist/{chunk-5XVOL3KH.js.map → chunk-CNLSXEQC.js.map} +0 -0
- /package/dist/{chunk-6WGJB6GO.js.map → chunk-COCB4HE3.js.map} +0 -0
- /package/dist/{chunk-B57G2C45.js.map → chunk-CPEVLG3B.js.map} +0 -0
- /package/dist/{chunk-FZOK37SC.js.map → chunk-CVC4RO7D.js.map} +0 -0
- /package/dist/{chunk-IEUZ4ASX.js.map → chunk-CY6RLRHJ.js.map} +0 -0
- /package/dist/{chunk-LTYUE572.js.map → chunk-D3WLSMCL.js.map} +0 -0
- /package/dist/{chunk-GH4VY3H5.js.map → chunk-D7SSOJEU.js.map} +0 -0
- /package/dist/{chunk-ZWEVJPXC.js.map → chunk-DBOD5WXT.js.map} +0 -0
- /package/dist/{chunk-J6YVN3W7.js.map → chunk-DFWSRIFL.js.map} +0 -0
- /package/dist/{chunk-QSG6FWOK.js.map → chunk-DITZUBOK.js.map} +0 -0
- /package/dist/{chunk-PHNHJKEL.js.map → chunk-DKD2ZZSJ.js.map} +0 -0
- /package/dist/{chunk-YPIOAMHD.js.map → chunk-DOJWHSRD.js.map} +0 -0
- /package/dist/{chunk-XGUBIE35.js.map → chunk-DR6LZXJI.js.map} +0 -0
- /package/dist/{chunk-PIPD74PT.js.map → chunk-DV73XOVB.js.map} +0 -0
- /package/dist/{chunk-AX65L6QV.js.map → chunk-DYO7DNDD.js.map} +0 -0
- /package/dist/{chunk-4GUPD7CJ.js.map → chunk-DYZASWWT.js.map} +0 -0
- /package/dist/{chunk-7ZQVRVNI.js.map → chunk-EC5HUNXI.js.map} +0 -0
- /package/dist/{chunk-XDWW2DLJ.js.map → chunk-ECQ7FV3E.js.map} +0 -0
- /package/dist/{chunk-67BMBRTK.js.map → chunk-ECVCSZWY.js.map} +0 -0
- /package/dist/{chunk-AZHZ2EU4.js.map → chunk-EMXO5HCY.js.map} +0 -0
- /package/dist/{chunk-LFMTPBET.js.map → chunk-ENJX5TAA.js.map} +0 -0
- /package/dist/{chunk-XIUJL352.js.map → chunk-EQSYPIAI.js.map} +0 -0
- /package/dist/{chunk-VXGQVX53.js.map → chunk-EV73XMK3.js.map} +0 -0
- /package/dist/{chunk-POUIWV6K.js.map → chunk-F2SGC74A.js.map} +0 -0
- /package/dist/{chunk-WKBJNGYV.js.map → chunk-F5DEBD4D.js.map} +0 -0
- /package/dist/{chunk-TU6FW6IJ.js.map → chunk-F6JJBUQ2.js.map} +0 -0
- /package/dist/{chunk-CSGKUDNB.js.map → chunk-FEVZDJOZ.js.map} +0 -0
- /package/dist/{chunk-LEYZQZFS.js.map → chunk-FF22IUY3.js.map} +0 -0
- /package/dist/{chunk-A2QOUEU3.js.map → chunk-FILRDNUQ.js.map} +0 -0
- /package/dist/{chunk-ATWXYAWP.js.map → chunk-FLB3BP2E.js.map} +0 -0
- /package/dist/{chunk-DEKCTHXM.js.map → chunk-FZVMMHPC.js.map} +0 -0
- /package/dist/{chunk-7I4KWTJS.js.map → chunk-G6D5NVWM.js.map} +0 -0
- /package/dist/{chunk-LJKZGQTI.js.map → chunk-GGH5STTP.js.map} +0 -0
- /package/dist/{chunk-6OMREP52.js.map → chunk-GGHX6GS7.js.map} +0 -0
- /package/dist/{chunk-HUKGLWAY.js.map → chunk-GIHE7U3Y.js.map} +0 -0
- /package/dist/{chunk-Y6CNWBV3.js.map → chunk-GO5VIAA7.js.map} +0 -0
- /package/dist/{chunk-AHBEBGLO.js.map → chunk-GSK637QS.js.map} +0 -0
- /package/dist/{chunk-S6GFECVG.js.map → chunk-HBYO34CP.js.map} +0 -0
- /package/dist/{chunk-PTSRBKQC.js.map → chunk-HFROJDFQ.js.map} +0 -0
- /package/dist/{chunk-Y5HXP2NR.js.map → chunk-HGEDFQ7G.js.map} +0 -0
- /package/dist/{chunk-AGW5H6QV.js.map → chunk-HH3QTFGV.js.map} +0 -0
- /package/dist/{chunk-YP4SNX4P.js.map → chunk-HHFFPE67.js.map} +0 -0
- /package/dist/{chunk-D4AF4SOJ.js.map → chunk-HHYTB5OL.js.map} +0 -0
- /package/dist/{chunk-FFWVFU6S.js.map → chunk-HPKWAHHI.js.map} +0 -0
- /package/dist/{chunk-KQY4P4EO.js.map → chunk-HSPOCEGP.js.map} +0 -0
- /package/dist/{chunk-HC7C4ZN2.js.map → chunk-IC74VN2I.js.map} +0 -0
- /package/dist/{chunk-DJ4X4U4A.js.map → chunk-ICSQO2CV.js.map} +0 -0
- /package/dist/{chunk-CHKHQHOO.js.map → chunk-IEZE7SL6.js.map} +0 -0
- /package/dist/{chunk-N3AAMSBH.js.map → chunk-IGHNTARW.js.map} +0 -0
- /package/dist/{chunk-7FY47EN2.js.map → chunk-IKYS56PQ.js.map} +0 -0
- /package/dist/{chunk-IBI3N3P7.js.map → chunk-IO474NRY.js.map} +0 -0
- /package/dist/{chunk-WZZV7DUU.js.map → chunk-IP2CCFAV.js.map} +0 -0
- /package/dist/{chunk-QMFX5BDA.js.map → chunk-IT5GF54F.js.map} +0 -0
- /package/dist/{chunk-SVG5U7UN.js.map → chunk-IX67G5FD.js.map} +0 -0
- /package/dist/{chunk-KDHWX7XH.js.map → chunk-IXNJK7KJ.js.map} +0 -0
- /package/dist/{chunk-DHXRMZPQ.js.map → chunk-IZWTARYT.js.map} +0 -0
- /package/dist/{chunk-ZOQKWIFS.js.map → chunk-JBV2HY43.js.map} +0 -0
- /package/dist/{chunk-54NTSBQO.js.map → chunk-JE62XK5K.js.map} +0 -0
- /package/dist/{chunk-EIVA3MAH.js.map → chunk-JFAWCALM.js.map} +0 -0
- /package/dist/{chunk-UBSHJB6M.js.map → chunk-JQGPATQZ.js.map} +0 -0
- /package/dist/{chunk-27HN57HE.js.map → chunk-JYZGX5UZ.js.map} +0 -0
- /package/dist/{chunk-W7UFWXZ6.js.map → chunk-K227GMSM.js.map} +0 -0
- /package/dist/{chunk-KZYQNVXE.js.map → chunk-KB2O7JIJ.js.map} +0 -0
- /package/dist/{chunk-KSDCQPJY.js.map → chunk-KT6GC67G.js.map} +0 -0
- /package/dist/{chunk-PCSRHFRF.js.map → chunk-KTGKGHEA.js.map} +0 -0
- /package/dist/{chunk-NUZNJSL5.js.map → chunk-KU77XHWB.js.map} +0 -0
- /package/dist/{chunk-A36WG3BT.js.map → chunk-KZIRVLCM.js.map} +0 -0
- /package/dist/{chunk-RQAE6DI7.js.map → chunk-L3DUSTRN.js.map} +0 -0
- /package/dist/{chunk-NRAVQJE2.js.map → chunk-L6WVCO6D.js.map} +0 -0
- /package/dist/{chunk-TCDDOFRG.js.map → chunk-L7PCZEEG.js.map} +0 -0
- /package/dist/{chunk-GXYS6BI3.js.map → chunk-LEN2DVU6.js.map} +0 -0
- /package/dist/{chunk-LC5E7CVA.js.map → chunk-LGOQW2CE.js.map} +0 -0
- /package/dist/{chunk-YIR4KVJO.js.map → chunk-LK2JO72Y.js.map} +0 -0
- /package/dist/{chunk-U3GQZEAO.js.map → chunk-LXLHIOJM.js.map} +0 -0
- /package/dist/{chunk-BIQMUTVW.js.map → chunk-LYQQ4VBE.js.map} +0 -0
- /package/dist/{chunk-EW3N5SCT.js.map → chunk-M22ZHQ7S.js.map} +0 -0
- /package/dist/{chunk-VUNGU657.js.map → chunk-M5RKFV6K.js.map} +0 -0
- /package/dist/{chunk-TGG3ODCS.js.map → chunk-MCPKUVMQ.js.map} +0 -0
- /package/dist/{chunk-AP63EUPJ.js.map → chunk-MDGNCUAC.js.map} +0 -0
- /package/dist/{chunk-KYDLVMKA.js.map → chunk-MFLU3466.js.map} +0 -0
- /package/dist/{chunk-ZD67RM6G.js.map → chunk-MIUJ3EH5.js.map} +0 -0
- /package/dist/{chunk-M5FX5KH5.js.map → chunk-MO3XJQN2.js.map} +0 -0
- /package/dist/{chunk-OMYT3X2Y.js.map → chunk-MTHAYXDH.js.map} +0 -0
- /package/dist/{chunk-5ERDSF2C.js.map → chunk-MVYQDBE6.js.map} +0 -0
- /package/dist/{chunk-75LF7LSI.js.map → chunk-NA7VZQPL.js.map} +0 -0
- /package/dist/{chunk-3IEVQMGO.js.map → chunk-ND6FWOSO.js.map} +0 -0
- /package/dist/{chunk-UOBJFO25.js.map → chunk-NIFPH34L.js.map} +0 -0
- /package/dist/{chunk-EJYHPNXD.js.map → chunk-NKYC6WHQ.js.map} +0 -0
- /package/dist/{chunk-4XEPZARK.js.map → chunk-NML7VKLU.js.map} +0 -0
- /package/dist/{chunk-N4TJ7A7I.js.map → chunk-NPAWLKJB.js.map} +0 -0
- /package/dist/{chunk-ZLY7M463.js.map → chunk-NQSKI2YD.js.map} +0 -0
- /package/dist/{chunk-VJAP57SP.js.map → chunk-NXQFBC22.js.map} +0 -0
- /package/dist/{chunk-PBCSPCF6.js.map → chunk-NXRZMHVM.js.map} +0 -0
- /package/dist/{chunk-IHLF7R6Q.js.map → chunk-NYU5DE4K.js.map} +0 -0
- /package/dist/{chunk-NU4HYZ3C.js.map → chunk-O2EEYPIZ.js.map} +0 -0
- /package/dist/{chunk-BRJLN3ZL.js.map → chunk-O4TOEISQ.js.map} +0 -0
- /package/dist/{chunk-MHL727ZE.js.map → chunk-O533L2TG.js.map} +0 -0
- /package/dist/{chunk-QCJ6SNCP.js.map → chunk-ON6ZGJDW.js.map} +0 -0
- /package/dist/{chunk-AJIGRQIO.js.map → chunk-OPELE3Z4.js.map} +0 -0
- /package/dist/{chunk-XSR6J5LY.js.map → chunk-OTSUC6PP.js.map} +0 -0
- /package/dist/{chunk-FPPPLIGK.js.map → chunk-OZNL5OKT.js.map} +0 -0
- /package/dist/{chunk-6GCMLYER.js.map → chunk-P3PDKPLK.js.map} +0 -0
- /package/dist/{chunk-L5JV7MAF.js.map → chunk-PCZBYN2H.js.map} +0 -0
- /package/dist/{chunk-6P3QOMPV.js.map → chunk-PIPXXQFV.js.map} +0 -0
- /package/dist/{chunk-4GFLP4OY.js.map → chunk-PMUZUPPE.js.map} +0 -0
- /package/dist/{chunk-EFD4DD3E.js.map → chunk-PN52EIFV.js.map} +0 -0
- /package/dist/{chunk-LFQI2C46.js.map → chunk-PPQJIVGM.js.map} +0 -0
- /package/dist/{chunk-5ORXRVXV.js.map → chunk-PQYFOTNI.js.map} +0 -0
- /package/dist/{chunk-TYZ3WUKG.js.map → chunk-PUX4YJAW.js.map} +0 -0
- /package/dist/{chunk-UFRXYZCJ.js.map → chunk-PYMQM65Y.js.map} +0 -0
- /package/dist/{chunk-GBGJIR6F.js.map → chunk-Q5UO7GT5.js.map} +0 -0
- /package/dist/{chunk-H4NDK35I.js.map → chunk-QA5UNVHD.js.map} +0 -0
- /package/dist/{chunk-7M5DPUGZ.js.map → chunk-QDZR7FXG.js.map} +0 -0
- /package/dist/{chunk-J4OOKDRV.js.map → chunk-QNOWKKZ4.js.map} +0 -0
- /package/dist/{chunk-QFMPAR74.js.map → chunk-QUXQYYZO.js.map} +0 -0
- /package/dist/{chunk-AU2DT7O2.js.map → chunk-QVOTPOXK.js.map} +0 -0
- /package/dist/{chunk-ZWFLYN7T.js.map → chunk-R2DSOIME.js.map} +0 -0
- /package/dist/{chunk-PCP5GF77.js.map → chunk-RFQQXXJ6.js.map} +0 -0
- /package/dist/{chunk-EQ263DHZ.js.map → chunk-RLWI34XM.js.map} +0 -0
- /package/dist/{chunk-F47X7XPQ.js.map → chunk-RMWCGSEP.js.map} +0 -0
- /package/dist/{chunk-CZPN2HP3.js.map → chunk-ROTEQD2Z.js.map} +0 -0
- /package/dist/{chunk-VCWRMKTQ.js.map → chunk-RPCWZFP7.js.map} +0 -0
- /package/dist/{chunk-UJSXNGKJ.js.map → chunk-RW5QRWVI.js.map} +0 -0
- /package/dist/{chunk-6GYRHQVL.js.map → chunk-RZZHOHL6.js.map} +0 -0
- /package/dist/{chunk-NY5DX43C.js.map → chunk-S5STZCBZ.js.map} +0 -0
- /package/dist/{chunk-KWOYMJKM.js.map → chunk-SD4A5P24.js.map} +0 -0
- /package/dist/{chunk-36YTBVYF.js.map → chunk-SJM4TCWJ.js.map} +0 -0
- /package/dist/{chunk-UHBIXNRW.js.map → chunk-SQYTYXR4.js.map} +0 -0
- /package/dist/{chunk-BY7AWWDB.js.map → chunk-SRDHDIRQ.js.map} +0 -0
- /package/dist/{chunk-OWXSWGP3.js.map → chunk-SVC674IM.js.map} +0 -0
- /package/dist/{chunk-HUTQJY3F.js.map → chunk-SYYFA7W7.js.map} +0 -0
- /package/dist/{chunk-RAUWORZV.js.map → chunk-T2UUHB7V.js.map} +0 -0
- /package/dist/{chunk-YVODOJZG.js.map → chunk-TBOH54QP.js.map} +0 -0
- /package/dist/{chunk-GFMRMSFN.js.map → chunk-TG2GO424.js.map} +0 -0
- /package/dist/{chunk-ZAGLLXX5.js.map → chunk-TOJNLC42.js.map} +0 -0
- /package/dist/{chunk-OSQ6YGZW.js.map → chunk-TW75KM7T.js.map} +0 -0
- /package/dist/{chunk-7CIMPDGL.js.map → chunk-TWWAPJYE.js.map} +0 -0
- /package/dist/{chunk-STTCF3OR.js.map → chunk-UARZCGWU.js.map} +0 -0
- /package/dist/{chunk-F7NV3EL5.js.map → chunk-UCNTAS2U.js.map} +0 -0
- /package/dist/{chunk-XF55A7CC.js.map → chunk-UD7IARSL.js.map} +0 -0
- /package/dist/{chunk-M3WCB73E.js.map → chunk-UDKZKGUQ.js.map} +0 -0
- /package/dist/{chunk-VMJN6YQL.js.map → chunk-UJRSZ6ZB.js.map} +0 -0
- /package/dist/{chunk-236GMLCR.js.map → chunk-UTM23O3G.js.map} +0 -0
- /package/dist/{chunk-3VSKLEUE.js.map → chunk-UUJSS56V.js.map} +0 -0
- /package/dist/{chunk-T3WYQHAO.js.map → chunk-UWSF733U.js.map} +0 -0
- /package/dist/{chunk-I57PYKVN.js.map → chunk-V4ZYJWU3.js.map} +0 -0
- /package/dist/{chunk-FUJ6DWRZ.js.map → chunk-VEIT2EGK.js.map} +0 -0
- /package/dist/{chunk-LH3SDMDC.js.map → chunk-VGG6DOTN.js.map} +0 -0
- /package/dist/{chunk-RG7PMYWW.js.map → chunk-VGSGAQJX.js.map} +0 -0
- /package/dist/{chunk-YGPMLIFT.js.map → chunk-VHK5CBIG.js.map} +0 -0
- /package/dist/{chunk-QTT5574G.js.map → chunk-VLA2DTYG.js.map} +0 -0
- /package/dist/{chunk-GJFTPSGN.js.map → chunk-VSN6XKZ5.js.map} +0 -0
- /package/dist/{chunk-5CGZOJN7.js.map → chunk-VW6TOTDQ.js.map} +0 -0
- /package/dist/{chunk-6MSTIFAL.js.map → chunk-W3HKBWPM.js.map} +0 -0
- /package/dist/{chunk-LQDSZPB5.js.map → chunk-WDYM5SFM.js.map} +0 -0
- /package/dist/{chunk-DLMMQMKZ.js.map → chunk-WJ4AZ2AR.js.map} +0 -0
- /package/dist/{chunk-Y3TQ2M2O.js.map → chunk-WMQHP4E3.js.map} +0 -0
- /package/dist/{chunk-H6DJIEO6.js.map → chunk-WP5A6F6P.js.map} +0 -0
- /package/dist/{chunk-GQF2HWQE.js.map → chunk-WWQH3L6M.js.map} +0 -0
- /package/dist/{chunk-2FLGURHP.js.map → chunk-X3T6ULUZ.js.map} +0 -0
- /package/dist/{chunk-QHGWFKTK.js.map → chunk-XA32OUL4.js.map} +0 -0
- /package/dist/{chunk-2ZC62PY4.js.map → chunk-XCICIQIE.js.map} +0 -0
- /package/dist/{chunk-ADFUTR45.js.map → chunk-XHRIUCBD.js.map} +0 -0
- /package/dist/{chunk-UTFX46TK.js.map → chunk-XJBWVT5X.js.map} +0 -0
- /package/dist/{chunk-SY6V3Z2U.js.map → chunk-XKQRWJFE.js.map} +0 -0
- /package/dist/{chunk-VWEGG7JQ.js.map → chunk-XN3EVUB5.js.map} +0 -0
- /package/dist/{chunk-DGS62JWP.js.map → chunk-XT6GBN2G.js.map} +0 -0
- /package/dist/{chunk-RWWQLVGV.js.map → chunk-XYVDTM4D.js.map} +0 -0
- /package/dist/{chunk-67JCL67N.js.map → chunk-XZO5X3KH.js.map} +0 -0
- /package/dist/{chunk-DCML4SXQ.js.map → chunk-Y34DIEOG.js.map} +0 -0
- /package/dist/{chunk-UJKVMFFF.js.map → chunk-YAIYUFCX.js.map} +0 -0
- /package/dist/{chunk-24S44WBL.js.map → chunk-YFLRBEDS.js.map} +0 -0
- /package/dist/{chunk-RLS563ST.js.map → chunk-YQX227EF.js.map} +0 -0
- /package/dist/{chunk-YNIDJOGT.js.map → chunk-YVAB57JZ.js.map} +0 -0
- /package/dist/{chunk-YN6UVG4Z.js.map → chunk-YWHSODBB.js.map} +0 -0
- /package/dist/{chunk-3NMKLLEB.js.map → chunk-YWJHCJQW.js.map} +0 -0
- /package/dist/{chunk-4YJGB22T.js.map → chunk-Z37DSW2K.js.map} +0 -0
- /package/dist/{chunk-72PGXQDN.js.map → chunk-ZELN2B72.js.map} +0 -0
- /package/dist/{chunk-4YNWA5YG.js.map → chunk-ZFGGR2JW.js.map} +0 -0
- /package/dist/{chunk-O3C4BASC.js.map → chunk-ZL7SEED7.js.map} +0 -0
- /package/dist/{computer-viewer-ZISZUM4L.js.map → computer-viewer-CNYFTUGF.js.map} +0 -0
- /package/dist/{embedded-new-voice-UWSSA7AB.js.map → embedded-new-voice-A56WDECM.js.map} +0 -0
- /package/dist/{embedded-voice-T34K465A.js.map → embedded-voice-CBTSMIWW.js.map} +0 -0
- /package/dist/{fleet-decision-row-REAWMEHI.js.map → fleet-decision-row-6PQTGI2U.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-2CTRKSDJ.js.map → model-policy-picker-menu-ZU72JATS.js.map} +0 -0
- /package/dist/{platform-activity-row-EZYTZPYR.js.map → platform-activity-row-5IQT6R5Z.js.map} +0 -0
- /package/dist/{recorder-host-6HFQQTNI.js.map → recorder-host-G5M676VM.js.map} +0 -0
- /package/dist/{sandbox-files-6JY7WVMO.js.map → sandbox-files-HCXOP6ZO.js.map} +0 -0
- /package/dist/{session-connect-cards-VTSJODCX.js.map → session-connect-cards-MYJRQWSA.js.map} +0 -0
- /package/dist/{session-realtime-G3ZGG3KR.js.map → session-realtime-YFVGQFJK.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-S6DMHCI6.js.map → timeline-annotation-markers-5ELTFV5B.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-UFZOKL5E.js.map → timeline-annotation-selection-XHUOFRIY.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-FPJ4MPHD.js.map → timeline-annotations-dialog-X2VNDYZ4.js.map} +0 -0
package/dist/chunk-3IEVQMGO.js
DELETED
|
@@ -1,2431 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
ActivityDisclosure,
|
|
4
|
-
SecretRefChip,
|
|
5
|
-
mayContainSecretReference,
|
|
6
|
-
searchMatchOffset,
|
|
7
|
-
useSecretsUi
|
|
8
|
-
} from "./chunk-DGS62JWP.js";
|
|
9
|
-
import {
|
|
10
|
-
prefersReducedMotion
|
|
11
|
-
} from "./chunk-OCN4S7WN.js";
|
|
12
|
-
import {
|
|
13
|
-
DecisionButton
|
|
14
|
-
} from "./chunk-2FASQ2SZ.js";
|
|
15
|
-
import {
|
|
16
|
-
LoadFailureNotice,
|
|
17
|
-
isChunkLoadError
|
|
18
|
-
} from "./chunk-EIVA3MAH.js";
|
|
19
|
-
import {
|
|
20
|
-
chainLinkRenderers,
|
|
21
|
-
chainLinkResolvers,
|
|
22
|
-
useArtifactLinkTarget,
|
|
23
|
-
useOpenGeniLinkRenderer,
|
|
24
|
-
useOpenGeniLinkResolver
|
|
25
|
-
} from "./chunk-W4QUDV6Y.js";
|
|
26
|
-
import {
|
|
27
|
-
prepareMathMarkdown
|
|
28
|
-
} from "./chunk-W4F72GU3.js";
|
|
29
|
-
import {
|
|
30
|
-
INTERACTIVE_ANSWER_FENCE,
|
|
31
|
-
bestInteractiveItems,
|
|
32
|
-
formatInteractiveValue,
|
|
33
|
-
interactiveActionLabel,
|
|
34
|
-
interactiveAnswerKey,
|
|
35
|
-
interactiveFilterOptions,
|
|
36
|
-
interactiveSelectionMessage,
|
|
37
|
-
interactiveSelectionWasSent,
|
|
38
|
-
nextInteractiveSort,
|
|
39
|
-
parseInteractiveAnswer,
|
|
40
|
-
settleInteractiveAnswer,
|
|
41
|
-
toggleInteractiveSelection,
|
|
42
|
-
trailingOpenFence,
|
|
43
|
-
useInteractiveAnswerHost,
|
|
44
|
-
useInteractiveAnswerState,
|
|
45
|
-
visibleInteractiveItems
|
|
46
|
-
} from "./chunk-OONTDHBV.js";
|
|
47
|
-
import {
|
|
48
|
-
copyTextToClipboard,
|
|
49
|
-
tableElementToTsv
|
|
50
|
-
} from "./chunk-PEHTX3V7.js";
|
|
51
|
-
import {
|
|
52
|
-
Tooltip,
|
|
53
|
-
TooltipContent,
|
|
54
|
-
TooltipProvider,
|
|
55
|
-
TooltipTrigger
|
|
56
|
-
} from "./chunk-6IWKHHRS.js";
|
|
57
|
-
import {
|
|
58
|
-
displayImageSrc
|
|
59
|
-
} from "./chunk-S5ORWTCJ.js";
|
|
60
|
-
import {
|
|
61
|
-
paintPreviewLoading
|
|
62
|
-
} from "./chunk-UNJPZGNK.js";
|
|
63
|
-
import {
|
|
64
|
-
cn
|
|
65
|
-
} from "./chunk-TXS65BB2.js";
|
|
66
|
-
import {
|
|
67
|
-
useOpenGeniText
|
|
68
|
-
} from "./chunk-4ZRGFCSP.js";
|
|
69
|
-
|
|
70
|
-
// src/components/copy-button.tsx
|
|
71
|
-
import { CheckIcon, CopyIcon } from "lucide-react";
|
|
72
|
-
import { memo, useEffect, useRef, useState } from "react";
|
|
73
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
74
|
-
var COPIED_MS = 1600;
|
|
75
|
-
var CopyButton = memo(function CopyButton2({
|
|
76
|
-
text: text2,
|
|
77
|
-
label: labelProp,
|
|
78
|
-
className,
|
|
79
|
-
reveal = "group-hover"
|
|
80
|
-
}) {
|
|
81
|
-
const t = useOpenGeniText();
|
|
82
|
-
const label = labelProp === void 0 ? t("copyButton.copy") : labelProp;
|
|
83
|
-
const [copied, setCopied] = useState(false);
|
|
84
|
-
const [tipOpen, setTipOpen] = useState(false);
|
|
85
|
-
const timerRef = useRef(null);
|
|
86
|
-
useEffect(() => {
|
|
87
|
-
return () => {
|
|
88
|
-
if (timerRef.current !== null) {
|
|
89
|
-
clearTimeout(timerRef.current);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
}, []);
|
|
93
|
-
const onClick = async (event) => {
|
|
94
|
-
event.preventDefault();
|
|
95
|
-
event.stopPropagation();
|
|
96
|
-
const button = event.currentTarget;
|
|
97
|
-
const pointerActivated = event.detail > 0;
|
|
98
|
-
const value = typeof text2 === "function" ? text2() : text2;
|
|
99
|
-
const ok = await copyTextToClipboard(value);
|
|
100
|
-
if (!ok) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
setCopied(true);
|
|
104
|
-
setTipOpen(true);
|
|
105
|
-
if (timerRef.current !== null) {
|
|
106
|
-
clearTimeout(timerRef.current);
|
|
107
|
-
}
|
|
108
|
-
timerRef.current = setTimeout(() => {
|
|
109
|
-
timerRef.current = null;
|
|
110
|
-
setCopied(false);
|
|
111
|
-
setTipOpen(false);
|
|
112
|
-
}, COPIED_MS);
|
|
113
|
-
if (pointerActivated) {
|
|
114
|
-
button.blur();
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
const tip = copied ? t("copyButton.copied") : label;
|
|
118
|
-
return /* @__PURE__ */ jsxs(
|
|
119
|
-
Tooltip,
|
|
120
|
-
{
|
|
121
|
-
open: copied ? true : tipOpen,
|
|
122
|
-
onOpenChange: (next) => {
|
|
123
|
-
if (!copied) {
|
|
124
|
-
setTipOpen(next);
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
children: [
|
|
128
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
129
|
-
"button",
|
|
130
|
-
{
|
|
131
|
-
type: "button",
|
|
132
|
-
"data-og-copy": "",
|
|
133
|
-
"data-state": copied ? "copied" : "idle",
|
|
134
|
-
"aria-label": tip,
|
|
135
|
-
onClick,
|
|
136
|
-
className: cn(
|
|
137
|
-
"inline-flex size-7 shrink-0 items-center justify-center rounded-og-sm pointer-coarse:size-11",
|
|
138
|
-
"text-og-fg-subtle transition-[opacity,color,background-color] duration-150",
|
|
139
|
-
"hover:bg-og-surface-2/80 hover:text-og-fg",
|
|
140
|
-
"focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
|
|
141
|
-
reveal === "group-hover" && "opacity-0 group-hover/copy:opacity-100 group-focus-within/copy:opacity-100 pointer-coarse:opacity-70",
|
|
142
|
-
copied && "opacity-100 text-og-accent",
|
|
143
|
-
className
|
|
144
|
-
),
|
|
145
|
-
children: copied ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5", "aria-hidden": true }) : /* @__PURE__ */ jsx(CopyIcon, { className: "size-3.5", "aria-hidden": true })
|
|
146
|
-
}
|
|
147
|
-
) }),
|
|
148
|
-
/* @__PURE__ */ jsx(TooltipContent, { side: "top", children: tip })
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
);
|
|
152
|
-
});
|
|
153
|
-
function CopyHoverFrame({
|
|
154
|
-
children,
|
|
155
|
-
className,
|
|
156
|
-
copyText,
|
|
157
|
-
label,
|
|
158
|
-
align = "end",
|
|
159
|
-
trailing
|
|
160
|
-
}) {
|
|
161
|
-
if (copyText.trim().length === 0) {
|
|
162
|
-
return /* @__PURE__ */ jsx("div", { className, children });
|
|
163
|
-
}
|
|
164
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("group/copy", className), children: [
|
|
165
|
-
children,
|
|
166
|
-
/* @__PURE__ */ jsxs(
|
|
167
|
-
"div",
|
|
168
|
-
{
|
|
169
|
-
"data-og-annotation-chrome": "",
|
|
170
|
-
className: cn(
|
|
171
|
-
"flex h-6 items-center gap-1.5 pointer-coarse:h-11",
|
|
172
|
-
align === "end" ? "justify-end" : "justify-start"
|
|
173
|
-
),
|
|
174
|
-
children: [
|
|
175
|
-
/* @__PURE__ */ jsx(
|
|
176
|
-
CopyButton,
|
|
177
|
-
{
|
|
178
|
-
text: copyText,
|
|
179
|
-
label,
|
|
180
|
-
reveal: "group-hover",
|
|
181
|
-
className: "size-6 pointer-coarse:size-11"
|
|
182
|
-
}
|
|
183
|
-
),
|
|
184
|
-
trailing
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
] });
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// src/components/interactive-answer.tsx
|
|
192
|
-
import {
|
|
193
|
-
ArrowDownIcon,
|
|
194
|
-
ArrowUpIcon,
|
|
195
|
-
ArrowUpRightIcon,
|
|
196
|
-
CheckIcon as CheckIcon2,
|
|
197
|
-
LayoutGridIcon,
|
|
198
|
-
LoaderCircleIcon,
|
|
199
|
-
Table2Icon
|
|
200
|
-
} from "lucide-react";
|
|
201
|
-
import { useId, useMemo, useState as useState2 } from "react";
|
|
202
|
-
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
203
|
-
function InteractiveAnswer({ source, state, renderSource }) {
|
|
204
|
-
const parsed = useMemo(
|
|
205
|
-
() => settleInteractiveAnswer(
|
|
206
|
-
parseInteractiveAnswer(source, { partial: state !== "complete" }),
|
|
207
|
-
state
|
|
208
|
-
),
|
|
209
|
-
[source, state]
|
|
210
|
-
);
|
|
211
|
-
if (parsed.status === "invalid") return /* @__PURE__ */ jsx2(InvalidAnswer, { renderSource });
|
|
212
|
-
if (!parsed.spec || parsed.spec.items.length === 0) {
|
|
213
|
-
return state === "streaming" ? /* @__PURE__ */ jsx2(AnswerStatus, { streaming: true, title: parsed.spec?.title }) : /* @__PURE__ */ jsx2(InvalidAnswer, { renderSource });
|
|
214
|
-
}
|
|
215
|
-
return /* @__PURE__ */ jsx2(
|
|
216
|
-
LoadedAnswer,
|
|
217
|
-
{
|
|
218
|
-
spec: parsed.spec,
|
|
219
|
-
answerKey: interactiveAnswerKey(source),
|
|
220
|
-
state,
|
|
221
|
-
complete: parsed.status === "ok"
|
|
222
|
-
}
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
function LoadedAnswer({
|
|
226
|
-
spec,
|
|
227
|
-
answerKey,
|
|
228
|
-
state: streamState,
|
|
229
|
-
complete
|
|
230
|
-
}) {
|
|
231
|
-
const t = useOpenGeniText();
|
|
232
|
-
const host = useInteractiveAnswerHost();
|
|
233
|
-
const ids = useMemo(
|
|
234
|
-
() => complete ? spec.items.map((item) => item.id) : null,
|
|
235
|
-
[complete, spec]
|
|
236
|
-
);
|
|
237
|
-
const [state, update] = useInteractiveAnswerState(answerKey, ids);
|
|
238
|
-
const [hovered, setHovered] = useState2(null);
|
|
239
|
-
const [sending, setSending] = useState2(false);
|
|
240
|
-
const [failed, setFailed] = useState2(false);
|
|
241
|
-
const titleId = useId();
|
|
242
|
-
const interactive = complete;
|
|
243
|
-
const canPick = interactive && Boolean(spec.select) && Boolean(host.send) && !host.readOnly;
|
|
244
|
-
const max = spec.select?.max ?? 0;
|
|
245
|
-
const view = state.view ?? spec.view;
|
|
246
|
-
const showTable = view === "table" && spec.fields.length > 0;
|
|
247
|
-
const filterFields = interactive ? spec.fields.filter((field) => field.filter) : [];
|
|
248
|
-
const visible = interactive ? visibleInteractiveItems(spec, state) : spec.items;
|
|
249
|
-
const best = useMemo(
|
|
250
|
-
() => complete ? bestInteractiveItems(spec, spec.items) : /* @__PURE__ */ new Map(),
|
|
251
|
-
[complete, spec]
|
|
252
|
-
);
|
|
253
|
-
const words = { yes: t("interactiveAnswer.yes"), no: t("interactiveAnswer.no"), empty: "\u2014" };
|
|
254
|
-
const fallbackAction = max === 1 ? t("interactiveAnswer.continueWithThis") : t("interactiveAnswer.continueWithThese");
|
|
255
|
-
const sent = interactiveSelectionWasSent(state);
|
|
256
|
-
const activeFilters = Object.values(state.filters).some((values) => values.length > 0);
|
|
257
|
-
const toggle = (id) => {
|
|
258
|
-
if (!canPick) return;
|
|
259
|
-
setFailed(false);
|
|
260
|
-
update((current) => ({
|
|
261
|
-
...current,
|
|
262
|
-
selected: toggleInteractiveSelection(current.selected, id, max)
|
|
263
|
-
}));
|
|
264
|
-
};
|
|
265
|
-
const send = async () => {
|
|
266
|
-
if (!host.send || state.selected.length === 0 || sending) return;
|
|
267
|
-
const selection = [...state.selected];
|
|
268
|
-
setSending(true);
|
|
269
|
-
setFailed(false);
|
|
270
|
-
try {
|
|
271
|
-
const result = await host.send(
|
|
272
|
-
interactiveSelectionMessage(spec, selection, fallbackAction, t.locale)
|
|
273
|
-
);
|
|
274
|
-
if (result === false) setFailed(true);
|
|
275
|
-
else update((current) => ({ ...current, sent: selection }));
|
|
276
|
-
} catch {
|
|
277
|
-
setFailed(true);
|
|
278
|
-
} finally {
|
|
279
|
-
setSending(false);
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
const itemProps = {
|
|
283
|
-
spec,
|
|
284
|
-
selected: state.selected,
|
|
285
|
-
hovered,
|
|
286
|
-
onHover: setHovered,
|
|
287
|
-
onToggle: canPick ? toggle : void 0,
|
|
288
|
-
atMax: max > 1 && state.selected.length >= max,
|
|
289
|
-
best,
|
|
290
|
-
words,
|
|
291
|
-
single: max === 1
|
|
292
|
-
};
|
|
293
|
-
return /* @__PURE__ */ jsxs2(
|
|
294
|
-
"section",
|
|
295
|
-
{
|
|
296
|
-
"aria-labelledby": spec.title ? titleId : void 0,
|
|
297
|
-
"aria-label": spec.title ? void 0 : t("interactiveAnswer.options"),
|
|
298
|
-
"aria-busy": streamState === "streaming" && !complete || void 0,
|
|
299
|
-
className: "og-interactive-answer @container/answer my-3 flex min-w-0 flex-col gap-3 first:mt-0",
|
|
300
|
-
children: [
|
|
301
|
-
spec.title || interactive && spec.fields.length > 0 ? (
|
|
302
|
-
// Without a title, narrow answers have no header: the switch is hidden there.
|
|
303
|
-
/* @__PURE__ */ jsxs2(
|
|
304
|
-
"header",
|
|
305
|
-
{
|
|
306
|
-
className: cn("flex min-w-0 items-center gap-3", !spec.title && "hidden @md/answer:flex"),
|
|
307
|
-
children: [
|
|
308
|
-
spec.title ? /* @__PURE__ */ jsx2(
|
|
309
|
-
"h3",
|
|
310
|
-
{
|
|
311
|
-
id: titleId,
|
|
312
|
-
className: "m-0 min-w-0 flex-1 text-og-md leading-6 font-medium text-og-fg",
|
|
313
|
-
children: spec.title
|
|
314
|
-
}
|
|
315
|
-
) : /* @__PURE__ */ jsx2("span", { className: "flex-1" }),
|
|
316
|
-
interactive && spec.fields.length > 0 ? /* @__PURE__ */ jsx2(
|
|
317
|
-
ViewSwitch,
|
|
318
|
-
{
|
|
319
|
-
view: showTable ? "table" : "cards",
|
|
320
|
-
onChange: (next) => update((current) => ({ ...current, view: next }))
|
|
321
|
-
}
|
|
322
|
-
) : null
|
|
323
|
-
]
|
|
324
|
-
}
|
|
325
|
-
)
|
|
326
|
-
) : null,
|
|
327
|
-
filterFields.length > 0 ? /* @__PURE__ */ jsx2(
|
|
328
|
-
Filters,
|
|
329
|
-
{
|
|
330
|
-
fields: filterFields,
|
|
331
|
-
items: spec.items,
|
|
332
|
-
filters: state.filters,
|
|
333
|
-
words,
|
|
334
|
-
onChange: (key, values) => update((current) => ({ ...current, filters: { ...current.filters, [key]: values } }))
|
|
335
|
-
}
|
|
336
|
-
) : null,
|
|
337
|
-
spec.chart ? /* @__PURE__ */ jsx2(
|
|
338
|
-
BarChart,
|
|
339
|
-
{
|
|
340
|
-
...itemProps,
|
|
341
|
-
field: spec.fields.find((field) => field.key === spec.chart),
|
|
342
|
-
items: visible
|
|
343
|
-
}
|
|
344
|
-
) : null,
|
|
345
|
-
visible.length === 0 ? /* @__PURE__ */ jsxs2("p", { className: "m-0 flex flex-wrap items-center gap-x-2 text-og-sm text-og-fg-muted", children: [
|
|
346
|
-
t("interactiveAnswer.noMatches"),
|
|
347
|
-
/* @__PURE__ */ jsx2(
|
|
348
|
-
"button",
|
|
349
|
-
{
|
|
350
|
-
type: "button",
|
|
351
|
-
className: "cursor-pointer rounded-og-sm text-og-fg underline decoration-og-border-strong underline-offset-2 hover:decoration-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
|
|
352
|
-
onClick: () => update((current) => ({ ...current, filters: {} })),
|
|
353
|
-
children: t("interactiveAnswer.showAll")
|
|
354
|
-
}
|
|
355
|
-
)
|
|
356
|
-
] }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
357
|
-
showTable ? (
|
|
358
|
-
// Narrow answers (a phone, a side panel) read the same options as cards,
|
|
359
|
-
// so no column hides off-screen.
|
|
360
|
-
/* @__PURE__ */ jsx2("div", { className: "hidden min-w-0 @md/answer:block", children: /* @__PURE__ */ jsx2(
|
|
361
|
-
OptionTable,
|
|
362
|
-
{
|
|
363
|
-
...itemProps,
|
|
364
|
-
items: visible,
|
|
365
|
-
sort: state.sort,
|
|
366
|
-
onSort: (key, field) => update((current) => ({
|
|
367
|
-
...current,
|
|
368
|
-
sort: nextInteractiveSort(current.sort, key, field)
|
|
369
|
-
}))
|
|
370
|
-
}
|
|
371
|
-
) })
|
|
372
|
-
) : null,
|
|
373
|
-
/* @__PURE__ */ jsx2(
|
|
374
|
-
"div",
|
|
375
|
-
{
|
|
376
|
-
className: cn(
|
|
377
|
-
"grid min-w-0 grid-cols-1 gap-2 @lg/answer:grid-cols-2",
|
|
378
|
-
showTable && "@md/answer:hidden"
|
|
379
|
-
),
|
|
380
|
-
children: visible.map((item) => /* @__PURE__ */ jsx2(OptionCard, { item, ...itemProps }, item.id))
|
|
381
|
-
}
|
|
382
|
-
)
|
|
383
|
-
] }),
|
|
384
|
-
interactive && (activeFilters || spec.omitted > 0) ? /* @__PURE__ */ jsx2("p", { className: "m-0 text-og-xs text-og-fg-subtle", children: activeFilters ? t("interactiveAnswer.showing", { shown: visible.length, total: spec.items.length }) : t("interactiveAnswer.omitted", { count: spec.omitted }) }) : null,
|
|
385
|
-
streamState === "streaming" && !complete ? /* @__PURE__ */ jsx2(AnswerStatus, { streaming: true }) : null,
|
|
386
|
-
streamState === "incomplete" && !complete ? /* @__PURE__ */ jsx2("p", { className: "m-0 text-og-sm text-og-fg-muted", children: t("interactiveAnswer.stopped") }) : null,
|
|
387
|
-
canPick ? /* @__PURE__ */ jsx2(
|
|
388
|
-
PickBar,
|
|
389
|
-
{
|
|
390
|
-
spec,
|
|
391
|
-
max,
|
|
392
|
-
selected: state.selected,
|
|
393
|
-
sent,
|
|
394
|
-
sending,
|
|
395
|
-
failed,
|
|
396
|
-
action: interactiveActionLabel(spec, fallbackAction),
|
|
397
|
-
onClear: () => update((current) => ({ ...current, selected: [] })),
|
|
398
|
-
onSend: () => void send()
|
|
399
|
-
}
|
|
400
|
-
) : null
|
|
401
|
-
]
|
|
402
|
-
}
|
|
403
|
-
);
|
|
404
|
-
}
|
|
405
|
-
function ViewSwitch({
|
|
406
|
-
view,
|
|
407
|
-
onChange
|
|
408
|
-
}) {
|
|
409
|
-
const t = useOpenGeniText();
|
|
410
|
-
const options = [
|
|
411
|
-
{ id: "cards", label: t("interactiveAnswer.cards"), icon: LayoutGridIcon },
|
|
412
|
-
{ id: "table", label: t("interactiveAnswer.table"), icon: Table2Icon }
|
|
413
|
-
];
|
|
414
|
-
return /* @__PURE__ */ jsx2(
|
|
415
|
-
"div",
|
|
416
|
-
{
|
|
417
|
-
role: "group",
|
|
418
|
-
"aria-label": t("interactiveAnswer.viewAs"),
|
|
419
|
-
className: "hidden shrink-0 items-center rounded-og-md bg-og-fg/[0.05] p-0.5 @md/answer:inline-flex",
|
|
420
|
-
children: options.map(({ id, label, icon: Icon }) => /* @__PURE__ */ jsxs2(
|
|
421
|
-
"button",
|
|
422
|
-
{
|
|
423
|
-
type: "button",
|
|
424
|
-
"aria-pressed": view === id,
|
|
425
|
-
title: label,
|
|
426
|
-
onClick: () => onChange(id),
|
|
427
|
-
className: cn(
|
|
428
|
-
"inline-flex h-7 cursor-pointer items-center gap-1.5 rounded-[calc(var(--og-radius-md)-2px)] px-2 text-og-xs font-medium transition-colors duration-150 pointer-coarse:h-9 pointer-coarse:px-3",
|
|
429
|
-
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
|
|
430
|
-
view === id ? "bg-og-surface-1 text-og-fg shadow-[0_1px_2px_rgb(0_0_0/0.08)]" : "text-og-fg-muted hover:text-og-fg"
|
|
431
|
-
),
|
|
432
|
-
children: [
|
|
433
|
-
/* @__PURE__ */ jsx2(Icon, { "aria-hidden": "true", className: "size-3.5" }),
|
|
434
|
-
/* @__PURE__ */ jsx2("span", { children: label })
|
|
435
|
-
]
|
|
436
|
-
},
|
|
437
|
-
id
|
|
438
|
-
))
|
|
439
|
-
}
|
|
440
|
-
);
|
|
441
|
-
}
|
|
442
|
-
function Filters({
|
|
443
|
-
fields,
|
|
444
|
-
items,
|
|
445
|
-
filters,
|
|
446
|
-
words,
|
|
447
|
-
onChange
|
|
448
|
-
}) {
|
|
449
|
-
return /* @__PURE__ */ jsx2("div", { className: "flex min-w-0 flex-col gap-2", children: fields.map((field) => {
|
|
450
|
-
const options = interactiveFilterOptions(field, items);
|
|
451
|
-
if (options.length === 0) return null;
|
|
452
|
-
const active = filters[field.key] ?? [];
|
|
453
|
-
return /* @__PURE__ */ jsxs2(
|
|
454
|
-
"div",
|
|
455
|
-
{
|
|
456
|
-
role: "group",
|
|
457
|
-
"aria-label": field.label,
|
|
458
|
-
className: "flex min-w-0 flex-wrap items-center gap-1.5",
|
|
459
|
-
children: [
|
|
460
|
-
/* @__PURE__ */ jsx2("span", { className: "mr-1 text-og-xs text-og-fg-subtle", children: field.label }),
|
|
461
|
-
options.map((option) => {
|
|
462
|
-
const on = active.includes(option);
|
|
463
|
-
return /* @__PURE__ */ jsxs2(
|
|
464
|
-
"button",
|
|
465
|
-
{
|
|
466
|
-
type: "button",
|
|
467
|
-
"aria-pressed": on,
|
|
468
|
-
onClick: () => onChange(
|
|
469
|
-
field.key,
|
|
470
|
-
on ? active.filter((value) => value !== option) : [...active, option]
|
|
471
|
-
),
|
|
472
|
-
className: cn(
|
|
473
|
-
"inline-flex h-7 cursor-pointer items-center gap-1 rounded-full border px-2.5 text-og-xs transition-colors duration-150 pointer-coarse:h-9 pointer-coarse:px-3",
|
|
474
|
-
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
|
|
475
|
-
on ? "border-og-fg bg-og-fg text-og-bg" : "border-og-border text-og-fg-muted hover:border-og-border-strong hover:text-og-fg"
|
|
476
|
-
),
|
|
477
|
-
children: [
|
|
478
|
-
on ? /* @__PURE__ */ jsx2(CheckIcon2, { "aria-hidden": "true", className: "size-3" }) : null,
|
|
479
|
-
formatInteractiveValue(field, option, words)
|
|
480
|
-
]
|
|
481
|
-
},
|
|
482
|
-
String(option)
|
|
483
|
-
);
|
|
484
|
-
})
|
|
485
|
-
]
|
|
486
|
-
},
|
|
487
|
-
field.key
|
|
488
|
-
);
|
|
489
|
-
}) });
|
|
490
|
-
}
|
|
491
|
-
function SelectMark({ on, single }) {
|
|
492
|
-
return /* @__PURE__ */ jsx2(
|
|
493
|
-
"span",
|
|
494
|
-
{
|
|
495
|
-
"aria-hidden": "true",
|
|
496
|
-
className: cn(
|
|
497
|
-
"inline-flex size-[18px] shrink-0 items-center justify-center border transition-colors duration-150",
|
|
498
|
-
single ? "rounded-full" : "rounded-[5px]",
|
|
499
|
-
on ? "border-og-fg bg-og-fg text-og-bg" : "border-og-border-strong bg-og-surface-1 group-hover/option:border-og-fg-muted"
|
|
500
|
-
),
|
|
501
|
-
children: on ? single ? /* @__PURE__ */ jsx2("span", { className: "size-1.5 rounded-full bg-og-bg" }) : /* @__PURE__ */ jsx2(CheckIcon2, { className: "size-3", strokeWidth: 3 }) : null
|
|
502
|
-
}
|
|
503
|
-
);
|
|
504
|
-
}
|
|
505
|
-
function BestMark() {
|
|
506
|
-
const t = useOpenGeniText();
|
|
507
|
-
return /* @__PURE__ */ jsxs2("span", { className: "inline-flex items-center gap-0.5 text-[11px] leading-4 font-medium text-og-status-idle", children: [
|
|
508
|
-
/* @__PURE__ */ jsx2(CheckIcon2, { "aria-hidden": "true", className: "size-3", strokeWidth: 2.5 }),
|
|
509
|
-
t("interactiveAnswer.best")
|
|
510
|
-
] });
|
|
511
|
-
}
|
|
512
|
-
function OptionCard({
|
|
513
|
-
item,
|
|
514
|
-
spec,
|
|
515
|
-
selected,
|
|
516
|
-
hovered,
|
|
517
|
-
onHover,
|
|
518
|
-
onToggle,
|
|
519
|
-
atMax,
|
|
520
|
-
best,
|
|
521
|
-
words,
|
|
522
|
-
single
|
|
523
|
-
}) {
|
|
524
|
-
const t = useOpenGeniText();
|
|
525
|
-
const on = selected.includes(item.id);
|
|
526
|
-
const disabled = Boolean(onToggle) && !on && atMax;
|
|
527
|
-
const facts = spec.fields.filter((field) => {
|
|
528
|
-
const value = item.values[field.key];
|
|
529
|
-
return value !== void 0 && value !== null && value !== "";
|
|
530
|
-
});
|
|
531
|
-
const Root = onToggle ? "label" : "div";
|
|
532
|
-
return /* @__PURE__ */ jsxs2(
|
|
533
|
-
Root,
|
|
534
|
-
{
|
|
535
|
-
"data-option-id": item.id,
|
|
536
|
-
onPointerEnter: () => onHover(item.id),
|
|
537
|
-
onPointerLeave: () => onHover(null),
|
|
538
|
-
className: cn(
|
|
539
|
-
"group/option relative flex min-w-0 gap-3 rounded-og-lg border bg-og-surface-1 px-3.5 py-3 transition-[border-color,background-color,box-shadow] duration-150",
|
|
540
|
-
onToggle && !disabled && "cursor-pointer",
|
|
541
|
-
disabled && "opacity-60",
|
|
542
|
-
on ? "border-og-fg bg-og-fg/[0.025]" : hovered === item.id ? "border-og-border-strong bg-og-hover" : "border-og-border",
|
|
543
|
-
"has-[input:focus-visible]:ring-2 has-[input:focus-visible]:ring-og-accent/45"
|
|
544
|
-
),
|
|
545
|
-
children: [
|
|
546
|
-
onToggle ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
547
|
-
/* @__PURE__ */ jsx2(
|
|
548
|
-
"input",
|
|
549
|
-
{
|
|
550
|
-
type: single ? "radio" : "checkbox",
|
|
551
|
-
className: "sr-only",
|
|
552
|
-
checked: on,
|
|
553
|
-
disabled,
|
|
554
|
-
"aria-label": t("interactiveAnswer.select", { title: item.title }),
|
|
555
|
-
onChange: () => onToggle(item.id)
|
|
556
|
-
}
|
|
557
|
-
),
|
|
558
|
-
/* @__PURE__ */ jsx2("span", { className: "pt-0.5", children: /* @__PURE__ */ jsx2(SelectMark, { on, single }) })
|
|
559
|
-
] }) : null,
|
|
560
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
561
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
562
|
-
/* @__PURE__ */ jsxs2("div", { className: "min-w-0 flex-1", children: [
|
|
563
|
-
/* @__PURE__ */ jsx2("div", { className: "text-og-sm leading-5 font-medium text-og-fg", children: item.title }),
|
|
564
|
-
item.subtitle ? /* @__PURE__ */ jsx2("div", { className: "text-og-xs leading-4 text-og-fg-muted", children: item.subtitle }) : null
|
|
565
|
-
] }),
|
|
566
|
-
item.badge ? /* @__PURE__ */ jsx2("span", { className: "shrink-0 rounded-full bg-og-fg/[0.07] px-2 py-0.5 text-[11px] leading-4 font-medium text-og-fg", children: item.badge }) : null
|
|
567
|
-
] }),
|
|
568
|
-
item.description ? /* @__PURE__ */ jsx2("p", { className: "m-0 line-clamp-2 text-og-sm leading-5 text-og-fg-muted", children: item.description }) : null,
|
|
569
|
-
facts.length > 0 ? /* @__PURE__ */ jsx2("dl", { className: "m-0 mt-1.5 flex flex-wrap gap-x-5 gap-y-2", children: facts.map((field) => {
|
|
570
|
-
const isBest = best.get(field.key)?.has(item.id);
|
|
571
|
-
return /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col", children: [
|
|
572
|
-
/* @__PURE__ */ jsxs2("dt", { className: "flex items-center gap-1.5 text-og-xs leading-4 text-og-fg-subtle", children: [
|
|
573
|
-
field.label,
|
|
574
|
-
isBest ? /* @__PURE__ */ jsx2(BestMark, {}) : null
|
|
575
|
-
] }),
|
|
576
|
-
/* @__PURE__ */ jsx2("dd", { className: "m-0 min-w-0 text-og-sm leading-5 text-og-fg tabular-nums", children: formatInteractiveValue(field, item.values[field.key], words, t.locale) })
|
|
577
|
-
] }, field.key);
|
|
578
|
-
}) }) : null,
|
|
579
|
-
item.url ? /* @__PURE__ */ jsxs2(
|
|
580
|
-
"a",
|
|
581
|
-
{
|
|
582
|
-
href: item.url,
|
|
583
|
-
target: "_blank",
|
|
584
|
-
rel: "noreferrer noopener",
|
|
585
|
-
onClick: (event) => event.stopPropagation(),
|
|
586
|
-
className: "relative z-10 mt-1 inline-flex w-fit items-center gap-1 rounded-og-sm text-og-xs font-medium text-og-fg-muted underline decoration-og-border-strong underline-offset-2 hover:text-og-fg hover:decoration-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
|
|
587
|
-
children: [
|
|
588
|
-
hostLabel(item.url),
|
|
589
|
-
/* @__PURE__ */ jsx2(ArrowUpRightIcon, { "aria-hidden": "true", className: "size-3" })
|
|
590
|
-
]
|
|
591
|
-
}
|
|
592
|
-
) : null
|
|
593
|
-
] })
|
|
594
|
-
]
|
|
595
|
-
}
|
|
596
|
-
);
|
|
597
|
-
}
|
|
598
|
-
function hostLabel(url) {
|
|
599
|
-
try {
|
|
600
|
-
return new URL(url).hostname.replace(/^www\./, "");
|
|
601
|
-
} catch {
|
|
602
|
-
return url;
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
var INLINE_UNITS = /* @__PURE__ */ new Set(["$", "\u20AC", "\xA3", "\xA5", "US$", "%"]);
|
|
606
|
-
function OptionTable({
|
|
607
|
-
items,
|
|
608
|
-
spec,
|
|
609
|
-
selected,
|
|
610
|
-
hovered,
|
|
611
|
-
onHover,
|
|
612
|
-
onToggle,
|
|
613
|
-
atMax,
|
|
614
|
-
best,
|
|
615
|
-
words,
|
|
616
|
-
single,
|
|
617
|
-
sort,
|
|
618
|
-
onSort
|
|
619
|
-
}) {
|
|
620
|
-
const t = useOpenGeniText();
|
|
621
|
-
const header = (key, label, field, numeric) => {
|
|
622
|
-
const active = sort?.key === key;
|
|
623
|
-
const Arrow = active && sort?.direction === "desc" ? ArrowDownIcon : ArrowUpIcon;
|
|
624
|
-
const arrow = /* @__PURE__ */ jsx2(
|
|
625
|
-
Arrow,
|
|
626
|
-
{
|
|
627
|
-
"aria-hidden": "true",
|
|
628
|
-
className: cn(
|
|
629
|
-
"size-3 shrink-0 transition-opacity",
|
|
630
|
-
active ? "opacity-100" : "opacity-0 group-hover/sort:opacity-60"
|
|
631
|
-
)
|
|
632
|
-
}
|
|
633
|
-
);
|
|
634
|
-
return /* @__PURE__ */ jsx2(
|
|
635
|
-
"th",
|
|
636
|
-
{
|
|
637
|
-
scope: "col",
|
|
638
|
-
"aria-sort": active ? sort?.direction === "asc" ? "ascending" : "descending" : void 0,
|
|
639
|
-
className: cn(
|
|
640
|
-
"border-b border-og-border px-2.5 py-2 text-left align-bottom font-normal first:pl-0",
|
|
641
|
-
numeric && "text-right",
|
|
642
|
-
numeric && field?.better && "pr-6"
|
|
643
|
-
),
|
|
644
|
-
children: /* @__PURE__ */ jsxs2(
|
|
645
|
-
"button",
|
|
646
|
-
{
|
|
647
|
-
type: "button",
|
|
648
|
-
onClick: () => onSort(key, field),
|
|
649
|
-
className: cn(
|
|
650
|
-
// align-bottom: an inline-flex box takes its baseline from its first
|
|
651
|
-
// item, and a leading arrow icon would lift numeric headers.
|
|
652
|
-
"group/sort inline-flex cursor-pointer items-center gap-1 rounded-og-sm align-bottom text-og-xs whitespace-nowrap focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
|
|
653
|
-
active ? "text-og-fg" : "text-og-fg-subtle hover:text-og-fg"
|
|
654
|
-
),
|
|
655
|
-
children: [
|
|
656
|
-
numeric ? arrow : null,
|
|
657
|
-
/* @__PURE__ */ jsxs2("span", { children: [
|
|
658
|
-
label,
|
|
659
|
-
field?.unit && !INLINE_UNITS.has(field.unit) ? /* @__PURE__ */ jsxs2("span", { className: "text-og-fg-subtle", children: [
|
|
660
|
-
" (",
|
|
661
|
-
field.unit,
|
|
662
|
-
")"
|
|
663
|
-
] }) : null
|
|
664
|
-
] }),
|
|
665
|
-
numeric ? null : arrow
|
|
666
|
-
]
|
|
667
|
-
}
|
|
668
|
-
)
|
|
669
|
-
},
|
|
670
|
-
key
|
|
671
|
-
);
|
|
672
|
-
};
|
|
673
|
-
const numericField = (field) => spec.items.some((item) => typeof item.values[field.key] === "number");
|
|
674
|
-
return /* @__PURE__ */ jsxs2("div", { className: "min-w-0 overflow-x-auto [scrollbar-gutter:stable]", children: [
|
|
675
|
-
/* @__PURE__ */ jsxs2("table", { className: "w-full border-collapse text-og-sm", children: [
|
|
676
|
-
/* @__PURE__ */ jsx2("thead", { children: /* @__PURE__ */ jsxs2("tr", { children: [
|
|
677
|
-
onToggle ? /* @__PURE__ */ jsx2("th", { scope: "col", className: "w-8 border-b border-og-border py-2 pr-1", children: /* @__PURE__ */ jsx2("span", { className: "sr-only", children: t("interactiveAnswer.selected") }) }) : null,
|
|
678
|
-
header("title", t("interactiveAnswer.option")),
|
|
679
|
-
spec.fields.map((field) => header(field.key, field.label, field, numericField(field)))
|
|
680
|
-
] }) }),
|
|
681
|
-
/* @__PURE__ */ jsx2("tbody", { children: items.map((item) => {
|
|
682
|
-
const on = selected.includes(item.id);
|
|
683
|
-
const disabled = Boolean(onToggle) && !on && atMax;
|
|
684
|
-
return /* @__PURE__ */ jsxs2(
|
|
685
|
-
"tr",
|
|
686
|
-
{
|
|
687
|
-
"data-option-id": item.id,
|
|
688
|
-
onPointerEnter: () => onHover(item.id),
|
|
689
|
-
onPointerLeave: () => onHover(null),
|
|
690
|
-
onClick: (event) => {
|
|
691
|
-
if (event.target.closest("a,label,input")) return;
|
|
692
|
-
if (onToggle && !disabled) onToggle(item.id);
|
|
693
|
-
},
|
|
694
|
-
className: cn(
|
|
695
|
-
"transition-colors duration-150",
|
|
696
|
-
onToggle && !disabled && "cursor-pointer",
|
|
697
|
-
disabled && "opacity-60",
|
|
698
|
-
on ? "bg-og-fg/[0.06]" : hovered === item.id && "bg-og-hover"
|
|
699
|
-
),
|
|
700
|
-
children: [
|
|
701
|
-
onToggle ? /* @__PURE__ */ jsx2("td", { className: "border-b border-og-border py-2 pr-1 align-top", children: /* @__PURE__ */ jsxs2("label", { className: "group/option relative inline-flex cursor-pointer pt-0.5 has-[input:focus-visible]:rounded-[5px] has-[input:focus-visible]:ring-2 has-[input:focus-visible]:ring-og-accent/45", children: [
|
|
702
|
-
/* @__PURE__ */ jsx2(
|
|
703
|
-
"input",
|
|
704
|
-
{
|
|
705
|
-
type: single ? "radio" : "checkbox",
|
|
706
|
-
className: "sr-only",
|
|
707
|
-
checked: on,
|
|
708
|
-
disabled,
|
|
709
|
-
"aria-label": t("interactiveAnswer.select", { title: item.title }),
|
|
710
|
-
onChange: () => onToggle(item.id)
|
|
711
|
-
}
|
|
712
|
-
),
|
|
713
|
-
/* @__PURE__ */ jsx2(SelectMark, { on, single })
|
|
714
|
-
] }) }) : null,
|
|
715
|
-
/* @__PURE__ */ jsxs2(
|
|
716
|
-
"th",
|
|
717
|
-
{
|
|
718
|
-
scope: "row",
|
|
719
|
-
className: "border-b border-og-border px-2.5 py-2 text-left align-top font-normal first:pl-0",
|
|
720
|
-
children: [
|
|
721
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex min-w-[9rem] flex-wrap items-center gap-x-1.5", children: [
|
|
722
|
-
/* @__PURE__ */ jsx2("span", { className: "font-medium text-og-fg", children: item.title }),
|
|
723
|
-
item.badge ? /* @__PURE__ */ jsx2("span", { className: "rounded-full bg-og-fg/[0.07] px-1.5 text-[10.5px] leading-4 font-medium text-og-fg", children: item.badge }) : null
|
|
724
|
-
] }),
|
|
725
|
-
item.subtitle ? /* @__PURE__ */ jsx2("div", { className: "text-og-xs text-og-fg-muted", children: item.subtitle }) : null
|
|
726
|
-
]
|
|
727
|
-
}
|
|
728
|
-
),
|
|
729
|
-
spec.fields.map((field) => {
|
|
730
|
-
const value = item.values[field.key];
|
|
731
|
-
const isBest = best.get(field.key)?.has(item.id);
|
|
732
|
-
return /* @__PURE__ */ jsxs2(
|
|
733
|
-
"td",
|
|
734
|
-
{
|
|
735
|
-
className: cn(
|
|
736
|
-
"border-b border-og-border px-2.5 py-2 align-top text-og-fg tabular-nums",
|
|
737
|
-
typeof value === "number" && "text-right whitespace-nowrap",
|
|
738
|
-
typeof value === "number" && field.better && "pr-2",
|
|
739
|
-
isBest && "font-medium",
|
|
740
|
-
(value === void 0 || value === null) && "text-og-fg-subtle"
|
|
741
|
-
),
|
|
742
|
-
children: [
|
|
743
|
-
formatInteractiveValue(
|
|
744
|
-
field.unit && !INLINE_UNITS.has(field.unit) ? { ...field, unit: void 0 } : field,
|
|
745
|
-
value,
|
|
746
|
-
words,
|
|
747
|
-
t.locale
|
|
748
|
-
),
|
|
749
|
-
field.better && typeof value === "number" ? (
|
|
750
|
-
// A fixed slot keeps numbers aligned whether or not they are best.
|
|
751
|
-
/* @__PURE__ */ jsx2("span", { className: "inline-flex w-3.5 justify-end", children: isBest ? /* @__PURE__ */ jsx2(
|
|
752
|
-
"span",
|
|
753
|
-
{
|
|
754
|
-
role: "img",
|
|
755
|
-
"aria-label": t("interactiveAnswer.best"),
|
|
756
|
-
className: "inline-block size-1.5 rounded-full bg-og-status-idle"
|
|
757
|
-
}
|
|
758
|
-
) : null })
|
|
759
|
-
) : null
|
|
760
|
-
]
|
|
761
|
-
},
|
|
762
|
-
field.key
|
|
763
|
-
);
|
|
764
|
-
})
|
|
765
|
-
]
|
|
766
|
-
},
|
|
767
|
-
item.id
|
|
768
|
-
);
|
|
769
|
-
}) })
|
|
770
|
-
] }),
|
|
771
|
-
best.size > 0 ? /* @__PURE__ */ jsxs2("p", { className: "m-0 mt-2 inline-flex items-center gap-1.5 text-og-xs text-og-fg-subtle", children: [
|
|
772
|
-
/* @__PURE__ */ jsx2(
|
|
773
|
-
"span",
|
|
774
|
-
{
|
|
775
|
-
"aria-hidden": "true",
|
|
776
|
-
className: "inline-block size-1.5 rounded-full bg-og-status-idle"
|
|
777
|
-
}
|
|
778
|
-
),
|
|
779
|
-
t("interactiveAnswer.bestInColumn")
|
|
780
|
-
] }) : null
|
|
781
|
-
] });
|
|
782
|
-
}
|
|
783
|
-
function BarChart({
|
|
784
|
-
field,
|
|
785
|
-
items,
|
|
786
|
-
selected,
|
|
787
|
-
hovered,
|
|
788
|
-
onHover,
|
|
789
|
-
onToggle,
|
|
790
|
-
atMax,
|
|
791
|
-
best,
|
|
792
|
-
words
|
|
793
|
-
}) {
|
|
794
|
-
const t = useOpenGeniText();
|
|
795
|
-
const values = items.map((item) => item.values[field.key]).filter((value) => typeof value === "number");
|
|
796
|
-
const top = Math.max(0, ...values);
|
|
797
|
-
const bottom = Math.min(0, ...values);
|
|
798
|
-
const span = top - bottom || 1;
|
|
799
|
-
const rows = items.filter((item) => typeof item.values[field.key] === "number");
|
|
800
|
-
if (rows.length === 0) return null;
|
|
801
|
-
return /* @__PURE__ */ jsxs2(
|
|
802
|
-
"figure",
|
|
803
|
-
{
|
|
804
|
-
className: "m-0 flex min-w-0 flex-col gap-1.5",
|
|
805
|
-
"aria-label": t("interactiveAnswer.chartLabel", { label: field.label }),
|
|
806
|
-
children: [
|
|
807
|
-
/* @__PURE__ */ jsxs2("figcaption", { className: "text-og-xs text-og-fg-subtle", children: [
|
|
808
|
-
field.label,
|
|
809
|
-
field.unit ? ` (${field.unit})` : ""
|
|
810
|
-
] }),
|
|
811
|
-
/* @__PURE__ */ jsx2("ul", { className: "m-0 grid list-none grid-cols-[minmax(0,1fr)_auto] gap-y-0.5 p-0 @md/answer:grid-cols-[minmax(5.5rem,34%)_minmax(0,1fr)_auto]", children: rows.map((item) => {
|
|
812
|
-
const value = item.values[field.key];
|
|
813
|
-
const on = selected.includes(item.id);
|
|
814
|
-
const lit = on || hovered === item.id;
|
|
815
|
-
const width = `${Math.max(1.5, Math.abs(value) / span * 100)}%`;
|
|
816
|
-
const disabled = !on && atMax;
|
|
817
|
-
const body = /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
818
|
-
/* @__PURE__ */ jsx2("span", { className: "col-start-1 row-start-1 min-w-0 truncate text-left text-og-xs leading-5 text-og-fg @md/answer:leading-6", children: item.title }),
|
|
819
|
-
/* @__PURE__ */ jsx2("span", { className: "col-span-2 col-start-1 row-start-2 flex h-4 min-w-0 items-center @md/answer:col-span-1 @md/answer:col-start-2 @md/answer:row-start-1 @md/answer:h-6", children: /* @__PURE__ */ jsx2(
|
|
820
|
-
"span",
|
|
821
|
-
{
|
|
822
|
-
className: cn(
|
|
823
|
-
"h-2.5 rounded-r-[4px] rounded-l-[2px] transition-[width,background-color] duration-300 ease-out motion-reduce:transition-none @md/answer:h-3.5",
|
|
824
|
-
on ? "bg-og-fg/85" : lit ? "bg-og-fg/40" : "bg-og-fg/[0.16]"
|
|
825
|
-
),
|
|
826
|
-
style: { width }
|
|
827
|
-
}
|
|
828
|
-
) }),
|
|
829
|
-
/* @__PURE__ */ jsxs2("span", { className: "col-start-2 row-start-1 text-right text-og-xs leading-5 whitespace-nowrap text-og-fg-muted tabular-nums @md/answer:col-start-3 @md/answer:text-left @md/answer:leading-6", children: [
|
|
830
|
-
formatInteractiveValue(field, value, words, t.locale),
|
|
831
|
-
best.get(field.key)?.has(item.id) ? /* @__PURE__ */ jsx2("span", { className: "ml-1.5 inline-flex align-[-2px]", children: /* @__PURE__ */ jsx2(BestMark, {}) }) : null
|
|
832
|
-
] })
|
|
833
|
-
] });
|
|
834
|
-
const rowClass = "col-span-full grid min-w-0 grid-cols-subgrid items-center gap-x-3 rounded-og-sm px-1 py-1 -mx-1 @md/answer:py-0";
|
|
835
|
-
return /* @__PURE__ */ jsx2(
|
|
836
|
-
"li",
|
|
837
|
-
{
|
|
838
|
-
"data-option-id": item.id,
|
|
839
|
-
className: "col-span-full grid grid-cols-subgrid",
|
|
840
|
-
onPointerEnter: () => onHover(item.id),
|
|
841
|
-
onPointerLeave: () => onHover(null),
|
|
842
|
-
children: onToggle ? /* @__PURE__ */ jsx2(
|
|
843
|
-
"button",
|
|
844
|
-
{
|
|
845
|
-
type: "button",
|
|
846
|
-
"aria-pressed": on,
|
|
847
|
-
disabled,
|
|
848
|
-
"aria-label": t("interactiveAnswer.select", { title: item.title }),
|
|
849
|
-
onClick: () => onToggle(item.id),
|
|
850
|
-
className: cn(
|
|
851
|
-
rowClass,
|
|
852
|
-
"cursor-pointer focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45 disabled:cursor-not-allowed disabled:opacity-60"
|
|
853
|
-
),
|
|
854
|
-
children: body
|
|
855
|
-
}
|
|
856
|
-
) : /* @__PURE__ */ jsx2("div", { className: rowClass, children: body })
|
|
857
|
-
},
|
|
858
|
-
item.id
|
|
859
|
-
);
|
|
860
|
-
}) })
|
|
861
|
-
]
|
|
862
|
-
}
|
|
863
|
-
);
|
|
864
|
-
}
|
|
865
|
-
function PickBar({
|
|
866
|
-
spec,
|
|
867
|
-
max,
|
|
868
|
-
selected,
|
|
869
|
-
sent,
|
|
870
|
-
sending,
|
|
871
|
-
failed,
|
|
872
|
-
action,
|
|
873
|
-
onClear,
|
|
874
|
-
onSend
|
|
875
|
-
}) {
|
|
876
|
-
const t = useOpenGeniText();
|
|
877
|
-
const names = spec.items.filter((item) => selected.includes(item.id)).map((item) => item.title);
|
|
878
|
-
const status = failed ? t("interactiveAnswer.sendFailed") : sent ? t("interactiveAnswer.sent") : selected.length === 0 ? max === 1 ? t("interactiveAnswer.pickOne") : max < spec.items.length ? t("interactiveAnswer.pickUpTo", { count: max }) : t("interactiveAnswer.pickAny") : max > 1 && selected.length >= max && max < spec.items.length ? t("interactiveAnswer.selectedMax", { count: selected.length }) : t("interactiveAnswer.selectedCount", { count: selected.length });
|
|
879
|
-
return /* @__PURE__ */ jsx2("div", { className: "@container/decision min-w-0 border-t border-og-border pt-3", children: /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col gap-2.5 @md/decision:flex-row @md/decision:items-center", children: [
|
|
880
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
881
|
-
/* @__PURE__ */ jsxs2(
|
|
882
|
-
"p",
|
|
883
|
-
{
|
|
884
|
-
role: "status",
|
|
885
|
-
"aria-live": "polite",
|
|
886
|
-
className: cn(
|
|
887
|
-
"m-0 flex items-center gap-1.5 text-og-sm",
|
|
888
|
-
failed ? "text-og-status-failed" : "text-og-fg-muted"
|
|
889
|
-
),
|
|
890
|
-
children: [
|
|
891
|
-
sent && !failed ? /* @__PURE__ */ jsx2(CheckIcon2, { "aria-hidden": "true", className: "size-3.5 text-og-status-running" }) : null,
|
|
892
|
-
/* @__PURE__ */ jsx2("span", { children: status }),
|
|
893
|
-
selected.length > 0 && !sent ? /* @__PURE__ */ jsx2(
|
|
894
|
-
"button",
|
|
895
|
-
{
|
|
896
|
-
type: "button",
|
|
897
|
-
onClick: onClear,
|
|
898
|
-
className: "cursor-pointer rounded-og-sm text-og-fg-subtle underline decoration-transparent underline-offset-2 hover:text-og-fg hover:decoration-current focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
|
|
899
|
-
children: t("interactiveAnswer.clear")
|
|
900
|
-
}
|
|
901
|
-
) : null
|
|
902
|
-
]
|
|
903
|
-
}
|
|
904
|
-
),
|
|
905
|
-
names.length > 0 ? /* @__PURE__ */ jsx2("p", { className: "m-0 truncate text-og-xs text-og-fg-subtle", children: names.join(", ") }) : null
|
|
906
|
-
] }),
|
|
907
|
-
/* @__PURE__ */ jsx2(
|
|
908
|
-
DecisionButton,
|
|
909
|
-
{
|
|
910
|
-
kind: sent ? "secondary" : "primary",
|
|
911
|
-
busy: sending,
|
|
912
|
-
disabled: selected.length === 0 || sent || sending,
|
|
913
|
-
onClick: onSend,
|
|
914
|
-
children: action
|
|
915
|
-
}
|
|
916
|
-
)
|
|
917
|
-
] }) });
|
|
918
|
-
}
|
|
919
|
-
function AnswerStatus({ streaming, title }) {
|
|
920
|
-
const t = useOpenGeniText();
|
|
921
|
-
return /* @__PURE__ */ jsxs2("div", { role: "status", "aria-live": "polite", className: "my-3 flex flex-col gap-2 first:mt-0", children: [
|
|
922
|
-
title ? /* @__PURE__ */ jsx2("h3", { className: "m-0 text-og-md leading-6 font-medium text-og-fg", children: title }) : null,
|
|
923
|
-
/* @__PURE__ */ jsxs2("p", { className: "m-0 inline-flex items-center gap-2 text-og-sm text-og-fg-muted", children: [
|
|
924
|
-
streaming ? /* @__PURE__ */ jsx2(
|
|
925
|
-
LoaderCircleIcon,
|
|
926
|
-
{
|
|
927
|
-
"aria-hidden": "true",
|
|
928
|
-
className: "size-3.5 animate-spin motion-reduce:animate-none"
|
|
929
|
-
}
|
|
930
|
-
) : null,
|
|
931
|
-
t("interactiveAnswer.writing")
|
|
932
|
-
] })
|
|
933
|
-
] });
|
|
934
|
-
}
|
|
935
|
-
function InvalidAnswer({ renderSource }) {
|
|
936
|
-
const t = useOpenGeniText();
|
|
937
|
-
const [open, setOpen] = useState2(false);
|
|
938
|
-
return /* @__PURE__ */ jsxs2("div", { className: "my-3 flex flex-col gap-2 first:mt-0", children: [
|
|
939
|
-
/* @__PURE__ */ jsxs2("p", { className: "m-0 flex flex-wrap items-center gap-x-2 text-og-sm text-og-fg-muted", children: [
|
|
940
|
-
t("interactiveAnswer.invalid"),
|
|
941
|
-
/* @__PURE__ */ jsx2(
|
|
942
|
-
"button",
|
|
943
|
-
{
|
|
944
|
-
type: "button",
|
|
945
|
-
"aria-expanded": open,
|
|
946
|
-
onClick: () => setOpen((value) => !value),
|
|
947
|
-
className: "cursor-pointer rounded-og-sm text-og-fg underline decoration-og-border-strong underline-offset-2 hover:decoration-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
|
|
948
|
-
children: open ? t("interactiveAnswer.hideSource") : t("interactiveAnswer.showSource")
|
|
949
|
-
}
|
|
950
|
-
)
|
|
951
|
-
] }),
|
|
952
|
-
open ? renderSource() : null
|
|
953
|
-
] });
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
// src/components/lazy-part.tsx
|
|
957
|
-
import { Component, Suspense } from "react";
|
|
958
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
959
|
-
function LazyPart({
|
|
960
|
-
children,
|
|
961
|
-
fallback = null,
|
|
962
|
-
onLoadFailure = "notice",
|
|
963
|
-
failed
|
|
964
|
-
}) {
|
|
965
|
-
return /* @__PURE__ */ jsx3(
|
|
966
|
-
LazyPartBoundary,
|
|
967
|
-
{
|
|
968
|
-
failed: failed ?? (onLoadFailure === "notice" ? /* @__PURE__ */ jsx3(LoadFailureNotice, {}) : null),
|
|
969
|
-
children: /* @__PURE__ */ jsx3(Suspense, { fallback, children })
|
|
970
|
-
}
|
|
971
|
-
);
|
|
972
|
-
}
|
|
973
|
-
var LazyPartBoundary = class extends Component {
|
|
974
|
-
state = { error: null };
|
|
975
|
-
static getDerivedStateFromError(error) {
|
|
976
|
-
return { error: { value: error } };
|
|
977
|
-
}
|
|
978
|
-
render() {
|
|
979
|
-
const { error } = this.state;
|
|
980
|
-
if (!error) return this.props.children;
|
|
981
|
-
if (!isChunkLoadError(error.value)) throw error.value;
|
|
982
|
-
return this.props.failed;
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
|
-
|
|
986
|
-
// src/components/markdown.tsx
|
|
987
|
-
import {
|
|
988
|
-
Children,
|
|
989
|
-
createContext,
|
|
990
|
-
useContext,
|
|
991
|
-
isValidElement,
|
|
992
|
-
memo as memo2,
|
|
993
|
-
useEffect as useEffect4,
|
|
994
|
-
useMemo as useMemo2,
|
|
995
|
-
useReducer,
|
|
996
|
-
useRef as useRef3,
|
|
997
|
-
useState as useState4
|
|
998
|
-
} from "react";
|
|
999
|
-
import ReactMarkdown, {
|
|
1000
|
-
defaultUrlTransform
|
|
1001
|
-
} from "react-markdown";
|
|
1002
|
-
import remarkGfm from "remark-gfm";
|
|
1003
|
-
import { PanelsTopLeftIcon } from "lucide-react";
|
|
1004
|
-
|
|
1005
|
-
// src/lib/motion-inspect.ts
|
|
1006
|
-
var MOTION_INSPECT_SCALE = 1;
|
|
1007
|
-
|
|
1008
|
-
// src/components/preview-loading.tsx
|
|
1009
|
-
import { useEffect as useEffect2, useRef as useRef2 } from "react";
|
|
1010
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1011
|
-
function PreviewLoading() {
|
|
1012
|
-
const t = useOpenGeniText();
|
|
1013
|
-
const ref = useRef2(null);
|
|
1014
|
-
useEffect2(() => {
|
|
1015
|
-
const canvas = ref.current;
|
|
1016
|
-
if (!canvas) return;
|
|
1017
|
-
let ctx;
|
|
1018
|
-
try {
|
|
1019
|
-
ctx = canvas.getContext("2d");
|
|
1020
|
-
} catch {
|
|
1021
|
-
return;
|
|
1022
|
-
}
|
|
1023
|
-
if (!ctx) return;
|
|
1024
|
-
const context = ctx;
|
|
1025
|
-
const motion = window.matchMedia?.("(prefers-reduced-motion: reduce)");
|
|
1026
|
-
let frame;
|
|
1027
|
-
let time = 2;
|
|
1028
|
-
let last;
|
|
1029
|
-
let disposed = false;
|
|
1030
|
-
let visible = false;
|
|
1031
|
-
const canAnimate = () => !disposed && visible && !document.hidden && motion?.matches === false;
|
|
1032
|
-
function draw() {
|
|
1033
|
-
const w = canvas.clientWidth;
|
|
1034
|
-
const h = canvas.clientHeight;
|
|
1035
|
-
if (!w || !h || document.hidden || disposed) return;
|
|
1036
|
-
const d = Math.min(window.devicePixelRatio || 1, 2);
|
|
1037
|
-
if (canvas.width !== Math.round(w * d) || canvas.height !== Math.round(h * d)) {
|
|
1038
|
-
canvas.width = Math.round(w * d);
|
|
1039
|
-
canvas.height = Math.round(h * d);
|
|
1040
|
-
}
|
|
1041
|
-
const style = getComputedStyle(canvas);
|
|
1042
|
-
const ink = style.getPropertyValue("--_og-preview-ink").trim() || "#9fdccd";
|
|
1043
|
-
const glowColor = style.getPropertyValue("--_og-preview-glow").trim() || "#5fb8a3";
|
|
1044
|
-
context.setTransform(d, 0, 0, d, 0, 0);
|
|
1045
|
-
paintPreviewLoading(context, w, h, time, ink, glowColor);
|
|
1046
|
-
canvas.dataset.painted = "true";
|
|
1047
|
-
}
|
|
1048
|
-
function stop() {
|
|
1049
|
-
if (frame !== void 0) window.cancelAnimationFrame(frame);
|
|
1050
|
-
frame = void 0;
|
|
1051
|
-
last = void 0;
|
|
1052
|
-
}
|
|
1053
|
-
function tick(stamp) {
|
|
1054
|
-
frame = void 0;
|
|
1055
|
-
if (!canAnimate()) return;
|
|
1056
|
-
if (last !== void 0) time += Math.min((stamp - last) / 1e3, 0.05);
|
|
1057
|
-
last = stamp;
|
|
1058
|
-
draw();
|
|
1059
|
-
frame = window.requestAnimationFrame(tick);
|
|
1060
|
-
}
|
|
1061
|
-
function refresh() {
|
|
1062
|
-
stop();
|
|
1063
|
-
if (disposed || document.hidden || !visible && intersection) return;
|
|
1064
|
-
draw();
|
|
1065
|
-
if (canAnimate() && typeof window.requestAnimationFrame === "function") {
|
|
1066
|
-
frame = window.requestAnimationFrame(tick);
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
const intersection = typeof IntersectionObserver === "function" ? new IntersectionObserver(([entry]) => {
|
|
1070
|
-
visible = entry?.isIntersecting === true;
|
|
1071
|
-
refresh();
|
|
1072
|
-
}) : void 0;
|
|
1073
|
-
intersection?.observe(canvas);
|
|
1074
|
-
const resize = typeof ResizeObserver === "function" ? new ResizeObserver(refresh) : void 0;
|
|
1075
|
-
resize?.observe(canvas);
|
|
1076
|
-
const theme = typeof MutationObserver === "function" ? new MutationObserver(refresh) : void 0;
|
|
1077
|
-
for (let ancestor = canvas.parentElement; ancestor; ancestor = ancestor.parentElement) {
|
|
1078
|
-
theme?.observe(ancestor, {
|
|
1079
|
-
attributes: true,
|
|
1080
|
-
attributeFilter: ["class", "style", "data-og-theme"]
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
motion?.addEventListener?.("change", refresh);
|
|
1084
|
-
document.addEventListener("visibilitychange", refresh);
|
|
1085
|
-
window.addEventListener("resize", refresh);
|
|
1086
|
-
if (!intersection) draw();
|
|
1087
|
-
return () => {
|
|
1088
|
-
disposed = true;
|
|
1089
|
-
stop();
|
|
1090
|
-
intersection?.disconnect();
|
|
1091
|
-
resize?.disconnect();
|
|
1092
|
-
theme?.disconnect();
|
|
1093
|
-
motion?.removeEventListener?.("change", refresh);
|
|
1094
|
-
document.removeEventListener("visibilitychange", refresh);
|
|
1095
|
-
window.removeEventListener("resize", refresh);
|
|
1096
|
-
};
|
|
1097
|
-
}, []);
|
|
1098
|
-
return /* @__PURE__ */ jsxs3("div", { className: "og-preview-loading", children: [
|
|
1099
|
-
/* @__PURE__ */ jsx4("canvas", { ref, "aria-hidden": "true" }),
|
|
1100
|
-
/* @__PURE__ */ jsx4("span", { className: "og-preview-loading-label", children: t("previewLoading.preparingPreview") })
|
|
1101
|
-
] });
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
// src/components/remark-soft-line-breaks.ts
|
|
1105
|
-
var LINE_ENDING = /\r\n|\r|\n/g;
|
|
1106
|
-
var HAS_LINE_ENDING = /[\r\n]/;
|
|
1107
|
-
var LINE_PREFIX = /[\t >]*/y;
|
|
1108
|
-
function remarkSoftLineBreaks() {
|
|
1109
|
-
return (tree, file) => {
|
|
1110
|
-
walk(tree, typeof file?.value === "string" ? file.value : void 0);
|
|
1111
|
-
};
|
|
1112
|
-
}
|
|
1113
|
-
function walk(node, source) {
|
|
1114
|
-
if (!node.children) {
|
|
1115
|
-
return;
|
|
1116
|
-
}
|
|
1117
|
-
let next = null;
|
|
1118
|
-
for (let index = 0; index < node.children.length; index += 1) {
|
|
1119
|
-
const child = node.children[index];
|
|
1120
|
-
if (child.type === "text" && typeof child.value === "string" && HAS_LINE_ENDING.test(child.value)) {
|
|
1121
|
-
next ??= node.children.slice(0, index);
|
|
1122
|
-
next.push(...splitText(child, child.value, source));
|
|
1123
|
-
continue;
|
|
1124
|
-
}
|
|
1125
|
-
walk(child, source);
|
|
1126
|
-
next?.push(child);
|
|
1127
|
-
}
|
|
1128
|
-
if (next !== null) {
|
|
1129
|
-
node.children = next;
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
function splitText(node, value, source) {
|
|
1133
|
-
const segments = [];
|
|
1134
|
-
let cursor = 0;
|
|
1135
|
-
for (const match of value.matchAll(LINE_ENDING)) {
|
|
1136
|
-
segments.push({ value: value.slice(cursor, match.index), index: cursor });
|
|
1137
|
-
cursor = match.index + match[0].length;
|
|
1138
|
-
}
|
|
1139
|
-
segments.push({ value: value.slice(cursor), index: cursor });
|
|
1140
|
-
const starts = segmentStarts(node, segments, source);
|
|
1141
|
-
const nodeEnd = exactPoint(node.position?.end);
|
|
1142
|
-
const out = [];
|
|
1143
|
-
segments.forEach((segment, k) => {
|
|
1144
|
-
const start = starts?.[k];
|
|
1145
|
-
const isLast = k === segments.length - 1;
|
|
1146
|
-
const end = start === void 0 ? void 0 : isLast && nodeEnd !== void 0 ? nodeEnd : {
|
|
1147
|
-
line: start.line,
|
|
1148
|
-
column: start.column + segment.value.length,
|
|
1149
|
-
offset: start.offset + segment.value.length
|
|
1150
|
-
};
|
|
1151
|
-
if (segment.value.length > 0) {
|
|
1152
|
-
out.push({
|
|
1153
|
-
type: "text",
|
|
1154
|
-
value: segment.value,
|
|
1155
|
-
...start !== void 0 && end !== void 0 ? { position: { start, end } } : {}
|
|
1156
|
-
});
|
|
1157
|
-
}
|
|
1158
|
-
if (!isLast) {
|
|
1159
|
-
const nextStart = starts?.[k + 1];
|
|
1160
|
-
out.push({
|
|
1161
|
-
type: "break",
|
|
1162
|
-
...end !== void 0 && nextStart !== void 0 ? { position: { start: end, end: nextStart } } : {}
|
|
1163
|
-
});
|
|
1164
|
-
}
|
|
1165
|
-
});
|
|
1166
|
-
return out;
|
|
1167
|
-
}
|
|
1168
|
-
function segmentStarts(node, segments, source) {
|
|
1169
|
-
const start = exactPoint(node.position?.start);
|
|
1170
|
-
if (start === void 0) {
|
|
1171
|
-
return void 0;
|
|
1172
|
-
}
|
|
1173
|
-
const endOffset = node.position?.end?.offset;
|
|
1174
|
-
const lineStarts = [];
|
|
1175
|
-
if (source !== void 0 && endOffset !== void 0 && endOffset >= start.offset) {
|
|
1176
|
-
for (const match of source.slice(start.offset, endOffset).matchAll(LINE_ENDING)) {
|
|
1177
|
-
lineStarts.push(start.offset + match.index + match[0].length);
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
const anchoredSource = lineStarts.length === segments.length - 1 ? source : void 0;
|
|
1181
|
-
return segments.map((segment, k) => {
|
|
1182
|
-
if (k === 0) {
|
|
1183
|
-
return start;
|
|
1184
|
-
}
|
|
1185
|
-
if (anchoredSource !== void 0) {
|
|
1186
|
-
const lineStart = lineStarts[k - 1];
|
|
1187
|
-
LINE_PREFIX.lastIndex = lineStart;
|
|
1188
|
-
const prefix = LINE_PREFIX.exec(anchoredSource)?.[0].length ?? 0;
|
|
1189
|
-
return { line: start.line + k, column: prefix + 1, offset: lineStart + prefix };
|
|
1190
|
-
}
|
|
1191
|
-
return { line: start.line + k, column: 1, offset: start.offset + segment.index };
|
|
1192
|
-
});
|
|
1193
|
-
}
|
|
1194
|
-
function exactPoint(point) {
|
|
1195
|
-
if (point === void 0 || typeof point.line !== "number" || typeof point.column !== "number" || typeof point.offset !== "number") {
|
|
1196
|
-
return void 0;
|
|
1197
|
-
}
|
|
1198
|
-
return { line: point.line, column: point.column, offset: point.offset };
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
// src/components/rehype-inline-flow.ts
|
|
1202
|
-
var BLOCKS = /* @__PURE__ */ new Set([
|
|
1203
|
-
"p",
|
|
1204
|
-
"h1",
|
|
1205
|
-
"h2",
|
|
1206
|
-
"h3",
|
|
1207
|
-
"h4",
|
|
1208
|
-
"h5",
|
|
1209
|
-
"h6",
|
|
1210
|
-
"ul",
|
|
1211
|
-
"ol",
|
|
1212
|
-
"li",
|
|
1213
|
-
"blockquote",
|
|
1214
|
-
"pre",
|
|
1215
|
-
"hr",
|
|
1216
|
-
"table",
|
|
1217
|
-
"thead",
|
|
1218
|
-
"tbody",
|
|
1219
|
-
"tr",
|
|
1220
|
-
"th",
|
|
1221
|
-
"td",
|
|
1222
|
-
"div",
|
|
1223
|
-
"section"
|
|
1224
|
-
]);
|
|
1225
|
-
function isBlock(node) {
|
|
1226
|
-
return node.type === "element" && BLOCKS.has(node.tagName);
|
|
1227
|
-
}
|
|
1228
|
-
function isBlank(node) {
|
|
1229
|
-
return node.type === "text" && (node.value ?? "").trim() === "";
|
|
1230
|
-
}
|
|
1231
|
-
function text(value) {
|
|
1232
|
-
return { type: "text", value };
|
|
1233
|
-
}
|
|
1234
|
-
function rehypeInlineFlow(options = {}) {
|
|
1235
|
-
const separator = () => options.separator === "space" ? text(" ") : { type: "element", tagName: "br", properties: {}, children: [] };
|
|
1236
|
-
function runs(children, listKind, start = 1) {
|
|
1237
|
-
const hasBlock = children.some(isBlock);
|
|
1238
|
-
const result = [];
|
|
1239
|
-
let inline = [];
|
|
1240
|
-
let item = start;
|
|
1241
|
-
const flushInline = () => {
|
|
1242
|
-
if (inline.some((node) => !isBlank(node))) result.push(inline);
|
|
1243
|
-
inline = [];
|
|
1244
|
-
};
|
|
1245
|
-
for (const child of children) {
|
|
1246
|
-
if (!isBlock(child)) {
|
|
1247
|
-
if (!(hasBlock && isBlank(child))) inline.push(child);
|
|
1248
|
-
continue;
|
|
1249
|
-
}
|
|
1250
|
-
flushInline();
|
|
1251
|
-
const nested = child.tagName === "ul" || child.tagName === "ol" ? runs(
|
|
1252
|
-
child.children,
|
|
1253
|
-
child.tagName,
|
|
1254
|
-
child.tagName === "ol" && typeof child.properties?.start === "number" ? child.properties.start : 1
|
|
1255
|
-
) : runs(child.children);
|
|
1256
|
-
if (child.tagName === "li" && listKind) {
|
|
1257
|
-
const marker = listKind === "ol" ? `${item}. ` : "\u2022 ";
|
|
1258
|
-
item += 1;
|
|
1259
|
-
if (nested.length > 0) nested[0] = [text(marker), ...nested[0]];
|
|
1260
|
-
}
|
|
1261
|
-
result.push(...nested);
|
|
1262
|
-
}
|
|
1263
|
-
flushInline();
|
|
1264
|
-
return result;
|
|
1265
|
-
}
|
|
1266
|
-
return (tree) => {
|
|
1267
|
-
const flowed = [];
|
|
1268
|
-
for (const run of runs(tree.children ?? [])) {
|
|
1269
|
-
if (flowed.length > 0) flowed.push(separator());
|
|
1270
|
-
flowed.push(...run);
|
|
1271
|
-
}
|
|
1272
|
-
tree.children = flowed;
|
|
1273
|
-
};
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
// src/components/rehype-secret-refs.ts
|
|
1277
|
-
var MARKER = "{{secret";
|
|
1278
|
-
function rehypeSecretRefs(options) {
|
|
1279
|
-
const { tokenize } = options;
|
|
1280
|
-
return (tree) => {
|
|
1281
|
-
walk2(tree);
|
|
1282
|
-
};
|
|
1283
|
-
function walk2(node) {
|
|
1284
|
-
if (!node.children) return;
|
|
1285
|
-
let changed = false;
|
|
1286
|
-
const next = [];
|
|
1287
|
-
for (const child of node.children) {
|
|
1288
|
-
if (child.type === "text" && child.value.includes(MARKER)) {
|
|
1289
|
-
const split = splitText2(child);
|
|
1290
|
-
if (split) {
|
|
1291
|
-
next.push(...split);
|
|
1292
|
-
changed = true;
|
|
1293
|
-
continue;
|
|
1294
|
-
}
|
|
1295
|
-
} else if (child.type === "element") {
|
|
1296
|
-
const element = child;
|
|
1297
|
-
if (element.tagName === "code") {
|
|
1298
|
-
const chip = wholeReference(element);
|
|
1299
|
-
if (chip) {
|
|
1300
|
-
next.push(chip);
|
|
1301
|
-
changed = true;
|
|
1302
|
-
continue;
|
|
1303
|
-
}
|
|
1304
|
-
} else if (element.tagName !== "pre" && element.tagName !== "a") {
|
|
1305
|
-
walk2(element);
|
|
1306
|
-
}
|
|
1307
|
-
} else if ("children" in child) {
|
|
1308
|
-
walk2(child);
|
|
1309
|
-
}
|
|
1310
|
-
next.push(child);
|
|
1311
|
-
}
|
|
1312
|
-
if (changed) node.children = next;
|
|
1313
|
-
}
|
|
1314
|
-
function splitText2(node) {
|
|
1315
|
-
const tokens = tokenize(node.value);
|
|
1316
|
-
if (!tokens.some((token) => token.type === "reference")) return null;
|
|
1317
|
-
return tokens.map(
|
|
1318
|
-
(token) => token.type === "reference" ? chipPlaceholder(token.reference.raw) : { type: "text", value: token.type === "text" ? token.value : token.raw }
|
|
1319
|
-
);
|
|
1320
|
-
}
|
|
1321
|
-
function wholeReference(code) {
|
|
1322
|
-
if (code.children.length !== 1) return null;
|
|
1323
|
-
const only = code.children[0];
|
|
1324
|
-
if (only.type !== "text") return null;
|
|
1325
|
-
const value = only.value;
|
|
1326
|
-
if (!value.includes(MARKER)) return null;
|
|
1327
|
-
const tokens = tokenize(value.trim());
|
|
1328
|
-
const token = tokens.length === 1 ? tokens[0] : null;
|
|
1329
|
-
return token?.type === "reference" ? chipPlaceholder(token.reference.raw) : null;
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
function chipPlaceholder(raw) {
|
|
1333
|
-
return {
|
|
1334
|
-
type: "element",
|
|
1335
|
-
tagName: "span",
|
|
1336
|
-
properties: { dataOgSecretRef: raw },
|
|
1337
|
-
children: [{ type: "text", value: raw }]
|
|
1338
|
-
};
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
// src/components/soften-streaming-markdown.ts
|
|
1342
|
-
function softenStreamingMarkdown(source) {
|
|
1343
|
-
if (source.length === 0) {
|
|
1344
|
-
return source;
|
|
1345
|
-
}
|
|
1346
|
-
let text2 = source;
|
|
1347
|
-
if (countFences(text2) % 2 === 1) {
|
|
1348
|
-
text2 += text2.endsWith("\n") ? "```" : "\n```";
|
|
1349
|
-
}
|
|
1350
|
-
const segments = splitByFences(text2);
|
|
1351
|
-
for (const segment of segments) {
|
|
1352
|
-
if (segment.kind === "fence") {
|
|
1353
|
-
continue;
|
|
1354
|
-
}
|
|
1355
|
-
segment.value = closeInlineMarkers(segment.value);
|
|
1356
|
-
}
|
|
1357
|
-
let result = segments.map((segment) => segment.value).join("");
|
|
1358
|
-
if (text2.endsWith("\n") && !result.endsWith("\n")) {
|
|
1359
|
-
result += "\n";
|
|
1360
|
-
}
|
|
1361
|
-
return result;
|
|
1362
|
-
}
|
|
1363
|
-
function countFences(text2) {
|
|
1364
|
-
let count = 0;
|
|
1365
|
-
for (const line of text2.split("\n")) {
|
|
1366
|
-
if (/^ {0,3}```/.test(line)) {
|
|
1367
|
-
count += 1;
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
return count;
|
|
1371
|
-
}
|
|
1372
|
-
function splitByFences(text2) {
|
|
1373
|
-
const segments = [];
|
|
1374
|
-
const lines = text2.split("\n");
|
|
1375
|
-
let buf = [];
|
|
1376
|
-
let inFence = false;
|
|
1377
|
-
const flush = (kind, mode) => {
|
|
1378
|
-
if (buf.length === 0) {
|
|
1379
|
-
return;
|
|
1380
|
-
}
|
|
1381
|
-
let value = buf.join("\n");
|
|
1382
|
-
if (mode === "boundary") {
|
|
1383
|
-
value += "\n";
|
|
1384
|
-
}
|
|
1385
|
-
segments.push({ kind, value });
|
|
1386
|
-
buf = [];
|
|
1387
|
-
};
|
|
1388
|
-
for (const line of lines) {
|
|
1389
|
-
const isFence = /^ {0,3}```/.test(line);
|
|
1390
|
-
if (isFence) {
|
|
1391
|
-
if (inFence) {
|
|
1392
|
-
buf.push(line);
|
|
1393
|
-
flush("fence", "end");
|
|
1394
|
-
inFence = false;
|
|
1395
|
-
} else {
|
|
1396
|
-
flush("prose", "boundary");
|
|
1397
|
-
buf.push(line);
|
|
1398
|
-
inFence = true;
|
|
1399
|
-
}
|
|
1400
|
-
continue;
|
|
1401
|
-
}
|
|
1402
|
-
buf.push(line);
|
|
1403
|
-
}
|
|
1404
|
-
flush(inFence ? "fence" : "prose", "end");
|
|
1405
|
-
return segments;
|
|
1406
|
-
}
|
|
1407
|
-
function closeInlineMarkers(prose) {
|
|
1408
|
-
let text2 = prose;
|
|
1409
|
-
text2 = closeDelimiter(text2, "~~");
|
|
1410
|
-
text2 = closeDelimiter(text2, "**");
|
|
1411
|
-
text2 = closeDelimiter(text2, "__");
|
|
1412
|
-
text2 = closeSingleBackticks(text2);
|
|
1413
|
-
text2 = closeSingleAsterisks(text2);
|
|
1414
|
-
text2 = closeUnfinishedLink(text2);
|
|
1415
|
-
return text2;
|
|
1416
|
-
}
|
|
1417
|
-
function closeDelimiter(text2, delimiter) {
|
|
1418
|
-
let count = 0;
|
|
1419
|
-
let i = 0;
|
|
1420
|
-
while (i < text2.length) {
|
|
1421
|
-
if (text2[i] === "\\" && i + 1 < text2.length) {
|
|
1422
|
-
i += 2;
|
|
1423
|
-
continue;
|
|
1424
|
-
}
|
|
1425
|
-
if (text2.startsWith(delimiter, i)) {
|
|
1426
|
-
count += 1;
|
|
1427
|
-
i += delimiter.length;
|
|
1428
|
-
continue;
|
|
1429
|
-
}
|
|
1430
|
-
i += 1;
|
|
1431
|
-
}
|
|
1432
|
-
return count % 2 === 1 ? insertBeforeTrailingNewlines(text2, delimiter) : text2;
|
|
1433
|
-
}
|
|
1434
|
-
function insertBeforeTrailingNewlines(text2, suffix) {
|
|
1435
|
-
let end = text2.length;
|
|
1436
|
-
while (end > 0 && text2[end - 1] === "\n") {
|
|
1437
|
-
end -= 1;
|
|
1438
|
-
}
|
|
1439
|
-
return text2.slice(0, end) + suffix + text2.slice(end);
|
|
1440
|
-
}
|
|
1441
|
-
function closeSingleBackticks(text2) {
|
|
1442
|
-
let count = 0;
|
|
1443
|
-
for (let i = 0; i < text2.length; i += 1) {
|
|
1444
|
-
if (text2[i] === "\\" && i + 1 < text2.length) {
|
|
1445
|
-
i += 1;
|
|
1446
|
-
continue;
|
|
1447
|
-
}
|
|
1448
|
-
if (text2[i] === "`") {
|
|
1449
|
-
if (text2.startsWith("```", i)) {
|
|
1450
|
-
i += 2;
|
|
1451
|
-
continue;
|
|
1452
|
-
}
|
|
1453
|
-
count += 1;
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
return count % 2 === 1 ? insertBeforeTrailingNewlines(text2, "`") : text2;
|
|
1457
|
-
}
|
|
1458
|
-
function closeSingleAsterisks(text2) {
|
|
1459
|
-
let count = 0;
|
|
1460
|
-
for (let i = 0; i < text2.length; i += 1) {
|
|
1461
|
-
if (text2[i] === "\\" && i + 1 < text2.length) {
|
|
1462
|
-
i += 1;
|
|
1463
|
-
continue;
|
|
1464
|
-
}
|
|
1465
|
-
if (text2[i] === "*" && text2[i + 1] === "*") {
|
|
1466
|
-
i += 1;
|
|
1467
|
-
continue;
|
|
1468
|
-
}
|
|
1469
|
-
if (text2[i] === "*") {
|
|
1470
|
-
count += 1;
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
return count % 2 === 1 ? insertBeforeTrailingNewlines(text2, "*") : text2;
|
|
1474
|
-
}
|
|
1475
|
-
function closeUnfinishedLink(text2) {
|
|
1476
|
-
const open = text2.lastIndexOf("](");
|
|
1477
|
-
if (open === -1) {
|
|
1478
|
-
return text2;
|
|
1479
|
-
}
|
|
1480
|
-
const after = text2.slice(open + 2);
|
|
1481
|
-
if (after.includes(")")) {
|
|
1482
|
-
return text2;
|
|
1483
|
-
}
|
|
1484
|
-
if (after.includes("[")) {
|
|
1485
|
-
return text2;
|
|
1486
|
-
}
|
|
1487
|
-
return insertBeforeTrailingNewlines(text2, ")");
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
// src/components/stream-reveal.ts
|
|
1491
|
-
var INK_FADE_MS = 420 * MOTION_INSPECT_SCALE;
|
|
1492
|
-
var INITIAL_ANIMATED_LIMIT = 400;
|
|
1493
|
-
function createStreamReveal() {
|
|
1494
|
-
let batches = [];
|
|
1495
|
-
let revealedChars = -1;
|
|
1496
|
-
return {
|
|
1497
|
-
observe(text2, now) {
|
|
1498
|
-
if (revealedChars === -1) {
|
|
1499
|
-
revealedChars = text2.length > INITIAL_ANIMATED_LIMIT ? text2.length : 0;
|
|
1500
|
-
}
|
|
1501
|
-
if (text2.length <= revealedChars) {
|
|
1502
|
-
revealedChars = Math.max(revealedChars, text2.length);
|
|
1503
|
-
return;
|
|
1504
|
-
}
|
|
1505
|
-
batches.push({ start: revealedChars, end: text2.length, birth: now });
|
|
1506
|
-
revealedChars = text2.length;
|
|
1507
|
-
batches = batches.filter((batch) => batch.birth + INK_FADE_MS > now);
|
|
1508
|
-
},
|
|
1509
|
-
delayFor(offset, now) {
|
|
1510
|
-
const batch = findBatch(batches, offset);
|
|
1511
|
-
if (!batch) {
|
|
1512
|
-
return null;
|
|
1513
|
-
}
|
|
1514
|
-
const delay = batch.birth - now;
|
|
1515
|
-
return delay + INK_FADE_MS <= 0 ? null : delay;
|
|
1516
|
-
},
|
|
1517
|
-
hasActive(now) {
|
|
1518
|
-
const last = batches[batches.length - 1];
|
|
1519
|
-
return last !== void 0 && last.birth + INK_FADE_MS > now;
|
|
1520
|
-
}
|
|
1521
|
-
};
|
|
1522
|
-
}
|
|
1523
|
-
function findBatch(batches, offset) {
|
|
1524
|
-
let low = 0;
|
|
1525
|
-
let high = batches.length - 1;
|
|
1526
|
-
while (low <= high) {
|
|
1527
|
-
const mid = low + high >> 1;
|
|
1528
|
-
const batch = batches[mid];
|
|
1529
|
-
if (offset < batch.start) {
|
|
1530
|
-
high = mid - 1;
|
|
1531
|
-
} else if (offset >= batch.end) {
|
|
1532
|
-
low = mid + 1;
|
|
1533
|
-
} else {
|
|
1534
|
-
return batch;
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
return null;
|
|
1538
|
-
}
|
|
1539
|
-
function rehypeStreamReveal(options) {
|
|
1540
|
-
const { reveal, now } = options;
|
|
1541
|
-
return (tree) => {
|
|
1542
|
-
walk2(tree, false);
|
|
1543
|
-
};
|
|
1544
|
-
function walk2(node, insideVerbatim) {
|
|
1545
|
-
if (!node.children) {
|
|
1546
|
-
return;
|
|
1547
|
-
}
|
|
1548
|
-
const verbatim = insideVerbatim || node.tagName === "code" || node.tagName === "pre";
|
|
1549
|
-
const next = [];
|
|
1550
|
-
for (const child of node.children) {
|
|
1551
|
-
if (child.type === "text" && !verbatim) {
|
|
1552
|
-
next.push(...splitTextNode(child));
|
|
1553
|
-
continue;
|
|
1554
|
-
}
|
|
1555
|
-
walk2(child, verbatim);
|
|
1556
|
-
next.push(child);
|
|
1557
|
-
}
|
|
1558
|
-
node.children = next;
|
|
1559
|
-
}
|
|
1560
|
-
function splitTextNode(node) {
|
|
1561
|
-
const sourceOffset = node.position?.start?.offset;
|
|
1562
|
-
if (sourceOffset === void 0) {
|
|
1563
|
-
return [node];
|
|
1564
|
-
}
|
|
1565
|
-
const value = node.value;
|
|
1566
|
-
const out = [];
|
|
1567
|
-
let plain = "";
|
|
1568
|
-
const flushPlain = () => {
|
|
1569
|
-
if (plain.length > 0) {
|
|
1570
|
-
out.push({ type: "text", value: plain });
|
|
1571
|
-
plain = "";
|
|
1572
|
-
}
|
|
1573
|
-
};
|
|
1574
|
-
let i = 0;
|
|
1575
|
-
while (i < value.length) {
|
|
1576
|
-
const delay = reveal.delayFor(sourceOffset + i, now);
|
|
1577
|
-
let j = i + 1;
|
|
1578
|
-
while (j < value.length) {
|
|
1579
|
-
const nextDelay = reveal.delayFor(sourceOffset + j, now);
|
|
1580
|
-
if (nextDelay !== delay) {
|
|
1581
|
-
break;
|
|
1582
|
-
}
|
|
1583
|
-
j += 1;
|
|
1584
|
-
}
|
|
1585
|
-
const slice = value.slice(i, j);
|
|
1586
|
-
if (delay === null) {
|
|
1587
|
-
plain += slice;
|
|
1588
|
-
} else {
|
|
1589
|
-
flushPlain();
|
|
1590
|
-
out.push({
|
|
1591
|
-
type: "element",
|
|
1592
|
-
tagName: "span",
|
|
1593
|
-
properties: {
|
|
1594
|
-
className: ["og-stream-ink"],
|
|
1595
|
-
style: `animation-delay:${Math.round(delay)}ms`
|
|
1596
|
-
},
|
|
1597
|
-
children: [{ type: "text", value: slice }]
|
|
1598
|
-
});
|
|
1599
|
-
}
|
|
1600
|
-
i = j;
|
|
1601
|
-
}
|
|
1602
|
-
flushPlain();
|
|
1603
|
-
return out.length > 0 ? out : [node];
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
// src/components/markdown.tsx
|
|
1608
|
-
import {
|
|
1609
|
-
parseOpenGeniLink,
|
|
1610
|
-
parseSandboxLink,
|
|
1611
|
-
parseRetainedFileReference,
|
|
1612
|
-
isReservedOpenGeniLink,
|
|
1613
|
-
openGeniLinkScheme
|
|
1614
|
-
} from "@opengeni/sdk";
|
|
1615
|
-
|
|
1616
|
-
// src/components/rehype-standalone-links.ts
|
|
1617
|
-
var STANDALONE_LINK_PROPERTY = "dataOgStandalone";
|
|
1618
|
-
var STANDALONE_LINK_ATTRIBUTE = "data-og-standalone";
|
|
1619
|
-
var CONTAINERS = /* @__PURE__ */ new Set(["p", "li"]);
|
|
1620
|
-
function isElement(node) {
|
|
1621
|
-
return node.type === "element";
|
|
1622
|
-
}
|
|
1623
|
-
function isBlank2(node) {
|
|
1624
|
-
return node.type === "text" && (node.value ?? "").trim() === "";
|
|
1625
|
-
}
|
|
1626
|
-
function standaloneLinkOf(container) {
|
|
1627
|
-
const content = (container.children ?? []).filter((child) => !isBlank2(child));
|
|
1628
|
-
const only = content.length === 1 ? content[0] : void 0;
|
|
1629
|
-
return only && isElement(only) && only.tagName === "a" ? only : null;
|
|
1630
|
-
}
|
|
1631
|
-
function rehypeStandaloneLinks() {
|
|
1632
|
-
return (tree) => {
|
|
1633
|
-
walk2(tree);
|
|
1634
|
-
};
|
|
1635
|
-
function walk2(node) {
|
|
1636
|
-
for (const child of node.children ?? []) {
|
|
1637
|
-
if (!isElement(child)) continue;
|
|
1638
|
-
if (CONTAINERS.has(child.tagName)) {
|
|
1639
|
-
const link = standaloneLinkOf(child);
|
|
1640
|
-
if (link) link.properties = { ...link.properties, [STANDALONE_LINK_PROPERTY]: "" };
|
|
1641
|
-
}
|
|
1642
|
-
walk2(child);
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
// src/components/markdown-math-loader.ts
|
|
1648
|
-
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
1649
|
-
var loaded = null;
|
|
1650
|
-
var loading = null;
|
|
1651
|
-
function loadMathPlugins() {
|
|
1652
|
-
loading ??= import("./markdown-math-plugins-Q23LAE7Z.js").then(
|
|
1653
|
-
(module) => loaded = module,
|
|
1654
|
-
(error) => {
|
|
1655
|
-
loading = null;
|
|
1656
|
-
throw error;
|
|
1657
|
-
}
|
|
1658
|
-
);
|
|
1659
|
-
return loading;
|
|
1660
|
-
}
|
|
1661
|
-
function useMathPlugins(needed) {
|
|
1662
|
-
const [plugins, setPlugins] = useState3(loaded);
|
|
1663
|
-
useEffect3(() => {
|
|
1664
|
-
if (!needed || plugins) return;
|
|
1665
|
-
if (loaded) {
|
|
1666
|
-
setPlugins(loaded);
|
|
1667
|
-
return;
|
|
1668
|
-
}
|
|
1669
|
-
let active = true;
|
|
1670
|
-
loadMathPlugins().then(
|
|
1671
|
-
(module) => {
|
|
1672
|
-
if (active) setPlugins(module);
|
|
1673
|
-
},
|
|
1674
|
-
() => {
|
|
1675
|
-
}
|
|
1676
|
-
);
|
|
1677
|
-
return () => {
|
|
1678
|
-
active = false;
|
|
1679
|
-
};
|
|
1680
|
-
}, [needed, plugins]);
|
|
1681
|
-
return needed ? plugins ?? loaded : null;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
// src/components/markdown.tsx
|
|
1685
|
-
import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1686
|
-
var InteractiveContext = createContext({ source: "" });
|
|
1687
|
-
var baseComponents = {
|
|
1688
|
-
h1: ({ children, ...props }) => /* @__PURE__ */ jsx5(
|
|
1689
|
-
"h1",
|
|
1690
|
-
{
|
|
1691
|
-
className: "mt-5 mb-2.5 text-xl font-semibold tracking-tight text-og-fg first:mt-0",
|
|
1692
|
-
...props,
|
|
1693
|
-
children
|
|
1694
|
-
}
|
|
1695
|
-
),
|
|
1696
|
-
h2: ({ children, ...props }) => /* @__PURE__ */ jsx5("h2", { className: "mt-5 mb-2 text-lg font-semibold tracking-tight text-og-fg first:mt-0", ...props, children }),
|
|
1697
|
-
h3: ({ children, ...props }) => /* @__PURE__ */ jsx5(
|
|
1698
|
-
"h3",
|
|
1699
|
-
{
|
|
1700
|
-
className: "mt-4 mb-1.5 text-og-md font-semibold tracking-tight text-og-fg first:mt-0",
|
|
1701
|
-
...props,
|
|
1702
|
-
children
|
|
1703
|
-
}
|
|
1704
|
-
),
|
|
1705
|
-
h4: ({ children, ...props }) => /* @__PURE__ */ jsx5(
|
|
1706
|
-
"h4",
|
|
1707
|
-
{
|
|
1708
|
-
className: "mt-4 mb-1.5 text-og-sm font-semibold uppercase tracking-[0.04em] text-og-fg first:mt-0",
|
|
1709
|
-
...props,
|
|
1710
|
-
children
|
|
1711
|
-
}
|
|
1712
|
-
),
|
|
1713
|
-
p: ({ children, ...props }) => /* @__PURE__ */ jsx5("p", { className: "my-2.5 leading-7 first:mt-0 last:mb-0", ...props, children }),
|
|
1714
|
-
strong: ({ children, ...props }) => /* @__PURE__ */ jsx5("strong", { className: "font-semibold text-og-fg", ...props, children }),
|
|
1715
|
-
em: ({ children, ...props }) => /* @__PURE__ */ jsx5("em", { className: "italic", ...props, children }),
|
|
1716
|
-
ul: ({ children, ...props }) => /* @__PURE__ */ jsx5(
|
|
1717
|
-
"ul",
|
|
1718
|
-
{
|
|
1719
|
-
className: "my-2.5 ml-5 flex list-disc flex-col gap-1 marker:text-og-fg-subtle first:mt-0 last:mb-0",
|
|
1720
|
-
...props,
|
|
1721
|
-
children
|
|
1722
|
-
}
|
|
1723
|
-
),
|
|
1724
|
-
ol: ({ children, ...props }) => /* @__PURE__ */ jsx5(
|
|
1725
|
-
"ol",
|
|
1726
|
-
{
|
|
1727
|
-
className: "my-2.5 ml-5 flex list-decimal flex-col gap-1 marker:text-og-fg-subtle first:mt-0 last:mb-0",
|
|
1728
|
-
...props,
|
|
1729
|
-
children
|
|
1730
|
-
}
|
|
1731
|
-
),
|
|
1732
|
-
// GFM task-list items carry a leading checkbox <input>; `list-none` + a
|
|
1733
|
-
// negative margin pull the checkbox back to the bullet column so it aligns
|
|
1734
|
-
// with the text.
|
|
1735
|
-
li: ({ children, ...props }) => /* @__PURE__ */ jsx5(
|
|
1736
|
-
"li",
|
|
1737
|
-
{
|
|
1738
|
-
className: "leading-7 marker:text-og-fg-subtle [&>ul]:my-1 [&>ol]:my-1 [&:has(>input)]:list-none [&:has(>input)]:-ml-5",
|
|
1739
|
-
...props,
|
|
1740
|
-
children
|
|
1741
|
-
}
|
|
1742
|
-
),
|
|
1743
|
-
input: ({ type, ...props }) => type === "checkbox" ? /* @__PURE__ */ jsx5(
|
|
1744
|
-
"input",
|
|
1745
|
-
{
|
|
1746
|
-
...props,
|
|
1747
|
-
type: "checkbox",
|
|
1748
|
-
disabled: true,
|
|
1749
|
-
className: "mr-2 size-3.5 translate-y-[2px] cursor-default accent-og-accent align-baseline"
|
|
1750
|
-
}
|
|
1751
|
-
) : /* @__PURE__ */ jsx5("input", { type, ...props }),
|
|
1752
|
-
blockquote: ({ children, ...props }) => /* @__PURE__ */ jsx5(
|
|
1753
|
-
"blockquote",
|
|
1754
|
-
{
|
|
1755
|
-
className: "my-3 border-l-2 border-og-border-strong pl-3.5 text-og-fg-muted [&>p]:my-1.5 first:mt-0 last:mb-0",
|
|
1756
|
-
...props,
|
|
1757
|
-
children
|
|
1758
|
-
}
|
|
1759
|
-
),
|
|
1760
|
-
hr: (props) => /* @__PURE__ */ jsx5("hr", { className: "my-4 border-0 border-t border-og-border", ...props }),
|
|
1761
|
-
// Inline `code` vs fenced code blocks. react-markdown v10 no longer passes an
|
|
1762
|
-
// `inline` flag; a fenced block is a <code> whose parent is <pre> (styled by
|
|
1763
|
-
// the `pre` renderer), so a `code` reaching here is treated as inline.
|
|
1764
|
-
code: ({ children, className: _className, ...props }) => /* @__PURE__ */ jsx5(
|
|
1765
|
-
"code",
|
|
1766
|
-
{
|
|
1767
|
-
className: "rounded-og-xs bg-og-surface-2 px-1 py-0.5 font-og-mono text-og-sm text-og-fg",
|
|
1768
|
-
...props,
|
|
1769
|
-
children
|
|
1770
|
-
}
|
|
1771
|
-
),
|
|
1772
|
-
// Fenced code — quiet mono block (no card / no nested vertical scroll).
|
|
1773
|
-
pre: InteractiveCodeBlock,
|
|
1774
|
-
// Tables stay unboxed (hairline rules); hover reveals a TSV copy control.
|
|
1775
|
-
table: ({ children, ...props }) => /* @__PURE__ */ jsx5(MarkdownTable, { ...props, children }),
|
|
1776
|
-
thead: ({ children, ...props }) => /* @__PURE__ */ jsx5("thead", { ...props, children }),
|
|
1777
|
-
th: ({ children, ...props }) => /* @__PURE__ */ jsx5(
|
|
1778
|
-
"th",
|
|
1779
|
-
{
|
|
1780
|
-
className: "border-b border-og-border px-0 py-1.5 pr-4 text-left font-medium text-og-fg first:pl-0",
|
|
1781
|
-
...props,
|
|
1782
|
-
children
|
|
1783
|
-
}
|
|
1784
|
-
),
|
|
1785
|
-
td: ({ children, ...props }) => /* @__PURE__ */ jsx5(
|
|
1786
|
-
"td",
|
|
1787
|
-
{
|
|
1788
|
-
className: "border-b border-og-border/70 px-0 py-1.5 pr-4 align-top text-og-fg-muted",
|
|
1789
|
-
...props,
|
|
1790
|
-
children
|
|
1791
|
-
}
|
|
1792
|
-
),
|
|
1793
|
-
img: MarkdownImage
|
|
1794
|
-
};
|
|
1795
|
-
var MARKDOWN_LINK_CLASS = "break-words font-medium og-link";
|
|
1796
|
-
var INLINE_MARKDOWN_LINK_CLASS = "font-medium og-link [overflow-wrap:anywhere]";
|
|
1797
|
-
var MarkdownLinkContext = createContext({});
|
|
1798
|
-
var UNAVAILABLE_LABEL = (t) => ({
|
|
1799
|
-
file: t("markdown.thisFileNeedsAWorkspace"),
|
|
1800
|
-
"editable-artifact": t("markdown.thisArtifactNeedsAWorkspace"),
|
|
1801
|
-
site: t("markdown.thisSiteNeedsAWorkspace"),
|
|
1802
|
-
session: t("markdown.thisChatNeedsAWorkspace")
|
|
1803
|
-
});
|
|
1804
|
-
function linkActionTitle(t, target) {
|
|
1805
|
-
if (target.kind === "sandbox-file") {
|
|
1806
|
-
return target.line !== null ? t("markdown.openPathAtLineLine", { path: target.path, line: target.line }) : t("markdown.openPath", { path: target.path });
|
|
1807
|
-
}
|
|
1808
|
-
if (target.kind === "session") return t("markdown.openChat");
|
|
1809
|
-
return target.kind === "file" ? t("markdown.openFile") : target.kind === "site" ? t("markdown.openSite") : t("markdown.openArtifact");
|
|
1810
|
-
}
|
|
1811
|
-
function MarkdownSpan({
|
|
1812
|
-
node: _node,
|
|
1813
|
-
children,
|
|
1814
|
-
...props
|
|
1815
|
-
}) {
|
|
1816
|
-
const raw = props["data-og-secret-ref"];
|
|
1817
|
-
if (typeof raw === "string") return /* @__PURE__ */ jsx5(MarkdownSecretRef, { raw, children });
|
|
1818
|
-
return /* @__PURE__ */ jsx5("span", { ...props, children });
|
|
1819
|
-
}
|
|
1820
|
-
function MarkdownSecretRef({ raw, children }) {
|
|
1821
|
-
const ui = useSecretsUi();
|
|
1822
|
-
const token = ui?.tokenize(raw).find((candidate) => candidate.type === "reference");
|
|
1823
|
-
if (!token || token.type !== "reference") return /* @__PURE__ */ jsx5(Fragment2, { children });
|
|
1824
|
-
return /* @__PURE__ */ jsx5(SecretRefChip, { reference: token.reference });
|
|
1825
|
-
}
|
|
1826
|
-
var markdownComponents = {
|
|
1827
|
-
...baseComponents,
|
|
1828
|
-
span: MarkdownSpan,
|
|
1829
|
-
p: ({ children, node, ...props }) => {
|
|
1830
|
-
const containsBlock = node?.children.some(
|
|
1831
|
-
(child) => child.type === "element" && (child.tagName === "img" && typeof child.properties.src === "string" && retainedImageId(child.properties.src) || child.tagName === "a" && child.properties[STANDALONE_LINK_PROPERTY] !== void 0)
|
|
1832
|
-
);
|
|
1833
|
-
const Tag = containsBlock ? "div" : "p";
|
|
1834
|
-
return /* @__PURE__ */ jsx5(Tag, { className: "my-2.5 leading-7 first:mt-0 last:mb-0", ...props, children });
|
|
1835
|
-
},
|
|
1836
|
-
a: ({ children, href, ...linkProps }) => {
|
|
1837
|
-
const t = useOpenGeniText();
|
|
1838
|
-
const { onSandboxFile, artifactHref, resolveLink, renderLink, inline } = useContext(MarkdownLinkContext);
|
|
1839
|
-
const linkClass = inline ? INLINE_MARKDOWN_LINK_CLASS : MARKDOWN_LINK_CLASS;
|
|
1840
|
-
const inherited = useOpenGeniLinkResolver();
|
|
1841
|
-
const { [STANDALONE_LINK_ATTRIBUTE]: standaloneMarker, ...props } = linkProps;
|
|
1842
|
-
const parsed = parseOpenGeniLink(href);
|
|
1843
|
-
const resolved = useArtifactLinkTarget(parsed);
|
|
1844
|
-
if (resolved.pending) return /* @__PURE__ */ jsx5("span", { "aria-busy": "true", children });
|
|
1845
|
-
if (resolved.error) {
|
|
1846
|
-
return /* @__PURE__ */ jsx5(
|
|
1847
|
-
ActionMarkdownLink,
|
|
1848
|
-
{
|
|
1849
|
-
className: linkClass,
|
|
1850
|
-
title: t("markdown.openArtifact"),
|
|
1851
|
-
onOpen: resolved.retry,
|
|
1852
|
-
children
|
|
1853
|
-
}
|
|
1854
|
-
);
|
|
1855
|
-
}
|
|
1856
|
-
const target = resolved.target;
|
|
1857
|
-
if (target) {
|
|
1858
|
-
if (target.kind === "file" && parsed?.kind === "file" && parsed.workspaceId === null && artifactHref) {
|
|
1859
|
-
const destination2 = defaultUrlTransform(artifactHref(target.fileId));
|
|
1860
|
-
if (destination2) {
|
|
1861
|
-
return /* @__PURE__ */ jsx5("a", { className: linkClass, href: destination2, target: "_blank", rel: "noreferrer noopener", children });
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
const resolution = target.kind === "sandbox-file" && onSandboxFile ? { open: () => onSandboxFile(target.path, target.line ?? void 0) } : chainLinkResolvers(resolveLink, inherited)?.(target);
|
|
1865
|
-
const destination = resolution?.href ? defaultUrlTransform(resolution.href) : "";
|
|
1866
|
-
const navigate = resolution?.href ? resolution.open : void 0;
|
|
1867
|
-
if (destination && navigate) {
|
|
1868
|
-
return /* @__PURE__ */ jsx5(
|
|
1869
|
-
"a",
|
|
1870
|
-
{
|
|
1871
|
-
className: MARKDOWN_LINK_CLASS,
|
|
1872
|
-
href: destination,
|
|
1873
|
-
onClick: (event) => {
|
|
1874
|
-
if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)
|
|
1875
|
-
return;
|
|
1876
|
-
event.preventDefault();
|
|
1877
|
-
navigate();
|
|
1878
|
-
},
|
|
1879
|
-
children
|
|
1880
|
-
}
|
|
1881
|
-
);
|
|
1882
|
-
}
|
|
1883
|
-
if (destination) {
|
|
1884
|
-
return /* @__PURE__ */ jsx5("a", { className: linkClass, href: destination, target: "_blank", rel: "noreferrer noopener", children });
|
|
1885
|
-
}
|
|
1886
|
-
if (resolution?.open) {
|
|
1887
|
-
return /* @__PURE__ */ jsx5(
|
|
1888
|
-
ActionMarkdownLink,
|
|
1889
|
-
{
|
|
1890
|
-
className: linkClass,
|
|
1891
|
-
title: linkActionTitle(t, target),
|
|
1892
|
-
onOpen: resolution.open,
|
|
1893
|
-
children
|
|
1894
|
-
}
|
|
1895
|
-
);
|
|
1896
|
-
}
|
|
1897
|
-
if (target.kind === "sandbox-file") {
|
|
1898
|
-
return /* @__PURE__ */ jsx5(
|
|
1899
|
-
"span",
|
|
1900
|
-
{
|
|
1901
|
-
className: "break-words font-medium text-og-fg-subtle underline decoration-dotted underline-offset-2",
|
|
1902
|
-
"aria-disabled": "true",
|
|
1903
|
-
title: t("markdown.thisSandboxFileRequiresA"),
|
|
1904
|
-
children
|
|
1905
|
-
}
|
|
1906
|
-
);
|
|
1907
|
-
}
|
|
1908
|
-
if (target.kind === "session") {
|
|
1909
|
-
return /* @__PURE__ */ jsx5("span", { title: UNAVAILABLE_LABEL(t).session, "data-og-link-unavailable": "session", children });
|
|
1910
|
-
}
|
|
1911
|
-
return /* @__PURE__ */ jsxs4("span", { title: UNAVAILABLE_LABEL(t)[target.kind], "data-og-link-unavailable": target.kind, children: [
|
|
1912
|
-
children,
|
|
1913
|
-
" ",
|
|
1914
|
-
t("markdown.artifactUnavailable")
|
|
1915
|
-
] });
|
|
1916
|
-
}
|
|
1917
|
-
if (!isReservedOpenGeniLink(href) && href && renderLink) {
|
|
1918
|
-
const drawn = renderLink({ href, children, standalone: standaloneMarker !== void 0 });
|
|
1919
|
-
if (drawn !== void 0) return /* @__PURE__ */ jsx5(Fragment2, { children: drawn });
|
|
1920
|
-
}
|
|
1921
|
-
const safeHref = href ? defaultUrlTransform(href) : "";
|
|
1922
|
-
if (isReservedOpenGeniLink(href) || !safeHref) {
|
|
1923
|
-
return /* @__PURE__ */ jsxs4(
|
|
1924
|
-
"span",
|
|
1925
|
-
{
|
|
1926
|
-
className: "break-words text-og-fg-subtle",
|
|
1927
|
-
"aria-disabled": "true",
|
|
1928
|
-
title: isSandboxHref(href) ? t("markdown.thisSandboxFileReferenceIs") : t("markdown.thisLinkIsUnavailable"),
|
|
1929
|
-
children: [
|
|
1930
|
-
children,
|
|
1931
|
-
" ",
|
|
1932
|
-
t("markdown.linkUnavailable")
|
|
1933
|
-
]
|
|
1934
|
-
}
|
|
1935
|
-
);
|
|
1936
|
-
}
|
|
1937
|
-
return /* @__PURE__ */ jsx5("a", { className: linkClass, target: "_blank", rel: "noreferrer noopener", href: safeHref, ...props, children });
|
|
1938
|
-
}
|
|
1939
|
-
};
|
|
1940
|
-
function ActionMarkdownLink({
|
|
1941
|
-
className,
|
|
1942
|
-
title,
|
|
1943
|
-
onOpen,
|
|
1944
|
-
children
|
|
1945
|
-
}) {
|
|
1946
|
-
const t = useOpenGeniText();
|
|
1947
|
-
const [state, setState] = useState4("idle");
|
|
1948
|
-
return /* @__PURE__ */ jsxs4(
|
|
1949
|
-
"button",
|
|
1950
|
-
{
|
|
1951
|
-
type: "button",
|
|
1952
|
-
className: cn(
|
|
1953
|
-
className,
|
|
1954
|
-
"inline-flex min-h-7 cursor-pointer items-center aria-disabled:cursor-wait aria-disabled:opacity-70 pointer-coarse:min-h-11"
|
|
1955
|
-
),
|
|
1956
|
-
"aria-disabled": state === "loading" || void 0,
|
|
1957
|
-
"aria-busy": state === "loading",
|
|
1958
|
-
title: state === "error" ? t("markdown.couldnTOpenThisFile") : title,
|
|
1959
|
-
onClick: () => {
|
|
1960
|
-
if (state === "loading") return;
|
|
1961
|
-
setState("loading");
|
|
1962
|
-
void Promise.resolve().then(onOpen).then(
|
|
1963
|
-
() => setState("idle"),
|
|
1964
|
-
() => setState("error")
|
|
1965
|
-
);
|
|
1966
|
-
},
|
|
1967
|
-
children: [
|
|
1968
|
-
children,
|
|
1969
|
-
state === "loading" ? " (opening\u2026)" : state === "error" ? " (retry)" : null
|
|
1970
|
-
]
|
|
1971
|
-
}
|
|
1972
|
-
);
|
|
1973
|
-
}
|
|
1974
|
-
function isSandboxHref(href) {
|
|
1975
|
-
return openGeniLinkScheme(href) === "sandbox";
|
|
1976
|
-
}
|
|
1977
|
-
function sandboxFileLocationFromHref(href) {
|
|
1978
|
-
return parseSandboxLink(href);
|
|
1979
|
-
}
|
|
1980
|
-
function sandboxFilePathFromHref(href) {
|
|
1981
|
-
return sandboxFileLocationFromHref(href)?.path ?? null;
|
|
1982
|
-
}
|
|
1983
|
-
function retainedImageId(src) {
|
|
1984
|
-
return parseRetainedFileReference(src);
|
|
1985
|
-
}
|
|
1986
|
-
function MarkdownImage({ src, alt }) {
|
|
1987
|
-
const t = useOpenGeniText();
|
|
1988
|
-
const { renderImage, suppressImages } = useContext(InteractiveContext);
|
|
1989
|
-
if (suppressImages)
|
|
1990
|
-
return /* @__PURE__ */ jsxs4("span", { "data-og-image-placeholder": "", children: [
|
|
1991
|
-
alt || t("markdown.image"),
|
|
1992
|
-
" ",
|
|
1993
|
-
t("markdown.previewUnavailable")
|
|
1994
|
-
] });
|
|
1995
|
-
if (!src) return /* @__PURE__ */ jsx5("span", { children: alt ?? t("markdown.imageUnavailable") });
|
|
1996
|
-
if (retainedImageId(src))
|
|
1997
|
-
return renderImage ? /* @__PURE__ */ jsx5(LazyPart, { children: renderImage({ src, alt: alt ?? "" }) }) : /* @__PURE__ */ jsxs4("span", { children: [
|
|
1998
|
-
alt || t("markdown.image"),
|
|
1999
|
-
" ",
|
|
2000
|
-
t("markdown.previewUnavailable")
|
|
2001
|
-
] });
|
|
2002
|
-
return /* @__PURE__ */ jsx5(
|
|
2003
|
-
"img",
|
|
2004
|
-
{
|
|
2005
|
-
src: displayImageSrc(src),
|
|
2006
|
-
alt: alt ?? "",
|
|
2007
|
-
loading: "lazy",
|
|
2008
|
-
className: "my-3 max-w-full rounded-og-md"
|
|
2009
|
-
}
|
|
2010
|
-
);
|
|
2011
|
-
}
|
|
2012
|
-
var markdownUrlTransform = (url, key, node) => key === "href" && node.tagName === "a" || key === "src" && node.tagName === "img" && retainedImageId(url) ? url : defaultUrlTransform(url);
|
|
2013
|
-
var REVEAL_LINGER_MS = 480 * MOTION_INSPECT_SCALE;
|
|
2014
|
-
var MARKDOWN_SETTLE_MS = 480 * MOTION_INSPECT_SCALE;
|
|
2015
|
-
function nodeText(node) {
|
|
2016
|
-
if (node == null || typeof node === "boolean") {
|
|
2017
|
-
return "";
|
|
2018
|
-
}
|
|
2019
|
-
if (typeof node === "string" || typeof node === "number") {
|
|
2020
|
-
return String(node);
|
|
2021
|
-
}
|
|
2022
|
-
if (Array.isArray(node)) {
|
|
2023
|
-
return node.map(nodeText).join("");
|
|
2024
|
-
}
|
|
2025
|
-
if (isValidElement(node)) {
|
|
2026
|
-
return nodeText(node.props.children);
|
|
2027
|
-
}
|
|
2028
|
-
return "";
|
|
2029
|
-
}
|
|
2030
|
-
function fenceLanguage(children) {
|
|
2031
|
-
let found = null;
|
|
2032
|
-
Children.forEach(children, (child) => {
|
|
2033
|
-
if (found || !isValidElement(child)) {
|
|
2034
|
-
return;
|
|
2035
|
-
}
|
|
2036
|
-
const match = /language-([a-zA-Z0-9_+-]+)/.exec(child.props.className ?? "");
|
|
2037
|
-
if (match?.[1]) {
|
|
2038
|
-
found = match[1];
|
|
2039
|
-
}
|
|
2040
|
-
});
|
|
2041
|
-
return found;
|
|
2042
|
-
}
|
|
2043
|
-
function fenceIsClosed(node, source) {
|
|
2044
|
-
const start = node?.position?.start.offset;
|
|
2045
|
-
const end = node?.position?.end.offset;
|
|
2046
|
-
const original = start !== void 0 && end !== void 0 && end <= source.length ? source.slice(start, end) : "";
|
|
2047
|
-
const lines = original.trimEnd().split("\n");
|
|
2048
|
-
const opening = lines[0]?.match(/^ {0,3}([\x60]{3,}|~{3,})/);
|
|
2049
|
-
const closing = lines.at(-1)?.replace(/^\s*(?:>\s*)+/, "").trim();
|
|
2050
|
-
return Boolean(
|
|
2051
|
-
opening && lines.length > 1 && closing && closing.length >= opening[1].length && [...closing].every((c) => c === opening[1][0])
|
|
2052
|
-
);
|
|
2053
|
-
}
|
|
2054
|
-
function InteractiveCodeBlock({ children, node }) {
|
|
2055
|
-
const t = useOpenGeniText();
|
|
2056
|
-
const { source, render, streaming } = useContext(InteractiveContext);
|
|
2057
|
-
const language = fenceLanguage(children);
|
|
2058
|
-
if (language === INTERACTIVE_ANSWER_FENCE) {
|
|
2059
|
-
const body = nodeText(children).replace(/\n$/, "");
|
|
2060
|
-
const tail = source.includes(INTERACTIVE_ANSWER_FENCE) ? trailingOpenFence(source) : null;
|
|
2061
|
-
const open = tail !== null && tail.trimEnd() === body.trimEnd();
|
|
2062
|
-
const state = !open ? "complete" : streaming ? "streaming" : "incomplete";
|
|
2063
|
-
return /* @__PURE__ */ jsx5(
|
|
2064
|
-
InteractiveAnswer,
|
|
2065
|
-
{
|
|
2066
|
-
source: body,
|
|
2067
|
-
state,
|
|
2068
|
-
renderSource: () => /* @__PURE__ */ jsx5(MarkdownCodeBlock, { children })
|
|
2069
|
-
}
|
|
2070
|
-
);
|
|
2071
|
-
}
|
|
2072
|
-
if (render && (language === "opengeni-html" || language === "opengeni-site")) {
|
|
2073
|
-
if (!fenceIsClosed(node, source)) {
|
|
2074
|
-
return /* @__PURE__ */ jsx5("div", { role: "status", "aria-live": "polite", "aria-busy": streaming === true, className: "my-3", children: streaming ? /* @__PURE__ */ jsx5(PreviewLoading, {}) : /* @__PURE__ */ jsx5(
|
|
2075
|
-
ActivityDisclosure,
|
|
2076
|
-
{
|
|
2077
|
-
icon: /* @__PURE__ */ jsx5(PanelsTopLeftIcon, { "aria-hidden": true, className: "size-3.5" }),
|
|
2078
|
-
title: t("markdown.previewIncomplete"),
|
|
2079
|
-
running: false,
|
|
2080
|
-
expandable: false,
|
|
2081
|
-
preview: t("markdown.generationStoppedBeforeThePreview")
|
|
2082
|
-
}
|
|
2083
|
-
) });
|
|
2084
|
-
}
|
|
2085
|
-
return /* @__PURE__ */ jsx5(LazyPart, { children: render({
|
|
2086
|
-
kind: language === "opengeni-html" ? "html" : "site",
|
|
2087
|
-
content: nodeText(children).replace(/\n$/, "")
|
|
2088
|
-
}) });
|
|
2089
|
-
}
|
|
2090
|
-
return /* @__PURE__ */ jsx5(MarkdownCodeBlock, { children });
|
|
2091
|
-
}
|
|
2092
|
-
function MarkdownCodeBlock({ children }) {
|
|
2093
|
-
const t = useOpenGeniText();
|
|
2094
|
-
const code = nodeText(children).replace(/\n$/, "");
|
|
2095
|
-
const language = fenceLanguage(children);
|
|
2096
|
-
return /* @__PURE__ */ jsxs4("div", { className: "group/copy relative mt-3 first:mt-0 pointer-coarse:flex pointer-coarse:items-start pointer-coarse:rounded-og-md pointer-coarse:bg-og-surface-1/70", children: [
|
|
2097
|
-
/* @__PURE__ */ jsxs4("div", { className: "pointer-events-none absolute top-1.5 right-1.5 z-10 flex items-center gap-1 pointer-coarse:static pointer-coarse:order-last pointer-coarse:shrink-0 pointer-coarse:py-0 pointer-coarse:pr-0.5", children: [
|
|
2098
|
-
language ? /* @__PURE__ */ jsx5("span", { className: "rounded px-1 py-0.5 font-og-mono text-[10px] uppercase tracking-wide text-og-fg-subtle/80 opacity-0 transition-opacity group-hover/copy:opacity-100 pointer-coarse:opacity-70", children: language }) : null,
|
|
2099
|
-
/* @__PURE__ */ jsx5("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx5(CopyButton, { text: code, label: t("markdown.copyCode"), reveal: "group-hover" }) })
|
|
2100
|
-
] }),
|
|
2101
|
-
/* @__PURE__ */ jsx5(
|
|
2102
|
-
"pre",
|
|
2103
|
-
{
|
|
2104
|
-
tabIndex: 0,
|
|
2105
|
-
className: "overflow-x-auto overflow-y-hidden rounded-og-md bg-og-surface-1/70 px-3 py-2.5 font-og-mono text-og-sm leading-5 text-og-fg-muted [scrollbar-gutter:stable] pointer-coarse:min-w-0 pointer-coarse:flex-1 pointer-coarse:bg-transparent [&>code]:block [&>code]:border-0 [&>code]:bg-transparent [&>code]:p-0 [&>code]:leading-5 [&>code]:text-inherit",
|
|
2106
|
-
children
|
|
2107
|
-
}
|
|
2108
|
-
)
|
|
2109
|
-
] });
|
|
2110
|
-
}
|
|
2111
|
-
function MarkdownTable({ children, className, ...props }) {
|
|
2112
|
-
const t = useOpenGeniText();
|
|
2113
|
-
const wrapperRef = useRef3(null);
|
|
2114
|
-
const tableRef = useRef3(null);
|
|
2115
|
-
const layoutRef = useRef3(void 0);
|
|
2116
|
-
useEffect4(() => {
|
|
2117
|
-
const wrapper = wrapperRef.current;
|
|
2118
|
-
const table = tableRef.current;
|
|
2119
|
-
if (!wrapper?.closest("[data-og-wide-table-message]") || !table) return;
|
|
2120
|
-
let disposed = false;
|
|
2121
|
-
void import("./markdown-table-layout-3PV2UAAH.js").then(({ observeMarkdownTableLayout }) => {
|
|
2122
|
-
if (!disposed) layoutRef.current = observeMarkdownTableLayout(wrapper, table);
|
|
2123
|
-
}).catch(() => {
|
|
2124
|
-
});
|
|
2125
|
-
return () => {
|
|
2126
|
-
disposed = true;
|
|
2127
|
-
layoutRef.current?.disconnect();
|
|
2128
|
-
layoutRef.current = void 0;
|
|
2129
|
-
};
|
|
2130
|
-
}, []);
|
|
2131
|
-
useEffect4(() => {
|
|
2132
|
-
layoutRef.current?.measure();
|
|
2133
|
-
}, [children]);
|
|
2134
|
-
return (
|
|
2135
|
-
// Touch shows the copy action permanently at full touch size, so it sits
|
|
2136
|
-
// under the table there instead of covering the right-aligned header.
|
|
2137
|
-
/* @__PURE__ */ jsxs4(
|
|
2138
|
-
"div",
|
|
2139
|
-
{
|
|
2140
|
-
ref: wrapperRef,
|
|
2141
|
-
"data-og-table": "",
|
|
2142
|
-
className: "group/copy relative mt-3 max-w-full first:mt-0 pointer-coarse:pb-11",
|
|
2143
|
-
children: [
|
|
2144
|
-
/* @__PURE__ */ jsx5("div", { className: "pointer-events-none absolute top-0 right-0 z-10 pointer-coarse:top-auto pointer-coarse:bottom-0", children: /* @__PURE__ */ jsx5("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx5(
|
|
2145
|
-
CopyButton,
|
|
2146
|
-
{
|
|
2147
|
-
text: () => tableElementToTsv(tableRef.current),
|
|
2148
|
-
label: t("markdown.copyTable"),
|
|
2149
|
-
reveal: "group-hover"
|
|
2150
|
-
}
|
|
2151
|
-
) }) }),
|
|
2152
|
-
/* @__PURE__ */ jsx5("div", { className: "overflow-x-auto", tabIndex: 0, children: /* @__PURE__ */ jsx5(
|
|
2153
|
-
"table",
|
|
2154
|
-
{
|
|
2155
|
-
ref: tableRef,
|
|
2156
|
-
className: cn(
|
|
2157
|
-
// Leading `&` only: a trailing one (`tr:last-child>&`) under the scoped
|
|
2158
|
-
// selector list needs `:is()`, which bundlers warn about for older targets.
|
|
2159
|
-
"w-full min-w-0 border-collapse text-og-base [&_tr:last-child>td]:border-b-0",
|
|
2160
|
-
className
|
|
2161
|
-
),
|
|
2162
|
-
...props,
|
|
2163
|
-
children
|
|
2164
|
-
}
|
|
2165
|
-
) })
|
|
2166
|
-
]
|
|
2167
|
-
}
|
|
2168
|
-
)
|
|
2169
|
-
);
|
|
2170
|
-
}
|
|
2171
|
-
var REMARK_PLUGINS = [remarkGfm];
|
|
2172
|
-
var SOFT_LINE_BREAK_REMARK_PLUGINS = [
|
|
2173
|
-
remarkGfm,
|
|
2174
|
-
remarkSoftLineBreaks
|
|
2175
|
-
];
|
|
2176
|
-
var MarkdownContent = memo2(function MarkdownContent2({
|
|
2177
|
-
text: text2,
|
|
2178
|
-
softLineBreaks,
|
|
2179
|
-
mathPlugins,
|
|
2180
|
-
annotateStandaloneLinks,
|
|
2181
|
-
tokenize,
|
|
2182
|
-
reveal,
|
|
2183
|
-
revealTime
|
|
2184
|
-
}) {
|
|
2185
|
-
const baseRemarkPlugins = softLineBreaks ? SOFT_LINE_BREAK_REMARK_PLUGINS : REMARK_PLUGINS;
|
|
2186
|
-
const remarkPlugins = mathPlugins ? [...baseRemarkPlugins, mathPlugins.remarkMathPlugin] : baseRemarkPlugins;
|
|
2187
|
-
const rehypePlugins = [
|
|
2188
|
-
...annotateStandaloneLinks ? [rehypeStandaloneLinks] : [],
|
|
2189
|
-
...tokenize ? [[rehypeSecretRefs, { tokenize }]] : [],
|
|
2190
|
-
...reveal ? [[rehypeStreamReveal, { reveal, now: revealTime }]] : [],
|
|
2191
|
-
...mathPlugins ? [mathPlugins.rehypeKatexPlugin] : []
|
|
2192
|
-
];
|
|
2193
|
-
return /* @__PURE__ */ jsx5(
|
|
2194
|
-
ReactMarkdown,
|
|
2195
|
-
{
|
|
2196
|
-
remarkPlugins,
|
|
2197
|
-
rehypePlugins,
|
|
2198
|
-
components: markdownComponents,
|
|
2199
|
-
urlTransform: markdownUrlTransform,
|
|
2200
|
-
children: text2
|
|
2201
|
-
}
|
|
2202
|
-
);
|
|
2203
|
-
});
|
|
2204
|
-
function MarkdownImpl({
|
|
2205
|
-
children,
|
|
2206
|
-
artifactHref,
|
|
2207
|
-
className,
|
|
2208
|
-
softLineBreaks = false,
|
|
2209
|
-
streaming = false,
|
|
2210
|
-
onSandboxFile,
|
|
2211
|
-
renderInteractiveBlock,
|
|
2212
|
-
renderImage,
|
|
2213
|
-
resolveLink,
|
|
2214
|
-
renderLink,
|
|
2215
|
-
suppressImages
|
|
2216
|
-
}) {
|
|
2217
|
-
const revealRef = useRef3(null);
|
|
2218
|
-
const bodyRef = useRef3(null);
|
|
2219
|
-
const [, bump] = useReducer((n) => n + 1, 0);
|
|
2220
|
-
const [settling, setSettling] = useState4(false);
|
|
2221
|
-
const hadRevealRef = useRef3(false);
|
|
2222
|
-
const now = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
2223
|
-
const crystallize = (mutate) => {
|
|
2224
|
-
mutate();
|
|
2225
|
-
setSettling(true);
|
|
2226
|
-
bump();
|
|
2227
|
-
return setTimeout(() => setSettling(false), MARKDOWN_SETTLE_MS);
|
|
2228
|
-
};
|
|
2229
|
-
if (streaming && revealRef.current === null && !prefersReducedMotion()) {
|
|
2230
|
-
revealRef.current = createStreamReveal();
|
|
2231
|
-
}
|
|
2232
|
-
const reveal = revealRef.current;
|
|
2233
|
-
if (reveal !== null && streaming) {
|
|
2234
|
-
reveal.observe(children, now);
|
|
2235
|
-
}
|
|
2236
|
-
if (reveal !== null) {
|
|
2237
|
-
hadRevealRef.current = true;
|
|
2238
|
-
}
|
|
2239
|
-
const revealActive = reveal !== null && (streaming || reveal.hasActive(now));
|
|
2240
|
-
const secretsUi = useSecretsUi();
|
|
2241
|
-
const inheritedRenderer = useOpenGeniLinkRenderer();
|
|
2242
|
-
const linkRenderer = useMemo2(
|
|
2243
|
-
() => chainLinkRenderers(renderLink, inheritedRenderer) ?? void 0,
|
|
2244
|
-
[renderLink, inheritedRenderer]
|
|
2245
|
-
);
|
|
2246
|
-
const tokenize = secretsUi && mayContainSecretReference(children) ? secretsUi.tokenize : void 0;
|
|
2247
|
-
useEffect4(() => {
|
|
2248
|
-
if (streaming || revealRef.current === null) {
|
|
2249
|
-
return;
|
|
2250
|
-
}
|
|
2251
|
-
let clearSettle;
|
|
2252
|
-
const timer = setTimeout(() => {
|
|
2253
|
-
const shouldSettle = hadRevealRef.current && !prefersReducedMotion();
|
|
2254
|
-
if (shouldSettle) {
|
|
2255
|
-
hadRevealRef.current = false;
|
|
2256
|
-
}
|
|
2257
|
-
if (shouldSettle) {
|
|
2258
|
-
clearSettle = crystallize(() => {
|
|
2259
|
-
revealRef.current = null;
|
|
2260
|
-
});
|
|
2261
|
-
} else {
|
|
2262
|
-
revealRef.current = null;
|
|
2263
|
-
bump();
|
|
2264
|
-
}
|
|
2265
|
-
}, REVEAL_LINGER_MS);
|
|
2266
|
-
return () => {
|
|
2267
|
-
clearTimeout(timer);
|
|
2268
|
-
if (clearSettle !== void 0) {
|
|
2269
|
-
clearTimeout(clearSettle);
|
|
2270
|
-
}
|
|
2271
|
-
};
|
|
2272
|
-
}, [streaming]);
|
|
2273
|
-
const wasStreamingRef = useRef3(streaming);
|
|
2274
|
-
useEffect4(() => {
|
|
2275
|
-
const ended = wasStreamingRef.current && !streaming;
|
|
2276
|
-
wasStreamingRef.current = streaming;
|
|
2277
|
-
if (!ended || revealRef.current !== null || prefersReducedMotion()) {
|
|
2278
|
-
return;
|
|
2279
|
-
}
|
|
2280
|
-
setSettling(true);
|
|
2281
|
-
const timer = setTimeout(() => setSettling(false), MARKDOWN_SETTLE_MS);
|
|
2282
|
-
return () => clearTimeout(timer);
|
|
2283
|
-
}, [streaming]);
|
|
2284
|
-
const parseText = streaming || revealActive ? softenStreamingMarkdown(children) : children;
|
|
2285
|
-
const math = useMemo2(() => prepareMathMarkdown(parseText), [parseText]);
|
|
2286
|
-
const mathPlugins = useMathPlugins(math.hasMath);
|
|
2287
|
-
const linkContext = useMemo2(
|
|
2288
|
-
() => ({ onSandboxFile, artifactHref, resolveLink, renderLink: linkRenderer }),
|
|
2289
|
-
[onSandboxFile, artifactHref, resolveLink, linkRenderer]
|
|
2290
|
-
);
|
|
2291
|
-
const interactiveContext = useMemo2(
|
|
2292
|
-
() => ({
|
|
2293
|
-
source: children,
|
|
2294
|
-
streaming,
|
|
2295
|
-
...renderInteractiveBlock ? { render: renderInteractiveBlock } : {},
|
|
2296
|
-
...renderImage ? { renderImage } : {},
|
|
2297
|
-
...suppressImages ? { suppressImages } : {}
|
|
2298
|
-
}),
|
|
2299
|
-
[children, streaming, renderInteractiveBlock, renderImage, suppressImages]
|
|
2300
|
-
);
|
|
2301
|
-
return /* @__PURE__ */ jsx5(MarkdownLinkContext.Provider, { value: linkContext, children: /* @__PURE__ */ jsx5(InteractiveContext.Provider, { value: interactiveContext, children: /* @__PURE__ */ jsx5(TooltipProvider, { delayDuration: 400, children: /* @__PURE__ */ jsx5(
|
|
2302
|
-
"div",
|
|
2303
|
-
{
|
|
2304
|
-
ref: bodyRef,
|
|
2305
|
-
className: cn(
|
|
2306
|
-
"og-markdown-body min-w-0 break-words",
|
|
2307
|
-
settling && "og-markdown-settle",
|
|
2308
|
-
className
|
|
2309
|
-
),
|
|
2310
|
-
children: /* @__PURE__ */ jsx5(
|
|
2311
|
-
MarkdownContent,
|
|
2312
|
-
{
|
|
2313
|
-
text: mathPlugins ? math.text : parseText,
|
|
2314
|
-
softLineBreaks,
|
|
2315
|
-
mathPlugins,
|
|
2316
|
-
annotateStandaloneLinks: linkRenderer !== void 0,
|
|
2317
|
-
tokenize,
|
|
2318
|
-
reveal: revealActive ? reveal : null,
|
|
2319
|
-
revealTime: revealActive ? now : 0
|
|
2320
|
-
}
|
|
2321
|
-
)
|
|
2322
|
-
}
|
|
2323
|
-
) }) }) });
|
|
2324
|
-
}
|
|
2325
|
-
var INLINE_MARKDOWN_ELEMENTS = ["a", "br", "code", "del", "em", "span", "strong"];
|
|
2326
|
-
var inlineMarkdownComponents = {
|
|
2327
|
-
a: markdownComponents.a,
|
|
2328
|
-
// Code follows the surrounding text size (help text and options are smaller).
|
|
2329
|
-
code: ({ children, className: _className, node: _node, ...props }) => /* @__PURE__ */ jsx5(
|
|
2330
|
-
"code",
|
|
2331
|
-
{
|
|
2332
|
-
className: "rounded-og-xs bg-og-surface-2 px-1 py-0.5 font-og-mono text-[0.9em] text-og-fg",
|
|
2333
|
-
...props,
|
|
2334
|
-
children
|
|
2335
|
-
}
|
|
2336
|
-
),
|
|
2337
|
-
em: baseComponents.em,
|
|
2338
|
-
span: MarkdownSpan,
|
|
2339
|
-
strong: baseComponents.strong
|
|
2340
|
-
};
|
|
2341
|
-
var INLINE_FLOW_BREAK = [[rehypeInlineFlow, { separator: "break" }]];
|
|
2342
|
-
var INLINE_FLOW_SPACE = [[rehypeInlineFlow, { separator: "space" }]];
|
|
2343
|
-
var InlineMarkdown = memo2(function InlineMarkdown2({
|
|
2344
|
-
children,
|
|
2345
|
-
singleLine = false
|
|
2346
|
-
}) {
|
|
2347
|
-
const secretsUi = useSecretsUi();
|
|
2348
|
-
const renderLink = useOpenGeniLinkRenderer() ?? void 0;
|
|
2349
|
-
const linkContext = useMemo2(() => ({ renderLink, inline: true }), [renderLink]);
|
|
2350
|
-
const rehypePlugins = [
|
|
2351
|
-
...singleLine ? INLINE_FLOW_SPACE : INLINE_FLOW_BREAK,
|
|
2352
|
-
...secretsUi && mayContainSecretReference(children) ? [[rehypeSecretRefs, { tokenize: secretsUi.tokenize }]] : []
|
|
2353
|
-
];
|
|
2354
|
-
return /* @__PURE__ */ jsx5(MarkdownLinkContext.Provider, { value: linkContext, children: /* @__PURE__ */ jsx5(
|
|
2355
|
-
ReactMarkdown,
|
|
2356
|
-
{
|
|
2357
|
-
remarkPlugins: singleLine ? REMARK_PLUGINS : SOFT_LINE_BREAK_REMARK_PLUGINS,
|
|
2358
|
-
rehypePlugins,
|
|
2359
|
-
components: inlineMarkdownComponents,
|
|
2360
|
-
urlTransform: markdownUrlTransform,
|
|
2361
|
-
allowedElements: INLINE_MARKDOWN_ELEMENTS,
|
|
2362
|
-
unwrapDisallowed: true,
|
|
2363
|
-
children
|
|
2364
|
-
}
|
|
2365
|
-
) });
|
|
2366
|
-
});
|
|
2367
|
-
var Markdown = memo2(function SearchableMarkdown(props) {
|
|
2368
|
-
const t = useOpenGeniText();
|
|
2369
|
-
const [retained, setRetained] = useState4(
|
|
2370
|
-
null
|
|
2371
|
-
);
|
|
2372
|
-
if (props.searchTarget && (retained?.target !== props.searchTarget || retained.text !== props.children)) {
|
|
2373
|
-
setRetained({ text: props.children, target: props.searchTarget });
|
|
2374
|
-
}
|
|
2375
|
-
const target = props.searchTarget ?? (retained?.text === props.children ? retained.target : null);
|
|
2376
|
-
if (!target) return /* @__PURE__ */ jsx5(MarkdownImpl, { ...props });
|
|
2377
|
-
const offset = searchMatchOffset(props.children, target);
|
|
2378
|
-
if (offset < 0)
|
|
2379
|
-
return props.searchTarget ? /* @__PURE__ */ jsx5("div", { role: "status", children: t("markdown.thisMatchIsNoLonger") }) : /* @__PURE__ */ jsx5(MarkdownImpl, { ...props });
|
|
2380
|
-
let start = Math.max(0, offset - 240);
|
|
2381
|
-
let end = Math.min(props.children.length, offset + target.query.length + 240);
|
|
2382
|
-
if (start > 0 && /[\uDC00-\uDFFF]/.test(props.children[start])) start--;
|
|
2383
|
-
if (end < props.children.length && /[\uDC00-\uDFFF]/.test(props.children[end])) end++;
|
|
2384
|
-
const MatchTag = props.searchTarget ? "mark" : "span";
|
|
2385
|
-
return /* @__PURE__ */ jsxs4("div", { className: cn("og-markdown-body min-w-0 break-words", props.className), children: [
|
|
2386
|
-
/* @__PURE__ */ jsxs4("div", { "data-og-annotation-chrome": "", className: "text-xs opacity-70", children: [
|
|
2387
|
-
t("markdown.matchInMessageSourceExcerpt"),
|
|
2388
|
-
/* @__PURE__ */ jsx5(
|
|
2389
|
-
"button",
|
|
2390
|
-
{
|
|
2391
|
-
type: "button",
|
|
2392
|
-
disabled: !!props.searchTarget,
|
|
2393
|
-
title: props.searchTarget ? t("markdown.closeFindToShowThe") : void 0,
|
|
2394
|
-
className: "ml-2 inline-flex min-h-7 items-center rounded-og-sm px-1.5 text-og-xs font-medium text-og-fg-muted outline-hidden hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent/45 pointer-coarse:min-h-11 disabled:opacity-50",
|
|
2395
|
-
onClick: () => setRetained(null),
|
|
2396
|
-
children: t("markdown.showFormattedMessage")
|
|
2397
|
-
}
|
|
2398
|
-
)
|
|
2399
|
-
] }),
|
|
2400
|
-
/* @__PURE__ */ jsxs4("div", { style: { whiteSpace: "pre-wrap", overflowWrap: "anywhere" }, children: [
|
|
2401
|
-
start > 0 ? "\u2026" : "",
|
|
2402
|
-
props.children.slice(start, offset),
|
|
2403
|
-
/* @__PURE__ */ jsx5(
|
|
2404
|
-
MatchTag,
|
|
2405
|
-
{
|
|
2406
|
-
"data-og-search-occurrence": target.occurrence ?? 0,
|
|
2407
|
-
"data-og-search-sequence": target.sequence,
|
|
2408
|
-
"data-og-search-query": target.query,
|
|
2409
|
-
"data-og-search-offset": offset,
|
|
2410
|
-
children: props.children.slice(offset, offset + target.query.length)
|
|
2411
|
-
}
|
|
2412
|
-
),
|
|
2413
|
-
props.children.slice(offset + target.query.length, end),
|
|
2414
|
-
end < props.children.length ? "\u2026" : ""
|
|
2415
|
-
] })
|
|
2416
|
-
] });
|
|
2417
|
-
});
|
|
2418
|
-
|
|
2419
|
-
export {
|
|
2420
|
-
MOTION_INSPECT_SCALE,
|
|
2421
|
-
CopyButton,
|
|
2422
|
-
CopyHoverFrame,
|
|
2423
|
-
InteractiveAnswer,
|
|
2424
|
-
LazyPart,
|
|
2425
|
-
sandboxFileLocationFromHref,
|
|
2426
|
-
sandboxFilePathFromHref,
|
|
2427
|
-
retainedImageId,
|
|
2428
|
-
InlineMarkdown,
|
|
2429
|
-
Markdown
|
|
2430
|
-
};
|
|
2431
|
-
//# sourceMappingURL=chunk-3IEVQMGO.js.map
|