@flamingo-stack/openframe-frontend-core 0.0.811 → 0.0.813
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-NLT2JVI7.cjs +23 -0
- package/dist/{chunk-5QLDHPPU.cjs → chunk-25HBH4J6.cjs} +15 -15
- package/dist/{chunk-TKK66KHU.cjs → chunk-2WD7XGWA.cjs} +6 -6
- package/dist/{chunk-LKQ33CMY.cjs → chunk-2XCORRJV.cjs} +3 -3
- package/dist/{chunk-JTIGKLKJ.cjs → chunk-2XLPRW7V.cjs} +23 -23
- package/dist/{chunk-4WIJI4AK.cjs → chunk-3TOWCFIK.cjs} +20 -26
- package/dist/{chunk-KUXHXLJQ.cjs → chunk-3V5JWG27.cjs} +5 -5
- package/dist/{chunk-ZZO3FGPM.cjs → chunk-467T3LCG.cjs} +63 -63
- package/dist/{chunk-Q7QYAINS.cjs → chunk-4PMD3JUC.cjs} +19 -19
- package/dist/{chunk-PCVY63WQ.cjs → chunk-5M5JVVSL.cjs} +13 -13
- package/dist/{chunk-CB77J5L7.cjs → chunk-5RBL7A2Y.cjs} +544 -544
- package/dist/{chunk-YR74H7Z3.cjs → chunk-5SZ4ILU3.cjs} +7 -7
- package/dist/{chunk-J6C7F63P.cjs → chunk-5V3CNLCB.cjs} +199 -199
- package/dist/{chunk-7JWFMAQB.cjs → chunk-63A4GZMB.cjs} +18 -2
- package/dist/{chunk-ZD6SZLO2.cjs → chunk-6CZVQ72C.cjs} +3 -3
- package/dist/{chunk-R55KNVPR.cjs → chunk-7BJ22OH2.cjs} +171 -171
- package/dist/{chunk-GU3GJ5DH.cjs → chunk-7O7EX7HQ.cjs} +45 -45
- package/dist/{chunk-U2MHQBL4.cjs → chunk-BOS7OIC4.cjs} +30 -30
- package/dist/{chunk-SFUNXMY3.cjs → chunk-EHANO6UE.cjs} +16 -16
- package/dist/{chunk-XLEWM5X5.cjs → chunk-EJQRX6S5.cjs} +62 -62
- package/dist/{chunk-ACCZCRXT.cjs → chunk-F4ZJRMMM.cjs} +20 -20
- package/dist/{chunk-AHBTZ7DN.cjs → chunk-FCZAUK4D.cjs} +52 -50
- package/dist/{chunk-MDBOYMCW.cjs → chunk-FTGXZHLO.cjs} +31 -31
- package/dist/{chunk-CPP2APON.cjs → chunk-G2AN67DP.cjs} +110 -110
- package/dist/{chunk-UP3TLY2V.cjs → chunk-GAR2IIU6.cjs} +349 -349
- package/dist/{chunk-IQLXO6EI.cjs → chunk-GNGXHIBC.cjs} +119 -119
- package/dist/{chunk-FK2WFU7R.cjs → chunk-GTOT4ZQV.cjs} +37 -37
- package/dist/{chunk-KVDUWXVZ.cjs → chunk-HM7VCQSX.cjs} +10 -10
- package/dist/{chunk-243TS7YL.cjs → chunk-IJCSQFLD.cjs} +209 -209
- package/dist/{chunk-CC3Q3MQG.cjs → chunk-IKB6AZPV.cjs} +8 -8
- package/dist/{chunk-66J7ZSI5.cjs → chunk-JFA3VHXC.cjs} +51 -51
- package/dist/{chunk-PMOMZSCX.cjs → chunk-JOKOQOLJ.cjs} +22 -22
- package/dist/{chunk-WX5WDSKV.cjs → chunk-MBU45QUB.cjs} +2050 -2045
- package/dist/{chunk-CJ7W2SY4.cjs → chunk-MUH7X7ZA.cjs} +13 -13
- package/dist/{chunk-GD47ZGOU.cjs → chunk-N3MBQRCQ.cjs} +3 -3
- package/dist/{chunk-ERLMCSGF.cjs → chunk-NONMZ5WJ.cjs} +5 -5
- package/dist/{chunk-ZW25QUJK.cjs → chunk-OBQ5WUNG.cjs} +67 -67
- package/dist/{chunk-6GT3ZL27.cjs → chunk-OGHG6REG.cjs} +44 -44
- package/dist/{chunk-JNWJB4Z5.cjs → chunk-PAI4A3UM.cjs} +60 -60
- package/dist/{chunk-O4MEG2ZS.cjs → chunk-PXR27MXW.cjs} +45 -45
- package/dist/{chunk-XYZBN6D7.cjs → chunk-QDDBOCG3.cjs} +2 -2
- package/dist/{chunk-VXXOUM2K.cjs → chunk-QOAA7ZHB.cjs} +6 -2
- package/dist/{chunk-OQDPZOGC.cjs → chunk-QQT23JJ7.cjs} +4 -4
- package/dist/{chunk-STLJCAIZ.cjs → chunk-RD66AGUI.cjs} +6 -6
- package/dist/{chunk-NL3G642U.cjs → chunk-S3QXLD4X.cjs} +10 -10
- package/dist/{chunk-7RM4NM2C.cjs → chunk-SWF6TNZ3.cjs} +14 -14
- package/dist/{chunk-O32RLIN4.cjs → chunk-TOBROYSJ.cjs} +4 -4
- package/dist/{chunk-P4B6PVSG.cjs → chunk-USUVHAQ7.cjs} +7 -7
- package/dist/{chunk-VXMPVDOS.cjs → chunk-WKODIG3L.cjs} +46 -46
- package/dist/{chunk-CLU2KJFB.cjs → chunk-XWCZSEW7.cjs} +3 -3
- package/dist/{chunk-7Y6M4FW4.cjs → chunk-Y6MJMPHV.cjs} +126 -126
- package/dist/{chunk-NZSWROGM.cjs → chunk-ZRDVFADQ.cjs} +61 -61
- package/dist/{cloud-tenants-XGGQG7SO.cjs → cloud-tenants-ODZVCP5X.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +4 -2
- package/dist/components/features/select-button.js +1 -1
- package/dist/components/help-center-pages/index.cjs +165 -165
- package/dist/components/index.cjs +220 -218
- package/dist/components/meeting-scheduler/index.cjs +238 -192
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/platform/ScriptArguments.d.ts +2 -0
- package/dist/components/platform/ScriptArguments.d.ts.map +1 -1
- package/dist/components/platform/ScriptArguments.js +3 -2
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/button/button-styles.d.ts +8 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +8 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +6 -4
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/button/split-button.js +3 -2
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.js +3 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +34 -32
- package/dist/components/ui/input-styles.d.ts +2 -0
- package/dist/components/ui/input-styles.d.ts.map +1 -1
- package/dist/components/ui/input-styles.js +2 -0
- package/dist/{devices-H5Y4DBVC.cjs → devices-GWBR7MJD.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-77ZOLCCK.cjs → embeddable-chat-4RLUXHDH.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +50 -48
- package/dist/{knowledge-MGH65HXM.cjs → knowledge-ZNRITHW5.cjs} +33 -33
- package/dist/{logs-OL7ETVK6.cjs → logs-QN5H5JT6.cjs} +41 -41
- package/dist/{policies-BCECWQ3F.cjs → policies-SCUYEYGJ.cjs} +36 -36
- package/dist/{remote-session-HML4UF7W.cjs → remote-session-BQMTIQTU.cjs} +17 -17
- package/dist/{scripts-XCD6V2JB.cjs → scripts-BP7UTAG5.cjs} +39 -39
- package/dist/{software-update-U5ESXRG5.cjs → software-update-O4BQJCJ4.cjs} +36 -36
- package/dist/{tickets-board-EICQ5VLE.cjs → tickets-board-TRXOX77R.cjs} +17 -17
- package/dist/utils/index.cjs +4 -0
- package/dist/{video-file-player-4QMVTOBE.cjs → video-file-player-IAMWBKEQ.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +4 -2
- package/src/components/features/select-button.tsx +1 -1
- package/src/components/meeting-scheduler/index.tsx +85 -3
- package/src/components/platform/ScriptArguments.tsx +8 -1
- package/src/components/ui/button/button-styles.ts +18 -1
- package/src/components/ui/button/button.tsx +7 -4
- package/src/components/ui/button/split-button.tsx +3 -2
- package/src/components/ui/checkbox-block.tsx +3 -1
- package/src/components/ui/input-styles.ts +2 -0
- package/dist/case-study-card-AMINZROX.cjs +0 -23
|
@@ -2,41 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMBU45QUBcjs = require('./chunk-MBU45QUB.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7O7EX7HQcjs = require('./chunk-7O7EX7HQ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk5V3CNLCBcjs = require('./chunk-5V3CNLCB.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk5RBL7A2Ycjs = require('./chunk-5RBL7A2Y.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkSWF6TNZ3cjs = require('./chunk-SWF6TNZ3.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkN3MBQRCQcjs = require('./chunk-N3MBQRCQ.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
40
40
|
|
|
41
41
|
// src/components/contact/contact-form.tsx
|
|
42
42
|
var _zod = require('@hookform/resolvers/zod');
|
|
@@ -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 = _chunk5RBL7A2Ycjs.useChatAttachments.call(void 0, );
|
|
123
|
+
const builtInSubmission = _chunk7O7EX7HQcjs.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 } = _chunk7O7EX7HQcjs.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 = _chunk7O7EX7HQcjs.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: `${_chunkGAR2IIU6cjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkGAR2IIU6cjs.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,22 +203,22 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunk5V3CNLCBcjs.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, _chunkMBU45QUBcjs.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: [
|
|
216
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
216
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "name", children: [
|
|
217
217
|
"Your Name",
|
|
218
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
218
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.RequiredMark, {})
|
|
219
219
|
] }),
|
|
220
220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
221
|
-
|
|
221
|
+
_chunkSWF6TNZ3cjs.Input,
|
|
222
222
|
{
|
|
223
223
|
id: "name",
|
|
224
224
|
type: "text",
|
|
@@ -233,12 +233,12 @@ function ContactForm({
|
|
|
233
233
|
errors.name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "name-error", className: "mt-1 text-ods-error text-h6", children: errors.name.message })
|
|
234
234
|
] }),
|
|
235
235
|
showEmail && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
236
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
236
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "email", children: [
|
|
237
237
|
"Email",
|
|
238
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
238
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.RequiredMark, {})
|
|
239
239
|
] }),
|
|
240
240
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
|
-
|
|
241
|
+
_chunkSWF6TNZ3cjs.Input,
|
|
242
242
|
{
|
|
243
243
|
id: "email",
|
|
244
244
|
type: "email",
|
|
@@ -255,46 +255,46 @@ function ContactForm({
|
|
|
255
255
|
] }),
|
|
256
256
|
(showCompanySize || showReferralSource) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
257
257
|
showCompanySize && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
258
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "companySize", children: "Company Size" }),
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
260
260
|
_reacthookform.Controller,
|
|
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, _chunkIJCSQFLDcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunkIJCSQFLDcjs.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, _chunkIJCSQFLDcjs.SelectValue, { placeholder: "Select company size" })
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
275
275
|
] })
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
278
|
errors.companySize && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "companySize-error", className: "mt-1 text-ods-error text-h6", children: errors.companySize.message })
|
|
279
279
|
] }),
|
|
280
280
|
showReferralSource && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
281
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
281
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "referralSource", children: "How did you hear about us?" }),
|
|
282
282
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
283
283
|
_reacthookform.Controller,
|
|
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, _chunkIJCSQFLDcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
289
|
-
|
|
289
|
+
_chunkIJCSQFLDcjs.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, _chunkIJCSQFLDcjs.SelectValue, { placeholder: "Select an option" })
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
@@ -302,39 +302,39 @@ function ContactForm({
|
|
|
302
302
|
] })
|
|
303
303
|
] }),
|
|
304
304
|
showHelpCategory && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
305
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
305
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "helpCategory", children: [
|
|
306
306
|
"Choose your main interest",
|
|
307
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
307
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.RequiredMark, {})
|
|
308
308
|
] }),
|
|
309
309
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
310
|
_reacthookform.Controller,
|
|
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, _chunkIJCSQFLDcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
|
|
316
|
+
_chunkIJCSQFLDcjs.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, _chunkIJCSQFLDcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
326
326
|
] })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
329
329
|
errors.helpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "helpCategory-error", className: "mt-1 text-ods-error text-h6", children: errors.helpCategory.message })
|
|
330
330
|
] }),
|
|
331
331
|
showMessage && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-grow flex-col", children: [
|
|
332
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
332
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "message", children: [
|
|
333
333
|
"Your Message",
|
|
334
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
334
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkMBU45QUBcjs.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
|
+
_chunk5RBL7A2Ycjs.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
|
+
_chunk5RBL7A2Ycjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -372,7 +372,7 @@ function ContactForm({
|
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-auto flex w-full flex-col items-center justify-end gap-4 pt-2 content-md:flex-row content-md:gap-6", children: [
|
|
373
373
|
footerText && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-center text-ods-text-secondary text-h6 content-md:text-left", children: footerText }),
|
|
374
374
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
375
|
-
|
|
375
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
376
376
|
{
|
|
377
377
|
type: "submit",
|
|
378
378
|
loading: isSubmitting,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4PMD3JUCcjs = require('./chunk-4PMD3JUC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkQ7QYAINScjs = require('./chunk-Q7QYAINS.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkF4ZJRMMMcjs = require('./chunk-F4ZJRMMM.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,23 +27,23 @@ var _chunkACCZCRXTcjs = require('./chunk-ACCZCRXT.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk2XCORRJVcjs = require('./chunk-2XCORRJV.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
47
47
|
|
|
48
48
|
// src/components/related-content/related-content-section.tsx
|
|
49
49
|
var _react = require('react');
|
|
@@ -443,13 +443,13 @@ function programEntry(configKey) {
|
|
|
443
443
|
return cardEntry({
|
|
444
444
|
// The gallery and hosts rows are drawn only for a type whose cards show them (its config's `cardShowsGallery`,
|
|
445
445
|
// `cardShowsHosts`), as `ProgramCard` decides in a scope: elsewhere a record may have none.
|
|
446
|
-
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
446
|
+
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.ProgramCard, { loading: true, config: _optionalChain([extras, 'optionalAccess', _2 => _2.programConfigs, 'optionalAccess', _3 => _3[configKey]]), size: size === "sm" ? "sm" : "default" }),
|
|
447
447
|
decode: decodeProgramRow,
|
|
448
448
|
render: (item, ctx) => {
|
|
449
449
|
const config = _optionalChain([ctx, 'access', _4 => _4.extras, 'optionalAccess', _5 => _5.programConfigs, 'optionalAccess', _6 => _6[configKey]]);
|
|
450
450
|
if (!config) return null;
|
|
451
451
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
-
|
|
452
|
+
_chunkGAR2IIU6cjs.ProgramCard,
|
|
453
453
|
{
|
|
454
454
|
config,
|
|
455
455
|
item,
|
|
@@ -467,10 +467,10 @@ function programEntry(configKey) {
|
|
|
467
467
|
}
|
|
468
468
|
function roadmapEntry(cardType) {
|
|
469
469
|
return cardEntry({
|
|
470
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
470
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.RoadmapCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
471
471
|
decode: decodeRoadmapRow,
|
|
472
472
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
473
|
-
|
|
473
|
+
_chunkGAR2IIU6cjs.RoadmapCard,
|
|
474
474
|
{
|
|
475
475
|
item,
|
|
476
476
|
href: ctx.href,
|
|
@@ -487,10 +487,10 @@ function roadmapEntry(cardType) {
|
|
|
487
487
|
}
|
|
488
488
|
var RELATED_CARD_REGISTRY = {
|
|
489
489
|
blog_post_existing: cardEntry({
|
|
490
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.BlogCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
491
491
|
decode: decodeBlogRow,
|
|
492
492
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
493
|
-
|
|
493
|
+
_chunkGAR2IIU6cjs.BlogCard,
|
|
494
494
|
{
|
|
495
495
|
post,
|
|
496
496
|
size: ctx.legacySize,
|
|
@@ -503,10 +503,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
503
503
|
)
|
|
504
504
|
}),
|
|
505
505
|
case_study: cardEntry({
|
|
506
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
506
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.CaseStudyCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
507
507
|
decode: decodeCaseStudyRow,
|
|
508
508
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
509
|
-
|
|
509
|
+
_chunkY6MJMPHVcjs.CaseStudyCard,
|
|
510
510
|
{
|
|
511
511
|
study,
|
|
512
512
|
size: ctx.legacySize,
|
|
@@ -518,10 +518,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
518
518
|
)
|
|
519
519
|
}),
|
|
520
520
|
customer_interview: cardEntry({
|
|
521
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.CustomerInterviewCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
522
522
|
decode: decodeCustomerInterviewRow,
|
|
523
523
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
524
|
-
|
|
524
|
+
_chunkGAR2IIU6cjs.CustomerInterviewCard,
|
|
525
525
|
{
|
|
526
526
|
interview,
|
|
527
527
|
size: ctx.legacySize,
|
|
@@ -539,13 +539,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
539
539
|
* record, and the three props the rail sets itself are read off it.
|
|
540
540
|
*/
|
|
541
541
|
product_release: cardEntry({
|
|
542
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
542
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.ProductReleaseCard, { loading: true, size: size === "sm" ? "sm" : "lg" }),
|
|
543
543
|
decode: asRecord,
|
|
544
544
|
render: (release, ctx) => {
|
|
545
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => (
|
|
545
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => ( _chunkGAR2IIU6cjs.buildProductReleaseCardProps));
|
|
546
546
|
const releaseProps = buildReleaseProps(release);
|
|
547
547
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
-
|
|
548
|
+
_chunkGAR2IIU6cjs.ProductReleaseCard,
|
|
549
549
|
{
|
|
550
550
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
551
551
|
title: str(release, "title"),
|
|
@@ -561,10 +561,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
561
561
|
webinar: programEntry("webinar"),
|
|
562
562
|
event: programEntry("event"),
|
|
563
563
|
investor_update: cardEntry({
|
|
564
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
564
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.InvestorUpdateCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
565
565
|
decode: decodeInvestorUpdateRow,
|
|
566
566
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
567
|
-
|
|
567
|
+
_chunkGAR2IIU6cjs.InvestorUpdateCard,
|
|
568
568
|
{
|
|
569
569
|
update,
|
|
570
570
|
size: ctx.legacySize,
|
|
@@ -579,10 +579,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
579
579
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
580
580
|
* section" rail, not this full-width row. */
|
|
581
581
|
onboarding_guide: cardEntry({
|
|
582
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
582
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.OnboardingGuideCard, { loading: true, size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
583
583
|
decode: decodeOnboardingGuideRow,
|
|
584
584
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
585
|
-
|
|
585
|
+
_chunkGAR2IIU6cjs.OnboardingGuideCard,
|
|
586
586
|
{
|
|
587
587
|
guide,
|
|
588
588
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -599,10 +599,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
599
599
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
600
600
|
* card in a dead <a>. */
|
|
601
601
|
what_i_shipped: cardEntry({
|
|
602
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
602
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF4ZJRMMMcjs.WhatIShippedCard, { loading: true }),
|
|
603
603
|
decode: decodeEmployeeEntryRow,
|
|
604
604
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
605
|
-
|
|
605
|
+
_chunkF4ZJRMMMcjs.WhatIShippedCard,
|
|
606
606
|
{
|
|
607
607
|
entry,
|
|
608
608
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -612,10 +612,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
612
612
|
}),
|
|
613
613
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
614
614
|
how_i_work: cardEntry({
|
|
615
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
615
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF4ZJRMMMcjs.HowIWorkCard, { loading: true }),
|
|
616
616
|
decode: decodeEmployeeEntryRow,
|
|
617
617
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
618
|
+
_chunkF4ZJRMMMcjs.HowIWorkCard,
|
|
619
619
|
{
|
|
620
620
|
entry,
|
|
621
621
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -625,10 +625,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
625
625
|
}),
|
|
626
626
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
627
627
|
ai_prompt: cardEntry({
|
|
628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
628
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF4ZJRMMMcjs.AiPromptCard, { loading: true }),
|
|
629
629
|
decode: decodeEmployeeEntryRow,
|
|
630
630
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
-
|
|
631
|
+
_chunkF4ZJRMMMcjs.AiPromptCard,
|
|
632
632
|
{
|
|
633
633
|
entry,
|
|
634
634
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -649,7 +649,7 @@ function DefaultLinkPropsProvider({
|
|
|
649
649
|
children
|
|
650
650
|
}) {
|
|
651
651
|
if (!href) return children(null);
|
|
652
|
-
const newTab =
|
|
652
|
+
const newTab = _chunkY6MJMPHVcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
653
653
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
654
654
|
}
|
|
655
655
|
function defaultResolveHref(ref) {
|
|
@@ -711,9 +711,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
711
711
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
712
712
|
);
|
|
713
713
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
714
|
-
const { data, dataUrl, error } =
|
|
714
|
+
const { data, dataUrl, error } = _chunkF4ZJRMMMcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
715
715
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
716
|
-
setPages(new Map(pages).set(dataUrl,
|
|
716
|
+
setPages(new Map(pages).set(dataUrl, _chunkGAR2IIU6cjs.extractItems.call(void 0, data)));
|
|
717
717
|
}
|
|
718
718
|
if (url === null) return { items: null, isLoading: false };
|
|
719
719
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -722,7 +722,7 @@ function gridClassFor(columns) {
|
|
|
722
722
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
723
723
|
}
|
|
724
724
|
function resolveGroupConfig(type) {
|
|
725
|
-
return _nullishCoalesce(
|
|
725
|
+
return _nullishCoalesce(_chunkF4ZJRMMMcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
726
726
|
label: type,
|
|
727
727
|
order: 999,
|
|
728
728
|
layout: "grid",
|
|
@@ -735,15 +735,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
735
735
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
736
736
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
737
737
|
function GroupHeading({ type }) {
|
|
738
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
738
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkF4ZJRMMMcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
739
739
|
}
|
|
740
740
|
function orderRailTypes(types, entityType) {
|
|
741
|
-
let ordered =
|
|
741
|
+
let ordered = _chunkF4ZJRMMMcjs.orderContentRefTypes.call(void 0, types);
|
|
742
742
|
if (entityType) {
|
|
743
|
-
const canonicalEntityType =
|
|
744
|
-
const sameType = ordered.filter((t) =>
|
|
743
|
+
const canonicalEntityType = _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, entityType);
|
|
744
|
+
const sameType = ordered.filter((t) => _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
745
745
|
if (sameType.length > 0) {
|
|
746
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
746
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
return ordered;
|
|
@@ -772,10 +772,10 @@ function ContentGroup({
|
|
|
772
772
|
setPagedRefsKey(refsKey);
|
|
773
773
|
setPage(1);
|
|
774
774
|
}
|
|
775
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
776
|
-
const pageRefs = refs.slice((page - 1) *
|
|
775
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkF4ZJRMMMcjs.GROUP_PAGE_SIZE);
|
|
776
|
+
const pageRefs = refs.slice((page - 1) * _chunkF4ZJRMMMcjs.GROUP_PAGE_SIZE, page * _chunkF4ZJRMMMcjs.GROUP_PAGE_SIZE);
|
|
777
777
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
778
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4PMD3JUCcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
779
779
|
_react.useEffect.call(void 0, () => {
|
|
780
780
|
onLoadingChange(type, isLoading);
|
|
781
781
|
return () => onLoadingChange(type, false);
|
|
@@ -784,7 +784,7 @@ function ContentGroup({
|
|
|
784
784
|
const skeletons = pageRefs.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(type, cardSize, adminCampaignCard, extras) }, r.id));
|
|
785
785
|
return (
|
|
786
786
|
// The rail announces for every group (`announce={false}`): one rail, one "loading".
|
|
787
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
787
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { announce: false, className: GROUP_CLASS, "data-loading-item": true, children: [
|
|
788
788
|
heading,
|
|
789
789
|
isListLayout ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GROUP_LIST_CLASS, children: skeletons }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: skeletons }),
|
|
790
790
|
groupPagination
|
|
@@ -793,7 +793,7 @@ function ContentGroup({
|
|
|
793
793
|
}
|
|
794
794
|
if (!items) return null;
|
|
795
795
|
const rowKey = (it) => {
|
|
796
|
-
const extracted =
|
|
796
|
+
const extracted = _chunkGAR2IIU6cjs.extractItemId.call(void 0, type, it);
|
|
797
797
|
if (extracted !== null) return extracted;
|
|
798
798
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
799
799
|
};
|
|
@@ -864,11 +864,11 @@ function RelatedContentSection({
|
|
|
864
864
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
865
865
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
866
866
|
};
|
|
867
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
867
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkF4ZJRMMMcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
868
868
|
apiBaseUrl,
|
|
869
869
|
extraParams: { authorId, ...typeFilterParams }
|
|
870
870
|
}) : null;
|
|
871
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
871
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkF4ZJRMMMcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
872
872
|
apiBaseUrl,
|
|
873
873
|
entityType,
|
|
874
874
|
entityId,
|
|
@@ -885,8 +885,8 @@ function RelatedContentSection({
|
|
|
885
885
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
886
886
|
[initialItems, suggestionsDisabled]
|
|
887
887
|
);
|
|
888
|
-
const { data, isLoading } =
|
|
889
|
-
const inScope =
|
|
888
|
+
const { data, isLoading } = _chunkF4ZJRMMMcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
889
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
890
890
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
891
891
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
892
892
|
setLoadingTypes((prev) => {
|
|
@@ -898,7 +898,7 @@ function RelatedContentSection({
|
|
|
898
898
|
});
|
|
899
899
|
}, []);
|
|
900
900
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
901
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
901
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkGAR2IIU6cjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
902
902
|
[buildListUrl2, apiBaseUrl]
|
|
903
903
|
);
|
|
904
904
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _12 => _12.refs]))), () => ( []));
|
|
@@ -922,7 +922,7 @@ function RelatedContentSection({
|
|
|
922
922
|
}
|
|
923
923
|
if (!showWhenEmpty) return null;
|
|
924
924
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunkGAR2IIU6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
926
926
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
927
927
|
] });
|
|
928
928
|
}
|
|
@@ -947,8 +947,8 @@ function RelatedContentSection({
|
|
|
947
947
|
}
|
|
948
948
|
);
|
|
949
949
|
}
|
|
950
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
950
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunkGAR2IIU6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
952
952
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
953
|
ContentGroup,
|
|
954
954
|
{
|
|
@@ -979,24 +979,24 @@ function RelatedContentSectionSkeleton({
|
|
|
979
979
|
adminCampaignCard,
|
|
980
980
|
extras
|
|
981
981
|
}) {
|
|
982
|
-
const canonicalEntityType = entityType ?
|
|
982
|
+
const canonicalEntityType = entityType ? _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
983
983
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
984
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
985
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
984
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
985
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunkF4ZJRMMMcjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
986
986
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
987
987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
988
988
|
)) })
|
|
989
989
|
] }) : null;
|
|
990
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
990
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunkGAR2IIU6cjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
992
992
|
unknownGroup,
|
|
993
993
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
994
994
|
const config = resolveGroupConfig(type);
|
|
995
|
-
const sameType = canonicalEntityType !== null &&
|
|
995
|
+
const sameType = canonicalEntityType !== null && _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
996
996
|
const isList = config.layout === "list";
|
|
997
997
|
const count = Math.min(
|
|
998
|
-
|
|
999
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
998
|
+
_chunkF4ZJRMMMcjs.GROUP_PAGE_SIZE,
|
|
999
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkF4ZJRMMMcjs.GROUP_PAGE_SIZE))
|
|
1000
1000
|
);
|
|
1001
1001
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1002
1002
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|