@flamingo-stack/openframe-frontend-core 0.0.805 → 0.0.807
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{chunk-QPBP7FKI.cjs → chunk-224GFGSR.cjs} +32 -32
- package/dist/{chunk-66ZQ7LDR.cjs → chunk-3B6PFUL3.cjs} +22 -37
- package/dist/{chunk-RIRIA3FO.cjs → chunk-5MTYKS2Q.cjs} +4 -4
- package/dist/{chunk-MEDSJCEX.cjs → chunk-5UTJARDM.cjs} +2 -2
- package/dist/{chunk-6UGNFMZB.cjs → chunk-74I2HT4X.cjs} +32 -32
- package/dist/{chunk-TTZEDDR5.cjs → chunk-7RM4NM2C.cjs} +1 -0
- package/dist/{chunk-A6P6DHEZ.cjs → chunk-7Z536SPR.cjs} +3 -1
- package/dist/{chunk-WSKMV2QS.cjs → chunk-BAOKF4OV.cjs} +3 -3
- package/dist/{chunk-NBLQFJ4I.cjs → chunk-BT53NHR7.cjs} +30 -30
- package/dist/{chunk-THY2XVGY.cjs → chunk-I3RJLXEL.cjs} +23 -17
- package/dist/{chunk-3EPG56RK.cjs → chunk-IEDID3EB.cjs} +3 -3
- package/dist/{chunk-F2VN3UUB.cjs → chunk-KS5V55HN.cjs} +37 -37
- package/dist/{chunk-6JRQ57DU.cjs → chunk-M5NBPOKJ.cjs} +385 -398
- package/dist/{chunk-AC5EBHAX.cjs → chunk-MBGUHO7Z.cjs} +31 -31
- package/dist/{chunk-76NE67PK.cjs → chunk-ML3DG4SS.cjs} +2 -2
- package/dist/{chunk-TTERV57X.cjs → chunk-OAJ3AL4V.cjs} +4 -4
- package/dist/{chunk-FQ4LYYBI.cjs → chunk-PIKHEBG5.cjs} +48 -48
- package/dist/{chunk-UCBR27JM.cjs → chunk-QPHQVTJO.cjs} +11 -11
- package/dist/{chunk-2NVIGBJC.cjs → chunk-QWB3CTGR.cjs} +65 -65
- package/dist/{chunk-NXJ3O4WO.cjs → chunk-RZNRKWG5.cjs} +13 -13
- package/dist/{chunk-MHH7CHNI.cjs → chunk-TOWVMBAP.cjs} +4 -4
- package/dist/{chunk-3WNCFZGN.cjs → chunk-TUZV2ZQY.cjs} +2 -2
- package/dist/{chunk-V3T5MDJV.cjs → chunk-VHX4A4SA.cjs} +2 -2
- package/dist/{chunk-55TGW6BF.cjs → chunk-WKVAD374.cjs} +6 -6
- package/dist/{chunk-LZIQXGAW.cjs → chunk-XCYL3TYS.cjs} +71 -71
- package/dist/{chunk-XXARXK62.cjs → chunk-XDVBSTFB.cjs} +18 -18
- package/dist/{chunk-Z6Y5X5SF.cjs → chunk-Z4IYLXJU.cjs} +41 -41
- package/dist/{chunk-BVSZTKI3.cjs → chunk-ZAXGW4KT.cjs} +14 -14
- package/dist/{cloud-tenants-LRXMISV4.cjs → cloud-tenants-KL2COIBU.cjs} +9 -9
- package/dist/components/case-studies/index.cjs +23 -23
- package/dist/components/chat/index.cjs +6 -6
- package/dist/components/contact/index.cjs +10 -10
- package/dist/components/docs/index.cjs +13 -13
- package/dist/components/embeds/index.cjs +10 -10
- package/dist/components/faq/index.cjs +11 -11
- package/dist/components/features/index.cjs +9 -9
- package/dist/components/help-center-pages/index.cjs +90 -90
- package/dist/components/index.cjs +56 -56
- package/dist/components/meeting-scheduler/index.cjs +57 -57
- package/dist/components/navigation/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.cjs +12 -12
- package/dist/components/product-demo/index.cjs +19 -19
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +16 -16
- package/dist/components/ui/autocomplete.d.ts.map +1 -1
- package/dist/components/ui/autocomplete.js +14 -30
- package/dist/components/ui/field-wrapper.d.ts.map +1 -1
- package/dist/components/ui/field-wrapper.js +2 -1
- package/dist/components/ui/file-manager/index.cjs +2 -2
- package/dist/components/ui/index.cjs +9 -9
- package/dist/components/ui/modal.d.ts.map +1 -1
- package/dist/components/ui/modal.js +24 -18
- package/dist/components/ui/tag-search-input.d.ts.map +1 -1
- package/dist/components/ui/tag-search-input.js +15 -29
- package/dist/{devices-CETR72XY.cjs → devices-3HQDYLE2.cjs} +10 -10
- package/dist/{embeddable-chat-GHBCX2BY.cjs → embeddable-chat-XT6GMSBX.cjs} +62 -62
- package/dist/hooks/index.cjs +4 -2
- package/dist/hooks/ui/use-auto-limit-tags.d.ts +6 -0
- package/dist/hooks/ui/use-auto-limit-tags.d.ts.map +1 -1
- package/dist/hooks/ui/use-auto-limit-tags.js +2 -0
- package/dist/index.cjs +15 -13
- package/dist/{knowledge-A2MWEF23.cjs → knowledge-6LA6XYUR.cjs} +10 -10
- package/dist/{logs-47JODA6C.cjs → logs-R4YZI33F.cjs} +17 -17
- package/dist/{policies-OPIDR6XF.cjs → policies-DGJMMGXN.cjs} +13 -13
- package/dist/{remote-session-IQTPEG63.cjs → remote-session-HLGLKOGW.cjs} +6 -6
- package/dist/{scripts-4MQGJWFP.cjs → scripts-6KR5UZQY.cjs} +16 -16
- package/dist/{software-update-MQIGPBZ6.cjs → software-update-R63SKZQM.cjs} +13 -13
- package/package.json +1 -1
- package/src/components/ui/autocomplete.tsx +5 -13
- package/src/components/ui/field-wrapper.tsx +5 -0
- package/src/components/ui/modal.tsx +14 -4
- package/src/components/ui/tag-search-input.tsx +16 -22
- package/src/hooks/ui/use-auto-limit-tags.ts +7 -0
|
@@ -1,30 +1,30 @@
|
|
|
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 _chunkML3DG4SScjs = require('./chunk-ML3DG4SS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQPHQVTJOcjs = require('./chunk-QPHQVTJO.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk3B6PFUL3cjs = require('./chunk-3B6PFUL3.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkBT53NHR7cjs = require('./chunk-BT53NHR7.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkKS5V55HNcjs = require('./chunk-KS5V55HN.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
|
|
@@ -34,11 +34,11 @@ var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
|
|
|
34
34
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkTOWVMBAPcjs = require('./chunk-TOWVMBAP.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkI3RJLXELcjs = require('./chunk-I3RJLXEL.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunkPRCGRDHVcjs = require('./chunk-PRCGRDHV.cjs');
|
|
@@ -75,7 +75,7 @@ function OnboardingCatalogSectionsSkeleton() {
|
|
|
75
75
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }),
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CATALOG_SECTION_COUNT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-3" }) })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.OnboardingGuideCard, { loading: true, size: "catalog" }) }) }) })
|
|
79
79
|
] }) });
|
|
80
80
|
}
|
|
81
81
|
function OnboardingGuidesCatalogView({
|
|
@@ -96,10 +96,10 @@ function OnboardingGuidesCatalogView({
|
|
|
96
96
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
97
97
|
const activeSection = sectionValue || "all";
|
|
98
98
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
99
|
-
const guidesRes =
|
|
99
|
+
const guidesRes = _chunkTOWVMBAPcjs.useSelfFetch.call(void 0,
|
|
100
100
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
101
101
|
);
|
|
102
|
-
const sectionsRes =
|
|
102
|
+
const sectionsRes = _chunkTOWVMBAPcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
103
103
|
const guides = _react.useMemo.call(void 0, () => _nullishCoalesce(_nullishCoalesce(initialGuides, () => ( _optionalChain([guidesRes, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.data]))), () => ( [])), [initialGuides, _optionalChain([guidesRes, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.data])]);
|
|
104
104
|
const sections = _react.useMemo.call(void 0,
|
|
105
105
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -143,25 +143,25 @@ function OnboardingGuidesCatalogView({
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
146
|
-
const docSearch =
|
|
146
|
+
const docSearch = _chunkQPHQVTJOcjs.useDocSearch.call(void 0, {
|
|
147
147
|
source,
|
|
148
148
|
baseRoute: basePath,
|
|
149
149
|
onNavigate: (path) => router.push(path),
|
|
150
150
|
tableIds: ["onboarding-guides"]
|
|
151
151
|
});
|
|
152
152
|
const defaultRenderCard = (guide) => {
|
|
153
|
-
const cta =
|
|
153
|
+
const cta = _chunkBT53NHR7cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
154
154
|
type: "onboarding_guide",
|
|
155
155
|
slug: guide.slug,
|
|
156
156
|
basePath,
|
|
157
157
|
platforms: guide.onboarding_guide_platforms
|
|
158
158
|
});
|
|
159
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
159
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
160
160
|
};
|
|
161
161
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
162
162
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunkQPHQVTJOcjs.DocSearchBar,
|
|
165
165
|
{
|
|
166
166
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
167
167
|
query: docSearch.query,
|
|
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
|
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
176
|
-
|
|
176
|
+
_chunkM5NBPOKJcjs.FilterPillRow,
|
|
177
177
|
{
|
|
178
178
|
label: "Section",
|
|
179
179
|
selectedValue: activeSection,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
)
|
|
185
185
|
] });
|
|
186
186
|
if (!loading && selfFetch && guidesRes.error) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
188
188
|
}
|
|
189
189
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
190
190
|
preControls,
|
|
@@ -200,7 +200,7 @@ function OnboardingGuidesCatalogView({
|
|
|
200
200
|
)
|
|
201
201
|
] });
|
|
202
202
|
if (!loading) return view;
|
|
203
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKS5V55HNcjs.LoadingFallback, { label: "Loading onboarding guides", children: view });
|
|
204
204
|
}
|
|
205
205
|
function OnboardingCatalogSections({
|
|
206
206
|
grouped,
|
|
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
slug,
|
|
305
305
|
guideEndpoint,
|
|
306
306
|
related = [],
|
|
307
|
-
MarkdownRenderer =
|
|
307
|
+
MarkdownRenderer = _chunkM5NBPOKJcjs.RichMarkdownRenderer,
|
|
308
308
|
renderRelatedCard,
|
|
309
309
|
backHref,
|
|
310
310
|
backLabel = "Back to Getting Started",
|
|
@@ -314,9 +314,9 @@ function OnboardingGuideDetailView({
|
|
|
314
314
|
}) {
|
|
315
315
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
316
316
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
317
|
-
const captions =
|
|
317
|
+
const captions = _chunkKS5V55HNcjs.useCaptions.call(void 0, );
|
|
318
318
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
319
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
320
320
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
321
321
|
const scoped = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
@@ -324,7 +324,7 @@ function OnboardingGuideDetailView({
|
|
|
324
324
|
isLoading,
|
|
325
325
|
error,
|
|
326
326
|
reload
|
|
327
|
-
} =
|
|
327
|
+
} = _chunkTOWVMBAPcjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
328
328
|
initialData
|
|
329
329
|
});
|
|
330
330
|
const { ref: videoWarmupRef } = _chunkZD6SZLO2cjs.useVideoWarmup.call(void 0, {
|
|
@@ -334,7 +334,7 @@ function OnboardingGuideDetailView({
|
|
|
334
334
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
335
335
|
const loading = scoped || !guide && isLoading;
|
|
336
336
|
if (!loading && (error || !guide)) {
|
|
337
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
338
338
|
}
|
|
339
339
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
340
340
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -342,19 +342,19 @@ function OnboardingGuideDetailView({
|
|
|
342
342
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
343
343
|
_chunkSTLJCAIZcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
344
344
|
const defaultRenderRelatedCard = (g) => {
|
|
345
|
-
const cta =
|
|
345
|
+
const cta = _chunkBT53NHR7cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
346
346
|
type: "onboarding_guide",
|
|
347
347
|
slug: g.slug,
|
|
348
348
|
basePath,
|
|
349
349
|
platforms: g.onboarding_guide_platforms
|
|
350
350
|
});
|
|
351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
351
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
|
-
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
354
|
+
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3B6PFUL3cjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM5NBPOKJcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
|
-
|
|
357
|
+
_chunkI3RJLXELcjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
359
359
|
author: view.author,
|
|
360
360
|
authorHref,
|
|
@@ -370,7 +370,7 @@ function OnboardingGuideDetailView({
|
|
|
370
370
|
),
|
|
371
371
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
373
|
-
|
|
373
|
+
_chunkKS5V55HNcjs.EntityVideoSection,
|
|
374
374
|
{
|
|
375
375
|
mainVideoUrl: view.main_video_url,
|
|
376
376
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -387,7 +387,7 @@ function OnboardingGuideDetailView({
|
|
|
387
387
|
) }),
|
|
388
388
|
(loading || view.content) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: BODY_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: _nullishCoalesce(view.content, () => ( "")) }) }),
|
|
389
389
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
390
|
-
|
|
390
|
+
_chunkKS5V55HNcjs.VideoBitesStrip,
|
|
391
391
|
{
|
|
392
392
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
393
393
|
filterPublished: true,
|
|
@@ -397,7 +397,7 @@ function OnboardingGuideDetailView({
|
|
|
397
397
|
}
|
|
398
398
|
) }),
|
|
399
399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
400
|
-
|
|
400
|
+
_chunkML3DG4SScjs.ArticleAuthorByline,
|
|
401
401
|
{
|
|
402
402
|
author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
403
403
|
avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -410,7 +410,7 @@ function OnboardingGuideDetailView({
|
|
|
410
410
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelatedGuides, { section: view.section, related, renderCard: renderRelatedCardFn }),
|
|
411
411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: relatedContent }, "related-content")
|
|
412
412
|
] });
|
|
413
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
413
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKS5V55HNcjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/components/onboarding-guides/hooks/use-onboarding-guides.ts
|
|
@@ -48,6 +48,7 @@ var FieldWrapper = _react.forwardRef.call(void 0,
|
|
|
48
48
|
children
|
|
49
49
|
}, ref) => {
|
|
50
50
|
const hasChrome = label != null || error != null || errorSlot;
|
|
51
|
+
if (!hasChrome && !className) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children });
|
|
51
52
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, hasChrome ? "relative flex w-full flex-col" : "contents", className), children: [
|
|
52
53
|
label && // Default is text-h6, NOT text-h4: `Field` (ui/field.tsx) renders its label via
|
|
53
54
|
// `Label variant="small"` = text-h6, and every form that mixes
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// src/hooks/ui/use-auto-limit-tags.ts
|
|
4
4
|
var _react = require('react');
|
|
5
|
+
var MEASURE_LAYER_CLASS = "pointer-events-none invisible absolute left-0 top-0 -z-10 h-0 w-0 overflow-hidden";
|
|
5
6
|
function useAutoLimitTags({
|
|
6
7
|
count,
|
|
7
8
|
limitTags = "auto",
|
|
@@ -127,4 +128,5 @@ function useKeyboardCollisionPadding() {
|
|
|
127
128
|
|
|
128
129
|
|
|
129
130
|
|
|
130
|
-
|
|
131
|
+
|
|
132
|
+
exports.MEASURE_LAYER_CLASS = MEASURE_LAYER_CLASS; exports.useAutoLimitTags = useAutoLimitTags; exports.useKeyboardCollisionPadding = useKeyboardCollisionPadding;
|
|
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/product-demo/screens/devices-view.tsx
|
|
11
11
|
var _jsxruntime = require('react/jsx-runtime');
|
|
12
12
|
var DEVICES_SEARCH_QUERY = "Windows";
|
|
13
|
-
var TOOLBAR = { ...
|
|
13
|
+
var TOOLBAR = { ..._chunkM5NBPOKJcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
|
|
14
14
|
var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
15
15
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
16
16
|
var NO_DEVICES = [];
|
|
@@ -22,7 +22,7 @@ function DevicesScreenView({
|
|
|
22
22
|
loading = false
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25
|
-
|
|
25
|
+
_chunkM5NBPOKJcjs.DevicesPanelView,
|
|
26
26
|
{
|
|
27
27
|
className: "p-[var(--spacing-system-l)]",
|
|
28
28
|
headerSlot: NO_HEADER,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkKS5V55HNcjs = require('./chunk-KS5V55HN.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -107,13 +107,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
107
107
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkTOWVMBAPcjs = require('./chunk-TOWVMBAP.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkI3RJLXELcjs = require('./chunk-I3RJLXEL.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -157,7 +157,7 @@ var _chunkKUXHXLJQcjs = require('./chunk-KUXHXLJQ.cjs');
|
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
var
|
|
160
|
+
var _chunk7RM4NM2Ccjs = require('./chunk-7RM4NM2C.cjs');
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
var _chunkGD47ZGOUcjs = require('./chunk-GD47ZGOU.cjs');
|
|
@@ -205,7 +205,7 @@ function ChatMessageRow(props) {
|
|
|
205
205
|
}
|
|
206
206
|
function ChatMessageRowLoaded(props) {
|
|
207
207
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
208
|
-
const proxiedAvatar =
|
|
208
|
+
const proxiedAvatar = _chunkI3RJLXELcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
209
209
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
210
210
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
211
211
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
@@ -2047,7 +2047,7 @@ function lastPathSegment(url) {
|
|
|
2047
2047
|
function makeComposeContentUrl(opts) {
|
|
2048
2048
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2049
2049
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2050
|
-
const type =
|
|
2050
|
+
const type = _chunkI3RJLXELcjs.canonicalContentRefType.call(void 0, rawType);
|
|
2051
2051
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2052
2052
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2053
2053
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2058,8 +2058,8 @@ function makeComposeContentUrl(opts) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
2060
2060
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
2061
|
-
const owner = claimedOwner &&
|
|
2062
|
-
const origin = owner ?
|
|
2061
|
+
const owner = claimedOwner && _chunkKS5V55HNcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2062
|
+
const origin = owner ? _chunkKS5V55HNcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
2063
2063
|
return {
|
|
2064
2064
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89()]) || identifier}`,
|
|
2065
2065
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2240,7 +2240,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2240
2240
|
if (heading.level > opts.maxLevel) continue;
|
|
2241
2241
|
let title = heading.text;
|
|
2242
2242
|
if (opts.stripFormattingMarkers) {
|
|
2243
|
-
title =
|
|
2243
|
+
title = _chunkKS5V55HNcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2244
2244
|
}
|
|
2245
2245
|
const baseId = _chunkOJZBZH56cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkOJZBZH56cjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2246
2246
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2555,7 +2555,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2555
2555
|
function openAskAi(source, options) {
|
|
2556
2556
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2557
2557
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2558
|
-
window.dispatchEvent(new CustomEvent(
|
|
2558
|
+
window.dispatchEvent(new CustomEvent(_chunkKS5V55HNcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2559
2559
|
}
|
|
2560
2560
|
function MingoAiButton({
|
|
2561
2561
|
source,
|
|
@@ -2598,7 +2598,7 @@ function MingoAiButton({
|
|
|
2598
2598
|
{
|
|
2599
2599
|
...props,
|
|
2600
2600
|
type: "button",
|
|
2601
|
-
...{ [
|
|
2601
|
+
...{ [_chunkKS5V55HNcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2602
2602
|
variant: field ? "glyph" : "transparent",
|
|
2603
2603
|
size: "wrap",
|
|
2604
2604
|
font: "regular",
|
|
@@ -2700,7 +2700,7 @@ function useAskPrompts({
|
|
|
2700
2700
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2701
2701
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2702
2702
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2703
|
-
const { data, dataUrl, error } =
|
|
2703
|
+
const { data, dataUrl, error } = _chunkTOWVMBAPcjs.useSelfFetch.call(void 0, url);
|
|
2704
2704
|
const landed = url !== null && (dataUrl === url || error);
|
|
2705
2705
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2706
2706
|
}
|
|
@@ -2839,9 +2839,9 @@ function QuestionChips({
|
|
|
2839
2839
|
{
|
|
2840
2840
|
"data-loading-item": true,
|
|
2841
2841
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2842
|
-
...prompt ? { [
|
|
2842
|
+
...prompt ? { [_chunkKS5V55HNcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2843
2843
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2844
|
-
|
|
2844
|
+
_chunkKS5V55HNcjs.QuickActionChipButton,
|
|
2845
2845
|
{
|
|
2846
2846
|
loading,
|
|
2847
2847
|
variant: "question",
|
|
@@ -3051,7 +3051,7 @@ function QuickActionMarquee({
|
|
|
3051
3051
|
);
|
|
3052
3052
|
if (items.length === 0) return null;
|
|
3053
3053
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3054
|
-
|
|
3054
|
+
_chunkKS5V55HNcjs.QuickActionWall,
|
|
3055
3055
|
{
|
|
3056
3056
|
chips,
|
|
3057
3057
|
mode,
|
|
@@ -3266,7 +3266,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3266
3266
|
hasNextPage,
|
|
3267
3267
|
isFetchingNextPage,
|
|
3268
3268
|
onLoadMore,
|
|
3269
|
-
pageSize =
|
|
3269
|
+
pageSize = _chunkKS5V55HNcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3270
3270
|
...props
|
|
3271
3271
|
}, ref) => {
|
|
3272
3272
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3550,7 +3550,7 @@ function OnboardingCarousel({
|
|
|
3550
3550
|
|
|
3551
3551
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3552
3552
|
var GRID_CELL_CLASS = "h-full";
|
|
3553
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3553
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI3RJLXELcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3554
3554
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3555
3555
|
if (loadingCard !== void 0) return loadingCard;
|
|
3556
3556
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3564,7 +3564,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3564
3564
|
label = "Loading",
|
|
3565
3565
|
region = true
|
|
3566
3566
|
}) {
|
|
3567
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3567
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKS5V55HNcjs.LoadingFallback, { label, status: region, className: _chunk7JWFMAQBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3568
3568
|
}
|
|
3569
3569
|
function AdminContentCardGrid({
|
|
3570
3570
|
items,
|
|
@@ -3860,7 +3860,7 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3860
3860
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3861
3861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3862
3862
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3863
|
-
campaign.start_date ?
|
|
3863
|
+
campaign.start_date ? _chunkI3RJLXELcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3864
3864
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3865
3865
|
"Marketing campaign"
|
|
3866
3866
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
@@ -5079,7 +5079,7 @@ function Field({ label, hint, required, children, error, labelExtras, labelEnd }
|
|
|
5079
5079
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5", children: [
|
|
5080
5080
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGD47ZGOUcjs.Label, { htmlFor: controlId, children: [
|
|
5081
5081
|
label,
|
|
5082
|
-
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5082
|
+
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7RM4NM2Ccjs.RequiredMark, {})
|
|
5083
5083
|
] }),
|
|
5084
5084
|
hint && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label, children: hint }),
|
|
5085
5085
|
labelExtras,
|
|
@@ -5156,7 +5156,7 @@ function Section({ title, description, children }) {
|
|
|
5156
5156
|
] });
|
|
5157
5157
|
}
|
|
5158
5158
|
function ProxyCredentialsPanel({ description }) {
|
|
5159
|
-
const hydrated =
|
|
5159
|
+
const hydrated = _chunkKS5V55HNcjs.useIsHydrated.call(void 0, );
|
|
5160
5160
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5161
5161
|
ProxyCredentialsForm,
|
|
5162
5162
|
{
|
|
@@ -5239,7 +5239,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5239
5239
|
hint: "A SERVICE key may act as anyone; a personal key only as its owner.",
|
|
5240
5240
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "Authorization" }),
|
|
5241
5241
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5242
|
-
|
|
5242
|
+
_chunk7RM4NM2Ccjs.Input,
|
|
5243
5243
|
{
|
|
5244
5244
|
...props,
|
|
5245
5245
|
type: "password",
|
|
@@ -5260,7 +5260,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5260
5260
|
hint: "The end user the requests run as.",
|
|
5261
5261
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "X-Chat-Act-As" }),
|
|
5262
5262
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5263
|
-
|
|
5263
|
+
_chunk7RM4NM2Ccjs.Input,
|
|
5264
5264
|
{
|
|
5265
5265
|
...props,
|
|
5266
5266
|
type: "email",
|
|
@@ -5286,7 +5286,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5286
5286
|
error: _nullishCoalesce(errors[field], () => ( null)),
|
|
5287
5287
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: header }),
|
|
5288
5288
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5289
|
-
|
|
5289
|
+
_chunk7RM4NM2Ccjs.Input,
|
|
5290
5290
|
{
|
|
5291
5291
|
...props,
|
|
5292
5292
|
type: _nullishCoalesce(copy.type, () => ( "text")),
|
|
@@ -5320,21 +5320,21 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5320
5320
|
|
|
5321
5321
|
// src/components/chat/index.ts
|
|
5322
5322
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5323
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5323
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-XT6GMSBX.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5324
5324
|
);
|
|
5325
5325
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5326
5326
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5327
5327
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5328
|
-
_react.useEffect.call(void 0, () =>
|
|
5328
|
+
_react.useEffect.call(void 0, () => _chunkKS5V55HNcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5329
5329
|
_react.useEffect.call(void 0, () => {
|
|
5330
5330
|
if (load) return void 0;
|
|
5331
5331
|
const start = () => setLoadRequested(true);
|
|
5332
|
-
if (
|
|
5333
|
-
for (const name of
|
|
5334
|
-
const cancel =
|
|
5332
|
+
if (_chunkKS5V55HNcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5333
|
+
for (const name of _chunkKS5V55HNcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5334
|
+
const cancel = _chunkKS5V55HNcjs.onAskAiIntent.call(void 0, start);
|
|
5335
5335
|
return () => {
|
|
5336
5336
|
cancel();
|
|
5337
|
-
for (const name of
|
|
5337
|
+
for (const name of _chunkKS5V55HNcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5338
5338
|
};
|
|
5339
5339
|
}, [load]);
|
|
5340
5340
|
if (!load) return null;
|
|
@@ -175,6 +175,7 @@ InteractiveCard.displayName = "InteractiveCard";
|
|
|
175
175
|
// src/components/ui/modal.tsx
|
|
176
176
|
var _overlays = require('@react-aria/overlays');
|
|
177
177
|
|
|
178
|
+
var _reactdom = require('react-dom');
|
|
178
179
|
|
|
179
180
|
var Modal = _react.forwardRef.call(void 0, ({ isOpen, onClose, children, className }, ref) => {
|
|
180
181
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !isOpen });
|
|
@@ -188,23 +189,28 @@ var Modal = _react.forwardRef.call(void 0, ({ isOpen, onClose, children, classNa
|
|
|
188
189
|
document.addEventListener("keydown", handleKeyDown);
|
|
189
190
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
190
191
|
}, [isOpen, onClose]);
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
192
|
+
const [portalTarget, setPortalTarget] = _react.useState.call(void 0, null);
|
|
193
|
+
_react.useLayoutEffect.call(void 0, () => setPortalTarget(document.body), []);
|
|
194
|
+
if (!isOpen || !portalTarget) return null;
|
|
195
|
+
return _reactdom.createPortal.call(void 0,
|
|
196
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ods-viewport-layer fixed inset-0 z-[1300] flex items-center justify-center", children: [
|
|
197
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute inset-0 bg-ods-overlay", onClick: onClose, "aria-hidden": "true" }),
|
|
198
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
199
|
+
"div",
|
|
200
|
+
{
|
|
201
|
+
ref,
|
|
202
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
203
|
+
"relative z-10 mx-4 flex max-h-[90vh] w-full max-w-md flex-col overflow-hidden rounded-lg border border-ods-border bg-ods-card shadow-xl",
|
|
204
|
+
className
|
|
205
|
+
),
|
|
206
|
+
role: "dialog",
|
|
207
|
+
"aria-modal": "true",
|
|
208
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAQXKXZWBcjs.ViewportBreakpoints, { children })
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
] }),
|
|
212
|
+
portalTarget
|
|
213
|
+
);
|
|
208
214
|
});
|
|
209
215
|
Modal.displayName = "Modal";
|
|
210
216
|
var ModalContent = _react.forwardRef.call(void 0, ({ children, className }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, "min-h-0 flex-1 overflow-y-auto", className), children }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkM5NBPOKJcjs = require('./chunk-M5NBPOKJ.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
|
+
_chunkM5NBPOKJcjs.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
|
+
_chunkM5NBPOKJcjs.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,
|