@flamingo-stack/openframe-frontend-core 0.0.823 → 0.0.824
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-GP2Y3DBE.cjs → chunk-2IHGR57J.cjs} +6 -6
- package/dist/{chunk-QCRJVO6Y.cjs → chunk-2IWAHBCC.cjs} +1 -1
- package/dist/{chunk-U7CH53FT.cjs → chunk-2M4E2V25.cjs} +13 -13
- package/dist/{chunk-YMDSCI4E.cjs → chunk-5N26M6CK.cjs} +32 -32
- package/dist/{chunk-DEWT25QK.cjs → chunk-A3SR6HHX.cjs} +65 -72
- package/dist/{chunk-2U6MAM6D.cjs → chunk-B2VRNRTY.cjs} +63 -63
- package/dist/{chunk-XEIZL3I3.cjs → chunk-B7NSH7IK.cjs} +6 -6
- package/dist/{chunk-K7NGDYBG.cjs → chunk-C3RAE7RO.cjs} +136 -136
- package/dist/{chunk-Y7BTM2NC.cjs → chunk-EZTCN43H.cjs} +39 -39
- package/dist/{chunk-3JCDSZ6D.cjs → chunk-GXBIYPDM.cjs} +4 -4
- package/dist/{chunk-HWXFUI3R.cjs → chunk-HDOU3AXV.cjs} +30 -30
- package/dist/{chunk-KWS7YKCO.cjs → chunk-J5U3XHFJ.cjs} +13 -13
- package/dist/{chunk-TJFVIJPV.cjs → chunk-M7EBCYKN.cjs} +2 -2
- package/dist/{chunk-Y3MPERIZ.cjs → chunk-MROW2JWE.cjs} +3 -3
- package/dist/{chunk-GBILLSRM.cjs → chunk-QOOMUGF2.cjs} +4 -4
- package/dist/{chunk-AK7MYM25.cjs → chunk-SOSVC6HB.cjs} +3 -3
- package/dist/{chunk-2LT2WR4O.cjs → chunk-TQ7TUEK2.cjs} +37 -37
- package/dist/{chunk-DYSMAPSI.cjs → chunk-TTMTNG3U.cjs} +4 -4
- package/dist/{chunk-L7YE6APP.cjs → chunk-WMTV6M5B.cjs} +11 -11
- package/dist/{chunk-UUFL4FDS.cjs → chunk-WSBAIZXL.cjs} +14 -14
- package/dist/{chunk-SBXL5EKE.cjs → chunk-XUMZMIHR.cjs} +23 -23
- package/dist/{chunk-2YUWBIZM.cjs → chunk-Z7BLMJEI.cjs} +46 -46
- package/dist/{cloud-tenants-VQQ2KNJI.cjs → cloud-tenants-VYXMNISG.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/embeddable-chat.d.ts +0 -2
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +1 -2
- package/dist/components/chat/entity-cards/blog-card.js +1 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/mingo-welcome.js +1 -1
- 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/filters-dropdown.js +2 -2
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/features/notifications/approval-request-notification-tile.js +1 -1
- package/dist/components/help-center-pages/index.cjs +80 -80
- package/dist/components/index.cjs +48 -48
- package/dist/components/loading/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +31 -31
- 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 +4 -4
- package/dist/components/shared/article-author-byline.js +4 -4
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/tickets/ticket-row.js +10 -17
- package/dist/components/ui/date-picker.js +1 -1
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/markdown/base-components.js +1 -1
- package/dist/components/ui/markdown/engine.js +2 -2
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/sticky-action-bar.js +1 -1
- package/dist/{devices-KKJHYQ72.cjs → devices-NTYNZEGJ.cjs} +7 -7
- package/dist/{embeddable-chat-MQGYFYGX.cjs → embeddable-chat-JAUO4O2T.cjs} +68 -69
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-VMLXNFDI.cjs → knowledge-I2LW27EP.cjs} +7 -7
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/{logs-EFXRQ6LV.cjs → logs-KLZHXSOU.cjs} +14 -14
- package/dist/{policies-SU3NQPFV.cjs → policies-SMDAHDKL.cjs} +10 -10
- package/dist/{scripts-WLLAUOAA.cjs → scripts-OMBBPNTU.cjs} +11 -11
- package/dist/{software-update-WKUDBC3U.cjs → software-update-ZIJYNJIC.cjs} +9 -9
- package/eslint-config/README.md +21 -0
- package/eslint-config/base.js +12 -0
- package/eslint-config/dead-classes.js +256 -0
- package/package.json +2 -1
- package/src/components/chat/embeddable-chat.tsx +2 -7
- package/src/components/chat/entity-cards/blog-card.tsx +1 -1
- package/src/components/chat/mingo-welcome.tsx +1 -1
- package/src/components/features/filters-dropdown.tsx +2 -2
- package/src/components/features/notifications/approval-request-notification-tile.tsx +1 -1
- package/src/components/loading/index.ts +0 -5
- package/src/components/shared/article-author-byline.tsx +4 -4
- package/src/components/tickets/ticket-row.tsx +1 -4
- package/src/components/ui/date-picker.tsx +1 -1
- package/src/components/ui/markdown/base-components.tsx +1 -1
- package/src/components/ui/markdown/engine.tsx +4 -4
- package/src/components/ui/navigation-menu.tsx +1 -1
- package/src/components/ui/radio-group.tsx +1 -2
- package/src/components/ui/sticky-action-bar.tsx +1 -1
- package/src/loading-standard/engine.mjs +1 -2
- package/dist/components/loading/openmsp-heartbeat.d.ts +0 -7
- package/dist/components/loading/openmsp-heartbeat.d.ts.map +0 -1
- package/dist/components/loading/openmsp-heartbeat.js +0 -68
- package/src/components/loading/openmsp-heartbeat.tsx +0 -69
|
@@ -6,7 +6,7 @@ var _chunkT266OITJcjs = require('./chunk-T266OITJ.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkXUMZMIHRcjs = require('./chunk-XUMZMIHR.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 _chunk2IWAHBCCcjs = require('./chunk-2IWAHBCC.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
@@ -172,31 +172,31 @@ CveLink.displayName = "CveLink";
|
|
|
172
172
|
// src/components/platform/ShellTypeBadge.tsx
|
|
173
173
|
|
|
174
174
|
var shellIconMap = {
|
|
175
|
-
[
|
|
175
|
+
[_chunkXUMZMIHRcjs.ShellTypeValues.POWERSHELL]: {
|
|
176
176
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
177
177
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
178
178
|
},
|
|
179
|
-
[
|
|
179
|
+
[_chunkXUMZMIHRcjs.ShellTypeValues.CMD]: {
|
|
180
180
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
181
181
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
182
182
|
},
|
|
183
|
-
[
|
|
183
|
+
[_chunkXUMZMIHRcjs.ShellTypeValues.BASH]: {
|
|
184
184
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
185
185
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
186
186
|
},
|
|
187
|
-
[
|
|
187
|
+
[_chunkXUMZMIHRcjs.ShellTypeValues.PYTHON]: {
|
|
188
188
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
189
189
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
190
190
|
},
|
|
191
|
-
[
|
|
191
|
+
[_chunkXUMZMIHRcjs.ShellTypeValues.NUSHELL]: {
|
|
192
192
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
193
193
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
194
194
|
},
|
|
195
|
-
[
|
|
195
|
+
[_chunkXUMZMIHRcjs.ShellTypeValues.DENO]: {
|
|
196
196
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
197
197
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
198
198
|
},
|
|
199
|
-
[
|
|
199
|
+
[_chunkXUMZMIHRcjs.ShellTypeValues.SHELL]: {
|
|
200
200
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
201
201
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
202
202
|
}
|
|
@@ -207,7 +207,7 @@ var defaultIconConfig = {
|
|
|
207
207
|
};
|
|
208
208
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
209
209
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
210
|
-
const label =
|
|
210
|
+
const label = _chunkXUMZMIHRcjs.getShellLabel.call(void 0, normalizedType);
|
|
211
211
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
212
212
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
213
213
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -223,7 +223,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
223
223
|
if (!platforms || platforms.length === 0) {
|
|
224
224
|
return "All Platforms";
|
|
225
225
|
}
|
|
226
|
-
return platforms.map((platform) =>
|
|
226
|
+
return platforms.map((platform) => _chunkXUMZMIHRcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
227
227
|
}
|
|
228
228
|
function InfoCell({ label, value, avatar, className }) {
|
|
229
229
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -253,7 +253,7 @@ var ScriptInfoSection = ({
|
|
|
253
253
|
author,
|
|
254
254
|
className
|
|
255
255
|
}) => {
|
|
256
|
-
const shellLabel =
|
|
256
|
+
const shellLabel = _chunkXUMZMIHRcjs.getShellLabel.call(void 0, shellType);
|
|
257
257
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
258
258
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
259
259
|
/* @__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: [
|
|
@@ -301,7 +301,7 @@ function OnboardingStepCard({
|
|
|
301
301
|
onSkip();
|
|
302
302
|
};
|
|
303
303
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
304
|
-
|
|
304
|
+
_chunk2IWAHBCCcjs.InteractiveCard,
|
|
305
305
|
{
|
|
306
306
|
clickable: false,
|
|
307
307
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
@@ -456,7 +456,7 @@ function OnboardingWalkthrough({
|
|
|
456
456
|
const isAllComplete = allStepsComplete(steps);
|
|
457
457
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
458
458
|
/* @__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: [
|
|
459
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
459
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk2IWAHBCCcjs.SECTION_HEADING_CLASS, children: _chunk2IWAHBCCcjs.accentSentenceMarks.call(void 0, title) }),
|
|
460
460
|
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-[48px] w-full rounded-[6px] md:w-[160px]" }) : isAllComplete ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", onClick: handleDismiss, className: "w-full md:w-auto", children: "Close Onboarding" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", onClick: handleDismiss, className: "w-full md:w-auto", children: "Skip Onboarding" })
|
|
461
461
|
] }),
|
|
462
462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, spacing), children: steps.map((step) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkTQ7TUEK2cjs = require('./chunk-TQ7TUEK2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -106,13 +106,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
106
106
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
var
|
|
109
|
+
var _chunkQOOMUGF2cjs = require('./chunk-QOOMUGF2.cjs');
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
|
-
var
|
|
115
|
+
var _chunk2IWAHBCCcjs = require('./chunk-2IWAHBCC.cjs');
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
@@ -208,7 +208,7 @@ function ChatMessageRow(props) {
|
|
|
208
208
|
}
|
|
209
209
|
function ChatMessageRowLoaded(props) {
|
|
210
210
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
211
|
-
const proxiedAvatar =
|
|
211
|
+
const proxiedAvatar = _chunk2IWAHBCCcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
212
212
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
213
213
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
214
214
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
@@ -2050,7 +2050,7 @@ function lastPathSegment(url) {
|
|
|
2050
2050
|
function makeComposeContentUrl(opts) {
|
|
2051
2051
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2052
2052
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2053
|
-
const type =
|
|
2053
|
+
const type = _chunk2IWAHBCCcjs.canonicalContentRefType.call(void 0, rawType);
|
|
2054
2054
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2055
2055
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2056
2056
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2243,7 +2243,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2243
2243
|
if (heading.level > opts.maxLevel) continue;
|
|
2244
2244
|
let title = heading.text;
|
|
2245
2245
|
if (opts.stripFormattingMarkers) {
|
|
2246
|
-
title =
|
|
2246
|
+
title = _chunkTQ7TUEK2cjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2247
2247
|
}
|
|
2248
2248
|
const baseId = _chunkA34UNP5Vcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2249
2249
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2500,7 +2500,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2500
2500
|
function openAskAi(source, options) {
|
|
2501
2501
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2502
2502
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2503
|
-
window.dispatchEvent(new CustomEvent(
|
|
2503
|
+
window.dispatchEvent(new CustomEvent(_chunkTQ7TUEK2cjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2504
2504
|
}
|
|
2505
2505
|
function MingoAiButton({
|
|
2506
2506
|
source,
|
|
@@ -2543,7 +2543,7 @@ function MingoAiButton({
|
|
|
2543
2543
|
{
|
|
2544
2544
|
...props,
|
|
2545
2545
|
type: "button",
|
|
2546
|
-
...{ [
|
|
2546
|
+
...{ [_chunkTQ7TUEK2cjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2547
2547
|
variant: field ? "glyph" : "transparent",
|
|
2548
2548
|
size: "wrap",
|
|
2549
2549
|
font: "regular",
|
|
@@ -2645,7 +2645,7 @@ function useAskPrompts({
|
|
|
2645
2645
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2646
2646
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2647
2647
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2648
|
-
const { data, dataUrl, error } =
|
|
2648
|
+
const { data, dataUrl, error } = _chunkQOOMUGF2cjs.useSelfFetch.call(void 0, url);
|
|
2649
2649
|
const landed = url !== null && (dataUrl === url || error);
|
|
2650
2650
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2651
2651
|
}
|
|
@@ -2784,9 +2784,9 @@ function QuestionChips({
|
|
|
2784
2784
|
{
|
|
2785
2785
|
"data-loading-item": true,
|
|
2786
2786
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2787
|
-
...prompt ? { [
|
|
2787
|
+
...prompt ? { [_chunkTQ7TUEK2cjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2788
2788
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2789
|
-
|
|
2789
|
+
_chunkTQ7TUEK2cjs.QuickActionChipButton,
|
|
2790
2790
|
{
|
|
2791
2791
|
loading,
|
|
2792
2792
|
variant: "question",
|
|
@@ -2996,7 +2996,7 @@ function QuickActionMarquee({
|
|
|
2996
2996
|
);
|
|
2997
2997
|
if (items.length === 0) return null;
|
|
2998
2998
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2999
|
-
|
|
2999
|
+
_chunkTQ7TUEK2cjs.QuickActionWall,
|
|
3000
3000
|
{
|
|
3001
3001
|
chips,
|
|
3002
3002
|
mode,
|
|
@@ -3211,7 +3211,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3211
3211
|
hasNextPage,
|
|
3212
3212
|
isFetchingNextPage,
|
|
3213
3213
|
onLoadMore,
|
|
3214
|
-
pageSize =
|
|
3214
|
+
pageSize = _chunkTQ7TUEK2cjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3215
3215
|
...props
|
|
3216
3216
|
}, ref) => {
|
|
3217
3217
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3495,7 +3495,7 @@ function OnboardingCarousel({
|
|
|
3495
3495
|
|
|
3496
3496
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3497
3497
|
var GRID_CELL_CLASS = "h-full";
|
|
3498
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3498
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IWAHBCCcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3499
3499
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3500
3500
|
if (loadingCard !== void 0) return loadingCard;
|
|
3501
3501
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3509,7 +3509,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3509
3509
|
label = "Loading",
|
|
3510
3510
|
region = true
|
|
3511
3511
|
}) {
|
|
3512
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3512
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ7TUEK2cjs.LoadingFallback, { label, status: region, className: _chunk63A4GZMBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3513
3513
|
}
|
|
3514
3514
|
function AdminContentCardGrid({
|
|
3515
3515
|
items,
|
|
@@ -3805,7 +3805,7 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3805
3805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3806
3806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3807
3807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3808
|
-
campaign.start_date ?
|
|
3808
|
+
campaign.start_date ? _chunk2IWAHBCCcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3809
3809
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3810
3810
|
"Marketing campaign"
|
|
3811
3811
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
@@ -5101,7 +5101,7 @@ function Section({ title, description, children }) {
|
|
|
5101
5101
|
] });
|
|
5102
5102
|
}
|
|
5103
5103
|
function ProxyCredentialsPanel({ description }) {
|
|
5104
|
-
const hydrated =
|
|
5104
|
+
const hydrated = _chunkTQ7TUEK2cjs.useIsHydrated.call(void 0, );
|
|
5105
5105
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5106
5106
|
ProxyCredentialsForm,
|
|
5107
5107
|
{
|
|
@@ -5265,12 +5265,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5265
5265
|
|
|
5266
5266
|
// src/components/chat/index.ts
|
|
5267
5267
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5268
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5268
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-JAUO4O2T.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5269
5269
|
);
|
|
5270
5270
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5271
5271
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5272
5272
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5273
|
-
_react.useEffect.call(void 0, () =>
|
|
5273
|
+
_react.useEffect.call(void 0, () => _chunkTQ7TUEK2cjs.holdAskAiOpens.call(void 0, ), []);
|
|
5274
5274
|
const { loadStyles } = props;
|
|
5275
5275
|
_react.useEffect.call(void 0, () => {
|
|
5276
5276
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5278,12 +5278,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5278
5278
|
_react.useEffect.call(void 0, () => {
|
|
5279
5279
|
if (load) return void 0;
|
|
5280
5280
|
const start = () => setLoadRequested(true);
|
|
5281
|
-
if (
|
|
5282
|
-
for (const name of
|
|
5283
|
-
const cancel =
|
|
5281
|
+
if (_chunkTQ7TUEK2cjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5282
|
+
for (const name of _chunkTQ7TUEK2cjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5283
|
+
const cancel = _chunkTQ7TUEK2cjs.onAskAiIntent.call(void 0, start);
|
|
5284
5284
|
return () => {
|
|
5285
5285
|
cancel();
|
|
5286
|
-
for (const name of
|
|
5286
|
+
for (const name of _chunkTQ7TUEK2cjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5287
5287
|
};
|
|
5288
5288
|
}, [load]);
|
|
5289
5289
|
if (!load) return null;
|
|
@@ -12,7 +12,7 @@ var _chunkNPNZAAOBcjs = require('./chunk-NPNZAAOB.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkQOOMUGF2cjs = require('./chunk-QOOMUGF2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,7 +27,7 @@ var _chunkGBILLSRMcjs = require('./chunk-GBILLSRM.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk2IWAHBCCcjs = require('./chunk-2IWAHBCC.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
@@ -449,13 +449,13 @@ function programEntry(configKey) {
|
|
|
449
449
|
return cardEntry({
|
|
450
450
|
// The gallery and hosts rows are drawn only for a type whose cards show them (its config's `cardShowsGallery`,
|
|
451
451
|
// `cardShowsHosts`), as `ProgramCard` decides in a scope: elsewhere a record may have none.
|
|
452
|
-
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
+
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IWAHBCCcjs.ProgramCard, { loading: true, config: _optionalChain([extras, 'optionalAccess', _2 => _2.programConfigs, 'optionalAccess', _3 => _3[configKey]]), size: size === "sm" ? "sm" : "default" }),
|
|
453
453
|
decode: decodeProgramRow,
|
|
454
454
|
render: (item, ctx) => {
|
|
455
455
|
const config = _optionalChain([ctx, 'access', _4 => _4.extras, 'optionalAccess', _5 => _5.programConfigs, 'optionalAccess', _6 => _6[configKey]]);
|
|
456
456
|
if (!config) return null;
|
|
457
457
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
458
|
-
|
|
458
|
+
_chunk2IWAHBCCcjs.ProgramCard,
|
|
459
459
|
{
|
|
460
460
|
config,
|
|
461
461
|
item,
|
|
@@ -473,10 +473,10 @@ function programEntry(configKey) {
|
|
|
473
473
|
}
|
|
474
474
|
function roadmapEntry(cardType) {
|
|
475
475
|
return cardEntry({
|
|
476
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
476
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IWAHBCCcjs.RoadmapCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
477
477
|
decode: decodeRoadmapRow,
|
|
478
478
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
479
|
-
|
|
479
|
+
_chunk2IWAHBCCcjs.RoadmapCard,
|
|
480
480
|
{
|
|
481
481
|
item,
|
|
482
482
|
href: ctx.href,
|
|
@@ -493,10 +493,10 @@ function roadmapEntry(cardType) {
|
|
|
493
493
|
}
|
|
494
494
|
var RELATED_CARD_REGISTRY = {
|
|
495
495
|
blog_post_existing: cardEntry({
|
|
496
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
496
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IWAHBCCcjs.BlogCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
497
497
|
decode: decodeBlogRow,
|
|
498
498
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
499
|
-
|
|
499
|
+
_chunk2IWAHBCCcjs.BlogCard,
|
|
500
500
|
{
|
|
501
501
|
post,
|
|
502
502
|
size: ctx.legacySize,
|
|
@@ -524,10 +524,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
524
524
|
)
|
|
525
525
|
}),
|
|
526
526
|
customer_interview: cardEntry({
|
|
527
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
527
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IWAHBCCcjs.CustomerInterviewCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
528
528
|
decode: decodeCustomerInterviewRow,
|
|
529
529
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
530
|
-
|
|
530
|
+
_chunk2IWAHBCCcjs.CustomerInterviewCard,
|
|
531
531
|
{
|
|
532
532
|
interview,
|
|
533
533
|
size: ctx.legacySize,
|
|
@@ -545,13 +545,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
545
545
|
* record, and the three props the rail sets itself are read off it.
|
|
546
546
|
*/
|
|
547
547
|
product_release: cardEntry({
|
|
548
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IWAHBCCcjs.ProductReleaseCard, { loading: true, size: size === "sm" ? "sm" : "lg" }),
|
|
549
549
|
decode: asRecord,
|
|
550
550
|
render: (release, ctx) => {
|
|
551
|
-
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]), () => ( _chunk2IWAHBCCcjs.buildProductReleaseCardProps));
|
|
552
552
|
const releaseProps = buildReleaseProps(release);
|
|
553
553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
554
|
-
|
|
554
|
+
_chunk2IWAHBCCcjs.ProductReleaseCard,
|
|
555
555
|
{
|
|
556
556
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
557
557
|
title: str(release, "title"),
|
|
@@ -567,10 +567,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
567
567
|
webinar: programEntry("webinar"),
|
|
568
568
|
event: programEntry("event"),
|
|
569
569
|
investor_update: cardEntry({
|
|
570
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
570
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IWAHBCCcjs.InvestorUpdateCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
571
571
|
decode: decodeInvestorUpdateRow,
|
|
572
572
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
573
|
-
|
|
573
|
+
_chunk2IWAHBCCcjs.InvestorUpdateCard,
|
|
574
574
|
{
|
|
575
575
|
update,
|
|
576
576
|
size: ctx.legacySize,
|
|
@@ -585,10 +585,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
585
585
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
586
586
|
* section" rail, not this full-width row. */
|
|
587
587
|
onboarding_guide: cardEntry({
|
|
588
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
588
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IWAHBCCcjs.OnboardingGuideCard, { loading: true, size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
589
589
|
decode: decodeOnboardingGuideRow,
|
|
590
590
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
591
|
-
|
|
591
|
+
_chunk2IWAHBCCcjs.OnboardingGuideCard,
|
|
592
592
|
{
|
|
593
593
|
guide,
|
|
594
594
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -605,10 +605,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
605
605
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
606
606
|
* card in a dead <a>. */
|
|
607
607
|
what_i_shipped: cardEntry({
|
|
608
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
608
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQOOMUGF2cjs.WhatIShippedCard, { loading: true }),
|
|
609
609
|
decode: decodeEmployeeEntryRow,
|
|
610
610
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
611
|
-
|
|
611
|
+
_chunkQOOMUGF2cjs.WhatIShippedCard,
|
|
612
612
|
{
|
|
613
613
|
entry,
|
|
614
614
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -618,10 +618,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
618
618
|
}),
|
|
619
619
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
620
620
|
how_i_work: cardEntry({
|
|
621
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
621
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQOOMUGF2cjs.HowIWorkCard, { loading: true }),
|
|
622
622
|
decode: decodeEmployeeEntryRow,
|
|
623
623
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
624
|
-
|
|
624
|
+
_chunkQOOMUGF2cjs.HowIWorkCard,
|
|
625
625
|
{
|
|
626
626
|
entry,
|
|
627
627
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -631,10 +631,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
631
631
|
}),
|
|
632
632
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
633
633
|
ai_prompt: cardEntry({
|
|
634
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
634
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQOOMUGF2cjs.AiPromptCard, { loading: true }),
|
|
635
635
|
decode: decodeEmployeeEntryRow,
|
|
636
636
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
637
|
-
|
|
637
|
+
_chunkQOOMUGF2cjs.AiPromptCard,
|
|
638
638
|
{
|
|
639
639
|
entry,
|
|
640
640
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -718,9 +718,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
718
718
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
719
719
|
);
|
|
720
720
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
721
|
-
const { data, dataUrl, error } =
|
|
721
|
+
const { data, dataUrl, error } = _chunkQOOMUGF2cjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
722
722
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
723
|
-
setPages(new Map(pages).set(dataUrl,
|
|
723
|
+
setPages(new Map(pages).set(dataUrl, _chunk2IWAHBCCcjs.extractItems.call(void 0, data)));
|
|
724
724
|
}
|
|
725
725
|
if (url === null) return { items: null, isLoading: false };
|
|
726
726
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -729,7 +729,7 @@ function gridClassFor(columns) {
|
|
|
729
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";
|
|
730
730
|
}
|
|
731
731
|
function resolveGroupConfig(type) {
|
|
732
|
-
return _nullishCoalesce(
|
|
732
|
+
return _nullishCoalesce(_chunkQOOMUGF2cjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
733
733
|
label: type,
|
|
734
734
|
order: 999,
|
|
735
735
|
layout: "grid",
|
|
@@ -742,15 +742,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
742
742
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
743
743
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
744
744
|
function GroupHeading({ type }) {
|
|
745
|
-
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: _chunkQOOMUGF2cjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
746
746
|
}
|
|
747
747
|
function orderRailTypes(types, entityType) {
|
|
748
|
-
let ordered =
|
|
748
|
+
let ordered = _chunkQOOMUGF2cjs.orderContentRefTypes.call(void 0, types);
|
|
749
749
|
if (entityType) {
|
|
750
|
-
const canonicalEntityType =
|
|
751
|
-
const sameType = ordered.filter((t) =>
|
|
750
|
+
const canonicalEntityType = _chunk2IWAHBCCcjs.canonicalContentRefType.call(void 0, entityType);
|
|
751
|
+
const sameType = ordered.filter((t) => _chunk2IWAHBCCcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
752
752
|
if (sameType.length > 0) {
|
|
753
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
753
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunk2IWAHBCCcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
return ordered;
|
|
@@ -779,8 +779,8 @@ function ContentGroup({
|
|
|
779
779
|
setPagedRefsKey(refsKey);
|
|
780
780
|
setPage(1);
|
|
781
781
|
}
|
|
782
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
783
|
-
const pageRefs = refs.slice((page - 1) *
|
|
782
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunkQOOMUGF2cjs.GROUP_PAGE_SIZE);
|
|
783
|
+
const pageRefs = refs.slice((page - 1) * _chunkQOOMUGF2cjs.GROUP_PAGE_SIZE, page * _chunkQOOMUGF2cjs.GROUP_PAGE_SIZE);
|
|
784
784
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
785
785
|
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPNZAAOBcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
786
786
|
_react.useEffect.call(void 0, () => {
|
|
@@ -800,7 +800,7 @@ function ContentGroup({
|
|
|
800
800
|
}
|
|
801
801
|
if (!items) return null;
|
|
802
802
|
const rowKey = (it) => {
|
|
803
|
-
const extracted =
|
|
803
|
+
const extracted = _chunk2IWAHBCCcjs.extractItemId.call(void 0, type, it);
|
|
804
804
|
if (extracted !== null) return extracted;
|
|
805
805
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
806
806
|
};
|
|
@@ -871,11 +871,11 @@ function RelatedContentSection({
|
|
|
871
871
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
872
872
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
873
873
|
};
|
|
874
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
874
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkQOOMUGF2cjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
875
875
|
apiBaseUrl,
|
|
876
876
|
extraParams: { authorId, ...typeFilterParams }
|
|
877
877
|
}) : null;
|
|
878
|
-
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 ? _chunkQOOMUGF2cjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
879
879
|
apiBaseUrl,
|
|
880
880
|
entityType,
|
|
881
881
|
entityId,
|
|
@@ -892,7 +892,7 @@ function RelatedContentSection({
|
|
|
892
892
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
893
893
|
[initialItems, suggestionsDisabled]
|
|
894
894
|
);
|
|
895
|
-
const { data, isLoading } =
|
|
895
|
+
const { data, isLoading } = _chunkQOOMUGF2cjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
896
896
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
897
897
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
898
898
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -905,7 +905,7 @@ function RelatedContentSection({
|
|
|
905
905
|
});
|
|
906
906
|
}, []);
|
|
907
907
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
908
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
908
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunk2IWAHBCCcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
909
909
|
[buildListUrl2, apiBaseUrl]
|
|
910
910
|
);
|
|
911
911
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _12 => _12.refs]))), () => ( []));
|
|
@@ -929,7 +929,7 @@ function RelatedContentSection({
|
|
|
929
929
|
}
|
|
930
930
|
if (!showWhenEmpty) return null;
|
|
931
931
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
932
|
-
/* @__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: _chunk2IWAHBCCcjs.accentSentenceMarks.call(void 0, title) }),
|
|
933
933
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
934
934
|
] });
|
|
935
935
|
}
|
|
@@ -955,7 +955,7 @@ function RelatedContentSection({
|
|
|
955
955
|
);
|
|
956
956
|
}
|
|
957
957
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
958
|
-
/* @__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: _chunk2IWAHBCCcjs.accentSentenceMarks.call(void 0, title) }),
|
|
959
959
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
960
|
ContentGroup,
|
|
961
961
|
{
|
|
@@ -986,24 +986,24 @@ function RelatedContentSectionSkeleton({
|
|
|
986
986
|
adminCampaignCard,
|
|
987
987
|
extras
|
|
988
988
|
}) {
|
|
989
|
-
const canonicalEntityType = entityType ?
|
|
989
|
+
const canonicalEntityType = entityType ? _chunk2IWAHBCCcjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
990
990
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
991
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" }) }),
|
|
992
|
-
/* @__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: _chunkQOOMUGF2cjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
993
993
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
994
994
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
995
995
|
)) })
|
|
996
996
|
] }) : null;
|
|
997
997
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
998
|
-
/* @__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 ? _chunk2IWAHBCCcjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
999
999
|
unknownGroup,
|
|
1000
1000
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
1001
1001
|
const config = resolveGroupConfig(type);
|
|
1002
|
-
const sameType = canonicalEntityType !== null &&
|
|
1002
|
+
const sameType = canonicalEntityType !== null && _chunk2IWAHBCCcjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
1003
1003
|
const isList = config.layout === "list";
|
|
1004
1004
|
const count = Math.min(
|
|
1005
|
-
|
|
1006
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
1005
|
+
_chunkQOOMUGF2cjs.GROUP_PAGE_SIZE,
|
|
1006
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkQOOMUGF2cjs.GROUP_PAGE_SIZE))
|
|
1007
1007
|
);
|
|
1008
1008
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1009
1009
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -9,7 +9,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
9
9
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkC3RAE7ROcjs = require('./chunk-C3RAE7RO.cjs');
|
|
13
13
|
require('./chunk-467T3LCG.cjs');
|
|
14
14
|
require('./chunk-EHANO6UE.cjs');
|
|
15
15
|
require('./chunk-IJCSQFLD.cjs');
|
|
@@ -22,8 +22,8 @@ require('./chunk-7Z536SPR.cjs');
|
|
|
22
22
|
require('./chunk-7DNL734S.cjs');
|
|
23
23
|
require('./chunk-MZ4KBSH7.cjs');
|
|
24
24
|
require('./chunk-5SZ4ILU3.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-XUMZMIHR.cjs');
|
|
26
|
+
require('./chunk-TQ7TUEK2.cjs');
|
|
27
27
|
require('./chunk-OBQ5WUNG.cjs');
|
|
28
28
|
require('./chunk-6CZVQ72C.cjs');
|
|
29
29
|
require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -1823,8 +1823,8 @@ require('./chunk-JKX2C3I2.cjs');
|
|
|
1823
1823
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1824
1824
|
require('./chunk-SKI6NKOE.cjs');
|
|
1825
1825
|
require('./chunk-EWPR7662.cjs');
|
|
1826
|
-
require('./chunk-
|
|
1827
|
-
require('./chunk-
|
|
1826
|
+
require('./chunk-QOOMUGF2.cjs');
|
|
1827
|
+
require('./chunk-2IWAHBCC.cjs');
|
|
1828
1828
|
require('./chunk-UEULXVW2.cjs');
|
|
1829
1829
|
require('./chunk-QQT23JJ7.cjs');
|
|
1830
1830
|
require('./chunk-USUVHAQ7.cjs');
|
|
@@ -1918,7 +1918,7 @@ var getHref = () => "#";
|
|
|
1918
1918
|
function CloudTenantsScreen(_props) {
|
|
1919
1919
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1920
1920
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
1921
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1921
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC3RAE7ROcjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
1922
1922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
1923
1923
|
}
|
|
1924
1924
|
|