@flamingo-stack/openframe-frontend-core 0.0.851 → 0.0.853
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-X2HKPKT7.cjs → case-study-card-WP5Z234Q.cjs} +5 -5
- package/dist/{chunk-BU2PSRAS.cjs → chunk-2W22LY3W.cjs} +11 -11
- package/dist/{chunk-ODMZSAIY.cjs → chunk-53QPG7SJ.cjs} +28 -28
- package/dist/{chunk-PJNEBSP5.cjs → chunk-5RMBLOJ5.cjs} +12 -12
- package/dist/{chunk-NQEPLUUW.cjs → chunk-67CZ2Q5K.cjs} +36 -36
- package/dist/{chunk-36DUCHI7.cjs → chunk-6GWRPW6B.cjs} +4 -4
- package/dist/{chunk-VU6N3NZS.cjs → chunk-6V2M2X3M.cjs} +6 -6
- package/dist/{chunk-2WZHNMQY.cjs → chunk-7RZHSBNX.cjs} +84 -84
- package/dist/{chunk-SOSIXRQ3.cjs → chunk-AZEO7HBB.cjs} +2 -2
- package/dist/{chunk-UQK6J3ZS.cjs → chunk-BNG6JOGZ.cjs} +25 -25
- package/dist/{chunk-KRTTH3ET.cjs → chunk-BNHTBLAG.cjs} +17 -17
- package/dist/{chunk-U4RTWH5D.cjs → chunk-COJG2ATY.cjs} +19 -19
- package/dist/{chunk-ALRYVZ3E.cjs → chunk-DLTPSP5F.cjs} +2 -2
- package/dist/{chunk-OUP7L3U5.cjs → chunk-E4MFQKPC.cjs} +91 -91
- package/dist/{chunk-SPKAXETT.cjs → chunk-EF2FZ7GT.cjs} +47 -47
- package/dist/{chunk-WYROOMUZ.cjs → chunk-EIACEY2L.cjs} +2 -2
- package/dist/{chunk-TIVPOVIM.cjs → chunk-ETZFBB7O.cjs} +2 -2
- package/dist/{chunk-GRCOEICK.cjs → chunk-G7GF4PWA.cjs} +6 -6
- package/dist/chunk-GGUFVIJ6.cjs +28 -0
- package/dist/{chunk-ZEPEFKHA.cjs → chunk-GI6ECCWB.cjs} +568 -548
- package/dist/{chunk-FGSN5UNY.cjs → chunk-HF3V6WBJ.cjs} +3 -3
- package/dist/{chunk-B6D4WWKD.cjs → chunk-IC4IJJB2.cjs} +95 -95
- package/dist/{chunk-BUEEQD3G.cjs → chunk-IGVAPIEW.cjs} +2 -2
- package/dist/{chunk-IG6ROHPS.cjs → chunk-IO6NN3SL.cjs} +54 -54
- package/dist/{chunk-VXIZCUNZ.cjs → chunk-KEV6F3QN.cjs} +65 -65
- package/dist/{chunk-DN227KZH.cjs → chunk-KHOB3TES.cjs} +4 -4
- package/dist/{chunk-JQCQCE6U.cjs → chunk-KKFDRCQF.cjs} +2 -2
- package/dist/{chunk-PPCRLSVR.cjs → chunk-KNN2GCMW.cjs} +21 -21
- package/dist/{chunk-CDW6JTAQ.cjs → chunk-LFEURIZN.cjs} +245 -245
- package/dist/{chunk-533QK4R6.cjs → chunk-NMWLXHFH.cjs} +130 -130
- package/dist/{chunk-MDLT6D46.cjs → chunk-O3EKOXFZ.cjs} +20 -20
- package/dist/{chunk-HLJXCOMA.cjs → chunk-OH5TXFRR.cjs} +4 -4
- package/dist/{chunk-QCSA7GIX.cjs → chunk-P63CRPWI.cjs} +12 -12
- package/dist/{chunk-5SEJEBAB.cjs → chunk-QOW2GP3V.cjs} +21 -21
- package/dist/{chunk-JBTH3O2C.cjs → chunk-SSKMGH5O.cjs} +4 -4
- package/dist/{chunk-2NGW73T2.cjs → chunk-TBGQMHCG.cjs} +6 -6
- package/dist/{chunk-LM7EL3UQ.cjs → chunk-U767P4JU.cjs} +11 -11
- package/dist/{chunk-FNQWL4W4.cjs → chunk-UO2EJGRJ.cjs} +45 -45
- package/dist/{chunk-UFGPLXH6.cjs → chunk-USPUZO53.cjs} +2 -2
- package/dist/{chunk-IN3LA2FU.cjs → chunk-UV45EPXN.cjs} +2 -2
- package/dist/{cloud-tenants-XH6GV4EI.cjs → cloud-tenants-QUL2XPAS.cjs} +47 -46
- package/dist/components/case-studies/index.cjs +66 -65
- package/dist/components/chat/index.cjs +42 -41
- package/dist/components/contact/index.cjs +48 -47
- package/dist/components/docs/index.cjs +51 -50
- package/dist/components/embeds/index.cjs +48 -47
- package/dist/components/faq/index.cjs +49 -48
- package/dist/components/features/index.cjs +48 -47
- package/dist/components/help-center-pages/index.cjs +153 -152
- package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
- package/dist/components/icons-v2-generated/brand-logos/index.d.ts +1 -0
- package/dist/components/icons-v2-generated/brand-logos/index.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/brand-logos/index.js +2 -0
- package/dist/components/icons-v2-generated/brand-logos/stripe-icon.d.ts +8 -0
- package/dist/components/icons-v2-generated/brand-logos/stripe-icon.d.ts.map +1 -0
- package/dist/components/icons-v2-generated/brand-logos/stripe-icon.js +24 -0
- package/dist/components/icons-v2-generated/icon-loaders.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/icon-loaders.js +1 -0
- package/dist/components/icons-v2-generated/icon-names.js +1 -1
- package/dist/components/icons-v2-generated/index.cjs +33 -29
- package/dist/components/index.cjs +116 -109
- package/dist/components/meeting-scheduler/index.cjs +97 -96
- package/dist/components/navigation/index.cjs +51 -50
- package/dist/components/onboarding-guides/index.cjs +50 -49
- package/dist/components/platform/tool-badge-mark.d.ts +1 -1
- package/dist/components/product-demo/index.cjs +58 -57
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +54 -53
- package/dist/components/ui/data-attribution.d.ts +8 -3
- package/dist/components/ui/data-attribution.d.ts.map +1 -1
- package/dist/components/ui/data-attribution.js +17 -6
- package/dist/components/ui/index.cjs +54 -47
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/{devices-7PT6MPJI.cjs → devices-LNB4CYPP.cjs} +48 -47
- package/dist/{embeddable-chat-5NY76K7K.cjs → embeddable-chat-SJEEJI4N.cjs} +118 -117
- package/dist/hooks/index.cjs +9 -9
- package/dist/{icon-loaders-SUPEKMBJ.cjs → icon-loaders-CTH6E7OP.cjs} +1 -0
- package/dist/index.cjs +56 -53
- package/dist/{knowledge-J6N7IEVI.cjs → knowledge-UTWKB6XG.cjs} +49 -48
- package/dist/{logs-D6KQP2BX.cjs → logs-PMXIWMBQ.cjs} +54 -53
- package/dist/{policies-J7MCOL3C.cjs → policies-6DCMFDL7.cjs} +51 -50
- package/dist/{remote-session-PXHA5KFK.cjs → remote-session-SG44CNOK.cjs} +33 -32
- package/dist/{scripts-VURXIHVS.cjs → scripts-2G7LXW7Z.cjs} +54 -53
- package/dist/{software-update-6SHUBDIE.cjs → software-update-MYLKHDHC.cjs} +51 -50
- package/dist/stripe-icon-YKVABTNI.cjs +7 -0
- package/dist/{tickets-board-NLCN7WNX.cjs → tickets-board-SQY2Y6QV.cjs} +37 -36
- package/dist/types/data-sync.d.ts +4 -1
- package/dist/types/data-sync.d.ts.map +1 -1
- package/dist/types/data-sync.js +4 -1
- package/dist/types/index.cjs +4 -1
- package/dist/utils/index.cjs +32 -1
- package/package.json +1 -1
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/icons-v2/icon-colors.json +3 -0
- package/src/components/icons-v2-generated/brand-logos/index.ts +1 -0
- package/src/components/icons-v2-generated/brand-logos/stripe-icon.tsx +27 -0
- package/src/components/icons-v2-generated/icon-loaders.ts +1 -0
- package/src/components/icons-v2-generated/icon-names.ts +1 -1
- package/src/components/platform/tool-badge-mark.ts +1 -1
- package/src/components/ui/data-attribution.tsx +20 -8
- package/src/components/ui/index.ts +2 -0
- package/src/styles/ods-colors.css +1 -0
- package/src/types/data-sync.ts +4 -1
- /package/dist/{chunk-46547WQW.cjs → chunk-7HH4Y27U.cjs} +0 -0
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var _chunkO3EKOXFZcjs = require('./chunk-O3EKOXFZ.cjs');
|
|
6
|
+
require('./chunk-SSKMGH5O.cjs');
|
|
7
7
|
require('./chunk-X432Y6RM.cjs');
|
|
8
8
|
require('./chunk-S5C3OZCO.cjs');
|
|
9
9
|
require('./chunk-4IYNDV3G.cjs');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-ETZFBB7O.cjs');
|
|
11
11
|
require('./chunk-FX35L4Y6.cjs');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-KKFDRCQF.cjs');
|
|
13
13
|
require('./chunk-NTPX5GXI.cjs');
|
|
14
14
|
require('./chunk-GI3MMBP3.cjs');
|
|
15
15
|
require('./chunk-GG466XFQ.cjs');
|
|
@@ -20,4 +20,4 @@ require('./chunk-63A4GZMB.cjs');
|
|
|
20
20
|
require('./chunk-V45KLJQP.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
exports.CaseStudyCard =
|
|
23
|
+
exports.CaseStudyCard = _chunkO3EKOXFZcjs.CaseStudyCard;
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNMWLXHFHcjs = require('./chunk-NMWLXHFH.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkW7OFAROYcjs = require('./chunk-W7OFAROY.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkO3EKOXFZcjs = require('./chunk-O3EKOXFZ.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkKKFDRCQFcjs = require('./chunk-KKFDRCQF.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunkGG466XFQcjs = require('./chunk-GG466XFQ.cjs');
|
|
@@ -36,7 +36,7 @@ function DepartmentBadge({
|
|
|
36
36
|
variant
|
|
37
37
|
}) {
|
|
38
38
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39
|
-
|
|
39
|
+
_chunkNMWLXHFHcjs.PaletteBadge,
|
|
40
40
|
{
|
|
41
41
|
text: _optionalChain([department, 'optionalAccess', _ => _.name]) || emptyLabel,
|
|
42
42
|
color: _optionalChain([department, 'optionalAccess', _2 => _2.name]) ? department.color : null,
|
|
@@ -105,12 +105,12 @@ var STATUS_BADGE_SCHEME = {
|
|
|
105
105
|
abandoned: "default"
|
|
106
106
|
};
|
|
107
107
|
function EmployeeEntryBadge({ children }) {
|
|
108
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
109
109
|
}
|
|
110
110
|
function EmployeeEntryCard(props) {
|
|
111
111
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
112
112
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
113
|
-
|
|
113
|
+
_chunkNMWLXHFHcjs.AdminContentCard,
|
|
114
114
|
{
|
|
115
115
|
loading: true,
|
|
116
116
|
title: "",
|
|
@@ -132,9 +132,9 @@ function LoadedEmployeeEntryCard({
|
|
|
132
132
|
anchorProps,
|
|
133
133
|
className
|
|
134
134
|
}) {
|
|
135
|
-
const authorAvatar =
|
|
135
|
+
const authorAvatar = _chunkNMWLXHFHcjs.useProxiedImageUrl.call(void 0, _optionalChain([entry, 'access', _7 => _7.author, 'optionalAccess', _8 => _8.avatar_url]), { directHttps: false });
|
|
136
136
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
137
|
-
|
|
137
|
+
_chunkNMWLXHFHcjs.AdminContentCard,
|
|
138
138
|
{
|
|
139
139
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
140
140
|
placeholderUrl,
|
|
@@ -142,7 +142,7 @@ function LoadedEmployeeEntryCard({
|
|
|
142
142
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
143
143
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
144
144
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
145
|
-
|
|
145
|
+
_chunkO3EKOXFZcjs.StatusBadge,
|
|
146
146
|
{
|
|
147
147
|
text: entry.status,
|
|
148
148
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -160,8 +160,8 @@ function LoadedEmployeeEntryCard({
|
|
|
160
160
|
src: authorAvatar,
|
|
161
161
|
alt: "",
|
|
162
162
|
className: "h-[1lh] w-[1lh] shrink-0 rounded-full object-cover",
|
|
163
|
-
width:
|
|
164
|
-
height:
|
|
163
|
+
width: _chunkKKFDRCQFcjs.IMAGE_FIXED_PX.glyph,
|
|
164
|
+
height: _chunkKKFDRCQFcjs.IMAGE_FIXED_PX.glyph,
|
|
165
165
|
unoptimized: true
|
|
166
166
|
}
|
|
167
167
|
) : null,
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkUO2EJGRJcjs = require('./chunk-UO2EJGRJ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkIC4IJJB2cjs = require('./chunk-IC4IJJB2.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkLFEURIZNcjs = require('./chunk-LFEURIZN.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkNMWLXHFHcjs = require('./chunk-NMWLXHFH.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -119,14 +119,14 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
123
|
-
const builtInSubmission =
|
|
122
|
+
const attachments = _chunkLFEURIZNcjs.useChatAttachments.call(void 0, );
|
|
123
|
+
const builtInSubmission = _chunkUO2EJGRJcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
126
126
|
successToastMessage
|
|
127
127
|
});
|
|
128
128
|
const [customSubmitting, setCustomSubmitting] = _react.useState.call(void 0, false);
|
|
129
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
129
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkUO2EJGRJcjs.useHumanitySignals.call(void 0, );
|
|
130
130
|
const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting;
|
|
131
131
|
const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess;
|
|
132
132
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -152,7 +152,7 @@ function ContactForm({
|
|
|
152
152
|
),
|
|
153
153
|
[hideFields]
|
|
154
154
|
);
|
|
155
|
-
const rescue =
|
|
155
|
+
const rescue = _chunkUO2EJGRJcjs.useRescuedForm.call(void 0, form, { rescue: rescueForm, fields: rescueFieldNames, getSignals });
|
|
156
156
|
const handleFormSubmit = async (data) => {
|
|
157
157
|
if (isSubmitting) return;
|
|
158
158
|
if (attachmentsEnabled && attachments.hasInflightUploads) return;
|
|
@@ -190,7 +190,7 @@ function ContactForm({
|
|
|
190
190
|
className: `flex h-full flex-col ${!noBorder ? "rounded-2xl border border-ods-border content-md:rounded-3xl" : ""} ${!noPadding ? "p-6 content-md:p-8 content-lg:p-10" : ""}`,
|
|
191
191
|
children: [
|
|
192
192
|
(title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 content-md:mb-8", children: [
|
|
193
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
193
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkNMWLXHFHcjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkNMWLXHFHcjs.accentSentenceMarks.call(void 0, title) }),
|
|
194
194
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: subtitle })
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunkIC4IJJB2cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -261,17 +261,17 @@ function ContactForm({
|
|
|
261
261
|
{
|
|
262
262
|
control,
|
|
263
263
|
name: "companySize",
|
|
264
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
264
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCOJG2ATYcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunkCOJG2ATYcjs.SelectTrigger,
|
|
267
267
|
{
|
|
268
268
|
id: "companySize",
|
|
269
269
|
"aria-label": "Company Size",
|
|
270
270
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
271
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectValue, { placeholder: "Select company size" })
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
275
275
|
] })
|
|
276
276
|
}
|
|
277
277
|
),
|
|
@@ -284,17 +284,17 @@ function ContactForm({
|
|
|
284
284
|
{
|
|
285
285
|
control,
|
|
286
286
|
name: "referralSource",
|
|
287
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCOJG2ATYcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
289
|
-
|
|
289
|
+
_chunkCOJG2ATYcjs.SelectTrigger,
|
|
290
290
|
{
|
|
291
291
|
id: "referralSource",
|
|
292
292
|
"aria-label": "Referral Source",
|
|
293
293
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectValue, { placeholder: "Select an option" })
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
@@ -311,18 +311,18 @@ function ContactForm({
|
|
|
311
311
|
{
|
|
312
312
|
control,
|
|
313
313
|
name: "helpCategory",
|
|
314
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
314
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCOJG2ATYcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
|
|
316
|
+
_chunkCOJG2ATYcjs.SelectTrigger,
|
|
317
317
|
{
|
|
318
318
|
id: "helpCategory",
|
|
319
319
|
"aria-label": "Help Category",
|
|
320
320
|
"aria-required": true,
|
|
321
321
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
322
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
326
326
|
] })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHXURNKXIcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkGI6ECCWBcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkLFEURIZNcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkLFEURIZNcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLFEURIZNcjs = require('./chunk-LFEURIZN.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkG7GF4PWAcjs = require('./chunk-G7GF4PWA.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkETZFBB7Ocjs = require('./chunk-ETZFBB7O.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
@@ -35,7 +35,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
35
35
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
36
36
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
37
37
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
38
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
38
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkLFEURIZNcjs.resolveSourceIcon.call(void 0, {
|
|
39
39
|
sourceRepo,
|
|
40
40
|
documentType: docType
|
|
41
41
|
});
|
|
@@ -65,7 +65,7 @@ function DocSearchBar({
|
|
|
65
65
|
renderResult
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
68
|
-
|
|
68
|
+
_chunkLFEURIZNcjs.SearchInput,
|
|
69
69
|
{
|
|
70
70
|
placeholder,
|
|
71
71
|
value: query,
|
|
@@ -115,7 +115,7 @@ function mapDocSearchResults(docs) {
|
|
|
115
115
|
results.push({
|
|
116
116
|
id: `group-${entry.repo}`,
|
|
117
117
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
118
|
-
title: `${
|
|
118
|
+
title: `${_chunkLFEURIZNcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkLFEURIZNcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
119
119
|
path: rows[0].path,
|
|
120
120
|
type: "file",
|
|
121
121
|
metadata: {
|
|
@@ -171,9 +171,9 @@ function resolveSearchResultAction(result, source, runtime, composeContentUrl) {
|
|
|
171
171
|
externalUrl,
|
|
172
172
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null))
|
|
173
173
|
}) : null;
|
|
174
|
-
const hostRoute = !!_optionalChain([composed, 'optionalAccess', _10 => _10.href]) &&
|
|
174
|
+
const hostRoute = !!_optionalChain([composed, 'optionalAccess', _10 => _10.href]) && _chunkETZFBB7Ocjs.isRelativeHref.call(void 0, composed.href);
|
|
175
175
|
const actionPlatform = composed ? composed.targetPlatform : _nullishCoalesce(targetPlatform, () => ( null));
|
|
176
|
-
const target =
|
|
176
|
+
const target = _chunkETZFBB7Ocjs.navLinkTarget.call(void 0, runtime, _optionalChain([composed, 'optionalAccess', _11 => _11.href]) || externalUrl, actionPlatform, { hostRoute });
|
|
177
177
|
const kind = target.isNewTab ? "navigate-new-tab" : "navigate-same-tab";
|
|
178
178
|
return hostRoute ? { kind, href: target.href, targetPlatform: actionPlatform, hostRoute } : { kind, href: target.href, targetPlatform: actionPlatform };
|
|
179
179
|
}
|
|
@@ -239,7 +239,7 @@ function useDocSearch(config) {
|
|
|
239
239
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
240
240
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
241
241
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
242
|
-
const debouncedQuery =
|
|
242
|
+
const debouncedQuery = _chunkG7GF4PWAcjs.useDebounce.call(void 0, query, 300);
|
|
243
243
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
244
244
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
245
245
|
if (wasSearchable !== searchable) {
|
|
@@ -297,13 +297,13 @@ function useDocSearch(config) {
|
|
|
297
297
|
case "navigate-new-tab": {
|
|
298
298
|
if (wantsNewTab) {
|
|
299
299
|
setKeepOpen(true);
|
|
300
|
-
|
|
300
|
+
_chunkG7GF4PWAcjs.executeNewTabNavigation.call(void 0, { runtime, href: action.href, targetPlatform: action.targetPlatform });
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
303
|
setKeepOpen(action.kind === "navigate-new-tab");
|
|
304
304
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
305
305
|
if (action.kind === "navigate-same-tab" && path && _optionalChain([onInPageSwap, 'optionalCall', _15 => _15(path)])) return;
|
|
306
|
-
|
|
306
|
+
_chunkG7GF4PWAcjs.executeNavigationImperative.call(void 0, {
|
|
307
307
|
runtime,
|
|
308
308
|
href: action.href,
|
|
309
309
|
path,
|
|
@@ -314,7 +314,7 @@ function useDocSearch(config) {
|
|
|
314
314
|
}
|
|
315
315
|
case "ask-ai":
|
|
316
316
|
setKeepOpen(false);
|
|
317
|
-
window.dispatchEvent(new CustomEvent(
|
|
317
|
+
window.dispatchEvent(new CustomEvent(_chunkLFEURIZNcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
318
318
|
return;
|
|
319
319
|
case "route":
|
|
320
320
|
setKeepOpen(false);
|
|
@@ -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 _chunkUV45EPXNcjs = require('./chunk-UV45EPXN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5RMBLOJ5cjs = require('./chunk-5RMBLOJ5.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkIC4IJJB2cjs = require('./chunk-IC4IJJB2.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkLFEURIZNcjs = require('./chunk-LFEURIZN.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkPGAMWM6Ccjs = require('./chunk-PGAMWM6C.cjs');
|
|
@@ -34,17 +34,17 @@ var _chunkPGAMWM6Ccjs = require('./chunk-PGAMWM6C.cjs');
|
|
|
34
34
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunk2W22LY3Wcjs = require('./chunk-2W22LY3W.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkNMWLXHFHcjs = require('./chunk-NMWLXHFH.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkO3EKOXFZcjs = require('./chunk-O3EKOXFZ.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkETZFBB7Ocjs = require('./chunk-ETZFBB7O.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, _chunkPMUCEUFQcjs.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, _chunkPMUCEUFQcjs.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, _chunkNMWLXHFHcjs.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 = _chunk2W22LY3Wcjs.useSelfFetch.call(void 0,
|
|
100
100
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
101
101
|
);
|
|
102
|
-
const sectionsRes =
|
|
102
|
+
const sectionsRes = _chunk2W22LY3Wcjs.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 = _chunk5RMBLOJ5cjs.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 = _chunkIC4IJJB2cjs.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, _chunkNMWLXHFHcjs.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
|
+
_chunk5RMBLOJ5cjs.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
|
+
_chunkGI6ECCWBcjs.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, _chunkGI6ECCWBcjs.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, _chunkLFEURIZNcjs.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 = _chunkGI6ECCWBcjs.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 = _chunkLFEURIZNcjs.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, _chunkGI6ECCWBcjs.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
|
+
} = _chunk2W22LY3Wcjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
328
328
|
initialData
|
|
329
329
|
});
|
|
330
330
|
const { ref: videoWarmupRef } = _chunkPGAMWM6Ccjs.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, _chunkGI6ECCWBcjs.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
|
+
_chunkETZFBB7Ocjs.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 = _chunkIC4IJJB2cjs.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, _chunkNMWLXHFHcjs.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, _chunkCOJG2ATYcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
|
-
|
|
357
|
+
_chunkNMWLXHFHcjs.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
|
+
_chunkLFEURIZNcjs.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
|
+
_chunkLFEURIZNcjs.VideoBitesStrip,
|
|
391
391
|
{
|
|
392
392
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
393
393
|
filterPublished: true,
|
|
394
394
|
showTitle: false,
|
|
395
|
-
profile:
|
|
395
|
+
profile: _chunkO3EKOXFZcjs.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
|
+
_chunkUV45EPXNcjs.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, _chunkLFEURIZNcjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/components/onboarding-guides/hooks/use-onboarding-guides.ts
|