@flamingo-stack/openframe-frontend-core 0.0.767 → 0.0.769
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-REJMFXGD.cjs → chunk-2MND64QJ.cjs} +46 -46
- package/dist/{chunk-BXMDLQUA.cjs → chunk-2TS3FEPQ.cjs} +4 -4
- package/dist/{chunk-KHISVNNH.cjs → chunk-3AZZFTT6.cjs} +6 -6
- package/dist/{chunk-DGNBXZXT.cjs → chunk-4EJU462O.cjs} +57 -30
- package/dist/{chunk-GJ5DHDFQ.cjs → chunk-5HWBW7WU.cjs} +12 -12
- package/dist/{chunk-IKXUJUXC.cjs → chunk-5O6PHVKO.cjs} +4 -4
- package/dist/{chunk-XZ6DKGT4.cjs → chunk-5QP3K2CE.cjs} +5 -5
- package/dist/{chunk-NO2DEFAP.cjs → chunk-BIHMMGRP.cjs} +80 -80
- package/dist/{chunk-YRFWOJF4.cjs → chunk-BLTNKLAX.cjs} +4 -4
- package/dist/{chunk-I7A5MPXA.cjs → chunk-D45Q3WEP.cjs} +3 -3
- package/dist/{chunk-WEPIWJGR.cjs → chunk-DEJB5WHZ.cjs} +26 -26
- package/dist/{chunk-GTONIRJU.cjs → chunk-EHJE3UWZ.cjs} +10 -16
- package/dist/{chunk-XIXR6BHI.cjs → chunk-EZTHTSWZ.cjs} +44 -44
- package/dist/{chunk-UHDBMKJB.cjs → chunk-GGORS7G6.cjs} +13 -13
- package/dist/{chunk-FZB4RMRK.cjs → chunk-HQF62LAU.cjs} +33 -33
- package/dist/{chunk-JTSUAHDL.cjs → chunk-HY6BCZH7.cjs} +4 -2
- package/dist/{chunk-MNIMYGFR.cjs → chunk-IEPWXEA6.cjs} +31 -31
- package/dist/{chunk-FVH53QZJ.cjs → chunk-L5WSNX4H.cjs} +517 -550
- package/dist/{chunk-MPTMT773.cjs → chunk-LJT2KRE2.cjs} +14 -14
- package/dist/{chunk-NBVZIHGS.cjs → chunk-MYA6NR2C.cjs} +2 -2
- package/dist/{chunk-ZV45VS6K.cjs → chunk-MZLWB5AH.cjs} +35 -44
- package/dist/{chunk-GQ7RGD4Y.cjs → chunk-QC47HVA4.cjs} +76 -76
- package/dist/{chunk-ZRDMGMY7.cjs → chunk-QS4G7CHU.cjs} +2 -2
- package/dist/{chunk-TPOLNGOW.cjs → chunk-SV6K7ZLA.cjs} +41 -41
- package/dist/{chunk-JBJVUQVH.cjs → chunk-UBPSA3RM.cjs} +87 -87
- package/dist/{chunk-7TJVYRHR.cjs → chunk-UIXWG2IW.cjs} +24 -24
- package/dist/{chunk-AAECWUNV.cjs → chunk-VFUMM6JC.cjs} +19 -11
- package/dist/{chunk-7ZU3AVEX.cjs → chunk-VVBRYOSI.cjs} +19 -19
- package/dist/{chunk-M2UU3CWX.cjs → chunk-YTPEJIAO.cjs} +5 -5
- package/dist/{chunk-RMUSPTJN.cjs → chunk-ZVNL5OK6.cjs} +5 -5
- package/dist/{chunk-YL6ZB2SR.cjs → chunk-ZXFOMNI5.cjs} +183 -183
- package/dist/{cloud-tenants-WXK5RDSY.cjs → cloud-tenants-3BEIT4LX.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +29 -29
- package/dist/components/case-studies/index.d.ts +1 -1
- package/dist/components/case-studies/index.d.ts.map +1 -1
- package/dist/components/case-studies/index.js +5 -1
- package/dist/components/chat/entity-cards/campaign-card-admin.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.js +9 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/contact/index.cjs +14 -14
- package/dist/components/docs/index.cjs +17 -17
- package/dist/components/embeds/index.cjs +14 -14
- package/dist/components/faq/index.cjs +15 -15
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/command-box.d.ts.map +1 -1
- package/dist/components/features/command-box.js +2 -19
- package/dist/components/features/index.cjs +13 -13
- package/dist/components/features/paths-display.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.js +1 -10
- package/dist/components/features/remote-session/remote-session-keep-modals.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-keep-modals.js +1 -1
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/icon-display.d.ts.map +1 -1
- package/dist/components/icon-display.js +9 -1
- package/dist/components/index.cjs +74 -74
- package/dist/components/interactive-wrapper.d.ts.map +1 -1
- package/dist/components/interactive-wrapper.js +7 -1
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +8 -1
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +73 -73
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/product-demo/index.cjs +24 -24
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/results-count.d.ts.map +1 -1
- package/dist/components/results-count.js +2 -2
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/avatar-stack.js +17 -9
- package/dist/components/ui/cursor-pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row-count.js +1 -1
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +16 -3
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-list.d.ts.map +1 -1
- package/dist/components/ui/feature-list.js +7 -21
- package/dist/components/ui/incident-feed.d.ts +1 -1
- package/dist/components/ui/incident-feed.d.ts.map +1 -1
- package/dist/components/ui/incident-feed.js +1 -7
- package/dist/components/ui/index.cjs +13 -13
- package/dist/components/ui/leader-row.d.ts.map +1 -1
- package/dist/components/ui/product-screen-frame.d.ts.map +1 -1
- package/dist/components/ui/product-screen-frame.js +4 -13
- package/dist/components/ui/status-badge.d.ts.map +1 -1
- package/dist/components/ui/status-badge.js +5 -1
- package/dist/components/ui/status-line.d.ts.map +1 -1
- package/dist/components/ui/status-line.js +1 -7
- package/dist/components/ui/strip-card.d.ts.map +1 -1
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/{devices-UHHHTCJF.cjs → devices-ZCOK24D4.cjs} +14 -14
- package/dist/{embeddable-chat-YL6ZSTDJ.cjs → embeddable-chat-BXEK3SPJ.cjs} +83 -83
- package/dist/index.cjs +20 -18
- package/dist/{knowledge-TJKHM7W4.cjs → knowledge-W47QGTEK.cjs} +14 -14
- package/dist/{logs-B3KCCMPE.cjs → logs-3DMPE2TM.cjs} +21 -21
- package/dist/{policies-ZTUIXSYZ.cjs → policies-UWHW765K.cjs} +17 -17
- package/dist/{remote-session-PPA5SXX7.cjs → remote-session-WVORQV7V.cjs} +7 -7
- package/dist/{scripts-FIFAHBS6.cjs → scripts-BH7V2ZC4.cjs} +20 -20
- package/dist/{software-update-62PLASQU.cjs → software-update-W6AAGJ2H.cjs} +17 -17
- package/dist/{tickets-board-G3WBH4SV.cjs → tickets-board-YT25IX3O.cjs} +8 -8
- package/dist/utils/format.d.ts +13 -3
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +4 -2
- package/dist/utils/index.cjs +3 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/package.json +1 -1
- package/src/components/case-studies/entity-quotes-panel.tsx +18 -18
- package/src/components/case-studies/index.ts +8 -1
- package/src/components/chat/entity-cards/campaign-card-admin.tsx +1 -3
- package/src/components/chat/entity-cards/investor-update-card.tsx +6 -1
- package/src/components/chat/hooks/use-ask-prompts.ts +1 -2
- package/src/components/features/cards-strip.tsx +3 -2
- package/src/components/features/command-box.tsx +2 -11
- package/src/components/features/paths-display.tsx +4 -1
- package/src/components/features/remote-session/remote-desktop-chat-message-row.tsx +1 -6
- package/src/components/features/remote-session/remote-session-keep-modals.tsx +2 -1
- package/src/components/icon-display.tsx +6 -1
- package/src/components/interactive-wrapper.tsx +4 -1
- package/src/components/layout/page-heading.tsx +15 -3
- package/src/components/meeting-scheduler/directory.tsx +2 -1
- package/src/components/results-count.tsx +3 -2
- package/src/components/ui/avatar-stack.tsx +5 -1
- package/src/components/ui/button/button-styles.ts +0 -1
- package/src/components/ui/cursor-pagination.tsx +8 -1
- package/src/components/ui/data-table/data-table-row-count.tsx +1 -1
- package/src/components/ui/date-picker.tsx +41 -14
- package/src/components/ui/feature-card.tsx +2 -10
- package/src/components/ui/feature-list.tsx +2 -8
- package/src/components/ui/incident-feed.tsx +2 -13
- package/src/components/ui/leader-row.tsx +0 -1
- package/src/components/ui/product-screen-frame.tsx +1 -6
- package/src/components/ui/status-badge.tsx +5 -1
- package/src/components/ui/status-line.tsx +1 -4
- package/src/components/ui/strip-card.tsx +1 -3
- package/src/components/ui/tag.tsx +3 -1
- package/src/utils/format.ts +16 -4
- package/src/utils/index.ts +1 -0
|
@@ -5,12 +5,12 @@ var _chunkXVFM6SJAcjs = require('./chunk-XVFM6SJA.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUBPSA3RMcjs = require('./chunk-UBPSA3RM.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZXFOMNI5cjs = require('./chunk-ZXFOMNI5.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 _chunkHQF62LAUcjs = require('./chunk-HQF62LAU.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk4EJU462Ocjs = require('./chunk-4EJU462O.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
@@ -72,7 +72,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
id:
|
|
75
|
+
id: _chunkZXFOMNI5cjs.faqItemAnchor.call(void 0, item.id),
|
|
76
76
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
77
77
|
"data-loading-item": true,
|
|
78
78
|
children: [
|
|
@@ -141,14 +141,14 @@ function FaqAccordionSkeleton({
|
|
|
141
141
|
|
|
142
142
|
var PICK_ROOT_MARGIN = "600px";
|
|
143
143
|
function faqAskCardShown(assistant) {
|
|
144
|
-
return
|
|
144
|
+
return _chunkUBPSA3RMcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
145
145
|
}
|
|
146
146
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
147
147
|
const { ref, inView } = _chunkXXJL5GY3cjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
148
148
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
149
149
|
if (inView && !reached) setReached(true);
|
|
150
150
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
151
|
-
|
|
151
|
+
_chunkUBPSA3RMcjs.AssistantAskPrompts,
|
|
152
152
|
{
|
|
153
153
|
variant: "card",
|
|
154
154
|
topic,
|
|
@@ -208,7 +208,7 @@ var CATEGORY_NAV_SKELETON_LINE_CLASS = "flex min-w-0 flex-nowrap gap-2 overflow-
|
|
|
208
208
|
var FAQ_NAV_SKELETON_PILLS = 8;
|
|
209
209
|
var CATEGORY_PILL_CLASS = "rounded-full border px-4 py-2 transition-colors text-h6";
|
|
210
210
|
var CATEGORY_SECTION_CLASS = "scroll-mt-24";
|
|
211
|
-
var CATEGORY_HEADING_CLASS = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
211
|
+
var CATEGORY_HEADING_CLASS = _chunk65VVJSQZcjs.cn.call(void 0, _chunk4EJU462Ocjs.SECTION_HEADING_CLASS, "pb-4");
|
|
212
212
|
var FAQ_SECTION_SKELETON_QUESTIONS = FAQ_ACCORDION_SKELETON_ROWS;
|
|
213
213
|
function FaqLayout({
|
|
214
214
|
heading,
|
|
@@ -234,7 +234,7 @@ function FaqLayout({
|
|
|
234
234
|
] });
|
|
235
235
|
}
|
|
236
236
|
function faqHeadingNode(heading, showTopic, topic) {
|
|
237
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
237
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk4EJU462Ocjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
238
238
|
if (!(showTopic && topic)) return titleNode;
|
|
239
239
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TOPIC_STACK_CLASS, children: [
|
|
240
240
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: titleNode }),
|
|
@@ -248,7 +248,7 @@ function pageFaqProps(faq) {
|
|
|
248
248
|
}
|
|
249
249
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
250
250
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
251
|
-
return
|
|
251
|
+
return _chunkHQF62LAUcjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
252
252
|
apiBaseUrl,
|
|
253
253
|
entityType,
|
|
254
254
|
entityId,
|
|
@@ -269,7 +269,7 @@ function groupFaqsBySection(faqs) {
|
|
|
269
269
|
}
|
|
270
270
|
let group = byName.get(name);
|
|
271
271
|
if (!group) {
|
|
272
|
-
group = { section: name, slug:
|
|
272
|
+
group = { section: name, slug: _chunkZXFOMNI5cjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
273
273
|
byName.set(name, group);
|
|
274
274
|
}
|
|
275
275
|
group.items.push(item);
|
|
@@ -325,7 +325,7 @@ function GroupedFaqList({
|
|
|
325
325
|
}, [slugKey]);
|
|
326
326
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
327
327
|
_react.useEffect.call(void 0, () => {
|
|
328
|
-
const refresh = () => setHashTarget(
|
|
328
|
+
const refresh = () => setHashTarget(_chunkZXFOMNI5cjs.parseFaqHash.call(void 0, window.location.hash));
|
|
329
329
|
refresh();
|
|
330
330
|
window.addEventListener("hashchange", refresh);
|
|
331
331
|
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 } = _chunkHQF62LAUcjs.useSelfFetch.call(void 0, inScope ? null : url, { initialData });
|
|
429
429
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _15 => _15.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]);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk4EJU462Ocjs = require('./chunk-4EJU462O.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkSETFUCZAcjs = require('./chunk-SETFUCZA.cjs');
|
|
@@ -33,7 +33,7 @@ var _chunkSETFUCZAcjs = require('./chunk-SETFUCZA.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkHY6BCZH7cjs = require('./chunk-HY6BCZH7.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
@@ -154,7 +154,7 @@ function pickBadgePaletteColor({
|
|
|
154
154
|
|
|
155
155
|
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
156
156
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
157
|
-
|
|
157
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
158
158
|
{
|
|
159
159
|
text,
|
|
160
160
|
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
@@ -242,7 +242,7 @@ var STATUS_BADGE_SCHEME = {
|
|
|
242
242
|
abandoned: "default"
|
|
243
243
|
};
|
|
244
244
|
function EmployeeEntryBadge({ children }) {
|
|
245
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
245
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
246
246
|
}
|
|
247
247
|
function EmployeeEntryCard({
|
|
248
248
|
entry,
|
|
@@ -254,9 +254,9 @@ function EmployeeEntryCard({
|
|
|
254
254
|
anchorProps,
|
|
255
255
|
className
|
|
256
256
|
}) {
|
|
257
|
-
const authorAvatar =
|
|
257
|
+
const authorAvatar = _chunk4EJU462Ocjs.useProxiedImageUrl.call(void 0, _optionalChain([entry, 'access', _7 => _7.author, 'optionalAccess', _8 => _8.avatar_url]), { directHttps: false });
|
|
258
258
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
259
|
-
|
|
259
|
+
_chunk4EJU462Ocjs.AdminContentCard,
|
|
260
260
|
{
|
|
261
261
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
262
262
|
placeholderUrl,
|
|
@@ -264,7 +264,7 @@ function EmployeeEntryCard({
|
|
|
264
264
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
265
265
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
266
266
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
267
|
-
|
|
267
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
268
268
|
{
|
|
269
269
|
text: entry.status,
|
|
270
270
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -300,7 +300,7 @@ function EmployeeEntryCard({
|
|
|
300
300
|
return anchorProps ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: "block h-full", children: card }) : card;
|
|
301
301
|
}
|
|
302
302
|
function EmployeeEntryCardSkeleton({ className, actions = false }) {
|
|
303
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
303
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.AdminContentCardSkeleton, { className, actions, subtitleRow: false });
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
// src/components/chat/entity-cards/what-i-shipped-card.tsx
|
|
@@ -310,7 +310,7 @@ function WhatIShippedCard({ entry, placeholderUrl, actions, anchorProps, classNa
|
|
|
310
310
|
EmployeeEntryCard,
|
|
311
311
|
{
|
|
312
312
|
entry,
|
|
313
|
-
dateLabel:
|
|
313
|
+
dateLabel: _chunkHY6BCZH7cjs.formatEntryMonthUTC.call(void 0, entry.entry_month, "short"),
|
|
314
314
|
placeholderUrl,
|
|
315
315
|
actions,
|
|
316
316
|
anchorProps,
|
|
@@ -330,7 +330,7 @@ function HowIWorkCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
330
330
|
EmployeeEntryCard,
|
|
331
331
|
{
|
|
332
332
|
entry,
|
|
333
|
-
dateLabel: entry.session_date ?
|
|
333
|
+
dateLabel: entry.session_date ? _chunkHY6BCZH7cjs.formatDateUTC.call(void 0, entry.session_date, { fallback: "" }) || null : null,
|
|
334
334
|
extraBadges: entry.discipline ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: disciplineLabel(entry.discipline) }) : null,
|
|
335
335
|
untitledLabel: "Untitled session",
|
|
336
336
|
placeholderUrl,
|
|
@@ -351,7 +351,7 @@ function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
351
351
|
EmployeeEntryCard,
|
|
352
352
|
{
|
|
353
353
|
entry,
|
|
354
|
-
dateLabel: entry.published_at ?
|
|
354
|
+
dateLabel: entry.published_at ? _chunkHY6BCZH7cjs.formatDateUTC.call(void 0, entry.published_at, { fallback: "" }) || null : null,
|
|
355
355
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
356
356
|
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access', _15 => _15.department, 'optionalAccess', _16 => _16.color]), () => ( null)) } }) : null,
|
|
357
357
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
@@ -388,40 +388,40 @@ function ProductReleaseCard({
|
|
|
388
388
|
changelogCounts,
|
|
389
389
|
loading = false
|
|
390
390
|
}) {
|
|
391
|
-
if (_chunkXFRBEXQNcjs.useLoadingScope.call(void 0, ) || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
391
|
+
if (_chunkXFRBEXQNcjs.useLoadingScope.call(void 0, ) || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.ProductReleaseCardSkeleton, { size, className });
|
|
392
392
|
if (size === "lg") {
|
|
393
393
|
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _17 => _17.features]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _18 => _18.fixes]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _19 => _19.improvements]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _20 => _20.breaking]), () => ( 0)));
|
|
394
394
|
const valueCells = [
|
|
395
395
|
releaseType && releaseTypeBadgeColor ? {
|
|
396
396
|
value: releaseType.toUpperCase(),
|
|
397
|
-
label:
|
|
397
|
+
label: _chunk4EJU462Ocjs.RELEASE_CARD_CELL_LABELS[0],
|
|
398
398
|
uppercase: true,
|
|
399
399
|
colorScheme: releaseTypeBadgeColor
|
|
400
|
-
} : { value: "\u2014", label:
|
|
400
|
+
} : { value: "\u2014", label: _chunk4EJU462Ocjs.RELEASE_CARD_CELL_LABELS[0], uppercase: false },
|
|
401
401
|
releaseStatus ? {
|
|
402
402
|
value: releaseStatus.toUpperCase(),
|
|
403
|
-
label:
|
|
403
|
+
label: _chunk4EJU462Ocjs.RELEASE_CARD_CELL_LABELS[1],
|
|
404
404
|
uppercase: true
|
|
405
|
-
} : { value: "\u2014", label:
|
|
405
|
+
} : { value: "\u2014", label: _chunk4EJU462Ocjs.RELEASE_CARD_CELL_LABELS[1], uppercase: false },
|
|
406
406
|
formattedDate ? {
|
|
407
407
|
value: formattedDate,
|
|
408
|
-
label:
|
|
408
|
+
label: _chunk4EJU462Ocjs.RELEASE_CARD_CELL_LABELS[2],
|
|
409
409
|
uppercase: false
|
|
410
|
-
} : { value: "\u2014", label:
|
|
410
|
+
} : { value: "\u2014", label: _chunk4EJU462Ocjs.RELEASE_CARD_CELL_LABELS[2], uppercase: false }
|
|
411
411
|
];
|
|
412
412
|
const effectiveAuthor = _optionalChain([author, 'optionalAccess', _21 => _21.full_name]) ? author : { full_name: "\u2014", avatar_url: null, job_title: "Unknown" };
|
|
413
|
-
const dividerClass =
|
|
413
|
+
const dividerClass = _chunk4EJU462Ocjs.RELEASE_CARD_CELL_DIVIDER_CLASS;
|
|
414
414
|
const interactive = !!anchorProps || !!onClick;
|
|
415
415
|
const frameClass = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
416
|
-
interactive ?
|
|
417
|
-
|
|
416
|
+
interactive ? _chunk4EJU462Ocjs.CONTENT_CARD_FRAME_CLASS : _chunk4EJU462Ocjs.CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
417
|
+
_chunk4EJU462Ocjs.RELEASE_CARD_LG_FRAME_CLASS,
|
|
418
418
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent focus-visible:ring-offset-2 focus-visible:ring-offset-ods-bg",
|
|
419
419
|
"no-underline",
|
|
420
420
|
className
|
|
421
421
|
);
|
|
422
422
|
const innerLayout = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
423
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
424
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
423
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk4EJU462Ocjs.RELEASE_CARD_HERO_CLASS, children: [
|
|
424
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk4EJU462Ocjs.RELEASE_CARD_COVER_COLUMN_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, _chunk4EJU462Ocjs.RELEASE_CARD_COVER_BOX_CLASS, "bg-ods-bg"), children: [
|
|
425
425
|
coverImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
426
426
|
_chunkE76ONBKFcjs.next_image_default,
|
|
427
427
|
{
|
|
@@ -435,16 +435,16 @@ function ProductReleaseCard({
|
|
|
435
435
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute inset-0 flex items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Package, { className: "h-8 w-8" }) }),
|
|
436
436
|
hasVideoCover && coverImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSETFUCZAcjs.CardHoverPlay, { size: "md" })
|
|
437
437
|
] }) }),
|
|
438
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
439
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
438
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk4EJU462Ocjs.RELEASE_CARD_TEXT_COLUMN_CLASS, children: [
|
|
439
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk4EJU462Ocjs.RELEASE_CARD_VERSION_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk4EJU462Ocjs.RELEASE_CARD_VERSION_CLASS, children: [
|
|
440
440
|
"v",
|
|
441
441
|
version
|
|
442
442
|
] }) }),
|
|
443
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
444
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
443
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk4EJU462Ocjs.RELEASE_CARD_TITLE_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: _chunk4EJU462Ocjs.RELEASE_CARD_TITLE_CLASS, children: title }) }),
|
|
444
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk4EJU462Ocjs.RELEASE_CARD_SUMMARY_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk4EJU462Ocjs.RELEASE_CARD_SUMMARY_CLASS, children: _nullishCoalesce(summary, () => ( "")) }) })
|
|
445
445
|
] })
|
|
446
446
|
] }),
|
|
447
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
447
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk4EJU462Ocjs.RELEASE_CARD_CHANGELOG_CLASS, children: totalChangelog > 0 && changelogCounts ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
448
448
|
changelogCounts.features > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-loading-item": true, className: "inline-flex items-center gap-1.5", children: [
|
|
449
449
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Sparkles, { className: "h-3.5 w-3.5" }),
|
|
450
450
|
changelogCounts.features,
|
|
@@ -469,10 +469,10 @@ function ProductReleaseCard({
|
|
|
469
469
|
" breaking"
|
|
470
470
|
] })
|
|
471
471
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "data-loading-item": true, className: "text-ods-text-secondary", children: "No changelog entries yet" }) }),
|
|
472
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
473
|
-
valueCells.map((cell, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
472
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk4EJU462Ocjs.RELEASE_CARD_GRID_CLASS, children: [
|
|
473
|
+
valueCells.map((cell, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, _chunk4EJU462Ocjs.RELEASE_CARD_CELL_CLASS, dividerClass), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk4EJU462Ocjs.RELEASE_CARD_CELL_STACK_CLASS, children: [
|
|
474
474
|
cell.colorScheme ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
475
|
-
|
|
475
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
476
476
|
{
|
|
477
477
|
text: cell.value,
|
|
478
478
|
variant: "card",
|
|
@@ -492,11 +492,11 @@ function ProductReleaseCard({
|
|
|
492
492
|
children: cell.uppercase ? cell.value.toLocaleUpperCase() : cell.value
|
|
493
493
|
}
|
|
494
494
|
),
|
|
495
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
495
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk4EJU462Ocjs.RELEASE_CARD_CELL_LABEL_CLASS, children: cell.label })
|
|
496
496
|
] }) }, `${cell.label}-${i}`)),
|
|
497
497
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 p-4", children: [
|
|
498
498
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
499
|
-
|
|
499
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
500
500
|
{
|
|
501
501
|
src: _nullishCoalesce(effectiveAuthor.avatar_url, () => ( void 0)),
|
|
502
502
|
alt: effectiveAuthor.full_name,
|
|
@@ -588,11 +588,12 @@ function toValidDate(date) {
|
|
|
588
588
|
const d = date instanceof Date ? date : new Date(date);
|
|
589
589
|
return Number.isNaN(d.getTime()) ? null : d;
|
|
590
590
|
}
|
|
591
|
+
var viewerLocale = () => typeof navigator === "undefined" ? void 0 : navigator.language || void 0;
|
|
591
592
|
function formatDateWithTimezone(date, timezone, style = "medium", options) {
|
|
592
593
|
const dateObj = toValidDate(date);
|
|
593
594
|
if (!dateObj) return "";
|
|
594
595
|
const { timeZone: _ignored, ...fields } = typeof style === "string" ? ZONED_DATE_STYLES[style] : style;
|
|
595
|
-
return formatterFor(timezone, fields, _optionalChain([options, 'optionalAccess', _3 => _3.viewerLocale]) ?
|
|
596
|
+
return formatterFor(timezone, fields, _optionalChain([options, 'optionalAccess', _3 => _3.viewerLocale]) ? viewerLocale() : "en-US").format(dateObj);
|
|
596
597
|
}
|
|
597
598
|
function formatDateTimeYmd(date, timezone, options) {
|
|
598
599
|
const dateObj = toValidDate(date);
|
|
@@ -1004,4 +1005,5 @@ function SquareAvatarSkeleton({
|
|
|
1004
1005
|
|
|
1005
1006
|
|
|
1006
1007
|
|
|
1007
|
-
|
|
1008
|
+
|
|
1009
|
+
exports.FloatingTooltip = FloatingTooltip; exports.TAG_SIZE_CLASS = TAG_SIZE_CLASS; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.TagSkeleton = TagSkeleton; exports.VENDOR_CLASSIFICATION_COPY = VENDOR_CLASSIFICATION_COPY; exports.vendorClassificationCopy = vendorClassificationCopy; exports.vendorClassificationGroup = vendorClassificationGroup; exports.isOpenFrameClassification = isOpenFrameClassification; exports.compareVendorClassifications = compareVendorClassifications; exports.formatDate = formatDate; exports.formatNumber = formatNumber; exports.formatPrice = formatPrice; exports.formatBytes = formatBytes; exports.formatBytesShort = formatBytesShort; exports.formatFileSize = formatFileSize; exports.formatLargeNumber = formatLargeNumber; exports.formatAbbreviatedNumber = formatAbbreviatedNumber; exports.nameInitials = nameInitials; exports.personInitials = personInitials; exports.personFirstName = personFirstName; exports.singleInitial = singleInitial; exports.formatDurationMMSS = formatDurationMMSS; exports.formatDurationCompact = formatDurationCompact; exports.VIEWER_TIMEZONE = VIEWER_TIMEZONE; exports.viewerLocale = viewerLocale; exports.formatDateWithTimezone = formatDateWithTimezone; exports.formatDateTimeYmd = formatDateTimeYmd; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatProgramDate = formatProgramDate; exports.formatProgramDateRange = formatProgramDateRange; exports.isOrderedRange = isOrderedRange; exports.formatDurationFromRange = formatDurationFromRange; exports.formatDateUTC = formatDateUTC; exports.formatEntryMonthUTC = formatEntryMonthUTC; exports.formatLegalDate = formatLegalDate; exports.formatCurrency = formatCurrency; exports.formatPercent = formatPercent; exports.formatWholeDollars = formatWholeDollars; exports.formatCompactMetric = formatCompactMetric; exports.getTrendColors = getTrendColors; exports.formatDateRange = formatDateRange; exports.formatDateTimeAt = formatDateTimeAt; exports.formatDurationFromMs = formatDurationFromMs; exports.formatDuration = formatDuration; exports.titleCaseFromSlug = titleCaseFromSlug; exports.formatUnderscoreText = formatUnderscoreText; exports.stripHtml = stripHtml; exports.formatClassification = formatClassification; exports.formatPricingModel = formatPricingModel; exports.formatBioText = formatBioText; exports.formatProgramTimeRange = formatProgramTimeRange; exports.formatWebinarTimeMeta = formatWebinarTimeMeta; exports.formatUrlForDisplay = formatUrlForDisplay; exports.SquareAvatar = SquareAvatar; exports.SquareAvatarSkeleton = SquareAvatarSkeleton;
|
|
@@ -1,29 +1,29 @@
|
|
|
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 _chunkZVNL5OK6cjs = require('./chunk-ZVNL5OK6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5HWBW7WUcjs = require('./chunk-5HWBW7WU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkL5WSNX4Hcjs = require('./chunk-L5WSNX4H.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkMZLWB5AHcjs = require('./chunk-MZLWB5AH.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkUBPSA3RMcjs = require('./chunk-UBPSA3RM.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkZXFOMNI5cjs = require('./chunk-ZXFOMNI5.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkRNLRS4IDcjs = require('./chunk-RNLRS4ID.cjs');
|
|
@@ -33,13 +33,13 @@ var _chunkRNLRS4IDcjs = require('./chunk-RNLRS4ID.cjs');
|
|
|
33
33
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkHQF62LAUcjs = require('./chunk-HQF62LAU.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunk4EJU462Ocjs = require('./chunk-4EJU462O.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunk3LW5TD54cjs = require('./chunk-3LW5TD54.cjs');
|
|
@@ -80,7 +80,7 @@ function OnboardingCatalogSectionsSkeleton() {
|
|
|
80
80
|
] }),
|
|
81
81
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: Array.from({ length: ONBOARDING_CATALOG_CARD_FOLD }, (_, i) => (
|
|
82
82
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
83
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
83
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, i)
|
|
84
84
|
)) })
|
|
85
85
|
] }) });
|
|
86
86
|
}
|
|
@@ -105,10 +105,10 @@ function OnboardingGuidesCatalogView({
|
|
|
105
105
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
106
106
|
const activeSection = sectionValue || "all";
|
|
107
107
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
108
|
-
const guidesRes =
|
|
108
|
+
const guidesRes = _chunkHQF62LAUcjs.useSelfFetch.call(void 0,
|
|
109
109
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
110
110
|
);
|
|
111
|
-
const sectionsRes =
|
|
111
|
+
const sectionsRes = _chunkHQF62LAUcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
112
112
|
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])]);
|
|
113
113
|
const sections = _react.useMemo.call(void 0,
|
|
114
114
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -152,25 +152,25 @@ function OnboardingGuidesCatalogView({
|
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
155
|
-
const docSearch =
|
|
155
|
+
const docSearch = _chunk5HWBW7WUcjs.useDocSearch.call(void 0, {
|
|
156
156
|
source,
|
|
157
157
|
baseRoute: basePath,
|
|
158
158
|
onNavigate: (path) => router.push(path),
|
|
159
159
|
tableIds: ["onboarding-guides"]
|
|
160
160
|
});
|
|
161
161
|
const defaultRenderCard = (guide) => {
|
|
162
|
-
const cta =
|
|
162
|
+
const cta = _chunkUBPSA3RMcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
163
163
|
type: "onboarding_guide",
|
|
164
164
|
slug: guide.slug,
|
|
165
165
|
basePath,
|
|
166
166
|
platforms: guide.onboarding_guide_platforms
|
|
167
167
|
});
|
|
168
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
168
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
169
169
|
};
|
|
170
170
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
171
171
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
172
172
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
173
|
-
|
|
173
|
+
_chunk5HWBW7WUcjs.DocSearchBar,
|
|
174
174
|
{
|
|
175
175
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
176
176
|
query: docSearch.query,
|
|
@@ -182,7 +182,7 @@ function OnboardingGuidesCatalogView({
|
|
|
182
182
|
}
|
|
183
183
|
),
|
|
184
184
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
185
|
-
|
|
185
|
+
_chunkL5WSNX4Hcjs.FilterPillRow,
|
|
186
186
|
{
|
|
187
187
|
label: "Section",
|
|
188
188
|
selectedValue: activeSection,
|
|
@@ -193,7 +193,7 @@ function OnboardingGuidesCatalogView({
|
|
|
193
193
|
)
|
|
194
194
|
] });
|
|
195
195
|
if (!loading && selfFetch && guidesRes.error) {
|
|
196
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5WSNX4Hcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
197
197
|
}
|
|
198
198
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
199
199
|
preControls,
|
|
@@ -313,7 +313,7 @@ function OnboardingGuideDetailView({
|
|
|
313
313
|
slug,
|
|
314
314
|
guideEndpoint,
|
|
315
315
|
related = [],
|
|
316
|
-
MarkdownRenderer =
|
|
316
|
+
MarkdownRenderer = _chunkL5WSNX4Hcjs.RichMarkdownRenderer,
|
|
317
317
|
renderRelatedCard,
|
|
318
318
|
backHref,
|
|
319
319
|
backLabel = "Back to Getting Started",
|
|
@@ -323,9 +323,9 @@ function OnboardingGuideDetailView({
|
|
|
323
323
|
}) {
|
|
324
324
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
325
325
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
326
|
-
const captions =
|
|
326
|
+
const captions = _chunkZXFOMNI5cjs.useCaptions.call(void 0, );
|
|
327
327
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
328
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
328
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5WSNX4Hcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
329
329
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
330
330
|
const scoped = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
331
331
|
const {
|
|
@@ -333,7 +333,7 @@ function OnboardingGuideDetailView({
|
|
|
333
333
|
isLoading,
|
|
334
334
|
error,
|
|
335
335
|
reload
|
|
336
|
-
} =
|
|
336
|
+
} = _chunkHQF62LAUcjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
337
337
|
initialData
|
|
338
338
|
});
|
|
339
339
|
const { ref: videoWarmupRef } = _chunkRNLRS4IDcjs.useVideoWarmup.call(void 0, {
|
|
@@ -343,7 +343,7 @@ function OnboardingGuideDetailView({
|
|
|
343
343
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
344
344
|
const loading = scoped || !guide && isLoading;
|
|
345
345
|
if (!loading && (error || !guide)) {
|
|
346
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
346
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5WSNX4Hcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
347
347
|
}
|
|
348
348
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
349
349
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -351,19 +351,19 @@ function OnboardingGuideDetailView({
|
|
|
351
351
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
352
352
|
_chunk3LW5TD54cjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
353
353
|
const defaultRenderRelatedCard = (g) => {
|
|
354
|
-
const cta =
|
|
354
|
+
const cta = _chunkUBPSA3RMcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
355
355
|
type: "onboarding_guide",
|
|
356
356
|
slug: g.slug,
|
|
357
357
|
basePath,
|
|
358
358
|
platforms: g.onboarding_guide_platforms
|
|
359
359
|
});
|
|
360
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
360
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
361
361
|
};
|
|
362
362
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
363
|
-
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
363
|
+
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMZLWB5AHcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
364
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5WSNX4Hcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
365
365
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
366
|
-
|
|
366
|
+
_chunk4EJU462Ocjs.EntityAuthorCard,
|
|
367
367
|
{
|
|
368
368
|
author: view.author,
|
|
369
369
|
authorHref,
|
|
@@ -379,7 +379,7 @@ function OnboardingGuideDetailView({
|
|
|
379
379
|
),
|
|
380
380
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
381
381
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
382
|
-
|
|
382
|
+
_chunkZXFOMNI5cjs.EntityVideoSection,
|
|
383
383
|
{
|
|
384
384
|
mainVideoUrl: view.main_video_url,
|
|
385
385
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -396,17 +396,17 @@ function OnboardingGuideDetailView({
|
|
|
396
396
|
) }),
|
|
397
397
|
(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, () => ( "")) }) }),
|
|
398
398
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
399
|
-
|
|
399
|
+
_chunkZXFOMNI5cjs.VideoBitesStrip,
|
|
400
400
|
{
|
|
401
401
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
402
402
|
filterPublished: true,
|
|
403
403
|
showTitle: false,
|
|
404
|
-
profile:
|
|
404
|
+
profile: _chunk4EJU462Ocjs.toStripProfile.call(void 0, view.author),
|
|
405
405
|
href: `/onboarding-guides/${view.slug}`
|
|
406
406
|
}
|
|
407
407
|
) }),
|
|
408
408
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
409
|
-
|
|
409
|
+
_chunkZVNL5OK6cjs.ArticleAuthorByline,
|
|
410
410
|
{
|
|
411
411
|
author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
412
412
|
avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|