@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.831
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-QMFGPABF.cjs → case-study-card-TK7ZCNLM.cjs} +5 -5
- package/dist/{chunk-LKP5R3EQ.cjs → chunk-46LATWQR.cjs} +2 -2
- package/dist/{chunk-IBD2FPSX.cjs → chunk-4JHO2NVI.cjs} +2 -2
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-5L3UKDC6.cjs} +16 -16
- package/dist/{chunk-THPAGFT6.cjs → chunk-7COZUANC.cjs} +60 -69
- package/dist/{chunk-DWSU35QQ.cjs → chunk-7WQD3R5J.cjs} +84 -84
- package/dist/{chunk-DAKGX2WF.cjs → chunk-APNONOHY.cjs} +2 -2
- package/dist/{chunk-KPGKTEEB.cjs → chunk-BUEEQD3G.cjs} +2 -2
- package/dist/{chunk-YMLRDVPO.cjs → chunk-C4OQIYGW.cjs} +11 -11
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-CP46CVUC.cjs} +91 -91
- package/dist/{chunk-UO6F6LLI.cjs → chunk-D6ZSRGH2.cjs} +699 -642
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-DAQMCWCK.cjs} +3 -3
- package/dist/{chunk-MFYSV7DE.cjs → chunk-EYSIQORA.cjs} +94 -94
- package/dist/{chunk-DU6AF77X.cjs → chunk-FNNDGOR3.cjs} +33 -33
- package/dist/{chunk-OKTNRGM5.cjs → chunk-GPXKG34G.cjs} +54 -54
- package/dist/{chunk-FMSAN6SR.cjs → chunk-H3WTYAVR.cjs} +129 -129
- package/dist/{chunk-HMC2IWV4.cjs → chunk-HDLY6OMQ.cjs} +6 -6
- package/dist/{chunk-2VLPXUQK.cjs → chunk-HLJXCOMA.cjs} +4 -4
- package/dist/{chunk-PBHP3FHO.cjs → chunk-JBTH3O2C.cjs} +4 -4
- package/dist/{chunk-2HQNXX2K.cjs → chunk-JQCQCE6U.cjs} +2 -2
- package/dist/{chunk-AY6XJOIN.cjs → chunk-LWMWY3JO.cjs} +45 -45
- package/dist/{chunk-R3PKAIX3.cjs → chunk-OGPAVRNF.cjs} +17 -17
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-P5DWAVWK.cjs} +28 -28
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-QHBKZJ6A.cjs} +4 -4
- package/dist/{chunk-PRZAEPGG.cjs → chunk-R6QZHOJB.cjs} +46 -46
- package/dist/{chunk-F2J5WN6U.cjs → chunk-SOCCHWDK.cjs} +2 -2
- package/dist/{chunk-IMDYB77M.cjs → chunk-SRHHLDBP.cjs} +36 -36
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-SWMUW3RR.cjs} +18 -18
- package/dist/{chunk-6GPMVHJN.cjs → chunk-TD4CC4KV.cjs} +20 -20
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-UGM3YDCK.cjs} +25 -25
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-UQS2RI5Y.cjs} +12 -12
- package/dist/{chunk-IHRMX3X6.cjs → chunk-VBGBKRDO.cjs} +684 -661
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-VQG2A7GA.cjs} +2 -2
- package/dist/{chunk-S6UJEW4G.cjs → chunk-WCOSGDGA.cjs} +2 -2
- package/dist/{chunk-ENMPSEEQ.cjs → chunk-WVNUCKB7.cjs} +4 -4
- package/dist/{chunk-LNXRTVOY.cjs → chunk-X76TZ5YR.cjs} +21 -21
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-X7VQM5TU.cjs} +6 -6
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{chunk-W4VEDSAX.cjs → chunk-ZABZIM2Y.cjs} +6 -6
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-ZJ5K6XHW.cjs} +21 -21
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-E2AC4WEJ.cjs} +20 -20
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +19 -15
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/chat/utils/icon-registry.d.ts +2 -2
- package/dist/components/chat/utils/icon-registry.js +2 -2
- package/dist/components/contact/index.cjs +21 -21
- package/dist/components/docs/index.cjs +24 -24
- package/dist/components/embeds/index.cjs +21 -21
- package/dist/components/faq/index.cjs +22 -22
- package/dist/components/features/index.cjs +22 -20
- package/dist/components/features/notifications/index.d.ts +3 -1
- package/dist/components/features/notifications/index.d.ts.map +1 -1
- package/dist/components/features/notifications/index.js +2 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts +7 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts.map +1 -0
- package/dist/components/features/notifications/notification-category-icon.js +26 -0
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/types.d.ts +1 -1
- package/dist/components/features/notifications/types.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +125 -125
- package/dist/components/index.cjs +90 -82
- package/dist/components/meeting-scheduler/index.cjs +69 -69
- package/dist/components/navigation/index.cjs +23 -23
- package/dist/components/navigation/site-footer.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.js +2 -12
- package/dist/components/onboarding-guides/index.cjs +23 -23
- package/dist/components/product-demo/index.cjs +31 -31
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/social-icon-row.d.ts +6 -2
- package/dist/components/social-icon-row.d.ts.map +1 -1
- package/dist/components/social-icon-row.js +5 -6
- package/dist/components/tickets/index.cjs +27 -27
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +24 -20
- package/dist/{devices-AW6BERJF.cjs → devices-CAYUGD2N.cjs} +21 -21
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-FYHMR66R.cjs} +121 -114
- package/dist/hooks/index.cjs +7 -7
- package/dist/index.cjs +31 -25
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-OI4OPEVL.cjs} +21 -21
- package/dist/{logs-CYA7H4KM.cjs → logs-B3XV2NHV.cjs} +27 -27
- package/dist/platform-domains.cjs +4 -0
- package/dist/platform-domains.d.ts +2 -0
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +4 -0
- package/dist/{policies-M6QSFL5G.cjs → policies-ZB4Z42DV.cjs} +24 -24
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-CN3G7JNR.cjs} +7 -7
- package/dist/{scripts-Y46ECDDP.cjs → scripts-I4DNUOQC.cjs} +27 -27
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-AWH4WXOH.cjs} +24 -24
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-PLYD2NSY.cjs} +11 -11
- package/dist/types/marketing.d.ts +61 -216
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/notifications.cjs +55 -0
- package/dist/utils/notifications.d.ts +29 -0
- package/dist/utils/notifications.d.ts.map +1 -0
- package/dist/utils/notifications.js +53 -0
- package/dist/utils/social-platforms.d.ts +9 -9
- package/dist/utils/social-platforms.d.ts.map +1 -1
- package/package.json +7 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/chat/utils/icon-registry.ts +5 -5
- package/src/components/chat/utils/index.ts +1 -1
- package/src/components/features/notifications/index.ts +2 -1
- package/src/components/features/notifications/notification-category-icon.tsx +38 -0
- package/src/components/features/notifications/notification-tile.tsx +2 -1
- package/src/components/features/notifications/types.ts +1 -2
- package/src/components/navigation/site-footer.tsx +2 -11
- package/src/components/social-icon-row.tsx +11 -10
- package/src/components/ui/actions-menu.tsx +35 -1
- package/src/platform-domains.ts +5 -0
- package/src/types/marketing.ts +90 -268
- package/src/utils/index.ts +1 -1
- package/src/utils/notifications.ts +71 -0
- package/src/utils/social-platforms.ts +9 -9
|
@@ -1,30 +1,30 @@
|
|
|
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 _chunk46LATWQRcjs = require('./chunk-46LATWQR.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUQS2RI5Ycjs = require('./chunk-UQS2RI5Y.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkVBGBKRDOcjs = require('./chunk-VBGBKRDO.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkEYSIQORAcjs = require('./chunk-EYSIQORA.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkD6ZSRGH2cjs = require('./chunk-D6ZSRGH2.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
|
|
@@ -34,17 +34,17 @@ var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
|
|
|
34
34
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkC4OQIYGWcjs = require('./chunk-C4OQIYGW.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkH3WTYAVRcjs = require('./chunk-H3WTYAVR.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkTD4CC4KVcjs = require('./chunk-TD4CC4KV.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkAPNONOHYcjs = require('./chunk-APNONOHY.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -75,7 +75,7 @@ function OnboardingCatalogSectionsSkeleton() {
|
|
|
75
75
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }),
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CATALOG_SECTION_COUNT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-3" }) })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.OnboardingGuideCard, { loading: true, size: "catalog" }) }) }) })
|
|
79
79
|
] }) });
|
|
80
80
|
}
|
|
81
81
|
function OnboardingGuidesCatalogView({
|
|
@@ -96,10 +96,10 @@ function OnboardingGuidesCatalogView({
|
|
|
96
96
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
97
97
|
const activeSection = sectionValue || "all";
|
|
98
98
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
99
|
-
const guidesRes =
|
|
99
|
+
const guidesRes = _chunkC4OQIYGWcjs.useSelfFetch.call(void 0,
|
|
100
100
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
101
101
|
);
|
|
102
|
-
const sectionsRes =
|
|
102
|
+
const sectionsRes = _chunkC4OQIYGWcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
103
103
|
const guides = _react.useMemo.call(void 0, () => _nullishCoalesce(_nullishCoalesce(initialGuides, () => ( _optionalChain([guidesRes, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.data]))), () => ( [])), [initialGuides, _optionalChain([guidesRes, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.data])]);
|
|
104
104
|
const sections = _react.useMemo.call(void 0,
|
|
105
105
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -143,25 +143,25 @@ function OnboardingGuidesCatalogView({
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
146
|
-
const docSearch =
|
|
146
|
+
const docSearch = _chunkUQS2RI5Ycjs.useDocSearch.call(void 0, {
|
|
147
147
|
source,
|
|
148
148
|
baseRoute: basePath,
|
|
149
149
|
onNavigate: (path) => router.push(path),
|
|
150
150
|
tableIds: ["onboarding-guides"]
|
|
151
151
|
});
|
|
152
152
|
const defaultRenderCard = (guide) => {
|
|
153
|
-
const cta =
|
|
153
|
+
const cta = _chunkEYSIQORAcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
154
154
|
type: "onboarding_guide",
|
|
155
155
|
slug: guide.slug,
|
|
156
156
|
basePath,
|
|
157
157
|
platforms: guide.onboarding_guide_platforms
|
|
158
158
|
});
|
|
159
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
159
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
160
160
|
};
|
|
161
161
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
162
162
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunkUQS2RI5Ycjs.DocSearchBar,
|
|
165
165
|
{
|
|
166
166
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
167
167
|
query: docSearch.query,
|
|
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
|
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
176
|
-
|
|
176
|
+
_chunkVBGBKRDOcjs.FilterPillRow,
|
|
177
177
|
{
|
|
178
178
|
label: "Section",
|
|
179
179
|
selectedValue: activeSection,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
)
|
|
185
185
|
] });
|
|
186
186
|
if (!loading && selfFetch && guidesRes.error) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVBGBKRDOcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
188
188
|
}
|
|
189
189
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
190
190
|
preControls,
|
|
@@ -200,7 +200,7 @@ function OnboardingGuidesCatalogView({
|
|
|
200
200
|
)
|
|
201
201
|
] });
|
|
202
202
|
if (!loading) return view;
|
|
203
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.LoadingFallback, { label: "Loading onboarding guides", children: view });
|
|
204
204
|
}
|
|
205
205
|
function OnboardingCatalogSections({
|
|
206
206
|
grouped,
|
|
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
slug,
|
|
305
305
|
guideEndpoint,
|
|
306
306
|
related = [],
|
|
307
|
-
MarkdownRenderer =
|
|
307
|
+
MarkdownRenderer = _chunkVBGBKRDOcjs.RichMarkdownRenderer,
|
|
308
308
|
renderRelatedCard,
|
|
309
309
|
backHref,
|
|
310
310
|
backLabel = "Back to Getting Started",
|
|
@@ -314,9 +314,9 @@ function OnboardingGuideDetailView({
|
|
|
314
314
|
}) {
|
|
315
315
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
316
316
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
317
|
-
const captions =
|
|
317
|
+
const captions = _chunkD6ZSRGH2cjs.useCaptions.call(void 0, );
|
|
318
318
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
319
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVBGBKRDOcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
320
320
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
321
321
|
const scoped = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
@@ -324,7 +324,7 @@ function OnboardingGuideDetailView({
|
|
|
324
324
|
isLoading,
|
|
325
325
|
error,
|
|
326
326
|
reload
|
|
327
|
-
} =
|
|
327
|
+
} = _chunkC4OQIYGWcjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
328
328
|
initialData
|
|
329
329
|
});
|
|
330
330
|
const { ref: videoWarmupRef } = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, {
|
|
@@ -334,27 +334,27 @@ function OnboardingGuideDetailView({
|
|
|
334
334
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
335
335
|
const loading = scoped || !guide && isLoading;
|
|
336
336
|
if (!loading && (error || !guide)) {
|
|
337
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVBGBKRDOcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
338
338
|
}
|
|
339
339
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
340
340
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
341
341
|
const videoPoster = view.main_video_thumbnail || view.featured_image || view.og_image_url || // `buildOgPlaceholderUrl` always returns a usable string (relative route at
|
|
342
342
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
343
|
-
|
|
343
|
+
_chunkAPNONOHYcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
344
344
|
const defaultRenderRelatedCard = (g) => {
|
|
345
|
-
const cta =
|
|
345
|
+
const cta = _chunkEYSIQORAcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
346
346
|
type: "onboarding_guide",
|
|
347
347
|
slug: g.slug,
|
|
348
348
|
basePath,
|
|
349
349
|
platforms: g.onboarding_guide_platforms
|
|
350
350
|
});
|
|
351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
351
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
|
-
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
354
|
+
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFNNDGOR3cjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVBGBKRDOcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
|
-
|
|
357
|
+
_chunkH3WTYAVRcjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
359
359
|
author: view.author,
|
|
360
360
|
authorHref,
|
|
@@ -370,7 +370,7 @@ function OnboardingGuideDetailView({
|
|
|
370
370
|
),
|
|
371
371
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
373
|
-
|
|
373
|
+
_chunkD6ZSRGH2cjs.EntityVideoSection,
|
|
374
374
|
{
|
|
375
375
|
mainVideoUrl: view.main_video_url,
|
|
376
376
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -387,17 +387,17 @@ function OnboardingGuideDetailView({
|
|
|
387
387
|
) }),
|
|
388
388
|
(loading || view.content) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: BODY_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: _nullishCoalesce(view.content, () => ( "")) }) }),
|
|
389
389
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
390
|
-
|
|
390
|
+
_chunkD6ZSRGH2cjs.VideoBitesStrip,
|
|
391
391
|
{
|
|
392
392
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
393
393
|
filterPublished: true,
|
|
394
394
|
showTitle: false,
|
|
395
|
-
profile:
|
|
395
|
+
profile: _chunkTD4CC4KVcjs.toStripProfile.call(void 0, view.author),
|
|
396
396
|
href: `/onboarding-guides/${view.slug}`
|
|
397
397
|
}
|
|
398
398
|
) }),
|
|
399
399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
400
|
-
|
|
400
|
+
_chunk46LATWQRcjs.ArticleAuthorByline,
|
|
401
401
|
{
|
|
402
402
|
author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
403
403
|
avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -410,7 +410,7 @@ function OnboardingGuideDetailView({
|
|
|
410
410
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelatedGuides, { section: view.section, related, renderCard: renderRelatedCardFn }),
|
|
411
411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: relatedContent }, "related-content")
|
|
412
412
|
] });
|
|
413
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
413
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/components/onboarding-guides/hooks/use-onboarding-guides.ts
|
|
@@ -12,13 +12,13 @@ var _chunkAPOMNC7Hcjs = require('./chunk-APOMNC7H.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk5L3UKDC6cjs = require('./chunk-5L3UKDC6.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkYJZ7R3W5cjs = require('./chunk-YJZ7R3W5.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunk4WI2CEC2cjs = require('./chunk-4WI2CEC2.cjs');
|
|
@@ -73,7 +73,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
73
73
|
var _chunkGRHF5SWLcjs = require('./chunk-GRHF5SWL.cjs');
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkJBTH3O2Ccjs = require('./chunk-JBTH3O2C.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
var _chunkLC65AC6Mcjs = require('./chunk-LC65AC6M.cjs');
|
|
@@ -146,9 +146,9 @@ function TouchFriendlyTooltip({ content, side = "left", children }) {
|
|
|
146
146
|
return next;
|
|
147
147
|
});
|
|
148
148
|
};
|
|
149
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
149
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 150, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { open, onOpenChange: setOpen, children: [
|
|
150
150
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
151
|
-
|
|
151
|
+
_chunkYJZ7R3W5cjs.TooltipTrigger,
|
|
152
152
|
{
|
|
153
153
|
asChild: true,
|
|
154
154
|
onPointerDown: (e) => {
|
|
@@ -166,7 +166,7 @@ function TouchFriendlyTooltip({ content, side = "left", children }) {
|
|
|
166
166
|
children
|
|
167
167
|
}
|
|
168
168
|
),
|
|
169
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side, className: "max-w-xs", children: content })
|
|
170
170
|
] }) });
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -181,7 +181,7 @@ function BoardColumnHeader({
|
|
|
181
181
|
}) {
|
|
182
182
|
const count = _nullishCoalesce(column.total, () => ( column.tickets.length));
|
|
183
183
|
const tagStatus = _nullishCoalesce(column.statusKey, () => ( column.id));
|
|
184
|
-
const useStatusVariant =
|
|
184
|
+
const useStatusVariant = _chunk5L3UKDC6cjs.resolveTicketStatus.call(void 0, tagStatus) !== null;
|
|
185
185
|
const actionClass = "h-8 w-8 p-0 content-md:h-8 content-md:w-8";
|
|
186
186
|
if (collapsed) {
|
|
187
187
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
@@ -197,7 +197,7 @@ function BoardColumnHeader({
|
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
200
|
-
|
|
200
|
+
_chunk5L3UKDC6cjs.TicketStatusTag,
|
|
201
201
|
{
|
|
202
202
|
status: tagStatus,
|
|
203
203
|
label: column.label,
|
|
@@ -210,7 +210,7 @@ function BoardColumnHeader({
|
|
|
210
210
|
}
|
|
211
211
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
212
212
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
213
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
213
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.TicketStatusTag, { status: tagStatus, label: column.label, color: useStatusVariant ? void 0 : column.color }),
|
|
214
214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h5", style: useStatusVariant ? void 0 : { color: column.color }, children: count })
|
|
215
215
|
] }),
|
|
216
216
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
@@ -268,7 +268,7 @@ function tintOnDark(hex) {
|
|
|
268
268
|
|
|
269
269
|
function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
270
270
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
271
|
-
const { innerRef, containerStyle } =
|
|
271
|
+
const { innerRef, containerStyle } = _chunk5L3UKDC6cjs.useCollapsible.call(void 0, { expanded });
|
|
272
272
|
const isAdmin = pendingApproval.approvalType === "ADMIN";
|
|
273
273
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex flex-col", children: [
|
|
274
274
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", type: "button", onClick: () => setExpanded((v) => !v), "aria-expanded": expanded, children: [
|
|
@@ -288,7 +288,7 @@ function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
|
288
288
|
expanded ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3MRRIHC2cjs.Chevron02UpIcon, { className: "size-4 shrink-0 text-ods-text-secondary" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, { className: "size-4 shrink-0 text-ods-text-secondary" })
|
|
289
289
|
] }),
|
|
290
290
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: "pt-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
291
|
-
|
|
291
|
+
_chunk5L3UKDC6cjs.ApprovalBatchMessage,
|
|
292
292
|
{
|
|
293
293
|
className: "mb-0",
|
|
294
294
|
data: {
|
|
@@ -463,7 +463,7 @@ function TicketCardBody({
|
|
|
463
463
|
onLinkClick
|
|
464
464
|
}) {
|
|
465
465
|
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
466
|
-
const newMessageTextColor = columnColor ?
|
|
466
|
+
const newMessageTextColor = columnColor ? _chunkJBTH3O2Ccjs.getReadableTextColor.call(void 0, columnColor) : void 0;
|
|
467
467
|
const showDeviceRow = !!(_optionalChain([ticket, 'access', _11 => _11.deviceHostnames, 'optionalAccess', _12 => _12.length]) || ticket.organizationName);
|
|
468
468
|
const deviceText = [_optionalChain([ticket, 'access', _13 => _13.deviceHostnames, 'optionalAccess', _14 => _14.join, 'call', _15 => _15(", ")]), ticket.organizationName].filter(Boolean).join(", ");
|
|
469
469
|
const hasRightSection = !!(ticket.priority || ticket.agent || _optionalChain([ticket, 'access', _16 => _16.assignees, 'optionalAccess', _17 => _17.length]) || renderAssignSlot);
|
|
@@ -481,7 +481,7 @@ function TicketCardBody({
|
|
|
481
481
|
role: "img",
|
|
482
482
|
"aria-label": `Owned by ${ticket.agent === "fae" ? "Fae" : "Mingo"}`,
|
|
483
483
|
className: "flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full border border-ods-border bg-ods-bg",
|
|
484
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
484
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: ticket.agent, className: ticket.agent === "fae" ? "size-full" : "size-5" })
|
|
485
485
|
}
|
|
486
486
|
),
|
|
487
487
|
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _18 => _18.assignees, 'optionalAccess', _19 => _19.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
@@ -511,8 +511,8 @@ function TicketCardBody({
|
|
|
511
511
|
] })
|
|
512
512
|
] }) : null
|
|
513
513
|
] }) : null;
|
|
514
|
-
const timestampLabel = ticket.createdAt ?
|
|
515
|
-
const tooltipLabel = ticket.createdAt ?
|
|
514
|
+
const timestampLabel = ticket.createdAt ? _chunk5L3UKDC6cjs.formatTicketRelativeTime.call(void 0, ticket.createdAt) : null;
|
|
515
|
+
const tooltipLabel = ticket.createdAt ? _chunk5L3UKDC6cjs.formatTicketFullTimestamp.call(void 0, ticket.createdAt) : null;
|
|
516
516
|
const metaLabel = [ticket.ticketNumber || null, timestampLabel].filter(Boolean).join(" \u2022 ");
|
|
517
517
|
const meta = href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
518
518
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -538,9 +538,9 @@ function TicketCardBody({
|
|
|
538
538
|
rightSection
|
|
539
539
|
] }),
|
|
540
540
|
_optionalChain([ticket, 'access', _20 => _20.tags, 'optionalAccess', _21 => _21.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
|
|
541
|
-
metaLabel && (tooltipLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
542
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
543
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
541
|
+
metaLabel && (tooltipLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
542
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: meta }),
|
|
543
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { children: tooltipLabel })
|
|
544
544
|
] }) }) : meta),
|
|
545
545
|
ticket.escalatedByUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xxs)] text-ods-open-yellow text-h6", children: [
|
|
546
546
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4MGDY2AAcjs.UserCheckIcon, { className: "size-4 shrink-0" }),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJBTH3O2Ccjs = require('./chunk-JBTH3O2C.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -19,13 +19,13 @@ var _chunkUSUVHAQ7cjs = require('./chunk-USUVHAQ7.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkAPNONOHYcjs = require('./chunk-APNONOHY.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkJQCQCE6Ucjs = require('./chunk-JQCQCE6U.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -156,7 +156,7 @@ var PosterBox = _react.forwardRef.call(void 0, function PosterBoxView({ poster,
|
|
|
156
156
|
src: poster,
|
|
157
157
|
alt: "",
|
|
158
158
|
fill: true,
|
|
159
|
-
sizes:
|
|
159
|
+
sizes: _chunkJQCQCE6Ucjs.IMAGE_SLOT.full,
|
|
160
160
|
priority,
|
|
161
161
|
unoptimized: true,
|
|
162
162
|
className: "object-cover"
|
|
@@ -528,7 +528,7 @@ function VideoHoverPreviewSurface({
|
|
|
528
528
|
isClone = false,
|
|
529
529
|
badge = "play",
|
|
530
530
|
fit,
|
|
531
|
-
posterSizes =
|
|
531
|
+
posterSizes = _chunkJQCQCE6Ucjs.fixedImageSlot.call(void 0, "cover"),
|
|
532
532
|
posterInView = false,
|
|
533
533
|
preload,
|
|
534
534
|
hideMutedBadge,
|
|
@@ -612,10 +612,10 @@ function VideoHoverPreviewSurface({
|
|
|
612
612
|
|
|
613
613
|
function EntityIcon({
|
|
614
614
|
icon,
|
|
615
|
-
size =
|
|
615
|
+
size = _chunkJQCQCE6Ucjs.IMAGE_FIXED_PX.glyph,
|
|
616
616
|
className
|
|
617
617
|
}) {
|
|
618
|
-
const identity =
|
|
618
|
+
const identity = _chunkJBTH3O2Ccjs.useAgentIdentityIcon.call(void 0, _optionalChain([icon, 'optionalAccess', _19 => _19.url]) ? null : _optionalChain([icon, 'optionalAccess', _20 => _20.name]));
|
|
619
619
|
const held = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
620
620
|
if (held) {
|
|
621
621
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -636,7 +636,7 @@ function EntityIcon({
|
|
|
636
636
|
alt: "",
|
|
637
637
|
width: size,
|
|
638
638
|
height: size,
|
|
639
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
639
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkJBTH3O2Ccjs.AGENT_PICTURE_CLASS, className),
|
|
640
640
|
unoptimized: true
|
|
641
641
|
}
|
|
642
642
|
);
|
|
@@ -655,8 +655,8 @@ function EntityIcon({
|
|
|
655
655
|
}
|
|
656
656
|
);
|
|
657
657
|
}
|
|
658
|
-
const Glyph =
|
|
659
|
-
const agentColor = identity ? { color:
|
|
658
|
+
const Glyph = _chunkJQCQCE6Ucjs.resolveIcon.call(void 0, _nullishCoalesce(_nullishCoalesce(_optionalChain([identity, 'optionalAccess', _24 => _24.name]), () => ( _optionalChain([icon, 'optionalAccess', _25 => _25.name]))), () => ( void 0)));
|
|
659
|
+
const agentColor = identity ? { color: _chunkJBTH3O2Ccjs.AGENT_GLYPH_COLOR } : {};
|
|
660
660
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Glyph, { size, className, ...agentColor, ..._nullishCoalesce(_optionalChain([identity, 'optionalAccess', _26 => _26.props]), () => ( {})), ..._nullishCoalesce(_optionalChain([icon, 'optionalAccess', _27 => _27.props]), () => ( {})) });
|
|
661
661
|
}
|
|
662
662
|
|
|
@@ -966,7 +966,7 @@ function EntityPortraitCard({
|
|
|
966
966
|
setMeasured({ src, isWide: img.naturalWidth / img.naturalHeight >= MIN_WIDE_RATIO });
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
|
-
const edgeColor =
|
|
969
|
+
const edgeColor = _chunkAPNONOHYcjs.useImageEdgeColor.call(void 0, isWide === false ? src : null, "var(--color-bg-surface)");
|
|
970
970
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityPortraitCardSkeleton, { typeLabel, className });
|
|
971
971
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target, rel, className: _chunk63A4GZMBcjs.cn.call(void 0, "block h-full", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk63A4GZMBcjs.cn.call(void 0, CONTENT_CARD_FRAME_CLASS, PORTRAIT_BODY), children: [
|
|
972
972
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -980,7 +980,7 @@ function EntityPortraitCard({
|
|
|
980
980
|
src,
|
|
981
981
|
alt: imageAlt,
|
|
982
982
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "h-full w-full", isWide === false ? "object-contain" : "object-cover"),
|
|
983
|
-
sizes:
|
|
983
|
+
sizes: _chunkJQCQCE6Ucjs.IMAGE_SLOT.panel,
|
|
984
984
|
fill: true,
|
|
985
985
|
priority,
|
|
986
986
|
unoptimized: true,
|
|
@@ -1076,11 +1076,11 @@ function useEntityCardLink({ href, targetPlatform, target, rel }) {
|
|
|
1076
1076
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
1077
1077
|
return _react.useMemo.call(void 0, () => {
|
|
1078
1078
|
if (target !== void 0 || rel !== void 0) {
|
|
1079
|
-
const safeRel = _nullishCoalesce(rel, () => ( (target === "_blank" ?
|
|
1079
|
+
const safeRel = _nullishCoalesce(rel, () => ( (target === "_blank" ? _chunkAPNONOHYcjs.newTabRel.call(void 0, href, targetPlatform) : void 0)));
|
|
1080
1080
|
return { target, rel: safeRel };
|
|
1081
1081
|
}
|
|
1082
|
-
const resolved =
|
|
1083
|
-
const attrs =
|
|
1082
|
+
const resolved = _chunkAPNONOHYcjs.navLinkTarget.call(void 0, runtime, href, targetPlatform);
|
|
1083
|
+
const attrs = _chunkAPNONOHYcjs.newTabAnchorAttrs.call(void 0, resolved.isNewTab, resolved.href, targetPlatform);
|
|
1084
1084
|
return { target: attrs.target, rel: attrs.rel };
|
|
1085
1085
|
}, [target, rel, href, targetPlatform, runtime]);
|
|
1086
1086
|
}
|
|
@@ -1092,7 +1092,7 @@ function useEntityCardPlaceholder({
|
|
|
1092
1092
|
siteName = "",
|
|
1093
1093
|
aspect = "wide"
|
|
1094
1094
|
}) {
|
|
1095
|
-
const derived =
|
|
1095
|
+
const derived = _chunkAPNONOHYcjs.useOgPlaceholderUrl.call(void 0, { title, siteName, aspect });
|
|
1096
1096
|
return placeholderUrl !== void 0 ? placeholderUrl : derived;
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
@@ -1267,7 +1267,7 @@ function LoadedCaseStudyCard({
|
|
|
1267
1267
|
alt: `${_optionalChain([study, 'access', _46 => _46.msp, 'optionalAccess', _47 => _47.name]) || study.title} cover`,
|
|
1268
1268
|
className: "object-contain",
|
|
1269
1269
|
fill: true,
|
|
1270
|
-
sizes:
|
|
1270
|
+
sizes: _chunkJQCQCE6Ucjs.fixedImageSlot.call(void 0, "tile"),
|
|
1271
1271
|
unoptimized: true,
|
|
1272
1272
|
onError: hideOnError
|
|
1273
1273
|
}
|
|
@@ -1309,7 +1309,7 @@ function LoadedCaseStudyCard({
|
|
|
1309
1309
|
active: hovered,
|
|
1310
1310
|
playerMounted: mediaMounted,
|
|
1311
1311
|
fit: "cover",
|
|
1312
|
-
posterSizes:
|
|
1312
|
+
posterSizes: _chunkJQCQCE6Ucjs.IMAGE_SLOT.panel
|
|
1313
1313
|
}
|
|
1314
1314
|
)
|
|
1315
1315
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -1320,7 +1320,7 @@ function LoadedCaseStudyCard({
|
|
|
1320
1320
|
alt: "",
|
|
1321
1321
|
className: "object-cover",
|
|
1322
1322
|
fill: true,
|
|
1323
|
-
sizes:
|
|
1323
|
+
sizes: _chunkJQCQCE6Ucjs.IMAGE_SLOT.panel,
|
|
1324
1324
|
unoptimized: true,
|
|
1325
1325
|
onError: hideOnError
|
|
1326
1326
|
}
|
|
@@ -1389,7 +1389,7 @@ function LoadedCaseStudyCard({
|
|
|
1389
1389
|
src: coverImage,
|
|
1390
1390
|
alt: _optionalChain([study, 'access', _68 => _68.msp, 'optionalAccess', _69 => _69.name]) || study.title,
|
|
1391
1391
|
className: "h-full w-full object-cover",
|
|
1392
|
-
sizes:
|
|
1392
|
+
sizes: _chunkJQCQCE6Ucjs.IMAGE_SLOT.card,
|
|
1393
1393
|
fill: true,
|
|
1394
1394
|
unoptimized: true,
|
|
1395
1395
|
onError: hideOnError
|