@flamingo-stack/openframe-frontend-core 0.0.770 → 0.0.772
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/{chunk-C66DWLCR.cjs → chunk-2MAENZL3.cjs} +37 -37
- package/dist/{chunk-2MND64QJ.cjs → chunk-5HBGBLJT.cjs} +50 -63
- package/dist/{chunk-4EJU462O.cjs → chunk-5V7BIUGA.cjs} +2 -2
- package/dist/{chunk-HK6UQVOI.cjs → chunk-7FYOVKQD.cjs} +12 -12
- package/dist/{chunk-MYA6NR2C.cjs → chunk-CTRJNTYU.cjs} +2 -2
- package/dist/{chunk-S5EUREOB.cjs → chunk-E25TJPWV.cjs} +3 -3
- package/dist/{chunk-HQF62LAU.cjs → chunk-FPCGKH5K.cjs} +28 -28
- package/dist/{chunk-VATCQOVC.cjs → chunk-FT5NPAZY.cjs} +17 -17
- package/dist/{chunk-I2TSCJT2.cjs → chunk-HFNWBNLE.cjs} +4 -4
- package/dist/{chunk-MFRIFVDV.cjs → chunk-IHCHU355.cjs} +41 -41
- package/dist/{chunk-NZELWPKO.cjs → chunk-ILZEXCJH.cjs} +98 -98
- package/dist/{chunk-DCBZMWLY.cjs → chunk-J5ZNEAGY.cjs} +24 -24
- package/dist/{chunk-BLTNKLAX.cjs → chunk-JJNOAYD4.cjs} +4 -4
- package/dist/{chunk-QS4G7CHU.cjs → chunk-KSCEAIBS.cjs} +2 -2
- package/dist/{chunk-Q575DR36.cjs → chunk-QOEOY7BJ.cjs} +33 -33
- package/dist/{chunk-SL7KFZWJ.cjs → chunk-QPK2433W.cjs} +24 -24
- package/dist/{chunk-VL44GB2I.cjs → chunk-REFL3YNE.cjs} +13 -13
- package/dist/{chunk-37XVY2RE.cjs → chunk-S3NEBAKD.cjs} +6 -6
- package/dist/{chunk-TBKXXMBU.cjs → chunk-UR3I3J5K.cjs} +90 -86
- package/dist/{chunk-MZLWB5AH.cjs → chunk-V3W56L2D.cjs} +18 -9
- package/dist/{chunk-4BRO3RZ6.cjs → chunk-VZAOLKKF.cjs} +72 -80
- package/dist/{chunk-QMUKTHWM.cjs → chunk-W5LX7DFB.cjs} +3 -3
- package/dist/{chunk-ZVNL5OK6.cjs → chunk-X5Z4HRH7.cjs} +2 -2
- package/dist/{chunk-WUYL4BMD.cjs → chunk-YI3CDGKM.cjs} +70 -70
- package/dist/{chunk-BZLHU4EK.cjs → chunk-ZVKJKWAB.cjs} +713 -695
- package/dist/{chunk-QSLKTDZ4.cjs → chunk-ZYGC2A7G.cjs} +4 -4
- package/dist/{cloud-tenants-IAZQL2JF.cjs → cloud-tenants-CUNC5KBD.cjs} +8 -8
- package/dist/components/case-studies/index.cjs +32 -30
- package/dist/components/case-studies/quote-cards-strip.d.ts +7 -2
- package/dist/components/case-studies/quote-cards-strip.d.ts.map +1 -1
- package/dist/components/case-studies/quote-cards-strip.js +7 -5
- package/dist/components/categories-cart.d.ts +9 -2
- package/dist/components/categories-cart.d.ts.map +1 -1
- package/dist/components/categories-cart.js +9 -4
- package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts +5 -1
- package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +2 -2
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/faq/faq-section.d.ts +7 -4
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/faq-accordion.d.ts +2 -4
- package/dist/components/faq-accordion.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.d.ts +8 -2
- package/dist/components/features/capability-explorer.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.js +7 -3
- package/dist/components/features/cards-strip.d.ts +2 -2
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/model-token-rates.js +2 -2
- package/dist/components/features/remote-session/remote-desktop-chat-panel.js +2 -2
- package/dist/components/help-center-pages/index.cjs +94 -103
- package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
- package/dist/components/help-center-pages/trust-center-sections.d.ts +7 -4
- package/dist/components/help-center-pages/trust-center-sections.d.ts.map +1 -1
- package/dist/components/help-center-pages/trust-center-sections.js +5 -14
- package/dist/components/index.cjs +66 -61
- package/dist/components/logs-list.d.ts.map +1 -1
- package/dist/components/logs-list.js +3 -2
- package/dist/components/meeting-scheduler/index.cjs +47 -47
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/navigation/multi-level-navigation.d.ts +6 -7
- package/dist/components/navigation/multi-level-navigation.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/onboarding-guides/onboarding-guides-catalog-skeleton.d.ts +5 -5
- package/dist/components/onboarding-guides/onboarding-guides-catalog-skeleton.d.ts.map +1 -1
- package/dist/components/onboarding-guides/onboarding-guides-catalog-skeleton.js +3 -3
- package/dist/components/product-demo/index.cjs +18 -18
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +4 -17
- package/dist/components/shared/dev-section/dev-card-row.d.ts +3 -3
- package/dist/components/shared/dev-section/dev-card-row.d.ts.map +1 -1
- package/dist/components/shared/product-release/release-detail-page.js +2 -2
- package/dist/components/shared/roadmap/roadmap-grid-skeleton.d.ts +6 -1
- package/dist/components/shared/roadmap/roadmap-grid-skeleton.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid-skeleton.js +3 -1
- package/dist/components/shared/roadmap/roadmap-grid.d.ts +10 -3
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +6 -3
- package/dist/components/tickets/help-center-list.js +4 -4
- package/dist/components/tickets/hooks/use-tickets-list.d.ts +2 -0
- package/dist/components/tickets/hooks/use-tickets-list.d.ts.map +1 -1
- package/dist/components/tickets/hooks/use-tickets-list.js +3 -2
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/tickets/ticket-center.d.ts.map +1 -1
- package/dist/components/tickets/ticket-center.js +3 -9
- package/dist/components/ui/autocomplete.d.ts +5 -0
- package/dist/components/ui/autocomplete.d.ts.map +1 -1
- package/dist/components/ui/autocomplete.js +3 -2
- package/dist/components/ui/data-table/data-table-body.d.ts +5 -2
- package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-body.js +3 -1
- package/dist/components/ui/data-table/data-table-infinite-footer.d.ts +5 -2
- package/dist/components/ui/data-table/data-table-infinite-footer.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-infinite-footer.js +5 -2
- package/dist/components/ui/data-table/utils.d.ts +21 -0
- package/dist/components/ui/data-table/utils.d.ts.map +1 -1
- package/dist/components/ui/data-table/utils.js +7 -0
- package/dist/components/ui/index.cjs +8 -8
- package/dist/components/ui/search-input.d.ts +3 -1
- package/dist/components/ui/search-input.d.ts.map +1 -1
- package/dist/components/ui/search-input.js +3 -2
- package/dist/components/ui/searchable-select.d.ts +2 -0
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +10 -6
- package/dist/components/ui/select.d.ts +11 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +13 -5
- package/dist/components/ui/table/table-skeleton.d.ts +2 -2
- package/dist/components/ui/table/table.d.ts +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/table.js +2 -1
- package/dist/components/ui/table/types.d.ts +1 -0
- package/dist/components/ui/table/types.d.ts.map +1 -1
- package/dist/{devices-7FDK2CGV.cjs → devices-TO4VUO7F.cjs} +9 -9
- package/dist/{embeddable-chat-3FR2RCHM.cjs → embeddable-chat-CEAP424I.cjs} +73 -73
- package/dist/index.cjs +15 -14
- package/dist/{knowledge-ZLHYBG4L.cjs → knowledge-CYJP4XYY.cjs} +9 -9
- package/dist/{logs-G6AFN7A6.cjs → logs-NL3ZBQKC.cjs} +16 -16
- package/dist/{policies-SEOK4IQO.cjs → policies-WTUV4EIT.cjs} +12 -12
- package/dist/{remote-session-WVORQV7V.cjs → remote-session-TC3BZDBZ.cjs} +4 -4
- package/dist/{scripts-HH4YVUBO.cjs → scripts-EE6MLBQP.cjs} +15 -15
- package/dist/{software-update-4A3XJZQB.cjs → software-update-HX6PN4SB.cjs} +12 -12
- package/dist/types/category.d.ts +5 -0
- package/dist/types/category.d.ts.map +1 -1
- package/dist/types/logs.types.d.ts +2 -0
- package/dist/types/logs.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/case-studies/quote-cards-strip.tsx +16 -7
- package/src/components/categories-cart.tsx +16 -5
- package/src/components/chat/entity-cards/admin-content-card-grid.tsx +5 -1
- package/src/components/chat/entity-cards/program-card.tsx +6 -3
- package/src/components/faq/faq-section.tsx +7 -4
- package/src/components/faq-accordion.tsx +2 -4
- package/src/components/features/capability-explorer.tsx +16 -4
- package/src/components/features/cards-strip.tsx +3 -3
- package/src/components/features/model-token-rates.tsx +4 -4
- package/src/components/features/remote-session/remote-desktop-chat-panel.tsx +4 -4
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/help-center-pages/trust-center-sections.tsx +15 -22
- package/src/components/logs-list.tsx +6 -5
- package/src/components/navigation/multi-level-navigation.tsx +6 -7
- package/src/components/onboarding-guides/onboarding-guides-catalog-skeleton.tsx +6 -6
- package/src/components/related-content/related-content-section.tsx +6 -27
- package/src/components/shared/dev-section/dev-card-row.tsx +3 -3
- package/src/components/shared/product-release/release-detail-page.tsx +2 -2
- package/src/components/shared/roadmap/roadmap-grid-skeleton.tsx +8 -2
- package/src/components/shared/roadmap/roadmap-grid.tsx +14 -4
- package/src/components/tickets/help-center-list.tsx +4 -4
- package/src/components/tickets/hooks/use-tickets-list.ts +3 -2
- package/src/components/tickets/ticket-center.tsx +4 -13
- package/src/components/ui/autocomplete.tsx +12 -3
- package/src/components/ui/data-table/data-table-body.tsx +8 -2
- package/src/components/ui/data-table/data-table-infinite-footer.tsx +10 -3
- package/src/components/ui/data-table/utils.ts +18 -0
- package/src/components/ui/search-input.tsx +9 -3
- package/src/components/ui/searchable-select.tsx +18 -9
- package/src/components/ui/select.tsx +28 -7
- package/src/components/ui/table/table-skeleton.tsx +2 -2
- package/src/components/ui/table/table.tsx +4 -1
- package/src/components/ui/table/types.ts +2 -1
- package/src/types/category.ts +5 -0
- package/src/types/logs.types.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKSCEAIBScjs = require('./chunk-KSCEAIBS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ var _chunkQS4G7CHUcjs = require('./chunk-QS4G7CHU.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkFPCGKH5Kcjs = require('./chunk-FPCGKH5K.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -39,7 +39,7 @@ var _chunkHQF62LAUcjs = require('./chunk-HQF62LAU.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunk5V7BIUGAcjs = require('./chunk-5V7BIUGA.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
@@ -452,7 +452,7 @@ function programEntry(configKey) {
|
|
|
452
452
|
// Hosts are drawn only for a type whose cards show them (its config's `cardShowsHosts`): elsewhere a record may
|
|
453
453
|
// have none.
|
|
454
454
|
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
455
|
-
|
|
455
|
+
_chunk5V7BIUGAcjs.ProgramCardSkeleton,
|
|
456
456
|
{
|
|
457
457
|
size: size === "sm" ? "sm" : "default",
|
|
458
458
|
media: configKey === "event" ? EVENT_CARD_SKELETON_MEDIA : 0,
|
|
@@ -464,7 +464,7 @@ function programEntry(configKey) {
|
|
|
464
464
|
const config = _optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.programConfigs, 'optionalAccess', _7 => _7[configKey]]);
|
|
465
465
|
if (!config) return null;
|
|
466
466
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
467
|
-
|
|
467
|
+
_chunk5V7BIUGAcjs.ProgramCard,
|
|
468
468
|
{
|
|
469
469
|
config,
|
|
470
470
|
item,
|
|
@@ -481,10 +481,10 @@ function programEntry(configKey) {
|
|
|
481
481
|
}
|
|
482
482
|
function roadmapEntry(cardType) {
|
|
483
483
|
return cardEntry({
|
|
484
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
484
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5V7BIUGAcjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
485
485
|
decode: decodeRoadmapRow,
|
|
486
486
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
487
|
-
|
|
487
|
+
_chunk5V7BIUGAcjs.RoadmapCard,
|
|
488
488
|
{
|
|
489
489
|
item,
|
|
490
490
|
href: ctx.href,
|
|
@@ -501,10 +501,10 @@ function roadmapEntry(cardType) {
|
|
|
501
501
|
}
|
|
502
502
|
var RELATED_CARD_REGISTRY = {
|
|
503
503
|
blog_post_existing: cardEntry({
|
|
504
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
504
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5V7BIUGAcjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
505
505
|
decode: decodeBlogRow,
|
|
506
506
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
507
|
-
|
|
507
|
+
_chunk5V7BIUGAcjs.BlogCard,
|
|
508
508
|
{
|
|
509
509
|
post,
|
|
510
510
|
size: ctx.legacySize,
|
|
@@ -516,10 +516,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
516
516
|
)
|
|
517
517
|
}),
|
|
518
518
|
case_study: cardEntry({
|
|
519
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
519
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5V7BIUGAcjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
520
520
|
decode: decodeCaseStudyRow,
|
|
521
521
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
522
|
-
|
|
522
|
+
_chunk5V7BIUGAcjs.CaseStudyCard,
|
|
523
523
|
{
|
|
524
524
|
study,
|
|
525
525
|
size: ctx.legacySize,
|
|
@@ -531,10 +531,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
531
531
|
)
|
|
532
532
|
}),
|
|
533
533
|
customer_interview: cardEntry({
|
|
534
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
534
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5V7BIUGAcjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
535
535
|
decode: decodeCustomerInterviewRow,
|
|
536
536
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
-
|
|
537
|
+
_chunk5V7BIUGAcjs.CustomerInterviewCard,
|
|
538
538
|
{
|
|
539
539
|
interview,
|
|
540
540
|
size: ctx.legacySize,
|
|
@@ -552,13 +552,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
552
552
|
* record, and the three props the rail sets itself are read off it.
|
|
553
553
|
*/
|
|
554
554
|
product_release: cardEntry({
|
|
555
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
555
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5V7BIUGAcjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
556
556
|
decode: asRecord,
|
|
557
557
|
render: (release, ctx) => {
|
|
558
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _8 => _8.extras, 'optionalAccess', _9 => _9.buildProductReleaseCardProps]), () => (
|
|
558
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _8 => _8.extras, 'optionalAccess', _9 => _9.buildProductReleaseCardProps]), () => ( _chunk5V7BIUGAcjs.buildProductReleaseCardProps));
|
|
559
559
|
const releaseProps = buildReleaseProps(release);
|
|
560
560
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
561
|
-
|
|
561
|
+
_chunkFPCGKH5Kcjs.ProductReleaseCard,
|
|
562
562
|
{
|
|
563
563
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
564
564
|
title: str(release, "title"),
|
|
@@ -574,10 +574,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
574
574
|
webinar: programEntry("webinar"),
|
|
575
575
|
event: programEntry("event"),
|
|
576
576
|
investor_update: cardEntry({
|
|
577
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
577
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5V7BIUGAcjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
578
578
|
decode: decodeInvestorUpdateRow,
|
|
579
579
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
580
|
-
|
|
580
|
+
_chunk5V7BIUGAcjs.InvestorUpdateCard,
|
|
581
581
|
{
|
|
582
582
|
update,
|
|
583
583
|
size: ctx.legacySize,
|
|
@@ -592,10 +592,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
592
592
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
593
593
|
* section" rail, not this full-width row. */
|
|
594
594
|
onboarding_guide: cardEntry({
|
|
595
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
595
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5V7BIUGAcjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
596
596
|
decode: decodeOnboardingGuideRow,
|
|
597
597
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
598
|
-
|
|
598
|
+
_chunk5V7BIUGAcjs.OnboardingGuideCard,
|
|
599
599
|
{
|
|
600
600
|
guide,
|
|
601
601
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -612,10 +612,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
612
612
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
613
613
|
* card in a dead <a>. */
|
|
614
614
|
what_i_shipped: cardEntry({
|
|
615
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
615
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFPCGKH5Kcjs.WhatIShippedCardSkeleton, {}),
|
|
616
616
|
decode: decodeEmployeeEntryRow,
|
|
617
617
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
618
|
+
_chunkFPCGKH5Kcjs.WhatIShippedCard,
|
|
619
619
|
{
|
|
620
620
|
entry,
|
|
621
621
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -625,10 +625,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
625
625
|
}),
|
|
626
626
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
627
627
|
how_i_work: cardEntry({
|
|
628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
628
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFPCGKH5Kcjs.HowIWorkCardSkeleton, {}),
|
|
629
629
|
decode: decodeEmployeeEntryRow,
|
|
630
630
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
-
|
|
631
|
+
_chunkFPCGKH5Kcjs.HowIWorkCard,
|
|
632
632
|
{
|
|
633
633
|
entry,
|
|
634
634
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -638,10 +638,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
638
638
|
}),
|
|
639
639
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
640
640
|
ai_prompt: cardEntry({
|
|
641
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
641
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFPCGKH5Kcjs.AiPromptCardSkeleton, {}),
|
|
642
642
|
decode: decodeEmployeeEntryRow,
|
|
643
643
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
644
|
-
|
|
644
|
+
_chunkFPCGKH5Kcjs.AiPromptCard,
|
|
645
645
|
{
|
|
646
646
|
entry,
|
|
647
647
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -662,7 +662,7 @@ function DefaultLinkPropsProvider({
|
|
|
662
662
|
children
|
|
663
663
|
}) {
|
|
664
664
|
if (!href) return children(null);
|
|
665
|
-
const newTab =
|
|
665
|
+
const newTab = _chunk5V7BIUGAcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
666
666
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
667
667
|
}
|
|
668
668
|
function defaultResolveHref(ref) {
|
|
@@ -720,9 +720,9 @@ function useGroupItems(type, refs, buildUrl) {
|
|
|
720
720
|
const url = ids.length > 0 ? buildUrl(type, ids) : null;
|
|
721
721
|
const [pages, setPages] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
722
722
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
723
|
-
const { data, dataUrl, error } =
|
|
723
|
+
const { data, dataUrl, error } = _chunkFPCGKH5Kcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
724
724
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
725
|
-
setPages(new Map(pages).set(dataUrl,
|
|
725
|
+
setPages(new Map(pages).set(dataUrl, _chunk5V7BIUGAcjs.extractItems.call(void 0, data)));
|
|
726
726
|
}
|
|
727
727
|
if (url === null) return { items: null, isLoading: false };
|
|
728
728
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -731,7 +731,7 @@ function gridClassFor(columns) {
|
|
|
731
731
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
732
732
|
}
|
|
733
733
|
function resolveGroupConfig(type) {
|
|
734
|
-
return _nullishCoalesce(
|
|
734
|
+
return _nullishCoalesce(_chunkFPCGKH5Kcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
735
735
|
label: type,
|
|
736
736
|
order: 999,
|
|
737
737
|
layout: "grid",
|
|
@@ -743,28 +743,17 @@ var GROUP_CLASS = "space-y-4";
|
|
|
743
743
|
var GROUP_LIST_CLASS = "space-y-4";
|
|
744
744
|
var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
745
745
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
746
|
-
var RAIL_SKELETON_CARDS = 3;
|
|
747
|
-
var RAIL_LIST_FOLD = 2;
|
|
748
|
-
var RAIL_GRID_FOLD_ROWS = 2;
|
|
749
746
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
750
|
-
var GRID_COLUMNS_BY_STEP = { 2: [1, 2, 2], 3: [1, 2, 3] };
|
|
751
|
-
function gridFoldClass(index, columns) {
|
|
752
|
-
const [phone, sm, lg] = GRID_COLUMNS_BY_STEP[columns].map((c) => c * RAIL_GRID_FOLD_ROWS);
|
|
753
|
-
if (index < phone) return void 0;
|
|
754
|
-
if (index < sm) return "hidden sm:block";
|
|
755
|
-
if (index < lg) return "hidden lg:block";
|
|
756
|
-
return "hidden";
|
|
757
|
-
}
|
|
758
747
|
function GroupHeading({ type }) {
|
|
759
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
748
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkFPCGKH5Kcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
760
749
|
}
|
|
761
750
|
function orderRailTypes(types, entityType) {
|
|
762
|
-
let ordered =
|
|
751
|
+
let ordered = _chunkFPCGKH5Kcjs.orderContentRefTypes.call(void 0, types);
|
|
763
752
|
if (entityType) {
|
|
764
|
-
const canonicalEntityType =
|
|
765
|
-
const sameType = ordered.filter((t) =>
|
|
753
|
+
const canonicalEntityType = _chunk5V7BIUGAcjs.canonicalContentRefType.call(void 0, entityType);
|
|
754
|
+
const sameType = ordered.filter((t) => _chunk5V7BIUGAcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
766
755
|
if (sameType.length > 0) {
|
|
767
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
756
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunk5V7BIUGAcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
768
757
|
}
|
|
769
758
|
}
|
|
770
759
|
return ordered;
|
|
@@ -794,7 +783,7 @@ function ContentGroup({
|
|
|
794
783
|
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, GROUP_PAGE_SIZE);
|
|
795
784
|
const pageRefs = refs.slice((page - 1) * GROUP_PAGE_SIZE, page * GROUP_PAGE_SIZE);
|
|
796
785
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl);
|
|
797
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
786
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKSCEAIBScjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
798
787
|
_react.useEffect.call(void 0, () => {
|
|
799
788
|
onLoadingChange(type, isLoading);
|
|
800
789
|
return () => onLoadingChange(type, false);
|
|
@@ -812,7 +801,7 @@ function ContentGroup({
|
|
|
812
801
|
}
|
|
813
802
|
if (!items) return null;
|
|
814
803
|
const rowKey = (it) => {
|
|
815
|
-
const extracted =
|
|
804
|
+
const extracted = _chunk5V7BIUGAcjs.extractItemId.call(void 0, type, it);
|
|
816
805
|
if (extracted !== null) return extracted;
|
|
817
806
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
818
807
|
};
|
|
@@ -881,11 +870,11 @@ function RelatedContentSection({
|
|
|
881
870
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
882
871
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
883
872
|
};
|
|
884
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
873
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkFPCGKH5Kcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
885
874
|
apiBaseUrl,
|
|
886
875
|
extraParams: { authorId, ...typeFilterParams }
|
|
887
876
|
}) : null;
|
|
888
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
877
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkFPCGKH5Kcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
889
878
|
apiBaseUrl,
|
|
890
879
|
entityType,
|
|
891
880
|
entityId,
|
|
@@ -902,7 +891,7 @@ function RelatedContentSection({
|
|
|
902
891
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
903
892
|
[initialItems, suggestionsDisabled]
|
|
904
893
|
);
|
|
905
|
-
const { data, isLoading } =
|
|
894
|
+
const { data, isLoading } = _chunkFPCGKH5Kcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
906
895
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
907
896
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
908
897
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -915,7 +904,7 @@ function RelatedContentSection({
|
|
|
915
904
|
});
|
|
916
905
|
}, []);
|
|
917
906
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
918
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
907
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunk5V7BIUGAcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
919
908
|
[buildListUrl2, apiBaseUrl]
|
|
920
909
|
);
|
|
921
910
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _13 => _13.refs]))), () => ( []));
|
|
@@ -939,7 +928,7 @@ function RelatedContentSection({
|
|
|
939
928
|
}
|
|
940
929
|
if (!showWhenEmpty) return null;
|
|
941
930
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
942
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
931
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunk5V7BIUGAcjs.accentSentenceMarks.call(void 0, title) }),
|
|
943
932
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
944
933
|
] });
|
|
945
934
|
}
|
|
@@ -965,7 +954,7 @@ function RelatedContentSection({
|
|
|
965
954
|
);
|
|
966
955
|
}
|
|
967
956
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
968
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
957
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunk5V7BIUGAcjs.accentSentenceMarks.call(void 0, title) }),
|
|
969
958
|
orderedTypes.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
959
|
ContentGroup,
|
|
971
960
|
{
|
|
@@ -994,30 +983,28 @@ function RelatedContentSectionSkeleton({
|
|
|
994
983
|
adminCampaignCard,
|
|
995
984
|
extras
|
|
996
985
|
}) {
|
|
997
|
-
const canonicalEntityType = entityType ?
|
|
986
|
+
const canonicalEntityType = entityType ? _chunk5V7BIUGAcjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
998
987
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
999
988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
1000
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
989
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: GROUP_PAGE_SIZE }, (_, i) => (
|
|
1001
990
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
1002
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {
|
|
991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
1003
992
|
)) })
|
|
1004
993
|
] }) : null;
|
|
1005
994
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
1006
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
995
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunk5V7BIUGAcjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
1007
996
|
unknownGroup,
|
|
1008
997
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
1009
998
|
const config = resolveGroupConfig(type);
|
|
1010
|
-
const sameType = canonicalEntityType !== null &&
|
|
999
|
+
const sameType = canonicalEntityType !== null && _chunk5V7BIUGAcjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
1011
1000
|
const isList = config.layout === "list";
|
|
1012
|
-
const fold = isList ? RAIL_LIST_FOLD : Math.max(...GRID_COLUMNS_BY_STEP[columns]) * RAIL_GRID_FOLD_ROWS;
|
|
1013
1001
|
const count = Math.min(
|
|
1014
1002
|
GROUP_PAGE_SIZE,
|
|
1015
|
-
|
|
1016
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( RAIL_SKELETON_CARDS))
|
|
1003
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( GROUP_PAGE_SIZE))
|
|
1017
1004
|
);
|
|
1018
1005
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1019
1006
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
1020
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {
|
|
1007
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(type, config.gridSize, adminCampaignCard, extras) }, i)
|
|
1021
1008
|
));
|
|
1022
1009
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
1023
1010
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, GroupHeading, { type }),
|
|
@@ -3895,7 +3895,7 @@ var DEFAULT_GALLERY_ROW = "flex gap-[var(--spacing-system-mf)]";
|
|
|
3895
3895
|
var DEFAULT_GALLERY_THUMB = "relative h-24 w-24 flex-shrink-0 overflow-hidden rounded-lg md:h-40 md:w-40 xl:h-[200px] xl:w-[200px]";
|
|
3896
3896
|
var DEFAULT_FOOTER = "flex justify-end border-t border-ods-border pt-[var(--spacing-system-lf)]";
|
|
3897
3897
|
var DEFAULT_HOSTS_ROW = "flex flex-wrap gap-2 md:justify-end";
|
|
3898
|
-
var
|
|
3898
|
+
var DEFAULT_SKELETON_TAGS = 2;
|
|
3899
3899
|
var EDITORIAL_PERSON_AVATAR = { variant: "round", size: "sm" };
|
|
3900
3900
|
var programActionLabel = (singular) => `View ${singular.toLowerCase()}`;
|
|
3901
3901
|
function ProgramActionButton({ label, href, newTab }) {
|
|
@@ -3950,7 +3950,7 @@ function ProgramCardSkeleton({
|
|
|
3950
3950
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { as: "span", type: "inherit", className: "w-40" })
|
|
3951
3951
|
] }),
|
|
3952
3952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_DESCRIPTION, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { as: "span", type: "inherit", lines: 3, className: "w-full" }) }),
|
|
3953
|
-
tags && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_TAG_ROW, children: Array.from({ length:
|
|
3953
|
+
tags && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_TAG_ROW, children: Array.from({ length: DEFAULT_SKELETON_TAGS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.TagSkeleton, {}, i)) })
|
|
3954
3954
|
] }),
|
|
3955
3955
|
hosts > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEFAULT_HOSTS_ROW, children: Array.from({ length: hosts }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatarSkeleton, { variant: "round", size: "sm" }, i)) })
|
|
3956
3956
|
] }),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZVKJKWABcjs = require('./chunk-ZVKJKWAB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkILZEXCJHcjs = require('./chunk-ILZEXCJH.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkXXJL5GY3cjs = require('./chunk-XXJL5GY3.cjs');
|
|
@@ -19,7 +19,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk5V7BIUGAcjs = require('./chunk-5V7BIUGA.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
@@ -40,7 +40,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
40
40
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
41
41
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
42
42
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
43
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
43
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkILZEXCJHcjs.resolveSourceIcon.call(void 0, {
|
|
44
44
|
sourceRepo,
|
|
45
45
|
documentType: docType
|
|
46
46
|
});
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunkZVKJKWABcjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -120,7 +120,7 @@ function mapDocSearchResults(docs) {
|
|
|
120
120
|
results.push({
|
|
121
121
|
id: `group-${entry.repo}`,
|
|
122
122
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
123
|
-
title: `${
|
|
123
|
+
title: `${_chunkILZEXCJHcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkILZEXCJHcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
124
124
|
path: rows[0].path,
|
|
125
125
|
type: "file",
|
|
126
126
|
metadata: {
|
|
@@ -183,7 +183,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
183
183
|
if (composed && !isAbsoluteHref(href)) {
|
|
184
184
|
return { kind: "navigate-same-tab", href };
|
|
185
185
|
}
|
|
186
|
-
const isNewTab =
|
|
186
|
+
const isNewTab = _chunk5V7BIUGAcjs.decideNewTab.call(void 0, {
|
|
187
187
|
href,
|
|
188
188
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
189
189
|
surface: "useUnifiedNav",
|
|
@@ -312,31 +312,31 @@ function useDocSearch(config) {
|
|
|
312
312
|
case "navigate-same-tab": {
|
|
313
313
|
if (wantsNewTab) {
|
|
314
314
|
setKeepOpen(true);
|
|
315
|
-
window.open(action.href, "_blank",
|
|
315
|
+
window.open(action.href, "_blank", _chunk5V7BIUGAcjs.NEW_TAB_FEATURES);
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
setKeepOpen(false);
|
|
319
319
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
320
320
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
321
|
-
router.push(
|
|
321
|
+
router.push(_chunk5V7BIUGAcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
324
|
case "navigate-new-tab":
|
|
325
325
|
setKeepOpen(true);
|
|
326
326
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
327
327
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
328
|
-
|
|
328
|
+
_chunk5V7BIUGAcjs.resolveExternalNavigation.call(void 0, {
|
|
329
329
|
href: action.href,
|
|
330
330
|
targetPlatform,
|
|
331
331
|
runtime
|
|
332
332
|
}).open();
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
window.open(action.href, "_blank",
|
|
335
|
+
window.open(action.href, "_blank", _chunk5V7BIUGAcjs.NEW_TAB_FEATURES);
|
|
336
336
|
return;
|
|
337
337
|
case "ask-ai":
|
|
338
338
|
setKeepOpen(false);
|
|
339
|
-
window.dispatchEvent(new CustomEvent(
|
|
339
|
+
window.dispatchEvent(new CustomEvent(_chunkILZEXCJHcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJJNOAYD4cjs = require('./chunk-JJNOAYD4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkXFRBEXQNcjs = require('./chunk-XFRBEXQN.cjs');
|
|
@@ -120,7 +120,7 @@ function PersistentPaginationWrapper({
|
|
|
120
120
|
},
|
|
121
121
|
"aria-hidden": isPaginationDisabled,
|
|
122
122
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
123
|
-
|
|
123
|
+
_chunkJJNOAYD4cjs.UnifiedPagination,
|
|
124
124
|
{
|
|
125
125
|
currentPage: displayCurrentPage,
|
|
126
126
|
totalPages: displayTotalPages,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZVKJKWABcjs = require('./chunk-ZVKJKWAB.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/product-demo/screens/devices-view.tsx
|
|
8
8
|
var _jsxruntime = require('react/jsx-runtime');
|
|
9
9
|
var DEVICES_SEARCH_QUERY = "Windows";
|
|
10
|
-
var TOOLBAR = { ...
|
|
10
|
+
var TOOLBAR = { ..._chunkZVKJKWABcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
|
|
11
11
|
var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
12
12
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
13
13
|
var NO_DEVICES = [];
|
|
@@ -19,7 +19,7 @@ function DevicesScreenView({
|
|
|
19
19
|
loading = false
|
|
20
20
|
}) {
|
|
21
21
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22
|
-
|
|
22
|
+
_chunkZVKJKWABcjs.DevicesPanelView,
|
|
23
23
|
{
|
|
24
24
|
className: "p-[var(--spacing-system-l)]",
|
|
25
25
|
headerSlot: NO_HEADER,
|