@flamingo-stack/openframe-frontend-core 0.0.725 → 0.0.727
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/{chunk-F56GNKX2.js → chunk-33AFAVBF.js} +2 -2
- package/dist/{chunk-7V5KFBY2.cjs → chunk-3D2SCG2E.cjs} +16 -16
- package/dist/{chunk-B7234BE2.cjs → chunk-3N3QA47Y.cjs} +11 -11
- package/dist/{chunk-OBMWSUBK.js → chunk-3Q7ZNY4B.js} +5 -5
- package/dist/{chunk-JVHP7Y4S.js → chunk-4FQ5ZICE.js} +2 -2
- package/dist/{chunk-AI3CLDZO.cjs → chunk-AM2RHT3H.cjs} +280 -280
- package/dist/{chunk-PUADVXJD.js → chunk-AU4WWLFP.js} +1 -1
- package/dist/{chunk-RU6BTELI.cjs → chunk-BKTV3VOD.cjs} +533 -488
- package/dist/{chunk-2VOZ37BL.cjs → chunk-BMOEUIFI.cjs} +35 -35
- package/dist/{chunk-IOTAUWWF.js → chunk-C6Y22J32.js} +1 -1
- package/dist/{chunk-ZSXZE4FJ.cjs → chunk-CGL3TJ2A.cjs} +3 -3
- package/dist/{chunk-MLFS5G3V.js → chunk-CIAAU44V.js} +307 -262
- package/dist/{chunk-4ZZ4TNCY.cjs → chunk-CNBGSWLN.cjs} +9 -9
- package/dist/{chunk-AX4F35C2.js → chunk-FIKAJKPE.js} +1 -1
- package/dist/{chunk-SEVKFMKR.cjs → chunk-FLCYWEEB.cjs} +3 -3
- package/dist/{chunk-ASHRHL4W.js → chunk-GKJFSE72.js} +5 -5
- package/dist/{chunk-ASIXPRHV.js → chunk-HVMH67Z7.js} +3 -3
- package/dist/{chunk-F77J34W2.js → chunk-J274GOBJ.js} +1 -1
- package/dist/{chunk-LYQYLPPV.cjs → chunk-MAGVU2HZ.cjs} +26 -26
- package/dist/{chunk-QV4GO3GW.cjs → chunk-MGVT5RT6.cjs} +29 -56
- package/dist/{chunk-W2DXHR2R.js → chunk-N27CSEDR.js} +1 -1
- package/dist/{chunk-YPEILGVZ.cjs → chunk-N2PHC6RX.cjs} +3 -3
- package/dist/{chunk-5FVWDDX6.js → chunk-NQRFGXDG.js} +2 -2
- package/dist/{chunk-772242QR.cjs → chunk-QJVG5V46.cjs} +65 -65
- package/dist/{chunk-LR6DJY4Z.cjs → chunk-RZFTEUV4.cjs} +9 -9
- package/dist/{chunk-SE4O4HCD.cjs → chunk-U6HOC7JD.cjs} +8 -8
- package/dist/{chunk-ZZRUKEN2.js → chunk-URDJXB75.js} +3 -3
- package/dist/{chunk-MGTZ2BKY.js → chunk-VTXIY33G.js} +22 -49
- package/dist/{chunk-2SO3OJFY.cjs → chunk-WWJOQGSH.cjs} +33 -33
- package/dist/{chunk-JAKG6BY7.js → chunk-WXL5G7WC.js} +3 -3
- package/dist/{cloud-tenants-US63E2HV.js → cloud-tenants-65EUPGVC.js} +2 -2
- package/dist/{cloud-tenants-SMULXU54.cjs → cloud-tenants-PT5QPWWU.cjs} +3 -3
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/assistant-ask-prompts.d.ts +34 -14
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.d.ts +1 -1
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts +34 -7
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -4
- package/dist/components/chat/index.js +3 -5
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/faq-ask-card.d.ts +8 -11
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +35 -37
- package/dist/components/index.js +14 -16
- package/dist/components/meeting-scheduler/index.cjs +19 -19
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/product-demo/index.cjs +6 -6
- package/dist/components/product-demo/index.js +6 -6
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/index.cjs +3 -5
- package/dist/components/ui/index.js +4 -6
- package/dist/{devices-JWHGWKLK.js → devices-J253LQNQ.js} +2 -2
- package/dist/{devices-6ZURNFRB.cjs → devices-ZPVLATZA.cjs} +4 -4
- package/dist/index.cjs +7 -9
- package/dist/index.js +8 -10
- package/dist/{knowledge-CY66JZ54.cjs → knowledge-3FAF5T7Q.cjs} +4 -4
- package/dist/{knowledge-TEDPLCFX.js → knowledge-IMTMYURI.js} +2 -2
- package/dist/{logs-S46THPPD.js → logs-55GOSGVE.js} +2 -2
- package/dist/{logs-MO357RE7.cjs → logs-UL7BQEXP.cjs} +11 -11
- package/dist/{policies-BUXT7DKF.js → policies-KRDF563O.js} +2 -2
- package/dist/{policies-GSH4K5YP.cjs → policies-O5F2XSCY.cjs} +7 -7
- package/dist/{software-update-YKS6KLX2.js → software-update-NXSC4OVM.js} +2 -2
- package/dist/{software-update-2ETT35NM.cjs → software-update-R2ASCRWP.cjs} +6 -6
- package/dist/utils/index.cjs +17 -18
- package/dist/utils/index.js +17 -18
- package/dist/utils/source-grouping.d.ts +15 -5
- package/dist/utils/source-grouping.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/assistant-ask-prompts.tsx +84 -39
- package/src/components/chat/entity-cards/dispatch.tsx +47 -58
- package/src/components/chat/hooks/index.ts +3 -2
- package/src/components/chat/hooks/use-ask-prompts.ts +140 -56
- package/src/components/faq/faq-ask-card.tsx +22 -67
- package/src/utils/source-grouping.ts +24 -14
- package/src/utils/source-icons.ts +16 -16
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkAM2RHT3Hcjs = require('./chunk-AM2RHT3H.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ var _chunk4LY6R4TNcjs = require('./chunk-4LY6R4TN.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkBKTV3VODcjs = require('./chunk-BKTV3VOD.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -115,7 +115,7 @@ function ContactForm({
|
|
|
115
115
|
successToastMessage = "Redirecting you to join our community...",
|
|
116
116
|
rescue: rescueForm = null
|
|
117
117
|
} = {}) {
|
|
118
|
-
const attachments =
|
|
118
|
+
const attachments = _chunkBKTV3VODcjs.useChatAttachments.call(void 0, );
|
|
119
119
|
const builtInSubmission = _chunk4LY6R4TNcjs.useContactSubmission.call(void 0, {
|
|
120
120
|
userId,
|
|
121
121
|
successRedirectUrl,
|
|
@@ -199,13 +199,13 @@ function ContactForm({
|
|
|
199
199
|
);
|
|
200
200
|
}),
|
|
201
201
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
202
|
-
...
|
|
202
|
+
..._chunkBKTV3VODcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
203
203
|
children: [
|
|
204
204
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
205
205
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
206
206
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
207
207
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
208
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
208
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.HoneypotField, { ...honeypotInputProps }),
|
|
209
209
|
extraTopField,
|
|
210
210
|
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: [
|
|
211
211
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -330,7 +330,7 @@ function ContactForm({
|
|
|
330
330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXXBLN4BPcjs.RequiredMark, {})
|
|
331
331
|
] }),
|
|
332
332
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
333
|
-
|
|
333
|
+
_chunkAM2RHT3Hcjs.Textarea,
|
|
334
334
|
{
|
|
335
335
|
id: "message",
|
|
336
336
|
...register("message"),
|
|
@@ -345,7 +345,7 @@ function ContactForm({
|
|
|
345
345
|
] }),
|
|
346
346
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
347
347
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
348
|
-
|
|
348
|
+
_chunkBKTV3VODcjs.ChatAttachmentChipStrip,
|
|
349
349
|
{
|
|
350
350
|
attachments: attachments.attachments,
|
|
351
351
|
onRemove: attachments.removeAttachment,
|
|
@@ -354,7 +354,7 @@ function ContactForm({
|
|
|
354
354
|
),
|
|
355
355
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
|
-
|
|
357
|
+
_chunkBKTV3VODcjs.ChatAttachmentAddButton,
|
|
358
358
|
{
|
|
359
359
|
attachmentsEnabled: true,
|
|
360
360
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useOptionalTicketLive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C6Y22J32.js";
|
|
5
5
|
import {
|
|
6
6
|
AppLayoutDrawerContainerContext,
|
|
7
7
|
AppLayoutDrawerCoordinationContext,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
UnreadCountBadge,
|
|
13
13
|
UnreadDot,
|
|
14
14
|
useOptionalNotifications
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N27CSEDR.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveActiveSection,
|
|
18
18
|
useActiveSection,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
OVERLAY_BACKDROP_CLASS,
|
|
29
29
|
buildTicketOpenHref,
|
|
30
30
|
useIsHydrated
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CIAAU44V.js";
|
|
32
32
|
import {
|
|
33
33
|
useHeaderHeight
|
|
34
34
|
} from "./chunk-4I3K6LEH.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PageShell
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N27CSEDR.js";
|
|
5
5
|
import {
|
|
6
6
|
PageLayout
|
|
7
7
|
} from "./chunk-TU5LEF6A.js";
|
|
@@ -9,18 +9,13 @@ import {
|
|
|
9
9
|
useScrollToHash
|
|
10
10
|
} from "./chunk-2TXGR7IK.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
AskCard,
|
|
12
|
+
AssistantAskPrompts,
|
|
14
13
|
assistantAvailable,
|
|
15
14
|
faqItemAnchor,
|
|
16
15
|
faqSectionSlug,
|
|
17
|
-
parseFaqHash
|
|
18
|
-
|
|
19
|
-
useAssistantOpen,
|
|
20
|
-
useShownAskPromptIds
|
|
21
|
-
} from "./chunk-MLFS5G3V.js";
|
|
16
|
+
parseFaqHash
|
|
17
|
+
} from "./chunk-CIAAU44V.js";
|
|
22
18
|
import {
|
|
23
|
-
AssistantRuntimeContext,
|
|
24
19
|
useAssistantRuntime
|
|
25
20
|
} from "./chunk-AFTRPEXO.js";
|
|
26
21
|
import {
|
|
@@ -50,7 +45,7 @@ import {
|
|
|
50
45
|
} from "./chunk-7RXWKTAP.js";
|
|
51
46
|
|
|
52
47
|
// src/components/faq/faq-section.tsx
|
|
53
|
-
import { useCallback, useEffect, useMemo
|
|
48
|
+
import { useCallback, useEffect, useMemo, useRef, useState as useState3 } from "react";
|
|
54
49
|
|
|
55
50
|
// src/components/faq-accordion.tsx
|
|
56
51
|
import { useState } from "react";
|
|
@@ -119,51 +114,29 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
119
114
|
}
|
|
120
115
|
|
|
121
116
|
// src/components/faq/faq-ask-card.tsx
|
|
122
|
-
import {
|
|
117
|
+
import { useState as useState2 } from "react";
|
|
123
118
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
124
|
-
var DEFAULT_ASK_CARD = {
|
|
125
|
-
title: "Still deciding?",
|
|
126
|
-
description: "{assistant} answers from our docs and customer stories."
|
|
127
|
-
};
|
|
128
119
|
var PICK_ROOT_MARGIN = "600px";
|
|
129
|
-
var fillAssistant = (text, name) => text.split("{assistant}").join(name);
|
|
130
120
|
function faqAskCardShown(assistant) {
|
|
131
121
|
return assistantAvailable(assistant) && !!assistant.name;
|
|
132
122
|
}
|
|
133
123
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
134
|
-
const assistant = useAssistantRuntime();
|
|
135
124
|
const { ref, inView } = useInView({ rootMargin: PICK_ROOT_MARGIN });
|
|
136
125
|
const [reached, setReached] = useState2(false);
|
|
137
126
|
if (inView && !reached) setReached(true);
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const slots = count ?? assistant?.askCard?.count ?? ASK_PROMPTS_DEFAULT_COUNT;
|
|
141
|
-
const { prompts, isLoading, supported } = useAskPrompts({
|
|
142
|
-
topic,
|
|
143
|
-
count: slots,
|
|
144
|
-
exclude: excluded ?? void 0,
|
|
145
|
-
enabled: reached && excluded !== null
|
|
146
|
-
});
|
|
147
|
-
const open = useAssistantOpen(topic, onOpen);
|
|
148
|
-
const scoped = useMemo(() => assistant ? { ...assistant, open } : null, [assistant, open]);
|
|
149
|
-
if (!faqAskCardShown(assistant) || !assistant.name) return null;
|
|
150
|
-
const name = assistant.name;
|
|
151
|
-
const cardDescription = description ?? assistant.askCard?.description ?? DEFAULT_ASK_CARD.description;
|
|
152
|
-
return /* @__PURE__ */ jsx2(AssistantRuntimeContext.Provider, { value: scoped, children: /* @__PURE__ */ jsx2("div", { ref, children: /* @__PURE__ */ jsx2(
|
|
153
|
-
AskCard,
|
|
127
|
+
return /* @__PURE__ */ jsx2("div", { ref, children: /* @__PURE__ */ jsx2(
|
|
128
|
+
AssistantAskPrompts,
|
|
154
129
|
{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
onOpen: open,
|
|
164
|
-
onAsk: (prompt) => assistant.onAsk?.({ promptId: prompt.id, topic })
|
|
130
|
+
variant: "card",
|
|
131
|
+
topic,
|
|
132
|
+
count,
|
|
133
|
+
exclude,
|
|
134
|
+
enabled: reached,
|
|
135
|
+
title,
|
|
136
|
+
description,
|
|
137
|
+
onOpen
|
|
165
138
|
}
|
|
166
|
-
) })
|
|
139
|
+
) });
|
|
167
140
|
}
|
|
168
141
|
|
|
169
142
|
// src/components/faq/json-ld.ts
|
|
@@ -229,7 +202,7 @@ function GroupedFaqList({
|
|
|
229
202
|
aside
|
|
230
203
|
}) {
|
|
231
204
|
const CategoryHeading = categoryHeadingAs;
|
|
232
|
-
const navGroups =
|
|
205
|
+
const navGroups = useMemo(() => groups.filter((g) => g.slug), [groups]);
|
|
233
206
|
const [activeSlug, setActiveSlug] = useState3(navGroups[0]?.slug ?? null);
|
|
234
207
|
const slugKey = navGroups.map((g) => g.slug).join("|");
|
|
235
208
|
const navGroupsRef = useRef(navGroups);
|
|
@@ -271,7 +244,7 @@ function GroupedFaqList({
|
|
|
271
244
|
window.addEventListener("hashchange", refresh);
|
|
272
245
|
return () => window.removeEventListener("hashchange", refresh);
|
|
273
246
|
}, []);
|
|
274
|
-
const defaultOpenByGroupKey =
|
|
247
|
+
const defaultOpenByGroupKey = useMemo(() => {
|
|
275
248
|
if (hashTarget?.kind !== "item") return null;
|
|
276
249
|
const targetId = hashTarget.rawId;
|
|
277
250
|
const result = /* @__PURE__ */ new Map();
|
|
@@ -368,13 +341,13 @@ function FaqSection({
|
|
|
368
341
|
const askTopic = ask === false ? void 0 : ask?.topic || entityType;
|
|
369
342
|
const aside = asideProp ?? (ask !== false && askTopic && faqAskCardShown(assistant) ? /* @__PURE__ */ jsx3(FaqAskCard, { ...ask, topic: askTopic }) : void 0);
|
|
370
343
|
const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl);
|
|
371
|
-
const initialData =
|
|
344
|
+
const initialData = useMemo(
|
|
372
345
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
373
346
|
[initialFaqs]
|
|
374
347
|
);
|
|
375
348
|
const { data, isLoading, error } = useSelfFetch(url, { initialData });
|
|
376
|
-
const faqs =
|
|
377
|
-
const groups =
|
|
349
|
+
const faqs = useMemo(() => data?.faqs ?? [], [data?.faqs]);
|
|
350
|
+
const groups = useMemo(() => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
378
351
|
const headingNode = heading === void 0 ? /* @__PURE__ */ jsx3("h2", { className: SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
379
352
|
if (error) return null;
|
|
380
353
|
if (!isLoading && faqs.length === 0) return null;
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCGL3TJ2Acjs = require('./chunk-CGL3TJ2A.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkFLCYWEEBcjs = require('./chunk-FLCYWEEB.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkCNBGSWLNcjs = require('./chunk-CNBGSWLN.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkAM2RHT3Hcjs = require('./chunk-AM2RHT3H.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkU6LRRG2Ecjs = require('./chunk-U6LRRG2E.cjs');
|
|
@@ -27,7 +27,7 @@ var _chunkU6LRRG2Ecjs = require('./chunk-U6LRRG2E.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkBKTV3VODcjs = require('./chunk-BKTV3VOD.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -339,8 +339,8 @@ function toDocContent(value, requestedPath) {
|
|
|
339
339
|
}
|
|
340
340
|
function useDocumentTree(config, initialPath) {
|
|
341
341
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
342
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
343
|
-
const cleanInitialPath =
|
|
342
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkBKTV3VODcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
343
|
+
const cleanInitialPath = _chunkBKTV3VODcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
344
344
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
345
345
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
346
346
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -364,12 +364,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
364
364
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
365
365
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
366
366
|
}
|
|
367
|
-
pathFromUrl =
|
|
367
|
+
pathFromUrl = _chunkBKTV3VODcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
368
368
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
369
369
|
setSelectedPath(pathFromUrl);
|
|
370
370
|
if (pathFromUrl) {
|
|
371
371
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
372
|
-
setExpandedNodes(new Set(
|
|
372
|
+
setExpandedNodes(new Set(_chunkBKTV3VODcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
373
373
|
}
|
|
374
374
|
setTimeout(() => {
|
|
375
375
|
scrollToContent();
|
|
@@ -387,7 +387,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
387
387
|
setSelectedPath(cleanInitialPath);
|
|
388
388
|
if (cleanInitialPath) {
|
|
389
389
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
390
|
-
setExpandedNodes(new Set(
|
|
390
|
+
setExpandedNodes(new Set(_chunkBKTV3VODcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
391
391
|
}
|
|
392
392
|
setExternalNavCount((n) => n + 1);
|
|
393
393
|
}
|
|
@@ -412,7 +412,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
412
412
|
if (cleanInitialPath) {
|
|
413
413
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
414
414
|
if (pathForExpansion) {
|
|
415
|
-
setExpandedNodes(new Set(
|
|
415
|
+
setExpandedNodes(new Set(_chunkBKTV3VODcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
416
416
|
}
|
|
417
417
|
} else if (nodes.length > 0) {
|
|
418
418
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -452,7 +452,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
452
452
|
setContent(null);
|
|
453
453
|
return;
|
|
454
454
|
}
|
|
455
|
-
const probe =
|
|
455
|
+
const probe = _chunkBKTV3VODcjs.findDocNodeByPath.call(void 0, _chunkBKTV3VODcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
456
456
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
457
457
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
458
458
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -509,7 +509,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
509
509
|
if (selectedPath === "") {
|
|
510
510
|
pathToFetch = folderIndexFile;
|
|
511
511
|
} else {
|
|
512
|
-
const node =
|
|
512
|
+
const node = _chunkBKTV3VODcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
513
513
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
514
514
|
const firstDocPath = findFirstDocPath(node);
|
|
515
515
|
if (!firstDocPath) {
|
|
@@ -550,16 +550,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
550
550
|
if (node.type === "folder") {
|
|
551
551
|
setExpandedNodes((prev) => {
|
|
552
552
|
if (prev.has(node.id)) {
|
|
553
|
-
const ancestorIds =
|
|
553
|
+
const ancestorIds = _chunkBKTV3VODcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
554
554
|
ancestorIds.pop();
|
|
555
555
|
return new Set(ancestorIds);
|
|
556
556
|
}
|
|
557
|
-
return new Set(
|
|
557
|
+
return new Set(_chunkBKTV3VODcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
558
558
|
});
|
|
559
559
|
} else {
|
|
560
560
|
const lastSlash = node.path.lastIndexOf("/");
|
|
561
561
|
if (lastSlash > 0) {
|
|
562
|
-
setExpandedNodes(new Set(
|
|
562
|
+
setExpandedNodes(new Set(_chunkBKTV3VODcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
lastFetchedPath.current = null;
|
|
@@ -574,7 +574,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
574
574
|
const hashIndex = path.indexOf("#");
|
|
575
575
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
576
576
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
577
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
577
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkBKTV3VODcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
578
578
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
579
579
|
_chunkK2JUJ37Dcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkK2JUJ37Dcjs.HUB_HEADER_OFFSET_PX });
|
|
580
580
|
return;
|
|
@@ -638,15 +638,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
638
638
|
return docNavigation.register({
|
|
639
639
|
baseRoute: normalizedBaseRoute,
|
|
640
640
|
findNodeByPath: (path) => {
|
|
641
|
-
const clean =
|
|
642
|
-
return _nullishCoalesce(
|
|
641
|
+
const clean = _chunkBKTV3VODcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
642
|
+
return _nullishCoalesce(_chunkBKTV3VODcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
643
643
|
},
|
|
644
644
|
selectNode
|
|
645
645
|
});
|
|
646
646
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
647
647
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
648
648
|
if (!selectedPath || structure.length === 0) return false;
|
|
649
|
-
const node =
|
|
649
|
+
const node = _chunkBKTV3VODcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
650
650
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
651
651
|
}, [selectedPath, structure]);
|
|
652
652
|
return {
|
|
@@ -726,14 +726,14 @@ function DocViewerContent({
|
|
|
726
726
|
},
|
|
727
727
|
docPath
|
|
728
728
|
);
|
|
729
|
-
const { activeSection, handleSectionClick } =
|
|
729
|
+
const { activeSection, handleSectionClick } = _chunkFLCYWEEBcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
730
730
|
const docNav = useDocNavigation();
|
|
731
731
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
732
732
|
const backCfg = backButton === false ? null : {
|
|
733
733
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
734
734
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
735
735
|
};
|
|
736
|
-
const docSearch =
|
|
736
|
+
const docSearch = _chunkCNBGSWLNcjs.useDocSearch.call(void 0, {
|
|
737
737
|
source: chatSource,
|
|
738
738
|
baseRoute,
|
|
739
739
|
searchEndpoint,
|
|
@@ -757,7 +757,7 @@ function DocViewerContent({
|
|
|
757
757
|
onResolveLink: resolveLink
|
|
758
758
|
});
|
|
759
759
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
760
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
760
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkBKTV3VODcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
761
761
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
762
762
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
763
763
|
const showStickyNav = isMarkdownContent;
|
|
@@ -770,7 +770,7 @@ function DocViewerContent({
|
|
|
770
770
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
771
771
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU6LRRG2Ecjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
772
772
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
773
|
-
|
|
773
|
+
_chunkCNBGSWLNcjs.DocSearchBar,
|
|
774
774
|
{
|
|
775
775
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
776
776
|
query: docSearch.query,
|
|
@@ -789,9 +789,9 @@ function DocViewerContent({
|
|
|
789
789
|
] })
|
|
790
790
|
] }) }),
|
|
791
791
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
792
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
792
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
793
793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
794
|
-
|
|
794
|
+
_chunkFLCYWEEBcjs.MobileNavigationDropdown,
|
|
795
795
|
{
|
|
796
796
|
nodes: structure,
|
|
797
797
|
selectedPath,
|
|
@@ -805,7 +805,7 @@ function DocViewerContent({
|
|
|
805
805
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
806
806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
807
807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
808
|
-
|
|
808
|
+
_chunkFLCYWEEBcjs.MultiLevelNavigation,
|
|
809
809
|
{
|
|
810
810
|
nodes: structure,
|
|
811
811
|
selectedPath,
|
|
@@ -844,7 +844,7 @@ function DocViewerContent({
|
|
|
844
844
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
845
845
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
846
846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
847
|
-
|
|
847
|
+
_chunkFLCYWEEBcjs.StickySectionNav,
|
|
848
848
|
{
|
|
849
849
|
sections: stickyNavSections,
|
|
850
850
|
activeSection,
|
|
@@ -859,7 +859,7 @@ function DocViewerContent({
|
|
|
859
859
|
) })
|
|
860
860
|
] })
|
|
861
861
|
] }) }) });
|
|
862
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
862
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
// src/components/docs/skeletons.tsx
|
|
@@ -955,11 +955,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
955
955
|
|
|
956
956
|
var DEFAULT_TITLE = "Documents";
|
|
957
957
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
958
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
959
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCGL3TJ2Acjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
959
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCGL3TJ2Acjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
960
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
961
961
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
|
|
962
|
+
_chunkCGL3TJ2Acjs.FileDownloadCard,
|
|
963
963
|
{
|
|
964
964
|
fileName: content.fileName,
|
|
965
965
|
mimeType: content.mimeType,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
DocSearchBar,
|
|
8
8
|
useDocSearch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NQRFGXDG.js";
|
|
10
10
|
import {
|
|
11
11
|
EntityTagBadges,
|
|
12
12
|
FilterPillRow,
|
|
13
13
|
LoadError,
|
|
14
14
|
PageShell,
|
|
15
15
|
RichMarkdownRenderer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-N27CSEDR.js";
|
|
17
17
|
import {
|
|
18
18
|
PageLayout
|
|
19
19
|
} from "./chunk-TU5LEF6A.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
VideoBitesStrip,
|
|
23
23
|
resolveContentHref,
|
|
24
24
|
useCaptions
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CIAAU44V.js";
|
|
26
26
|
import {
|
|
27
27
|
useRouter,
|
|
28
28
|
useSearchParams
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-CYUUHFXL.js";
|
|
10
10
|
import {
|
|
11
11
|
TenantsTableView
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N27CSEDR.js";
|
|
13
13
|
import "./chunk-KS3YLYVL.js";
|
|
14
14
|
import "./chunk-LQYXMEYF.js";
|
|
15
15
|
import "./chunk-4JPLYOS6.js";
|
|
@@ -20,7 +20,7 @@ import "./chunk-HFL2F4RM.js";
|
|
|
20
20
|
import "./chunk-YYYVS7CX.js";
|
|
21
21
|
import "./chunk-3UBWDR65.js";
|
|
22
22
|
import "./chunk-PLWMIU72.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-CIAAU44V.js";
|
|
24
24
|
import "./chunk-5D2K7TFT.js";
|
|
25
25
|
import "./chunk-AFTRPEXO.js";
|
|
26
26
|
import "./chunk-JXJFUGJY.js";
|
|
@@ -9,7 +9,7 @@ var _chunkII4QMH26cjs = require('./chunk-II4QMH26.cjs');
|
|
|
9
9
|
var _chunkKHXZFLINcjs = require('./chunk-KHXZFLIN.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkAM2RHT3Hcjs = require('./chunk-AM2RHT3H.cjs');
|
|
13
13
|
require('./chunk-ABSWD4PQ.cjs');
|
|
14
14
|
require('./chunk-HQQE74RO.cjs');
|
|
15
15
|
require('./chunk-DEY6XXGO.cjs');
|
|
@@ -20,7 +20,7 @@ require('./chunk-MZ4KBSH7.cjs');
|
|
|
20
20
|
require('./chunk-A6P6DHEZ.cjs');
|
|
21
21
|
require('./chunk-BYUIFT7Q.cjs');
|
|
22
22
|
require('./chunk-LX22Y43B.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-BKTV3VOD.cjs');
|
|
24
24
|
require('./chunk-HP4UUBJC.cjs');
|
|
25
25
|
require('./chunk-EWPR7662.cjs');
|
|
26
26
|
require('./chunk-NJV3LIDE.cjs');
|
|
@@ -110,7 +110,7 @@ var getHref = () => "#";
|
|
|
110
110
|
function CloudTenantsScreen(_props) {
|
|
111
111
|
const cast = _chunkII4QMH26cjs.useProductDemoCast.call(void 0, );
|
|
112
112
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
113
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
113
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
114
114
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkU6HOC7JDcjs = require('../../chunk-U6HOC7JD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkAM2RHT3Hcjs = require('../../chunk-AM2RHT3H.cjs');
|
|
11
11
|
require('../../chunk-ABSWD4PQ.cjs');
|
|
12
12
|
require('../../chunk-HQQE74RO.cjs');
|
|
13
13
|
require('../../chunk-DEY6XXGO.cjs');
|
|
@@ -22,7 +22,7 @@ require('../../chunk-LX22Y43B.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkBKTV3VODcjs = require('../../chunk-BKTV3VOD.cjs');
|
|
26
26
|
require('../../chunk-HP4UUBJC.cjs');
|
|
27
27
|
require('../../chunk-EWPR7662.cjs');
|
|
28
28
|
require('../../chunk-NJV3LIDE.cjs');
|
|
@@ -110,9 +110,9 @@ function ShareExperienceSection({
|
|
|
110
110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h2", children: howItWorksTitle }),
|
|
111
111
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4", children: howItWorksBody })
|
|
112
112
|
] }),
|
|
113
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
113
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAM2RHT3Hcjs.BenefitCardGrid, { columns: 4, children: [
|
|
114
114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
115
|
-
|
|
115
|
+
_chunkAM2RHT3Hcjs.BenefitCard,
|
|
116
116
|
{
|
|
117
117
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLLSUVPQCcjs.G2Icon, { width: 24, height: 24 }) }),
|
|
118
118
|
title: "G2",
|
|
@@ -121,7 +121,7 @@ function ShareExperienceSection({
|
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
124
|
-
|
|
124
|
+
_chunkAM2RHT3Hcjs.BenefitCard,
|
|
125
125
|
{
|
|
126
126
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLLSUVPQCcjs.CapterraIcon, { width: 24, height: 24 }) }),
|
|
127
127
|
title: "Capterra",
|
|
@@ -130,7 +130,7 @@ function ShareExperienceSection({
|
|
|
130
130
|
}
|
|
131
131
|
),
|
|
132
132
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
133
|
-
|
|
133
|
+
_chunkAM2RHT3Hcjs.BenefitCard,
|
|
134
134
|
{
|
|
135
135
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLLSUVPQCcjs.TrustpilotIcon, { width: 24, height: 24 }) }),
|
|
136
136
|
title: "TrustPilot",
|
|
@@ -139,7 +139,7 @@ function ShareExperienceSection({
|
|
|
139
139
|
}
|
|
140
140
|
),
|
|
141
141
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
142
|
-
|
|
142
|
+
_chunkAM2RHT3Hcjs.BenefitCard,
|
|
143
143
|
{
|
|
144
144
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLLSUVPQCcjs.GetAppIcon, { width: 24, height: 24 }) }),
|
|
145
145
|
title: "GetApp",
|
|
@@ -148,7 +148,7 @@ function ShareExperienceSection({
|
|
|
148
148
|
}
|
|
149
149
|
)
|
|
150
150
|
] }),
|
|
151
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
151
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU6HOC7JDcjs.ContactForm, { ...DEFAULT_CONTACT_FORM_PROPS, ...contactFormProps })
|
|
152
152
|
] }) })
|
|
153
153
|
] });
|
|
154
154
|
}
|
|
@@ -158,10 +158,10 @@ function ShareExperienceSection({
|
|
|
158
158
|
function EntityQuotesPanel({ quotes, className }) {
|
|
159
159
|
if (!quotes || quotes.length === 0) return null;
|
|
160
160
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
161
|
-
|
|
161
|
+
_chunkAM2RHT3Hcjs.StackedRowsPanel,
|
|
162
162
|
{
|
|
163
163
|
className,
|
|
164
|
-
title: `${
|
|
164
|
+
title: `${_chunkBKTV3VODcjs.ENTITY_QUOTES_TITLE} \xB7 ${quotes.length}`,
|
|
165
165
|
rows: quotes.map((q) => ({
|
|
166
166
|
id: q.key,
|
|
167
167
|
columns: [
|
|
@@ -187,7 +187,7 @@ function EntityQuotesPanel({ quotes, className }) {
|
|
|
187
187
|
function QuoteCardsStrip({ quotes, className }) {
|
|
188
188
|
if (quotes.length === 0) return null;
|
|
189
189
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
190
|
-
|
|
190
|
+
_chunkBKTV3VODcjs.CardsStrip,
|
|
191
191
|
{
|
|
192
192
|
className,
|
|
193
193
|
showTitle: false,
|
|
@@ -202,8 +202,8 @@ function QuoteCardsStrip({ quotes, className }) {
|
|
|
202
202
|
onPointerLeave: ctx.isTouch ? void 0 : () => ctx.onDeactivate(ctx.cardKey),
|
|
203
203
|
className: "relative shrink-0 rounded-md border-ods-border bg-ods-card p-[var(--spacing-system-sf)] shadow-none hover:border-ods-border-hover",
|
|
204
204
|
children: [
|
|
205
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
206
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
205
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAM2RHT3Hcjs.PersonCell, { size: "lg", name: `"${quote.text}"`, secondary: quote.attribution, avatarUrl: quote.logoUrl }),
|
|
206
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBKTV3VODcjs.CardHitLayer, { href: quote.href, label: `${quote.text}, ${quote.attribution}`, decorative: ctx.isClone })
|
|
207
207
|
]
|
|
208
208
|
},
|
|
209
209
|
ctx.cardKey
|