@flamingo-stack/openframe-frontend-core 0.0.718 → 0.0.720
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-MIQLUUVF.cjs → chunk-2C72EWQR.cjs} +93 -29
- package/dist/{chunk-IWCPXJEE.js → chunk-3HZ6XSZC.js} +2 -4
- package/dist/{chunk-ZXCZYMN4.cjs → chunk-4SIZCHVZ.cjs} +13 -15
- package/dist/{chunk-BOTM373R.cjs → chunk-5XDCCQ4A.cjs} +15 -15
- package/dist/{chunk-DXCBOZVT.cjs → chunk-6BLN5WDS.cjs} +41 -41
- package/dist/{chunk-DCD5WZUF.js → chunk-6W46LVK4.js} +5 -5
- package/dist/{chunk-JHQ334WS.js → chunk-742BGXNX.js} +2 -0
- package/dist/{chunk-AECTRMGQ.cjs → chunk-7GRPR7XA.cjs} +13 -1
- package/dist/{chunk-45F7PXUI.js → chunk-7HYEQKN6.js} +6 -6
- package/dist/{chunk-N2PF5CFX.js → chunk-7IOU6BJE.js} +12 -11
- package/dist/{chunk-BWIN42ZA.cjs → chunk-7LPR4RZ3.cjs} +34 -36
- package/dist/chunk-AFTRPEXO.js +13 -0
- package/dist/{chunk-JPD4NXH6.js → chunk-AZRI4XBP.js} +1 -1
- package/dist/{chunk-4QFWGLZO.js → chunk-B2N4YX66.js} +1 -1
- package/dist/{chunk-QXZCLQNV.js → chunk-B5LNX4GZ.js} +2 -2
- package/dist/{chunk-GN4A7PMB.cjs → chunk-DHNJSQGX.cjs} +91 -91
- package/dist/{chunk-NDZ5ZXOQ.cjs → chunk-DOPOHO6H.cjs} +20 -20
- package/dist/{chunk-Z3CVSPO3.cjs → chunk-DYDDAA6O.cjs} +519 -518
- package/dist/{chunk-2RKFMUNW.cjs → chunk-EVMM3JE6.cjs} +64 -63
- package/dist/chunk-EWPR7662.cjs +13 -0
- package/dist/{chunk-AGVXKD4K.js → chunk-FSQQZFVG.js} +12 -0
- package/dist/{chunk-TTVOLEUS.js → chunk-GANIUMRU.js} +89 -2
- package/dist/{chunk-S2FUFMLW.cjs → chunk-HFEYEPOG.cjs} +27 -27
- package/dist/{chunk-LE5WKGJV.cjs → chunk-HTS46FFY.cjs} +3 -3
- package/dist/{chunk-6A43ZDWV.cjs → chunk-IL3ZWNM2.cjs} +4 -4
- package/dist/{chunk-PSVSEN4J.cjs → chunk-IMTY3GRR.cjs} +2 -0
- package/dist/{chunk-YC5COB5V.cjs → chunk-ISCZ6UNF.cjs} +85 -89
- package/dist/{chunk-XGHGGBM3.js → chunk-K2BYVPGR.js} +3 -3
- package/dist/{chunk-HWVUR735.cjs → chunk-KSGMZHVV.cjs} +2 -2
- package/dist/{chunk-SGFTTJKO.js → chunk-LO3KCLEF.js} +1 -1
- package/dist/{chunk-MA4Q5RBP.cjs → chunk-NYSMDM4J.cjs} +2 -2
- package/dist/{chunk-67QBMN4R.js → chunk-O3MKJU6A.js} +6 -6
- package/dist/{chunk-APJZBDQN.js → chunk-PSMJYZMV.js} +27 -26
- package/dist/{chunk-JH2SIWPQ.js → chunk-PXAKSPLZ.js} +1586 -1263
- package/dist/{chunk-TBCZCRQ5.js → chunk-Q5327DXK.js} +13 -17
- package/dist/{chunk-EZC2F5OT.cjs → chunk-QF464PPL.cjs} +39 -39
- package/dist/{chunk-UWQWMGJ7.cjs → chunk-RDP5UZXQ.cjs} +888 -565
- package/dist/{chunk-ETYLOZOB.cjs → chunk-RFUOIQSG.cjs} +100 -13
- package/dist/{chunk-DC4RTYWK.cjs → chunk-RZQGIWK3.cjs} +3 -3
- package/dist/{chunk-PQ6HBLZ7.js → chunk-TORERAXD.js} +105 -41
- package/dist/{chunk-6YPTUHM7.js → chunk-URW23QUM.js} +1 -1
- package/dist/{chunk-QBCDSTLE.cjs → chunk-UWJMDFDO.cjs} +18 -18
- package/dist/{chunk-YEMCCYIF.js → chunk-V6B2FBZK.js} +5 -5
- package/dist/{chunk-JIWMBIVZ.js → chunk-VBHGJFA3.js} +10 -10
- package/dist/{chunk-Z5UWW3Z2.cjs → chunk-VF2CJXZ2.cjs} +81 -65
- package/dist/{chunk-DEZDMTBM.js → chunk-VYVPII4W.js} +8 -10
- package/dist/{chunk-MM7MCIXL.js → chunk-VYZCKY5K.js} +9 -9
- package/dist/{chunk-E7YCPY7K.cjs → chunk-XSM46FHD.cjs} +3 -3
- package/dist/{chunk-NZ5BHDFZ.js → chunk-XW3Q623Q.js} +1 -1
- package/dist/{chunk-LOYPRJWA.js → chunk-YK3X74SF.js} +67 -51
- package/dist/{chunk-WALCXC7J.cjs → chunk-ZHD3F2TH.cjs} +3 -3
- package/dist/{chunk-KBJJQFYU.js → chunk-ZPHOQDAE.js} +1 -1
- package/dist/{cloud-tenants-TAKOWXLD.js → cloud-tenants-RKQRSDNE.js} +9 -9
- package/dist/{cloud-tenants-PFDF7O5U.cjs → cloud-tenants-UQZASXUB.cjs} +10 -10
- package/dist/components/case-studies/index.cjs +23 -23
- package/dist/components/case-studies/index.js +10 -10
- package/dist/components/chat/ask-prompts.d.ts +10 -2
- package/dist/components/chat/ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/assistant-ask-prompts.d.ts +27 -0
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.d.ts +1 -0
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts +63 -0
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/index.cjs +23 -6
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +22 -5
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +11 -11
- package/dist/components/contact/index.js +10 -10
- package/dist/components/docs/index.cjs +14 -14
- package/dist/components/docs/index.js +13 -13
- package/dist/components/embeds/index.cjs +11 -11
- package/dist/components/embeds/index.js +10 -10
- package/dist/components/faq/faq-ask-card.d.ts +44 -0
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -0
- package/dist/components/faq/faq-document-page.d.ts +5 -1
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-section.d.ts +18 -5
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +13 -12
- package/dist/components/faq/index.d.ts +1 -0
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +12 -11
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/index.cjs +10 -10
- package/dist/components/features/index.js +9 -9
- package/dist/components/features/remote-session/remote-desktop-view.d.ts +6 -2
- package/dist/components/features/remote-session/remote-desktop-view.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +104 -105
- package/dist/components/help-center-pages/index.js +28 -29
- package/dist/components/help-center-pages/trust-center-page.d.ts +4 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/index.cjs +109 -197
- package/dist/components/index.js +228 -316
- package/dist/components/meeting-scheduler/index.cjs +50 -51
- package/dist/components/meeting-scheduler/index.js +12 -13
- package/dist/components/navigation/index.cjs +13 -13
- package/dist/components/navigation/index.js +12 -12
- package/dist/components/navigation/mingo-ai-button.d.ts +1 -1
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +13 -14
- package/dist/components/onboarding-guides/index.js +12 -13
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/product-demo/index.js +7 -7
- package/dist/components/related-content/index.cjs +5 -7
- package/dist/components/related-content/index.js +4 -6
- package/dist/components/related-content/related-content-section.d.ts +6 -6
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +15 -15
- package/dist/components/tickets/index.js +14 -14
- package/dist/components/ui/index.cjs +26 -10
- package/dist/components/ui/index.js +25 -9
- package/dist/contexts/assistant-runtime-context.d.ts +74 -0
- package/dist/contexts/assistant-runtime-context.d.ts.map +1 -0
- package/dist/contexts/index.cjs +7 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +6 -0
- package/dist/{devices-KRCGZMGA.cjs → devices-7Q2EUM7B.cjs} +11 -11
- package/dist/{devices-LHEX7O5T.js → devices-U3Y4IIW4.js} +9 -9
- package/dist/hooks/index.cjs +3 -4
- package/dist/hooks/index.js +2 -3
- package/dist/hooks/use-self-fetch.d.ts +3 -0
- package/dist/hooks/use-self-fetch.d.ts.map +1 -1
- package/dist/index.cjs +34 -14
- package/dist/index.js +33 -13
- package/dist/{knowledge-RZSFNR33.js → knowledge-NST53EXE.js} +9 -9
- package/dist/{knowledge-KLVPVEYZ.cjs → knowledge-UYIZ74MA.cjs} +11 -11
- package/dist/{logs-OX3XTVL2.cjs → logs-HTH7X7KV.cjs} +18 -18
- package/dist/{logs-E5DOV5JO.js → logs-JVTRG232.js} +9 -9
- package/dist/{policies-MC2S4S5G.js → policies-DTXTRK56.js} +9 -9
- package/dist/{policies-FOSCIZGK.cjs → policies-MXK2HB4W.cjs} +14 -14
- package/dist/{remote-session-JQ2BPIE3.js → remote-session-LAJZKQBN.js} +3 -3
- package/dist/{remote-session-DRFE5XZE.cjs → remote-session-SKKF4PBV.cjs} +5 -5
- package/dist/{software-update-D4OEIH65.js → software-update-6RHMPM3W.js} +9 -9
- package/dist/{software-update-HOBSTWVO.cjs → software-update-P6BSM6HX.cjs} +14 -14
- package/dist/utils/index.cjs +26 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +25 -3
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/trial.d.ts +18 -0
- package/dist/utils/trial.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/chat/ask-prompts.tsx +25 -3
- package/src/components/chat/assistant-ask-prompts.tsx +78 -0
- package/src/components/chat/entity-cards/dispatch.tsx +38 -4
- package/src/components/chat/hooks/index.ts +12 -0
- package/src/components/chat/hooks/use-ask-prompts.ts +188 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/utils/icon-library.tsx +6 -0
- package/src/components/faq/faq-ask-card.tsx +115 -0
- package/src/components/faq/faq-document-page.tsx +6 -1
- package/src/components/faq/faq-section.tsx +27 -5
- package/src/components/faq/index.ts +1 -0
- package/src/components/features/auth/auth-benefits-panel.tsx +5 -4
- package/src/components/features/remote-session/remote-desktop-view.tsx +86 -63
- package/src/components/help-center-pages/trust-center-page.tsx +5 -2
- package/src/components/navigation/mingo-ai-button.tsx +27 -6
- package/src/components/related-content/related-content-section.tsx +46 -47
- package/src/contexts/assistant-runtime-context.tsx +84 -0
- package/src/contexts/index.ts +9 -0
- package/src/hooks/use-self-fetch.ts +7 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/list-url.ts +4 -0
- package/src/utils/source-icons.ts +10 -2
- package/src/utils/trial.ts +19 -0
- package/dist/chunk-AUMKE74M.cjs +0 -16
- package/dist/chunk-G3GRYDMS.js +0 -16
- package/dist/chunk-GEDY7HQI.cjs +0 -85
- package/dist/chunk-YBQQNDC7.js +0 -85
|
@@ -1,21 +1,29 @@
|
|
|
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 _chunkDYDDAA6Ocjs = require('./chunk-DYDDAA6O.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVF2CJXZ2cjs = require('./chunk-VF2CJXZ2.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk4SIZCHVZcjs = require('./chunk-4SIZCHVZ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var _chunkZXCZYMN4cjs = require('./chunk-ZXCZYMN4.cjs');
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkRDP5UZXQcjs = require('./chunk-RDP5UZXQ.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
26
|
+
|
|
19
27
|
|
|
20
28
|
|
|
21
29
|
|
|
@@ -29,7 +37,8 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
29
37
|
|
|
30
38
|
|
|
31
39
|
|
|
32
|
-
|
|
40
|
+
|
|
41
|
+
var _chunkRFUOIQSGcjs = require('./chunk-RFUOIQSG.cjs');
|
|
33
42
|
|
|
34
43
|
|
|
35
44
|
var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
|
|
@@ -61,7 +70,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
61
70
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
62
71
|
"div",
|
|
63
72
|
{
|
|
64
|
-
id:
|
|
73
|
+
id: _chunkRDP5UZXQcjs.faqItemAnchor.call(void 0, item.id),
|
|
65
74
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
66
75
|
children: [
|
|
67
76
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -109,6 +118,54 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
109
118
|
}) });
|
|
110
119
|
}
|
|
111
120
|
|
|
121
|
+
// src/components/faq/faq-ask-card.tsx
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
var DEFAULT_ASK_CARD = {
|
|
125
|
+
title: "Still deciding?",
|
|
126
|
+
description: "{assistant} answers from our docs and customer stories."
|
|
127
|
+
};
|
|
128
|
+
var PICK_ROOT_MARGIN = "600px";
|
|
129
|
+
var fillAssistant = (text, name) => text.split("{assistant}").join(name);
|
|
130
|
+
function faqAskCardShown(assistant) {
|
|
131
|
+
return _chunkRDP5UZXQcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
132
|
+
}
|
|
133
|
+
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
134
|
+
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
135
|
+
const { ref, inView } = _chunkGQ7JJUITcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
136
|
+
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
137
|
+
if (inView && !reached) setReached(true);
|
|
138
|
+
const shownElsewhere = _chunkRDP5UZXQcjs.useShownAskPromptIds.call(void 0, );
|
|
139
|
+
const excluded = exclude === void 0 ? shownElsewhere : exclude;
|
|
140
|
+
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => ( _chunkRDP5UZXQcjs.ASK_PROMPTS_DEFAULT_COUNT));
|
|
141
|
+
const { prompts, isLoading, supported } = _chunkRDP5UZXQcjs.useAskPrompts.call(void 0, {
|
|
142
|
+
topic,
|
|
143
|
+
count: slots,
|
|
144
|
+
exclude: _nullishCoalesce(excluded, () => ( void 0)),
|
|
145
|
+
enabled: reached && excluded !== null
|
|
146
|
+
});
|
|
147
|
+
const open = _chunkRDP5UZXQcjs.useAssistantOpen.call(void 0, topic, onOpen);
|
|
148
|
+
const scoped = _react.useMemo.call(void 0, () => assistant ? { ...assistant, open } : null, [assistant, open]);
|
|
149
|
+
if (!faqAskCardShown(assistant) || !assistant.name) return null;
|
|
150
|
+
const name = assistant.name;
|
|
151
|
+
const cardDescription = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _4 => _4.askCard, 'optionalAccess', _5 => _5.description]))), () => ( DEFAULT_ASK_CARD.description));
|
|
152
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWPR7662cjs.AssistantRuntimeContext.Provider, { value: scoped, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
+
_chunkRDP5UZXQcjs.AskCard,
|
|
154
|
+
{
|
|
155
|
+
title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _6 => _6.askCard, 'optionalAccess', _7 => _7.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
|
|
156
|
+
description: cardDescription ? fillAssistant(cardDescription, name) : void 0,
|
|
157
|
+
prompts,
|
|
158
|
+
count: supported ? slots : 0,
|
|
159
|
+
loading: isLoading,
|
|
160
|
+
source: assistant.source,
|
|
161
|
+
label: name,
|
|
162
|
+
icon: assistant.icon,
|
|
163
|
+
onOpen: open,
|
|
164
|
+
onAsk: (prompt) => _optionalChain([assistant, 'access', _8 => _8.onAsk, 'optionalCall', _9 => _9({ promptId: prompt.id, topic })])
|
|
165
|
+
}
|
|
166
|
+
) }) });
|
|
167
|
+
}
|
|
168
|
+
|
|
112
169
|
// src/components/faq/json-ld.ts
|
|
113
170
|
var DEFAULT_NAME = "Frequently Asked Questions";
|
|
114
171
|
var DEFAULT_DESCRIPTION = "Answers to common questions.";
|
|
@@ -139,14 +196,14 @@ function buildFaqJsonLdFromFaqs(faqs, opts = {}) {
|
|
|
139
196
|
|
|
140
197
|
var DEFAULT_HEADING_TEXT = "Frequently Asked Questions";
|
|
141
198
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "") {
|
|
142
|
-
return
|
|
199
|
+
return _chunkRFUOIQSGcjs.buildSuggestionUrl.call(void 0, "/api/faqs", { apiBaseUrl, entityType, entityId, count: minResults });
|
|
143
200
|
}
|
|
144
201
|
function groupFaqsBySection(faqs) {
|
|
145
202
|
const byName = /* @__PURE__ */ new Map();
|
|
146
203
|
let uncategorized = null;
|
|
147
204
|
for (const faq of faqs) {
|
|
148
205
|
const item = { id: faq.id, question: faq.question, answer: faq.answer };
|
|
149
|
-
const name = _optionalChain([faq, 'access',
|
|
206
|
+
const name = _optionalChain([faq, 'access', _10 => _10.section, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]);
|
|
150
207
|
if (!name) {
|
|
151
208
|
if (!uncategorized) uncategorized = { section: null, slug: null, items: [] };
|
|
152
209
|
uncategorized.items.push(item);
|
|
@@ -154,7 +211,7 @@ function groupFaqsBySection(faqs) {
|
|
|
154
211
|
}
|
|
155
212
|
let group = byName.get(name);
|
|
156
213
|
if (!group) {
|
|
157
|
-
group = { section: name, slug:
|
|
214
|
+
group = { section: name, slug: _chunkRDP5UZXQcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
158
215
|
byName.set(name, group);
|
|
159
216
|
}
|
|
160
217
|
group.items.push(item);
|
|
@@ -173,7 +230,7 @@ function GroupedFaqList({
|
|
|
173
230
|
}) {
|
|
174
231
|
const CategoryHeading = categoryHeadingAs;
|
|
175
232
|
const navGroups = _react.useMemo.call(void 0, () => groups.filter((g) => g.slug), [groups]);
|
|
176
|
-
const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access',
|
|
233
|
+
const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access', _13 => _13[0], 'optionalAccess', _14 => _14.slug]), () => ( null)));
|
|
177
234
|
const slugKey = navGroups.map((g) => g.slug).join("|");
|
|
178
235
|
const navGroupsRef = _react.useRef.call(void 0, navGroups);
|
|
179
236
|
_react.useEffect.call(void 0, () => {
|
|
@@ -209,13 +266,13 @@ function GroupedFaqList({
|
|
|
209
266
|
}, [slugKey]);
|
|
210
267
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
211
268
|
_react.useEffect.call(void 0, () => {
|
|
212
|
-
const refresh = () => setHashTarget(
|
|
269
|
+
const refresh = () => setHashTarget(_chunkRDP5UZXQcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
213
270
|
refresh();
|
|
214
271
|
window.addEventListener("hashchange", refresh);
|
|
215
272
|
return () => window.removeEventListener("hashchange", refresh);
|
|
216
273
|
}, []);
|
|
217
274
|
const defaultOpenByGroupKey = _react.useMemo.call(void 0, () => {
|
|
218
|
-
if (_optionalChain([hashTarget, 'optionalAccess',
|
|
275
|
+
if (_optionalChain([hashTarget, 'optionalAccess', _15 => _15.kind]) !== "item") return null;
|
|
219
276
|
const targetId = hashTarget.rawId;
|
|
220
277
|
const result = /* @__PURE__ */ new Map();
|
|
221
278
|
for (const group of groups) {
|
|
@@ -224,13 +281,13 @@ function GroupedFaqList({
|
|
|
224
281
|
}
|
|
225
282
|
return result.size > 0 ? result : null;
|
|
226
283
|
}, [groups, hashTarget]);
|
|
227
|
-
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess',
|
|
228
|
-
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess',
|
|
229
|
-
|
|
284
|
+
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _16 => _16.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
285
|
+
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _17 => _17.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _18 => _18.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
286
|
+
_chunk4SIZCHVZcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX });
|
|
230
287
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
231
288
|
if (pillSyncedHash !== hashTarget) {
|
|
232
289
|
setPillSyncedHash(hashTarget);
|
|
233
|
-
if (_optionalChain([hashTarget, 'optionalAccess',
|
|
290
|
+
if (_optionalChain([hashTarget, 'optionalAccess', _19 => _19.kind]) === "section") setActiveSlug(hashTarget.slug);
|
|
234
291
|
}
|
|
235
292
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
236
293
|
e.preventDefault();
|
|
@@ -259,12 +316,12 @@ function GroupedFaqList({
|
|
|
259
316
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
260
317
|
const key = groupKey(group);
|
|
261
318
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
262
|
-
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className:
|
|
319
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunkRFUOIQSGcjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
263
320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
264
321
|
FaqAccordion,
|
|
265
322
|
{
|
|
266
323
|
items: group.items,
|
|
267
|
-
defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess',
|
|
324
|
+
defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess', _20 => _20.get, 'call', _21 => _21(key)])
|
|
268
325
|
},
|
|
269
326
|
`${key}:${accordionKeySuffix}`
|
|
270
327
|
)
|
|
@@ -304,17 +361,21 @@ function FaqSection({
|
|
|
304
361
|
className,
|
|
305
362
|
minResults,
|
|
306
363
|
apiBaseUrl = "",
|
|
307
|
-
aside
|
|
364
|
+
aside: asideProp,
|
|
365
|
+
ask
|
|
308
366
|
}) {
|
|
367
|
+
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
368
|
+
const askTopic = ask === false ? void 0 : _optionalChain([ask, 'optionalAccess', _22 => _22.topic]) || entityType;
|
|
369
|
+
const aside = _nullishCoalesce(asideProp, () => ( (ask !== false && askTopic && faqAskCardShown(assistant) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqAskCard, { ...ask, topic: askTopic }) : void 0)));
|
|
309
370
|
const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl);
|
|
310
371
|
const initialData = _react.useMemo.call(void 0,
|
|
311
372
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
312
373
|
[initialFaqs]
|
|
313
374
|
);
|
|
314
|
-
const { data, isLoading, error } =
|
|
315
|
-
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
375
|
+
const { data, isLoading, error } = _chunkRFUOIQSGcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
376
|
+
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _23 => _23.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _24 => _24.faqs])]);
|
|
316
377
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
317
|
-
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
378
|
+
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkRFUOIQSGcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
318
379
|
if (error) return null;
|
|
319
380
|
if (!isLoading && faqs.length === 0) return null;
|
|
320
381
|
if (isLoading && faqs.length === 0) {
|
|
@@ -357,14 +418,15 @@ function FaqDocumentPage({
|
|
|
357
418
|
entityType,
|
|
358
419
|
entityId,
|
|
359
420
|
minResults,
|
|
421
|
+
ask,
|
|
360
422
|
shell = true
|
|
361
423
|
}) {
|
|
362
424
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
363
425
|
const backCfg = backButton === false ? void 0 : {
|
|
364
|
-
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess',
|
|
365
|
-
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess',
|
|
426
|
+
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _25 => _25.label]), () => ( "Back to home")),
|
|
427
|
+
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _26 => _26.href]), () => ( "/")))
|
|
366
428
|
};
|
|
367
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
429
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVF2CJXZ2cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
368
430
|
FaqSection,
|
|
369
431
|
{
|
|
370
432
|
initialFaqs,
|
|
@@ -374,14 +436,16 @@ function FaqDocumentPage({
|
|
|
374
436
|
apiBaseUrl,
|
|
375
437
|
entityType,
|
|
376
438
|
entityId,
|
|
377
|
-
minResults
|
|
439
|
+
minResults,
|
|
440
|
+
ask
|
|
378
441
|
}
|
|
379
442
|
) });
|
|
380
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
443
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYDDAA6Ocjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
381
444
|
}
|
|
382
445
|
|
|
383
446
|
|
|
384
447
|
|
|
385
448
|
|
|
386
449
|
|
|
387
|
-
|
|
450
|
+
|
|
451
|
+
exports.FaqAccordion = FaqAccordion; exports.FaqAskCard = FaqAskCard; exports.FaqSection = FaqSection; exports.FaqDocumentPage = FaqDocumentPage;
|
|
@@ -6,9 +6,6 @@ import {
|
|
|
6
6
|
useEndpointsRuntime,
|
|
7
7
|
useRequiredEndpointsRuntime
|
|
8
8
|
} from "./chunk-HFL2F4RM.js";
|
|
9
|
-
import {
|
|
10
|
-
contentFetch
|
|
11
|
-
} from "./chunk-G3GRYDMS.js";
|
|
12
9
|
import {
|
|
13
10
|
ELAPSED_MS_FIELD,
|
|
14
11
|
FORM_RESCUE_ATTEMPT_FIELD,
|
|
@@ -47,11 +44,12 @@ import {
|
|
|
47
44
|
useSearchParams
|
|
48
45
|
} from "./chunk-GY4IZG22.js";
|
|
49
46
|
import {
|
|
47
|
+
contentFetch,
|
|
50
48
|
createSearchParams,
|
|
51
49
|
parseSchemaParams,
|
|
52
50
|
positiveInt,
|
|
53
51
|
shouldIncludeInUrl
|
|
54
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-FSQQZFVG.js";
|
|
55
53
|
import {
|
|
56
54
|
Chevron02DownIcon,
|
|
57
55
|
XmarkIcon
|
|
@@ -8,9 +8,6 @@ var _chunkB4NCVYEQcjs = require('./chunk-B4NCVYEQ.cjs');
|
|
|
8
8
|
var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var _chunkAUMKE74Mcjs = require('./chunk-AUMKE74M.cjs');
|
|
12
|
-
|
|
13
|
-
|
|
14
11
|
|
|
15
12
|
|
|
16
13
|
|
|
@@ -51,7 +48,8 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
51
48
|
|
|
52
49
|
|
|
53
50
|
|
|
54
|
-
|
|
51
|
+
|
|
52
|
+
var _chunk7GRPR7XAcjs = require('./chunk-7GRPR7XA.cjs');
|
|
55
53
|
|
|
56
54
|
|
|
57
55
|
|
|
@@ -1123,7 +1121,7 @@ function useContactSubmission(options = {}) {
|
|
|
1123
1121
|
if (isSubmitting) return;
|
|
1124
1122
|
setIsSubmitting(true);
|
|
1125
1123
|
try {
|
|
1126
|
-
const response = await
|
|
1124
|
+
const response = await _chunk7GRPR7XAcjs.contentFetch.call(void 0, contactUrl, {
|
|
1127
1125
|
method: "POST",
|
|
1128
1126
|
headers: { "Content-Type": "application/json" },
|
|
1129
1127
|
body: JSON.stringify({
|
|
@@ -1818,7 +1816,7 @@ function variablesToUrlParams(variables, schema) {
|
|
|
1818
1816
|
const params = new URLSearchParams();
|
|
1819
1817
|
for (const [paramName, paramConfig] of Object.entries(schema)) {
|
|
1820
1818
|
const value = getNestedValue(variables, paramConfig.graphqlPath);
|
|
1821
|
-
if (!
|
|
1819
|
+
if (!_chunk7GRPR7XAcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
|
|
1822
1820
|
continue;
|
|
1823
1821
|
}
|
|
1824
1822
|
if (Array.isArray(value)) {
|
|
@@ -1847,7 +1845,7 @@ function coerceScalar(value, type) {
|
|
|
1847
1845
|
return isNaN(num) ? null : num;
|
|
1848
1846
|
}
|
|
1849
1847
|
case "int":
|
|
1850
|
-
return
|
|
1848
|
+
return _chunk7GRPR7XAcjs.positiveInt.call(void 0, value, null);
|
|
1851
1849
|
case "boolean":
|
|
1852
1850
|
return value === "true" || value === "1";
|
|
1853
1851
|
case "string":
|
|
@@ -2153,7 +2151,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2153
2151
|
return flattened;
|
|
2154
2152
|
}, [stableSchema]);
|
|
2155
2153
|
const rawParams = _react.useMemo.call(void 0, () => {
|
|
2156
|
-
const result =
|
|
2154
|
+
const result = _chunk7GRPR7XAcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(searchString), {
|
|
2157
2155
|
absent: options.absent === "null" ? "null" : "undefined"
|
|
2158
2156
|
});
|
|
2159
2157
|
if (debug) {
|
|
@@ -2169,14 +2167,14 @@ function useApiParams(schema, options = {}) {
|
|
|
2169
2167
|
}
|
|
2170
2168
|
const params = stableParams;
|
|
2171
2169
|
const addParamToSearchParams = _react.useCallback.call(void 0, (searchParams, key, value) => {
|
|
2172
|
-
for (const [k, v] of
|
|
2170
|
+
for (const [k, v] of _chunk7GRPR7XAcjs.createSearchParams.call(void 0, { [key]: value })) searchParams.append(k, v);
|
|
2173
2171
|
}, []);
|
|
2174
2172
|
const urlSearchParams = _react.useMemo.call(void 0, () => {
|
|
2175
2173
|
const newParams = new URLSearchParams();
|
|
2176
2174
|
for (const key of Object.keys(stableSchema)) {
|
|
2177
2175
|
const value = params[key];
|
|
2178
2176
|
const paramConfig = flattenedSchema[key];
|
|
2179
|
-
if (!
|
|
2177
|
+
if (!_chunk7GRPR7XAcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
|
|
2180
2178
|
continue;
|
|
2181
2179
|
}
|
|
2182
2180
|
addParamToSearchParams(newParams, key, value);
|
|
@@ -2233,7 +2231,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2233
2231
|
return;
|
|
2234
2232
|
}
|
|
2235
2233
|
const newParams = new URLSearchParams();
|
|
2236
|
-
if (
|
|
2234
|
+
if (_chunk7GRPR7XAcjs.shouldIncludeInUrl.call(void 0, value, config)) {
|
|
2237
2235
|
addParamToSearchParams(newParams, key, value);
|
|
2238
2236
|
updateUrl(newParams);
|
|
2239
2237
|
} else {
|
|
@@ -2252,7 +2250,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2252
2250
|
console.warn(`[useApiParams] Unknown parameter: ${key}`);
|
|
2253
2251
|
continue;
|
|
2254
2252
|
}
|
|
2255
|
-
if (
|
|
2253
|
+
if (_chunk7GRPR7XAcjs.shouldIncludeInUrl.call(void 0, value, flattenedSchema[key])) {
|
|
2256
2254
|
addParamToSearchParams(newParams, key, value);
|
|
2257
2255
|
} else {
|
|
2258
2256
|
keysToRemove.push(key);
|
|
@@ -2277,7 +2275,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2277
2275
|
}, [router, debug]);
|
|
2278
2276
|
const pendingParams = _react.useMemo.call(void 0, () => {
|
|
2279
2277
|
if (pendingTail === void 0 || pendingTail === searchString) return params;
|
|
2280
|
-
return
|
|
2278
|
+
return _chunk7GRPR7XAcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(pendingTail), {
|
|
2281
2279
|
absent: options.absent === "null" ? "null" : "undefined"
|
|
2282
2280
|
});
|
|
2283
2281
|
}, [pendingTail, searchString, params, stableSchema, options.absent]);
|
|
@@ -2763,7 +2761,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2763
2761
|
...resumeTokenRef.current ? { resume_token: resumeTokenRef.current } : {}
|
|
2764
2762
|
};
|
|
2765
2763
|
try {
|
|
2766
|
-
void
|
|
2764
|
+
void _chunk7GRPR7XAcjs.contentFetch.call(void 0, draftsUrl, {
|
|
2767
2765
|
method: "POST",
|
|
2768
2766
|
headers: { "Content-Type": "application/json" },
|
|
2769
2767
|
body: JSON.stringify({ ...body, ..._nullishCoalesce(_optionalChain([getSignalsRef, 'access', _36 => _36.current, 'optionalCall', _37 => _37()]), () => ( {})) }),
|
|
@@ -2792,7 +2790,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2792
2790
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _38 => _38.current, 'optionalCall', _39 => _39(local.values)]);
|
|
2793
2791
|
};
|
|
2794
2792
|
if (_chunkGQ7JJUITcjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2795
|
-
|
|
2793
|
+
_chunk7GRPR7XAcjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
2796
2794
|
if (cancelled) return;
|
|
2797
2795
|
if (!data || data.form_id !== formId) {
|
|
2798
2796
|
restoreLocal();
|
|
@@ -1,18 +1,15 @@
|
|
|
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 _chunkDYDDAA6Ocjs = require('./chunk-DYDDAA6O.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var _chunkAUMKE74Mcjs = require('./chunk-AUMKE74M.cjs');
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _chunkUWQWMGJ7cjs = require('./chunk-UWQWMGJ7.cjs');
|
|
12
|
+
var _chunkRDP5UZXQcjs = require('./chunk-RDP5UZXQ.cjs');
|
|
16
13
|
|
|
17
14
|
|
|
18
15
|
var _chunkGQ7JJUITcjs = require('./chunk-GQ7JJUIT.cjs');
|
|
@@ -21,7 +18,10 @@ var _chunkGQ7JJUITcjs = require('./chunk-GQ7JJUIT.cjs');
|
|
|
21
18
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
22
19
|
|
|
23
20
|
|
|
24
|
-
var
|
|
21
|
+
var _chunkRFUOIQSGcjs = require('./chunk-RFUOIQSG.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var _chunk7GRPR7XAcjs = require('./chunk-7GRPR7XA.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
39
39
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
40
40
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
41
41
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
42
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
42
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkRDP5UZXQcjs.resolveSourceIcon.call(void 0, {
|
|
43
43
|
sourceRepo,
|
|
44
44
|
documentType: docType
|
|
45
45
|
});
|
|
@@ -69,7 +69,7 @@ function DocSearchBar({
|
|
|
69
69
|
renderResult
|
|
70
70
|
}) {
|
|
71
71
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
-
|
|
72
|
+
_chunkDYDDAA6Ocjs.SearchInput,
|
|
73
73
|
{
|
|
74
74
|
placeholder,
|
|
75
75
|
value: query,
|
|
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
|
|
|
119
119
|
results.push({
|
|
120
120
|
id: `group-${entry.repo}`,
|
|
121
121
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
122
|
-
title: `${
|
|
122
|
+
title: `${_chunkRDP5UZXQcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkRDP5UZXQcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
123
123
|
path: rows[0].path,
|
|
124
124
|
type: "file",
|
|
125
125
|
metadata: {
|
|
@@ -182,7 +182,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
182
182
|
if (composed && !isAbsoluteHref(href)) {
|
|
183
183
|
return { kind: "navigate-same-tab", href };
|
|
184
184
|
}
|
|
185
|
-
const isNewTab =
|
|
185
|
+
const isNewTab = _chunkRFUOIQSGcjs.decideNewTab.call(void 0, {
|
|
186
186
|
href,
|
|
187
187
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
188
188
|
surface: "useUnifiedNav",
|
|
@@ -276,7 +276,7 @@ function useDocSearch(config) {
|
|
|
276
276
|
limit: "10"
|
|
277
277
|
});
|
|
278
278
|
if (tableIdsKey) params.set("tableIds", tableIdsKey);
|
|
279
|
-
const response = await
|
|
279
|
+
const response = await _chunk7GRPR7XAcjs.contentFetch.call(void 0, `${resolvedSearchEndpoint}?${params.toString()}`);
|
|
280
280
|
if (!response.ok) {
|
|
281
281
|
throw new Error(`Search request failed: ${response.status}`);
|
|
282
282
|
}
|
|
@@ -311,27 +311,27 @@ function useDocSearch(config) {
|
|
|
311
311
|
case "navigate-same-tab": {
|
|
312
312
|
if (wantsNewTab) {
|
|
313
313
|
setKeepOpen(true);
|
|
314
|
-
window.open(action.href, "_blank",
|
|
314
|
+
window.open(action.href, "_blank", _chunkRDP5UZXQcjs.NEW_TAB_FEATURES);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
setKeepOpen(false);
|
|
318
318
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
319
319
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
320
|
-
router.push(
|
|
320
|
+
router.push(_chunkRDP5UZXQcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
case "navigate-new-tab":
|
|
324
324
|
setKeepOpen(true);
|
|
325
325
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
326
326
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
327
|
-
|
|
327
|
+
_chunkRDP5UZXQcjs.resolveExternalNavigation.call(void 0, {
|
|
328
328
|
href: action.href,
|
|
329
329
|
targetPlatform,
|
|
330
330
|
runtime
|
|
331
331
|
}).open();
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
window.open(action.href, "_blank",
|
|
334
|
+
window.open(action.href, "_blank", _chunkRDP5UZXQcjs.NEW_TAB_FEATURES);
|
|
335
335
|
return;
|
|
336
336
|
case "ask-ai":
|
|
337
337
|
setKeepOpen(false);
|