@flamingo-stack/openframe-frontend-core 0.0.583 → 0.0.584-1973.5420.1
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/chat-protocol/events.d.ts +8 -2
- package/dist/chat-protocol/events.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +177 -0
- package/dist/chat-protocol/index.cjs.map +1 -1
- package/dist/chat-protocol/index.js +177 -0
- package/dist/chat-protocol/index.js.map +1 -1
- package/dist/chat-protocol/nats-decoder.d.ts.map +1 -1
- package/dist/chat-protocol/source-metadata.d.ts +3 -0
- package/dist/chat-protocol/source-metadata.d.ts.map +1 -0
- package/dist/{chunk-EATPU5EF.cjs → chunk-3MAG3EG4.cjs} +9 -9
- package/dist/{chunk-EATPU5EF.cjs.map → chunk-3MAG3EG4.cjs.map} +1 -1
- package/dist/{chunk-IKUSKKFZ.cjs → chunk-4TZOFXPH.cjs} +712 -432
- package/dist/chunk-4TZOFXPH.cjs.map +1 -0
- package/dist/{chunk-WMRXB6RS.js → chunk-54WRMPCY.js} +3 -3
- package/dist/{chunk-WTC6QQNX.cjs → chunk-7IVT56YY.cjs} +3 -3
- package/dist/{chunk-WTC6QQNX.cjs.map → chunk-7IVT56YY.cjs.map} +1 -1
- package/dist/{chunk-PFKWJ6PJ.js → chunk-AQW2PDRS.js} +2 -2
- package/dist/{chunk-DROXHJVZ.js → chunk-AVVKXNGI.js} +2 -2
- package/dist/{chunk-YNLIXABT.cjs → chunk-CE6CA6EM.cjs} +43 -43
- package/dist/{chunk-YNLIXABT.cjs.map → chunk-CE6CA6EM.cjs.map} +1 -1
- package/dist/{chunk-TRD2YICZ.cjs → chunk-CGLQLBMQ.cjs} +21 -21
- package/dist/{chunk-TRD2YICZ.cjs.map → chunk-CGLQLBMQ.cjs.map} +1 -1
- package/dist/{chunk-XWBND4G5.js → chunk-CO4WRST6.js} +301 -21
- package/dist/chunk-CO4WRST6.js.map +1 -0
- package/dist/{chunk-IJVWKLJK.cjs → chunk-DHLD3JXN.cjs} +69 -69
- package/dist/{chunk-IJVWKLJK.cjs.map → chunk-DHLD3JXN.cjs.map} +1 -1
- package/dist/{chunk-M6ZUEBDK.cjs → chunk-F2EN6MXN.cjs} +159 -159
- package/dist/{chunk-M6ZUEBDK.cjs.map → chunk-F2EN6MXN.cjs.map} +1 -1
- package/dist/{chunk-J3EEL6YC.js → chunk-FH2FH337.js} +5 -5
- package/dist/{chunk-L26MD32B.js → chunk-GDHI3JN5.js} +3 -3
- package/dist/{chunk-VWHEXQ64.js → chunk-GFIH73Q3.js} +3 -3
- package/dist/{chunk-R5A3MGMY.js → chunk-H6GYY5CB.js} +3 -3
- package/dist/{chunk-FCLM2RXI.js → chunk-HGJAUYHW.js} +2 -2
- package/dist/{chunk-RBDVHLT5.cjs → chunk-HKKQCVVY.cjs} +22 -22
- package/dist/{chunk-RBDVHLT5.cjs.map → chunk-HKKQCVVY.cjs.map} +1 -1
- package/dist/{chunk-KDWNMFX4.cjs → chunk-JEMGFSC2.cjs} +24 -24
- package/dist/{chunk-KDWNMFX4.cjs.map → chunk-JEMGFSC2.cjs.map} +1 -1
- package/dist/{chunk-BTBW4L2W.cjs → chunk-JX6RSSZP.cjs} +33 -33
- package/dist/{chunk-BTBW4L2W.cjs.map → chunk-JX6RSSZP.cjs.map} +1 -1
- package/dist/{chunk-WHNC7C76.js → chunk-KN2ZCZQ7.js} +5 -5
- package/dist/{chunk-WBTKXNKZ.cjs → chunk-MYVHYVQM.cjs} +10 -10
- package/dist/{chunk-WBTKXNKZ.cjs.map → chunk-MYVHYVQM.cjs.map} +1 -1
- package/dist/{chunk-3TNM6SDP.cjs → chunk-PI3BNDCW.cjs} +15 -15
- package/dist/{chunk-3TNM6SDP.cjs.map → chunk-PI3BNDCW.cjs.map} +1 -1
- package/dist/{chunk-XZ3MKTJZ.js → chunk-PWI66GZF.js} +2 -2
- package/dist/{chunk-IFPGXSMZ.cjs → chunk-RTI3TYMX.cjs} +3 -3
- package/dist/{chunk-IFPGXSMZ.cjs.map → chunk-RTI3TYMX.cjs.map} +1 -1
- package/dist/{chunk-6BI3AYBY.cjs → chunk-SS2TCIKA.cjs} +4 -4
- package/dist/{chunk-6BI3AYBY.cjs.map → chunk-SS2TCIKA.cjs.map} +1 -1
- package/dist/{chunk-HIHPWVKP.js → chunk-T35JA5XV.js} +5 -5
- package/dist/{chunk-EZ5VU5WS.js → chunk-TLZ7HTXP.js} +2 -2
- package/dist/{chunk-OCXFFGFA.cjs → chunk-UZUG7QZ3.cjs} +10 -10
- package/dist/{chunk-OCXFFGFA.cjs.map → chunk-UZUG7QZ3.cjs.map} +1 -1
- package/dist/{chunk-3RR67XC2.cjs → chunk-W46U5J3H.cjs} +5 -5
- package/dist/{chunk-3RR67XC2.cjs.map → chunk-W46U5J3H.cjs.map} +1 -1
- package/dist/{chunk-IOP7BCRQ.js → chunk-WFF5JMQ2.js} +6 -6
- package/dist/{chunk-AJLF6MBD.js → chunk-X4HLHN36.js} +3 -3
- package/dist/{chunk-PMA7DVQR.js → chunk-ZWB64HOD.js} +4 -4
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts +4 -1
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts +2 -28
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/tool-execution-display.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +2 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/chat/types/message.types.d.ts +35 -1
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +3 -3
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-source-metadata.d.ts +5 -0
- package/dist/components/chat/utils/chat-source-metadata.d.ts.map +1 -0
- package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +23 -23
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/index.cjs +36 -36
- package/dist/components/index.js +13 -13
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.js +5 -5
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +6 -6
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/chat-protocol/__tests__/nats-decoder-golden.test.ts +130 -0
- package/src/chat-protocol/events.ts +9 -1
- package/src/chat-protocol/nats-decoder.ts +7 -0
- package/src/chat-protocol/source-metadata.ts +187 -0
- package/src/components/chat/__tests__/chat-message-streaming-memo.test.tsx +86 -0
- package/src/components/chat/__tests__/embeddable-chat-sources.test.tsx +171 -0
- package/src/components/chat/__tests__/tool-execution-display.test.tsx +93 -0
- package/src/components/chat/chat-message-enhanced.tsx +28 -13
- package/src/components/chat/chat-message-list.tsx +1 -0
- package/src/components/chat/embeddable-chat.tsx +10 -1
- package/src/components/chat/entity-cards/__tests__/dispatch-video-refs.test.tsx +74 -0
- package/src/components/chat/entity-cards/dispatch.tsx +48 -11
- package/src/components/chat/hooks/use-nats-chat-adapter.ts +7 -0
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +2 -29
- package/src/components/chat/stream/__tests__/chat-stream-reducer.test.ts +56 -0
- package/src/components/chat/stream/chat-stream-reducer.ts +31 -0
- package/src/components/chat/tool-execution-display.tsx +5 -2
- package/src/components/chat/types/component.types.ts +2 -0
- package/src/components/chat/types/message.types.ts +39 -0
- package/src/components/chat/types/unified-chat-state.types.ts +4 -3
- package/src/components/chat/utils/__tests__/process-historical-messages-golden.test.ts +57 -0
- package/src/components/chat/utils/chat-source-metadata.ts +19 -0
- package/src/components/chat/utils/process-historical-messages.ts +19 -1
- package/dist/chunk-IKUSKKFZ.cjs.map +0 -1
- package/dist/chunk-XWBND4G5.js.map +0 -1
- /package/dist/{chunk-WMRXB6RS.js.map → chunk-54WRMPCY.js.map} +0 -0
- /package/dist/{chunk-PFKWJ6PJ.js.map → chunk-AQW2PDRS.js.map} +0 -0
- /package/dist/{chunk-DROXHJVZ.js.map → chunk-AVVKXNGI.js.map} +0 -0
- /package/dist/{chunk-J3EEL6YC.js.map → chunk-FH2FH337.js.map} +0 -0
- /package/dist/{chunk-L26MD32B.js.map → chunk-GDHI3JN5.js.map} +0 -0
- /package/dist/{chunk-VWHEXQ64.js.map → chunk-GFIH73Q3.js.map} +0 -0
- /package/dist/{chunk-R5A3MGMY.js.map → chunk-H6GYY5CB.js.map} +0 -0
- /package/dist/{chunk-FCLM2RXI.js.map → chunk-HGJAUYHW.js.map} +0 -0
- /package/dist/{chunk-WHNC7C76.js.map → chunk-KN2ZCZQ7.js.map} +0 -0
- /package/dist/{chunk-XZ3MKTJZ.js.map → chunk-PWI66GZF.js.map} +0 -0
- /package/dist/{chunk-HIHPWVKP.js.map → chunk-T35JA5XV.js.map} +0 -0
- /package/dist/{chunk-EZ5VU5WS.js.map → chunk-TLZ7HTXP.js.map} +0 -0
- /package/dist/{chunk-IOP7BCRQ.js.map → chunk-WFF5JMQ2.js.map} +0 -0
- /package/dist/{chunk-AJLF6MBD.js.map → chunk-X4HLHN36.js.map} +0 -0
- /package/dist/{chunk-PMA7DVQR.js.map → chunk-ZWB64HOD.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkW46U5J3Hcjs = require('./chunk-W46U5J3H.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunk3RR67XC2cjs = require('./chunk-3RR67XC2.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkF2EN6MXNcjs = require('./chunk-F2EN6MXN.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ var _chunkLEISUAHFcjs = require('./chunk-LEISUAHF.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk4TZOFXPHcjs = require('./chunk-4TZOFXPH.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -183,7 +183,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
183
183
|
);
|
|
184
184
|
};
|
|
185
185
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
186
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPRPZBXWZcjs.cn.call(void 0, "fixed inset-0 z-[9998]",
|
|
186
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPRPZBXWZcjs.cn.call(void 0, "fixed inset-0 z-[9998]", _chunk4TZOFXPHcjs.OVERLAY_BACKDROP_CLASS), onClick: config.onClose }),
|
|
187
187
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
@@ -238,16 +238,16 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
238
238
|
// src/components/navigation/ticket-alerts-button.tsx
|
|
239
239
|
|
|
240
240
|
function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
241
|
-
const live =
|
|
241
|
+
const live = _chunkW46U5J3Hcjs.useOptionalTicketLive.call(void 0, );
|
|
242
242
|
if (!live || !live.authed || live.unreadTotal === 0) return null;
|
|
243
243
|
const targetId = live.nextUnreadTicketId;
|
|
244
|
-
const target = targetId ?
|
|
244
|
+
const target = targetId ? _chunkF2EN6MXNcjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
|
|
245
245
|
const handleClick = () => {
|
|
246
246
|
if (onNavigate) onNavigate(target);
|
|
247
247
|
else window.location.assign(target);
|
|
248
248
|
};
|
|
249
249
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
250
|
-
|
|
250
|
+
_chunkF2EN6MXNcjs.HeaderButton,
|
|
251
251
|
{
|
|
252
252
|
icon: (
|
|
253
253
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -257,7 +257,7 @@ function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
|
257
257
|
// existing while updates are unread — never by tinting the glyph.
|
|
258
258
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.LifeBuoyIcon, { className: "h-6 w-6" }),
|
|
260
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
260
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF2EN6MXNcjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
261
261
|
] })
|
|
262
262
|
),
|
|
263
263
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -575,7 +575,7 @@ function Header({ config }) {
|
|
|
575
575
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
576
576
|
!!_optionalChain([config, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.left, 'optionalAccess', _14 => _14.length]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-full items-center border-r border-ods-border", children: config.actions.left }),
|
|
577
577
|
_optionalChain([config, 'access', _15 => _15.mobile, 'optionalAccess', _16 => _16.enabled]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
578
|
-
|
|
578
|
+
_chunkF2EN6MXNcjs.HeaderButton,
|
|
579
579
|
{
|
|
580
580
|
className: "border-r border-ods-border lg:hidden",
|
|
581
581
|
onClick: () => {
|
|
@@ -676,7 +676,7 @@ function HeaderSkeleton({ config }) {
|
|
|
676
676
|
// src/components/navigation/client-only-header.tsx
|
|
677
677
|
|
|
678
678
|
function ClientOnlyHeader({ config, skeleton }) {
|
|
679
|
-
const isClient =
|
|
679
|
+
const isClient = _chunk4TZOFXPHcjs.useIsHydrated.call(void 0, );
|
|
680
680
|
if (!isClient) {
|
|
681
681
|
return skeleton || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderSkeleton, { config });
|
|
682
682
|
}
|
|
@@ -690,7 +690,7 @@ var _framermotion = require('framer-motion');
|
|
|
690
690
|
|
|
691
691
|
function SlidingSidebar({ config }) {
|
|
692
692
|
const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
693
|
-
const mounted =
|
|
693
|
+
const mounted = _chunk4TZOFXPHcjs.useIsHydrated.call(void 0, );
|
|
694
694
|
const headerHeight = _chunkZI27ALYXcjs.useHeaderHeight.call(void 0, );
|
|
695
695
|
const asideRef = _react.useRef.call(void 0, null);
|
|
696
696
|
const prefersReducedMotion = _framermotion.useReducedMotion.call(void 0, );
|
|
@@ -822,7 +822,7 @@ function SlidingSidebar({ config }) {
|
|
|
822
822
|
duration: 0.3,
|
|
823
823
|
ease: [0.4, 0, 0.2, 1]
|
|
824
824
|
},
|
|
825
|
-
className: _chunkPRPZBXWZcjs.cn.call(void 0, "fixed inset-0 z-[45]",
|
|
825
|
+
className: _chunkPRPZBXWZcjs.cn.call(void 0, "fixed inset-0 z-[45]", _chunk4TZOFXPHcjs.OVERLAY_BACKDROP_CLASS),
|
|
826
826
|
onClick: () => config.onClose()
|
|
827
827
|
}
|
|
828
828
|
) }),
|
|
@@ -933,7 +933,7 @@ var NavigationSidebarItemButton = _react.memo.call(void 0, function NavigationSi
|
|
|
933
933
|
_react.cloneElement.call(void 0, item.icon, {
|
|
934
934
|
color: isActive && !disabled ? "text-ods-accent" : "text-ods-text-secondary"
|
|
935
935
|
}),
|
|
936
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
936
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF2EN6MXNcjs.UnreadDot, { size: "fixed" })
|
|
937
937
|
] }),
|
|
938
938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
939
939
|
"span",
|
|
@@ -1031,7 +1031,7 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
1031
1031
|
setTabletFor(isTablet);
|
|
1032
1032
|
if (isTablet) setTabletMinimized(true);
|
|
1033
1033
|
}
|
|
1034
|
-
const hydrated =
|
|
1034
|
+
const hydrated = _chunk4TZOFXPHcjs.useIsHydrated.call(void 0, );
|
|
1035
1035
|
const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
|
|
1036
1036
|
const [transitionsEnabled, setTransitionsEnabled] = _react.useState.call(void 0, false);
|
|
1037
1037
|
const isOverlayOpen = isTablet && !minimized;
|
|
@@ -1399,7 +1399,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1399
1399
|
leading: (
|
|
1400
1400
|
// Mobile: Burger Menu Button
|
|
1401
1401
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1402
|
-
|
|
1402
|
+
_chunkF2EN6MXNcjs.HeaderButton,
|
|
1403
1403
|
{
|
|
1404
1404
|
onClick: onToggleMobileMenu,
|
|
1405
1405
|
isActive: isMobileMenuOpen,
|
|
@@ -1425,7 +1425,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1425
1425
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunkPRPZBXWZcjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
1426
1426
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1427
1427
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1428
|
-
|
|
1428
|
+
_chunkF2EN6MXNcjs.HeaderButton,
|
|
1429
1429
|
{
|
|
1430
1430
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
1431
1431
|
"aria-label": "Search",
|
|
@@ -1442,7 +1442,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1442
1442
|
className: _chunkPRPZBXWZcjs.cn.call(void 0, "hidden lg:flex", dimmedClass)
|
|
1443
1443
|
}
|
|
1444
1444
|
),
|
|
1445
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1445
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF2EN6MXNcjs.TimeTrackerHeaderButton, { disabled, className: _chunkPRPZBXWZcjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
1446
1446
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1447
1447
|
NotificationsHeaderButton,
|
|
1448
1448
|
{
|
|
@@ -1462,7 +1462,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1462
1462
|
),
|
|
1463
1463
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3QDJLLD2cjs.DropdownMenu, { children: [
|
|
1464
1464
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3QDJLLD2cjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1465
|
-
|
|
1465
|
+
_chunkF2EN6MXNcjs.HeaderButton,
|
|
1466
1466
|
{
|
|
1467
1467
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1468
1468
|
_chunkNNFQLTJ3cjs.SquareAvatar,
|
|
@@ -1546,12 +1546,12 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1546
1546
|
);
|
|
1547
1547
|
});
|
|
1548
1548
|
function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
|
|
1549
|
-
const ctx =
|
|
1549
|
+
const ctx = _chunkF2EN6MXNcjs.useOptionalNotifications.call(void 0, );
|
|
1550
1550
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _94 => _94.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
1551
1551
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _95 => _95.isOpen]), () => ( false));
|
|
1552
1552
|
const onClick = _optionalChain([ctx, 'optionalAccess', _96 => _96.toggle]);
|
|
1553
1553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1554
|
-
|
|
1554
|
+
_chunkF2EN6MXNcjs.HeaderButton,
|
|
1555
1555
|
{
|
|
1556
1556
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.XmarkIcon, { className: "h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.BellIcon, { className: "h-6 w-6" }),
|
|
1557
1557
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -1690,7 +1690,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
1690
1690
|
{
|
|
1691
1691
|
className: _chunkPRPZBXWZcjs.cn.call(void 0,
|
|
1692
1692
|
"absolute inset-0 z-[100] md:hidden",
|
|
1693
|
-
|
|
1693
|
+
_chunk4TZOFXPHcjs.OVERLAY_BACKDROP_CLASS,
|
|
1694
1694
|
"transition-all duration-300 motion-reduce:transition-none",
|
|
1695
1695
|
isOpen ? "opacity-100" : "pointer-events-none opacity-0"
|
|
1696
1696
|
),
|
|
@@ -1825,7 +1825,7 @@ function AppLayout({
|
|
|
1825
1825
|
}),
|
|
1826
1826
|
[]
|
|
1827
1827
|
);
|
|
1828
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1828
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF2EN6MXNcjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF2EN6MXNcjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPRPZBXWZcjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
|
|
1829
1829
|
topBar,
|
|
1830
1830
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1", children: [
|
|
1831
1831
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled }),
|
|
@@ -1849,7 +1849,7 @@ function AppLayout({
|
|
|
1849
1849
|
disabled
|
|
1850
1850
|
}
|
|
1851
1851
|
),
|
|
1852
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1852
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF2EN6MXNcjs.NotificationDrawer, {}),
|
|
1853
1853
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: setDrawerContainer, className: "relative flex flex-1 flex-col overflow-hidden", children: [
|
|
1854
1854
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunkPRPZBXWZcjs.cn.call(void 0, "flex-1 overflow-y-auto", mainClassName), children }),
|
|
1855
1855
|
drawer
|
|
@@ -1878,4 +1878,4 @@ function AppLayout({
|
|
|
1878
1878
|
|
|
1879
1879
|
|
|
1880
1880
|
exports.MingoAiButton = MingoAiButton; exports.MOBILE_NAV_PANEL_ID = MOBILE_NAV_PANEL_ID; exports.MobileNavPanel = MobileNavPanel; exports.TicketAlertsButton = TicketAlertsButton; exports.TopNavigation = TopNavigation; exports.Header = Header; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.SlidingSidebar = SlidingSidebar; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.MobileBurgerMenu = MobileBurgerMenu; exports.AppLayout = AppLayout;
|
|
1881
|
-
//# sourceMappingURL=chunk-
|
|
1881
|
+
//# sourceMappingURL=chunk-JEMGFSC2.cjs.map
|