@flamingo-stack/openframe-frontend-core 0.0.741 → 0.0.743
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-SFY4UYPY.cjs → chunk-4A6OF4HI.cjs} +44 -44
- package/dist/{chunk-VA7OMDZO.cjs → chunk-4FWURR3W.cjs} +50 -50
- package/dist/{chunk-WBANGORJ.cjs → chunk-4N7KGOBS.cjs} +3 -3
- package/dist/{chunk-PQ2M7P2U.cjs → chunk-5TCIRWHL.cjs} +9 -9
- package/dist/{chunk-FQN6STIM.cjs → chunk-6XCQXGQA.cjs} +20 -20
- package/dist/{chunk-BV5WZVOP.cjs → chunk-7YDF3QBN.cjs} +258 -257
- package/dist/{chunk-7ZFCR7UY.cjs → chunk-ABLUMGCI.cjs} +3 -3
- package/dist/{chunk-PX7FY655.cjs → chunk-ASMNNSUQ.cjs} +3 -3
- package/dist/{chunk-CWRVTQUO.cjs → chunk-BM6JZRVD.cjs} +101 -101
- package/dist/{chunk-LZ6NOVXX.cjs → chunk-BNTELSHZ.cjs} +103 -103
- package/dist/{chunk-SA7LDEVJ.cjs → chunk-CSJO7ZGN.cjs} +3 -3
- package/dist/{chunk-VOX4E6AX.cjs → chunk-DGFDBPO7.cjs} +7 -5
- package/dist/{chunk-KLI4OSRA.cjs → chunk-GAGNKWOC.cjs} +2 -2
- package/dist/{chunk-QEUGYHFB.cjs → chunk-IRWJKVVZ.cjs} +20 -20
- package/dist/{chunk-YRE3O65E.cjs → chunk-JGZEHBBD.cjs} +12 -12
- package/dist/{chunk-FICJS5OA.cjs → chunk-KTPR66EE.cjs} +4 -4
- package/dist/{chunk-YXKB5WRE.cjs → chunk-LJ46XYYP.cjs} +60 -48
- package/dist/{chunk-AAFW4STC.cjs → chunk-LU7TD6QS.cjs} +5 -5
- package/dist/{chunk-JFS6TZDX.cjs → chunk-MLZKPDPZ.cjs} +64 -64
- package/dist/{chunk-EKGL5K5K.cjs → chunk-MT7ELGCV.cjs} +17 -17
- package/dist/{chunk-HYBMADYO.cjs → chunk-NGUJVM6O.cjs} +22 -22
- package/dist/{chunk-3HPB4H4C.cjs → chunk-NTGIQP7O.cjs} +7 -7
- package/dist/{chunk-GABDE3FM.cjs → chunk-OWGLRE74.cjs} +19 -19
- package/dist/{chunk-IFS4AH77.cjs → chunk-QYLIHZKZ.cjs} +10 -10
- package/dist/{chunk-GVTDVS5U.cjs → chunk-R34JD6NP.cjs} +3 -3
- package/dist/{chunk-YQ37ZCD2.cjs → chunk-SQHTX5XP.cjs} +16 -16
- package/dist/{chunk-XJ36TEGE.cjs → chunk-TKASH5YC.cjs} +47 -47
- package/dist/{chunk-DSVNFRY5.cjs → chunk-U2O5YQRP.cjs} +38 -38
- package/dist/{chunk-5SVOGLNK.cjs → chunk-UL6ZZSL4.cjs} +6 -6
- package/dist/{chunk-O67V3HJR.cjs → chunk-URVIPSAJ.cjs} +24 -24
- package/dist/{chunk-GSWQZX23.cjs → chunk-UY6A6TEY.cjs} +2 -2
- package/dist/{chunk-DUVOQHQI.cjs → chunk-W2RM764D.cjs} +7 -7
- package/dist/{chunk-IK2RJUEA.cjs → chunk-WCY35GB5.cjs} +845 -810
- package/dist/{chunk-NTJE6SM6.cjs → chunk-WI2OTGKC.cjs} +2 -2
- package/dist/{chunk-ITPEFCQ2.cjs → chunk-XJO5ZHO6.cjs} +32 -32
- package/dist/{chunk-I6UE6YVM.cjs → chunk-Y2FN3E32.cjs} +6 -6
- package/dist/{chunk-4XL4YEZM.cjs → chunk-YDFKFLDQ.cjs} +8 -8
- package/dist/{chunk-HF7Z2E4W.cjs → chunk-YIOWV7LS.cjs} +2 -2
- package/dist/{chunk-B3XBJCOD.cjs → chunk-YJRMCFX3.cjs} +7 -7
- package/dist/{chunk-ZYOS7LVQ.cjs → chunk-YWMUZLU2.cjs} +89 -89
- package/dist/{chunk-ZJPDGVA6.cjs → chunk-ZP5DFF3Q.cjs} +28 -28
- package/dist/{cloud-tenants-MVJK52I2.cjs → cloud-tenants-DZC3ACG6.cjs} +24 -24
- package/dist/components/case-studies/index.cjs +37 -37
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.js +22 -12
- package/dist/components/chat/index.cjs +17 -17
- package/dist/components/chat/tool-execution-display.d.ts.map +1 -1
- package/dist/components/chat/tool-execution-display.js +5 -4
- package/dist/components/contact/index.cjs +25 -25
- package/dist/components/docs/index.cjs +28 -28
- package/dist/components/embeds/index.cjs +25 -25
- package/dist/components/faq/index.cjs +26 -26
- package/dist/components/features/index.cjs +24 -24
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.js +15 -13
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +9 -7
- package/dist/components/help-center-pages/index.cjs +144 -144
- package/dist/components/index.cjs +87 -85
- package/dist/components/meeting-scheduler/booking-form.d.ts +11 -1
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/booking-form.js +15 -3
- package/dist/components/meeting-scheduler/index.cjs +452 -158
- package/dist/components/meeting-scheduler/index.d.ts +16 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +157 -5
- package/dist/components/meeting-scheduler/modal-header.d.ts +27 -0
- package/dist/components/meeting-scheduler/modal-header.d.ts.map +1 -0
- package/dist/components/meeting-scheduler/modal-header.js +104 -0
- package/dist/components/meeting-scheduler/slot-picker.d.ts +13 -2
- package/dist/components/meeting-scheduler/slot-picker.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/slot-picker.js +112 -73
- package/dist/components/navigation/index.cjs +27 -27
- package/dist/components/onboarding-guides/index.cjs +27 -27
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/related-content/index.cjs +12 -12
- package/dist/components/shared/product-release/product-release-card.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-release-card.js +2 -0
- package/dist/components/tickets/index.cjs +30 -30
- package/dist/components/ui/index.cjs +26 -24
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +65 -58
- package/dist/components/ui/tab-navigation.d.ts +19 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +32 -8
- package/dist/{devices-W3S7Q2PG.cjs → devices-MFGE2JQV.cjs} +25 -25
- package/dist/{embeddable-chat-6JKKFQEB.cjs → embeddable-chat-7ZEGCDVF.cjs} +92 -92
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +32 -30
- package/dist/{knowledge-AIYQ4FC3.cjs → knowledge-7VPS2ZBU.cjs} +25 -25
- package/dist/{logs-7SHJ2ARE.cjs → logs-M3QPAUH7.cjs} +32 -32
- package/dist/{policies-EIZJ5SUP.cjs → policies-UAVE6X62.cjs} +28 -28
- package/dist/{remote-session-BZMNE6D2.cjs → remote-session-N4PJB5FW.cjs} +10 -10
- package/dist/{scripts-J2FWC7E4.cjs → scripts-EDQ3IQKW.cjs} +31 -31
- package/dist/{software-update-QAMNASVF.cjs → software-update-B2MZVNPK.cjs} +28 -28
- package/dist/{tickets-board-CEDHD3KB.cjs → tickets-board-O753S4ZB.cjs} +14 -14
- package/dist/utils/embed-authed-fetch.d.ts +33 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +3 -1
- package/dist/utils/index.cjs +3 -1
- package/dist/{video-file-player-ZH2ILAPO.cjs → video-file-player-QZ3YOLHO.cjs} +2 -2
- package/package.json +1 -1
- package/src/components/chat/entity-cards/onboarding-guide-card.tsx +8 -1
- package/src/components/chat/tool-execution-display.tsx +21 -10
- package/src/components/features/scripts/schedule-form/schedule-interval-input.tsx +20 -13
- package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +9 -5
- package/src/components/meeting-scheduler/booking-form.tsx +29 -3
- package/src/components/meeting-scheduler/index.tsx +224 -3
- package/src/components/meeting-scheduler/modal-header.tsx +145 -0
- package/src/components/meeting-scheduler/slot-picker.tsx +72 -8
- package/src/components/shared/product-release/product-release-card.tsx +2 -0
- package/src/components/ui/radio-group.tsx +51 -36
- package/src/components/ui/tab-navigation.tsx +54 -5
- package/src/utils/embed-authed-fetch.ts +42 -1
|
@@ -1,21 +1,21 @@
|
|
|
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 _chunk4FWURR3Wcjs = require('./chunk-4FWURR3W.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkBM6JZRVDcjs = require('./chunk-BM6JZRVD.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk7YDF3QBNcjs = require('./chunk-7YDF3QBN.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
@@ -25,13 +25,13 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkJGZEHBBDcjs = require('./chunk-JGZEHBBD.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkLJ46XYYPcjs = require('./chunk-LJ46XYYP.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -57,7 +57,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
57
57
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
id:
|
|
60
|
+
id: _chunk7YDF3QBNcjs.faqItemAnchor.call(void 0, item.id),
|
|
61
61
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
62
62
|
children: [
|
|
63
63
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -110,14 +110,14 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
110
110
|
|
|
111
111
|
var PICK_ROOT_MARGIN = "600px";
|
|
112
112
|
function faqAskCardShown(assistant) {
|
|
113
|
-
return
|
|
113
|
+
return _chunkBM6JZRVDcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
114
114
|
}
|
|
115
115
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
116
|
-
const { ref, inView } =
|
|
116
|
+
const { ref, inView } = _chunkCSJO7ZGNcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
117
117
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
118
118
|
if (inView && !reached) setReached(true);
|
|
119
119
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
120
|
-
|
|
120
|
+
_chunkBM6JZRVDcjs.AssistantAskPrompts,
|
|
121
121
|
{
|
|
122
122
|
variant: "card",
|
|
123
123
|
topic,
|
|
@@ -170,7 +170,7 @@ function pageFaqProps(faq) {
|
|
|
170
170
|
}
|
|
171
171
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
172
172
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
173
|
-
return
|
|
173
|
+
return _chunkJGZEHBBDcjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
174
174
|
apiBaseUrl,
|
|
175
175
|
entityType,
|
|
176
176
|
entityId,
|
|
@@ -191,7 +191,7 @@ function groupFaqsBySection(faqs) {
|
|
|
191
191
|
}
|
|
192
192
|
let group = byName.get(name);
|
|
193
193
|
if (!group) {
|
|
194
|
-
group = { section: name, slug:
|
|
194
|
+
group = { section: name, slug: _chunk7YDF3QBNcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
195
195
|
byName.set(name, group);
|
|
196
196
|
}
|
|
197
197
|
group.items.push(item);
|
|
@@ -236,7 +236,7 @@ function GroupedFaqList({
|
|
|
236
236
|
}
|
|
237
237
|
if (bestId) setActiveSlug(bestId);
|
|
238
238
|
},
|
|
239
|
-
{ rootMargin: `-${
|
|
239
|
+
{ rootMargin: `-${_chunkCSJO7ZGNcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
240
240
|
);
|
|
241
241
|
for (const group of navGroupsRef.current) {
|
|
242
242
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -246,7 +246,7 @@ function GroupedFaqList({
|
|
|
246
246
|
}, [slugKey]);
|
|
247
247
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
248
248
|
_react.useEffect.call(void 0, () => {
|
|
249
|
-
const refresh = () => setHashTarget(
|
|
249
|
+
const refresh = () => setHashTarget(_chunk7YDF3QBNcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
250
250
|
refresh();
|
|
251
251
|
window.addEventListener("hashchange", refresh);
|
|
252
252
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -263,7 +263,7 @@ function GroupedFaqList({
|
|
|
263
263
|
}, [groups, hashTarget]);
|
|
264
264
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
265
265
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _10 => _10.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
266
|
-
|
|
266
|
+
_chunk4FWURR3Wcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkCSJO7ZGNcjs.STICKY_HEADER_OFFSET_PX });
|
|
267
267
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
268
268
|
if (pillSyncedHash !== hashTarget) {
|
|
269
269
|
setPillSyncedHash(hashTarget);
|
|
@@ -271,8 +271,8 @@ function GroupedFaqList({
|
|
|
271
271
|
}
|
|
272
272
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
273
273
|
e.preventDefault();
|
|
274
|
-
|
|
275
|
-
headerOffset:
|
|
274
|
+
_chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
275
|
+
headerOffset: _chunkCSJO7ZGNcjs.STICKY_HEADER_OFFSET_PX,
|
|
276
276
|
history: "replace"
|
|
277
277
|
});
|
|
278
278
|
}, []);
|
|
@@ -296,7 +296,7 @@ function GroupedFaqList({
|
|
|
296
296
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
297
297
|
const key = groupKey(group);
|
|
298
298
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
299
|
-
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className:
|
|
299
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunkLJ46XYYPcjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
300
300
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
301
301
|
FaqAccordion,
|
|
302
302
|
{
|
|
@@ -355,11 +355,11 @@ function FaqSection({
|
|
|
355
355
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
356
356
|
[initialFaqs]
|
|
357
357
|
);
|
|
358
|
-
const { data, dataUrl, isLoading, error } =
|
|
358
|
+
const { data, dataUrl, isLoading, error } = _chunkJGZEHBBDcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
359
359
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _15 => _15.faqs]) : void 0;
|
|
360
360
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
361
361
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
362
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
362
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkLJ46XYYPcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
363
363
|
const headingNode = showTopic && topic ? (
|
|
364
364
|
// The host's heading may arrive from a server component, still streaming: React cannot check such a
|
|
365
365
|
// node when it sits in a list of siblings and warns about a missing key. So it is the ONLY child of its
|
|
@@ -392,7 +392,7 @@ function FaqSection({
|
|
|
392
392
|
"script",
|
|
393
393
|
{
|
|
394
394
|
type: "application/ld+json",
|
|
395
|
-
dangerouslySetInnerHTML: { __html:
|
|
395
|
+
dangerouslySetInnerHTML: { __html: _chunkASMNNSUQcjs.serializeJsonLd.call(void 0, schema) }
|
|
396
396
|
}
|
|
397
397
|
)
|
|
398
398
|
] });
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkR34JD6NPcjs = require('./chunk-R34JD6NP.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -49,7 +49,7 @@ function useResizablePanelSize({
|
|
|
49
49
|
storageKey
|
|
50
50
|
}) {
|
|
51
51
|
const storage = _react.useMemo.call(void 0,
|
|
52
|
-
() => enabled && storageKey ?
|
|
52
|
+
() => enabled && storageKey ? _chunkDGFDBPO7cjs.createLocalStorageAdapter.call(void 0, {
|
|
53
53
|
key: `${storageKey}${CHOSEN_SIZE_KEY_SUFFIX}`,
|
|
54
54
|
validate: isStoredPanelSize,
|
|
55
55
|
logTag: `[panel-size:${storageKey}]`
|
|
@@ -63,7 +63,7 @@ function useResizablePanelSize({
|
|
|
63
63
|
const clampSize = _react.useCallback.call(void 0,
|
|
64
64
|
(value) => {
|
|
65
65
|
const ceiling = available > 0 ? Math.min(maxSize, available - reserve) : maxSize;
|
|
66
|
-
return
|
|
66
|
+
return _chunkASMNNSUQcjs.clamp.call(void 0, value, minSize, Math.max(minSize, ceiling));
|
|
67
67
|
},
|
|
68
68
|
[available, reserve, minSize, maxSize]
|
|
69
69
|
);
|
|
@@ -396,7 +396,7 @@ var DrawerContent = _react.forwardRef.call(void 0,
|
|
|
396
396
|
ref: panelRef,
|
|
397
397
|
className: _chunk3ATAYP36cjs.cn.call(void 0, drawerPanelVariants({ side, flush, size }), className, panelClassName),
|
|
398
398
|
style: { ...sizeStyle, ...panelStyle },
|
|
399
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
399
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR34JD6NPcjs.ViewportBreakpoints, { children })
|
|
400
400
|
}
|
|
401
401
|
)
|
|
402
402
|
]
|
|
@@ -459,7 +459,7 @@ function HoverDropdown({
|
|
|
459
459
|
const timeoutRef = _react.useRef.call(void 0, void 0);
|
|
460
460
|
const containerRef = _react.useRef.call(void 0, null);
|
|
461
461
|
const panelRef = _react.useRef.call(void 0, null);
|
|
462
|
-
|
|
462
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
463
463
|
const el = panelRef.current;
|
|
464
464
|
const container = containerRef.current;
|
|
465
465
|
if (!el || !container) return;
|
|
@@ -14,7 +14,7 @@ var _chunkC7GIHB3Vcjs = require('./chunk-C7GIHB3V.cjs');
|
|
|
14
14
|
var _chunkHFNBMV5Mcjs = require('./chunk-HFNBMV5M.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWI2OTGKCcjs = require('./chunk-WI2OTGKC.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
@@ -25,18 +25,18 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkQYLIHZKZcjs = require('./chunk-QYLIHZKZ.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkABLUMGCIcjs = require('./chunk-ABLUMGCI.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkKTPR66EEcjs = require('./chunk-KTPR66EE.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunkHOTM4UM6cjs = require('./chunk-HOTM4UM6.cjs');
|
|
@@ -65,10 +65,10 @@ function formatTicketRelativeTime(iso) {
|
|
|
65
65
|
if (diffMin < 60) return `${diffMin} min ago`;
|
|
66
66
|
const diffHours = Math.floor(diffMin / 60);
|
|
67
67
|
if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
|
|
68
|
-
return
|
|
68
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, date, null, "numeric");
|
|
69
69
|
}
|
|
70
70
|
function formatTicketFullTimestamp(iso) {
|
|
71
|
-
return
|
|
71
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, iso, null, "numericDateTime");
|
|
72
72
|
}
|
|
73
73
|
function formatRelativeTime(timestamp) {
|
|
74
74
|
return formatRelativeTimeFrom(timestamp, /* @__PURE__ */ new Date());
|
|
@@ -94,7 +94,7 @@ function formatRelativeTimeFrom(timestamp, now) {
|
|
|
94
94
|
const weeks = Math.floor(diffInDays / 7);
|
|
95
95
|
return `${weeks}w ago`;
|
|
96
96
|
}
|
|
97
|
-
return
|
|
97
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, targetTime, null, {
|
|
98
98
|
month: "short",
|
|
99
99
|
day: "numeric",
|
|
100
100
|
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
@@ -106,7 +106,7 @@ function formatAbsoluteDate(timestamp, options = {}) {
|
|
|
106
106
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatAbsoluteDate:", timestamp);
|
|
107
107
|
return "Invalid date";
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
110
110
|
year: "numeric",
|
|
111
111
|
month: "short",
|
|
112
112
|
day: "numeric",
|
|
@@ -119,7 +119,7 @@ function formatDateTime(timestamp, options = {}) {
|
|
|
119
119
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatDateTime:", timestamp);
|
|
120
120
|
return "Invalid date";
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
123
123
|
...ZONED_DATE_FIELDS_MEDIUM_DATETIME,
|
|
124
124
|
...options
|
|
125
125
|
});
|
|
@@ -281,13 +281,13 @@ function TicketStatusTag({
|
|
|
281
281
|
const config = getTicketStatusConfig(status);
|
|
282
282
|
const customStyle = color ? {
|
|
283
283
|
"--tag-bg": color,
|
|
284
|
-
"--tag-bg-hover":
|
|
285
|
-
"--tag-bg-active":
|
|
286
|
-
color:
|
|
284
|
+
"--tag-bg-hover": _chunkQYLIHZKZcjs.deriveHoverColor.call(void 0, color),
|
|
285
|
+
"--tag-bg-active": _chunkQYLIHZKZcjs.deriveActiveColor.call(void 0, color),
|
|
286
|
+
color: _chunkQYLIHZKZcjs.getReadableTextColor.call(void 0, color)
|
|
287
287
|
} : void 0;
|
|
288
288
|
const customColorClasses = color ? "bg-[var(--tag-bg)] hover:bg-[var(--tag-bg-hover)] active:bg-[var(--tag-bg-active)]" : void 0;
|
|
289
289
|
const tag = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
290
|
-
|
|
290
|
+
_chunkABLUMGCIcjs.Tag,
|
|
291
291
|
{
|
|
292
292
|
label: _nullishCoalesce(label, () => ( config.label)),
|
|
293
293
|
variant: _nullishCoalesce(variant, () => ( config.variant)),
|
|
@@ -330,7 +330,7 @@ function TicketStatusTag({
|
|
|
330
330
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
331
331
|
// Reuse the tag's variant styling, but split into a label section and a
|
|
332
332
|
// separated chevron section (the common dropdown-button seam).
|
|
333
|
-
|
|
333
|
+
_chunkABLUMGCIcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(variant, () => ( config.variant)) }),
|
|
334
334
|
"w-fit shrink-0 items-stretch justify-start gap-0 overflow-hidden p-0",
|
|
335
335
|
"disabled:cursor-not-allowed disabled:opacity-60",
|
|
336
336
|
// Custom color: bg/hover/active from the CSS vars set above.
|
|
@@ -618,7 +618,7 @@ function ToolCallRow({ call, expanded, onToggle, batchStatus, execution, showExe
|
|
|
618
618
|
onClick: onToggle,
|
|
619
619
|
className: "flex w-full cursor-pointer items-start gap-[var(--spacing-system-xsf)] p-[var(--spacing-system-sf)] text-left",
|
|
620
620
|
children: [
|
|
621
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
621
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWI2OTGKCcjs.ToolIcon, { toolType, size: 16 }) }),
|
|
622
622
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
623
623
|
"div",
|
|
624
624
|
{
|
|
@@ -774,13 +774,13 @@ ApprovalBatchMessage.displayName = "ApprovalBatchMessage";
|
|
|
774
774
|
|
|
775
775
|
|
|
776
776
|
var MARK_IMAGE_SIZES = "96px";
|
|
777
|
-
function AgentMark({ agent, className = "", color =
|
|
778
|
-
const identity =
|
|
777
|
+
function AgentMark({ agent, className = "", color = _chunkQYLIHZKZcjs.AGENT_GLYPH_COLOR }) {
|
|
778
|
+
const identity = _chunkQYLIHZKZcjs.useAgentIdentityIcon.call(void 0, agent);
|
|
779
779
|
if (_optionalChain([identity, 'optionalAccess', _15 => _15.url])) {
|
|
780
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk3ATAYP36cjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: MARK_IMAGE_SIZES, className:
|
|
780
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk3ATAYP36cjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: MARK_IMAGE_SIZES, className: _chunkQYLIHZKZcjs.AGENT_PICTURE_CLASS }) });
|
|
781
781
|
}
|
|
782
782
|
if (_optionalChain([identity, 'optionalAccess', _16 => _16.name])) {
|
|
783
|
-
return _react.createElement.call(void 0,
|
|
783
|
+
return _react.createElement.call(void 0, _chunkKTPR66EEcjs.resolveIcon.call(void 0, identity.name), {
|
|
784
784
|
className,
|
|
785
785
|
"aria-hidden": true,
|
|
786
786
|
color,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkKTPR66EEcjs = require('./chunk-KTPR66EE.cjs');
|
|
12
12
|
|
|
13
13
|
// src/utils/color-analysis.ts
|
|
14
14
|
var DESIGN_PALETTE = [
|
|
@@ -243,13 +243,13 @@ function getSemanticColor(semanticName, platform) {
|
|
|
243
243
|
}
|
|
244
244
|
function getPlatformConfig(platform) {
|
|
245
245
|
const currentPlatform = platform || getCurrentPlatform();
|
|
246
|
-
const isDarkTheme =
|
|
246
|
+
const isDarkTheme = _chunkKTPR66EEcjs.PLATFORM_THEME === "dark";
|
|
247
247
|
return {
|
|
248
248
|
platform: currentPlatform,
|
|
249
|
-
accentColor:
|
|
249
|
+
accentColor: _chunkKTPR66EEcjs.getPlatformAccentColor.call(void 0, currentPlatform),
|
|
250
250
|
isDarkTheme,
|
|
251
251
|
isLightTheme: !isDarkTheme,
|
|
252
|
-
brandName:
|
|
252
|
+
brandName: _chunkKTPR66EEcjs.getPlatformDisplayName.call(void 0, currentPlatform)
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
255
|
function usePlatformColors(platform) {
|
|
@@ -276,7 +276,7 @@ function hexToRgb2(hex) {
|
|
|
276
276
|
return { r: n >> 16 & 255, g: n >> 8 & 255, b: n & 255 };
|
|
277
277
|
}
|
|
278
278
|
function rgbToHex(r, g, b) {
|
|
279
|
-
const to = (n) =>
|
|
279
|
+
const to = (n) => _chunkASMNNSUQcjs.clamp.call(void 0, Math.round(n), 0, 255).toString(16).padStart(2, "0");
|
|
280
280
|
return `#${to(r)}${to(g)}${to(b)}`;
|
|
281
281
|
}
|
|
282
282
|
var HOVER_DARKEN_STEP = 10;
|
|
@@ -310,8 +310,8 @@ function rgbToHsl(r, g, b) {
|
|
|
310
310
|
return { h: Math.round(h), s: Math.round(s * 100), l: Math.round(l * 100) };
|
|
311
311
|
}
|
|
312
312
|
function hslToRgb(h, s, l) {
|
|
313
|
-
const sn =
|
|
314
|
-
const ln =
|
|
313
|
+
const sn = _chunkASMNNSUQcjs.clamp.call(void 0, s, 0, 100) / 100;
|
|
314
|
+
const ln = _chunkASMNNSUQcjs.clamp.call(void 0, l, 0, 100) / 100;
|
|
315
315
|
const hn = (h % 360 + 360) % 360;
|
|
316
316
|
if (sn === 0) {
|
|
317
317
|
const v = Math.round(ln * 255);
|
|
@@ -368,11 +368,11 @@ function ProvideFromServer({
|
|
|
368
368
|
enabled,
|
|
369
369
|
children
|
|
370
370
|
}) {
|
|
371
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Provide, { icons:
|
|
371
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Provide, { icons: _chunkASMNNSUQcjs.useAgentIdentities.call(void 0, endpoint, enabled), children });
|
|
372
372
|
}
|
|
373
373
|
function AgentIdentityProvider({
|
|
374
374
|
icons,
|
|
375
|
-
endpoint =
|
|
375
|
+
endpoint = _chunkASMNNSUQcjs.AGENT_IDENTITIES_API_PATH,
|
|
376
376
|
enabled = true,
|
|
377
377
|
children
|
|
378
378
|
}) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkKTPR66EEcjs = require('./chunk-KTPR66EE.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunk3LU4UFPScjs = require('./chunk-3LU4UFPS.cjs');
|
|
@@ -21,8 +21,8 @@ function contentBreakpointFor(width) {
|
|
|
21
21
|
}
|
|
22
22
|
function useContentBreakpoint() {
|
|
23
23
|
const width = _react.useContext.call(void 0, ContentAreaWidthContext);
|
|
24
|
-
const mdUp =
|
|
25
|
-
const lgUp =
|
|
24
|
+
const mdUp = _chunkKTPR66EEcjs.useMdUp.call(void 0, );
|
|
25
|
+
const lgUp = _chunkKTPR66EEcjs.useLgUp.call(void 0, );
|
|
26
26
|
if (width !== null) return contentBreakpointFor(width);
|
|
27
27
|
if (mdUp === void 0) return void 0;
|
|
28
28
|
if (lgUp) return "desktop";
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkWCY35GB5cjs = require('./chunk-WCY35GB5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk7YDF3QBNcjs = require('./chunk-7YDF3QBN.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -19,10 +19,10 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkLJ46XYYPcjs = require('./chunk-LJ46XYYP.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -40,7 +40,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
40
40
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
41
41
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
42
42
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
43
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
43
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunk7YDF3QBNcjs.resolveSourceIcon.call(void 0, {
|
|
44
44
|
sourceRepo,
|
|
45
45
|
documentType: docType
|
|
46
46
|
});
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunkWCY35GB5cjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -120,7 +120,7 @@ function mapDocSearchResults(docs) {
|
|
|
120
120
|
results.push({
|
|
121
121
|
id: `group-${entry.repo}`,
|
|
122
122
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
123
|
-
title: `${
|
|
123
|
+
title: `${_chunk7YDF3QBNcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunk7YDF3QBNcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
124
124
|
path: rows[0].path,
|
|
125
125
|
type: "file",
|
|
126
126
|
metadata: {
|
|
@@ -183,7 +183,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
183
183
|
if (composed && !isAbsoluteHref(href)) {
|
|
184
184
|
return { kind: "navigate-same-tab", href };
|
|
185
185
|
}
|
|
186
|
-
const isNewTab =
|
|
186
|
+
const isNewTab = _chunkLJ46XYYPcjs.decideNewTab.call(void 0, {
|
|
187
187
|
href,
|
|
188
188
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
189
189
|
surface: "useUnifiedNav",
|
|
@@ -255,7 +255,7 @@ function useDocSearch(config) {
|
|
|
255
255
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
256
256
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
257
257
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
258
|
-
const debouncedQuery =
|
|
258
|
+
const debouncedQuery = _chunkCSJO7ZGNcjs.useDebounce.call(void 0, query, 300);
|
|
259
259
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
260
260
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
261
261
|
if (wasSearchable !== searchable) {
|
|
@@ -277,7 +277,7 @@ function useDocSearch(config) {
|
|
|
277
277
|
limit: "10"
|
|
278
278
|
});
|
|
279
279
|
if (tableIdsKey) params.set("tableIds", tableIdsKey);
|
|
280
|
-
const response = await
|
|
280
|
+
const response = await _chunkASMNNSUQcjs.contentFetch.call(void 0, `${resolvedSearchEndpoint}?${params.toString()}`);
|
|
281
281
|
if (!response.ok) {
|
|
282
282
|
throw new Error(`Search request failed: ${response.status}`);
|
|
283
283
|
}
|
|
@@ -312,31 +312,31 @@ function useDocSearch(config) {
|
|
|
312
312
|
case "navigate-same-tab": {
|
|
313
313
|
if (wantsNewTab) {
|
|
314
314
|
setKeepOpen(true);
|
|
315
|
-
window.open(action.href, "_blank",
|
|
315
|
+
window.open(action.href, "_blank", _chunkLJ46XYYPcjs.NEW_TAB_FEATURES);
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
setKeepOpen(false);
|
|
319
319
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
320
320
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
321
|
-
router.push(
|
|
321
|
+
router.push(_chunkLJ46XYYPcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
324
|
case "navigate-new-tab":
|
|
325
325
|
setKeepOpen(true);
|
|
326
326
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
327
327
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
328
|
-
|
|
328
|
+
_chunkLJ46XYYPcjs.resolveExternalNavigation.call(void 0, {
|
|
329
329
|
href: action.href,
|
|
330
330
|
targetPlatform,
|
|
331
331
|
runtime
|
|
332
332
|
}).open();
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
window.open(action.href, "_blank",
|
|
335
|
+
window.open(action.href, "_blank", _chunkLJ46XYYPcjs.NEW_TAB_FEATURES);
|
|
336
336
|
return;
|
|
337
337
|
case "ask-ai":
|
|
338
338
|
setKeepOpen(false);
|
|
339
|
-
window.dispatchEvent(new CustomEvent(
|
|
339
|
+
window.dispatchEvent(new CustomEvent(_chunk7YDF3QBNcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|