@flamingo-stack/openframe-frontend-core 0.0.816 → 0.0.818
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 → case-study-card-IZBMHA6R.cjs} +3 -3
- package/dist/{chunk-VDXI26G7.cjs → chunk-4XASD2TL.cjs} +81 -78
- package/dist/{chunk-5TUR7O7H.cjs → chunk-5AIOYEXW.cjs} +90 -90
- package/dist/{chunk-RYJJHSHV.cjs → chunk-5VRSUEC5.cjs} +23 -23
- package/dist/{chunk-633NTKO2.cjs → chunk-6QT5K5I5.cjs} +31 -53
- package/dist/{chunk-CNTBGJA7.cjs → chunk-A34UNP5V.cjs} +65 -1
- package/dist/{chunk-3ELDGEM2.cjs → chunk-AE22KOW3.cjs} +87 -84
- package/dist/{chunk-EJCUAADF.cjs → chunk-BD42NMCT.cjs} +4 -4
- package/dist/{chunk-7NYWHEQM.cjs → chunk-DGAX5WG2.cjs} +15 -15
- package/dist/{chunk-L7W4455K.cjs → chunk-DL4HWYIB.cjs} +3 -3
- package/dist/chunk-DVHSYPDB.cjs +471 -0
- package/dist/{chunk-GAR2IIU6.cjs → chunk-IM366HS6.cjs} +105 -157
- package/dist/{chunk-7ERD34HQ.cjs → chunk-IQCHV7Z2.cjs} +571 -823
- package/dist/{chunk-3E4FIJAM.cjs → chunk-JTBJB4JF.cjs} +15 -15
- package/dist/{chunk-PAI4A3UM.cjs → chunk-K5IICQNF.cjs} +61 -54
- package/dist/{chunk-JOKOQOLJ.cjs → chunk-LUID2IB3.cjs} +2 -2
- package/dist/{chunk-JOOZTRXQ.cjs → chunk-NEXMK6OP.cjs} +4 -4
- package/dist/{chunk-4PMD3JUC.cjs → chunk-NPNZAAOB.cjs} +2 -2
- package/dist/{chunk-JH65CEO4.cjs → chunk-NWIEZUM7.cjs} +36 -36
- package/dist/{chunk-HM7VCQSX.cjs → chunk-SBFBNOKU.cjs} +4 -4
- package/dist/{chunk-7O7EX7HQ.cjs → chunk-T266OITJ.cjs} +28 -20
- package/dist/{chunk-SWBLTIN4.cjs → chunk-U2THWP25.cjs} +54 -52
- package/dist/{chunk-F4ZJRMMM.cjs → chunk-UDLDXVY4.cjs} +8 -8
- package/dist/{chunk-Y6MJMPHV.cjs → chunk-UEULXVW2.cjs} +32 -84
- package/dist/{chunk-O6VWD2SB.cjs → chunk-VGZXB3SY.cjs} +3 -3
- package/dist/{chunk-ZAWHRYJZ.cjs → chunk-VRXDTRIY.cjs} +45 -45
- package/dist/{chunk-EB7YAUER.cjs → chunk-YHPUD4PM.cjs} +19 -19
- package/dist/{chunk-FUEK43FL.cjs → chunk-YMPPE322.cjs} +206 -200
- package/dist/{chunk-IKB6AZPV.cjs → chunk-ZECG6GU5.cjs} +2 -2
- package/dist/{chunk-53JJLHJM.cjs → chunk-ZWAVMZIF.cjs} +20 -20
- package/dist/{cloud-tenants-SRTX2FZC.cjs → cloud-tenants-V6EV4OGK.cjs} +11 -11
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/announcement-bar.js +5 -5
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/chat-markdown-link.d.ts +15 -0
- package/dist/components/chat/chat-markdown-link.d.ts.map +1 -0
- package/dist/components/chat/chat-markdown-link.js +22 -0
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +3 -9
- package/dist/components/chat/embeddable-chat.d.ts +4 -8
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +31 -125
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +8 -11
- package/dist/components/chat/entity-cards/dispatch.d.ts +8 -15
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +22 -40
- package/dist/components/chat/entity-cards/github-activity-card.d.ts +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts +3 -2
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.js +6 -4
- package/dist/components/chat/index.cjs +28 -21
- package/dist/components/chat/index.d.ts +2 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +4 -3
- package/dist/components/chat/{inline-app-link-chip.d.ts → inline-chip.d.ts} +1 -14
- package/dist/components/chat/inline-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-chip.js +27 -0
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts +45 -11
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts.map +1 -1
- package/dist/components/chat/nav-link-anchor-via-runtime.js +32 -24
- package/dist/components/chat/source-action-button.d.ts +12 -3
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +41 -26
- package/dist/components/chat/types/component.types.d.ts +1 -1
- package/dist/components/chat/types/entities/data-room-doc.d.ts +0 -12
- package/dist/components/chat/types/entities/data-room-doc.d.ts.map +1 -1
- package/dist/components/chat/types/message.types.d.ts +1 -1
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.d.ts +1 -6
- package/dist/components/chat/utils/chat-nav-resolution.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.js +2 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts +0 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts.map +1 -1
- package/dist/components/chat/utils/decide-new-tab.js +0 -1
- package/dist/components/chat/utils/execute-navigation.d.ts +36 -34
- package/dist/components/chat/utils/execute-navigation.d.ts.map +1 -1
- package/dist/components/chat/utils/execute-navigation.js +23 -19
- package/dist/components/chat/utils/index.d.ts +5 -5
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/chat/utils/index.js +14 -6
- package/dist/components/chat/utils/nav-anchor-props.d.ts +35 -8
- package/dist/components/chat/utils/nav-anchor-props.d.ts.map +1 -1
- package/dist/components/chat/utils/nav-anchor-props.js +14 -5
- package/dist/components/chat/utils/new-tab-rel.d.ts +15 -0
- package/dist/components/chat/utils/new-tab-rel.d.ts.map +1 -0
- package/dist/components/chat/utils/new-tab-rel.js +25 -0
- package/dist/components/chat/utils/source-row-cta.d.ts +9 -48
- package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
- package/dist/components/chat/utils/source-row-cta.js +7 -32
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +4 -1
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +91 -83
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/app-header.d.ts +1 -4
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-header.js +0 -2
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/ticket-alerts-button.d.ts +1 -4
- package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
- package/dist/components/navigation/ticket-alerts-button.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/card-registry.d.ts +1 -1
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/related-content-section.d.ts +3 -3
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +5 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +10 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
- package/dist/components/shared/doc-search/resolve-search-result-action.js +8 -17
- package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
- package/dist/components/shared/doc-search/use-doc-search.js +15 -27
- package/dist/components/shared/product-release/product-release-card.d.ts +2 -2
- package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-releases-view.js +1 -3
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/tickets/ticket-detail-drawer.d.ts.map +1 -1
- package/dist/components/tickets/ticket-detail-drawer.js +6 -3
- package/dist/components/tickets/types.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/hover-dropdown.d.ts +2 -2
- package/dist/components/ui/index.cjs +31 -23
- package/dist/components/ui/service-card.d.ts.map +1 -1
- package/dist/components/ui/service-card.js +4 -1
- package/dist/components/vendor-display-button.d.ts.map +1 -1
- package/dist/components/vendor-display-button.js +4 -1
- package/dist/contexts/chat-runtime-context.d.ts +14 -25
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-DL4YU64N.cjs → devices-6KZAJAAS.cjs} +12 -12
- package/dist/{embeddable-chat-YRKMPFDY.cjs → embeddable-chat-5IHA5SUZ.cjs} +95 -193
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/use-contact-submission.d.ts.map +1 -1
- package/dist/hooks/use-contact-submission.js +11 -8
- package/dist/index.cjs +40 -34
- package/dist/{knowledge-VQW5JL2Z.cjs → knowledge-I7FDQQYJ.cjs} +12 -12
- package/dist/{logs-IY3WBLMW.cjs → logs-Q7PAVJUG.cjs} +19 -19
- package/dist/{policies-IXWTWMJO.cjs → policies-C3DW5CHS.cjs} +15 -15
- package/dist/{scripts-D5CLO5EG.cjs → scripts-BET663HD.cjs} +16 -16
- package/dist/{software-update-ULNP6CKJ.cjs → software-update-W7ZQXEPK.cjs} +14 -14
- package/dist/utils/index.cjs +116 -89
- package/dist/utils/open-in-new-tab.d.ts +2 -1
- package/dist/utils/open-in-new-tab.d.ts.map +1 -1
- package/dist/utils/open-in-new-tab.js +2 -1
- package/dist/utils/scroll-into-view.d.ts +1 -1
- package/dist/utils/source-grouping.d.ts +2 -2
- package/eslint-config/base.js +11 -0
- package/eslint-config/navigation.js +142 -0
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +8 -6
- package/src/components/chat/chat-markdown-link.tsx +42 -0
- package/src/components/chat/chat-message-enhanced.tsx +10 -36
- package/src/components/chat/embeddable-chat.tsx +66 -173
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +9 -13
- package/src/components/chat/entity-cards/data-room-doc-card.tsx +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +51 -66
- package/src/components/chat/entity-cards/github-activity-card.tsx +1 -1
- package/src/components/chat/entity-cards/use-entity-card-link.ts +11 -16
- package/src/components/chat/index.ts +3 -1
- package/src/components/chat/{inline-app-link-chip.tsx → inline-chip.tsx} +1 -27
- package/src/components/chat/nav-link-anchor-via-runtime.tsx +73 -33
- package/src/components/chat/source-action-button.tsx +57 -33
- package/src/components/chat/types/component.types.ts +1 -1
- package/src/components/chat/types/entities/data-room-doc.ts +0 -12
- package/src/components/chat/types/message.types.ts +1 -1
- package/src/components/chat/utils/chat-nav-resolution.ts +3 -8
- package/src/components/chat/utils/decide-new-tab.ts +0 -3
- package/src/components/chat/utils/execute-navigation.ts +58 -58
- package/src/components/chat/utils/index.ts +13 -6
- package/src/components/chat/utils/nav-anchor-props.ts +56 -9
- package/src/components/chat/utils/new-tab-rel.ts +39 -0
- package/src/components/chat/utils/source-row-cta.ts +21 -102
- package/src/components/features/devices/devices-table-columns.tsx +4 -1
- package/src/components/navigation/app-header.tsx +0 -5
- package/src/components/navigation/ticket-alerts-button.tsx +7 -8
- package/src/components/related-content/card-registry.tsx +1 -1
- package/src/components/related-content/related-content-section.tsx +10 -10
- package/src/components/shared/doc-search/resolve-search-result-action.ts +19 -33
- package/src/components/shared/doc-search/use-doc-search.ts +21 -44
- package/src/components/shared/product-release/product-release-card.tsx +4 -4
- package/src/components/shared/product-release/product-releases-view.tsx +2 -5
- package/src/components/tickets/ticket-detail-drawer.tsx +7 -4
- package/src/components/tickets/types.ts +1 -1
- package/src/components/ui/button/button.tsx +2 -2
- package/src/components/ui/hover-dropdown.tsx +2 -2
- package/src/components/ui/service-card.tsx +4 -1
- package/src/components/vendor-display-button.tsx +5 -2
- package/src/contexts/chat-runtime-context.tsx +18 -23
- package/src/hooks/use-contact-submission.ts +13 -8
- package/src/utils/index.ts +1 -1
- package/src/utils/open-in-new-tab.ts +4 -2
- package/src/utils/scroll-into-view.ts +1 -1
- package/src/utils/source-grouping.ts +2 -2
- package/dist/chunk-RD66AGUI.cjs +0 -156
- package/dist/components/chat/inline-app-link-chip.d.ts.map +0 -1
- package/dist/components/chat/inline-app-link-chip.js +0 -37
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYMPPE322cjs = require('./chunk-YMPPE322.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -14,19 +14,19 @@ var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkT266OITJcjs = require('./chunk-T266OITJ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk4XASD2TLcjs = require('./chunk-4XASD2TL.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkIQCHV7Z2cjs = require('./chunk-IQCHV7Z2.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkIM366HS6cjs = require('./chunk-IM366HS6.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 = _chunkIQCHV7Z2cjs.useChatAttachments.call(void 0, );
|
|
123
|
+
const builtInSubmission = _chunkT266OITJcjs.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 } = _chunkT266OITJcjs.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 = _chunkT266OITJcjs.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: `${_chunkIM366HS6cjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkIM366HS6cjs.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
|
+
..._chunk4XASD2TLcjs.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, _chunkYMPPE322cjs.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: [
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkYMPPE322cjs.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
|
+
_chunkIQCHV7Z2cjs.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
|
+
_chunkIQCHV7Z2cjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -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 _chunkNPNZAAOBcjs = require('./chunk-NPNZAAOB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunk4PMD3JUCcjs = require('./chunk-4PMD3JUC.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkUDLDXVY4cjs = require('./chunk-UDLDXVY4.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,16 +27,22 @@ var _chunkF4ZJRMMMcjs = require('./chunk-F4ZJRMMM.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkIM366HS6cjs = require('./chunk-IM366HS6.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
|
|
33
|
+
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
35
34
|
|
|
36
35
|
|
|
37
36
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
38
37
|
|
|
39
38
|
|
|
39
|
+
|
|
40
|
+
var _chunkDVHSYPDBcjs = require('./chunk-DVHSYPDB.cjs');
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
44
|
+
|
|
45
|
+
|
|
40
46
|
var _chunk2XCORRJVcjs = require('./chunk-2XCORRJV.cjs');
|
|
41
47
|
|
|
42
48
|
|
|
@@ -443,13 +449,13 @@ function programEntry(configKey) {
|
|
|
443
449
|
return cardEntry({
|
|
444
450
|
// The gallery and hosts rows are drawn only for a type whose cards show them (its config's `cardShowsGallery`,
|
|
445
451
|
// `cardShowsHosts`), as `ProgramCard` decides in a scope: elsewhere a record may have none.
|
|
446
|
-
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
+
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.ProgramCard, { loading: true, config: _optionalChain([extras, 'optionalAccess', _2 => _2.programConfigs, 'optionalAccess', _3 => _3[configKey]]), size: size === "sm" ? "sm" : "default" }),
|
|
447
453
|
decode: decodeProgramRow,
|
|
448
454
|
render: (item, ctx) => {
|
|
449
455
|
const config = _optionalChain([ctx, 'access', _4 => _4.extras, 'optionalAccess', _5 => _5.programConfigs, 'optionalAccess', _6 => _6[configKey]]);
|
|
450
456
|
if (!config) return null;
|
|
451
457
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
-
|
|
458
|
+
_chunkIM366HS6cjs.ProgramCard,
|
|
453
459
|
{
|
|
454
460
|
config,
|
|
455
461
|
item,
|
|
@@ -467,10 +473,10 @@ function programEntry(configKey) {
|
|
|
467
473
|
}
|
|
468
474
|
function roadmapEntry(cardType) {
|
|
469
475
|
return cardEntry({
|
|
470
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
476
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.RoadmapCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
471
477
|
decode: decodeRoadmapRow,
|
|
472
478
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
473
|
-
|
|
479
|
+
_chunkIM366HS6cjs.RoadmapCard,
|
|
474
480
|
{
|
|
475
481
|
item,
|
|
476
482
|
href: ctx.href,
|
|
@@ -487,10 +493,10 @@ function roadmapEntry(cardType) {
|
|
|
487
493
|
}
|
|
488
494
|
var RELATED_CARD_REGISTRY = {
|
|
489
495
|
blog_post_existing: cardEntry({
|
|
490
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
496
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.BlogCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
491
497
|
decode: decodeBlogRow,
|
|
492
498
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
493
|
-
|
|
499
|
+
_chunkIM366HS6cjs.BlogCard,
|
|
494
500
|
{
|
|
495
501
|
post,
|
|
496
502
|
size: ctx.legacySize,
|
|
@@ -503,10 +509,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
503
509
|
)
|
|
504
510
|
}),
|
|
505
511
|
case_study: cardEntry({
|
|
506
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
512
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.CaseStudyCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
507
513
|
decode: decodeCaseStudyRow,
|
|
508
514
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
509
|
-
|
|
515
|
+
_chunkUEULXVW2cjs.CaseStudyCard,
|
|
510
516
|
{
|
|
511
517
|
study,
|
|
512
518
|
size: ctx.legacySize,
|
|
@@ -518,10 +524,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
518
524
|
)
|
|
519
525
|
}),
|
|
520
526
|
customer_interview: cardEntry({
|
|
521
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
527
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.CustomerInterviewCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
522
528
|
decode: decodeCustomerInterviewRow,
|
|
523
529
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
524
|
-
|
|
530
|
+
_chunkIM366HS6cjs.CustomerInterviewCard,
|
|
525
531
|
{
|
|
526
532
|
interview,
|
|
527
533
|
size: ctx.legacySize,
|
|
@@ -539,13 +545,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
539
545
|
* record, and the three props the rail sets itself are read off it.
|
|
540
546
|
*/
|
|
541
547
|
product_release: cardEntry({
|
|
542
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.ProductReleaseCard, { loading: true, size: size === "sm" ? "sm" : "lg" }),
|
|
543
549
|
decode: asRecord,
|
|
544
550
|
render: (release, ctx) => {
|
|
545
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => (
|
|
551
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => ( _chunkIM366HS6cjs.buildProductReleaseCardProps));
|
|
546
552
|
const releaseProps = buildReleaseProps(release);
|
|
547
553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
-
|
|
554
|
+
_chunkIM366HS6cjs.ProductReleaseCard,
|
|
549
555
|
{
|
|
550
556
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
551
557
|
title: str(release, "title"),
|
|
@@ -561,10 +567,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
561
567
|
webinar: programEntry("webinar"),
|
|
562
568
|
event: programEntry("event"),
|
|
563
569
|
investor_update: cardEntry({
|
|
564
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
570
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.InvestorUpdateCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
565
571
|
decode: decodeInvestorUpdateRow,
|
|
566
572
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
567
|
-
|
|
573
|
+
_chunkIM366HS6cjs.InvestorUpdateCard,
|
|
568
574
|
{
|
|
569
575
|
update,
|
|
570
576
|
size: ctx.legacySize,
|
|
@@ -579,10 +585,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
579
585
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
580
586
|
* section" rail, not this full-width row. */
|
|
581
587
|
onboarding_guide: cardEntry({
|
|
582
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
588
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.OnboardingGuideCard, { loading: true, size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
583
589
|
decode: decodeOnboardingGuideRow,
|
|
584
590
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
585
|
-
|
|
591
|
+
_chunkIM366HS6cjs.OnboardingGuideCard,
|
|
586
592
|
{
|
|
587
593
|
guide,
|
|
588
594
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -599,10 +605,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
599
605
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
600
606
|
* card in a dead <a>. */
|
|
601
607
|
what_i_shipped: cardEntry({
|
|
602
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
608
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUDLDXVY4cjs.WhatIShippedCard, { loading: true }),
|
|
603
609
|
decode: decodeEmployeeEntryRow,
|
|
604
610
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
605
|
-
|
|
611
|
+
_chunkUDLDXVY4cjs.WhatIShippedCard,
|
|
606
612
|
{
|
|
607
613
|
entry,
|
|
608
614
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -612,10 +618,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
612
618
|
}),
|
|
613
619
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
614
620
|
how_i_work: cardEntry({
|
|
615
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
621
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUDLDXVY4cjs.HowIWorkCard, { loading: true }),
|
|
616
622
|
decode: decodeEmployeeEntryRow,
|
|
617
623
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
624
|
+
_chunkUDLDXVY4cjs.HowIWorkCard,
|
|
619
625
|
{
|
|
620
626
|
entry,
|
|
621
627
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -625,10 +631,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
625
631
|
}),
|
|
626
632
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
627
633
|
ai_prompt: cardEntry({
|
|
628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
634
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUDLDXVY4cjs.AiPromptCard, { loading: true }),
|
|
629
635
|
decode: decodeEmployeeEntryRow,
|
|
630
636
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
-
|
|
637
|
+
_chunkUDLDXVY4cjs.AiPromptCard,
|
|
632
638
|
{
|
|
633
639
|
entry,
|
|
634
640
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -648,9 +654,10 @@ function DefaultLinkPropsProvider({
|
|
|
648
654
|
targetPlatform,
|
|
649
655
|
children
|
|
650
656
|
}) {
|
|
657
|
+
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
651
658
|
if (!href) return children(null);
|
|
652
|
-
const
|
|
653
|
-
return children(
|
|
659
|
+
const target = _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, runtime, href, targetPlatform);
|
|
660
|
+
return children({ href: target.href, ..._chunkDVHSYPDBcjs.newTabAnchorAttrs.call(void 0, target.isNewTab, target.href, targetPlatform) });
|
|
654
661
|
}
|
|
655
662
|
function defaultResolveHref(ref) {
|
|
656
663
|
return { href: ref.url || null, targetPlatform: _nullishCoalesce(ref.targetPlatform, () => ( null)) };
|
|
@@ -711,9 +718,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
711
718
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
712
719
|
);
|
|
713
720
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
714
|
-
const { data, dataUrl, error } =
|
|
721
|
+
const { data, dataUrl, error } = _chunkUDLDXVY4cjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
715
722
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
716
|
-
setPages(new Map(pages).set(dataUrl,
|
|
723
|
+
setPages(new Map(pages).set(dataUrl, _chunkIM366HS6cjs.extractItems.call(void 0, data)));
|
|
717
724
|
}
|
|
718
725
|
if (url === null) return { items: null, isLoading: false };
|
|
719
726
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -722,7 +729,7 @@ function gridClassFor(columns) {
|
|
|
722
729
|
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
730
|
}
|
|
724
731
|
function resolveGroupConfig(type) {
|
|
725
|
-
return _nullishCoalesce(
|
|
732
|
+
return _nullishCoalesce(_chunkUDLDXVY4cjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
726
733
|
label: type,
|
|
727
734
|
order: 999,
|
|
728
735
|
layout: "grid",
|
|
@@ -735,15 +742,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
735
742
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
736
743
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
737
744
|
function GroupHeading({ type }) {
|
|
738
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
745
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkUDLDXVY4cjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
739
746
|
}
|
|
740
747
|
function orderRailTypes(types, entityType) {
|
|
741
|
-
let ordered =
|
|
748
|
+
let ordered = _chunkUDLDXVY4cjs.orderContentRefTypes.call(void 0, types);
|
|
742
749
|
if (entityType) {
|
|
743
|
-
const canonicalEntityType =
|
|
744
|
-
const sameType = ordered.filter((t) =>
|
|
750
|
+
const canonicalEntityType = _chunkIM366HS6cjs.canonicalContentRefType.call(void 0, entityType);
|
|
751
|
+
const sameType = ordered.filter((t) => _chunkIM366HS6cjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
745
752
|
if (sameType.length > 0) {
|
|
746
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
753
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunkIM366HS6cjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
747
754
|
}
|
|
748
755
|
}
|
|
749
756
|
return ordered;
|
|
@@ -772,10 +779,10 @@ function ContentGroup({
|
|
|
772
779
|
setPagedRefsKey(refsKey);
|
|
773
780
|
setPage(1);
|
|
774
781
|
}
|
|
775
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
776
|
-
const pageRefs = refs.slice((page - 1) *
|
|
782
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkUDLDXVY4cjs.GROUP_PAGE_SIZE);
|
|
783
|
+
const pageRefs = refs.slice((page - 1) * _chunkUDLDXVY4cjs.GROUP_PAGE_SIZE, page * _chunkUDLDXVY4cjs.GROUP_PAGE_SIZE);
|
|
777
784
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
778
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
785
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPNZAAOBcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
779
786
|
_react.useEffect.call(void 0, () => {
|
|
780
787
|
onLoadingChange(type, isLoading);
|
|
781
788
|
return () => onLoadingChange(type, false);
|
|
@@ -793,7 +800,7 @@ function ContentGroup({
|
|
|
793
800
|
}
|
|
794
801
|
if (!items) return null;
|
|
795
802
|
const rowKey = (it) => {
|
|
796
|
-
const extracted =
|
|
803
|
+
const extracted = _chunkIM366HS6cjs.extractItemId.call(void 0, type, it);
|
|
797
804
|
if (extracted !== null) return extracted;
|
|
798
805
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
799
806
|
};
|
|
@@ -864,11 +871,11 @@ function RelatedContentSection({
|
|
|
864
871
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
865
872
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
866
873
|
};
|
|
867
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
874
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkUDLDXVY4cjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
868
875
|
apiBaseUrl,
|
|
869
876
|
extraParams: { authorId, ...typeFilterParams }
|
|
870
877
|
}) : null;
|
|
871
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
878
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkUDLDXVY4cjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
872
879
|
apiBaseUrl,
|
|
873
880
|
entityType,
|
|
874
881
|
entityId,
|
|
@@ -885,7 +892,7 @@ function RelatedContentSection({
|
|
|
885
892
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
886
893
|
[initialItems, suggestionsDisabled]
|
|
887
894
|
);
|
|
888
|
-
const { data, isLoading } =
|
|
895
|
+
const { data, isLoading } = _chunkUDLDXVY4cjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
889
896
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
890
897
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
891
898
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -898,7 +905,7 @@ function RelatedContentSection({
|
|
|
898
905
|
});
|
|
899
906
|
}, []);
|
|
900
907
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
901
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
908
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkIM366HS6cjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
902
909
|
[buildListUrl2, apiBaseUrl]
|
|
903
910
|
);
|
|
904
911
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _12 => _12.refs]))), () => ( []));
|
|
@@ -922,7 +929,7 @@ function RelatedContentSection({
|
|
|
922
929
|
}
|
|
923
930
|
if (!showWhenEmpty) return null;
|
|
924
931
|
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:
|
|
932
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
926
933
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
927
934
|
] });
|
|
928
935
|
}
|
|
@@ -948,7 +955,7 @@ function RelatedContentSection({
|
|
|
948
955
|
);
|
|
949
956
|
}
|
|
950
957
|
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:
|
|
958
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) }),
|
|
952
959
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
960
|
ContentGroup,
|
|
954
961
|
{
|
|
@@ -979,24 +986,24 @@ function RelatedContentSectionSkeleton({
|
|
|
979
986
|
adminCampaignCard,
|
|
980
987
|
extras
|
|
981
988
|
}) {
|
|
982
|
-
const canonicalEntityType = entityType ?
|
|
989
|
+
const canonicalEntityType = entityType ? _chunkIM366HS6cjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
983
990
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
984
991
|
/* @__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:
|
|
992
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunkUDLDXVY4cjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
986
993
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
987
994
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
988
995
|
)) })
|
|
989
996
|
] }) : null;
|
|
990
997
|
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 ?
|
|
998
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
992
999
|
unknownGroup,
|
|
993
1000
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
994
1001
|
const config = resolveGroupConfig(type);
|
|
995
|
-
const sameType = canonicalEntityType !== null &&
|
|
1002
|
+
const sameType = canonicalEntityType !== null && _chunkIM366HS6cjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
996
1003
|
const isList = config.layout === "list";
|
|
997
1004
|
const count = Math.min(
|
|
998
|
-
|
|
999
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
1005
|
+
_chunkUDLDXVY4cjs.GROUP_PAGE_SIZE,
|
|
1006
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkUDLDXVY4cjs.GROUP_PAGE_SIZE))
|
|
1000
1007
|
);
|
|
1001
1008
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1002
1009
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -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(); } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkIM366HS6cjs = require('./chunk-IM366HS6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -52,7 +52,7 @@ function ArticleAuthorByline({
|
|
|
52
52
|
proxyImageUrl,
|
|
53
53
|
className
|
|
54
54
|
}) {
|
|
55
|
-
const proxiedAvatar =
|
|
55
|
+
const proxiedAvatar = _chunkIM366HS6cjs.useProxiedImageUrl.call(void 0, avatar, { proxyImageUrl });
|
|
56
56
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
57
57
|
if (loading && !author) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ArticleAuthorBylineSkeleton, { size, className });
|
|
58
58
|
if (!author) return null;
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkZWAVMZIFcjs = require('./chunk-ZWAVMZIF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYMPPE322cjs = require('./chunk-YMPPE322.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
@@ -37,7 +37,7 @@ function FaqDocumentPage({
|
|
|
37
37
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
38
38
|
};
|
|
39
39
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
40
|
+
_chunkZWAVMZIFcjs.FaqSection,
|
|
41
41
|
{
|
|
42
42
|
initialFaqs,
|
|
43
43
|
heading: null,
|
|
@@ -53,7 +53,7 @@ function FaqDocumentPage({
|
|
|
53
53
|
skeletonNav
|
|
54
54
|
}
|
|
55
55
|
) });
|
|
56
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYMPPE322cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDVHSYPDBcjs = require('./chunk-DVHSYPDB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
@@ -49,7 +49,7 @@ function PaginationControl({
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
const handleClick = (event) => {
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkDVHSYPDBcjs.isModifierClick.call(void 0, event)) return;
|
|
53
53
|
event.preventDefault();
|
|
54
54
|
onPageChange(page);
|
|
55
55
|
};
|