@flamingo-stack/openframe-frontend-core 0.0.828 → 0.0.829
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-ALRX2VIY.cjs → chunk-4DUVTJ6A.cjs} +13 -13
- package/dist/{chunk-B5H7RKFF.cjs → chunk-4ZIKDOPY.cjs} +4 -4
- package/dist/{chunk-6SFCI6D4.cjs → chunk-6WNSZ5XP.cjs} +12 -14
- package/dist/{chunk-UULSSD56.cjs → chunk-AH4YWTWZ.cjs} +5 -5
- package/dist/{chunk-7VC5FVWT.cjs → chunk-DWSU35QQ.cjs} +62 -62
- package/dist/{chunk-3WKQ2GCR.cjs → chunk-HMC2IWV4.cjs} +4 -6
- package/dist/{chunk-RPKWEBHC.cjs → chunk-IBQ3CSKL.cjs} +3 -3
- package/dist/{chunk-ZT7JHN7G.cjs → chunk-IFLGIBFZ.cjs} +54 -59
- package/dist/{chunk-4ZH7RPEA.cjs → chunk-IHRMX3X6.cjs} +154 -154
- package/dist/{chunk-6ZLCEIIC.cjs → chunk-IMDYB77M.cjs} +21 -21
- package/dist/chunk-IX2E3AN7.cjs +77 -0
- package/dist/{chunk-VAIML6YU.cjs → chunk-LNXRTVOY.cjs} +13 -13
- package/dist/{chunk-QMQWXGCH.cjs → chunk-MFYSV7DE.cjs} +23 -19
- package/dist/{chunk-K6X7VP2Y.cjs → chunk-PRZAEPGG.cjs} +41 -41
- package/dist/{chunk-XPF74L76.cjs → chunk-R3PKAIX3.cjs} +2 -2
- package/dist/{chunk-UWGPYAB3.cjs → chunk-THPAGFT6.cjs} +47 -47
- package/dist/{chunk-DR4P7AEU.cjs → chunk-UE5ZBCJ4.cjs} +3 -3
- package/dist/{chunk-BGT6JFMP.cjs → chunk-UO6F6LLI.cjs} +41 -5
- package/dist/{chunk-SVCTAOJR.cjs → chunk-YHQDB5QJ.cjs} +2 -2
- package/dist/{chunk-YKUL6JBI.cjs → chunk-ZJXLNIWC.cjs} +46 -34
- package/dist/{cloud-tenants-LKTWIZNS.cjs → cloud-tenants-YVCSVVIS.cjs} +8 -7
- package/dist/components/case-studies/index.cjs +20 -19
- package/dist/components/chat/assistant-ask-prompts.d.ts +5 -1
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/assistant-ask-prompts.js +3 -1
- package/dist/components/chat/embeddable-chat.js +1 -0
- package/dist/components/chat/guide-welcome.d.ts +10 -1
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +12 -2
- package/dist/components/chat/hooks/use-empty-state-config.d.ts +13 -3
- package/dist/components/chat/hooks/use-empty-state-config.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-empty-state-config.js +10 -2
- package/dist/components/chat/index.cjs +7 -3
- package/dist/components/contact/index.cjs +9 -8
- package/dist/components/docs/index.cjs +12 -11
- package/dist/components/embeds/index.cjs +9 -8
- package/dist/components/faq/faq-ask-card.d.ts +2 -13
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/faq-ask-card.js +1 -2
- package/dist/components/faq/faq-document-page.d.ts +2 -4
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.js +0 -2
- package/dist/components/faq/faq-section.d.ts +16 -29
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +23 -15
- package/dist/components/faq/index.cjs +10 -9
- package/dist/components/faq/index.d.ts +1 -1
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +8 -7
- package/dist/components/help-center-pages/delivery-page.d.ts +1 -8
- package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/delivery-page.js +4 -16
- package/dist/components/help-center-pages/download-apps-page.d.ts +1 -8
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +3 -4
- package/dist/components/help-center-pages/index.cjs +114 -162
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +1 -8
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.js +14 -26
- package/dist/components/help-center-pages/product-releases-list-page.d.ts +1 -8
- package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/product-releases-list-page.js +12 -24
- package/dist/components/help-center-pages/roadmap-page.d.ts +1 -8
- package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/roadmap-page.js +13 -25
- package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/index.cjs +50 -45
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/meeting-scheduler/index.cjs +39 -38
- package/dist/components/navigation/index.cjs +11 -10
- package/dist/components/onboarding-guides/index.cjs +10 -9
- package/dist/components/page-topic-label.d.ts +13 -0
- package/dist/components/page-topic-label.d.ts.map +1 -0
- package/dist/components/page-topic-label.js +20 -0
- package/dist/components/product-demo/index.cjs +17 -16
- package/dist/components/shared/dev-section/dev-section-page.d.ts +1 -8
- package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-section-page.js +2 -3
- package/dist/components/shared/legal-document/legal-document-page.d.ts +2 -10
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +2 -5
- package/dist/components/shared/legal-document/use-legal-documents.d.ts +0 -2
- package/dist/components/shared/legal-document/use-legal-documents.d.ts.map +1 -1
- package/dist/components/shared/legal-document/use-legal-documents.js +0 -1
- package/dist/components/tickets/index.cjs +13 -12
- package/dist/components/ui/index.cjs +10 -7
- package/dist/contexts/endpoints-runtime-context.d.ts +5 -0
- package/dist/contexts/endpoints-runtime-context.d.ts.map +1 -1
- package/dist/contexts/index.cjs +10 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +4 -0
- package/dist/contexts/page-topics-context.d.ts +30 -0
- package/dist/contexts/page-topics-context.d.ts.map +1 -0
- package/dist/contexts/page-topics-context.js +27 -0
- package/dist/{devices-JWG72ANF.cjs → devices-AW6BERJF.cjs} +9 -8
- package/dist/{embeddable-chat-5UT6UHEO.cjs → embeddable-chat-ZJIOMMSA.cjs} +74 -71
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +25 -11
- package/dist/{knowledge-DQXVSHME.cjs → knowledge-PEOXTIVS.cjs} +9 -8
- package/dist/{logs-Z33VBTVX.cjs → logs-CYA7H4KM.cjs} +15 -14
- package/dist/{policies-XE4UMH6Z.cjs → policies-M6QSFL5G.cjs} +12 -11
- package/dist/{scripts-MECQG5GG.cjs → scripts-Y46ECDDP.cjs} +13 -12
- package/dist/{software-update-PCSIA6BP.cjs → software-update-OTC2DGQZ.cjs} +11 -10
- package/dist/utils/index.cjs +46 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +12 -0
- package/dist/utils/page-topics.cjs +48 -0
- package/dist/utils/page-topics.d.ts +34 -0
- package/dist/utils/page-topics.d.ts.map +1 -0
- package/dist/utils/page-topics.js +46 -0
- package/package.json +7 -1
- package/src/components/chat/assistant-ask-prompts.tsx +8 -2
- package/src/components/chat/embeddable-chat.tsx +3 -0
- package/src/components/chat/guide-welcome.tsx +26 -2
- package/src/components/chat/hooks/use-empty-state-config.ts +22 -5
- package/src/components/faq/faq-ask-card.tsx +2 -12
- package/src/components/faq/faq-document-page.tsx +1 -5
- package/src/components/faq/faq-section.tsx +47 -50
- package/src/components/faq/index.ts +1 -2
- package/src/components/help-center-pages/delivery-page.tsx +1 -16
- package/src/components/help-center-pages/download-apps-page.tsx +2 -9
- package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +1 -16
- package/src/components/help-center-pages/product-releases-list-page.tsx +1 -16
- package/src/components/help-center-pages/roadmap-page.tsx +1 -16
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/page-topic-label.tsx +30 -0
- package/src/components/shared/dev-section/dev-section-page.tsx +2 -9
- package/src/components/shared/legal-document/legal-document-page.tsx +3 -13
- package/src/components/shared/legal-document/use-legal-documents.ts +0 -3
- package/src/contexts/endpoints-runtime-context.tsx +5 -0
- package/src/contexts/index.ts +1 -0
- package/src/contexts/page-topics-context.tsx +68 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/page-topics.ts +81 -0
- package/dist/{chunk-IKWQW3YJ.cjs → chunk-AY6XJOIN.cjs} +4 -4
|
@@ -5,33 +5,33 @@ var _chunkLKP5R3EQcjs = require('./chunk-LKP5R3EQ.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkAH4YWTWZcjs = require('./chunk-AH4YWTWZ.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkIHRMX3X6cjs = require('./chunk-IHRMX3X6.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkDU6AF77Xcjs = require('./chunk-DU6AF77X.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
var _chunkMFYSV7DEcjs = require('./chunk-MFYSV7DE.cjs');
|
|
21
22
|
|
|
22
|
-
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var _chunkQMQWXGCHcjs = require('./chunk-QMQWXGCH.cjs');
|
|
26
25
|
|
|
27
26
|
|
|
27
|
+
var _chunkUO6F6LLIcjs = require('./chunk-UO6F6LLI.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
|
|
30
31
|
|
|
31
|
-
var _chunkBGT6JFMPcjs = require('./chunk-BGT6JFMP.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkYMLRDVPOcjs = require('./chunk-YMLRDVPO.cjs');
|
|
@@ -143,14 +143,14 @@ function OnboardingGuidesCatalogView({
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
146
|
-
const docSearch =
|
|
146
|
+
const docSearch = _chunkAH4YWTWZcjs.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 = _chunkMFYSV7DEcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
154
154
|
type: "onboarding_guide",
|
|
155
155
|
slug: guide.slug,
|
|
156
156
|
basePath,
|
|
@@ -161,7 +161,7 @@ function OnboardingGuidesCatalogView({
|
|
|
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
|
+
_chunkAH4YWTWZcjs.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
|
+
_chunkIHRMX3X6cjs.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, _chunkIHRMX3X6cjs.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, _chunkUO6F6LLIcjs.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 = _chunkIHRMX3X6cjs.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 = _chunkUO6F6LLIcjs.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, _chunkIHRMX3X6cjs.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 = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
@@ -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, _chunkIHRMX3X6cjs.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,7 +342,7 @@ function OnboardingGuideDetailView({
|
|
|
342
342
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
343
343
|
_chunkDAKGX2WFcjs.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 = _chunkMFYSV7DEcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
346
346
|
type: "onboarding_guide",
|
|
347
347
|
slug: g.slug,
|
|
348
348
|
basePath,
|
|
@@ -352,7 +352,7 @@ function OnboardingGuideDetailView({
|
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
354
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDU6AF77Xcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIHRMX3X6cjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
357
|
_chunkFMSAN6SRcjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
@@ -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
|
+
_chunkUO6F6LLIcjs.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
|
+
_chunkUO6F6LLIcjs.VideoBitesStrip,
|
|
391
391
|
{
|
|
392
392
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
393
393
|
filterPublished: true,
|
|
@@ -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, _chunkUO6F6LLIcjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/components/onboarding-guides/hooks/use-onboarding-guides.ts
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
5
|
+
|
|
6
|
+
// src/utils/page-topics.ts
|
|
7
|
+
var HOME_PATH = "/";
|
|
8
|
+
function decodeSegment(segment) {
|
|
9
|
+
try {
|
|
10
|
+
return decodeURIComponent(segment);
|
|
11
|
+
} catch (e) {
|
|
12
|
+
return segment;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function normalizePath(pathname) {
|
|
16
|
+
const segments = (_nullishCoalesce(pathname.split(/[?#]/)[0], () => ( ""))).split("/").filter(Boolean).map((segment) => decodeSegment(segment).toLowerCase());
|
|
17
|
+
return segments.length === 0 ? HOME_PATH : `/${segments.join("/")}`;
|
|
18
|
+
}
|
|
19
|
+
function pageTopicFor(pathname, options = {}) {
|
|
20
|
+
const path = normalizePath(pathname);
|
|
21
|
+
const base = options.basePath ? normalizePath(options.basePath) : HOME_PATH;
|
|
22
|
+
if (base === HOME_PATH) return path;
|
|
23
|
+
if (path === base) return HOME_PATH;
|
|
24
|
+
return path.startsWith(`${base}/`) ? path.slice(base.length) : path;
|
|
25
|
+
}
|
|
26
|
+
function isPagePathTopic(tag) {
|
|
27
|
+
return tag.startsWith(HOME_PATH);
|
|
28
|
+
}
|
|
29
|
+
function topicMatchesPath(tag, path) {
|
|
30
|
+
if (!isPagePathTopic(tag)) return tag === path;
|
|
31
|
+
if (tag === HOME_PATH || path === HOME_PATH) return tag === path;
|
|
32
|
+
return path === tag || path.startsWith(`${tag}/`);
|
|
33
|
+
}
|
|
34
|
+
function topicCandidates(path) {
|
|
35
|
+
if (!isPagePathTopic(path) || path === HOME_PATH) return [path];
|
|
36
|
+
const segments = path.split("/").filter(Boolean);
|
|
37
|
+
return segments.map((_, i) => `/${segments.slice(0, segments.length - i).join("/")}`);
|
|
38
|
+
}
|
|
39
|
+
function deepestTopic(tags, path) {
|
|
40
|
+
let best = null;
|
|
41
|
+
for (const tag of tags) {
|
|
42
|
+
if (topicMatchesPath(tag, path) && (best === null || tag.length > best.length)) best = tag;
|
|
43
|
+
}
|
|
44
|
+
return best;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// src/contexts/page-topics-context.tsx
|
|
48
|
+
var _react = require('react');
|
|
49
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
50
|
+
var PageTopicsContext = _react.createContext.call(void 0, null);
|
|
51
|
+
function PageTopicsProvider({ basePath, pathname, showTopic, children }) {
|
|
52
|
+
const inherited = _react.useContext.call(void 0, PageTopicsContext);
|
|
53
|
+
const base = _nullishCoalesce(basePath, () => ( _optionalChain([inherited, 'optionalAccess', _2 => _2.basePath])));
|
|
54
|
+
const stamp = _nullishCoalesce(_nullishCoalesce(showTopic, () => ( _optionalChain([inherited, 'optionalAccess', _3 => _3.showTopic]))), () => ( false));
|
|
55
|
+
const value = _react.useMemo.call(void 0, () => ({ basePath: base, pathname, showTopic: stamp }), [base, pathname, stamp]);
|
|
56
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTopicsContext.Provider, { value, children });
|
|
57
|
+
}
|
|
58
|
+
function usePageTopic() {
|
|
59
|
+
const value = _react.useContext.call(void 0, PageTopicsContext);
|
|
60
|
+
const routerPathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
61
|
+
if (!value) return void 0;
|
|
62
|
+
return pageTopicFor(_nullishCoalesce(_nullishCoalesce(value.pathname, () => ( routerPathname)), () => ( "/")), { basePath: value.basePath });
|
|
63
|
+
}
|
|
64
|
+
function usePageTopicStamp() {
|
|
65
|
+
return _nullishCoalesce(_optionalChain([_react.useContext.call(void 0, PageTopicsContext), 'optionalAccess', _4 => _4.showTopic]), () => ( false));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
exports.pageTopicFor = pageTopicFor; exports.isPagePathTopic = isPagePathTopic; exports.topicMatchesPath = topicMatchesPath; exports.topicCandidates = topicCandidates; exports.deepestTopic = deepestTopic; exports.PageTopicsProvider = PageTopicsProvider; exports.usePageTopic = usePageTopic; exports.usePageTopicStamp = usePageTopicStamp;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkAY6XJOINcjs = require('./chunk-AY6XJOIN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkMFYSV7DEcjs = require('./chunk-MFYSV7DE.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -172,31 +172,31 @@ CveLink.displayName = "CveLink";
|
|
|
172
172
|
// src/components/platform/ShellTypeBadge.tsx
|
|
173
173
|
|
|
174
174
|
var shellIconMap = {
|
|
175
|
-
[
|
|
175
|
+
[_chunkMFYSV7DEcjs.ShellTypeValues.POWERSHELL]: {
|
|
176
176
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
177
177
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
178
178
|
},
|
|
179
|
-
[
|
|
179
|
+
[_chunkMFYSV7DEcjs.ShellTypeValues.CMD]: {
|
|
180
180
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
181
181
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
182
182
|
},
|
|
183
|
-
[
|
|
183
|
+
[_chunkMFYSV7DEcjs.ShellTypeValues.BASH]: {
|
|
184
184
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
185
185
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
186
186
|
},
|
|
187
|
-
[
|
|
187
|
+
[_chunkMFYSV7DEcjs.ShellTypeValues.PYTHON]: {
|
|
188
188
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
189
189
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
190
190
|
},
|
|
191
|
-
[
|
|
191
|
+
[_chunkMFYSV7DEcjs.ShellTypeValues.NUSHELL]: {
|
|
192
192
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
193
193
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
194
194
|
},
|
|
195
|
-
[
|
|
195
|
+
[_chunkMFYSV7DEcjs.ShellTypeValues.DENO]: {
|
|
196
196
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
197
197
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
198
198
|
},
|
|
199
|
-
[
|
|
199
|
+
[_chunkMFYSV7DEcjs.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 = _chunkMFYSV7DEcjs.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) => _chunkMFYSV7DEcjs.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 = _chunkMFYSV7DEcjs.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: [
|
|
@@ -374,7 +374,7 @@ function OnboardingWalkthrough({
|
|
|
374
374
|
isStepSkipped,
|
|
375
375
|
allStepsComplete,
|
|
376
376
|
markMultipleComplete
|
|
377
|
-
} =
|
|
377
|
+
} = _chunkAY6XJOINcjs.useOnboardingState.call(void 0, storageKey);
|
|
378
378
|
const hasAutoMarkedRef = _react.useRef.call(void 0, false);
|
|
379
379
|
const autoMarkingInProgressRef = _react.useRef.call(void 0, false);
|
|
380
380
|
const lastCompletionStatusRef = _react.useRef.call(void 0, null);
|
|
@@ -18,7 +18,7 @@ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkUO6F6LLIcjs = require('./chunk-UO6F6LLI.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -110,6 +110,9 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
110
110
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
|
+
var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
|
|
114
|
+
|
|
115
|
+
|
|
113
116
|
var _chunkYMLRDVPOcjs = require('./chunk-YMLRDVPO.cjs');
|
|
114
117
|
|
|
115
118
|
|
|
@@ -2250,7 +2253,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2250
2253
|
if (heading.level > opts.maxLevel) continue;
|
|
2251
2254
|
let title = heading.text;
|
|
2252
2255
|
if (opts.stripFormattingMarkers) {
|
|
2253
|
-
title =
|
|
2256
|
+
title = _chunkUO6F6LLIcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2254
2257
|
}
|
|
2255
2258
|
const baseId = _chunkW4VEDSAXcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkW4VEDSAXcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2256
2259
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2507,7 +2510,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2507
2510
|
function openAskAi(source, options) {
|
|
2508
2511
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2509
2512
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2510
|
-
window.dispatchEvent(new CustomEvent(
|
|
2513
|
+
window.dispatchEvent(new CustomEvent(_chunkUO6F6LLIcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2511
2514
|
}
|
|
2512
2515
|
function MingoAiButton({
|
|
2513
2516
|
source,
|
|
@@ -2550,7 +2553,7 @@ function MingoAiButton({
|
|
|
2550
2553
|
{
|
|
2551
2554
|
...props,
|
|
2552
2555
|
type: "button",
|
|
2553
|
-
...{ [
|
|
2556
|
+
...{ [_chunkUO6F6LLIcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2554
2557
|
variant: field ? "glyph" : "transparent",
|
|
2555
2558
|
size: "wrap",
|
|
2556
2559
|
font: "regular",
|
|
@@ -2575,7 +2578,7 @@ function MingoAiButton({
|
|
|
2575
2578
|
),
|
|
2576
2579
|
children: [
|
|
2577
2580
|
!field && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2578
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2581
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUO6F6LLIcjs.MingoEdgeLight, { className: "rounded-md" }),
|
|
2579
2582
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden rounded-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2580
2583
|
"span",
|
|
2581
2584
|
{
|
|
@@ -2791,9 +2794,9 @@ function QuestionChips({
|
|
|
2791
2794
|
{
|
|
2792
2795
|
"data-loading-item": true,
|
|
2793
2796
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2794
|
-
...prompt ? { [
|
|
2797
|
+
...prompt ? { [_chunkUO6F6LLIcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2795
2798
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2796
|
-
|
|
2799
|
+
_chunkUO6F6LLIcjs.QuickActionChipButton,
|
|
2797
2800
|
{
|
|
2798
2801
|
loading,
|
|
2799
2802
|
variant: "question",
|
|
@@ -2938,7 +2941,8 @@ function AssistantAskPrompts({
|
|
|
2938
2941
|
const card = variant === "card";
|
|
2939
2942
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2940
2943
|
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( (card ? _optionalChain([assistant, 'optionalAccess', _119 => _119.askCard, 'optionalAccess', _120 => _120.count]) : void 0))), () => ( ASK_PROMPTS_DEFAULT_COUNT));
|
|
2941
|
-
const
|
|
2944
|
+
const pageTopic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
|
|
2945
|
+
const ask = useAskSurface({ topic: _nullishCoalesce(topic, () => ( pageTopic)), count: slots, exclude, enabled, onOpen });
|
|
2942
2946
|
if (!assistantAvailable(assistant)) return null;
|
|
2943
2947
|
const shared = {
|
|
2944
2948
|
prompts: ask.prompts,
|
|
@@ -3003,7 +3007,7 @@ function QuickActionMarquee({
|
|
|
3003
3007
|
);
|
|
3004
3008
|
if (items.length === 0) return null;
|
|
3005
3009
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3006
|
-
|
|
3010
|
+
_chunkUO6F6LLIcjs.QuickActionWall,
|
|
3007
3011
|
{
|
|
3008
3012
|
chips,
|
|
3009
3013
|
mode,
|
|
@@ -3248,7 +3252,7 @@ function ComposerSheet({
|
|
|
3248
3252
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "left" }),
|
|
3249
3253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "right" }),
|
|
3250
3254
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3251
|
-
|
|
3255
|
+
_chunkUO6F6LLIcjs.PanelResizeHandle,
|
|
3252
3256
|
{
|
|
3253
3257
|
side: "bottom",
|
|
3254
3258
|
size: _nullishCoalesce(resolved, () => ( minHeight)),
|
|
@@ -3351,7 +3355,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3351
3355
|
hasNextPage,
|
|
3352
3356
|
isFetchingNextPage,
|
|
3353
3357
|
onLoadMore,
|
|
3354
|
-
pageSize =
|
|
3358
|
+
pageSize = _chunkUO6F6LLIcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3355
3359
|
...props
|
|
3356
3360
|
}, ref) => {
|
|
3357
3361
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3649,7 +3653,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3649
3653
|
label = "Loading",
|
|
3650
3654
|
region = true
|
|
3651
3655
|
}) {
|
|
3652
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3656
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUO6F6LLIcjs.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) }) }) });
|
|
3653
3657
|
}
|
|
3654
3658
|
function AdminContentCardGrid({
|
|
3655
3659
|
items,
|
|
@@ -5241,7 +5245,7 @@ function Section({ title, description, children }) {
|
|
|
5241
5245
|
] });
|
|
5242
5246
|
}
|
|
5243
5247
|
function ProxyCredentialsPanel({ description }) {
|
|
5244
|
-
const hydrated =
|
|
5248
|
+
const hydrated = _chunkUO6F6LLIcjs.useIsHydrated.call(void 0, );
|
|
5245
5249
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5246
5250
|
ProxyCredentialsForm,
|
|
5247
5251
|
{
|
|
@@ -5405,12 +5409,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5405
5409
|
|
|
5406
5410
|
// src/components/chat/index.ts
|
|
5407
5411
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5408
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5412
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-ZJIOMMSA.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5409
5413
|
);
|
|
5410
5414
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5411
5415
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5412
5416
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5413
|
-
_react.useEffect.call(void 0, () =>
|
|
5417
|
+
_react.useEffect.call(void 0, () => _chunkUO6F6LLIcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5414
5418
|
const { loadStyles } = props;
|
|
5415
5419
|
_react.useEffect.call(void 0, () => {
|
|
5416
5420
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5418,12 +5422,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5418
5422
|
_react.useEffect.call(void 0, () => {
|
|
5419
5423
|
if (load) return void 0;
|
|
5420
5424
|
const start = () => setLoadRequested(true);
|
|
5421
|
-
if (
|
|
5422
|
-
for (const name of
|
|
5423
|
-
const cancel =
|
|
5425
|
+
if (_chunkUO6F6LLIcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5426
|
+
for (const name of _chunkUO6F6LLIcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5427
|
+
const cancel = _chunkUO6F6LLIcjs.onAskAiIntent.call(void 0, start);
|
|
5424
5428
|
return () => {
|
|
5425
5429
|
cancel();
|
|
5426
|
-
for (const name of
|
|
5430
|
+
for (const name of _chunkUO6F6LLIcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5427
5431
|
};
|
|
5428
5432
|
}, [load]);
|
|
5429
5433
|
if (!load) return null;
|