@flamingo-stack/openframe-frontend-core 0.0.806 → 0.0.808
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-RIRIA3FO.cjs → chunk-5MTYKS2Q.cjs} +4 -4
- package/dist/{chunk-DN5YBJGC.cjs → chunk-5UTJARDM.cjs} +2 -2
- package/dist/{chunk-FZSL4KSW.cjs → chunk-6B5BDFZ6.cjs} +3 -3
- package/dist/{chunk-URZOWIR3.cjs → chunk-6BYSVWIS.cjs} +11 -11
- package/dist/{chunk-XAG7ABPI.cjs → chunk-A5TMKZRQ.cjs} +32 -32
- package/dist/{chunk-SC4RKSMW.cjs → chunk-BSF7E5EZ.cjs} +61 -61
- package/dist/{chunk-PYZTG3T5.cjs → chunk-BT53NHR7.cjs} +25 -25
- package/dist/{chunk-7NCNJXMK.cjs → chunk-DRTXDPWM.cjs} +32 -32
- package/dist/{chunk-3B6PFUL3.cjs → chunk-FRS2VO22.cjs} +71 -19
- package/dist/{chunk-RTUSHW7S.cjs → chunk-H6U3K5EX.cjs} +18 -18
- package/dist/{chunk-IN6SPMCB.cjs → chunk-HKYGJVTA.cjs} +41 -41
- package/dist/{chunk-THY2XVGY.cjs → chunk-I3RJLXEL.cjs} +23 -17
- package/dist/{chunk-PCHNBV73.cjs → chunk-K6YBHFWX.cjs} +71 -71
- package/dist/{chunk-F2VN3UUB.cjs → chunk-KS5V55HN.cjs} +37 -37
- package/dist/{chunk-QE7H4Y3F.cjs → chunk-LF7B3LJE.cjs} +24 -24
- package/dist/{chunk-76NE67PK.cjs → chunk-ML3DG4SS.cjs} +2 -2
- package/dist/{chunk-IMDOKSEG.cjs → chunk-OAJ3AL4V.cjs} +4 -4
- package/dist/{chunk-FQ4LYYBI.cjs → chunk-PIKHEBG5.cjs} +48 -48
- package/dist/{chunk-OETG7KV6.cjs → chunk-R2S22LDL.cjs} +3 -3
- package/dist/{chunk-5OFEH673.cjs → chunk-RZNRKWG5.cjs} +13 -13
- package/dist/{chunk-CRBG5HXA.cjs → chunk-SPS7TL7Z.cjs} +799 -761
- package/dist/{chunk-MR3LQUOW.cjs → chunk-T64MG3HS.cjs} +6 -6
- package/dist/{chunk-MHH7CHNI.cjs → chunk-TOWVMBAP.cjs} +4 -4
- package/dist/{chunk-3WNCFZGN.cjs → chunk-TUZV2ZQY.cjs} +2 -2
- package/dist/{chunk-V3T5MDJV.cjs → chunk-VHX4A4SA.cjs} +2 -2
- package/dist/{chunk-DTKHEHIQ.cjs → chunk-ZAXGW4KT.cjs} +14 -14
- package/dist/{cloud-tenants-6E27I6AY.cjs → cloud-tenants-H5TMGGDF.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +21 -21
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/index.cjs +9 -9
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +16 -4
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +9 -2
- package/dist/components/help-center-pages/index.cjs +88 -88
- package/dist/components/index.cjs +55 -53
- package/dist/components/meeting-scheduler/index.cjs +46 -46
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/product-demo/index.cjs +17 -17
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/assignee-dropdown.d.ts +10 -0
- package/dist/components/ui/assignee-dropdown.d.ts.map +1 -1
- package/dist/components/ui/assignee-dropdown.js +14 -2
- package/dist/components/ui/autocomplete.d.ts +24 -0
- package/dist/components/ui/autocomplete.d.ts.map +1 -1
- package/dist/components/ui/autocomplete.js +26 -4
- package/dist/components/ui/index.cjs +9 -7
- package/dist/components/ui/modal.d.ts.map +1 -1
- package/dist/components/ui/modal.js +24 -18
- package/dist/components/ui/reopen-ticket-modal.d.ts +17 -1
- package/dist/components/ui/reopen-ticket-modal.d.ts.map +1 -1
- package/dist/components/ui/reopen-ticket-modal.js +8 -15
- package/dist/components/ui/searchable-select.d.ts +17 -0
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +24 -9
- package/dist/components/ui/server-search-options.d.ts +30 -0
- package/dist/components/ui/server-search-options.d.ts.map +1 -0
- package/dist/components/ui/server-search-options.js +30 -0
- package/dist/components/ui/take-over-ticket-modal.d.ts +25 -1
- package/dist/components/ui/take-over-ticket-modal.d.ts.map +1 -1
- package/dist/components/ui/take-over-ticket-modal.js +14 -14
- package/dist/components/ui/ticket-info-section.d.ts +2 -0
- package/dist/components/ui/ticket-info-section.d.ts.map +1 -1
- package/dist/components/ui/ticket-info-section.js +2 -1
- package/dist/{devices-HZVRGH3A.cjs → devices-4MF5B7WJ.cjs} +8 -8
- package/dist/{embeddable-chat-GHBCX2BY.cjs → embeddable-chat-XT6GMSBX.cjs} +62 -62
- package/dist/index.cjs +13 -11
- package/dist/{knowledge-EJG7YG7C.cjs → knowledge-MI7VMPRF.cjs} +8 -8
- package/dist/{logs-6N3ANKZK.cjs → logs-7TEU2UXV.cjs} +15 -15
- package/dist/{policies-CE7A66D7.cjs → policies-AR7B4LW5.cjs} +11 -11
- package/dist/{remote-session-HLGLKOGW.cjs → remote-session-LMUFV2RZ.cjs} +4 -4
- package/dist/{scripts-NREM2Y6Z.cjs → scripts-HTMYPV5Q.cjs} +14 -14
- package/dist/{software-update-CI4F3IRV.cjs → software-update-YMSYGYCM.cjs} +11 -11
- package/package.json +1 -1
- package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +10 -1
- package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +10 -4
- package/src/components/ui/assignee-dropdown.tsx +29 -1
- package/src/components/ui/autocomplete.tsx +68 -5
- package/src/components/ui/modal.tsx +14 -4
- package/src/components/ui/reopen-ticket-modal.tsx +22 -14
- package/src/components/ui/searchable-select.tsx +52 -8
- package/src/components/ui/server-search-options.ts +65 -0
- package/src/components/ui/take-over-ticket-modal.tsx +35 -13
- package/src/components/ui/ticket-info-section.tsx +3 -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 _chunkTUZV2ZQYcjs = require('./chunk-TUZV2ZQY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunk3WNCFZGNcjs = require('./chunk-3WNCFZGN.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkTOWVMBAPcjs = require('./chunk-TOWVMBAP.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,7 +27,7 @@ var _chunkMHH7CHNIcjs = require('./chunk-MHH7CHNI.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkI3RJLXELcjs = require('./chunk-I3RJLXEL.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -443,13 +443,13 @@ function programEntry(configKey) {
|
|
|
443
443
|
return cardEntry({
|
|
444
444
|
// The gallery and hosts rows are drawn only for a type whose cards show them (its config's `cardShowsGallery`,
|
|
445
445
|
// `cardShowsHosts`), as `ProgramCard` decides in a scope: elsewhere a record may have none.
|
|
446
|
-
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
446
|
+
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.ProgramCard, { loading: true, config: _optionalChain([extras, 'optionalAccess', _2 => _2.programConfigs, 'optionalAccess', _3 => _3[configKey]]), size: size === "sm" ? "sm" : "default" }),
|
|
447
447
|
decode: decodeProgramRow,
|
|
448
448
|
render: (item, ctx) => {
|
|
449
449
|
const config = _optionalChain([ctx, 'access', _4 => _4.extras, 'optionalAccess', _5 => _5.programConfigs, 'optionalAccess', _6 => _6[configKey]]);
|
|
450
450
|
if (!config) return null;
|
|
451
451
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
-
|
|
452
|
+
_chunkI3RJLXELcjs.ProgramCard,
|
|
453
453
|
{
|
|
454
454
|
config,
|
|
455
455
|
item,
|
|
@@ -467,10 +467,10 @@ function programEntry(configKey) {
|
|
|
467
467
|
}
|
|
468
468
|
function roadmapEntry(cardType) {
|
|
469
469
|
return cardEntry({
|
|
470
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
470
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.RoadmapCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
471
471
|
decode: decodeRoadmapRow,
|
|
472
472
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
473
|
-
|
|
473
|
+
_chunkI3RJLXELcjs.RoadmapCard,
|
|
474
474
|
{
|
|
475
475
|
item,
|
|
476
476
|
href: ctx.href,
|
|
@@ -487,10 +487,10 @@ function roadmapEntry(cardType) {
|
|
|
487
487
|
}
|
|
488
488
|
var RELATED_CARD_REGISTRY = {
|
|
489
489
|
blog_post_existing: cardEntry({
|
|
490
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.BlogCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
491
491
|
decode: decodeBlogRow,
|
|
492
492
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
493
|
-
|
|
493
|
+
_chunkI3RJLXELcjs.BlogCard,
|
|
494
494
|
{
|
|
495
495
|
post,
|
|
496
496
|
size: ctx.legacySize,
|
|
@@ -518,10 +518,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
518
518
|
)
|
|
519
519
|
}),
|
|
520
520
|
customer_interview: cardEntry({
|
|
521
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.CustomerInterviewCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
522
522
|
decode: decodeCustomerInterviewRow,
|
|
523
523
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
524
|
-
|
|
524
|
+
_chunkI3RJLXELcjs.CustomerInterviewCard,
|
|
525
525
|
{
|
|
526
526
|
interview,
|
|
527
527
|
size: ctx.legacySize,
|
|
@@ -539,13 +539,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
539
539
|
* record, and the three props the rail sets itself are read off it.
|
|
540
540
|
*/
|
|
541
541
|
product_release: cardEntry({
|
|
542
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
542
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.ProductReleaseCard, { loading: true, size: size === "sm" ? "sm" : "lg" }),
|
|
543
543
|
decode: asRecord,
|
|
544
544
|
render: (release, ctx) => {
|
|
545
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => (
|
|
545
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => ( _chunkI3RJLXELcjs.buildProductReleaseCardProps));
|
|
546
546
|
const releaseProps = buildReleaseProps(release);
|
|
547
547
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
-
|
|
548
|
+
_chunkI3RJLXELcjs.ProductReleaseCard,
|
|
549
549
|
{
|
|
550
550
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
551
551
|
title: str(release, "title"),
|
|
@@ -561,10 +561,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
561
561
|
webinar: programEntry("webinar"),
|
|
562
562
|
event: programEntry("event"),
|
|
563
563
|
investor_update: cardEntry({
|
|
564
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
564
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.InvestorUpdateCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
565
565
|
decode: decodeInvestorUpdateRow,
|
|
566
566
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
567
|
-
|
|
567
|
+
_chunkI3RJLXELcjs.InvestorUpdateCard,
|
|
568
568
|
{
|
|
569
569
|
update,
|
|
570
570
|
size: ctx.legacySize,
|
|
@@ -579,10 +579,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
579
579
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
580
580
|
* section" rail, not this full-width row. */
|
|
581
581
|
onboarding_guide: cardEntry({
|
|
582
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
582
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.OnboardingGuideCard, { loading: true, size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
583
583
|
decode: decodeOnboardingGuideRow,
|
|
584
584
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
585
|
-
|
|
585
|
+
_chunkI3RJLXELcjs.OnboardingGuideCard,
|
|
586
586
|
{
|
|
587
587
|
guide,
|
|
588
588
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -599,10 +599,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
599
599
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
600
600
|
* card in a dead <a>. */
|
|
601
601
|
what_i_shipped: cardEntry({
|
|
602
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
602
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTOWVMBAPcjs.WhatIShippedCard, { loading: true }),
|
|
603
603
|
decode: decodeEmployeeEntryRow,
|
|
604
604
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
605
|
-
|
|
605
|
+
_chunkTOWVMBAPcjs.WhatIShippedCard,
|
|
606
606
|
{
|
|
607
607
|
entry,
|
|
608
608
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -612,10 +612,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
612
612
|
}),
|
|
613
613
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
614
614
|
how_i_work: cardEntry({
|
|
615
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
615
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTOWVMBAPcjs.HowIWorkCard, { loading: true }),
|
|
616
616
|
decode: decodeEmployeeEntryRow,
|
|
617
617
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
618
|
+
_chunkTOWVMBAPcjs.HowIWorkCard,
|
|
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
|
ai_prompt: cardEntry({
|
|
628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
628
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTOWVMBAPcjs.AiPromptCard, { loading: true }),
|
|
629
629
|
decode: decodeEmployeeEntryRow,
|
|
630
630
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
-
|
|
631
|
+
_chunkTOWVMBAPcjs.AiPromptCard,
|
|
632
632
|
{
|
|
633
633
|
entry,
|
|
634
634
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -711,9 +711,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
711
711
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
712
712
|
);
|
|
713
713
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
714
|
-
const { data, dataUrl, error } =
|
|
714
|
+
const { data, dataUrl, error } = _chunkTOWVMBAPcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
715
715
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
716
|
-
setPages(new Map(pages).set(dataUrl,
|
|
716
|
+
setPages(new Map(pages).set(dataUrl, _chunkI3RJLXELcjs.extractItems.call(void 0, data)));
|
|
717
717
|
}
|
|
718
718
|
if (url === null) return { items: null, isLoading: false };
|
|
719
719
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -722,7 +722,7 @@ function gridClassFor(columns) {
|
|
|
722
722
|
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";
|
|
723
723
|
}
|
|
724
724
|
function resolveGroupConfig(type) {
|
|
725
|
-
return _nullishCoalesce(
|
|
725
|
+
return _nullishCoalesce(_chunkTOWVMBAPcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
726
726
|
label: type,
|
|
727
727
|
order: 999,
|
|
728
728
|
layout: "grid",
|
|
@@ -735,15 +735,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
735
735
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
736
736
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
737
737
|
function GroupHeading({ type }) {
|
|
738
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
738
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkTOWVMBAPcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
739
739
|
}
|
|
740
740
|
function orderRailTypes(types, entityType) {
|
|
741
|
-
let ordered =
|
|
741
|
+
let ordered = _chunkTOWVMBAPcjs.orderContentRefTypes.call(void 0, types);
|
|
742
742
|
if (entityType) {
|
|
743
|
-
const canonicalEntityType =
|
|
744
|
-
const sameType = ordered.filter((t) =>
|
|
743
|
+
const canonicalEntityType = _chunkI3RJLXELcjs.canonicalContentRefType.call(void 0, entityType);
|
|
744
|
+
const sameType = ordered.filter((t) => _chunkI3RJLXELcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
745
745
|
if (sameType.length > 0) {
|
|
746
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
746
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunkI3RJLXELcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
return ordered;
|
|
@@ -772,10 +772,10 @@ function ContentGroup({
|
|
|
772
772
|
setPagedRefsKey(refsKey);
|
|
773
773
|
setPage(1);
|
|
774
774
|
}
|
|
775
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
776
|
-
const pageRefs = refs.slice((page - 1) *
|
|
775
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkTOWVMBAPcjs.GROUP_PAGE_SIZE);
|
|
776
|
+
const pageRefs = refs.slice((page - 1) * _chunkTOWVMBAPcjs.GROUP_PAGE_SIZE, page * _chunkTOWVMBAPcjs.GROUP_PAGE_SIZE);
|
|
777
777
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
778
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUZV2ZQYcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
779
779
|
_react.useEffect.call(void 0, () => {
|
|
780
780
|
onLoadingChange(type, isLoading);
|
|
781
781
|
return () => onLoadingChange(type, false);
|
|
@@ -793,7 +793,7 @@ function ContentGroup({
|
|
|
793
793
|
}
|
|
794
794
|
if (!items) return null;
|
|
795
795
|
const rowKey = (it) => {
|
|
796
|
-
const extracted =
|
|
796
|
+
const extracted = _chunkI3RJLXELcjs.extractItemId.call(void 0, type, it);
|
|
797
797
|
if (extracted !== null) return extracted;
|
|
798
798
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
799
799
|
};
|
|
@@ -864,11 +864,11 @@ function RelatedContentSection({
|
|
|
864
864
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
865
865
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
866
866
|
};
|
|
867
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
867
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkTOWVMBAPcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
868
868
|
apiBaseUrl,
|
|
869
869
|
extraParams: { authorId, ...typeFilterParams }
|
|
870
870
|
}) : null;
|
|
871
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
871
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkTOWVMBAPcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
872
872
|
apiBaseUrl,
|
|
873
873
|
entityType,
|
|
874
874
|
entityId,
|
|
@@ -885,7 +885,7 @@ function RelatedContentSection({
|
|
|
885
885
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
886
886
|
[initialItems, suggestionsDisabled]
|
|
887
887
|
);
|
|
888
|
-
const { data, isLoading } =
|
|
888
|
+
const { data, isLoading } = _chunkTOWVMBAPcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
889
889
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
890
890
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
891
891
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -898,7 +898,7 @@ function RelatedContentSection({
|
|
|
898
898
|
});
|
|
899
899
|
}, []);
|
|
900
900
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
901
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
901
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkI3RJLXELcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
902
902
|
[buildListUrl2, apiBaseUrl]
|
|
903
903
|
);
|
|
904
904
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _12 => _12.refs]))), () => ( []));
|
|
@@ -922,7 +922,7 @@ function RelatedContentSection({
|
|
|
922
922
|
}
|
|
923
923
|
if (!showWhenEmpty) return null;
|
|
924
924
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunkI3RJLXELcjs.accentSentenceMarks.call(void 0, title) }),
|
|
926
926
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
927
927
|
] });
|
|
928
928
|
}
|
|
@@ -948,7 +948,7 @@ function RelatedContentSection({
|
|
|
948
948
|
);
|
|
949
949
|
}
|
|
950
950
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunkI3RJLXELcjs.accentSentenceMarks.call(void 0, title) }),
|
|
952
952
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
953
|
ContentGroup,
|
|
954
954
|
{
|
|
@@ -979,24 +979,24 @@ function RelatedContentSectionSkeleton({
|
|
|
979
979
|
adminCampaignCard,
|
|
980
980
|
extras
|
|
981
981
|
}) {
|
|
982
|
-
const canonicalEntityType = entityType ?
|
|
982
|
+
const canonicalEntityType = entityType ? _chunkI3RJLXELcjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
983
983
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
984
984
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
985
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
985
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunkTOWVMBAPcjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
986
986
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
987
987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
988
988
|
)) })
|
|
989
989
|
] }) : null;
|
|
990
990
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunkI3RJLXELcjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
992
992
|
unknownGroup,
|
|
993
993
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
994
994
|
const config = resolveGroupConfig(type);
|
|
995
|
-
const sameType = canonicalEntityType !== null &&
|
|
995
|
+
const sameType = canonicalEntityType !== null && _chunkI3RJLXELcjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
996
996
|
const isList = config.layout === "list";
|
|
997
997
|
const count = Math.min(
|
|
998
|
-
|
|
999
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
998
|
+
_chunkTOWVMBAPcjs.GROUP_PAGE_SIZE,
|
|
999
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkTOWVMBAPcjs.GROUP_PAGE_SIZE))
|
|
1000
1000
|
);
|
|
1001
1001
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1002
1002
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSPS7TL7Zcjs = require('./chunk-SPS7TL7Z.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/product-demo/screens/devices-view.tsx
|
|
11
11
|
var _jsxruntime = require('react/jsx-runtime');
|
|
12
12
|
var DEVICES_SEARCH_QUERY = "Windows";
|
|
13
|
-
var TOOLBAR = { ...
|
|
13
|
+
var TOOLBAR = { ..._chunkSPS7TL7Zcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
|
|
14
14
|
var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
15
15
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
16
16
|
var NO_DEVICES = [];
|
|
@@ -22,7 +22,7 @@ function DevicesScreenView({
|
|
|
22
22
|
loading = false
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25
|
-
|
|
25
|
+
_chunkSPS7TL7Zcjs.DevicesPanelView,
|
|
26
26
|
{
|
|
27
27
|
className: "p-[var(--spacing-system-l)]",
|
|
28
28
|
headerSlot: NO_HEADER,
|
|
@@ -5,12 +5,12 @@ var _chunkAZJYMTBScjs = require('./chunk-AZJYMTBS.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkBT53NHR7cjs = require('./chunk-BT53NHR7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkKS5V55HNcjs = require('./chunk-KS5V55HN.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,10 +25,10 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkTOWVMBAPcjs = require('./chunk-TOWVMBAP.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkI3RJLXELcjs = require('./chunk-I3RJLXEL.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
@@ -74,7 +74,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
|
-
id:
|
|
77
|
+
id: _chunkKS5V55HNcjs.faqItemAnchor.call(void 0, item.id),
|
|
78
78
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
79
79
|
"data-loading-item": true,
|
|
80
80
|
children: [
|
|
@@ -140,14 +140,14 @@ function FaqAccordionSkeleton({
|
|
|
140
140
|
|
|
141
141
|
var PICK_ROOT_MARGIN = "600px";
|
|
142
142
|
function faqAskCardShown(assistant) {
|
|
143
|
-
return
|
|
143
|
+
return _chunkBT53NHR7cjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
144
144
|
}
|
|
145
145
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
146
146
|
const { ref, inView } = _chunkOJZBZH56cjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
147
147
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
148
148
|
if (inView && !reached) setReached(true);
|
|
149
149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
150
|
+
_chunkBT53NHR7cjs.AssistantAskPrompts,
|
|
151
151
|
{
|
|
152
152
|
variant: "card",
|
|
153
153
|
topic,
|
|
@@ -207,7 +207,7 @@ var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-
|
|
|
207
207
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
208
208
|
var CATEGORY_PILL_CLASS = "rounded-full border px-4 py-2 transition-colors text-h6";
|
|
209
209
|
var CATEGORY_SECTION_CLASS = "scroll-mt-24";
|
|
210
|
-
var CATEGORY_HEADING_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
210
|
+
var CATEGORY_HEADING_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, _chunkI3RJLXELcjs.SECTION_HEADING_CLASS, "pb-4");
|
|
211
211
|
var FAQ_SECTION_SKELETON_QUESTIONS = FAQ_ACCORDION_SKELETON_ROWS;
|
|
212
212
|
function FaqLayout({
|
|
213
213
|
heading,
|
|
@@ -233,7 +233,7 @@ function FaqLayout({
|
|
|
233
233
|
] });
|
|
234
234
|
}
|
|
235
235
|
function faqHeadingNode(heading, showTopic, topic) {
|
|
236
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
236
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkI3RJLXELcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
237
237
|
if (!(showTopic && topic)) return titleNode;
|
|
238
238
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
239
239
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
@@ -247,7 +247,7 @@ function pageFaqProps(faq) {
|
|
|
247
247
|
}
|
|
248
248
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
249
249
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
250
|
-
return
|
|
250
|
+
return _chunkTOWVMBAPcjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
251
251
|
apiBaseUrl,
|
|
252
252
|
entityType,
|
|
253
253
|
entityId,
|
|
@@ -268,7 +268,7 @@ function groupFaqsBySection(faqs) {
|
|
|
268
268
|
}
|
|
269
269
|
let group = byName.get(name);
|
|
270
270
|
if (!group) {
|
|
271
|
-
group = { section: name, slug:
|
|
271
|
+
group = { section: name, slug: _chunkKS5V55HNcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
272
272
|
byName.set(name, group);
|
|
273
273
|
}
|
|
274
274
|
group.items.push(item);
|
|
@@ -324,7 +324,7 @@ function GroupedFaqList({
|
|
|
324
324
|
}, [slugKey]);
|
|
325
325
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
326
326
|
_react.useEffect.call(void 0, () => {
|
|
327
|
-
const refresh = () => setHashTarget(
|
|
327
|
+
const refresh = () => setHashTarget(_chunkKS5V55HNcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
328
328
|
refresh();
|
|
329
329
|
window.addEventListener("hashchange", refresh);
|
|
330
330
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -425,7 +425,7 @@ function FaqSection({
|
|
|
425
425
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
426
426
|
[initialFaqs]
|
|
427
427
|
);
|
|
428
|
-
const { data, dataUrl, isLoading, error } =
|
|
428
|
+
const { data, dataUrl, isLoading, error } = _chunkTOWVMBAPcjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
429
429
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _14 => _14.faqs]) : void 0;
|
|
430
430
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
431
431
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|