@flamingo-stack/openframe-frontend-core 0.0.841 → 0.0.843
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/{case-study-card-TK7ZCNLM.cjs → case-study-card-VN3JBNF5.cjs} +3 -3
- package/dist/{chunk-RSJYTQEA.cjs → chunk-23DVVS4I.cjs} +104 -104
- package/dist/{chunk-IELPVUPR.cjs → chunk-2H5D2PUC.cjs} +23 -23
- package/dist/{chunk-275AQ6LC.cjs → chunk-2JZFXGHE.cjs} +4 -4
- package/dist/{chunk-DYDQLS2R.cjs → chunk-2WGA2IRN.cjs} +370 -298
- package/dist/{chunk-VBH2RCFM.cjs → chunk-3IXW2EKO.cjs} +78 -78
- package/dist/{chunk-DGY5KEPY.cjs → chunk-4ASUUB3A.cjs} +83 -83
- package/dist/{chunk-WCOSGDGA.cjs → chunk-4R4HAFXI.cjs} +2 -2
- package/dist/{chunk-INBFKUZA.cjs → chunk-5CPEMPNP.cjs} +15 -15
- package/dist/{chunk-CCRXBFNL.cjs → chunk-6HFTSVVC.cjs} +8 -8
- package/dist/{chunk-FHI4I3TQ.cjs → chunk-6M764K5Z.cjs} +12 -12
- package/dist/{chunk-SOCCHWDK.cjs → chunk-BHOVF4KP.cjs} +2 -2
- package/dist/{chunk-WVNUCKB7.cjs → chunk-CNMXP77I.cjs} +4 -4
- package/dist/{chunk-HXTZZE3R.cjs → chunk-DUB2UVYS.cjs} +61 -72
- package/dist/{chunk-TD4CC4KV.cjs → chunk-EUEPGHY4.cjs} +6 -6
- package/dist/{chunk-Q6WUHYOG.cjs → chunk-HLMA6CDT.cjs} +85 -85
- package/dist/{chunk-ZAO5SYBJ.cjs → chunk-MWQOM2EI.cjs} +4 -4
- package/dist/{chunk-WI7EXAZT.cjs → chunk-NMLNZCK2.cjs} +2 -2
- package/dist/{chunk-GUKFMMDZ.cjs → chunk-OGINOWMT.cjs} +3 -3
- package/dist/{chunk-APNONOHY.cjs → chunk-PZNWIJRZ.cjs} +13 -10
- package/dist/{chunk-GMK4JGC2.cjs → chunk-QBZ73IK7.cjs} +44 -44
- package/dist/{chunk-Z35PL3UR.cjs → chunk-QJRZVIQP.cjs} +34 -34
- package/dist/{chunk-SMZWXY4X.cjs → chunk-QKZQ5Q6E.cjs} +6 -1
- package/dist/{chunk-MYAPG3FQ.cjs → chunk-QPJUQ5YU.cjs} +21 -21
- package/dist/{chunk-JUEAZCD6.cjs → chunk-RSZZTB5T.cjs} +54 -54
- package/dist/{chunk-7WKRMJI6.cjs → chunk-SC36S7DJ.cjs} +2 -2
- package/dist/{chunk-AT6D7BAZ.cjs → chunk-SOQVKIWM.cjs} +3 -3
- package/dist/{chunk-UZPYYHF5.cjs → chunk-SOTTMZ6U.cjs} +19 -19
- package/dist/{chunk-E7M54JWW.cjs → chunk-SSSI2RBV.cjs} +14 -14
- package/dist/{chunk-EV6BPF47.cjs → chunk-WPMJUYW3.cjs} +143 -143
- package/dist/{chunk-FRL2ZN4O.cjs → chunk-XCVH5BCZ.cjs} +6 -6
- package/dist/{chunk-JM2XA7VY.cjs → chunk-ZXEWBJUE.cjs} +15 -15
- package/dist/{cloud-tenants-PV63RZ73.cjs → cloud-tenants-VPYROTKH.cjs} +11 -11
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/index.cjs +8 -8
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/devices/device-unread-indicator.d.ts +6 -0
- package/dist/components/features/devices/device-unread-indicator.d.ts.map +1 -0
- package/dist/components/features/devices/device-unread-indicator.js +12 -0
- package/dist/components/features/devices/devices-grid.d.ts.map +1 -1
- package/dist/components/features/devices/devices-grid.js +5 -1
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +3 -1
- package/dist/components/features/devices/devices-view-config.d.ts +6 -4
- package/dist/components/features/devices/devices-view-config.d.ts.map +1 -1
- package/dist/components/features/devices/index.d.ts +1 -0
- package/dist/components/features/devices/index.d.ts.map +1 -1
- package/dist/components/features/devices/index.js +2 -0
- package/dist/components/features/devices/types.d.ts +2 -0
- package/dist/components/features/devices/types.d.ts.map +1 -1
- package/dist/components/features/index.cjs +13 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +73 -65
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/count-pill.d.ts +10 -0
- package/dist/components/navigation/count-pill.d.ts.map +1 -0
- package/dist/components/navigation/count-pill.js +18 -0
- package/dist/components/navigation/index.cjs +20 -14
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +5 -0
- package/dist/components/navigation/navigation-sidebar-grouped.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-grouped.js +1 -12
- package/dist/components/navigation/unread-notifications-indicator.d.ts +19 -0
- package/dist/components/navigation/unread-notifications-indicator.d.ts.map +1 -0
- package/dist/components/navigation/unread-notifications-indicator.js +45 -0
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/devices.js +6 -1
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/ui/index.cjs +11 -11
- package/dist/{devices-VECG5JNC.cjs → devices-W76BAABE.cjs} +14 -14
- package/dist/{embeddable-chat-VRYAQQF6.cjs → embeddable-chat-C6DUH2JL.cjs} +78 -78
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +23 -15
- package/dist/{knowledge-YJSDJIXT.cjs → knowledge-ILAIWOSY.cjs} +12 -12
- package/dist/{logs-42JG3NZ5.cjs → logs-VCPRFJGB.cjs} +18 -18
- package/dist/platform-domains.cjs +14 -10
- package/dist/platform-domains.d.ts +12 -7
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +14 -10
- package/dist/{policies-D4QNVJ26.cjs → policies-3BNAW4M5.cjs} +15 -15
- package/dist/{scripts-4VFYBXBE.cjs → scripts-VFFSJDYV.cjs} +16 -16
- package/dist/{software-update-OSDZQ5CP.cjs → software-update-VTBTLCZO.cjs} +16 -16
- package/dist/utils/index.cjs +13 -10
- package/package.json +1 -1
- package/src/components/features/devices/device-unread-indicator.tsx +14 -0
- package/src/components/features/devices/devices-grid.tsx +9 -1
- package/src/components/features/devices/devices-table-columns.tsx +3 -0
- package/src/components/features/devices/devices-view-config.tsx +6 -4
- package/src/components/features/devices/index.ts +1 -0
- package/src/components/features/devices/types.ts +2 -0
- package/src/components/navigation/count-pill.tsx +25 -0
- package/src/components/navigation/index.ts +4 -0
- package/src/components/navigation/navigation-sidebar-grouped.tsx +1 -14
- package/src/components/navigation/unread-notifications-indicator.tsx +69 -0
- package/src/components/product-demo/fixtures/devices.ts +7 -0
- package/src/platform-domains.ts +28 -20
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5CPEMPNPcjs = require('./chunk-5CPEMPNP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkMWQOM2EIcjs = require('./chunk-MWQOM2EI.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -18,17 +18,18 @@ var _chunkZAO5SYBJcjs = require('./chunk-ZAO5SYBJ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var _chunkDYDQLS2Rcjs = require('./chunk-DYDQLS2R.cjs');
|
|
22
21
|
|
|
22
|
+
var _chunk2WGA2IRNcjs = require('./chunk-2WGA2IRN.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var _chunkWI7EXAZTcjs = require('./chunk-WI7EXAZT.cjs');
|
|
26
25
|
|
|
26
|
+
var _chunkNMLNZCK2cjs = require('./chunk-NMLNZCK2.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
|
|
32
|
+
var _chunkSSSI2RBVcjs = require('./chunk-SSSI2RBV.cjs');
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
var _chunkIUDBG3HJcjs = require('./chunk-IUDBG3HJ.cjs');
|
|
@@ -40,7 +41,7 @@ var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
|
|
43
|
-
var
|
|
44
|
+
var _chunk4ASUUB3Acjs = require('./chunk-4ASUUB3A.cjs');
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
|
|
@@ -53,7 +54,7 @@ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
|
|
56
|
-
var
|
|
57
|
+
var _chunkWPMJUYW3cjs = require('./chunk-WPMJUYW3.cjs');
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
var _chunk6LDL3UZEcjs = require('./chunk-6LDL3UZE.cjs');
|
|
@@ -101,7 +102,7 @@ var _chunk4TUSPDNScjs = require('./chunk-4TUSPDNS.cjs');
|
|
|
101
102
|
var _chunkCON36SEJcjs = require('./chunk-CON36SEJ.cjs');
|
|
102
103
|
|
|
103
104
|
|
|
104
|
-
var
|
|
105
|
+
var _chunkXCVH5BCZcjs = require('./chunk-XCVH5BCZ.cjs');
|
|
105
106
|
|
|
106
107
|
|
|
107
108
|
var _chunkFW7RKWPYcjs = require('./chunk-FW7RKWPY.cjs');
|
|
@@ -118,7 +119,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
118
119
|
var _chunkNFNSPLGCcjs = require('./chunk-NFNSPLGC.cjs');
|
|
119
120
|
|
|
120
121
|
|
|
121
|
-
var
|
|
122
|
+
var _chunkEUEPGHY4cjs = require('./chunk-EUEPGHY4.cjs');
|
|
122
123
|
|
|
123
124
|
|
|
124
125
|
|
|
@@ -192,7 +193,7 @@ function RowGlyph({ link, box, glyph }) {
|
|
|
192
193
|
{
|
|
193
194
|
"aria-hidden": "true",
|
|
194
195
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex shrink-0 items-center justify-center overflow-hidden rounded-full", box),
|
|
195
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.EntityIcon, { icon: link.icon, className: "h-full w-full" })
|
|
196
197
|
}
|
|
197
198
|
);
|
|
198
199
|
}
|
|
@@ -205,7 +206,7 @@ function RowGlyph({ link, box, glyph }) {
|
|
|
205
206
|
"flex shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-text-primary",
|
|
206
207
|
box
|
|
207
208
|
),
|
|
208
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
209
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.EntityIcon, { icon: { name: link.iconName }, size: glyph })
|
|
209
210
|
}
|
|
210
211
|
);
|
|
211
212
|
}
|
|
@@ -218,7 +219,7 @@ function NavItemRow({
|
|
|
218
219
|
className
|
|
219
220
|
}) {
|
|
220
221
|
const label = navLinkLabel(link);
|
|
221
|
-
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
222
|
+
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
|
|
222
223
|
const singleLine = !link.description && !link.builtOn;
|
|
223
224
|
const rowClassName = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
224
225
|
ROW_CLASSES[variant],
|
|
@@ -235,7 +236,7 @@ function NavItemRow({
|
|
|
235
236
|
] });
|
|
236
237
|
} else if (variant === "side") {
|
|
237
238
|
children = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
238
|
-
link.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
239
|
+
link.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.EntityIcon, { icon: { name: link.iconName }, size: 18 }) }),
|
|
239
240
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: label }),
|
|
240
241
|
counter
|
|
241
242
|
] });
|
|
@@ -266,7 +267,7 @@ var featureCardLoad = null;
|
|
|
266
267
|
var featureCardListeners = /* @__PURE__ */ new Set();
|
|
267
268
|
function loadFeatureCard() {
|
|
268
269
|
if (featureCard || featureCardLoad) return;
|
|
269
|
-
featureCardLoad = Promise.resolve().then(() => _interopRequireWildcard(require("./case-study-card-
|
|
270
|
+
featureCardLoad = Promise.resolve().then(() => _interopRequireWildcard(require("./case-study-card-VN3JBNF5.cjs"))).then((module) => {
|
|
270
271
|
featureCard = module.CaseStudyCard;
|
|
271
272
|
for (const listener of featureCardListeners) listener();
|
|
272
273
|
}).catch(() => void 0).finally(() => {
|
|
@@ -275,7 +276,7 @@ function loadFeatureCard() {
|
|
|
275
276
|
}
|
|
276
277
|
function subscribeToFeatureCard(listener) {
|
|
277
278
|
featureCardListeners.add(listener);
|
|
278
|
-
const cancel =
|
|
279
|
+
const cancel = _chunk4ASUUB3Acjs.afterPageLoad.call(void 0, loadFeatureCard);
|
|
279
280
|
return () => {
|
|
280
281
|
featureCardListeners.delete(listener);
|
|
281
282
|
cancel();
|
|
@@ -490,7 +491,7 @@ function TopNavigation({
|
|
|
490
491
|
|
|
491
492
|
var TOP_ITEM_CLASS = "relative inline-flex h-10 items-center gap-1.5 whitespace-nowrap rounded-md px-3.5 text-ods-text-secondary transition-colors text-h6 hover:bg-ods-bg-hover hover:text-ods-text-primary";
|
|
492
493
|
var TOP_ITEM_CURRENT_CLASS = "rounded-b-none bg-gradient-to-b from-transparent to-ods-accent/10 text-ods-text-primary after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 after:bg-ods-accent";
|
|
493
|
-
var menuIcon = (menu) => menu.iconName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
494
|
+
var menuIcon = (menu) => menu.iconName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.EntityIcon, { icon: { name: menu.iconName }, size: 20, className: "size-5 shrink-0" }) : null;
|
|
494
495
|
function SiteHeader({
|
|
495
496
|
nav,
|
|
496
497
|
pathname,
|
|
@@ -513,8 +514,8 @@ function SiteHeader({
|
|
|
513
514
|
}) {
|
|
514
515
|
const [show, setShow] = _react.useState.call(void 0, true);
|
|
515
516
|
const lastScrollY = _react.useRef.call(void 0, 0);
|
|
516
|
-
const activeId =
|
|
517
|
-
const { openId, close, getTriggerProps, getPanelProps } =
|
|
517
|
+
const activeId = _chunkSSSI2RBVcjs.useActiveSection.call(void 0, nav.menus, pathname);
|
|
518
|
+
const { openId, close, getTriggerProps, getPanelProps } = _chunkSSSI2RBVcjs.useNavMenus.call(void 0, { pathname });
|
|
518
519
|
const [trail, setTrail] = _react.useState.call(void 0, { id: null, from: null });
|
|
519
520
|
if (trail.id !== openId) setTrail({ id: openId, from: trail.id });
|
|
520
521
|
const previousId = trail.id === openId ? trail.from : trail.id;
|
|
@@ -640,7 +641,7 @@ function SiteHeader({
|
|
|
640
641
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
641
642
|
leading,
|
|
642
643
|
mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
643
|
-
|
|
644
|
+
_chunk2WGA2IRNcjs.HeaderButton,
|
|
644
645
|
{
|
|
645
646
|
className: "border-r border-ods-border lg:hidden",
|
|
646
647
|
onClick: mobile.onToggle,
|
|
@@ -666,7 +667,7 @@ function SiteHeader({
|
|
|
666
667
|
centerClassName: "justify-start pl-[var(--spacing-system-xlf)]",
|
|
667
668
|
cta: hasRight ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
668
669
|
mingo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
669
|
-
|
|
670
|
+
_chunk4ASUUB3Acjs.MingoAiButton,
|
|
670
671
|
{
|
|
671
672
|
source: mingo.source,
|
|
672
673
|
icon: mingo.icon,
|
|
@@ -732,9 +733,9 @@ function MobileNavSheetBody({
|
|
|
732
733
|
const sheetRef = _react.useRef.call(void 0, null);
|
|
733
734
|
const menus = [..._nullishCoalesce(nav.mobileMenus, () => ( nav.menus)), ..._nullishCoalesce(extraMenus, () => ( []))];
|
|
734
735
|
_overlays.usePreventScroll.call(void 0, );
|
|
735
|
-
|
|
736
|
+
_chunkSSSI2RBVcjs.useFocusTrap.call(void 0, sheetRef, true, { onEscape: onClose });
|
|
736
737
|
const [openGroups, setOpenGroups] = _react.useState.call(void 0, () => {
|
|
737
|
-
const active =
|
|
738
|
+
const active = _chunkSSSI2RBVcjs.resolveActiveSection.call(void 0, menus, pathname);
|
|
738
739
|
return active ? { [active]: true } : {};
|
|
739
740
|
});
|
|
740
741
|
const primaryCta = typeof nav.primaryCta === "object" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", href: nav.primaryCta.href, onClick: onClose, className: "w-full", children: nav.primaryCta.label }) : nav.primaryCta === "none" ? null : _nullishCoalesce(cta, () => ( null));
|
|
@@ -770,7 +771,7 @@ function MobileNavSheetBody({
|
|
|
770
771
|
] }),
|
|
771
772
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain px-5", children: [
|
|
772
773
|
askAI && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
773
|
-
|
|
774
|
+
_chunk4ASUUB3Acjs.MingoAiButton,
|
|
774
775
|
{
|
|
775
776
|
variant: "field",
|
|
776
777
|
source: askAI.source,
|
|
@@ -947,7 +948,7 @@ function SiteFooter({
|
|
|
947
948
|
const bandPrimary = typeof nav.primaryCta === "object" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", href: nav.primaryCta.href, children: nav.primaryCta.label }) : nav.primaryCta === "none" ? null : _nullishCoalesce(cta, () => ( null));
|
|
948
949
|
const columns = nav.footerColumns;
|
|
949
950
|
const accordion = columns.length > ACCORDION_OVER;
|
|
950
|
-
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
951
|
+
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.SocialIconRow, { compact: true, links: _chunk2WGA2IRNcjs.siteNavSocialLinks.call(void 0, nav.brand.social) }) : null)));
|
|
951
952
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
952
953
|
"footer",
|
|
953
954
|
{
|
|
@@ -1041,12 +1042,12 @@ var _framermotion = require('framer-motion');
|
|
|
1041
1042
|
|
|
1042
1043
|
function SlidingSidebar({ config }) {
|
|
1043
1044
|
const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
1044
|
-
const mounted =
|
|
1045
|
+
const mounted = _chunkWPMJUYW3cjs.useIsHydrated.call(void 0, );
|
|
1045
1046
|
const headerHeight = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, );
|
|
1046
1047
|
const asideRef = _react.useRef.call(void 0, null);
|
|
1047
1048
|
const prefersReducedMotion = _framermotion.useReducedMotion.call(void 0, );
|
|
1048
1049
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !config.isOpen });
|
|
1049
|
-
|
|
1050
|
+
_chunkSSSI2RBVcjs.useFocusTrap.call(void 0, asideRef, config.isOpen, { onEscape: config.onClose, contain: false });
|
|
1050
1051
|
const toggleExpanded = (itemId) => {
|
|
1051
1052
|
const newExpanded = new Set(expandedItems);
|
|
1052
1053
|
if (newExpanded.has(itemId)) {
|
|
@@ -1173,7 +1174,7 @@ function SlidingSidebar({ config }) {
|
|
|
1173
1174
|
duration: 0.3,
|
|
1174
1175
|
ease: [0.4, 0, 0.2, 1]
|
|
1175
1176
|
},
|
|
1176
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "fixed inset-0 z-[45]",
|
|
1177
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "fixed inset-0 z-[45]", _chunkNMLNZCK2cjs.OVERLAY_BACKDROP_CLASS),
|
|
1177
1178
|
onClick: () => config.onClose()
|
|
1178
1179
|
}
|
|
1179
1180
|
) }),
|
|
@@ -1216,7 +1217,7 @@ function SlidingSidebar({ config }) {
|
|
|
1216
1217
|
// src/components/navigation/page-section-bar.tsx
|
|
1217
1218
|
|
|
1218
1219
|
|
|
1219
|
-
var SECTION_BAR_HEIGHT_PX =
|
|
1220
|
+
var SECTION_BAR_HEIGHT_PX = _chunk5CPEMPNPcjs.STICKY_SECTION_NAV_HEIGHT_PX;
|
|
1220
1221
|
var PAGE_ANCHOR_SCROLL_MARGIN_CLASS = "scroll-mt-36";
|
|
1221
1222
|
var PAGE_ANCHOR_SCOPE_CLASS = "[&_[id]]:scroll-mt-36";
|
|
1222
1223
|
var PAGE_ANCHOR_GAP_PX = 16;
|
|
@@ -1244,21 +1245,21 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
|
|
|
1244
1245
|
const sections = useRenderedSections(listed);
|
|
1245
1246
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1246
1247
|
const headerBottom = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, void 0, { stuckOnly: true });
|
|
1247
|
-
const { activeSection, handleSectionClick } =
|
|
1248
|
+
const { activeSection, handleSectionClick } = _chunk5CPEMPNPcjs.useScrollSpy.call(void 0, sections, {
|
|
1248
1249
|
syncHash: true,
|
|
1249
1250
|
aboveFirst: "none",
|
|
1250
1251
|
headerOffset: headerBottom + SECTION_BAR_HEIGHT_PX + PAGE_ANCHOR_GAP_PX
|
|
1251
1252
|
});
|
|
1252
1253
|
if (sections.length === 0 && !inScope) return null;
|
|
1253
1254
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1254
|
-
|
|
1255
|
+
_chunk2WGA2IRNcjs.PageContainer,
|
|
1255
1256
|
{
|
|
1256
1257
|
as: "div",
|
|
1257
1258
|
backgroundClassName: "sticky z-30 border-b border-ods-border bg-ods-bg transition-[top] duration-300 ease-in-out motion-reduce:transition-none",
|
|
1258
1259
|
backgroundStyle: { top: headerBottom },
|
|
1259
1260
|
contentPadding: SECTION_BAR_INSET_CLASS,
|
|
1260
1261
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1261
|
-
|
|
1262
|
+
_chunk5CPEMPNPcjs.StickySectionNav,
|
|
1262
1263
|
{
|
|
1263
1264
|
orientation: "horizontal",
|
|
1264
1265
|
label,
|
|
@@ -1267,7 +1268,7 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
|
|
|
1267
1268
|
onSectionClick: handleSectionClick,
|
|
1268
1269
|
brand,
|
|
1269
1270
|
action: action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1270
|
-
|
|
1271
|
+
_chunkWPMJUYW3cjs.NavLinkAnchorViaRuntime,
|
|
1271
1272
|
{
|
|
1272
1273
|
href: action.href,
|
|
1273
1274
|
onClick: (event) => {
|
|
@@ -1347,20 +1348,8 @@ var idleIcon = (group) => _chunk63A4GZMBcjs.cn.call(void 0,
|
|
|
1347
1348
|
group === "row" ? "group-hover/nav-row:text-ods-text-primary" : "group-hover/nav-child:text-ods-text-primary"
|
|
1348
1349
|
);
|
|
1349
1350
|
var EXPANDED_ONLY = "opacity-0 transition-opacity duration-150 @[140px]/of-nav-sidebar:opacity-100 motion-reduce:transition-none";
|
|
1350
|
-
function CountPill({ count, className }) {
|
|
1351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1352
|
-
"span",
|
|
1353
|
-
{
|
|
1354
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1355
|
-
"flex h-6 min-w-6 shrink-0 items-center justify-center rounded-md bg-ods-accent px-[var(--spacing-system-xxs)]",
|
|
1356
|
-
className
|
|
1357
|
-
),
|
|
1358
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-on-accent text-h5", children: count > 99 ? "99+" : count })
|
|
1359
|
-
}
|
|
1360
|
-
);
|
|
1361
|
-
}
|
|
1362
1351
|
function RowEnd({ count }) {
|
|
1363
|
-
return count > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountPill, { count, className: "ml-auto" }) : null;
|
|
1352
|
+
return count > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.CountPill, { count, className: "ml-auto" }) : null;
|
|
1364
1353
|
}
|
|
1365
1354
|
function RowLabel({ item, showLabel = true }) {
|
|
1366
1355
|
const unreadCount = _nullishCoalesce(item.unreadCount, () => ( 0));
|
|
@@ -1397,7 +1386,7 @@ function RowIcon({ item, size, className }) {
|
|
|
1397
1386
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative flex shrink-0 items-center justify-center", size === 20 ? "size-5" : "size-4", className),
|
|
1398
1387
|
children: [
|
|
1399
1388
|
sizedIcon(item.icon, size),
|
|
1400
|
-
(_nullishCoalesce(item.unreadCount, () => ( 0))) > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1389
|
+
(_nullishCoalesce(item.unreadCount, () => ( 0))) > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.UnreadDot, { size: "fixed", className: "@[140px]/of-nav-sidebar:hidden" })
|
|
1401
1390
|
]
|
|
1402
1391
|
}
|
|
1403
1392
|
);
|
|
@@ -1732,7 +1721,7 @@ function LoadedNavigationSidebarItemButton({
|
|
|
1732
1721
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1733
1722
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex flex-shrink-0 items-center justify-center", children: [
|
|
1734
1723
|
_react.cloneElement.call(void 0, item.icon, { color: "inherit" }),
|
|
1735
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1724
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.UnreadDot, { size: "fixed" })
|
|
1736
1725
|
] }),
|
|
1737
1726
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1738
1727
|
"span",
|
|
@@ -2017,7 +2006,7 @@ function NavigationSidebar({
|
|
|
2017
2006
|
setTabletFor(isTablet);
|
|
2018
2007
|
if (isTablet) setTabletMinimized(true);
|
|
2019
2008
|
}
|
|
2020
|
-
const hydrated =
|
|
2009
|
+
const hydrated = _chunkWPMJUYW3cjs.useIsHydrated.call(void 0, );
|
|
2021
2010
|
const serverMinimized = isControlled ? desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
|
|
2022
2011
|
const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : serverMinimized;
|
|
2023
2012
|
const [transitionsEnabled, setTransitionsEnabled] = _react.useState.call(void 0, false);
|
|
@@ -2031,7 +2020,7 @@ function NavigationSidebar({
|
|
|
2031
2020
|
setSize: setChosenExpandedWidth,
|
|
2032
2021
|
resetSize: resetChosenExpandedWidth,
|
|
2033
2022
|
clampSize: clampExpandedWidth
|
|
2034
|
-
} =
|
|
2023
|
+
} = _chunkNMLNZCK2cjs.useResizablePanelSize.call(void 0, {
|
|
2035
2024
|
enabled: resize !== void 0,
|
|
2036
2025
|
minSize: resizeMinWidth,
|
|
2037
2026
|
maxSize: _nullishCoalesce(_optionalChain([resize, 'optionalAccess', _38 => _38.maxWidth]), () => ( Number.POSITIVE_INFINITY)),
|
|
@@ -2298,7 +2287,7 @@ function NavigationSidebar({
|
|
|
2298
2287
|
}
|
|
2299
2288
|
),
|
|
2300
2289
|
resize !== void 0 && !minimized && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2301
|
-
|
|
2290
|
+
_chunkWPMJUYW3cjs.PanelResizeHandle,
|
|
2302
2291
|
{
|
|
2303
2292
|
side: "left",
|
|
2304
2293
|
variant: "inLayout",
|
|
@@ -2311,7 +2300,7 @@ function NavigationSidebar({
|
|
|
2311
2300
|
onReset: resetChosenExpandedWidth,
|
|
2312
2301
|
ariaLabel: "Resize navigation sidebar",
|
|
2313
2302
|
className: "inset-y-0 hidden w-6 -translate-x-1/2 justify-center pl-0 lg:flex",
|
|
2314
|
-
grip: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2303
|
+
grip: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.PanelResizeGrip, {})
|
|
2315
2304
|
}
|
|
2316
2305
|
)
|
|
2317
2306
|
]
|
|
@@ -2350,7 +2339,7 @@ function toMenuGroups(entries) {
|
|
|
2350
2339
|
),
|
|
2351
2340
|
children: [
|
|
2352
2341
|
entry.icon,
|
|
2353
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2342
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.UnreadCountBadge, { count: _nullishCoalesce(entry.count, () => ( 0)) })
|
|
2354
2343
|
]
|
|
2355
2344
|
}
|
|
2356
2345
|
) : void 0,
|
|
@@ -2423,7 +2412,7 @@ function AccountPopover({
|
|
|
2423
2412
|
"aria-hidden": "true"
|
|
2424
2413
|
}
|
|
2425
2414
|
),
|
|
2426
|
-
unread && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2415
|
+
unread && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.UnreadDot, { size: "fixed" })
|
|
2427
2416
|
] }),
|
|
2428
2417
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2429
2418
|
"span",
|
|
@@ -2509,7 +2498,7 @@ function HeaderGlobalSearch({
|
|
|
2509
2498
|
"form",
|
|
2510
2499
|
{
|
|
2511
2500
|
onSubmit: handleSubmit,
|
|
2512
|
-
...
|
|
2501
|
+
..._chunk4ASUUB3Acjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
2513
2502
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2514
2503
|
"flex h-full flex-1 items-center gap-2 px-3",
|
|
2515
2504
|
// Transparent so the cell inherits the bar's background
|
|
@@ -2622,14 +2611,14 @@ function NotificationsBellButton({
|
|
|
2622
2611
|
variant = "cell",
|
|
2623
2612
|
className
|
|
2624
2613
|
}) {
|
|
2625
|
-
const ctx =
|
|
2614
|
+
const ctx = _chunk2WGA2IRNcjs.useOptionalNotifications.call(void 0, );
|
|
2626
2615
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _75 => _75.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
2627
2616
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _76 => _76.isOpen]), () => ( false));
|
|
2628
2617
|
const onClick = _optionalChain([ctx, 'optionalAccess', _77 => _77.toggle]);
|
|
2629
2618
|
const floating = variant === "floating";
|
|
2630
2619
|
const iconClassName = variant === "cell" ? "h-6 w-6" : "h-5 w-5";
|
|
2631
2620
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2632
|
-
|
|
2621
|
+
_chunk2WGA2IRNcjs.HeaderButton,
|
|
2633
2622
|
{
|
|
2634
2623
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: iconClassName }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: iconClassName }),
|
|
2635
2624
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -2652,14 +2641,14 @@ function NotificationsBellButton({
|
|
|
2652
2641
|
// src/components/navigation/ticket-alerts-button.tsx
|
|
2653
2642
|
|
|
2654
2643
|
function TicketAlertsButton({ href, disabled, variant = "cell", className }) {
|
|
2655
|
-
const live =
|
|
2644
|
+
const live = _chunkMWQOM2EIcjs.useOptionalTicketLive.call(void 0, );
|
|
2656
2645
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
2657
2646
|
if (!live || !live.authed || live.unreadTotal === 0) return null;
|
|
2658
2647
|
const targetId = live.nextUnreadTicketId;
|
|
2659
|
-
const target = targetId ?
|
|
2660
|
-
const handleClick = () =>
|
|
2648
|
+
const target = targetId ? _chunk4ASUUB3Acjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
|
|
2649
|
+
const handleClick = () => _chunkXCVH5BCZcjs.executeNavigationImperative.call(void 0, { runtime, href: target });
|
|
2661
2650
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2662
|
-
|
|
2651
|
+
_chunk2WGA2IRNcjs.HeaderButton,
|
|
2663
2652
|
{
|
|
2664
2653
|
icon: (
|
|
2665
2654
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -2669,7 +2658,7 @@ function TicketAlertsButton({ href, disabled, variant = "cell", className }) {
|
|
|
2669
2658
|
// existing while updates are unread — never by tinting the glyph.
|
|
2670
2659
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
2671
2660
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: variant === "compact" ? "h-5 w-5" : "h-6 w-6" }),
|
|
2672
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2661
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
2673
2662
|
] })
|
|
2674
2663
|
),
|
|
2675
2664
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -2742,7 +2731,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2742
2731
|
const dimmedClass = disabled ? "pointer-events-none opacity-50" : "";
|
|
2743
2732
|
const cellDivider = "border-l border-ods-border";
|
|
2744
2733
|
const renderCustomCells = (placement) => _optionalChain([customCells, 'optionalAccess', _78 => _78.filter, 'call', _79 => _79((cell) => (_nullishCoalesce(cell.placement, () => ( "start"))) === placement), 'access', _80 => _80.map, 'call', _81 => _81((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2745
|
-
|
|
2734
|
+
_chunk2WGA2IRNcjs.HeaderButton,
|
|
2746
2735
|
{
|
|
2747
2736
|
type: "button",
|
|
2748
2737
|
icon: cell.icon,
|
|
@@ -2763,7 +2752,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2763
2752
|
leading: (
|
|
2764
2753
|
// Mobile: Burger Menu Button
|
|
2765
2754
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2766
|
-
|
|
2755
|
+
_chunk2WGA2IRNcjs.HeaderButton,
|
|
2767
2756
|
{
|
|
2768
2757
|
onClick: onToggleMobileMenu,
|
|
2769
2758
|
isActive: isMobileMenuOpen,
|
|
@@ -2789,7 +2778,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2789
2778
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
2790
2779
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2791
2780
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2792
|
-
|
|
2781
|
+
_chunk2WGA2IRNcjs.HeaderButton,
|
|
2793
2782
|
{
|
|
2794
2783
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
2795
2784
|
"aria-label": "Search",
|
|
@@ -2807,7 +2796,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2807
2796
|
}
|
|
2808
2797
|
),
|
|
2809
2798
|
renderCustomCells("start"),
|
|
2810
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2799
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.TimeTrackerHeaderButton, { disabled, className: _chunk63A4GZMBcjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
2811
2800
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2812
2801
|
NotificationsBellButton,
|
|
2813
2802
|
{
|
|
@@ -2826,7 +2815,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2826
2815
|
),
|
|
2827
2816
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenu, { children: [
|
|
2828
2817
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2829
|
-
|
|
2818
|
+
_chunk2WGA2IRNcjs.HeaderButton,
|
|
2830
2819
|
{
|
|
2831
2820
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2832
2821
|
_chunkNFNSPLGCcjs.SquareAvatar,
|
|
@@ -3250,7 +3239,7 @@ function SidePanelResizeHandle({ state, label, controls }) {
|
|
|
3250
3239
|
onPointerCancel: endDrag,
|
|
3251
3240
|
onKeyDown: handleKeyDown,
|
|
3252
3241
|
className: "group absolute inset-y-0 left-0 z-10 flex w-4 -translate-x-1/2 cursor-col-resize touch-none select-none items-center justify-center outline-none",
|
|
3253
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3242
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.PanelResizeGrip, {})
|
|
3254
3243
|
}
|
|
3255
3244
|
);
|
|
3256
3245
|
}
|
|
@@ -3350,7 +3339,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
3350
3339
|
}) {
|
|
3351
3340
|
const panelRef = _react.useRef.call(void 0, null);
|
|
3352
3341
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !isOpen });
|
|
3353
|
-
|
|
3342
|
+
_chunkSSSI2RBVcjs.useFocusTrap.call(void 0, panelRef, isOpen, { onEscape: onClose });
|
|
3354
3343
|
const handleItemClick = _react.useCallback.call(void 0,
|
|
3355
3344
|
(item) => {
|
|
3356
3345
|
if (item.onClick) {
|
|
@@ -3480,7 +3469,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
3480
3469
|
{
|
|
3481
3470
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3482
3471
|
"absolute inset-0",
|
|
3483
|
-
|
|
3472
|
+
_chunkNMLNZCK2cjs.OVERLAY_BACKDROP_CLASS,
|
|
3484
3473
|
"transition-all duration-300 motion-reduce:transition-none",
|
|
3485
3474
|
isOpen ? "pointer-events-auto opacity-100" : "opacity-0"
|
|
3486
3475
|
),
|
|
@@ -3552,7 +3541,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
3552
3541
|
{
|
|
3553
3542
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3554
3543
|
"absolute inset-0 z-[100] md:hidden",
|
|
3555
|
-
|
|
3544
|
+
_chunkNMLNZCK2cjs.OVERLAY_BACKDROP_CLASS,
|
|
3556
3545
|
"transition-all duration-300 motion-reduce:transition-none",
|
|
3557
3546
|
isOpen ? "opacity-100" : "pointer-events-none opacity-0"
|
|
3558
3547
|
),
|
|
@@ -3752,7 +3741,7 @@ function AppLayout({
|
|
|
3752
3741
|
disabled
|
|
3753
3742
|
}
|
|
3754
3743
|
),
|
|
3755
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2WGA2IRNcjs.NotificationDrawer, { showClose: !desktopHeader }),
|
|
3756
3745
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3757
3746
|
"div",
|
|
3758
3747
|
{
|
|
@@ -3789,7 +3778,7 @@ function AppLayout({
|
|
|
3789
3778
|
style: bottomInset > 0 || dockFloats ? {
|
|
3790
3779
|
paddingBottom: bottomInset,
|
|
3791
3780
|
[COMPOSER_DOCK_INSET_VAR]: `${dockFloats ? dockHeight : 0}px`,
|
|
3792
|
-
...dockFloats && dockHeight > 0 ?
|
|
3781
|
+
...dockFloats && dockHeight > 0 ? _chunk2WGA2IRNcjs.previewFadeMask.call(void 0, `calc(100% - ${dockHeight}px)`) : {}
|
|
3793
3782
|
} : void 0,
|
|
3794
3783
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUAI4VMEFcjs.ContentAreaWidthContext.Provider, { value: contentAreaWidth, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOT6P57ZScjs.ComposerDockHeightContext.Provider, { value: hasDock ? dockHeight : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: adaptive ? "ods-content-scope" : "contents", children }) }) })
|
|
3795
3784
|
}
|
|
@@ -19,7 +19,7 @@ var _chunkUSUVHAQ7cjs = require('./chunk-USUVHAQ7.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkPZNWIJRZcjs = require('./chunk-PZNWIJRZ.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -966,7 +966,7 @@ function EntityPortraitCard({
|
|
|
966
966
|
setMeasured({ src, isWide: img.naturalWidth / img.naturalHeight >= MIN_WIDE_RATIO });
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
|
-
const edgeColor =
|
|
969
|
+
const edgeColor = _chunkPZNWIJRZcjs.useImageEdgeColor.call(void 0, isWide === false ? src : null, "var(--color-bg-surface)");
|
|
970
970
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityPortraitCardSkeleton, { typeLabel, className });
|
|
971
971
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target, rel, className: _chunk63A4GZMBcjs.cn.call(void 0, "block h-full", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { className: _chunk63A4GZMBcjs.cn.call(void 0, CONTENT_CARD_FRAME_CLASS, PORTRAIT_BODY), children: [
|
|
972
972
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1076,11 +1076,11 @@ function useEntityCardLink({ href, targetPlatform, target, rel }) {
|
|
|
1076
1076
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
1077
1077
|
return _react.useMemo.call(void 0, () => {
|
|
1078
1078
|
if (target !== void 0 || rel !== void 0) {
|
|
1079
|
-
const safeRel = _nullishCoalesce(rel, () => ( (target === "_blank" ?
|
|
1079
|
+
const safeRel = _nullishCoalesce(rel, () => ( (target === "_blank" ? _chunkPZNWIJRZcjs.newTabRel.call(void 0, href, targetPlatform) : void 0)));
|
|
1080
1080
|
return { target, rel: safeRel };
|
|
1081
1081
|
}
|
|
1082
|
-
const resolved =
|
|
1083
|
-
const attrs =
|
|
1082
|
+
const resolved = _chunkPZNWIJRZcjs.navLinkTarget.call(void 0, runtime, href, targetPlatform);
|
|
1083
|
+
const attrs = _chunkPZNWIJRZcjs.newTabAnchorAttrs.call(void 0, resolved.isNewTab, resolved.href, targetPlatform);
|
|
1084
1084
|
return { target: attrs.target, rel: attrs.rel };
|
|
1085
1085
|
}, [target, rel, href, targetPlatform, runtime]);
|
|
1086
1086
|
}
|
|
@@ -1092,7 +1092,7 @@ function useEntityCardPlaceholder({
|
|
|
1092
1092
|
siteName = "",
|
|
1093
1093
|
aspect = "wide"
|
|
1094
1094
|
}) {
|
|
1095
|
-
const derived =
|
|
1095
|
+
const derived = _chunkPZNWIJRZcjs.useOgPlaceholderUrl.call(void 0, { title, siteName, aspect });
|
|
1096
1096
|
return placeholderUrl !== void 0 ? placeholderUrl : derived;
|
|
1097
1097
|
}
|
|
1098
1098
|
|