@flamingo-stack/openframe-frontend-core 0.0.799 → 0.0.800
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-HB7FVY46.cjs → chunk-3C6JR5Z5.cjs} +32 -32
- package/dist/{chunk-UFCKY7OL.cjs → chunk-5LTKE6D3.cjs} +16 -16
- package/dist/{chunk-CS2KLF4O.cjs → chunk-5PDOKPBF.cjs} +13 -13
- package/dist/{chunk-IJGIWG6G.cjs → chunk-CDLOQCJC.cjs} +4 -4
- package/dist/{chunk-6CB3AXZM.cjs → chunk-CM2UGR4I.cjs} +30 -30
- package/dist/{chunk-2KEBGXA4.cjs → chunk-DUSCG2EO.cjs} +4 -4
- package/dist/{chunk-FIKIPO4F.cjs → chunk-FAUVDMH4.cjs} +1 -1
- package/dist/{chunk-PPORXZI7.cjs → chunk-FCT7VKWG.cjs} +25 -25
- package/dist/{chunk-SDV335EO.cjs → chunk-FFRFKWTZ.cjs} +4 -4
- package/dist/{chunk-XJD7IZR2.cjs → chunk-FS4TVAE7.cjs} +48 -48
- package/dist/{chunk-BSBCZIPQ.cjs → chunk-IX2D26OR.cjs} +39 -39
- package/dist/{chunk-TETW5NR4.cjs → chunk-KH5DRO4V.cjs} +3 -3
- package/dist/{chunk-AVAE5B2A.cjs → chunk-KVGWOJCX.cjs} +2 -2
- package/dist/{chunk-B3X4J4HQ.cjs → chunk-LTOSJI6B.cjs} +14 -14
- package/dist/{chunk-GRNTIKPD.cjs → chunk-OEEFUB25.cjs} +53 -38
- package/dist/{chunk-6EDOASF4.cjs → chunk-OGUBSDU5.cjs} +11 -11
- package/dist/{chunk-3MRK7X6Z.cjs → chunk-OUKKLSME.cjs} +3 -3
- package/dist/{chunk-PO5IIN4S.cjs → chunk-PQNRSUQ6.cjs} +11 -11
- package/dist/{chunk-DBRXZC2I.cjs → chunk-PZVBTLLQ.cjs} +136 -129
- package/dist/{chunk-247LDSQE.cjs → chunk-S7CBD6KF.cjs} +61 -61
- package/dist/{chunk-O6KQ64RI.cjs → chunk-UYGXJ5SQ.cjs} +2 -2
- package/dist/{chunk-4RK62AMV.cjs → chunk-WWWCFNKI.cjs} +68 -68
- package/dist/{chunk-FDDM5Z52.cjs → chunk-XAJPXPQ6.cjs} +2 -2
- package/dist/{chunk-ZOK4OWMJ.cjs → chunk-Y5XHMEBB.cjs} +2 -2
- package/dist/{chunk-T5OCU3EL.cjs → chunk-ZPVFFPQM.cjs} +4 -4
- package/dist/{cloud-tenants-BQAVRN44.cjs → cloud-tenants-S3BDIJHM.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +82 -82
- package/dist/components/index.cjs +52 -52
- package/dist/components/layout/page-heading.js +1 -1
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/fade-preview.d.ts.map +1 -1
- package/dist/components/ui/fade-preview.js +9 -2
- package/dist/components/ui/index.cjs +6 -6
- package/dist/{devices-KDT5ZGSG.cjs → devices-C6OOVBJK.cjs} +7 -7
- package/dist/{embeddable-chat-ODKTSW3C.cjs → embeddable-chat-2EBDLEVA.cjs} +62 -62
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-4NLP77HP.cjs → knowledge-YA5SFLQP.cjs} +7 -7
- package/dist/{logs-U6VMTY4N.cjs → logs-LQX2CNVB.cjs} +14 -14
- package/dist/{policies-TBLFBRFM.cjs → policies-LWAUO6NR.cjs} +10 -10
- package/dist/{scripts-ZMNJWX7I.cjs → scripts-W46RQ64X.cjs} +11 -11
- package/dist/{software-update-Q5AEQ4A4.cjs → software-update-OVR26DUF.cjs} +9 -9
- package/dist/utils/index.cjs +16 -1
- package/dist/utils/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +16 -1
- package/package.json +1 -1
- package/src/components/layout/page-heading.tsx +3 -1
- package/src/components/ui/fade-preview.tsx +13 -2
- package/src/utils/markdown-to-plain.ts +23 -4
|
@@ -6,7 +6,7 @@ var _chunkBWR5ACK3cjs = require('./chunk-BWR5ACK3.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkFCT7VKWGcjs = require('./chunk-FCT7VKWG.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -47,7 +47,7 @@ var _chunk5OG5ZTNMcjs = require('./chunk-5OG5ZTNM.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkYBTORXFYcjs = require('./chunk-YBTORXFY.cjs');
|
|
@@ -169,31 +169,31 @@ CveLink.displayName = "CveLink";
|
|
|
169
169
|
// src/components/platform/ShellTypeBadge.tsx
|
|
170
170
|
|
|
171
171
|
var shellIconMap = {
|
|
172
|
-
[
|
|
172
|
+
[_chunkFCT7VKWGcjs.ShellTypeValues.POWERSHELL]: {
|
|
173
173
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
174
174
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
175
175
|
},
|
|
176
|
-
[
|
|
176
|
+
[_chunkFCT7VKWGcjs.ShellTypeValues.CMD]: {
|
|
177
177
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
178
178
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
179
179
|
},
|
|
180
|
-
[
|
|
180
|
+
[_chunkFCT7VKWGcjs.ShellTypeValues.BASH]: {
|
|
181
181
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
182
182
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
183
183
|
},
|
|
184
|
-
[
|
|
184
|
+
[_chunkFCT7VKWGcjs.ShellTypeValues.PYTHON]: {
|
|
185
185
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
186
186
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
187
187
|
},
|
|
188
|
-
[
|
|
188
|
+
[_chunkFCT7VKWGcjs.ShellTypeValues.NUSHELL]: {
|
|
189
189
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
190
190
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
191
191
|
},
|
|
192
|
-
[
|
|
192
|
+
[_chunkFCT7VKWGcjs.ShellTypeValues.DENO]: {
|
|
193
193
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
194
194
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
195
195
|
},
|
|
196
|
-
[
|
|
196
|
+
[_chunkFCT7VKWGcjs.ShellTypeValues.SHELL]: {
|
|
197
197
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
198
198
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
199
199
|
}
|
|
@@ -204,7 +204,7 @@ var defaultIconConfig = {
|
|
|
204
204
|
};
|
|
205
205
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
206
206
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
207
|
-
const label =
|
|
207
|
+
const label = _chunkFCT7VKWGcjs.getShellLabel.call(void 0, normalizedType);
|
|
208
208
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
209
209
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
210
210
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -220,7 +220,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
220
220
|
if (!platforms || platforms.length === 0) {
|
|
221
221
|
return "All Platforms";
|
|
222
222
|
}
|
|
223
|
-
return platforms.map((platform) =>
|
|
223
|
+
return platforms.map((platform) => _chunkFCT7VKWGcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
224
224
|
}
|
|
225
225
|
function InfoCell({ label, value, avatar, className }) {
|
|
226
226
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -240,7 +240,7 @@ var ScriptInfoSection = ({
|
|
|
240
240
|
author,
|
|
241
241
|
className
|
|
242
242
|
}) => {
|
|
243
|
-
const shellLabel =
|
|
243
|
+
const shellLabel = _chunkFCT7VKWGcjs.getShellLabel.call(void 0, shellType);
|
|
244
244
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
245
245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
246
246
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -288,7 +288,7 @@ function OnboardingStepCard({
|
|
|
288
288
|
onSkip();
|
|
289
289
|
};
|
|
290
290
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
291
|
-
|
|
291
|
+
_chunkFAUVDMH4cjs.InteractiveCard,
|
|
292
292
|
{
|
|
293
293
|
clickable: false,
|
|
294
294
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
@@ -443,7 +443,7 @@ function OnboardingWalkthrough({
|
|
|
443
443
|
const isAllComplete = allStepsComplete(steps);
|
|
444
444
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
445
445
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start justify-between gap-3 md:flex-row md:items-center md:gap-0", children: [
|
|
446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkFAUVDMH4cjs.SECTION_HEADING_CLASS, children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) }),
|
|
447
447
|
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-[48px] w-full rounded-[6px] md:w-[160px]" }) : isAllComplete ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "accent", onClick: handleDismiss, className: "w-full md:w-auto", children: "Close Onboarding" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", onClick: handleDismiss, className: "w-full md:w-auto", children: "Skip Onboarding" })
|
|
448
448
|
] }),
|
|
449
449
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, spacing), children: steps.map((step) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -292,7 +292,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
292
292
|
|
|
293
293
|
|
|
294
294
|
|
|
295
|
-
var
|
|
295
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
@@ -566,6 +566,21 @@ function stripInlineMarkdown(s) {
|
|
|
566
566
|
}
|
|
567
567
|
var NOT_PROSE = /* @__PURE__ */ new Set(["pre", "img"]);
|
|
568
568
|
var TABLE_SECTIONS = /* @__PURE__ */ new Set(["thead", "tbody", "tfoot"]);
|
|
569
|
+
var element = (tagName, children) => ({
|
|
570
|
+
type: "element",
|
|
571
|
+
tagName,
|
|
572
|
+
properties: {},
|
|
573
|
+
children
|
|
574
|
+
});
|
|
575
|
+
var sectionsBreak;
|
|
576
|
+
function toTextBreaksBetweenSections() {
|
|
577
|
+
if (sectionsBreak === void 0) {
|
|
578
|
+
const row = (text2) => element("tr", [element("td", [{ type: "text", value: text2 }])]);
|
|
579
|
+
const table = element("table", [element("thead", [row("a")]), element("tbody", [row("b")])]);
|
|
580
|
+
sectionsBreak = _hastutiltotext.toText.call(void 0, { type: "root", children: [table] }).includes("\n");
|
|
581
|
+
}
|
|
582
|
+
return sectionsBreak;
|
|
583
|
+
}
|
|
569
584
|
function htmlTree(markdown) {
|
|
570
585
|
const mdast = _mdastutilfrommarkdown.fromMarkdown.call(void 0, markdown, { extensions: [_micromarkextensiongfm.gfm.call(void 0, )], mdastExtensions: [_mdastutilgfm.gfmFromMarkdown.call(void 0, )] });
|
|
571
586
|
_mdastutilnewlinetobreak.newlineToBreak.call(void 0, mdast);
|
|
@@ -578,7 +593,7 @@ function proseTree(markdown) {
|
|
|
578
593
|
parent.children.splice(index, 1);
|
|
579
594
|
return [_unistutilvisit.SKIP, index];
|
|
580
595
|
}
|
|
581
|
-
if (TABLE_SECTIONS.has(node.tagName) && parent && index !== void 0) {
|
|
596
|
+
if (TABLE_SECTIONS.has(node.tagName) && parent && index !== void 0 && !toTextBreaksBetweenSections()) {
|
|
582
597
|
const followedBySection = parent.children.slice(index + 1).some((sibling) => sibling.type === "element" && TABLE_SECTIONS.has(sibling.tagName));
|
|
583
598
|
const rows = node.children.filter(
|
|
584
599
|
(child) => child.type === "element" && child.tagName === "tr"
|
|
@@ -6709,7 +6724,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6709
6724
|
|
|
6710
6725
|
[Attached: ${safeName}](${url})`;
|
|
6711
6726
|
}
|
|
6712
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6727
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkFAUVDMH4cjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6713
6728
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6714
6729
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6715
6730
|
"gm"
|
|
@@ -9614,10 +9629,10 @@ function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
|
9614
9629
|
const isNewTab = runtime ? _chunkYBTORXFYcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9615
9630
|
if (isNewTab) {
|
|
9616
9631
|
if (_optionalChain([runtime, 'optionalAccess', _205 => _205.navigation, 'access', _206 => _206.openExternal])) runtime.navigation.openExternal(href);
|
|
9617
|
-
else window.open(href, "_blank",
|
|
9632
|
+
else window.open(href, "_blank", _chunkFAUVDMH4cjs.NEW_TAB_FEATURES);
|
|
9618
9633
|
return;
|
|
9619
9634
|
}
|
|
9620
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9635
|
+
const target = isForeignOriginHref(href) ? href : _chunkFAUVDMH4cjs.stripSameOriginToPath.call(void 0, href);
|
|
9621
9636
|
if (target.includes("#") && _chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9622
9637
|
return;
|
|
9623
9638
|
}
|
|
@@ -9668,7 +9683,7 @@ function useNavLinkViaRuntime({
|
|
|
9668
9683
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9669
9684
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9670
9685
|
const panel = useChatPanel();
|
|
9671
|
-
const resolvedHref =
|
|
9686
|
+
const resolvedHref = _chunkFAUVDMH4cjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9672
9687
|
const isNewTab = _chunkYBTORXFYcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9673
9688
|
const onClick = (e) => {
|
|
9674
9689
|
_optionalChain([onClickProp, 'optionalCall', _210 => _210(e)]);
|
|
@@ -9828,7 +9843,7 @@ function UserDisplay({
|
|
|
9828
9843
|
compact = false,
|
|
9829
9844
|
className
|
|
9830
9845
|
}) {
|
|
9831
|
-
const avatarSrc =
|
|
9846
|
+
const avatarSrc = _chunkFAUVDMH4cjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
9832
9847
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) {
|
|
9833
9848
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9834
9849
|
UserDisplaySkeleton,
|
|
@@ -10296,7 +10311,7 @@ function CardsStrip(props) {
|
|
|
10296
10311
|
}
|
|
10297
10312
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
10298
10313
|
};
|
|
10299
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10314
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkFAUVDMH4cjs.SECTION_HEADING_CLASS} break-words`, children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) });
|
|
10300
10315
|
if (items.length === 0) {
|
|
10301
10316
|
if (!inScope || !skeleton) return null;
|
|
10302
10317
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -10878,7 +10893,7 @@ function EntityVideoSection({
|
|
|
10878
10893
|
}
|
|
10879
10894
|
) : null),
|
|
10880
10895
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10881
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10896
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkFAUVDMH4cjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10882
10897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden break-words text-ods-text-primary text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: videoSummary }) })
|
|
10883
10898
|
] }),
|
|
10884
10899
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10950,7 +10965,7 @@ function designDocPeople(doc) {
|
|
|
10950
10965
|
return people;
|
|
10951
10966
|
}
|
|
10952
10967
|
function designDocMetaLine(doc) {
|
|
10953
|
-
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
10968
|
+
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkFAUVDMH4cjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
10954
10969
|
}
|
|
10955
10970
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
10956
10971
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -11281,7 +11296,7 @@ function VendorIcon({
|
|
|
11281
11296
|
}) {
|
|
11282
11297
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
11283
11298
|
const logoUrl = getVendorLogo(vendor);
|
|
11284
|
-
const logoSrc =
|
|
11299
|
+
const logoSrc = _chunkFAUVDMH4cjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11285
11300
|
const { width, height } = showBackground ? imageSizeMap[size] : { width: tilePxMap[size], height: tilePxMap[size] };
|
|
11286
11301
|
const containerClasses = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
11287
11302
|
sizeClasses[size],
|
|
@@ -11325,8 +11340,8 @@ function useChatCardItem(type, id) {
|
|
|
11325
11340
|
const res = await _chunk5GJM7VRRcjs.embedAuthedFetch.call(void 0, url);
|
|
11326
11341
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11327
11342
|
const data = await res.json();
|
|
11328
|
-
const items =
|
|
11329
|
-
const match = items.find((it) =>
|
|
11343
|
+
const items = _chunkFAUVDMH4cjs.extractCardItems.call(void 0, type, data);
|
|
11344
|
+
const match = items.find((it) => _chunkFAUVDMH4cjs.extractItemId.call(void 0, type, it) === id);
|
|
11330
11345
|
return _nullishCoalesce(match, () => ( null));
|
|
11331
11346
|
},
|
|
11332
11347
|
enabled: !!url && id.length > 0,
|
|
@@ -11532,7 +11547,7 @@ function resolveFetchedCardHref({
|
|
|
11532
11547
|
composeContentUrl
|
|
11533
11548
|
}) {
|
|
11534
11549
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11535
|
-
const canonicalType =
|
|
11550
|
+
const canonicalType = _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11536
11551
|
return composeContentUrl({
|
|
11537
11552
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11538
11553
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11600,7 +11615,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11600
11615
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11601
11616
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11602
11617
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11603
|
-
type:
|
|
11618
|
+
type: _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11604
11619
|
identifier: idValue,
|
|
11605
11620
|
externalUrl: row.externalUrl,
|
|
11606
11621
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
@@ -11973,17 +11988,17 @@ function TrustCenterChatCard({
|
|
|
11973
11988
|
}) {
|
|
11974
11989
|
const raw2 = _optionalChain([item, 'optionalAccess', _286 => _286.frameworks]);
|
|
11975
11990
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
11976
|
-
const summary =
|
|
11991
|
+
const summary = _chunkFAUVDMH4cjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11977
11992
|
const leadFramework = frameworks[0];
|
|
11978
11993
|
const lead = leadFramework ? {
|
|
11979
|
-
label:
|
|
11980
|
-
color:
|
|
11994
|
+
label: _chunkFAUVDMH4cjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11995
|
+
color: _chunkFAUVDMH4cjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11981
11996
|
} : void 0;
|
|
11982
11997
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11983
11998
|
MingoInfoCard,
|
|
11984
11999
|
{
|
|
11985
|
-
title:
|
|
11986
|
-
description: summary ||
|
|
12000
|
+
title: _chunkFAUVDMH4cjs.TRUST_CENTER_TITLE,
|
|
12001
|
+
description: summary || _chunkFAUVDMH4cjs.TRUST_CENTER_TAGLINE,
|
|
11987
12002
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11988
12003
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11989
12004
|
anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
@@ -12113,7 +12128,7 @@ function CampaignChatCard({
|
|
|
12113
12128
|
}) {
|
|
12114
12129
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _292 => _292.goals])) ? item.goals.length : 0;
|
|
12115
12130
|
const meta = [
|
|
12116
|
-
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ?
|
|
12131
|
+
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ? _chunkFAUVDMH4cjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12117
12132
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12118
12133
|
"Marketing campaign"
|
|
12119
12134
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12164,7 +12179,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12164
12179
|
function statusPill(status) {
|
|
12165
12180
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12166
12181
|
if (!s) return void 0;
|
|
12167
|
-
const scheme =
|
|
12182
|
+
const scheme = _chunkFAUVDMH4cjs.getStatusColorScheme.call(void 0, s);
|
|
12168
12183
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12169
12184
|
return { label: s, variant };
|
|
12170
12185
|
}
|
|
@@ -12273,7 +12288,7 @@ function InvestorUpdateChatCard({
|
|
|
12273
12288
|
EntityMingoCard,
|
|
12274
12289
|
{
|
|
12275
12290
|
title,
|
|
12276
|
-
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) ||
|
|
12291
|
+
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) || _chunkFAUVDMH4cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _326 => _326.period_end]), () => ( null))) || void 0,
|
|
12277
12292
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.featured_image]), ogPlaceholder),
|
|
12278
12293
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12279
12294
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12317,7 +12332,7 @@ function ProgramChatCard({
|
|
|
12317
12332
|
discuss
|
|
12318
12333
|
}) {
|
|
12319
12334
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZ6NU2C2cjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM4KPLFFAcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 });
|
|
12320
|
-
const { line: meta } =
|
|
12335
|
+
const { line: meta } = _chunkFAUVDMH4cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkFAUVDMH4cjs.programMetaFormatters.call(void 0, _chunkFAUVDMH4cjs.PROGRAM_META_RENDERERS));
|
|
12321
12336
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12322
12337
|
EntityMingoCard,
|
|
12323
12338
|
{
|
|
@@ -12343,7 +12358,7 @@ function RoadmapChatCard({
|
|
|
12343
12358
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _337 => _337.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12344
12359
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]) != null;
|
|
12345
12360
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UIJR4PYcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6DN5HKRWcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQDSQKK2cjs.MapIcon, { size: 24 });
|
|
12346
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12361
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _339 => _339.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12347
12362
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12348
12363
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12349
12364
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -12530,7 +12545,7 @@ function programRegistryEntries() {
|
|
|
12530
12545
|
label: cfg.label,
|
|
12531
12546
|
contentRefType: cfg.contentRefType,
|
|
12532
12547
|
bareInline: true,
|
|
12533
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12548
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.ProgramCard, { loading: true, size: "sm" }),
|
|
12534
12549
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12535
12550
|
ProgramChatCard,
|
|
12536
12551
|
{
|
|
@@ -12571,7 +12586,7 @@ function roadmapRegistryEntries() {
|
|
|
12571
12586
|
bareInline: true,
|
|
12572
12587
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12573
12588
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12574
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12589
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
12575
12590
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12576
12591
|
RoadmapChatCard,
|
|
12577
12592
|
{
|
|
@@ -12629,12 +12644,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12629
12644
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12630
12645
|
// single matched row. Destination is the public page unless the host
|
|
12631
12646
|
// re-homes the type (`composeContentUrl` override).
|
|
12632
|
-
[
|
|
12647
|
+
[_chunkFAUVDMH4cjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12633
12648
|
label: "Trust center",
|
|
12634
12649
|
bareInline: true,
|
|
12635
|
-
contentRefType:
|
|
12650
|
+
contentRefType: _chunkFAUVDMH4cjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12636
12651
|
noComposedHref: true,
|
|
12637
|
-
fallbackHref: () =>
|
|
12652
|
+
fallbackHref: () => _chunkFAUVDMH4cjs.TRUST_CENTER_PAGE_PATH,
|
|
12638
12653
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
12639
12654
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12640
12655
|
},
|
|
@@ -12660,7 +12675,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12660
12675
|
label: "Blog post",
|
|
12661
12676
|
contentRefType: "blog_post_existing",
|
|
12662
12677
|
bareInline: true,
|
|
12663
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12678
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.BlogCard, { loading: true, size: "sm" }),
|
|
12664
12679
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12665
12680
|
BlogChatCard,
|
|
12666
12681
|
{
|
|
@@ -12702,7 +12717,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12702
12717
|
label: "Customer interview",
|
|
12703
12718
|
contentRefType: "customer_interview",
|
|
12704
12719
|
bareInline: true,
|
|
12705
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12720
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
12706
12721
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12707
12722
|
CustomerInterviewChatCard,
|
|
12708
12723
|
{
|
|
@@ -12718,9 +12733,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12718
12733
|
label: "Product release",
|
|
12719
12734
|
contentRefType: "product_release",
|
|
12720
12735
|
bareInline: true,
|
|
12721
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12736
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
12722
12737
|
render: (item, chatRef, opts) => {
|
|
12723
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => (
|
|
12738
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => ( _chunkFAUVDMH4cjs.defaultBuildProductReleaseCardProps));
|
|
12724
12739
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12725
12740
|
ProductReleaseChatCard,
|
|
12726
12741
|
{
|
|
@@ -12738,7 +12753,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12738
12753
|
label: "Investor update",
|
|
12739
12754
|
contentRefType: "investor_update",
|
|
12740
12755
|
bareInline: true,
|
|
12741
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12756
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
12742
12757
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12743
12758
|
InvestorUpdateChatCard,
|
|
12744
12759
|
{
|
|
@@ -12756,7 +12771,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12756
12771
|
bareInline: true,
|
|
12757
12772
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12758
12773
|
displayAction: true,
|
|
12759
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12774
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
12760
12775
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12761
12776
|
OnboardingGuideChatCard,
|
|
12762
12777
|
{
|
|
@@ -12829,7 +12844,7 @@ function ChatCardLoader({
|
|
|
12829
12844
|
entry: fetchEntry,
|
|
12830
12845
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12831
12846
|
composeContentUrl: runtime.composeContentUrl,
|
|
12832
|
-
resolveHref: (href) =>
|
|
12847
|
+
resolveHref: (href) => _chunkFAUVDMH4cjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12833
12848
|
});
|
|
12834
12849
|
const hrefResolvedChatRef = {
|
|
12835
12850
|
...chatRef,
|
|
@@ -13920,7 +13935,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13920
13935
|
return () => root.removeEventListener("click", onClick);
|
|
13921
13936
|
}, [viewUrlPrefix]);
|
|
13922
13937
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13923
|
-
|
|
13938
|
+
_chunkFAUVDMH4cjs.ImageGalleryModal,
|
|
13924
13939
|
{
|
|
13925
13940
|
images: state.images,
|
|
13926
13941
|
isOpen: state.isOpen,
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkPZVBTLLQcjs = require('./chunk-PZVBTLLQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkOEEFUB25cjs = require('./chunk-OEEFUB25.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
@@ -18,7 +18,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkYBTORXFYcjs = require('./chunk-YBTORXFY.cjs');
|
|
@@ -42,7 +42,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
42
42
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
43
43
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
44
44
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
45
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
45
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkOEEFUB25cjs.resolveSourceIcon.call(void 0, {
|
|
46
46
|
sourceRepo,
|
|
47
47
|
documentType: docType
|
|
48
48
|
});
|
|
@@ -72,7 +72,7 @@ function DocSearchBar({
|
|
|
72
72
|
renderResult
|
|
73
73
|
}) {
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
|
|
75
|
+
_chunkPZVBTLLQcjs.SearchInput,
|
|
76
76
|
{
|
|
77
77
|
placeholder,
|
|
78
78
|
value: query,
|
|
@@ -122,7 +122,7 @@ function mapDocSearchResults(docs) {
|
|
|
122
122
|
results.push({
|
|
123
123
|
id: `group-${entry.repo}`,
|
|
124
124
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
125
|
-
title: `${
|
|
125
|
+
title: `${_chunkOEEFUB25cjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkOEEFUB25cjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
126
126
|
path: rows[0].path,
|
|
127
127
|
type: "file",
|
|
128
128
|
metadata: {
|
|
@@ -314,31 +314,31 @@ function useDocSearch(config) {
|
|
|
314
314
|
case "navigate-same-tab": {
|
|
315
315
|
if (wantsNewTab) {
|
|
316
316
|
setKeepOpen(true);
|
|
317
|
-
window.open(action.href, "_blank",
|
|
317
|
+
window.open(action.href, "_blank", _chunkFAUVDMH4cjs.NEW_TAB_FEATURES);
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
setKeepOpen(false);
|
|
321
321
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
322
322
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
323
|
-
router.push(
|
|
323
|
+
router.push(_chunkFAUVDMH4cjs.stripSameOriginToPath.call(void 0, action.href));
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
326
|
case "navigate-new-tab":
|
|
327
327
|
setKeepOpen(true);
|
|
328
328
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
329
329
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
330
|
-
|
|
330
|
+
_chunkFAUVDMH4cjs.resolveExternalNavigation.call(void 0, {
|
|
331
331
|
href: action.href,
|
|
332
332
|
targetPlatform,
|
|
333
333
|
runtime
|
|
334
334
|
}).open();
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
|
-
window.open(action.href, "_blank",
|
|
337
|
+
window.open(action.href, "_blank", _chunkFAUVDMH4cjs.NEW_TAB_FEATURES);
|
|
338
338
|
return;
|
|
339
339
|
case "ask-ai":
|
|
340
340
|
setKeepOpen(false);
|
|
341
|
-
window.dispatchEvent(new CustomEvent(
|
|
341
|
+
window.dispatchEvent(new CustomEvent(_chunkOEEFUB25cjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
342
342
|
return;
|
|
343
343
|
case "route":
|
|
344
344
|
setKeepOpen(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPZVBTLLQcjs = require('./chunk-PZVBTLLQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkPZVBTLLQcjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunkPZVBTLLQcjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkPZVBTLLQcjs = require('./chunk-PZVBTLLQ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -17,16 +17,16 @@ var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
|
17
17
|
var _chunkBWR5ACK3cjs = require('./chunk-BWR5ACK3.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkFCT7VKWGcjs = require('./chunk-FCT7VKWG.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkOEEFUB25cjs = require('./chunk-OEEFUB25.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -119,7 +119,7 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
122
|
+
const attachments = _chunkOEEFUB25cjs.useChatAttachments.call(void 0, );
|
|
123
123
|
const builtInSubmission = _chunkBWR5ACK3cjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
@@ -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: `${_chunkFAUVDMH4cjs.SECTION_HEADING_CLASS} mb-3 content-md:mb-4`, children: _chunkFAUVDMH4cjs.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
|
+
..._chunkFCT7VKWGcjs.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, _chunkPZVBTLLQcjs.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, _chunkTTZEDDR5cjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkPZVBTLLQcjs.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
|
+
_chunkOEEFUB25cjs.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
|
+
_chunkOEEFUB25cjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|