@flamingo-stack/openframe-frontend-core 0.0.816 → 0.0.818
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/build/export-map.json +1 -1
- package/dist/{case-study-card-NLT2JVI7.cjs → case-study-card-IZBMHA6R.cjs} +3 -3
- package/dist/{chunk-VDXI26G7.cjs → chunk-4XASD2TL.cjs} +81 -78
- package/dist/{chunk-5TUR7O7H.cjs → chunk-5AIOYEXW.cjs} +90 -90
- package/dist/{chunk-RYJJHSHV.cjs → chunk-5VRSUEC5.cjs} +23 -23
- package/dist/{chunk-633NTKO2.cjs → chunk-6QT5K5I5.cjs} +31 -53
- package/dist/{chunk-CNTBGJA7.cjs → chunk-A34UNP5V.cjs} +65 -1
- package/dist/{chunk-3ELDGEM2.cjs → chunk-AE22KOW3.cjs} +87 -84
- package/dist/{chunk-EJCUAADF.cjs → chunk-BD42NMCT.cjs} +4 -4
- package/dist/{chunk-7NYWHEQM.cjs → chunk-DGAX5WG2.cjs} +15 -15
- package/dist/{chunk-L7W4455K.cjs → chunk-DL4HWYIB.cjs} +3 -3
- package/dist/chunk-DVHSYPDB.cjs +471 -0
- package/dist/{chunk-GAR2IIU6.cjs → chunk-IM366HS6.cjs} +105 -157
- package/dist/{chunk-7ERD34HQ.cjs → chunk-IQCHV7Z2.cjs} +571 -823
- package/dist/{chunk-3E4FIJAM.cjs → chunk-JTBJB4JF.cjs} +15 -15
- package/dist/{chunk-PAI4A3UM.cjs → chunk-K5IICQNF.cjs} +61 -54
- package/dist/{chunk-JOKOQOLJ.cjs → chunk-LUID2IB3.cjs} +2 -2
- package/dist/{chunk-JOOZTRXQ.cjs → chunk-NEXMK6OP.cjs} +4 -4
- package/dist/{chunk-4PMD3JUC.cjs → chunk-NPNZAAOB.cjs} +2 -2
- package/dist/{chunk-JH65CEO4.cjs → chunk-NWIEZUM7.cjs} +36 -36
- package/dist/{chunk-HM7VCQSX.cjs → chunk-SBFBNOKU.cjs} +4 -4
- package/dist/{chunk-7O7EX7HQ.cjs → chunk-T266OITJ.cjs} +28 -20
- package/dist/{chunk-SWBLTIN4.cjs → chunk-U2THWP25.cjs} +54 -52
- package/dist/{chunk-F4ZJRMMM.cjs → chunk-UDLDXVY4.cjs} +8 -8
- package/dist/{chunk-Y6MJMPHV.cjs → chunk-UEULXVW2.cjs} +32 -84
- package/dist/{chunk-O6VWD2SB.cjs → chunk-VGZXB3SY.cjs} +3 -3
- package/dist/{chunk-ZAWHRYJZ.cjs → chunk-VRXDTRIY.cjs} +45 -45
- package/dist/{chunk-EB7YAUER.cjs → chunk-YHPUD4PM.cjs} +19 -19
- package/dist/{chunk-FUEK43FL.cjs → chunk-YMPPE322.cjs} +206 -200
- package/dist/{chunk-IKB6AZPV.cjs → chunk-ZECG6GU5.cjs} +2 -2
- package/dist/{chunk-53JJLHJM.cjs → chunk-ZWAVMZIF.cjs} +20 -20
- package/dist/{cloud-tenants-SRTX2FZC.cjs → cloud-tenants-V6EV4OGK.cjs} +11 -11
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/announcement-bar.js +5 -5
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/chat-markdown-link.d.ts +15 -0
- package/dist/components/chat/chat-markdown-link.d.ts.map +1 -0
- package/dist/components/chat/chat-markdown-link.js +22 -0
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +3 -9
- package/dist/components/chat/embeddable-chat.d.ts +4 -8
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +31 -125
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +8 -11
- package/dist/components/chat/entity-cards/dispatch.d.ts +8 -15
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +22 -40
- package/dist/components/chat/entity-cards/github-activity-card.d.ts +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts +3 -2
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.js +6 -4
- package/dist/components/chat/index.cjs +28 -21
- package/dist/components/chat/index.d.ts +2 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +4 -3
- package/dist/components/chat/{inline-app-link-chip.d.ts → inline-chip.d.ts} +1 -14
- package/dist/components/chat/inline-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-chip.js +27 -0
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts +45 -11
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts.map +1 -1
- package/dist/components/chat/nav-link-anchor-via-runtime.js +32 -24
- package/dist/components/chat/source-action-button.d.ts +12 -3
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +41 -26
- package/dist/components/chat/types/component.types.d.ts +1 -1
- package/dist/components/chat/types/entities/data-room-doc.d.ts +0 -12
- package/dist/components/chat/types/entities/data-room-doc.d.ts.map +1 -1
- package/dist/components/chat/types/message.types.d.ts +1 -1
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.d.ts +1 -6
- package/dist/components/chat/utils/chat-nav-resolution.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.js +2 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts +0 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts.map +1 -1
- package/dist/components/chat/utils/decide-new-tab.js +0 -1
- package/dist/components/chat/utils/execute-navigation.d.ts +36 -34
- package/dist/components/chat/utils/execute-navigation.d.ts.map +1 -1
- package/dist/components/chat/utils/execute-navigation.js +23 -19
- package/dist/components/chat/utils/index.d.ts +5 -5
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/chat/utils/index.js +14 -6
- package/dist/components/chat/utils/nav-anchor-props.d.ts +35 -8
- package/dist/components/chat/utils/nav-anchor-props.d.ts.map +1 -1
- package/dist/components/chat/utils/nav-anchor-props.js +14 -5
- package/dist/components/chat/utils/new-tab-rel.d.ts +15 -0
- package/dist/components/chat/utils/new-tab-rel.d.ts.map +1 -0
- package/dist/components/chat/utils/new-tab-rel.js +25 -0
- package/dist/components/chat/utils/source-row-cta.d.ts +9 -48
- package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
- package/dist/components/chat/utils/source-row-cta.js +7 -32
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +4 -1
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +91 -83
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/app-header.d.ts +1 -4
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-header.js +0 -2
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/ticket-alerts-button.d.ts +1 -4
- package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
- package/dist/components/navigation/ticket-alerts-button.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/card-registry.d.ts +1 -1
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/related-content-section.d.ts +3 -3
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +5 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +10 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
- package/dist/components/shared/doc-search/resolve-search-result-action.js +8 -17
- package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
- package/dist/components/shared/doc-search/use-doc-search.js +15 -27
- package/dist/components/shared/product-release/product-release-card.d.ts +2 -2
- package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-releases-view.js +1 -3
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/tickets/ticket-detail-drawer.d.ts.map +1 -1
- package/dist/components/tickets/ticket-detail-drawer.js +6 -3
- package/dist/components/tickets/types.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/hover-dropdown.d.ts +2 -2
- package/dist/components/ui/index.cjs +31 -23
- package/dist/components/ui/service-card.d.ts.map +1 -1
- package/dist/components/ui/service-card.js +4 -1
- package/dist/components/vendor-display-button.d.ts.map +1 -1
- package/dist/components/vendor-display-button.js +4 -1
- package/dist/contexts/chat-runtime-context.d.ts +14 -25
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-DL4YU64N.cjs → devices-6KZAJAAS.cjs} +12 -12
- package/dist/{embeddable-chat-YRKMPFDY.cjs → embeddable-chat-5IHA5SUZ.cjs} +95 -193
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/use-contact-submission.d.ts.map +1 -1
- package/dist/hooks/use-contact-submission.js +11 -8
- package/dist/index.cjs +40 -34
- package/dist/{knowledge-VQW5JL2Z.cjs → knowledge-I7FDQQYJ.cjs} +12 -12
- package/dist/{logs-IY3WBLMW.cjs → logs-Q7PAVJUG.cjs} +19 -19
- package/dist/{policies-IXWTWMJO.cjs → policies-C3DW5CHS.cjs} +15 -15
- package/dist/{scripts-D5CLO5EG.cjs → scripts-BET663HD.cjs} +16 -16
- package/dist/{software-update-ULNP6CKJ.cjs → software-update-W7ZQXEPK.cjs} +14 -14
- package/dist/utils/index.cjs +116 -89
- package/dist/utils/open-in-new-tab.d.ts +2 -1
- package/dist/utils/open-in-new-tab.d.ts.map +1 -1
- package/dist/utils/open-in-new-tab.js +2 -1
- package/dist/utils/scroll-into-view.d.ts +1 -1
- package/dist/utils/source-grouping.d.ts +2 -2
- package/eslint-config/base.js +11 -0
- package/eslint-config/navigation.js +142 -0
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +8 -6
- package/src/components/chat/chat-markdown-link.tsx +42 -0
- package/src/components/chat/chat-message-enhanced.tsx +10 -36
- package/src/components/chat/embeddable-chat.tsx +66 -173
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +9 -13
- package/src/components/chat/entity-cards/data-room-doc-card.tsx +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +51 -66
- package/src/components/chat/entity-cards/github-activity-card.tsx +1 -1
- package/src/components/chat/entity-cards/use-entity-card-link.ts +11 -16
- package/src/components/chat/index.ts +3 -1
- package/src/components/chat/{inline-app-link-chip.tsx → inline-chip.tsx} +1 -27
- package/src/components/chat/nav-link-anchor-via-runtime.tsx +73 -33
- package/src/components/chat/source-action-button.tsx +57 -33
- package/src/components/chat/types/component.types.ts +1 -1
- package/src/components/chat/types/entities/data-room-doc.ts +0 -12
- package/src/components/chat/types/message.types.ts +1 -1
- package/src/components/chat/utils/chat-nav-resolution.ts +3 -8
- package/src/components/chat/utils/decide-new-tab.ts +0 -3
- package/src/components/chat/utils/execute-navigation.ts +58 -58
- package/src/components/chat/utils/index.ts +13 -6
- package/src/components/chat/utils/nav-anchor-props.ts +56 -9
- package/src/components/chat/utils/new-tab-rel.ts +39 -0
- package/src/components/chat/utils/source-row-cta.ts +21 -102
- package/src/components/features/devices/devices-table-columns.tsx +4 -1
- package/src/components/navigation/app-header.tsx +0 -5
- package/src/components/navigation/ticket-alerts-button.tsx +7 -8
- package/src/components/related-content/card-registry.tsx +1 -1
- package/src/components/related-content/related-content-section.tsx +10 -10
- package/src/components/shared/doc-search/resolve-search-result-action.ts +19 -33
- package/src/components/shared/doc-search/use-doc-search.ts +21 -44
- package/src/components/shared/product-release/product-release-card.tsx +4 -4
- package/src/components/shared/product-release/product-releases-view.tsx +2 -5
- package/src/components/tickets/ticket-detail-drawer.tsx +7 -4
- package/src/components/tickets/types.ts +1 -1
- package/src/components/ui/button/button.tsx +2 -2
- package/src/components/ui/hover-dropdown.tsx +2 -2
- package/src/components/ui/service-card.tsx +4 -1
- package/src/components/vendor-display-button.tsx +5 -2
- package/src/contexts/chat-runtime-context.tsx +18 -23
- package/src/hooks/use-contact-submission.ts +13 -8
- package/src/utils/index.ts +1 -1
- package/src/utils/open-in-new-tab.ts +4 -2
- package/src/utils/scroll-into-view.ts +1 -1
- package/src/utils/source-grouping.ts +2 -2
- package/dist/chunk-RD66AGUI.cjs +0 -156
- package/dist/components/chat/inline-app-link-chip.d.ts.map +0 -1
- package/dist/components/chat/inline-app-link-chip.js +0 -37
|
@@ -54,7 +54,7 @@ var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkT266OITJcjs = require('./chunk-T266OITJ.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -66,6 +66,11 @@ var _chunkAPOMNC7Hcjs = require('./chunk-APOMNC7H.cjs');
|
|
|
66
66
|
var _chunk7Z536SPRcjs = require('./chunk-7Z536SPR.cjs');
|
|
67
67
|
|
|
68
68
|
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
72
|
+
|
|
73
|
+
|
|
69
74
|
var _chunk5SZ4ILU3cjs = require('./chunk-5SZ4ILU3.cjs');
|
|
70
75
|
|
|
71
76
|
|
|
@@ -110,7 +115,7 @@ var _chunk5SZ4ILU3cjs = require('./chunk-5SZ4ILU3.cjs');
|
|
|
110
115
|
|
|
111
116
|
|
|
112
117
|
|
|
113
|
-
var
|
|
118
|
+
var _chunk4XASD2TLcjs = require('./chunk-4XASD2TL.cjs');
|
|
114
119
|
|
|
115
120
|
|
|
116
121
|
|
|
@@ -131,7 +136,7 @@ var _chunkVDXI26G7cjs = require('./chunk-VDXI26G7.cjs');
|
|
|
131
136
|
|
|
132
137
|
|
|
133
138
|
|
|
134
|
-
var
|
|
139
|
+
var _chunkIQCHV7Z2cjs = require('./chunk-IQCHV7Z2.cjs');
|
|
135
140
|
|
|
136
141
|
|
|
137
142
|
|
|
@@ -464,7 +469,8 @@ var _chunkNONMZ5WJcjs = require('./chunk-NONMZ5WJ.cjs');
|
|
|
464
469
|
|
|
465
470
|
|
|
466
471
|
|
|
467
|
-
|
|
472
|
+
|
|
473
|
+
var _chunkA34UNP5Vcjs = require('./chunk-A34UNP5V.cjs');
|
|
468
474
|
|
|
469
475
|
|
|
470
476
|
var _chunkQDDBOCG3cjs = require('./chunk-QDDBOCG3.cjs');
|
|
@@ -473,11 +479,6 @@ var _chunkQDDBOCG3cjs = require('./chunk-QDDBOCG3.cjs');
|
|
|
473
479
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
474
480
|
|
|
475
481
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
479
|
-
|
|
480
|
-
|
|
481
482
|
var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
482
483
|
|
|
483
484
|
|
|
@@ -490,7 +491,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
490
491
|
|
|
491
492
|
|
|
492
493
|
|
|
493
|
-
var
|
|
494
|
+
var _chunkIM366HS6cjs = require('./chunk-IM366HS6.cjs');
|
|
494
495
|
|
|
495
496
|
|
|
496
497
|
|
|
@@ -499,7 +500,7 @@ var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
|
499
500
|
|
|
500
501
|
|
|
501
502
|
|
|
502
|
-
var
|
|
503
|
+
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
503
504
|
|
|
504
505
|
|
|
505
506
|
|
|
@@ -533,7 +534,7 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
|
533
534
|
|
|
534
535
|
|
|
535
536
|
|
|
536
|
-
var
|
|
537
|
+
var _chunkDVHSYPDBcjs = require('./chunk-DVHSYPDB.cjs');
|
|
537
538
|
|
|
538
539
|
|
|
539
540
|
|
|
@@ -570,6 +571,9 @@ var _chunkQOAA7ZHBcjs = require('./chunk-QOAA7ZHB.cjs');
|
|
|
570
571
|
var _chunk3V5JWG27cjs = require('./chunk-3V5JWG27.cjs');
|
|
571
572
|
|
|
572
573
|
|
|
574
|
+
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
575
|
+
|
|
576
|
+
|
|
573
577
|
|
|
574
578
|
|
|
575
579
|
|
|
@@ -705,7 +709,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
705
709
|
var useTheme = _nextthemes.useTheme;
|
|
706
710
|
function useThemeToggle() {
|
|
707
711
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
708
|
-
const mounted =
|
|
712
|
+
const mounted = _chunkIQCHV7Z2cjs.useIsHydrated.call(void 0, );
|
|
709
713
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
710
714
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
711
715
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -2439,7 +2443,7 @@ function InfoCardValueRow({
|
|
|
2439
2443
|
copyAriaLabel,
|
|
2440
2444
|
loading: loadingProp
|
|
2441
2445
|
}) {
|
|
2442
|
-
const { copy, copied } =
|
|
2446
|
+
const { copy, copied } = _chunkT266OITJcjs.useCopyToClipboard.call(void 0, );
|
|
2443
2447
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2444
2448
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: VALUE_ROW_CLASS, children: [
|
|
2445
2449
|
loading && label === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-20" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: ROW_LABEL_CLASS, children: showLabel ? _nullishCoalesce(label, () => ( "")) : "" }),
|
|
@@ -4576,7 +4580,7 @@ function AdminFormDrawer({
|
|
|
4576
4580
|
"form",
|
|
4577
4581
|
{
|
|
4578
4582
|
id: formId,
|
|
4579
|
-
...
|
|
4583
|
+
..._chunk4XASD2TLcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4580
4584
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4581
4585
|
onSubmit: (e) => {
|
|
4582
4586
|
e.preventDefault();
|
|
@@ -4683,7 +4687,7 @@ function AdminFormModal({
|
|
|
4683
4687
|
"form",
|
|
4684
4688
|
{
|
|
4685
4689
|
id: formId,
|
|
4686
|
-
...
|
|
4690
|
+
..._chunk4XASD2TLcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4687
4691
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4688
4692
|
onSubmit: (e) => {
|
|
4689
4693
|
e.preventDefault();
|
|
@@ -6053,7 +6057,7 @@ function EmbedViewerFrame({
|
|
|
6053
6057
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6054
6058
|
_react.useEffect.call(void 0, () => {
|
|
6055
6059
|
if (!fullscreenControl) return void 0;
|
|
6056
|
-
const controller = new (0,
|
|
6060
|
+
const controller = new (0, _chunk4XASD2TLcjs.FullscreenSwitchController)({
|
|
6057
6061
|
target: () => frameRef.current,
|
|
6058
6062
|
onFullscreenChange: setIsFullscreen
|
|
6059
6063
|
});
|
|
@@ -6147,7 +6151,7 @@ var KIND_HEADING = {
|
|
|
6147
6151
|
design: "Claude Design"
|
|
6148
6152
|
};
|
|
6149
6153
|
function ClaudeEmbed({ url, kind = "artifact", title, height, loading = "lazy" }) {
|
|
6150
|
-
const { src: mirrorSrc, status } =
|
|
6154
|
+
const { src: mirrorSrc, status } = _chunkT266OITJcjs.useClaudeMirrorSrc.call(void 0, url);
|
|
6151
6155
|
const isProbing = status === "probing";
|
|
6152
6156
|
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => ( _chunkNONMZ5WJcjs.toClaudeEmbedUrl.call(void 0, url)));
|
|
6153
6157
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6680,7 +6684,7 @@ var OGLinkPreview = ({
|
|
|
6680
6684
|
type: "website",
|
|
6681
6685
|
favicon: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`
|
|
6682
6686
|
} : null)));
|
|
6683
|
-
const placeholderImageUrl =
|
|
6687
|
+
const placeholderImageUrl = _chunkDVHSYPDBcjs.useOgPlaceholderUrl.call(void 0, {
|
|
6684
6688
|
title: _optionalChain([effectiveData, 'optionalAccess', _124 => _124.title]),
|
|
6685
6689
|
siteName: _optionalChain([effectiveData, 'optionalAccess', _125 => _125.siteName]) || domain,
|
|
6686
6690
|
enabled: enablePlaceholder && !isTile
|
|
@@ -6696,7 +6700,7 @@ var OGLinkPreview = ({
|
|
|
6696
6700
|
const hasImage = !!resolvedImageUrl;
|
|
6697
6701
|
const isCuratedImage = _optionalChain([resolvedImage, 'optionalAccess', _129 => _129.source]) === "curated";
|
|
6698
6702
|
const isPlaceholder = _optionalChain([resolvedImage, 'optionalAccess', _130 => _130.source]) === "placeholder";
|
|
6699
|
-
const bgColor =
|
|
6703
|
+
const bgColor = _chunkDVHSYPDBcjs.useImageEdgeColor.call(void 0, _nullishCoalesce(resolvedImageUrl, () => ( null)), "var(--color-bg-surface)");
|
|
6700
6704
|
const renderSkeleton = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6701
6705
|
OGLinkPreviewSkeleton,
|
|
6702
6706
|
{
|
|
@@ -7107,7 +7111,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
7107
7111
|
};
|
|
7108
7112
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
7109
7113
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7110
|
-
|
|
7114
|
+
_chunkUEULXVW2cjs.Video,
|
|
7111
7115
|
{
|
|
7112
7116
|
url: item.src,
|
|
7113
7117
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -7302,7 +7306,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7302
7306
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7303
7307
|
};
|
|
7304
7308
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7305
|
-
const postLinkRel =
|
|
7309
|
+
const postLinkRel = _chunkIQCHV7Z2cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7306
7310
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7307
7311
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7308
7312
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7634,7 +7638,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7634
7638
|
] });
|
|
7635
7639
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7636
7640
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7637
|
-
const postLinkRel =
|
|
7641
|
+
const postLinkRel = _chunkIQCHV7Z2cjs.renderedLinkRel.call(void 0, rel, true);
|
|
7638
7642
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7639
7643
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7640
7644
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7836,7 +7840,7 @@ function buildRichEmbedOverrides({
|
|
|
7836
7840
|
ogEndpointPath,
|
|
7837
7841
|
textSizes
|
|
7838
7842
|
}) {
|
|
7839
|
-
const standard =
|
|
7843
|
+
const standard = _chunkIQCHV7Z2cjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7840
7844
|
return {
|
|
7841
7845
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7842
7846
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7846,7 +7850,7 @@ function buildRichEmbedOverrides({
|
|
|
7846
7850
|
const language = match ? match[1] : "";
|
|
7847
7851
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7848
7852
|
if (language === "youtube-embed") {
|
|
7849
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7853
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { kind: "youtube", url: fenceText() });
|
|
7850
7854
|
}
|
|
7851
7855
|
if (language === "reddit-embed") {
|
|
7852
7856
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7887,7 +7891,7 @@ function buildRichEmbedOverrides({
|
|
|
7887
7891
|
"data-figma-url": figmaUrl
|
|
7888
7892
|
} = divProps;
|
|
7889
7893
|
if (className === "youtube-embed" && videoId) {
|
|
7890
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7894
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { kind: "youtube", url: videoId });
|
|
7891
7895
|
}
|
|
7892
7896
|
if (className === "reddit-embed" && postUrl) {
|
|
7893
7897
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -7972,23 +7976,23 @@ function buildRichEmbedOverrides({
|
|
|
7972
7976
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7973
7977
|
// elsewhere). Guard against empty `![]()`.
|
|
7974
7978
|
img: ({ src, alt }) => {
|
|
7975
|
-
if (!
|
|
7979
|
+
if (!_chunkIQCHV7Z2cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7976
7980
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7977
7981
|
},
|
|
7978
7982
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7979
7983
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7980
7984
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7981
7985
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7982
|
-
if (!
|
|
7986
|
+
if (!_chunkIQCHV7Z2cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7983
7987
|
const url = src.trim();
|
|
7984
|
-
if (
|
|
7988
|
+
if (_chunkUEULXVW2cjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { kind: "youtube", url });
|
|
7985
7989
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
7986
7990
|
},
|
|
7987
7991
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7988
7992
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7989
7993
|
video: ({ src, poster, className }) => {
|
|
7990
|
-
if (!
|
|
7991
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7994
|
+
if (!_chunkIQCHV7Z2cjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7995
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7992
7996
|
}
|
|
7993
7997
|
};
|
|
7994
7998
|
}
|
|
@@ -8096,7 +8100,7 @@ var processShortcodes = (content) => {
|
|
|
8096
8100
|
try {
|
|
8097
8101
|
const urlObj = new URL(url);
|
|
8098
8102
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8099
|
-
const hostIs = (domain) =>
|
|
8103
|
+
const hostIs = (domain) => _chunk4XASD2TLcjs.hostMatches.call(void 0, hostname, domain);
|
|
8100
8104
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8101
8105
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8102
8106
|
return match;
|
|
@@ -8173,13 +8177,13 @@ var RichMarkdownInner = ({
|
|
|
8173
8177
|
},
|
|
8174
8178
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8175
8179
|
);
|
|
8176
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8180
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkIQCHV7Z2cjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8177
8181
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8178
8182
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8179
8183
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8180
8184
|
);
|
|
8181
8185
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8182
|
-
|
|
8186
|
+
_chunkIQCHV7Z2cjs.MarkdownEngine,
|
|
8183
8187
|
{
|
|
8184
8188
|
content,
|
|
8185
8189
|
className,
|
|
@@ -8204,7 +8208,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8204
8208
|
className = "",
|
|
8205
8209
|
sectionIds,
|
|
8206
8210
|
onInternalLinkClick,
|
|
8207
|
-
brokenLinks =
|
|
8211
|
+
brokenLinks = _chunkIQCHV7Z2cjs.NO_BROKEN_LINKS,
|
|
8208
8212
|
currentPath,
|
|
8209
8213
|
resolveSource = "openframe-docs",
|
|
8210
8214
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -9549,7 +9553,7 @@ function renderAdvancedPageContainer({
|
|
|
9549
9553
|
contentClassName,
|
|
9550
9554
|
showHeader = true
|
|
9551
9555
|
}, inScope = false) {
|
|
9552
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children:
|
|
9556
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9553
9557
|
const subtitleNode = subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: PAGE_CONTAINER_SUBTITLE_CLASS, children: subtitle }) : inScope && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerSubtitleSkeleton, {}) : null;
|
|
9554
9558
|
const getActionsVariant = () => {
|
|
9555
9559
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9709,7 +9713,7 @@ function ListPageLayout({
|
|
|
9709
9713
|
}) {
|
|
9710
9714
|
const [mobileFilterOpen, setMobileFilterOpen] = _react.useState.call(void 0, false);
|
|
9711
9715
|
const [localSearchValue, setLocalSearchValue] = _react.useState.call(void 0, searchValue);
|
|
9712
|
-
const debouncedSearchValue =
|
|
9716
|
+
const debouncedSearchValue = _chunkA34UNP5Vcjs.useDebounce.call(void 0, localSearchValue, 500);
|
|
9713
9717
|
const [syncedSearchValue, setSyncedSearchValue] = _react.useState.call(void 0, searchValue);
|
|
9714
9718
|
if (syncedSearchValue !== searchValue) {
|
|
9715
9719
|
setSyncedSearchValue(searchValue);
|
|
@@ -9976,7 +9980,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9976
9980
|
|
|
9977
9981
|
|
|
9978
9982
|
function PlatformBrowseButton({ item }) {
|
|
9979
|
-
const linkProps =
|
|
9983
|
+
const linkProps = _chunkIQCHV7Z2cjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9980
9984
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9981
9985
|
"Browse ",
|
|
9982
9986
|
item.buttonText
|
|
@@ -10495,10 +10499,10 @@ var OSTypeBadge = ({
|
|
|
10495
10499
|
if (!osType) {
|
|
10496
10500
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10497
10501
|
}
|
|
10498
|
-
const normalized =
|
|
10502
|
+
const normalized = _chunk4XASD2TLcjs.normalizeOSType.call(void 0, osType);
|
|
10499
10503
|
if (!normalized && !labelOnly) return null;
|
|
10500
|
-
const label =
|
|
10501
|
-
const IconComponent =
|
|
10504
|
+
const label = _chunk4XASD2TLcjs.getOSLabel.call(void 0, osType);
|
|
10505
|
+
const IconComponent = _chunk4XASD2TLcjs.getOSIcon.call(void 0, osType);
|
|
10502
10506
|
if (iconOnly && IconComponent) {
|
|
10503
10507
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk63A4GZMBcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10504
10508
|
}
|
|
@@ -10795,7 +10799,7 @@ function ComplianceLogo({
|
|
|
10795
10799
|
fallback = null,
|
|
10796
10800
|
className
|
|
10797
10801
|
}) {
|
|
10798
|
-
const standard =
|
|
10802
|
+
const standard = _chunk4XASD2TLcjs.complianceStandardForName.call(void 0, ...names);
|
|
10799
10803
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10800
10804
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10801
10805
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10876,7 +10880,7 @@ function FeatureCardGridView({
|
|
|
10876
10880
|
if (allCardsHaveNoBorders) {
|
|
10877
10881
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
10878
10882
|
}
|
|
10879
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10883
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
10880
10884
|
const startIndex = rowIndex * itemsPerRow;
|
|
10881
10885
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
10882
10886
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -10910,7 +10914,7 @@ function FeatureCardGridView({
|
|
|
10910
10914
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
10911
10915
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
10912
10916
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10913
|
-
|
|
10917
|
+
_chunkUEULXVW2cjs.StatusBadge,
|
|
10914
10918
|
{
|
|
10915
10919
|
text: item.badge.text,
|
|
10916
10920
|
variant: item.badge.variant || "card",
|
|
@@ -10919,7 +10923,7 @@ function FeatureCardGridView({
|
|
|
10919
10923
|
)
|
|
10920
10924
|
] }),
|
|
10921
10925
|
!item.icon && item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-start justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10922
|
-
|
|
10926
|
+
_chunkUEULXVW2cjs.StatusBadge,
|
|
10923
10927
|
{
|
|
10924
10928
|
text: item.badge.text,
|
|
10925
10929
|
variant: item.badge.variant || "card",
|
|
@@ -11803,14 +11807,15 @@ function ServiceCard({
|
|
|
11803
11807
|
function ServiceCardRowItem({ row, loading: loadingProp }) {
|
|
11804
11808
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
11805
11809
|
const [revealed, setRevealed] = _react.useState.call(void 0, false);
|
|
11806
|
-
const { copy, copied } =
|
|
11810
|
+
const { copy, copied } = _chunkT266OITJcjs.useCopyToClipboard.call(void 0, );
|
|
11807
11811
|
const { ref: valueRef, isTruncated: valueTruncated } = _chunkLC65AC6Mcjs.useIsTruncated.call(void 0, row.value);
|
|
11808
11812
|
const actions = _react.useMemo.call(void 0, () => rowActions(row), [row]);
|
|
11813
|
+
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
11809
11814
|
const displayValue = row.isSecret ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MaskedValue, { value: row.value, isRevealed: revealed }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: row.value });
|
|
11810
11815
|
const handleCopy = () => copy(_nullishCoalesce(row.copyValue, () => ( row.value)));
|
|
11811
11816
|
const openInNewTab2 = () => {
|
|
11812
11817
|
if (!row.href) return;
|
|
11813
|
-
|
|
11818
|
+
_chunkA34UNP5Vcjs.executeNewTabNavigation.call(void 0, { runtime, href: row.href });
|
|
11814
11819
|
};
|
|
11815
11820
|
const labelColumn = loading ? row.label !== void 0 : !!row.label;
|
|
11816
11821
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SERVICE_CARD_ROW_CLASS, children: [
|
|
@@ -12836,7 +12841,7 @@ function DataTableRowImpl({
|
|
|
12836
12841
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12837
12842
|
const handleClick = _react.useCallback.call(void 0,
|
|
12838
12843
|
(e) => {
|
|
12839
|
-
if (!
|
|
12844
|
+
if (!_chunk4XASD2TLcjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12840
12845
|
if (isLinkMode) e.preventDefault();
|
|
12841
12846
|
return;
|
|
12842
12847
|
}
|
|
@@ -12850,7 +12855,7 @@ function DataTableRowImpl({
|
|
|
12850
12855
|
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _224 => _224.contains, 'call', _225 => _225(target)])) return;
|
|
12851
12856
|
const nestedLink = target.closest("a");
|
|
12852
12857
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12853
|
-
if (!
|
|
12858
|
+
if (!_chunk4XASD2TLcjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
12854
12859
|
}, []);
|
|
12855
12860
|
const containerClassName = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
12856
12861
|
DATA_TABLE_ROW_FRAME_CLASS,
|
|
@@ -12980,7 +12985,7 @@ function DataTableBody({
|
|
|
12980
12985
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
12981
12986
|
if (loading && loadingCells && hasRows) {
|
|
12982
12987
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12983
|
-
|
|
12988
|
+
_chunkIQCHV7Z2cjs.LoadingFallback,
|
|
12984
12989
|
{
|
|
12985
12990
|
label: "Loading results",
|
|
12986
12991
|
status: loadingRegion && !inScope,
|
|
@@ -13329,7 +13334,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13329
13334
|
// child of the cell.
|
|
13330
13335
|
_optionalChain([meta, 'optionalAccess', _244 => _244.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13331
13336
|
filterTrigger,
|
|
13332
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4XASD2TLcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13333
13338
|
] }) : filterTrigger
|
|
13334
13339
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13335
13340
|
"div",
|
|
@@ -13354,7 +13359,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13354
13359
|
// centred on the row.
|
|
13355
13360
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13356
13361
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13357
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13362
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4XASD2TLcjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13358
13363
|
] })
|
|
13359
13364
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13360
13365
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13593,7 +13598,7 @@ function PhoneInput({
|
|
|
13593
13598
|
placeholder = "Phone Number (optional)",
|
|
13594
13599
|
onKeyDown
|
|
13595
13600
|
}) {
|
|
13596
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13601
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunk4XASD2TLcjs.getCountryPhoneData.call(void 0, ), []);
|
|
13597
13602
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13598
13603
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13599
13604
|
[countryCode, priority, others]
|
|
@@ -13608,7 +13613,7 @@ function PhoneInput({
|
|
|
13608
13613
|
_optionalChain([onValidationChange, 'optionalCall', _261 => _261(false)]);
|
|
13609
13614
|
return;
|
|
13610
13615
|
}
|
|
13611
|
-
const invalid = !
|
|
13616
|
+
const invalid = !_chunk4XASD2TLcjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13612
13617
|
setIsInvalid(invalid);
|
|
13613
13618
|
_optionalChain([onValidationChange, 'optionalCall', _262 => _262(invalid)]);
|
|
13614
13619
|
},
|
|
@@ -13756,7 +13761,7 @@ function SearchInput({
|
|
|
13756
13761
|
}) {
|
|
13757
13762
|
const [internalValue, setInternalValue] = _react.useState.call(void 0, defaultValue);
|
|
13758
13763
|
const currentValue = onChange ? _nullishCoalesce(value, () => ( "")) : internalValue;
|
|
13759
|
-
const debouncedValue =
|
|
13764
|
+
const debouncedValue = _chunkA34UNP5Vcjs.useDebounce.call(void 0, currentValue, debounceMs);
|
|
13760
13765
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
13761
13766
|
const [highlightedIndex, setHighlightedIndex] = _react.useState.call(void 0, -1);
|
|
13762
13767
|
const keyboardPadding = _chunk7Z536SPRcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
@@ -14453,7 +14458,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14453
14458
|
),
|
|
14454
14459
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14455
14460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14456
|
-
|
|
14461
|
+
_chunkIQCHV7Z2cjs.TabSelector,
|
|
14457
14462
|
{
|
|
14458
14463
|
label: "Search engines",
|
|
14459
14464
|
value: choice,
|
|
@@ -14510,7 +14515,7 @@ function useMarkdownLinkCommand() {
|
|
|
14510
14515
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14511
14516
|
icon: command.icon,
|
|
14512
14517
|
execute: (state, api) => {
|
|
14513
|
-
const existing =
|
|
14518
|
+
const existing = _chunkIQCHV7Z2cjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14514
14519
|
setPending(
|
|
14515
14520
|
existing ? {
|
|
14516
14521
|
api,
|
|
@@ -14541,7 +14546,7 @@ function useMarkdownLinkCommand() {
|
|
|
14541
14546
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _319 => _319.initial]), () => ( EMPTY_LINK)),
|
|
14542
14547
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _320 => _320.editing]), () => ( false)),
|
|
14543
14548
|
onSubmit: (link) => {
|
|
14544
|
-
if (pending) write(pending,
|
|
14549
|
+
if (pending) write(pending, _chunkIQCHV7Z2cjs.formatMarkdownLink.call(void 0, link));
|
|
14545
14550
|
},
|
|
14546
14551
|
onRemove: () => {
|
|
14547
14552
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -14707,7 +14712,7 @@ function MarkdownEditor({
|
|
|
14707
14712
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
14708
14713
|
try {
|
|
14709
14714
|
const url = await onUploadFile(file);
|
|
14710
|
-
const isImage =
|
|
14715
|
+
const isImage = _chunkIM366HS6cjs.fileMediaType.call(void 0, file) === "image";
|
|
14711
14716
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14712
14717
|
insertTextAtCursor(markdown);
|
|
14713
14718
|
_optionalChain([onFileUploaded, 'optionalCall', _323 => _323(url, file.name)]);
|
|
@@ -14837,7 +14842,7 @@ function MarkdownEditor({
|
|
|
14837
14842
|
type: "file",
|
|
14838
14843
|
className: "hidden",
|
|
14839
14844
|
onChange: handleFileInputChange,
|
|
14840
|
-
accept: `${
|
|
14845
|
+
accept: `${_chunkIM366HS6cjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
14841
14846
|
}
|
|
14842
14847
|
),
|
|
14843
14848
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorHeightContext.Provider, { value: height, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorFieldSkeleton, { height }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15251,7 +15256,7 @@ function matchesAccept2(file, accept) {
|
|
|
15251
15256
|
return patterns.some((pattern) => {
|
|
15252
15257
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
15253
15258
|
if (pattern.endsWith("/*"))
|
|
15254
|
-
return fileType.startsWith(pattern.slice(0, -1)) ||
|
|
15259
|
+
return fileType.startsWith(pattern.slice(0, -1)) || _chunkIM366HS6cjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
|
|
15255
15260
|
return fileType === pattern;
|
|
15256
15261
|
});
|
|
15257
15262
|
}
|
|
@@ -15259,7 +15264,7 @@ function ImageUploader({
|
|
|
15259
15264
|
value,
|
|
15260
15265
|
onChange,
|
|
15261
15266
|
onRemove,
|
|
15262
|
-
accept =
|
|
15267
|
+
accept = _chunkIM366HS6cjs.IMAGE_FILE_ACCEPT,
|
|
15263
15268
|
maxSize = DEFAULT_MAX_SIZE,
|
|
15264
15269
|
label = "Cover Image",
|
|
15265
15270
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -15935,7 +15940,7 @@ function TestResultsTable({ rows, loading: loadingProp }) {
|
|
|
15935
15940
|
] }) }) });
|
|
15936
15941
|
}
|
|
15937
15942
|
function TestRunErrorBanner({ error, className }) {
|
|
15938
|
-
const { copy } =
|
|
15943
|
+
const { copy } = _chunkT266OITJcjs.useCopyToClipboard.call(void 0, { successDescription: "Error message copied to clipboard" });
|
|
15939
15944
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15940
15945
|
"div",
|
|
15941
15946
|
{
|
|
@@ -16421,7 +16426,7 @@ function TicketInfoSection({
|
|
|
16421
16426
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16422
16427
|
createdAt && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-bg px-4 py-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: createdAt, label: "Created" }) }),
|
|
16423
16428
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16424
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16429
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.SimpleMarkdownRenderer, { content: description }),
|
|
16425
16430
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16426
16431
|
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16427
16432
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16896,7 +16901,7 @@ function PhotoWall({
|
|
|
16896
16901
|
gap: COLUMN_GAP_PX
|
|
16897
16902
|
};
|
|
16898
16903
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk63A4GZMBcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16899
|
-
|
|
16904
|
+
_chunkIQCHV7Z2cjs.MarqueeWall,
|
|
16900
16905
|
{
|
|
16901
16906
|
axis: "y",
|
|
16902
16907
|
reverse: index % 2 === 1,
|
|
@@ -17441,7 +17446,7 @@ function LoadingLabel({ label, typical }) {
|
|
|
17441
17446
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: label.split(/(\{\w+\})/).map(
|
|
17442
17447
|
(part, index) => /^\{\w+\}$/.test(part) ? (
|
|
17443
17448
|
// biome-ignore lint/suspicious/noArrayIndexKey: the parts of one fixed string never reorder
|
|
17444
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17449
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.TextHold, { children: typical }, index)
|
|
17445
17450
|
) : part
|
|
17446
17451
|
) });
|
|
17447
17452
|
}
|
|
@@ -17456,7 +17461,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17456
17461
|
};
|
|
17457
17462
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17458
17463
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17459
|
-
const labels =
|
|
17464
|
+
const labels = _chunk4XASD2TLcjs.trialLabels.call(void 0, trialDays);
|
|
17460
17465
|
return terms.flatMap((term) => {
|
|
17461
17466
|
const label = labels[term];
|
|
17462
17467
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -17765,8 +17770,8 @@ function SnapCarousel({
|
|
|
17765
17770
|
}) {
|
|
17766
17771
|
const trackRef = _react.useRef.call(void 0, null);
|
|
17767
17772
|
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
17768
|
-
const { ref: viewRef, inView } =
|
|
17769
|
-
const auto =
|
|
17773
|
+
const { ref: viewRef, inView } = _chunkA34UNP5Vcjs.useInView.call(void 0, { threshold: 0.5 });
|
|
17774
|
+
const auto = _chunkA34UNP5Vcjs.useAutoplay.call(void 0, inView);
|
|
17770
17775
|
const count = items.length;
|
|
17771
17776
|
const slideStep = _react.useCallback.call(void 0, () => {
|
|
17772
17777
|
const first = _optionalChain([trackRef, 'access', _376 => _376.current, 'optionalAccess', _377 => _377.firstElementChild]);
|
|
@@ -17810,7 +17815,7 @@ function SnapCarousel({
|
|
|
17810
17815
|
const goNext = _react.useCallback.call(void 0, () => goTo(index >= count - 1 ? 0 : index + 1), [count, goTo, index]);
|
|
17811
17816
|
const canAutoAdvance = autoAdvanceMs > 0 && count > 1;
|
|
17812
17817
|
const playing = auto.playing && canAutoAdvance;
|
|
17813
|
-
const ranMs =
|
|
17818
|
+
const ranMs = _chunkT266OITJcjs.useResumableTimeout.call(void 0, {
|
|
17814
17819
|
running: playing,
|
|
17815
17820
|
durationMs: autoAdvanceMs,
|
|
17816
17821
|
resetKey: index,
|
|
@@ -18161,10 +18166,10 @@ function AccountDetailsFields({
|
|
|
18161
18166
|
onKeyDown,
|
|
18162
18167
|
layout = "stacked"
|
|
18163
18168
|
}) {
|
|
18164
|
-
const firstNameErr =
|
|
18165
|
-
const lastNameErr =
|
|
18166
|
-
const passwordErr =
|
|
18167
|
-
const confirmErr =
|
|
18169
|
+
const firstNameErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _378 => _378.firstName]), firstName);
|
|
18170
|
+
const lastNameErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _379 => _379.lastName]), lastName);
|
|
18171
|
+
const passwordErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _380 => _380.password]), password);
|
|
18172
|
+
const confirmErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _381 => _381.confirmPassword]), confirmPassword);
|
|
18168
18173
|
const names = [
|
|
18169
18174
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18170
18175
|
_chunkSWF6TNZ3cjs.Input,
|
|
@@ -18430,7 +18435,7 @@ function SsoProviderButtons({
|
|
|
18430
18435
|
// where a long organization name would otherwise push the label out of a phone-width
|
|
18431
18436
|
// button. `block` over its inline-flex, because an ellipsis only renders on a block box.
|
|
18432
18437
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18433
|
-
|
|
18438
|
+
_chunkUEULXVW2cjs.StatusBadge,
|
|
18434
18439
|
{
|
|
18435
18440
|
text: tag,
|
|
18436
18441
|
variant: "button",
|
|
@@ -18490,7 +18495,7 @@ function CompleteAccountForm({
|
|
|
18490
18495
|
),
|
|
18491
18496
|
children: [
|
|
18492
18497
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18493
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18498
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
18494
18499
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18495
18500
|
] }),
|
|
18496
18501
|
(ssoProvidersLoading || ssoProviders && ssoProviders.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -18624,9 +18629,9 @@ function CreateOrganizationForm({
|
|
|
18624
18629
|
}) {
|
|
18625
18630
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
18626
18631
|
const fieldsDisabled = disabled || loading;
|
|
18627
|
-
const emailErr =
|
|
18628
|
-
const orgNameErr =
|
|
18629
|
-
const domainErr =
|
|
18632
|
+
const emailErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _383 => _383.email]), _nullishCoalesce(email, () => ( "")));
|
|
18633
|
+
const orgNameErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _384 => _384.organizationName]), organizationName);
|
|
18634
|
+
const domainErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _385 => _385.domain]), domain);
|
|
18630
18635
|
const handleKeyDown = (event) => {
|
|
18631
18636
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18632
18637
|
onSubmit();
|
|
@@ -18641,7 +18646,7 @@ function CreateOrganizationForm({
|
|
|
18641
18646
|
),
|
|
18642
18647
|
children: [
|
|
18643
18648
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18644
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18649
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
18645
18650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: CREATE_ORGANIZATION_SUBTITLE_BAR_CLASS }) : subtitle })
|
|
18646
18651
|
] }),
|
|
18647
18652
|
email === void 0 ? null : emailReadOnly && emailReadOnlyLabel === null ? (
|
|
@@ -18788,7 +18793,7 @@ function InviteLinkInvalidModal({
|
|
|
18788
18793
|
),
|
|
18789
18794
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
18790
18795
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
18791
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18796
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
18792
18797
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18793
18798
|
_chunkFCZAUK4Dcjs.Button,
|
|
18794
18799
|
{
|
|
@@ -18854,7 +18859,7 @@ function LoginForm({
|
|
|
18854
18859
|
}) {
|
|
18855
18860
|
const fieldDisabled = disabled || loading;
|
|
18856
18861
|
const providersDisabled = fieldDisabled || ssoDisabled;
|
|
18857
|
-
const emailErr =
|
|
18862
|
+
const emailErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _392 => _392.email]), email);
|
|
18858
18863
|
const handleKeyDown = (event) => {
|
|
18859
18864
|
if (event.key !== "Enter" || event.repeat || fieldDisabled) return;
|
|
18860
18865
|
if (onSubmitClick) {
|
|
@@ -18872,7 +18877,7 @@ function LoginForm({
|
|
|
18872
18877
|
),
|
|
18873
18878
|
children: [
|
|
18874
18879
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18875
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18880
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
18876
18881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18877
18882
|
] }),
|
|
18878
18883
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18999,7 +19004,7 @@ function NoAccountNotice({
|
|
|
18999
19004
|
),
|
|
19000
19005
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
19001
19006
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19002
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19007
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
19003
19008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
19004
19009
|
] }),
|
|
19005
19010
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -19032,8 +19037,8 @@ function OpenFrameSsoLoginForm({
|
|
|
19032
19037
|
className
|
|
19033
19038
|
}) {
|
|
19034
19039
|
const fieldsDisabled = disabled || loading;
|
|
19035
|
-
const emailErr =
|
|
19036
|
-
const passwordErr =
|
|
19040
|
+
const emailErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _396 => _396.email]), email);
|
|
19041
|
+
const passwordErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _397 => _397.password]), password);
|
|
19037
19042
|
const handleKeyDown = (event) => {
|
|
19038
19043
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19039
19044
|
onSubmit();
|
|
@@ -19048,7 +19053,7 @@ function OpenFrameSsoLoginForm({
|
|
|
19048
19053
|
),
|
|
19049
19054
|
children: [
|
|
19050
19055
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19051
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19056
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
19052
19057
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19053
19058
|
] }),
|
|
19054
19059
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19138,7 +19143,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19138
19143
|
className
|
|
19139
19144
|
}) {
|
|
19140
19145
|
const fieldsDisabled = disabled || loading;
|
|
19141
|
-
const emailErr =
|
|
19146
|
+
const emailErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _398 => _398.email]), email);
|
|
19142
19147
|
const handleKeyDown = (event) => {
|
|
19143
19148
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19144
19149
|
onSubmit();
|
|
@@ -19153,7 +19158,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19153
19158
|
),
|
|
19154
19159
|
children: [
|
|
19155
19160
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19156
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19161
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
19157
19162
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19158
19163
|
] }),
|
|
19159
19164
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19243,8 +19248,8 @@ function PasswordResetForm({
|
|
|
19243
19248
|
className
|
|
19244
19249
|
}) {
|
|
19245
19250
|
const fieldsDisabled = disabled || loading;
|
|
19246
|
-
const passwordErr =
|
|
19247
|
-
const confirmErr =
|
|
19251
|
+
const passwordErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _399 => _399.password]), password);
|
|
19252
|
+
const confirmErr = _chunkT266OITJcjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _400 => _400.confirmPassword]), confirmPassword);
|
|
19248
19253
|
const handleKeyDown = (event) => {
|
|
19249
19254
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19250
19255
|
onSubmit();
|
|
@@ -19259,7 +19264,7 @@ function PasswordResetForm({
|
|
|
19259
19264
|
),
|
|
19260
19265
|
children: [
|
|
19261
19266
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19262
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19267
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
19263
19268
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19264
19269
|
] }),
|
|
19265
19270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19380,7 +19385,7 @@ function SsoJoinForm({
|
|
|
19380
19385
|
),
|
|
19381
19386
|
children: [
|
|
19382
19387
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19383
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19388
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
19384
19389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19385
19390
|
] }),
|
|
19386
19391
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-s)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)]", children: [
|
|
@@ -19646,7 +19651,7 @@ function ChangelogManager({
|
|
|
19646
19651
|
),
|
|
19647
19652
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: hasContent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: entry.title }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "italic text-ods-text-secondary text-h6", children: "New entry (click to edit)" }) }),
|
|
19648
19653
|
tagOptions && tagLabelOf(entry.tag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19649
|
-
|
|
19654
|
+
_chunkUEULXVW2cjs.StatusBadge,
|
|
19650
19655
|
{
|
|
19651
19656
|
variant: "button",
|
|
19652
19657
|
singleLine: true,
|
|
@@ -20005,7 +20010,7 @@ function EntityTagBadgesSkeleton({
|
|
|
20005
20010
|
}) {
|
|
20006
20011
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, TAG_ROW_CLASS, className), children: [
|
|
20007
20012
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20008
|
-
|
|
20013
|
+
_chunkUEULXVW2cjs.StatusBadge,
|
|
20009
20014
|
{
|
|
20010
20015
|
loading: true,
|
|
20011
20016
|
text: "",
|
|
@@ -20013,7 +20018,7 @@ function EntityTagBadgesSkeleton({
|
|
|
20013
20018
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "border", _nullishCoalesce(itemClassName, () => ( TAG_SKELETON_WIDTH_CLASS)))
|
|
20014
20019
|
}
|
|
20015
20020
|
) }) }),
|
|
20016
|
-
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20021
|
+
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { loading: true, text: "", variant: "card", className: _chunk63A4GZMBcjs.cn.call(void 0, "border", OVERFLOW_BADGE_SKELETON_CLASS) }) })
|
|
20017
20022
|
] });
|
|
20018
20023
|
}
|
|
20019
20024
|
function EntityTagBadges({
|
|
@@ -20041,7 +20046,7 @@ function EntityTagBadges({
|
|
|
20041
20046
|
const label = (tag.name || "").toUpperCase();
|
|
20042
20047
|
if (basePath && tag.slug) {
|
|
20043
20048
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: `${basePath}?tags=${tag.slug}`, className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20044
|
-
|
|
20049
|
+
_chunkUEULXVW2cjs.StatusBadge,
|
|
20045
20050
|
{
|
|
20046
20051
|
text: label,
|
|
20047
20052
|
variant: "card",
|
|
@@ -20049,7 +20054,7 @@ function EntityTagBadges({
|
|
|
20049
20054
|
}
|
|
20050
20055
|
) }, key);
|
|
20051
20056
|
}
|
|
20052
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20057
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { text: label, variant: "card", className: BADGE_CLASS }) }, key);
|
|
20053
20058
|
}),
|
|
20054
20059
|
phoneOverflow === overflow ? overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: overflow }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20055
20060
|
phoneOverflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: phoneOverflow, className: "content-md:hidden" }),
|
|
@@ -20058,7 +20063,7 @@ function EntityTagBadges({
|
|
|
20058
20063
|
] });
|
|
20059
20064
|
}
|
|
20060
20065
|
function OverflowBadge({ count, className }) {
|
|
20061
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20066
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { text: `+${count}`, variant: "card", className: _chunk63A4GZMBcjs.cn.call(void 0, BADGE_CLASS, "text-ods-text-secondary") }) });
|
|
20062
20067
|
}
|
|
20063
20068
|
|
|
20064
20069
|
// src/components/features/error-boundary.tsx
|
|
@@ -20153,7 +20158,7 @@ var SectionButton = ({
|
|
|
20153
20158
|
}
|
|
20154
20159
|
),
|
|
20155
20160
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20156
|
-
|
|
20161
|
+
_chunkUEULXVW2cjs.StatusBadge,
|
|
20157
20162
|
{
|
|
20158
20163
|
text: section.badge.text,
|
|
20159
20164
|
variant: section.badge.variant || "button",
|
|
@@ -20172,7 +20177,7 @@ var SectionButton = ({
|
|
|
20172
20177
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
20173
20178
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
20174
20179
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20175
|
-
|
|
20180
|
+
_chunkUEULXVW2cjs.StatusBadge,
|
|
20176
20181
|
{
|
|
20177
20182
|
text: section.badge.text,
|
|
20178
20183
|
variant: section.badge.variant || "button",
|
|
@@ -21235,15 +21240,15 @@ function useLoading() {
|
|
|
21235
21240
|
|
|
21236
21241
|
|
|
21237
21242
|
function isAlreadyThere(file, existing) {
|
|
21238
|
-
const key =
|
|
21243
|
+
const key = _chunkIM366HS6cjs.mediaNameKey.call(void 0, file.name);
|
|
21239
21244
|
if (!key) return false;
|
|
21240
21245
|
return existing.some(
|
|
21241
|
-
(item) => (item.title ?
|
|
21246
|
+
(item) => (item.title ? _chunkIM366HS6cjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunkIM366HS6cjs.mediaNameKey.call(void 0, item.media_url) === key : false)
|
|
21242
21247
|
);
|
|
21243
21248
|
}
|
|
21244
21249
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
21245
|
-
var isVideoItem = (item) =>
|
|
21246
|
-
var MEDIA_KIND_ACCEPT = { image:
|
|
21250
|
+
var isVideoItem = (item) => _chunkIM366HS6cjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
|
|
21251
|
+
var MEDIA_KIND_ACCEPT = { image: _chunkIM366HS6cjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunkIM366HS6cjs.MEDIA_FILE_ACCEPT };
|
|
21247
21252
|
var MEDIA_KIND_COPY = {
|
|
21248
21253
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
21249
21254
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -21267,12 +21272,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21267
21272
|
const seen = /* @__PURE__ */ new Set();
|
|
21268
21273
|
const accepted = [];
|
|
21269
21274
|
for (const file of files) {
|
|
21270
|
-
const mediaType =
|
|
21275
|
+
const mediaType = _chunkIM366HS6cjs.fileMediaType.call(void 0, file);
|
|
21271
21276
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
21272
21277
|
unsupported.push(file.name);
|
|
21273
21278
|
continue;
|
|
21274
21279
|
}
|
|
21275
|
-
const contentKey = await
|
|
21280
|
+
const contentKey = await _chunkIM366HS6cjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
21276
21281
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
21277
21282
|
duplicates.push(file.name);
|
|
21278
21283
|
continue;
|
|
@@ -21453,7 +21458,7 @@ function MediaGalleryManager({
|
|
|
21453
21458
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "grid grid-cols-1 gap-4 content-md:grid-cols-2", columns === 3 && "content-lg:grid-cols-3"),
|
|
21454
21459
|
children: [
|
|
21455
21460
|
media.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21456
|
-
|
|
21461
|
+
_chunkUEULXVW2cjs.Card,
|
|
21457
21462
|
{
|
|
21458
21463
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
21459
21464
|
draggable: true,
|
|
@@ -21478,7 +21483,7 @@ function MediaGalleryManager({
|
|
|
21478
21483
|
) }),
|
|
21479
21484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
21480
21485
|
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
21481
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21486
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
21482
21487
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21483
21488
|
_chunk3V5JWG27cjs.next_image_default,
|
|
21484
21489
|
{
|
|
@@ -21530,7 +21535,7 @@ function MediaGalleryManager({
|
|
|
21530
21535
|
},
|
|
21531
21536
|
_nullishCoalesce(item.id, () => ( `${item.media_url}-${index}`))
|
|
21532
21537
|
)),
|
|
21533
|
-
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21538
|
+
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUEULXVW2cjs.Card, { className: "border-ods-border", "aria-busy": "true", children: [
|
|
21534
21539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex aspect-video items-center justify-center rounded-lg bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) }),
|
|
21535
21540
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
21536
21541
|
] }, `pending-${name}-${index}`))
|
|
@@ -21887,7 +21892,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21887
21892
|
empty: "No token rates are in effect right now."
|
|
21888
21893
|
};
|
|
21889
21894
|
function providerMark(providerType, stated, className) {
|
|
21890
|
-
const Mark = _chunkQOAA7ZHBcjs.findIcon.call(void 0,
|
|
21895
|
+
const Mark = _chunkQOAA7ZHBcjs.findIcon.call(void 0, _chunk4XASD2TLcjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21891
21896
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21892
21897
|
}
|
|
21893
21898
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21905,7 +21910,7 @@ var UNIT_LINE_CLASS = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
|
21905
21910
|
var TABS_ROW_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21906
21911
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21907
21912
|
function useProviderGroup(rates) {
|
|
21908
|
-
const groups =
|
|
21913
|
+
const groups = _chunk4XASD2TLcjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21909
21914
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21910
21915
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21911
21916
|
}
|
|
@@ -21916,7 +21921,7 @@ function ProviderTabs({
|
|
|
21916
21921
|
className
|
|
21917
21922
|
}) {
|
|
21918
21923
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21919
|
-
|
|
21924
|
+
_chunkIQCHV7Z2cjs.TabSelector,
|
|
21920
21925
|
{
|
|
21921
21926
|
variant: "secondary",
|
|
21922
21927
|
scrollable: true,
|
|
@@ -21924,7 +21929,7 @@ function ProviderTabs({
|
|
|
21924
21929
|
onValueChange,
|
|
21925
21930
|
items: groups.map((candidate) => ({
|
|
21926
21931
|
id: candidate.providerType,
|
|
21927
|
-
label:
|
|
21932
|
+
label: _chunk4XASD2TLcjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _462 => _462.rates, 'access', _463 => _463[0], 'optionalAccess', _464 => _464.providerLabel])),
|
|
21928
21933
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _465 => _465.rates, 'access', _466 => _466[0], 'optionalAccess', _467 => _467.providerIcon]), "size-full")
|
|
21929
21934
|
})),
|
|
21930
21935
|
className
|
|
@@ -22001,8 +22006,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22001
22006
|
] }),
|
|
22002
22007
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: "rowgroup", className: "min-h-0 flex-1 overflow-y-auto", children: group.rates.map((rate) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-loading-item": true, role: "row", className: BODY_ROW_CLASS, children: [
|
|
22003
22008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22004
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22005
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22009
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunk4XASD2TLcjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22010
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunk4XASD2TLcjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22006
22011
|
] }, rate.modelName)) })
|
|
22007
22012
|
] }),
|
|
22008
22013
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22049,7 +22054,7 @@ function modelOption(rate) {
|
|
|
22049
22054
|
return {
|
|
22050
22055
|
label: rate.displayName || rate.modelName,
|
|
22051
22056
|
value: rate.modelName,
|
|
22052
|
-
description:
|
|
22057
|
+
description: _chunk4XASD2TLcjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22053
22058
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22054
22059
|
};
|
|
22055
22060
|
}
|
|
@@ -22104,8 +22109,8 @@ function ModelTokenExchange({
|
|
|
22104
22109
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22105
22110
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _468 => _468.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22106
22111
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22107
|
-
const tokens =
|
|
22108
|
-
const cost =
|
|
22112
|
+
const tokens = _chunk4XASD2TLcjs.formatTokenAmount.call(void 0, balance);
|
|
22113
|
+
const cost = _chunk4XASD2TLcjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22109
22114
|
const balancePrice = cost === null ? null : _chunkBOS7OIC4cjs.formatPrice.call(void 0, cost);
|
|
22110
22115
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22111
22116
|
const options = models.map(modelOption);
|
|
@@ -22148,7 +22153,7 @@ function ModelTokenExchange({
|
|
|
22148
22153
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22149
22154
|
size: "small",
|
|
22150
22155
|
onClick: () => setChosen(preset.tokens),
|
|
22151
|
-
children: copy.buy.preset(
|
|
22156
|
+
children: copy.buy.preset(_chunk4XASD2TLcjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22152
22157
|
},
|
|
22153
22158
|
preset.label
|
|
22154
22159
|
)) })
|
|
@@ -22165,7 +22170,7 @@ function ModelTokenExchange({
|
|
|
22165
22170
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _469 => _469.providerType]) === providerType ? rate : null)));
|
|
22166
22171
|
return {
|
|
22167
22172
|
id: providerType,
|
|
22168
|
-
name:
|
|
22173
|
+
name: _chunk4XASD2TLcjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _470 => _470.providerLabel])),
|
|
22169
22174
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _471 => _471.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22170
22175
|
};
|
|
22171
22176
|
}),
|
|
@@ -22204,7 +22209,7 @@ function ModelTokenExchange({
|
|
|
22204
22209
|
{
|
|
22205
22210
|
size: "plain",
|
|
22206
22211
|
loading,
|
|
22207
|
-
figure:
|
|
22212
|
+
figure: _chunk4XASD2TLcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _476 => _476.inputTokenRate])),
|
|
22208
22213
|
words: copy.charge.input
|
|
22209
22214
|
}
|
|
22210
22215
|
),
|
|
@@ -22213,7 +22218,7 @@ function ModelTokenExchange({
|
|
|
22213
22218
|
{
|
|
22214
22219
|
size: "plain",
|
|
22215
22220
|
loading,
|
|
22216
|
-
figure:
|
|
22221
|
+
figure: _chunk4XASD2TLcjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _477 => _477.outputTokenRate])),
|
|
22217
22222
|
words: copy.charge.output
|
|
22218
22223
|
}
|
|
22219
22224
|
)
|
|
@@ -22225,9 +22230,9 @@ function ModelTokenExchange({
|
|
|
22225
22230
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22226
22231
|
children: [
|
|
22227
22232
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[2lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22228
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunk4XASD2TLcjs.formatTokenAmount.call(void 0, _chunk4XASD2TLcjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22229
22234
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22230
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22235
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunk4XASD2TLcjs.formatTokenAmount.call(void 0, _chunk4XASD2TLcjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22231
22236
|
]
|
|
22232
22237
|
}
|
|
22233
22238
|
)
|
|
@@ -22747,14 +22752,14 @@ var ConfidenceBadge = ({
|
|
|
22747
22752
|
size = "sm",
|
|
22748
22753
|
className
|
|
22749
22754
|
}) => {
|
|
22750
|
-
const level =
|
|
22755
|
+
const level = _chunk4XASD2TLcjs.getConfidenceLevel.call(void 0, confidence);
|
|
22751
22756
|
if (level === "none") {
|
|
22752
22757
|
return null;
|
|
22753
22758
|
}
|
|
22754
|
-
const label =
|
|
22755
|
-
const borderClass =
|
|
22756
|
-
const textClass =
|
|
22757
|
-
const bgClass =
|
|
22759
|
+
const label = _chunk4XASD2TLcjs.getConfidenceLabel.call(void 0, confidence);
|
|
22760
|
+
const borderClass = _chunk4XASD2TLcjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22761
|
+
const textClass = _chunk4XASD2TLcjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22762
|
+
const bgClass = _chunk4XASD2TLcjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22758
22763
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22759
22764
|
"span",
|
|
22760
22765
|
{
|
|
@@ -22805,9 +22810,9 @@ function SEOEditorPreview({
|
|
|
22805
22810
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22806
22811
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22807
22812
|
const seoTitleLength = (seoTitle || "").length;
|
|
22808
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22813
|
+
const seoTitleTooLong = seoTitleLength > _chunk4XASD2TLcjs.SEO_TITLE_MAX_LENGTH;
|
|
22809
22814
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22810
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22815
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunk4XASD2TLcjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22811
22816
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22812
22817
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22813
22818
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22832,10 +22837,10 @@ function SEOEditorPreview({
|
|
|
22832
22837
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22833
22838
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22834
22839
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22835
|
-
|
|
22840
|
+
_chunk4XASD2TLcjs.Field,
|
|
22836
22841
|
{
|
|
22837
22842
|
label: "SEO Title",
|
|
22838
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
22843
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunk4XASD2TLcjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22839
22844
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22840
22845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22841
22846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22850,7 +22855,7 @@ function SEOEditorPreview({
|
|
|
22850
22855
|
children: [
|
|
22851
22856
|
seoTitleLength,
|
|
22852
22857
|
"/",
|
|
22853
|
-
|
|
22858
|
+
_chunk4XASD2TLcjs.SEO_TITLE_MAX_LENGTH
|
|
22854
22859
|
]
|
|
22855
22860
|
}
|
|
22856
22861
|
),
|
|
@@ -22861,7 +22866,7 @@ function SEOEditorPreview({
|
|
|
22861
22866
|
value: seoTitle || "",
|
|
22862
22867
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22863
22868
|
disabled,
|
|
22864
|
-
maxLength:
|
|
22869
|
+
maxLength: _chunk4XASD2TLcjs.SEO_TITLE_MAX_LENGTH,
|
|
22865
22870
|
invalid: seoTitleTooLong,
|
|
22866
22871
|
placeholder: "Enter SEO meta title...",
|
|
22867
22872
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22872,7 +22877,7 @@ function SEOEditorPreview({
|
|
|
22872
22877
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22873
22878
|
] }),
|
|
22874
22879
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22875
|
-
|
|
22880
|
+
_chunk4XASD2TLcjs.Field,
|
|
22876
22881
|
{
|
|
22877
22882
|
label: "SEO Keywords",
|
|
22878
22883
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22904,10 +22909,10 @@ function SEOEditorPreview({
|
|
|
22904
22909
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22905
22910
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22906
22911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22907
|
-
|
|
22912
|
+
_chunk4XASD2TLcjs.Field,
|
|
22908
22913
|
{
|
|
22909
22914
|
label: "SEO Description",
|
|
22910
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
22915
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunk4XASD2TLcjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22911
22916
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22912
22917
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22913
22918
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22930,7 +22935,7 @@ function SEOEditorPreview({
|
|
|
22930
22935
|
children: [
|
|
22931
22936
|
seoDescriptionLength,
|
|
22932
22937
|
"/",
|
|
22933
|
-
|
|
22938
|
+
_chunk4XASD2TLcjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22934
22939
|
]
|
|
22935
22940
|
}
|
|
22936
22941
|
),
|
|
@@ -22941,7 +22946,7 @@ function SEOEditorPreview({
|
|
|
22941
22946
|
value: seoDescription || "",
|
|
22942
22947
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22943
22948
|
disabled,
|
|
22944
|
-
maxLength:
|
|
22949
|
+
maxLength: _chunk4XASD2TLcjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22945
22950
|
invalid: seoDescriptionTooLong,
|
|
22946
22951
|
placeholder: "Enter SEO meta description...",
|
|
22947
22952
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23010,7 +23015,7 @@ function SEOEditorPreview({
|
|
|
23010
23015
|
{
|
|
23011
23016
|
ref: setFileInputRef,
|
|
23012
23017
|
type: "file",
|
|
23013
|
-
accept:
|
|
23018
|
+
accept: _chunkIM366HS6cjs.IMAGE_FILE_ACCEPT,
|
|
23014
23019
|
onChange: handleImageUpload,
|
|
23015
23020
|
className: "hidden",
|
|
23016
23021
|
disabled: disabled || isUploading
|
|
@@ -23094,7 +23099,7 @@ function socialIcon(platform) {
|
|
|
23094
23099
|
return _nullishCoalesce(_chunkQOAA7ZHBcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23095
23100
|
}
|
|
23096
23101
|
function renderSocialIcon(platform) {
|
|
23097
|
-
const key = _nullishCoalesce(
|
|
23102
|
+
const key = _nullishCoalesce(_chunk4XASD2TLcjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23098
23103
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23099
23104
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23100
23105
|
}
|
|
@@ -23185,7 +23190,7 @@ function SocialLinksManager({
|
|
|
23185
23190
|
};
|
|
23186
23191
|
const getIcon = (link, platform) => {
|
|
23187
23192
|
const iconKey = _optionalChain([platform, 'optionalAccess', _487 => _487.icon_name]) || link.platform;
|
|
23188
|
-
const key =
|
|
23193
|
+
const key = _chunk4XASD2TLcjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23189
23194
|
if (!key) return null;
|
|
23190
23195
|
const icon = socialIcon(key);
|
|
23191
23196
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23321,7 +23326,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23321
23326
|
className: _chunk63A4GZMBcjs.cn.call(void 0, modeClassName, className),
|
|
23322
23327
|
style: customStyle,
|
|
23323
23328
|
leftIcon: !loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHJZLKYOBcjs.OpenframeLogoIcon, { secondaryColor: iconLowerPath, className: "h-5 w-5", color: iconUpperPath }) : void 0,
|
|
23324
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23329
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23325
23330
|
children
|
|
23326
23331
|
}
|
|
23327
23332
|
);
|
|
@@ -23649,11 +23654,11 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
23649
23654
|
|
|
23650
23655
|
function VideoBitesDisplay({
|
|
23651
23656
|
bites,
|
|
23652
|
-
title =
|
|
23657
|
+
title = _chunkUEULXVW2cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
23653
23658
|
filterPublished = true,
|
|
23654
23659
|
showTitle = true
|
|
23655
23660
|
}) {
|
|
23656
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23661
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23657
23662
|
}
|
|
23658
23663
|
|
|
23659
23664
|
// src/components/features/walkthrough-video.tsx
|
|
@@ -23682,7 +23687,7 @@ function WalkthroughVideo({
|
|
|
23682
23687
|
onOpenChange,
|
|
23683
23688
|
defaultOpen,
|
|
23684
23689
|
defaultOpenPaused,
|
|
23685
|
-
deepLinkParam =
|
|
23690
|
+
deepLinkParam = _chunk4XASD2TLcjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23686
23691
|
autoPlayCard = false,
|
|
23687
23692
|
label = "Play Demo Video",
|
|
23688
23693
|
placement,
|
|
@@ -23699,7 +23704,7 @@ function WalkthroughVideo({
|
|
|
23699
23704
|
const inline = placement === "inline";
|
|
23700
23705
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
23701
23706
|
const dismissEnabled = dismissal !== false;
|
|
23702
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23707
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunk4XASD2TLcjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23703
23708
|
const dismissalId = _optionalChain([video, 'optionalAccess', _493 => _493.id]) != null ? String(video.id) : "dismissed";
|
|
23704
23709
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23705
23710
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -23711,7 +23716,7 @@ function WalkthroughVideo({
|
|
|
23711
23716
|
let delayElapsed = false;
|
|
23712
23717
|
let interacted = inline;
|
|
23713
23718
|
const reveal = () => {
|
|
23714
|
-
if (dismissEnabled &&
|
|
23719
|
+
if (dismissEnabled && _chunk4XASD2TLcjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23715
23720
|
setDismissed(true);
|
|
23716
23721
|
return;
|
|
23717
23722
|
}
|
|
@@ -23748,7 +23753,7 @@ function WalkthroughVideo({
|
|
|
23748
23753
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23749
23754
|
};
|
|
23750
23755
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23751
|
-
const hydrated =
|
|
23756
|
+
const hydrated = _chunkIQCHV7Z2cjs.useIsHydrated.call(void 0, );
|
|
23752
23757
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23753
23758
|
if (!hydrated) return false;
|
|
23754
23759
|
try {
|
|
@@ -23998,7 +24003,7 @@ function WalkthroughVideo({
|
|
|
23998
24003
|
(e) => {
|
|
23999
24004
|
e.stopPropagation();
|
|
24000
24005
|
pausePreviewNow();
|
|
24001
|
-
if (dismissEnabled)
|
|
24006
|
+
if (dismissEnabled) _chunk4XASD2TLcjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24002
24007
|
setDismissed(true);
|
|
24003
24008
|
},
|
|
24004
24009
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24149,7 +24154,7 @@ function WalkthroughVideo({
|
|
|
24149
24154
|
},
|
|
24150
24155
|
children: [
|
|
24151
24156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24152
|
-
|
|
24157
|
+
_chunkUEULXVW2cjs.VideoHoverPreviewSurface,
|
|
24153
24158
|
{
|
|
24154
24159
|
url: video.mainVideoUrl || "",
|
|
24155
24160
|
posterUrl: video.posterUrl ? _chunk3V5JWG27cjs.resizedImageUrl.call(void 0, video.posterUrl, _chunkQOAA7ZHBcjs.IMAGE_WIDTHS[0]) : video.posterUrl,
|
|
@@ -24173,7 +24178,7 @@ function WalkthroughVideo({
|
|
|
24173
24178
|
`card-${embedUrlKey}`
|
|
24174
24179
|
) }),
|
|
24175
24180
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24176
|
-
|
|
24181
|
+
_chunkIQCHV7Z2cjs.CardHitLayer,
|
|
24177
24182
|
{
|
|
24178
24183
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24179
24184
|
onPointerDown: pausePreviewNow,
|
|
@@ -24289,7 +24294,7 @@ function WalkthroughVideo({
|
|
|
24289
24294
|
children: [
|
|
24290
24295
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24291
24296
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24292
|
-
|
|
24297
|
+
_chunkUEULXVW2cjs.Video,
|
|
24293
24298
|
{
|
|
24294
24299
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24295
24300
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24345,7 +24350,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24345
24350
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24346
24351
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
24347
24352
|
const enabled = enabledGiven && !inScope;
|
|
24348
|
-
const captions =
|
|
24353
|
+
const captions = _chunkIQCHV7Z2cjs.useCaptions.call(void 0, );
|
|
24349
24354
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24350
24355
|
queryKey: ["walkthrough-video", endpoint],
|
|
24351
24356
|
enabled,
|
|
@@ -24543,7 +24548,7 @@ function VideoSourceSelector({
|
|
|
24543
24548
|
}
|
|
24544
24549
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
24545
24550
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border", children: [
|
|
24546
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24551
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { kind: "file", url: videoUrl }) }),
|
|
24547
24552
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24548
24553
|
_chunkFCZAUK4Dcjs.Button,
|
|
24549
24554
|
{
|
|
@@ -25069,7 +25074,7 @@ function HighlightVideoSection({
|
|
|
25069
25074
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25070
25075
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25071
25076
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border bg-black", children: [
|
|
25072
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25077
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { kind: "file", url: highlightVideoUrl, poster: highlightVideoThumbnail || void 0 }) }),
|
|
25073
25078
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25074
25079
|
_chunkFCZAUK4Dcjs.Button,
|
|
25075
25080
|
{
|
|
@@ -25096,7 +25101,7 @@ function HighlightConfigSection({
|
|
|
25096
25101
|
disabled = false,
|
|
25097
25102
|
className = ""
|
|
25098
25103
|
}) {
|
|
25099
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25104
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4XASD2TLcjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25100
25105
|
_chunkIJCSQFLDcjs.Select,
|
|
25101
25106
|
{
|
|
25102
25107
|
value: targetDurationSeconds.toString(),
|
|
@@ -25197,7 +25202,7 @@ var AIStatusIndicator = ({
|
|
|
25197
25202
|
}) => {
|
|
25198
25203
|
const config = statusConfig[status];
|
|
25199
25204
|
const displayText = message || config.label;
|
|
25200
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25205
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunk4XASD2TLcjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25201
25206
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25202
25207
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25203
25208
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25205,7 +25210,7 @@ var AIStatusIndicator = ({
|
|
|
25205
25210
|
size: 16,
|
|
25206
25211
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
25207
25212
|
status === "loading" && _chunk3TOWCFIKcjs.LIVE_PULSE_CLASS,
|
|
25208
|
-
confidence !== void 0 && status === "success" ?
|
|
25213
|
+
confidence !== void 0 && status === "success" ? _chunk4XASD2TLcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25209
25214
|
)
|
|
25210
25215
|
}
|
|
25211
25216
|
),
|
|
@@ -25214,7 +25219,7 @@ var AIStatusIndicator = ({
|
|
|
25214
25219
|
{
|
|
25215
25220
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
25216
25221
|
"text-h6",
|
|
25217
|
-
confidence !== void 0 && status === "success" ?
|
|
25222
|
+
confidence !== void 0 && status === "success" ? _chunk4XASD2TLcjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25218
25223
|
),
|
|
25219
25224
|
children: displayText
|
|
25220
25225
|
}
|
|
@@ -25224,8 +25229,8 @@ var AIStatusIndicator = ({
|
|
|
25224
25229
|
{
|
|
25225
25230
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
25226
25231
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25227
|
-
|
|
25228
|
-
|
|
25232
|
+
_chunk4XASD2TLcjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25233
|
+
_chunk4XASD2TLcjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25229
25234
|
),
|
|
25230
25235
|
children: confidenceLabel
|
|
25231
25236
|
}
|
|
@@ -25846,7 +25851,7 @@ function ApprovalLevelView({
|
|
|
25846
25851
|
] });
|
|
25847
25852
|
}
|
|
25848
25853
|
function ApprovalLevelSkeleton({ editable = false, showLabel = true, className }) {
|
|
25849
|
-
const name = showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: LEVEL_NAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25854
|
+
const name = showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: LEVEL_NAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.TextHold, { children: LONGEST_LEVEL_LABEL }) }) : null;
|
|
25850
25855
|
if (!editable) {
|
|
25851
25856
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
25852
25857
|
name,
|
|
@@ -26105,7 +26110,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
26105
26110
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26106
26111
|
_chunkFCZAUK4Dcjs.Button,
|
|
26107
26112
|
{
|
|
26108
|
-
onClick: loading ? void 0 :
|
|
26113
|
+
onClick: loading ? void 0 : _chunk4XASD2TLcjs.openInNewTab.call(void 0, href),
|
|
26109
26114
|
disabled: loading,
|
|
26110
26115
|
variant: "outline",
|
|
26111
26116
|
size: "icon",
|
|
@@ -26479,7 +26484,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26479
26484
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26480
26485
|
_chunkFCZAUK4Dcjs.Button,
|
|
26481
26486
|
{
|
|
26482
|
-
onClick: loading ? void 0 :
|
|
26487
|
+
onClick: loading ? void 0 : _chunk4XASD2TLcjs.openInNewTab.call(void 0, href),
|
|
26483
26488
|
disabled: loading,
|
|
26484
26489
|
variant: "outline",
|
|
26485
26490
|
size: "icon",
|
|
@@ -26611,13 +26616,13 @@ function WaitlistForm({
|
|
|
26611
26616
|
const [email, setEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26612
26617
|
const [phone, setPhone] = _react.useState.call(void 0, defaultPhone);
|
|
26613
26618
|
const [countryCode, setCountryCode] = _react.useState.call(void 0, "US");
|
|
26614
|
-
const { toast } =
|
|
26615
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
26619
|
+
const { toast } = _chunkT266OITJcjs.useToast.call(void 0, );
|
|
26620
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkT266OITJcjs.useHumanitySignals.call(void 0, );
|
|
26616
26621
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26617
|
-
const isClient =
|
|
26622
|
+
const isClient = _chunkIQCHV7Z2cjs.useIsHydrated.call(void 0, );
|
|
26618
26623
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26619
26624
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26620
|
-
const rescue =
|
|
26625
|
+
const rescue = _chunkT266OITJcjs.useFormRescue.call(void 0, {
|
|
26621
26626
|
form: rescueForm,
|
|
26622
26627
|
// The phone is reported as filled only; its value never leaves the form early.
|
|
26623
26628
|
fieldNames: ["email", "phone"],
|
|
@@ -26629,7 +26634,7 @@ function WaitlistForm({
|
|
|
26629
26634
|
_react.useEffect.call(void 0, () => {
|
|
26630
26635
|
rescue.track({ email, phone }, null);
|
|
26631
26636
|
}, [email, phone, rescue]);
|
|
26632
|
-
const isMailDomainGeneric =
|
|
26637
|
+
const isMailDomainGeneric = _chunk4XASD2TLcjs.hasGenericEmailDomain.call(void 0, email);
|
|
26633
26638
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26634
26639
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26635
26640
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26663,7 +26668,7 @@ function WaitlistForm({
|
|
|
26663
26668
|
setShowConsentError(true);
|
|
26664
26669
|
return;
|
|
26665
26670
|
}
|
|
26666
|
-
const finalPhone = phone ?
|
|
26671
|
+
const finalPhone = phone ? _chunk4XASD2TLcjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26667
26672
|
try {
|
|
26668
26673
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26669
26674
|
rescue.complete();
|
|
@@ -27386,7 +27391,7 @@ var typeColorByVariant = {
|
|
|
27386
27391
|
error: "text-ods-error"
|
|
27387
27392
|
};
|
|
27388
27393
|
var progressColorByVariant2 = {
|
|
27389
|
-
...
|
|
27394
|
+
..._chunkT266OITJcjs.progressColorByVariant,
|
|
27390
27395
|
default: "bg-ods-accent",
|
|
27391
27396
|
info: "bg-ods-accent"
|
|
27392
27397
|
};
|
|
@@ -27480,7 +27485,7 @@ function LoadedNotificationTile({
|
|
|
27480
27485
|
height: _chunkQOAA7ZHBcjs.IMAGE_FIXED_PX.icon,
|
|
27481
27486
|
unoptimized: true
|
|
27482
27487
|
}
|
|
27483
|
-
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "size-1.5 rounded-full",
|
|
27488
|
+
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "size-1.5 rounded-full", _chunkT266OITJcjs.dotColorByVariant[accentVariant]) }))) }),
|
|
27484
27489
|
type ? lockscreen ? (
|
|
27485
27490
|
// A phone names the sender in plain words and never cuts them.
|
|
27486
27491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 break-words text-ods-text-secondary text-h6", children: type })
|
|
@@ -27815,7 +27820,7 @@ function ShowNotificationsToggleRow({ checked, onChange }) {
|
|
|
27815
27820
|
] });
|
|
27816
27821
|
}
|
|
27817
27822
|
function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
27818
|
-
const { supported, permission, request } =
|
|
27823
|
+
const { supported, permission, request } = _chunkT266OITJcjs.useNotificationPermission.call(void 0, );
|
|
27819
27824
|
if (!supported) return null;
|
|
27820
27825
|
const blocked = permission === "denied";
|
|
27821
27826
|
const handleChange = async (value) => {
|
|
@@ -28818,7 +28823,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28818
28823
|
}
|
|
28819
28824
|
}
|
|
28820
28825
|
function getDeviceOperatingSystem(osType) {
|
|
28821
|
-
return
|
|
28826
|
+
return _chunk4XASD2TLcjs.getOSPlatformId.call(void 0, osType);
|
|
28822
28827
|
}
|
|
28823
28828
|
|
|
28824
28829
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29015,11 +29020,12 @@ function getDeviceActionsColumn(renderRowActions) {
|
|
|
29015
29020
|
}
|
|
29016
29021
|
function OpenDeviceButton({ device }) {
|
|
29017
29022
|
const { getDeviceHref } = useDevicesViewConfig();
|
|
29023
|
+
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
29018
29024
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
29019
29025
|
const href = loading ? void 0 : _optionalChain([getDeviceHref, 'optionalCall', _620 => _620(device)]);
|
|
29020
29026
|
const open = (event) => {
|
|
29021
29027
|
event.preventDefault();
|
|
29022
|
-
if (href)
|
|
29028
|
+
if (href) _chunkA34UNP5Vcjs.executeNewTabNavigation.call(void 0, { runtime, href });
|
|
29023
29029
|
};
|
|
29024
29030
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29025
29031
|
_chunkFCZAUK4Dcjs.Button,
|
|
@@ -30156,7 +30162,7 @@ function DevicesList({
|
|
|
30156
30162
|
const handleClearAll = _react.useCallback.call(void 0, () => patch({ search: "", tags: [] }), [patch]);
|
|
30157
30163
|
const narrowed = isNarrowed(narrowing);
|
|
30158
30164
|
const isEmptyState = !isLoading && !isPending && !narrowed && devices.length === 0;
|
|
30159
|
-
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } =
|
|
30165
|
+
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } = _chunkT266OITJcjs.useStickyToolbar.call(void 0, );
|
|
30160
30166
|
const headerOffset = _nullishCoalesce(stickyHeaderOffset, () => ( (stickyToolbar ? measuredOffset : void 0)));
|
|
30161
30167
|
const actionsColumn = _react.useMemo.call(void 0, () => rowActions2 ? getDeviceActionsColumn(rowActions2) : void 0, [rowActions2]);
|
|
30162
30168
|
return (
|
|
@@ -30393,7 +30399,7 @@ function DevicesPanelView({
|
|
|
30393
30399
|
actionsVariant: "icon-buttons",
|
|
30394
30400
|
className,
|
|
30395
30401
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30396
|
-
|
|
30402
|
+
_chunkIQCHV7Z2cjs.TabSelector,
|
|
30397
30403
|
{
|
|
30398
30404
|
value: viewMode,
|
|
30399
30405
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _674 => _674(value)]),
|
|
@@ -30928,11 +30934,11 @@ var ToolBadge = ({
|
|
|
30928
30934
|
iconClassName
|
|
30929
30935
|
}) => {
|
|
30930
30936
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
30931
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30937
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunk4XASD2TLcjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30932
30938
|
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQDDBOCG3cjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30933
30939
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30934
30940
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30935
|
-
|
|
30941
|
+
_chunkIQCHV7Z2cjs.NavLinkAnchorViaRuntime,
|
|
30936
30942
|
{
|
|
30937
30943
|
href,
|
|
30938
30944
|
targetPlatform,
|
|
@@ -31082,7 +31088,7 @@ function LogsTableView({
|
|
|
31082
31088
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31083
31089
|
ToolBadge,
|
|
31084
31090
|
{
|
|
31085
|
-
toolType:
|
|
31091
|
+
toolType: _chunk4XASD2TLcjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31086
31092
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31087
31093
|
}
|
|
31088
31094
|
),
|
|
@@ -31094,7 +31100,7 @@ function LogsTableView({
|
|
|
31094
31100
|
filter: {
|
|
31095
31101
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _682 => _682.toolTypes, 'access', _683 => _683.map, 'call', _684 => _684((toolType) => ({
|
|
31096
31102
|
id: toolType,
|
|
31097
|
-
label:
|
|
31103
|
+
label: _chunk4XASD2TLcjs.toToolLabel.call(void 0, toolType),
|
|
31098
31104
|
value: toolType
|
|
31099
31105
|
}))]), () => ( []))
|
|
31100
31106
|
}
|
|
@@ -31143,7 +31149,7 @@ function LogsTableView({
|
|
|
31143
31149
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31144
31150
|
LogRowButton,
|
|
31145
31151
|
{
|
|
31146
|
-
onClick: getLogHref ?
|
|
31152
|
+
onClick: getLogHref ? _chunk4XASD2TLcjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31147
31153
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
31148
31154
|
label: "Open in new tab"
|
|
31149
31155
|
}
|
|
@@ -31465,7 +31471,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31465
31471
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31466
31472
|
_chunkFCZAUK4Dcjs.Button,
|
|
31467
31473
|
{
|
|
31468
|
-
onClick: loading ? void 0 :
|
|
31474
|
+
onClick: loading ? void 0 : _chunk4XASD2TLcjs.openInNewTab.call(void 0, href),
|
|
31469
31475
|
disabled: loading,
|
|
31470
31476
|
variant: "outline",
|
|
31471
31477
|
size: "icon",
|
|
@@ -31654,9 +31660,9 @@ function ScriptSchedulesTable({
|
|
|
31654
31660
|
|
|
31655
31661
|
// src/components/features/scripts/shell-types.ts
|
|
31656
31662
|
var SCRIPT_SHELL_TYPES = [
|
|
31657
|
-
{ id:
|
|
31658
|
-
{ id:
|
|
31659
|
-
{ id:
|
|
31663
|
+
{ id: _chunk4XASD2TLcjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31664
|
+
{ id: _chunk4XASD2TLcjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31665
|
+
{ id: _chunk4XASD2TLcjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31660
31666
|
];
|
|
31661
31667
|
function scriptShellType(value) {
|
|
31662
31668
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -33132,7 +33138,7 @@ function ScheduleFormFields({
|
|
|
33132
33138
|
disabled = false,
|
|
33133
33139
|
renderScriptSearch,
|
|
33134
33140
|
timeReferenceGate = "off",
|
|
33135
|
-
platforms =
|
|
33141
|
+
platforms = _chunk4XASD2TLcjs.OS_PLATFORMS,
|
|
33136
33142
|
comingSoonPlatforms = [],
|
|
33137
33143
|
getTimeSlots,
|
|
33138
33144
|
nameLayout = "stacked",
|
|
@@ -33278,7 +33284,7 @@ function ScheduleFormFields({
|
|
|
33278
33284
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33279
33285
|
|
|
33280
33286
|
function ScriptPlatformIcons({ platforms }) {
|
|
33281
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33287
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunk4XASD2TLcjs.OS_PLATFORMS.filter((p) => platforms.includes(p.id)).map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, p.icon, { className: "h-3.5 w-3.5 text-ods-text-secondary opacity-60" }, p.id)) });
|
|
33282
33288
|
}
|
|
33283
33289
|
function ScheduleScriptSearchField({
|
|
33284
33290
|
scriptId,
|
|
@@ -33351,7 +33357,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
33351
33357
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33352
33358
|
_chunkFCZAUK4Dcjs.Button,
|
|
33353
33359
|
{
|
|
33354
|
-
onClick: loading ? void 0 :
|
|
33360
|
+
onClick: loading ? void 0 : _chunk4XASD2TLcjs.openInNewTab.call(void 0, href),
|
|
33355
33361
|
disabled: loading,
|
|
33356
33362
|
variant: "outline",
|
|
33357
33363
|
size: "icon",
|
|
@@ -33505,7 +33511,7 @@ function KnowledgeBaseArticleView({
|
|
|
33505
33511
|
className,
|
|
33506
33512
|
children: [
|
|
33507
33513
|
tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-[var(--spacing-system-xsf)]", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.Tag, { label: tag.label, variant: "outline", className: "max-w-full" }, tag.id)) }),
|
|
33508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33514
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Card, { className: "border-ods-border px-[var(--spacing-system-mf)] py-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-2 gap-x-[var(--spacing-system-mf)] content-lg:grid-cols-3", children: [
|
|
33509
33515
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33510
33516
|
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk467T3LCGcjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33511
33517
|
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
@@ -33702,7 +33708,7 @@ function ConversationCard({
|
|
|
33702
33708
|
style: tint,
|
|
33703
33709
|
onClick: selection && ((event) => {
|
|
33704
33710
|
if (event.button !== 0 || _optionalChain([window, 'access', _748 => _748.getSelection, 'call', _749 => _749(), 'optionalAccess', _750 => _750.toString, 'call', _751 => _751()])) return;
|
|
33705
|
-
if (!
|
|
33711
|
+
if (!_chunk4XASD2TLcjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33706
33712
|
selection.onToggle();
|
|
33707
33713
|
}),
|
|
33708
33714
|
children: [
|
|
@@ -33725,7 +33731,7 @@ function ConversationCard({
|
|
|
33725
33731
|
)
|
|
33726
33732
|
),
|
|
33727
33733
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33728
|
-
|
|
33734
|
+
_chunk4XASD2TLcjs.ChatTurn,
|
|
33729
33735
|
{
|
|
33730
33736
|
avatar: requester.avatar,
|
|
33731
33737
|
name: requester.name,
|
|
@@ -33746,7 +33752,7 @@ function ConversationCard({
|
|
|
33746
33752
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _752 => _752.context])), children: context.text })
|
|
33747
33753
|
] }),
|
|
33748
33754
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33749
|
-
|
|
33755
|
+
_chunk4XASD2TLcjs.ChatTurn,
|
|
33750
33756
|
{
|
|
33751
33757
|
avatar: responder.avatar,
|
|
33752
33758
|
name: responder.name,
|
|
@@ -33791,7 +33797,7 @@ function ConversationCardSkeleton({
|
|
|
33791
33797
|
{
|
|
33792
33798
|
selection: selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectionToggle, { pressed: selection.pressed }) }),
|
|
33793
33799
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33794
|
-
|
|
33800
|
+
_chunk4XASD2TLcjs.ChatTurn,
|
|
33795
33801
|
{
|
|
33796
33802
|
loading: true,
|
|
33797
33803
|
name: "",
|
|
@@ -33815,7 +33821,7 @@ function ConversationCardSkeleton({
|
|
|
33815
33821
|
] })
|
|
33816
33822
|
] }),
|
|
33817
33823
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33818
|
-
|
|
33824
|
+
_chunk4XASD2TLcjs.ChatTurn,
|
|
33819
33825
|
{
|
|
33820
33826
|
loading: true,
|
|
33821
33827
|
name: "",
|
|
@@ -34077,7 +34083,7 @@ function CapabilityExplorer({
|
|
|
34077
34083
|
readItems: true,
|
|
34078
34084
|
renderItem: (item) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "article", { className: _chunk63A4GZMBcjs.cn.call(void 0, CARD_CLASS2, CARD_HEIGHT_CLASS), children: [
|
|
34079
34085
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CARD_HEAD_ROW_CLASS, children: [
|
|
34080
|
-
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34086
|
+
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
34081
34087
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34082
34088
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
34083
34089
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
@@ -34157,7 +34163,7 @@ function CapabilityExplorer({
|
|
|
34157
34163
|
"span",
|
|
34158
34164
|
{
|
|
34159
34165
|
className: _chunk63A4GZMBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, selected ? "text-ods-flamingo-cyan" : "text-ods-text-secondary"),
|
|
34160
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34166
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: item.iconName }, size: 18 })
|
|
34161
34167
|
}
|
|
34162
34168
|
),
|
|
34163
34169
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "min-w-0 flex-1", children: [
|