@homebound/beam 3.67.0 → 3.68.0

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/index.cjs CHANGED
@@ -81,6 +81,7 @@ __export(index_exports, {
81
81
  CollapseToggle: () => CollapseToggle,
82
82
  CollapsedContext: () => CollapsedContext,
83
83
  ConfirmCloseModal: () => ConfirmCloseModal,
84
+ ContentHeader: () => ContentHeader,
84
85
  ContrastScope: () => ContrastScope,
85
86
  Copy: () => Copy,
86
87
  CountBadge: () => CountBadge,
@@ -24106,9 +24107,62 @@ function HbSpinnerProvider({
24106
24107
  return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(HbLoadingSpinnerContext.Provider, { value: state, children });
24107
24108
  }
24108
24109
 
24109
- // src/components/HomeboundLogo.tsx
24110
- var import_runtime110 = require("@homebound/truss/runtime");
24110
+ // src/components/Headers/HeaderActions.tsx
24111
24111
  var import_jsx_runtime181 = require("react/jsx-runtime");
24112
+ function HeaderActions(props) {
24113
+ const {
24114
+ actions,
24115
+ ...otherProps
24116
+ } = props;
24117
+ const tid = useTestIds(otherProps, "headerActions");
24118
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: "df gap1 fs0", ...tid, children: actions.map((action) => action.kind === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(IconButton, { ...action, variant: "outline" }, action.icon) : /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(Button, { ...action }, `${action.label}`)) });
24119
+ }
24120
+
24121
+ // src/components/Headers/ContentHeader.tsx
24122
+ var import_runtime110 = require("@homebound/truss/runtime");
24123
+ var import_jsx_runtime182 = require("react/jsx-runtime");
24124
+ function ContentHeader(props) {
24125
+ const {
24126
+ title,
24127
+ description,
24128
+ actions
24129
+ } = props;
24130
+ const tid = useTestIds(props, "contentHeader");
24131
+ if (!title && !description && !actions) {
24132
+ return null;
24133
+ }
24134
+ const descriptionEl = description && /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", { ...(0, import_runtime110.trussProps)({
24135
+ fontWeight: "fw4",
24136
+ fontSize: "fz_14px",
24137
+ lineHeight: "lh_20px",
24138
+ color: ["color_var", {
24139
+ "--color": "var(--b-on-surface)"
24140
+ }]
24141
+ }), ...tid.description, children: description });
24142
+ return /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("div", { ...(0, import_runtime110.trussProps)({
24143
+ display: "df",
24144
+ flexDirection: "fdc",
24145
+ gap: "gap_12px",
24146
+ width: "w_calc_var_beam_layout_viewport_width_100vw_var_beam_side_nav_layout_width_0px",
24147
+ left: "l_var_beam_side_nav_layout_width_0px",
24148
+ position: "sticky",
24149
+ paddingLeft: "pl_24px",
24150
+ paddingRight: "pr_24px",
24151
+ backgroundColor: ["bgColor_var", {
24152
+ "--backgroundColor": "var(--b-surface)"
24153
+ }]
24154
+ }), ...tid, children: [
24155
+ /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("div", { className: "df aic jcsb mw0", children: [
24156
+ title ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("h2", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }) : descriptionEl,
24157
+ actions && /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(HeaderActions, { actions, ...tid.actions })
24158
+ ] }),
24159
+ title && descriptionEl
24160
+ ] });
24161
+ }
24162
+
24163
+ // src/components/HomeboundLogo.tsx
24164
+ var import_runtime111 = require("@homebound/truss/runtime");
24165
+ var import_jsx_runtime183 = require("react/jsx-runtime");
24112
24166
  var __maybeInc20 = (inc) => {
24113
24167
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
24114
24168
  };
@@ -24118,24 +24172,24 @@ function HomeboundLogo(props) {
24118
24172
  width: width2 = "auto",
24119
24173
  height = "auto"
24120
24174
  } = props;
24121
- return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...(0, import_runtime110.trussProps)({
24175
+ return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...(0, import_runtime111.trussProps)({
24122
24176
  fill: ["fill_var", {
24123
- "--fill": (0, import_runtime110.maybeCssVar)(fill)
24177
+ "--fill": (0, import_runtime111.maybeCssVar)(fill)
24124
24178
  }],
24125
24179
  width: ["w_var", {
24126
- "--width": (0, import_runtime110.maybeCssVar)(__maybeInc20(width2))
24180
+ "--width": (0, import_runtime111.maybeCssVar)(__maybeInc20(width2))
24127
24181
  }],
24128
24182
  height: ["h_var", {
24129
- "--height": (0, import_runtime110.maybeCssVar)(__maybeInc20(height))
24183
+ "--height": (0, import_runtime111.maybeCssVar)(__maybeInc20(height))
24130
24184
  }]
24131
- }), children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("path", { d: "M158.1,97.6H0.2L0,39.7L76.8,0l68,38.7l-3.1,5.3l-65-37L6.2,43.4l0.2,48h151.7V97.6z" }) });
24185
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("path", { d: "M158.1,97.6H0.2L0,39.7L76.8,0l68,38.7l-3.1,5.3l-65-37L6.2,43.4l0.2,48h151.7V97.6z" }) });
24132
24186
  }
24133
24187
 
24134
24188
  // src/components/JumpLink.tsx
24135
24189
  var import_react132 = require("react");
24136
24190
  var import_react_aria59 = require("react-aria");
24137
- var import_runtime111 = require("@homebound/truss/runtime");
24138
- var import_jsx_runtime182 = require("react/jsx-runtime");
24191
+ var import_runtime112 = require("@homebound/truss/runtime");
24192
+ var import_jsx_runtime184 = require("react/jsx-runtime");
24139
24193
  function JumpLink(props) {
24140
24194
  const {
24141
24195
  label,
@@ -24177,14 +24231,14 @@ function JumpLink(props) {
24177
24231
  });
24178
24232
  }
24179
24233
  }
24180
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("a", { ref, ...(0, import_react_aria59.mergeProps)(linkProps, focusProps, hoverProps), ...tid, ...(0, import_runtime111.trussProps)({
24234
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("a", { ref, ...(0, import_react_aria59.mergeProps)(linkProps, focusProps, hoverProps), ...tid, ...(0, import_runtime112.trussProps)({
24181
24235
  ...jumpLinkStyles.baseStyles,
24182
24236
  ...active && jumpLinkStyles.activeStyles,
24183
24237
  ...isHovered && !disabled && jumpLinkStyles.hoverStyles,
24184
24238
  ...isFocusVisible && jumpLinkStyles.focusStyles,
24185
24239
  ...disabled && jumpLinkStyles.disabledStyles,
24186
24240
  ...disabled && active && jumpLinkStyles.disabledActiveStyles
24187
- }), children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", children: label }) });
24241
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", children: label }) });
24188
24242
  }
24189
24243
  var jumpLinkStyles = {
24190
24244
  baseStyles: {
@@ -24232,10 +24286,10 @@ var jumpLinkStyles = {
24232
24286
  };
24233
24287
 
24234
24288
  // src/components/MaxLines.tsx
24235
- var import_utils150 = require("@react-aria/utils");
24289
+ var import_utils152 = require("@react-aria/utils");
24236
24290
  var import_react133 = require("react");
24237
- var import_runtime112 = require("@homebound/truss/runtime");
24238
- var import_jsx_runtime183 = require("react/jsx-runtime");
24291
+ var import_runtime113 = require("@homebound/truss/runtime");
24292
+ var import_jsx_runtime185 = require("react/jsx-runtime");
24239
24293
  function MaxLines({
24240
24294
  maxLines,
24241
24295
  children
@@ -24243,7 +24297,7 @@ function MaxLines({
24243
24297
  const elRef = (0, import_react133.useRef)(null);
24244
24298
  const [hasMore, setHasMore] = (0, import_react133.useState)(false);
24245
24299
  const [expanded, setExpanded] = (0, import_react133.useState)(false);
24246
- (0, import_utils150.useLayoutEffect)(() => {
24300
+ (0, import_utils152.useLayoutEffect)(() => {
24247
24301
  if (!elRef.current) return;
24248
24302
  setHasMore(elRef.current.scrollHeight > elRef.current.clientHeight);
24249
24303
  }, []);
@@ -24254,15 +24308,15 @@ function MaxLines({
24254
24308
  if (!elRef.current) return;
24255
24309
  !expanded && setHasMore(elRef.current.scrollHeight > elRef.current.clientHeight);
24256
24310
  }, [expanded]);
24257
- (0, import_utils150.useResizeObserver)({
24311
+ (0, import_utils152.useResizeObserver)({
24258
24312
  ref: elRef,
24259
24313
  onResize
24260
24314
  });
24261
- return /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("div", { children: [
24262
- /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("div", { ref: elRef, ...(0, import_runtime112.trussProps)({
24315
+ return /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { children: [
24316
+ /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { ref: elRef, ...(0, import_runtime113.trussProps)({
24263
24317
  ...!expanded ? {
24264
24318
  WebkitLineClamp: ["lineClamp_var", {
24265
- "--WebkitLineClamp": (0, import_runtime112.maybeCssVar)(maxLines)
24319
+ "--WebkitLineClamp": (0, import_runtime113.maybeCssVar)(maxLines)
24266
24320
  }],
24267
24321
  overflow: "oh",
24268
24322
  display: "d_negwebkit_box",
@@ -24270,7 +24324,7 @@ function MaxLines({
24270
24324
  textOverflow: "to_ellipsis"
24271
24325
  } : {}
24272
24326
  }), children }),
24273
- hasMore && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("button", { className: "db fw4 fz_14px lh_20px", onClick: () => setExpanded((prev) => !prev), children: expanded ? "Show Less" : "Show More" })
24327
+ hasMore && /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("button", { className: "db fw4 fz_14px lh_20px", onClick: () => setExpanded((prev) => !prev), children: expanded ? "Show Less" : "Show More" })
24274
24328
  ] });
24275
24329
  }
24276
24330
 
@@ -24278,15 +24332,15 @@ function MaxLines({
24278
24332
  var import_change_case8 = require("change-case");
24279
24333
 
24280
24334
  // src/components/AppNav/AppNavGroup.tsx
24281
- var import_utils152 = require("@react-aria/utils");
24335
+ var import_utils154 = require("@react-aria/utils");
24282
24336
  var import_change_case7 = require("change-case");
24283
24337
  var import_react136 = require("react");
24284
24338
 
24285
24339
  // src/components/AppNav/AppNavGroupTrigger.tsx
24286
24340
  var import_react134 = require("react");
24287
24341
  var import_react_aria60 = require("react-aria");
24288
- var import_runtime113 = require("@homebound/truss/runtime");
24289
- var import_jsx_runtime184 = require("react/jsx-runtime");
24342
+ var import_runtime114 = require("@homebound/truss/runtime");
24343
+ var import_jsx_runtime186 = require("react/jsx-runtime");
24290
24344
  function AppNavGroupTrigger(props) {
24291
24345
  const {
24292
24346
  label,
@@ -24318,11 +24372,11 @@ function AppNavGroupTrigger(props) {
24318
24372
  hoverStyles: hoverStyles4,
24319
24373
  pressedStyles: pressedStyles2
24320
24374
  } = (0, import_react134.useMemo)(() => getNavLinkStyles("side"), []);
24321
- return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)("button", { type: "button", ...(0, import_react_aria60.mergeProps)(buttonProps, focusProps, hoverProps, tid.trigger, {
24375
+ return /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)("button", { type: "button", ...(0, import_react_aria60.mergeProps)(buttonProps, focusProps, hoverProps, tid.trigger, {
24322
24376
  ref,
24323
24377
  "aria-expanded": expanded,
24324
24378
  "aria-controls": navGroupId,
24325
- ...(0, import_runtime113.mergeProps)(navLink, void 0, {
24379
+ ...(0, import_runtime114.mergeProps)(navLink, void 0, {
24326
24380
  ...baseStyles4,
24327
24381
  ...isFocusVisible && focusRingStyles2,
24328
24382
  ...isHovered && hoverStyles4,
@@ -24336,7 +24390,7 @@ function AppNavGroupTrigger(props) {
24336
24390
  })
24337
24391
  }), children: [
24338
24392
  label,
24339
- /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("div", { ...(0, import_runtime113.trussProps)({
24393
+ /* @__PURE__ */ (0, import_jsx_runtime186.jsx)("div", { ...(0, import_runtime114.trussProps)({
24340
24394
  ...{
24341
24395
  display: "df",
24342
24396
  alignItems: "aic",
@@ -24346,7 +24400,7 @@ function AppNavGroupTrigger(props) {
24346
24400
  ...props.expanded ? {
24347
24401
  transform: "transform_rotate_180deg"
24348
24402
  } : {}
24349
- }), children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(Icon, { icon: "chevronDown" }) })
24403
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(Icon, { icon: "chevronDown" }) })
24350
24404
  ] });
24351
24405
  }
24352
24406
 
@@ -24489,8 +24543,8 @@ function useAppNavGroupExpanded(linkGroup) {
24489
24543
  }
24490
24544
 
24491
24545
  // src/components/AppNav/AppNavGroup.tsx
24492
- var import_runtime114 = require("@homebound/truss/runtime");
24493
- var import_jsx_runtime185 = require("react/jsx-runtime");
24546
+ var import_runtime115 = require("@homebound/truss/runtime");
24547
+ var import_jsx_runtime187 = require("react/jsx-runtime");
24494
24548
  var __maybeInc21 = (inc) => {
24495
24549
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
24496
24550
  };
@@ -24501,9 +24555,9 @@ function AppNavGroupView(props) {
24501
24555
  } = props;
24502
24556
  const tid = useTestIds(props, "linkGroup");
24503
24557
  if (panelCollapsed) {
24504
- return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(import_jsx_runtime185.Fragment, { children: appNavLinkGroupLinks(linkGroup).map((link) => /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid[`link_${(0, import_change_case7.camelCase)(link.label)}`] }, link.label)) });
24558
+ return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(import_jsx_runtime187.Fragment, { children: appNavLinkGroupLinks(linkGroup).map((link) => /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid[`link_${(0, import_change_case7.camelCase)(link.label)}`] }, link.label)) });
24505
24559
  }
24506
- return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(AppNavGroupDisclosure, { ...props });
24560
+ return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppNavGroupDisclosure, { ...props });
24507
24561
  }
24508
24562
  function AppNavGroupDisclosure(props) {
24509
24563
  const {
@@ -24528,31 +24582,31 @@ function AppNavGroupDisclosure(props) {
24528
24582
  setContentHeight(`${contentEl.scrollHeight}px`);
24529
24583
  }
24530
24584
  }, [expanded, contentEl]);
24531
- (0, import_utils152.useResizeObserver)({
24585
+ (0, import_utils154.useResizeObserver)({
24532
24586
  ref: contentRef,
24533
24587
  onResize
24534
24588
  });
24535
- return /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { className: "df fdc", ...tid, children: [
24536
- /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, active: linkGroupHasActiveLink(linkGroup), onClick: onToggle, ...tid }),
24537
- /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...(0, import_runtime114.trussProps)({
24589
+ return /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)("div", { className: "df fdc", ...tid, children: [
24590
+ /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, active: linkGroupHasActiveLink(linkGroup), onClick: onToggle, ...tid }),
24591
+ /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...(0, import_runtime115.trussProps)({
24538
24592
  overflow: "oh",
24539
24593
  transition: "transitionHeight",
24540
24594
  height: ["h_var", {
24541
- "--height": (0, import_runtime114.maybeCssVar)(__maybeInc21(contentHeight))
24595
+ "--height": (0, import_runtime115.maybeCssVar)(__maybeInc21(contentHeight))
24542
24596
  }]
24543
24597
  }), ...tid.panel, ...!expanded ? {
24544
24598
  inert: "true"
24545
- } : {}, children: /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { ref: setContentEl, className: "df fdc", children: /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(AppNavItems, { items: linkGroup.items, panelCollapsed: false, nested: true, ...tid }) }) })
24599
+ } : {}, children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: setContentEl, className: "df fdc", children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppNavItems, { items: linkGroup.items, panelCollapsed: false, nested: true, ...tid }) }) })
24546
24600
  ] });
24547
24601
  }
24548
24602
 
24549
24603
  // src/components/AppNav/AppNavGroupMenu.tsx
24550
- var import_jsx_runtime186 = require("react/jsx-runtime");
24604
+ var import_jsx_runtime188 = require("react/jsx-runtime");
24551
24605
  function AppNavGroupMenu({
24552
24606
  linkGroup,
24553
24607
  ...tid
24554
24608
  }) {
24555
- return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
24609
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
24556
24610
  ButtonMenu,
24557
24611
  {
24558
24612
  trigger: {
@@ -24568,8 +24622,8 @@ function AppNavGroupMenu({
24568
24622
  }
24569
24623
 
24570
24624
  // src/components/AppNav/AppNavSectionView.tsx
24571
- var import_runtime115 = require("@homebound/truss/runtime");
24572
- var import_jsx_runtime187 = require("react/jsx-runtime");
24625
+ var import_runtime116 = require("@homebound/truss/runtime");
24626
+ var import_jsx_runtime189 = require("react/jsx-runtime");
24573
24627
  function AppNavSectionView(props) {
24574
24628
  const {
24575
24629
  section,
@@ -24595,7 +24649,7 @@ function AppNavSectionView(props) {
24595
24649
  "--borderColor": "var(--b-surface-separator)"
24596
24650
  }]
24597
24651
  };
24598
- return /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)("div", { ...(0, import_runtime115.trussProps)({
24652
+ return /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("div", { ...(0, import_runtime116.trussProps)({
24599
24653
  ...{
24600
24654
  display: "df",
24601
24655
  flexDirection: "fdc",
@@ -24603,7 +24657,7 @@ function AppNavSectionView(props) {
24603
24657
  },
24604
24658
  ...showDivider ? dividerStyles : {}
24605
24659
  }), ...tid, children: [
24606
- section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ...(0, import_runtime115.trussProps)({
24660
+ section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0, import_jsx_runtime189.jsx)("div", { ...(0, import_runtime116.trussProps)({
24607
24661
  fontWeight: "fw6",
24608
24662
  fontSize: "fz_10px",
24609
24663
  lineHeight: "lh_14px",
@@ -24616,18 +24670,18 @@ function AppNavSectionView(props) {
24616
24670
  paddingBottom: "pb1",
24617
24671
  textTransform: "ttu"
24618
24672
  }), ...tid.label, children: section.label }),
24619
- /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppNavItems, { ...scopeProps, items: section.items, variant, panelCollapsed, nested })
24673
+ /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(AppNavItems, { ...scopeProps, items: section.items, variant, panelCollapsed, nested })
24620
24674
  ] });
24621
24675
  }
24622
24676
 
24623
24677
  // src/components/AppNav/AppNavItems.tsx
24624
- var import_jsx_runtime188 = require("react/jsx-runtime");
24678
+ var import_jsx_runtime190 = require("react/jsx-runtime");
24625
24679
  function AppNavItems(props) {
24626
24680
  const { items, variant = "side", panelCollapsed = false, nested = false } = props;
24627
24681
  const tid = useTestIds(props, "appNav");
24628
- return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_jsx_runtime188.Fragment, { children: items.map((item, idx) => {
24682
+ return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_jsx_runtime190.Fragment, { children: items.map((item, idx) => {
24629
24683
  if (isAppNavLink(item)) {
24630
- return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
24684
+ return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
24631
24685
  NavLink,
24632
24686
  {
24633
24687
  variant,
@@ -24640,7 +24694,7 @@ function AppNavItems(props) {
24640
24694
  );
24641
24695
  }
24642
24696
  if (isAppNavGroup(item)) {
24643
- return variant === "global" ? /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(AppNavGroupMenu, { linkGroup: item, ...tid.linkGroup }, appNavItemKey(item)) : /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
24697
+ return variant === "global" ? /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(AppNavGroupMenu, { linkGroup: item, ...tid.linkGroup }, appNavItemKey(item)) : /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
24644
24698
  AppNavGroupView,
24645
24699
  {
24646
24700
  linkGroup: item,
@@ -24651,7 +24705,7 @@ function AppNavItems(props) {
24651
24705
  );
24652
24706
  }
24653
24707
  if (isAppNavSection(item)) {
24654
- return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
24708
+ return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
24655
24709
  AppNavSectionView,
24656
24710
  {
24657
24711
  section: item,
@@ -24677,18 +24731,18 @@ var import_react_router_dom7 = require("react-router-dom");
24677
24731
 
24678
24732
  // src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayoutHeightContext.tsx
24679
24733
  var import_react137 = require("react");
24680
- var import_jsx_runtime189 = require("react/jsx-runtime");
24734
+ var import_jsx_runtime191 = require("react/jsx-runtime");
24681
24735
  var EnvironmentBannerLayoutHeightContext = (0, import_react137.createContext)(0);
24682
24736
  function EnvironmentBannerLayoutHeightProvider({ value, children }) {
24683
- return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(EnvironmentBannerLayoutHeightContext.Provider, { value, children });
24737
+ return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(EnvironmentBannerLayoutHeightContext.Provider, { value, children });
24684
24738
  }
24685
24739
  function useEnvironmentBannerLayoutHeight() {
24686
24740
  return (0, import_react137.useContext)(EnvironmentBannerLayoutHeightContext);
24687
24741
  }
24688
24742
 
24689
24743
  // src/components/Navbar/NavbarMobileMenu.tsx
24690
- var import_runtime116 = require("@homebound/truss/runtime");
24691
- var import_jsx_runtime190 = require("react/jsx-runtime");
24744
+ var import_runtime117 = require("@homebound/truss/runtime");
24745
+ var import_jsx_runtime192 = require("react/jsx-runtime");
24692
24746
  function NavbarMobileMenu(props) {
24693
24747
  const {
24694
24748
  items
@@ -24706,11 +24760,11 @@ function NavbarMobileMenu(props) {
24706
24760
  setIsOpen(false);
24707
24761
  }, [pathname, search]);
24708
24762
  const close = () => setIsOpen(false);
24709
- return /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(import_jsx_runtime190.Fragment, { children: [
24710
- /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(IconButton, { icon: isOpen ? "menuClose" : "menu", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: isOpen ? "Close navigation" : "Open navigation", onClick: () => setIsOpen((open) => !open), ...tid.mobileMenu }),
24763
+ return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(import_jsx_runtime192.Fragment, { children: [
24764
+ /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(IconButton, { icon: isOpen ? "menuClose" : "menu", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: isOpen ? "Close navigation" : "Open navigation", onClick: () => setIsOpen((open) => !open), ...tid.mobileMenu }),
24711
24765
  (0, import_react_dom6.createPortal)(
24712
24766
  /* AnimatePresence keeps the drawer mounted through its slide/fade-out before unmounting.*/
24713
- /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_framer_motion5.AnimatePresence, { children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(NavbarMobileDrawer, { items, onClose: close, tid }) }),
24767
+ /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(import_framer_motion5.AnimatePresence, { children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(NavbarMobileDrawer, { items, onClose: close, tid }) }),
24714
24768
  document.body
24715
24769
  )
24716
24770
  ] });
@@ -24724,14 +24778,14 @@ function NavbarMobileDrawer({
24724
24778
  const overlayTopStyle = {
24725
24779
  top: bannerHeightPx
24726
24780
  };
24727
- return /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(import_jsx_runtime190.Fragment, { children: [
24728
- /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_framer_motion5.motion.div, { ...(0, import_runtime116.mergeProps)(void 0, overlayTopStyle, {
24781
+ return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(import_jsx_runtime192.Fragment, { children: [
24782
+ /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(import_framer_motion5.motion.div, { ...(0, import_runtime117.mergeProps)(void 0, overlayTopStyle, {
24729
24783
  position: "fixed",
24730
24784
  right: "right0",
24731
24785
  bottom: "bottom0",
24732
24786
  left: "left0",
24733
24787
  zIndex: ["z_var", {
24734
- "--zIndex": (0, import_runtime116.maybeCssVar)(zIndices.navbarMobileMenuScrim)
24788
+ "--zIndex": (0, import_runtime117.maybeCssVar)(zIndices.navbarMobileMenuScrim)
24735
24789
  }],
24736
24790
  backgroundColor: ["bgColor_var", {
24737
24791
  "--backgroundColor": "var(--b-scrim)"
@@ -24746,7 +24800,7 @@ function NavbarMobileDrawer({
24746
24800
  ease: "linear",
24747
24801
  duration: 0.2
24748
24802
  }, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
24749
- /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_react_aria61.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(import_framer_motion5.motion.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...(0, import_runtime116.mergeProps)(void 0, overlayTopStyle, {
24803
+ /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(import_react_aria61.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(import_framer_motion5.motion.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...(0, import_runtime117.mergeProps)(void 0, overlayTopStyle, {
24750
24804
  position: "fixed",
24751
24805
  bottom: "bottom0",
24752
24806
  left: "left0",
@@ -24756,7 +24810,7 @@ function NavbarMobileDrawer({
24756
24810
  width: "w_260px",
24757
24811
  overflow: "oh",
24758
24812
  zIndex: ["z_var", {
24759
- "--zIndex": (0, import_runtime116.maybeCssVar)(zIndices.navbarMobileMenu)
24813
+ "--zIndex": (0, import_runtime117.maybeCssVar)(zIndices.navbarMobileMenu)
24760
24814
  }],
24761
24815
  backgroundColor: ["bgColor_var", {
24762
24816
  "--backgroundColor": "var(--b-surface)"
@@ -24771,7 +24825,7 @@ function NavbarMobileDrawer({
24771
24825
  ease: "linear",
24772
24826
  duration: 0.2
24773
24827
  }, onClick: (e) => e.stopPropagation(), ...tid.mobileMenuDrawer, children: [
24774
- /* @__PURE__ */ (0, import_jsx_runtime190.jsx)("div", { ...(0, import_runtime116.trussProps)({
24828
+ /* @__PURE__ */ (0, import_jsx_runtime192.jsx)("div", { ...(0, import_runtime117.trussProps)({
24775
24829
  ...{
24776
24830
  display: "df",
24777
24831
  alignItems: "aic",
@@ -24786,11 +24840,11 @@ function NavbarMobileDrawer({
24786
24840
  }]
24787
24841
  },
24788
24842
  ...pageContentPaddingX
24789
- }), children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(IconButton, { icon: "x", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: "Close navigation", onClick: onClose, ...tid.mobileMenuClose }) }),
24790
- /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
24843
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(IconButton, { icon: "x", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: "Close navigation", onClick: onClose, ...tid.mobileMenuClose }) }),
24844
+ /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
24791
24845
  "nav",
24792
24846
  {
24793
- ...(0, import_runtime116.trussProps)({
24847
+ ...(0, import_runtime117.trussProps)({
24794
24848
  ...{
24795
24849
  flexGrow: "fg1",
24796
24850
  overflowY: "oya",
@@ -24808,7 +24862,7 @@ function NavbarMobileDrawer({
24808
24862
  }
24809
24863
  },
24810
24864
  ...tid.mobileMenuPanel,
24811
- children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(AppNavItems, { items, panelCollapsed: false, ...tid })
24865
+ children: /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(AppNavItems, { items, panelCollapsed: false, ...tid })
24812
24866
  }
24813
24867
  )
24814
24868
  ] }, "navbarMobileMenuDrawer") })
@@ -24816,8 +24870,8 @@ function NavbarMobileDrawer({
24816
24870
  }
24817
24871
 
24818
24872
  // src/components/Navbar/Navbar.tsx
24819
- var import_runtime117 = require("@homebound/truss/runtime");
24820
- var import_jsx_runtime191 = require("react/jsx-runtime");
24873
+ var import_runtime118 = require("@homebound/truss/runtime");
24874
+ var import_jsx_runtime193 = require("react/jsx-runtime");
24821
24875
  function Navbar(props) {
24822
24876
  const {
24823
24877
  brand,
@@ -24836,7 +24890,7 @@ function Navbar(props) {
24836
24890
  overflows
24837
24891
  } = useContentOverflow(!sm);
24838
24892
  const showMobile = sm || overflows;
24839
- return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("nav", { ...(0, import_runtime117.trussProps)({
24893
+ return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("nav", { ...(0, import_runtime118.trussProps)({
24840
24894
  ...{
24841
24895
  backgroundColor: ["bgColor_var", {
24842
24896
  "--backgroundColor": "var(--b-surface-raised)"
@@ -24852,10 +24906,10 @@ function Navbar(props) {
24852
24906
  },
24853
24907
  ...headerContentPaddingX(showMobile)
24854
24908
  }), ...tid, children: [
24855
- /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("div", { className: "df aic gap3 fg1 mw0", children: [
24856
- /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("div", { className: "df aic fs0 gap2", children: [
24857
- showMobile && /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(NavbarMobileMenu, { items, ...tid }),
24858
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { ...(0, import_runtime117.trussProps)({
24909
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { className: "df aic gap3 fg1 mw0", children: [
24910
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { className: "df aic fs0 gap2", children: [
24911
+ showMobile && /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(NavbarMobileMenu, { items, ...tid }),
24912
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0, import_runtime118.trussProps)({
24859
24913
  flexShrink: "fs0",
24860
24914
  ...hideBrandOnMobile && showMobile ? {
24861
24915
  display: "dn"
@@ -24864,7 +24918,7 @@ function Navbar(props) {
24864
24918
  ] }),
24865
24919
  !sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
24866
24920
  // can expand again as space frees up.
24867
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { ref: containerRef, ...(0, import_runtime117.trussProps)({
24921
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ref: containerRef, ...(0, import_runtime118.trussProps)({
24868
24922
  display: "df",
24869
24923
  alignItems: "aic",
24870
24924
  flexGrow: "fg1",
@@ -24873,11 +24927,11 @@ function Navbar(props) {
24873
24927
  ...overflows ? {
24874
24928
  visibility: "visibility_hidden"
24875
24929
  } : {}
24876
- }), ...tid.items, children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { ref: contentRef, className: "df aic gap2 width_max_content", children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(AppNavItems, { variant: "global", items, ...tid }) }) })
24930
+ }), ...tid.items, children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ref: contentRef, className: "df aic gap2 width_max_content", children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(AppNavItems, { variant: "global", items, ...tid }) }) })
24877
24931
  ] }),
24878
- /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("div", { className: "df aic gap1", children: [
24879
- rightSlot && /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { className: "df aic gap1", ...tid.rightSlot, children: rightSlot }),
24880
- user && /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(NavbarUserMenu, { user, ...tid.userMenu })
24932
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { className: "df aic gap1", children: [
24933
+ rightSlot && /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { className: "df aic gap1", ...tid.rightSlot, children: rightSlot }),
24934
+ user && /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(NavbarUserMenu, { user, ...tid.userMenu })
24881
24935
  ] })
24882
24936
  ] }) });
24883
24937
  }
@@ -24885,7 +24939,7 @@ function NavbarUserMenu({
24885
24939
  user,
24886
24940
  ...tid
24887
24941
  }) {
24888
- return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { className: "df aic fs0 ml1", children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(ButtonMenu, { items: user.menuItems, persistentItems: user.persistentItems, trigger: {
24942
+ return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { className: "df aic fs0 ml1", children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(ButtonMenu, { items: user.menuItems, persistentItems: user.persistentItems, trigger: {
24889
24943
  src: user.picture,
24890
24944
  name: user.name,
24891
24945
  size: "sm",
@@ -24894,8 +24948,8 @@ function NavbarUserMenu({
24894
24948
  }
24895
24949
 
24896
24950
  // src/components/Pagination.tsx
24897
- var import_runtime118 = require("@homebound/truss/runtime");
24898
- var import_jsx_runtime192 = require("react/jsx-runtime");
24951
+ var import_runtime119 = require("@homebound/truss/runtime");
24952
+ var import_jsx_runtime194 = require("react/jsx-runtime");
24899
24953
  var defaultPage = {
24900
24954
  offset: 0,
24901
24955
  limit: 100
@@ -24927,7 +24981,7 @@ function Pagination(props) {
24927
24981
  }
24928
24982
  }
24929
24983
  const tid = useTestIds(props, "pagination");
24930
- return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("div", { ...(0, import_runtime118.trussProps)({
24984
+ return /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)("div", { ...(0, import_runtime119.trussProps)({
24931
24985
  display: "df",
24932
24986
  borderColor: ["bc_var", {
24933
24987
  "--borderColor": "var(--b-surface-separator)"
@@ -24944,24 +24998,24 @@ function Pagination(props) {
24944
24998
  paddingRight: "pr2",
24945
24999
  paddingTop: "pt2"
24946
25000
  }), ...tid, children: [
24947
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)("div", { className: "df mta mba mr2", ...tid.pageSizeLabel, children: "Page size:" }),
24948
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)("div", { className: "w_78px", children: /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(SelectField, { compact: true, label: "Page Size", labelStyle: "hidden", options: pageOptions, value: pageSize, onSelect: (val) => set({
25001
+ /* @__PURE__ */ (0, import_jsx_runtime194.jsx)("div", { className: "df mta mba mr2", ...tid.pageSizeLabel, children: "Page size:" }),
25002
+ /* @__PURE__ */ (0, import_jsx_runtime194.jsx)("div", { className: "w_78px", children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(SelectField, { compact: true, label: "Page Size", labelStyle: "hidden", options: pageOptions, value: pageSize, onSelect: (val) => set({
24949
25003
  pageNumber: 1,
24950
25004
  pageSize: val
24951
25005
  }), autoSort: false, ...tid.pageSize }) }),
24952
- /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("div", { className: "mla mta mba df", children: [
24953
- /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("div", { className: "df mta mba mr2", ...tid.pageInfoLabel, children: [
25006
+ /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)("div", { className: "mla mta mba df", children: [
25007
+ /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)("div", { className: "df mta mba mr2", ...tid.pageInfoLabel, children: [
24954
25008
  first,
24955
25009
  " ",
24956
25010
  showLast ? `- ${last}` : "",
24957
25011
  " of ",
24958
25012
  totalCount
24959
25013
  ] }),
24960
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(IconButton, { icon: "chevronLeft", color: hasPrevPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
25014
+ /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(IconButton, { icon: "chevronLeft", color: hasPrevPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
24961
25015
  pageNumber: pageNumber - 1,
24962
25016
  pageSize
24963
25017
  }), disabled: !hasPrevPage, ...tid.previousIcon }),
24964
- /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(IconButton, { icon: "chevronRight", color: hasNextPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
25018
+ /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(IconButton, { icon: "chevronRight", color: hasNextPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
24965
25019
  pageNumber: pageNumber + 1,
24966
25020
  pageSize
24967
25021
  }), disabled: !hasNextPage, ...tid.nextIcon })
@@ -24983,10 +25037,10 @@ function toPageNumberSize(page) {
24983
25037
  }
24984
25038
 
24985
25039
  // src/components/ScrollShadows.tsx
24986
- var import_utils159 = require("@react-aria/utils");
25040
+ var import_utils161 = require("@react-aria/utils");
24987
25041
  var import_react139 = require("react");
24988
- var import_runtime119 = require("@homebound/truss/runtime");
24989
- var import_jsx_runtime193 = require("react/jsx-runtime");
25042
+ var import_runtime120 = require("@homebound/truss/runtime");
25043
+ var import_jsx_runtime195 = require("react/jsx-runtime");
24990
25044
  function ScrollShadows(props) {
24991
25045
  const {
24992
25046
  children,
@@ -25010,7 +25064,7 @@ function ScrollShadows(props) {
25010
25064
  const commonStyles = {
25011
25065
  position: "absolute",
25012
25066
  zIndex: ["z_var", {
25013
- "--zIndex": (0, import_runtime119.maybeCssVar)(zIndices.scrollShadow)
25067
+ "--zIndex": (0, import_runtime120.maybeCssVar)(zIndices.scrollShadow)
25014
25068
  }],
25015
25069
  pointerEvents: "pointerEvents_none"
25016
25070
  };
@@ -25043,7 +25097,7 @@ function ScrollShadows(props) {
25043
25097
  ...startShadowStyles2,
25044
25098
  ...{
25045
25099
  background: ["background_var", {
25046
- "--background": (0, import_runtime119.maybeCssVar)(startGradient)
25100
+ "--background": (0, import_runtime120.maybeCssVar)(startGradient)
25047
25101
  }]
25048
25102
  }
25049
25103
  }, {
@@ -25051,7 +25105,7 @@ function ScrollShadows(props) {
25051
25105
  ...endShadowStyles2,
25052
25106
  ...{
25053
25107
  background: ["background_var", {
25054
- "--background": (0, import_runtime119.maybeCssVar)(endGradient)
25108
+ "--background": (0, import_runtime120.maybeCssVar)(endGradient)
25055
25109
  }]
25056
25110
  }
25057
25111
  }];
@@ -25072,14 +25126,14 @@ function ScrollShadows(props) {
25072
25126
  setShowEndShadow(start + boxSize < end);
25073
25127
  }, [horizontal]);
25074
25128
  const onResize = (0, import_react139.useCallback)(() => scrollRef.current && updateScrollProps(scrollRef.current), [updateScrollProps]);
25075
- (0, import_utils159.useResizeObserver)({
25129
+ (0, import_utils161.useResizeObserver)({
25076
25130
  ref: scrollRef,
25077
25131
  onResize
25078
25132
  });
25079
- return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { ...(0, import_runtime119.trussProps)({
25133
+ return /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)("div", { ...(0, import_runtime120.trussProps)({
25080
25134
  display: "df",
25081
25135
  flexDirection: ["fd_var", {
25082
- "--flexDirection": (0, import_runtime119.maybeCssVar)(!horizontal ? "column" : "row")
25136
+ "--flexDirection": (0, import_runtime120.maybeCssVar)(!horizontal ? "column" : "row")
25083
25137
  }],
25084
25138
  position: "relative",
25085
25139
  overflow: "oh",
@@ -25092,23 +25146,23 @@ function ScrollShadows(props) {
25092
25146
  width: width2
25093
25147
  }
25094
25148
  }), ...tid, children: [
25095
- /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0, import_runtime119.trussProps)({
25149
+ /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
25096
25150
  ...startShadowStyles,
25097
25151
  ...{
25098
25152
  opacity: ["o_var", {
25099
- "--opacity": (0, import_runtime119.maybeCssVar)(showStartShadow ? 1 : 0)
25153
+ "--opacity": (0, import_runtime120.maybeCssVar)(showStartShadow ? 1 : 0)
25100
25154
  }]
25101
25155
  }
25102
25156
  }), "data-chromatic": "ignore" }),
25103
- /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0, import_runtime119.trussProps)({
25157
+ /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
25104
25158
  ...endShadowStyles,
25105
25159
  ...{
25106
25160
  opacity: ["o_var", {
25107
- "--opacity": (0, import_runtime119.maybeCssVar)(showEndShadow ? 1 : 0)
25161
+ "--opacity": (0, import_runtime120.maybeCssVar)(showEndShadow ? 1 : 0)
25108
25162
  }]
25109
25163
  }
25110
25164
  }), "data-chromatic": "ignore" }),
25111
- /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0, import_runtime119.trussProps)({
25165
+ /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
25112
25166
  ...xss,
25113
25167
  ...{
25114
25168
  overflow: "oa",
@@ -25121,7 +25175,7 @@ function ScrollShadows(props) {
25121
25175
 
25122
25176
  // src/layouts/SideNavLayout/SideNavLayoutContext.tsx
25123
25177
  var import_react140 = require("react");
25124
- var import_jsx_runtime194 = require("react/jsx-runtime");
25178
+ var import_jsx_runtime196 = require("react/jsx-runtime");
25125
25179
  var SIDE_NAV_LAYOUT_STATE_STORAGE_KEY = "beam.sideNavLayout.navState";
25126
25180
  function loadStoredNavState() {
25127
25181
  try {
@@ -25169,7 +25223,7 @@ function SideNavLayoutProvider(props) {
25169
25223
  });
25170
25224
  }, []);
25171
25225
  const value = (0, import_react140.useMemo)(() => ({ navState, setNavState }), [navState, setNavState]);
25172
- return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(SideNavLayoutContext.Provider, { value, children: props.children });
25226
+ return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(SideNavLayoutContext.Provider, { value, children: props.children });
25173
25227
  }
25174
25228
  function useSideNavLayoutContext() {
25175
25229
  return (0, import_react140.useContext)(SideNavLayoutContext) ?? { navState: "expanded", setNavState: () => {
@@ -25180,8 +25234,8 @@ function useHasSideNavLayoutProvider() {
25180
25234
  }
25181
25235
 
25182
25236
  // src/components/SideNav/SideNav.tsx
25183
- var import_runtime120 = require("@homebound/truss/runtime");
25184
- var import_jsx_runtime195 = require("react/jsx-runtime");
25237
+ var import_runtime121 = require("@homebound/truss/runtime");
25238
+ var import_jsx_runtime197 = require("react/jsx-runtime");
25185
25239
  function SideNav(props) {
25186
25240
  const {
25187
25241
  top,
@@ -25194,8 +25248,8 @@ function SideNav(props) {
25194
25248
  const tid = useTestIds(props, "sideNav");
25195
25249
  const panelCollapsed = navState === "collapse";
25196
25250
  const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
25197
- return /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)("nav", { className: "df fdc h100 fs0", ...tid, children: [
25198
- top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
25251
+ return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)("nav", { className: "df fdc h100 fs0", ...tid, children: [
25252
+ top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("div", { ...(0, import_runtime121.trussProps)({
25199
25253
  flexShrink: "fs0",
25200
25254
  paddingLeft: "pl2",
25201
25255
  paddingRight: "pr2",
@@ -25206,7 +25260,7 @@ function SideNav(props) {
25206
25260
  paddingBottom: "pb4"
25207
25261
  } : {}
25208
25262
  }), ...tid.top, children: top }),
25209
- /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
25263
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("div", { ...(0, import_runtime121.trussProps)({
25210
25264
  flexGrow: "fg1",
25211
25265
  overflowY: "oya",
25212
25266
  display: "df",
@@ -25218,8 +25272,8 @@ function SideNav(props) {
25218
25272
  ...top === void 0 ? {
25219
25273
  paddingTop: "pt5"
25220
25274
  } : {}
25221
- }), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(AppNavItems, { items, panelCollapsed }) }),
25222
- footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
25275
+ }), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(AppNavItems, { items, panelCollapsed }) }),
25276
+ footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("div", { ...(0, import_runtime121.trussProps)({
25223
25277
  flexShrink: "fs0",
25224
25278
  paddingLeft: "pl2",
25225
25279
  paddingRight: "pr2",
@@ -25296,8 +25350,8 @@ var snackbarId = 1;
25296
25350
  // src/components/Stepper.tsx
25297
25351
  var import_react142 = require("react");
25298
25352
  var import_react_aria62 = require("react-aria");
25299
- var import_runtime121 = require("@homebound/truss/runtime");
25300
- var import_jsx_runtime196 = require("react/jsx-runtime");
25353
+ var import_runtime122 = require("@homebound/truss/runtime");
25354
+ var import_jsx_runtime198 = require("react/jsx-runtime");
25301
25355
  var import_react143 = require("react");
25302
25356
  var __maybeInc22 = (inc) => {
25303
25357
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -25316,8 +25370,8 @@ function Stepper(props) {
25316
25370
  const maxStepWidth = 200;
25317
25371
  const minStepWidth = 100;
25318
25372
  const gap = 8;
25319
- return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
25320
- /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("ol", { ...(0, import_runtime121.trussProps)({
25373
+ return /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
25374
+ /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("ol", { ...(0, import_runtime122.trussProps)({
25321
25375
  padding: "p_0",
25322
25376
  margin: "m_0",
25323
25377
  listStyle: "lis_none",
@@ -25327,7 +25381,7 @@ function Stepper(props) {
25327
25381
  }]
25328
25382
  }), children: steps.map((step) => {
25329
25383
  const isCurrent = currentStep === step.value;
25330
- return /* @__PURE__ */ (0, import_react143.createElement)("li", { ...(0, import_runtime121.trussProps)({
25384
+ return /* @__PURE__ */ (0, import_react143.createElement)("li", { ...(0, import_runtime122.trussProps)({
25331
25385
  display: "df",
25332
25386
  flexGrow: "fg1",
25333
25387
  flexDirection: "fdc",
@@ -25337,9 +25391,9 @@ function Stepper(props) {
25337
25391
  minWidth: ["mw_var", {
25338
25392
  "--minWidth": `${minStepWidth}px`
25339
25393
  }]
25340
- }), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
25394
+ }), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
25341
25395
  }) }),
25342
- /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...(0, import_runtime121.trussProps)({
25396
+ /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("div", { ...(0, import_runtime122.trussProps)({
25343
25397
  marginTop: "mt1",
25344
25398
  backgroundColor: ["bgColor_var", {
25345
25399
  "--backgroundColor": "var(--b-field-border-default)"
@@ -25352,14 +25406,14 @@ function Stepper(props) {
25352
25406
  "--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
25353
25407
  }],
25354
25408
  width: "w100"
25355
- }), children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...(0, import_runtime121.trussProps)({
25409
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("div", { ...(0, import_runtime122.trussProps)({
25356
25410
  backgroundColor: ["bgColor_var", {
25357
25411
  "--backgroundColor": "var(--b-primary)"
25358
25412
  }],
25359
25413
  transition: "transition_width_200ms",
25360
25414
  height: "h100",
25361
25415
  width: ["w_var", {
25362
- "--width": (0, import_runtime121.maybeCssVar)(__maybeInc22(`${(lastCompletedStep + 1) / steps.length * 100}%`))
25416
+ "--width": (0, import_runtime122.maybeCssVar)(__maybeInc22(`${(lastCompletedStep + 1) / steps.length * 100}%`))
25363
25417
  }]
25364
25418
  }) }) })
25365
25419
  ] });
@@ -25395,7 +25449,7 @@ function StepButton(props) {
25395
25449
  boxShadow: "bshFocus"
25396
25450
  };
25397
25451
  const tid = useTestIds(props, "stepButton");
25398
- return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime121.trussProps)({
25452
+ return /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime122.trussProps)({
25399
25453
  ...{
25400
25454
  fontWeight: "fw6",
25401
25455
  fontSize: "fz_14px",
@@ -25456,7 +25510,7 @@ function StepButton(props) {
25456
25510
  } : {},
25457
25511
  ...isFocusVisible ? focusRingStyles2 : {}
25458
25512
  }), ...tid[defaultTestId(label)], children: [
25459
- /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
25513
+ /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
25460
25514
  label
25461
25515
  ] });
25462
25516
  }
@@ -25467,12 +25521,12 @@ function StepIcon({
25467
25521
  isCurrent = false
25468
25522
  }) {
25469
25523
  if (state === "error") {
25470
- return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(Icon, { icon: "errorCircle" });
25524
+ return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(Icon, { icon: "errorCircle" });
25471
25525
  }
25472
25526
  if (state === "complete") {
25473
- return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(Icon, { icon: "check" });
25527
+ return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(Icon, { icon: "check" });
25474
25528
  }
25475
- return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...(0, import_runtime121.trussProps)({
25529
+ return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("div", { ...(0, import_runtime122.trussProps)({
25476
25530
  width: "w_10px",
25477
25531
  height: "h_10px",
25478
25532
  borderStyle: "bss",
@@ -25488,8 +25542,8 @@ function StepIcon({
25488
25542
  // src/components/StepperTabs/StepperTab.tsx
25489
25543
  var import_react144 = require("react");
25490
25544
  var import_react_aria63 = require("react-aria");
25491
- var import_runtime122 = require("@homebound/truss/runtime");
25492
- var import_jsx_runtime197 = require("react/jsx-runtime");
25545
+ var import_runtime123 = require("@homebound/truss/runtime");
25546
+ var import_jsx_runtime199 = require("react/jsx-runtime");
25493
25547
  function StepperTab(props) {
25494
25548
  const {
25495
25549
  label,
@@ -25520,7 +25574,7 @@ function StepperTab(props) {
25520
25574
  const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
25521
25575
  const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
25522
25576
  const tid = useTestIds(props, "stepperTab");
25523
- return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)("button", { ref, ...(0, import_react_aria63.mergeProps)(buttonProps, focusProps, hoverProps), "aria-label": label, ...(0, import_runtime122.trussProps)({
25577
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)("button", { ref, ...(0, import_react_aria63.mergeProps)(buttonProps, focusProps, hoverProps), "aria-label": label, ...(0, import_runtime123.trussProps)({
25524
25578
  ...stepperTabStyles.baseStyles,
25525
25579
  ...getStateStyles(active, completed),
25526
25580
  ...isHovered && !disabled ? stepperTabStyles.hoverStyles : {},
@@ -25528,9 +25582,9 @@ function StepperTab(props) {
25528
25582
  ...disabled ? stepperTabStyles.disabledStyles : {},
25529
25583
  ...isFocusVisible ? stepperTabStyles.focusRingStyles : {}
25530
25584
  }), ...tid[defaultTestId(value)], children: [
25531
- /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_1", children: label }),
25532
- completed && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("span", { className: "fs0 ml1", children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(Icon, { icon: "check", inc: 2.5, ...tid.check }) }),
25533
- /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(import_react_aria63.VisuallyHidden, { children: completed ? "Complete" : "Not Complete" })
25585
+ /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_1", children: label }),
25586
+ completed && /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("span", { className: "fs0 ml1", children: /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(Icon, { icon: "check", inc: 2.5, ...tid.check }) }),
25587
+ /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(import_react_aria63.VisuallyHidden, { children: completed ? "Complete" : "Not Complete" })
25534
25588
  ] });
25535
25589
  }
25536
25590
  function withBorderBottom(color) {
@@ -25538,7 +25592,7 @@ function withBorderBottom(color) {
25538
25592
  ...{
25539
25593
  borderBottomStyle: "bbs_solid",
25540
25594
  borderBottomWidth: ["borderBottomWidth_var", {
25541
- "--borderBottomWidth": (0, import_runtime122.maybeCssVar)(`3px`)
25595
+ "--borderBottomWidth": (0, import_runtime123.maybeCssVar)(`3px`)
25542
25596
  }]
25543
25597
  },
25544
25598
  ...color
@@ -25612,8 +25666,8 @@ var stepperTabStyles = {
25612
25666
  };
25613
25667
 
25614
25668
  // src/components/StepperTabs/StepperTabs.tsx
25615
- var import_runtime123 = require("@homebound/truss/runtime");
25616
- var import_jsx_runtime198 = require("react/jsx-runtime");
25669
+ var import_runtime124 = require("@homebound/truss/runtime");
25670
+ var import_jsx_runtime200 = require("react/jsx-runtime");
25617
25671
  var import_react145 = require("react");
25618
25672
  function StepperTabs(props) {
25619
25673
  const {
@@ -25628,7 +25682,7 @@ function StepperTabs(props) {
25628
25682
  } = useBreakpoint();
25629
25683
  const collapsed = isMobile || !!forceCollapsed;
25630
25684
  const capWidth = steps.length <= 3;
25631
- return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("ol", { ...(0, import_runtime123.trussProps)({
25685
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("ol", { ...(0, import_runtime124.trussProps)({
25632
25686
  padding: "p_0",
25633
25687
  margin: "m_0",
25634
25688
  listStyle: "lis_none",
@@ -25642,7 +25696,7 @@ function StepperTabs(props) {
25642
25696
  borderColor: "bcGray400"
25643
25697
  }), children: steps.map((step) => {
25644
25698
  const isCurrent = step.value === currentStep;
25645
- return /* @__PURE__ */ (0, import_react145.createElement)("li", { ...(0, import_runtime123.trussProps)({
25699
+ return /* @__PURE__ */ (0, import_react145.createElement)("li", { ...(0, import_runtime124.trussProps)({
25646
25700
  display: "df",
25647
25701
  flexGrow: "fg1",
25648
25702
  flexBasis: "fb_0",
@@ -25654,7 +25708,7 @@ function StepperTabs(props) {
25654
25708
  "--maxWidth": `${maxStepWidthPx}px`
25655
25709
  }]
25656
25710
  } : {}
25657
- }), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(StepperTab, { label: step.label, value: step.value, active: isCurrent, completed: step.completed, disabled: step.disabled, collapsed, onClick: onChange, ...tid.tab }));
25711
+ }), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(StepperTab, { label: step.label, value: step.value, active: isCurrent, completed: step.completed, disabled: step.disabled, collapsed, onClick: onChange, ...tid.tab }));
25658
25712
  }) }) });
25659
25713
  }
25660
25714
  var maxStepWidthPx = 280;
@@ -25662,8 +25716,8 @@ var gapPx = 6;
25662
25716
 
25663
25717
  // src/components/SuperDrawer/components/SuperDrawerHeader.tsx
25664
25718
  var import_react_dom7 = require("react-dom");
25665
- var import_runtime124 = require("@homebound/truss/runtime");
25666
- var import_jsx_runtime199 = require("react/jsx-runtime");
25719
+ var import_runtime125 = require("@homebound/truss/runtime");
25720
+ var import_jsx_runtime201 = require("react/jsx-runtime");
25667
25721
  function SuperDrawerHeader(props) {
25668
25722
  const {
25669
25723
  hideControls
@@ -25680,20 +25734,20 @@ function SuperDrawerHeader(props) {
25680
25734
  const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
25681
25735
  const isDetail = currentContent !== firstContent;
25682
25736
  const tid = useTestIds({}, "superDrawerHeader");
25683
- return (0, import_react_dom7.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime199.jsxs)("div", { className: "df aic jcsb gap3", ...tid, children: [
25684
- isStructuredProps(props) ? /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)("div", { className: "df jcsb aic gap2 fg1", children: [
25685
- /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)("div", { className: "fg1 df aic gap2", children: [
25686
- /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
25737
+ return (0, import_react_dom7.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { className: "df aic jcsb gap3", ...tid, children: [
25738
+ isStructuredProps(props) ? /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { className: "df jcsb aic gap2 fg1", children: [
25739
+ /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { className: "fg1 df aic gap2", children: [
25740
+ /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
25687
25741
  props.left
25688
25742
  ] }),
25689
- props.right && /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("div", { className: "fs0", children: props.right })
25690
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("div", { className: "fg1", children: props.children }),
25691
- !hideControls && /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("div", { ...(0, import_runtime124.trussProps)({
25743
+ props.right && /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { className: "fs0", children: props.right })
25744
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { className: "fg1", children: props.children }),
25745
+ !hideControls && /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { ...(0, import_runtime125.trussProps)({
25692
25746
  flexShrink: "fs0",
25693
25747
  ...isDetail ? {
25694
25748
  visibility: "vh"
25695
25749
  } : {}
25696
- }), children: /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(ButtonGroup, { buttons: [{
25750
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(ButtonGroup, { buttons: [{
25697
25751
  icon: "chevronLeft",
25698
25752
  onClick: () => onPrevClick && onPrevClick(),
25699
25753
  disabled: !onPrevClick
@@ -25709,18 +25763,18 @@ function isStructuredProps(props) {
25709
25763
  }
25710
25764
 
25711
25765
  // src/components/SuperDrawer/ConfirmCloseModal.tsx
25712
- var import_jsx_runtime200 = require("react/jsx-runtime");
25766
+ var import_jsx_runtime202 = require("react/jsx-runtime");
25713
25767
  function ConfirmCloseModal(props) {
25714
25768
  const { onClose, discardText = "Discard Changes", continueText = "Continue Editing" } = props;
25715
25769
  const { modalState } = useBeamContext();
25716
25770
  function closeModal() {
25717
25771
  modalState.current = void 0;
25718
25772
  }
25719
- return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(import_jsx_runtime200.Fragment, { children: [
25720
- /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(ModalHeader, { children: "Are you sure you want to cancel?" }),
25721
- /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(ModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("p", { children: "Any changes you've made so far will be lost." }) }),
25722
- /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(ModalFooter, { children: [
25723
- /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
25773
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(import_jsx_runtime202.Fragment, { children: [
25774
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(ModalHeader, { children: "Are you sure you want to cancel?" }),
25775
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(ModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("p", { children: "Any changes you've made so far will be lost." }) }),
25776
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(ModalFooter, { children: [
25777
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
25724
25778
  Button,
25725
25779
  {
25726
25780
  variant: "quaternary",
@@ -25731,7 +25785,7 @@ function ConfirmCloseModal(props) {
25731
25785
  }
25732
25786
  }
25733
25787
  ),
25734
- /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(Button, { label: continueText, onClick: closeModal })
25788
+ /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button, { label: continueText, onClick: closeModal })
25735
25789
  ] })
25736
25790
  ] });
25737
25791
  }
@@ -25741,7 +25795,7 @@ var import_framer_motion6 = require("framer-motion");
25741
25795
 
25742
25796
  // src/components/SuperDrawer/useSuperDrawer.tsx
25743
25797
  var import_react146 = require("react");
25744
- var import_jsx_runtime201 = require("react/jsx-runtime");
25798
+ var import_jsx_runtime203 = require("react/jsx-runtime");
25745
25799
  function useSuperDrawer() {
25746
25800
  const {
25747
25801
  drawerContentStack: contentStack,
@@ -25753,7 +25807,7 @@ function useSuperDrawer() {
25753
25807
  function canCloseDrawerDetails(i, doChange) {
25754
25808
  for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
25755
25809
  if (!canClose(canCloseDrawerDetail)) {
25756
- openModal({ content: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
25810
+ openModal({ content: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
25757
25811
  return false;
25758
25812
  }
25759
25813
  }
@@ -25773,7 +25827,7 @@ function useSuperDrawer() {
25773
25827
  for (const canCloseDrawer of canCloseChecks.current) {
25774
25828
  if (!canClose(canCloseDrawer)) {
25775
25829
  openModal({
25776
- content: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
25830
+ content: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
25777
25831
  });
25778
25832
  return;
25779
25833
  }
@@ -25868,8 +25922,8 @@ function canClose(canCloseCheck) {
25868
25922
  }
25869
25923
 
25870
25924
  // src/components/SuperDrawer/SuperDrawerContent.tsx
25871
- var import_runtime125 = require("@homebound/truss/runtime");
25872
- var import_jsx_runtime202 = require("react/jsx-runtime");
25925
+ var import_runtime126 = require("@homebound/truss/runtime");
25926
+ var import_jsx_runtime204 = require("react/jsx-runtime");
25873
25927
  var SuperDrawerContent = ({
25874
25928
  children,
25875
25929
  actions
@@ -25889,17 +25943,17 @@ var SuperDrawerContent = ({
25889
25943
  } = firstContent ?? {};
25890
25944
  function wrapWithMotionAndMaybeBack(children2) {
25891
25945
  if (kind === "open") {
25892
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(import_framer_motion6.motion.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
25946
+ return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_framer_motion6.motion.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
25893
25947
  } else if (kind === "detail") {
25894
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(import_framer_motion6.motion.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
25948
+ return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(import_framer_motion6.motion.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
25895
25949
  overflow: "auto"
25896
25950
  }, transition: {
25897
25951
  overflow: {
25898
25952
  delay: 0.3
25899
25953
  }
25900
25954
  }, children: [
25901
- /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
25902
- /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(import_framer_motion6.motion.div, { initial: {
25955
+ /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
25956
+ /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_framer_motion6.motion.div, { initial: {
25903
25957
  x: width2,
25904
25958
  opacity: 0
25905
25959
  }, animate: {
@@ -25917,7 +25971,7 @@ var SuperDrawerContent = ({
25917
25971
  }, className: "pt2", children: children2 })
25918
25972
  ] }, "content");
25919
25973
  } else {
25920
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(import_framer_motion6.motion.div, { ...(0, import_runtime125.mergeProps)(void 0, {
25974
+ return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_framer_motion6.motion.div, { ...(0, import_runtime126.mergeProps)(void 0, {
25921
25975
  overflow: "auto"
25922
25976
  }, {
25923
25977
  paddingTop: "pt3",
@@ -25928,9 +25982,9 @@ var SuperDrawerContent = ({
25928
25982
  }) }, "content");
25929
25983
  }
25930
25984
  }
25931
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(import_jsx_runtime202.Fragment, { children: [
25985
+ return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(import_jsx_runtime204.Fragment, { children: [
25932
25986
  wrapWithMotionAndMaybeBack(children),
25933
- actions && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("footer", { ...(0, import_runtime125.trussProps)({
25987
+ actions && /* @__PURE__ */ (0, import_jsx_runtime204.jsx)("footer", { ...(0, import_runtime126.trussProps)({
25934
25988
  borderTopStyle: "bts_solid",
25935
25989
  borderTopWidth: "btw_1px",
25936
25990
  borderColor: ["bc_var", {
@@ -25943,7 +25997,7 @@ var SuperDrawerContent = ({
25943
25997
  display: "df",
25944
25998
  alignItems: "aic",
25945
25999
  justifyContent: "jcfe"
25946
- }), children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button, { ...buttonProps }, i)) }) })
26000
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Button, { ...buttonProps }, i)) }) })
25947
26001
  ] });
25948
26002
  };
25949
26003
 
@@ -25991,15 +26045,15 @@ var import_react147 = require("react");
25991
26045
  var import_react_aria64 = require("react-aria");
25992
26046
  var import_react_router = require("react-router");
25993
26047
  var import_react_router_dom8 = require("react-router-dom");
25994
- var import_runtime126 = require("@homebound/truss/runtime");
25995
- var import_jsx_runtime203 = require("react/jsx-runtime");
26048
+ var import_runtime127 = require("@homebound/truss/runtime");
26049
+ var import_jsx_runtime205 = require("react/jsx-runtime");
25996
26050
  function TabsWithContent(props) {
25997
26051
  const styles = hideTabs(props) ? {} : {
25998
26052
  paddingTop: "pt3"
25999
26053
  };
26000
- return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(import_jsx_runtime203.Fragment, { children: [
26001
- /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(Tabs, { ...props }),
26002
- /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(TabContent, { ...props, contentXss: {
26054
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(import_jsx_runtime205.Fragment, { children: [
26055
+ /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Tabs, { ...props }),
26056
+ /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(TabContent, { ...props, contentXss: {
26003
26057
  ...styles,
26004
26058
  ...props.contentXss
26005
26059
  } })
@@ -26024,7 +26078,7 @@ function TabContent(props) {
26024
26078
  return (
26025
26079
  // Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
26026
26080
  // Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
26027
- /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0, import_runtime126.trussProps)(contentXss), children: selectedTab.render() }) })
26081
+ /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0, import_runtime127.trussProps)(contentXss), children: selectedTab.render() }) })
26028
26082
  );
26029
26083
  }
26030
26084
  function Tabs(props) {
@@ -26066,7 +26120,7 @@ function Tabs(props) {
26066
26120
  setActive(selected);
26067
26121
  }
26068
26122
  }
26069
- return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)("div", { ...(0, import_runtime126.trussProps)({
26123
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { ...(0, import_runtime127.trussProps)({
26070
26124
  ...{
26071
26125
  display: "df",
26072
26126
  alignItems: "aic",
@@ -26084,11 +26138,11 @@ function Tabs(props) {
26084
26138
  }
26085
26139
  } : {}
26086
26140
  }), children: [
26087
- !hideTabs(props) && /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
26141
+ !hideTabs(props) && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
26088
26142
  const uniqueValue = uniqueTabValue(tab);
26089
- return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
26143
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
26090
26144
  }) }),
26091
- right && /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { className: "mla df aic gap1 pb1", children: right })
26145
+ right && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { className: "mla df aic gap1 pb1", children: right })
26092
26146
  ] });
26093
26147
  }
26094
26148
  function TabImpl(props) {
@@ -26132,7 +26186,7 @@ function TabImpl(props) {
26132
26186
  role: "tab",
26133
26187
  tabIndex: active ? 0 : -1,
26134
26188
  ...others,
26135
- ...(0, import_runtime126.trussProps)({
26189
+ ...(0, import_runtime127.trussProps)({
26136
26190
  ...baseStyles4,
26137
26191
  ...active && activeStyles3,
26138
26192
  ...isDisabled && disabledStyles3,
@@ -26148,17 +26202,17 @@ function TabImpl(props) {
26148
26202
  onClick: () => onClick(tab.value)
26149
26203
  }
26150
26204
  });
26151
- const tabLabel = /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(import_jsx_runtime203.Fragment, { children: [
26205
+ const tabLabel = /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(import_jsx_runtime205.Fragment, { children: [
26152
26206
  label,
26153
- (icon || endAdornment) && /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("span", { className: "ml1", children: icon ? /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(Icon, { icon }) : endAdornment })
26207
+ (icon || endAdornment) && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("span", { className: "ml1", children: icon ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Icon, { icon }) : endAdornment })
26154
26208
  ] });
26155
26209
  return isDisabled ? maybeTooltip({
26156
26210
  title: resolveTooltip(disabled),
26157
26211
  placement: "top",
26158
- children: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { ...tabProps, children: tabLabel })
26159
- }) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(import_react_router_dom8.Link, { ...(0, import_react_aria64.mergeProps)(tabProps, interactiveProps, {
26212
+ children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { ...tabProps, children: tabLabel })
26213
+ }) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(import_react_router_dom8.Link, { ...(0, import_react_aria64.mergeProps)(tabProps, interactiveProps, {
26160
26214
  className: "navLink"
26161
- }), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("button", { ...{
26215
+ }), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("button", { ...{
26162
26216
  ...tabProps,
26163
26217
  ...interactiveProps
26164
26218
  }, children: tabLabel });
@@ -26169,7 +26223,7 @@ function getTabStyles() {
26169
26223
  const borderBottomStyles = {
26170
26224
  borderBottomStyle: "bbs_solid",
26171
26225
  borderBottomWidth: ["borderBottomWidth_var", {
26172
- "--borderBottomWidth": (0, import_runtime126.maybeCssVar)(`${borderBottomWidthPx}px`)
26226
+ "--borderBottomWidth": (0, import_runtime127.maybeCssVar)(`${borderBottomWidthPx}px`)
26173
26227
  }],
26174
26228
  paddingBottom: ["pb_var", {
26175
26229
  "--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
@@ -26266,7 +26320,7 @@ function hideTabs(props) {
26266
26320
  }
26267
26321
 
26268
26322
  // src/components/TagGroup.tsx
26269
- var import_jsx_runtime204 = require("react/jsx-runtime");
26323
+ var import_jsx_runtime206 = require("react/jsx-runtime");
26270
26324
  function TagGroup(props) {
26271
26325
  const {
26272
26326
  tags,
@@ -26274,9 +26328,9 @@ function TagGroup(props) {
26274
26328
  ...otherProps
26275
26329
  } = props;
26276
26330
  const tid = useTestIds(otherProps, "tagGroup");
26277
- return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)("div", { ...tid, className: "df aic fww gap1", children: [
26278
- tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Tag, { ...tag, variant: "secondary" }, tag.text)),
26279
- onEdit && /* @__PURE__ */ (0, import_jsx_runtime204.jsx)("span", { className: "ml1 fw4 fz_14px lh_20px", children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Button, { label: "Edit", variant: "text", onClick: onEdit, ...tid.edit }) })
26331
+ return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { ...tid, className: "df aic fww gap1", children: [
26332
+ tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(Tag, { ...tag, variant: "secondary" }, tag.text)),
26333
+ onEdit && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("span", { className: "ml1 fw4 fz_14px lh_20px", children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(Button, { label: "Edit", variant: "text", onClick: onEdit, ...tid.edit }) })
26280
26334
  ] });
26281
26335
  }
26282
26336
 
@@ -26289,15 +26343,15 @@ function useToast() {
26289
26343
  }
26290
26344
 
26291
26345
  // src/layouts/SideNavLayout/SideNavLayout.tsx
26292
- var import_runtime127 = require("@homebound/truss/runtime");
26293
- var import_jsx_runtime205 = require("react/jsx-runtime");
26346
+ var import_runtime128 = require("@homebound/truss/runtime");
26347
+ var import_jsx_runtime207 = require("react/jsx-runtime");
26294
26348
  var __maybeInc23 = (inc) => {
26295
26349
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
26296
26350
  };
26297
26351
  function SideNavLayout(props) {
26298
26352
  const hasProvider = useHasSideNavLayoutProvider();
26299
- if (hasProvider) return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(SideNavLayoutContent, { ...props });
26300
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(SideNavLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(SideNavLayoutContent, { ...props }) });
26353
+ if (hasProvider) return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(SideNavLayoutContent, { ...props });
26354
+ return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(SideNavLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(SideNavLayoutContent, { ...props }) });
26301
26355
  }
26302
26356
  function SideNavLayoutContent(props) {
26303
26357
  const {
@@ -26319,7 +26373,7 @@ function SideNavLayoutContent(props) {
26319
26373
  const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
26320
26374
  const navTop = bannerAndNavbarChromeTop();
26321
26375
  const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
26322
- const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { ...(0, import_runtime127.trussProps)({
26376
+ const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { ...(0, import_runtime128.trussProps)({
26323
26377
  ...{
26324
26378
  display: "df",
26325
26379
  flexDirection: "fdc",
@@ -26343,14 +26397,14 @@ function SideNavLayoutContent(props) {
26343
26397
  position: "sticky",
26344
26398
  left: "left0",
26345
26399
  zIndex: ["z_var", {
26346
- "--zIndex": (0, import_runtime127.maybeCssVar)(zIndices.sideNav)
26400
+ "--zIndex": (0, import_runtime128.maybeCssVar)(zIndices.sideNav)
26347
26401
  }],
26348
26402
  top: ["top_var", {
26349
- "--top": (0, import_runtime127.maybeCssVar)(__maybeInc23(navTop))
26403
+ "--top": (0, import_runtime128.maybeCssVar)(__maybeInc23(navTop))
26350
26404
  }],
26351
26405
  alignSelf: "asfs",
26352
26406
  height: ["h_var", {
26353
- "--height": (0, import_runtime127.maybeCssVar)(__maybeInc23(railViewportHeight))
26407
+ "--height": (0, import_runtime128.maybeCssVar)(__maybeInc23(railViewportHeight))
26354
26408
  }],
26355
26409
  width: ["w_var", {
26356
26410
  "--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
@@ -26360,11 +26414,11 @@ function SideNavLayoutContent(props) {
26360
26414
  position: "fixed",
26361
26415
  left: "left0",
26362
26416
  top: ["top_var", {
26363
- "--top": (0, import_runtime127.maybeCssVar)(__maybeInc23(navTop))
26417
+ "--top": (0, import_runtime128.maybeCssVar)(__maybeInc23(navTop))
26364
26418
  }],
26365
26419
  bottom: "bottom0",
26366
26420
  zIndex: ["z_var", {
26367
- "--zIndex": (0, import_runtime127.maybeCssVar)(zIndices.sideNav)
26421
+ "--zIndex": (0, import_runtime128.maybeCssVar)(zIndices.sideNav)
26368
26422
  }]
26369
26423
  },
26370
26424
  ...collapsed ? {
@@ -26376,18 +26430,18 @@ function SideNavLayoutContent(props) {
26376
26430
  }
26377
26431
  }
26378
26432
  }), ...tid.sideNav, children: [
26379
- showCollapseToggle && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
26380
- /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(SideNav, { ...sideNav }) })
26433
+ showCollapseToggle && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
26434
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(SideNav, { ...sideNav }) })
26381
26435
  ] });
26382
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { ...(0, import_runtime127.mergeProps)(void 0, {
26436
+ return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { ...(0, import_runtime128.mergeProps)(void 0, {
26383
26437
  [beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
26384
26438
  }, {
26385
26439
  display: "df",
26386
26440
  flexDirection: "fdr",
26387
26441
  width: "w100"
26388
26442
  }), ...tid, children: [
26389
- contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(ContrastScope, { children: rail }) : rail,
26390
- /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { ...(0, import_runtime127.trussProps)({
26443
+ contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(ContrastScope, { children: rail }) : rail,
26444
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { ...(0, import_runtime128.trussProps)({
26391
26445
  display: "df",
26392
26446
  flexDirection: "fdc",
26393
26447
  flexGrow: "fg1",
@@ -26403,8 +26457,8 @@ function SideNavLayoutContent(props) {
26403
26457
  }
26404
26458
 
26405
26459
  // src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
26406
- var import_runtime128 = require("@homebound/truss/runtime");
26407
- var import_jsx_runtime206 = require("react/jsx-runtime");
26460
+ var import_runtime129 = require("@homebound/truss/runtime");
26461
+ var import_jsx_runtime208 = require("react/jsx-runtime");
26408
26462
  var __maybeInc24 = (inc) => {
26409
26463
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
26410
26464
  };
@@ -26420,35 +26474,35 @@ function EnvironmentBannerLayout(props) {
26420
26474
  [beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
26421
26475
  };
26422
26476
  const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
26423
- return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { ...(0, import_runtime128.mergeProps)(void 0, style, {
26477
+ return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)("div", { ...(0, import_runtime129.mergeProps)(void 0, style, {
26424
26478
  display: "df",
26425
26479
  flexDirection: "fdc",
26426
26480
  width: "wfc",
26427
26481
  minWidth: "mw100"
26428
26482
  }), ...tid, children: [
26429
- showBanner && environmentBanner && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { ...(0, import_runtime128.mergeProps)(void 0, {
26483
+ showBanner && environmentBanner && /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { ...(0, import_runtime129.mergeProps)(void 0, {
26430
26484
  height: environmentBannerSizePx
26431
26485
  }, {
26432
26486
  flexShrink: "fs0",
26433
26487
  width: "w100"
26434
- }), children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { ...(0, import_runtime128.trussProps)({
26488
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { ...(0, import_runtime129.trussProps)({
26435
26489
  position: "fixed",
26436
26490
  top: "top0",
26437
26491
  left: "left0",
26438
26492
  zIndex: ["z_var", {
26439
- "--zIndex": (0, import_runtime128.maybeCssVar)(zIndices.environmentBanner)
26493
+ "--zIndex": (0, import_runtime129.maybeCssVar)(zIndices.environmentBanner)
26440
26494
  }],
26441
26495
  width: ["w_var", {
26442
- "--width": (0, import_runtime128.maybeCssVar)(__maybeInc24(innerWidth))
26496
+ "--width": (0, import_runtime129.maybeCssVar)(__maybeInc24(innerWidth))
26443
26497
  }]
26444
- }), ...tid.bannerSticky, children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
26498
+ }), ...tid.bannerSticky, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
26445
26499
  children
26446
26500
  ] }) }) });
26447
26501
  }
26448
26502
 
26449
26503
  // src/layouts/FormSectionLayout/FormSectionLayout.tsx
26450
- var import_runtime129 = require("@homebound/truss/runtime");
26451
- var import_jsx_runtime207 = require("react/jsx-runtime");
26504
+ var import_runtime130 = require("@homebound/truss/runtime");
26505
+ var import_jsx_runtime209 = require("react/jsx-runtime");
26452
26506
  function FormSectionLayout(props) {
26453
26507
  const {
26454
26508
  title,
@@ -26458,13 +26512,13 @@ function FormSectionLayout(props) {
26458
26512
  sections
26459
26513
  } = props;
26460
26514
  const tid = useTestIds(props, "formSectionLayout");
26461
- return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { className: "df fdc gap3 w100 pt4 maxw_720px mla mra sm_pl2 sm_pr2", ...tid, children: [
26462
- /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { className: "df fdc jcsb gap_12px", children: [
26463
- /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { className: "df jcsb aic", children: [
26464
- /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("h1", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
26465
- actions && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: "df gap1 fs0", ...tid.actions, children: actions.map((action) => action.kind === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(IconButton, { ...action, variant: "outline" }, action.icon) : /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Button, { ...action }, `${action.label}`)) })
26515
+ return /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { className: "df fdc gap3 w100 pt4 maxw_720px mla mra sm_pl2 sm_pr2", ...tid, children: [
26516
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { className: "df fdc jcsb gap_12px", children: [
26517
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { className: "df jcsb aic", children: [
26518
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("h1", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
26519
+ actions && /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "df gap1 fs0", ...tid.actions, children: actions.map((action) => action.kind === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(IconButton, { ...action, variant: "outline" }, action.icon) : /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Button, { ...action }, `${action.label}`)) })
26466
26520
  ] }),
26467
- description && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { ...(0, import_runtime129.trussProps)({
26521
+ description && /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { ...(0, import_runtime130.trussProps)({
26468
26522
  fontWeight: "fw4",
26469
26523
  fontSize: "fz_14px",
26470
26524
  lineHeight: "lh_20px",
@@ -26474,13 +26528,13 @@ function FormSectionLayout(props) {
26474
26528
  }), ...tid.description, children: description })
26475
26529
  ] }),
26476
26530
  initialFields,
26477
- /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: "df fdc gap6", children: sections.map((section, i) => /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(FormSection, { ...section }, defaultTestId(section.title) || i)) })
26531
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "df fdc gap6", children: sections.map((section, i) => /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(FormSection, { ...section }, defaultTestId(section.title) || i)) })
26478
26532
  ] });
26479
26533
  }
26480
26534
 
26481
26535
  // src/layouts/NavbarLayout/NavbarLayout.tsx
26482
26536
  var import_react152 = require("react");
26483
- var import_runtime130 = require("@homebound/truss/runtime");
26537
+ var import_runtime131 = require("@homebound/truss/runtime");
26484
26538
 
26485
26539
  // src/layouts/useAutoHideOnScroll.ts
26486
26540
  var import_react149 = require("react");
@@ -26573,7 +26627,7 @@ function useAutoHideOnScroll(spacerRef, enabled, getTopOffset) {
26573
26627
  }
26574
26628
 
26575
26629
  // src/layouts/useMeasuredHeight.ts
26576
- var import_utils172 = require("@react-aria/utils");
26630
+ var import_utils174 = require("@react-aria/utils");
26577
26631
  var import_react150 = require("react");
26578
26632
  function useMeasuredHeight(ref, enabled) {
26579
26633
  const [height, setHeight] = (0, import_react150.useState)(0);
@@ -26582,7 +26636,7 @@ function useMeasuredHeight(ref, enabled) {
26582
26636
  const next = el ? Math.round(el.getBoundingClientRect().height) : 0;
26583
26637
  setHeight((prev) => prev === next ? prev : next);
26584
26638
  }, [ref]);
26585
- (0, import_utils172.useResizeObserver)({ ref, onResize: syncElementHeight });
26639
+ (0, import_utils174.useResizeObserver)({ ref, onResize: syncElementHeight });
26586
26640
  (0, import_react150.useLayoutEffect)(() => {
26587
26641
  syncElementHeight();
26588
26642
  }, [enabled, syncElementHeight]);
@@ -26591,17 +26645,17 @@ function useMeasuredHeight(ref, enabled) {
26591
26645
 
26592
26646
  // src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
26593
26647
  var import_react151 = require("react");
26594
- var import_jsx_runtime208 = require("react/jsx-runtime");
26648
+ var import_jsx_runtime210 = require("react/jsx-runtime");
26595
26649
  var NavbarLayoutHeightContext = (0, import_react151.createContext)(0);
26596
26650
  function NavbarLayoutHeightProvider({ value, children }) {
26597
- return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(NavbarLayoutHeightContext.Provider, { value, children });
26651
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(NavbarLayoutHeightContext.Provider, { value, children });
26598
26652
  }
26599
26653
  function useNavbarLayoutHeight() {
26600
26654
  return (0, import_react151.useContext)(NavbarLayoutHeightContext);
26601
26655
  }
26602
26656
 
26603
26657
  // src/layouts/NavbarLayout/NavbarLayout.tsx
26604
- var import_jsx_runtime209 = require("react/jsx-runtime");
26658
+ var import_jsx_runtime211 = require("react/jsx-runtime");
26605
26659
  var __maybeInc25 = (inc) => {
26606
26660
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
26607
26661
  };
@@ -26630,10 +26684,10 @@ function NavbarLayout(props) {
26630
26684
  position: "sticky",
26631
26685
  left: "left0",
26632
26686
  zIndex: ["z_var", {
26633
- "--zIndex": (0, import_runtime130.maybeCssVar)(zIndices.navbar)
26687
+ "--zIndex": (0, import_runtime131.maybeCssVar)(zIndices.navbar)
26634
26688
  }],
26635
26689
  width: ["w_var", {
26636
- "--width": (0, import_runtime130.maybeCssVar)(__maybeInc25(innerWidth))
26690
+ "--width": (0, import_runtime131.maybeCssVar)(__maybeInc25(innerWidth))
26637
26691
  }]
26638
26692
  }
26639
26693
  ) : (
@@ -26642,10 +26696,10 @@ function NavbarLayout(props) {
26642
26696
  position: "fixed",
26643
26697
  left: "left0",
26644
26698
  zIndex: ["z_var", {
26645
- "--zIndex": (0, import_runtime130.maybeCssVar)(zIndices.navbar)
26699
+ "--zIndex": (0, import_runtime131.maybeCssVar)(zIndices.navbar)
26646
26700
  }],
26647
26701
  width: ["w_var", {
26648
- "--width": (0, import_runtime130.maybeCssVar)(__maybeInc25(innerWidth))
26702
+ "--width": (0, import_runtime131.maybeCssVar)(__maybeInc25(innerWidth))
26649
26703
  }],
26650
26704
  transition: "transitionTop"
26651
26705
  }
@@ -26654,20 +26708,20 @@ function NavbarLayout(props) {
26654
26708
  const innerStyle = autoHideState !== "static" ? {
26655
26709
  top: autoHideState === "revealed" ? bannerTop : `calc(${bannerTop} - ${navHeight}px)`
26656
26710
  } : void 0;
26657
- const navbarEl = (0, import_react152.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Navbar, { ...navbar }), [navbar]);
26658
- return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { ...(0, import_runtime130.mergeProps)(void 0, cssVars, {
26711
+ const navbarEl = (0, import_react152.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Navbar, { ...navbar }), [navbar]);
26712
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)("div", { ...(0, import_runtime131.mergeProps)(void 0, cssVars, {
26659
26713
  display: "df",
26660
26714
  flexDirection: "fdc",
26661
26715
  width: "wfc",
26662
26716
  minWidth: "mw100"
26663
26717
  }), ...tid, children: [
26664
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { ref: spacerRef, ...(0, import_runtime130.mergeProps)(void 0, {
26718
+ /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { ref: spacerRef, ...(0, import_runtime131.mergeProps)(void 0, {
26665
26719
  height: navHeight
26666
26720
  }, {
26667
26721
  flexShrink: "fs0",
26668
26722
  width: "w100"
26669
- }), children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { ref: navMetricsRef, ...(0, import_runtime130.mergeProps)(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
26670
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
26723
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { ref: navMetricsRef, ...(0, import_runtime131.mergeProps)(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
26724
+ /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
26671
26725
  ] }) }) });
26672
26726
  }
26673
26727
 
@@ -26675,8 +26729,8 @@ function NavbarLayout(props) {
26675
26729
  var import_react153 = require("react");
26676
26730
 
26677
26731
  // src/components/Headers/BaseHeader.tsx
26678
- var import_runtime131 = require("@homebound/truss/runtime");
26679
- var import_jsx_runtime210 = require("react/jsx-runtime");
26732
+ var import_runtime132 = require("@homebound/truss/runtime");
26733
+ var import_jsx_runtime212 = require("react/jsx-runtime");
26680
26734
  function BaseHeader(props) {
26681
26735
  const {
26682
26736
  title,
@@ -26688,7 +26742,7 @@ function BaseHeader(props) {
26688
26742
  } = props;
26689
26743
  const tid = useTestIds(otherProps, "header");
26690
26744
  useDocumentTitle(title, documentTitleSuffix);
26691
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("header", { ...tid, ...(0, import_runtime131.trussProps)({
26745
+ return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("header", { ...tid, ...(0, import_runtime132.trussProps)({
26692
26746
  display: "df",
26693
26747
  flexDirection: "fdc",
26694
26748
  paddingTop: "pt3",
@@ -26702,7 +26756,7 @@ function BaseHeader(props) {
26702
26756
  "--backgroundColor": "var(--b-surface)"
26703
26757
  }]
26704
26758
  }), children: [
26705
- /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { ...(0, import_runtime131.trussProps)({
26759
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("div", { ...(0, import_runtime132.trussProps)({
26706
26760
  ...{
26707
26761
  display: "df",
26708
26762
  justifyContent: "jcsb",
@@ -26716,9 +26770,9 @@ function BaseHeader(props) {
26716
26770
  } : {}
26717
26771
  }
26718
26772
  }), children: [
26719
- /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { className: "mw0", children: [
26720
- breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Breadcrumbs, { ...breadcrumbs }),
26721
- /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("h1", { ...tid.title, ...(0, import_runtime131.trussProps)({
26773
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("div", { className: "mw0", children: [
26774
+ breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(Breadcrumbs, { ...breadcrumbs }),
26775
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("h1", { ...tid.title, ...(0, import_runtime132.trussProps)({
26722
26776
  fontWeight: "fw6",
26723
26777
  fontSize: "fz_20px",
26724
26778
  lineHeight: "lh_28px",
@@ -26727,22 +26781,22 @@ function BaseHeader(props) {
26727
26781
  }]
26728
26782
  }), children: title })
26729
26783
  ] }),
26730
- /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("div", { className: "fs0", children: rightSlot })
26784
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { className: "fs0", children: rightSlot })
26731
26785
  ] }),
26732
26786
  bottomSlot
26733
26787
  ] });
26734
26788
  }
26735
26789
 
26736
26790
  // src/components/Headers/PageHeader.tsx
26737
- var import_runtime132 = require("@homebound/truss/runtime");
26738
- var import_jsx_runtime211 = require("react/jsx-runtime");
26791
+ var import_runtime133 = require("@homebound/truss/runtime");
26792
+ var import_jsx_runtime213 = require("react/jsx-runtime");
26739
26793
  function PageHeader2(props) {
26740
26794
  const {
26741
26795
  tabs,
26742
26796
  ...otherProps
26743
26797
  } = props;
26744
26798
  const tid = useTestIds(otherProps, "header");
26745
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(BaseHeader, { ...otherProps, bottomSlot: tabs && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { ...(0, import_runtime132.trussProps)(pageContentPaddingX), children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Tabs, { ...tabs, ...tid.tabs }) }) });
26799
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(BaseHeader, { ...otherProps, bottomSlot: tabs && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)("div", { ...(0, import_runtime133.trussProps)(pageContentPaddingX), children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Tabs, { ...tabs, ...tid.tabs }) }) });
26746
26800
  }
26747
26801
 
26748
26802
  // src/layouts/useBannerAndNavbarHeight.ts
@@ -26751,8 +26805,8 @@ function useBannerAndNavbarHeight() {
26751
26805
  }
26752
26806
 
26753
26807
  // src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
26754
- var import_runtime133 = require("@homebound/truss/runtime");
26755
- var import_jsx_runtime212 = require("react/jsx-runtime");
26808
+ var import_runtime134 = require("@homebound/truss/runtime");
26809
+ var import_jsx_runtime214 = require("react/jsx-runtime");
26756
26810
  var __maybeInc26 = (inc) => {
26757
26811
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
26758
26812
  };
@@ -26783,43 +26837,43 @@ function PageHeaderLayout(props) {
26783
26837
  const innerCss = autoHideState === "static" ? {
26784
26838
  position: "sticky",
26785
26839
  left: ["left_var", {
26786
- "--left": (0, import_runtime133.maybeCssVar)(__maybeInc26(headerLeft))
26840
+ "--left": (0, import_runtime134.maybeCssVar)(__maybeInc26(headerLeft))
26787
26841
  }],
26788
26842
  width: ["w_var", {
26789
- "--width": (0, import_runtime133.maybeCssVar)(__maybeInc26(headerWidth))
26843
+ "--width": (0, import_runtime134.maybeCssVar)(__maybeInc26(headerWidth))
26790
26844
  }],
26791
26845
  zIndex: ["z_var", {
26792
- "--zIndex": (0, import_runtime133.maybeCssVar)(zIndices.pageStickyHeader)
26846
+ "--zIndex": (0, import_runtime134.maybeCssVar)(zIndices.pageStickyHeader)
26793
26847
  }]
26794
26848
  } : {
26795
26849
  position: "fixed",
26796
26850
  left: ["left_var", {
26797
- "--left": (0, import_runtime133.maybeCssVar)(__maybeInc26(headerLeft))
26851
+ "--left": (0, import_runtime134.maybeCssVar)(__maybeInc26(headerLeft))
26798
26852
  }],
26799
26853
  width: ["w_var", {
26800
- "--width": (0, import_runtime133.maybeCssVar)(__maybeInc26(headerWidth))
26854
+ "--width": (0, import_runtime134.maybeCssVar)(__maybeInc26(headerWidth))
26801
26855
  }],
26802
26856
  zIndex: ["z_var", {
26803
- "--zIndex": (0, import_runtime133.maybeCssVar)(zIndices.pageStickyHeader)
26857
+ "--zIndex": (0, import_runtime134.maybeCssVar)(zIndices.pageStickyHeader)
26804
26858
  }],
26805
26859
  transition: "transitionTop"
26806
26860
  };
26807
26861
  const innerStyle = autoHideState !== "static" ? {
26808
26862
  top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
26809
26863
  } : void 0;
26810
- const pageHeaderEl = (0, import_react153.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(PageHeader2, { ...pageHeader }), [pageHeader]);
26811
- return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("div", { ...(0, import_runtime133.mergeProps)(void 0, cssVars, {
26864
+ const pageHeaderEl = (0, import_react153.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(PageHeader2, { ...pageHeader }), [pageHeader]);
26865
+ return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)("div", { ...(0, import_runtime134.mergeProps)(void 0, cssVars, {
26812
26866
  display: "df",
26813
26867
  flexDirection: "fdc",
26814
26868
  width: "w100"
26815
26869
  }), ...tid, children: [
26816
- /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { ref: spacerRef, ...(0, import_runtime133.mergeProps)(void 0, {
26870
+ /* @__PURE__ */ (0, import_jsx_runtime214.jsx)("div", { ref: spacerRef, ...(0, import_runtime134.mergeProps)(void 0, {
26817
26871
  height: headerHeight
26818
26872
  }, {
26819
26873
  flexShrink: "fs0",
26820
26874
  width: "w100"
26821
- }), children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime133.mergeProps)(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
26822
- /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
26875
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime134.mergeProps)(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
26876
+ /* @__PURE__ */ (0, import_jsx_runtime214.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
26823
26877
  ] }) });
26824
26878
  }
26825
26879
 
@@ -26827,15 +26881,15 @@ function PageHeaderLayout(props) {
26827
26881
  var import_react154 = require("react");
26828
26882
 
26829
26883
  // src/components/Headers/WorkflowHeader.tsx
26830
- var import_jsx_runtime213 = require("react/jsx-runtime");
26884
+ var import_jsx_runtime215 = require("react/jsx-runtime");
26831
26885
  function WorkflowHeader(props) {
26832
26886
  const { stepperTabs, ...otherProps } = props;
26833
26887
  const tid = useTestIds(otherProps, "header");
26834
- return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(BaseHeader, { ...otherProps, bottomSlot: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) });
26888
+ return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(BaseHeader, { ...otherProps, bottomSlot: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) });
26835
26889
  }
26836
26890
 
26837
26891
  // src/layouts/WorkflowLayout/WorkflowActions.tsx
26838
- var import_jsx_runtime214 = require("react/jsx-runtime");
26892
+ var import_jsx_runtime216 = require("react/jsx-runtime");
26839
26893
  function WorkflowActions(props) {
26840
26894
  const {
26841
26895
  isFirstStep,
@@ -26849,19 +26903,19 @@ function WorkflowActions(props) {
26849
26903
  onContinue,
26850
26904
  primaryDisabled
26851
26905
  } = props;
26852
- return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)("div", { className: "df aic jcsb sm_w100", children: [
26853
- /* @__PURE__ */ (0, import_jsx_runtime214.jsx)("div", { className: "df aic", children: !isFirstStep && isMobile && /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
26854
- /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)("div", { className: "df aic gap1", children: [
26855
- /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
26856
- onSaveAndExit && /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
26857
- isLastStep ? /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Button, { label: completeLabel, variant: "primary", onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Button, { label: "Continue", variant: "primary", onClick: onContinue, disabled: primaryDisabled })
26906
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: "df aic jcsb sm_w100", children: [
26907
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("div", { className: "df aic", children: !isFirstStep && isMobile && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
26908
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: "df aic gap1", children: [
26909
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
26910
+ onSaveAndExit && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
26911
+ isLastStep ? /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button, { label: completeLabel, variant: "primary", onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button, { label: "Continue", variant: "primary", onClick: onContinue, disabled: primaryDisabled })
26858
26912
  ] })
26859
26913
  ] });
26860
26914
  }
26861
26915
 
26862
26916
  // src/layouts/WorkflowLayout/WorkflowLayout.tsx
26863
- var import_runtime134 = require("@homebound/truss/runtime");
26864
- var import_jsx_runtime215 = require("react/jsx-runtime");
26917
+ var import_runtime135 = require("@homebound/truss/runtime");
26918
+ var import_jsx_runtime217 = require("react/jsx-runtime");
26865
26919
  var __maybeInc27 = (inc) => {
26866
26920
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
26867
26921
  };
@@ -26884,17 +26938,9 @@ function WorkflowLayout(props) {
26884
26938
  const {
26885
26939
  sm: isMobile
26886
26940
  } = useBreakpoint();
26887
- const bannerAndNavbarHeight = useBannerAndNavbarHeight();
26888
- const bannerAndNavbarHeightRef = (0, import_react154.useRef)(bannerAndNavbarHeight);
26889
- bannerAndNavbarHeightRef.current = bannerAndNavbarHeight;
26890
- const getBannerAndNavbarHeight = (0, import_react154.useCallback)(() => bannerAndNavbarHeightRef.current, []);
26891
26941
  const headerMetricsRef = (0, import_react154.useRef)(null);
26892
- const spacerRef = (0, import_react154.useRef)(null);
26893
26942
  const headerHeight = useMeasuredHeight(headerMetricsRef, true);
26894
- const {
26895
- state: scrollState
26896
- } = useAutoHideOnScroll(spacerRef, true, getBannerAndNavbarHeight);
26897
- const collapsed = scrollState === "hidden";
26943
+ const collapsed = isMobile;
26898
26944
  const headerWidth = documentScrollChromeWidth();
26899
26945
  const outerTop = bannerAndNavbarChromeTop();
26900
26946
  const cssVars = headerHeight > 0 ? {
@@ -26904,7 +26950,7 @@ function WorkflowLayout(props) {
26904
26950
  const isFirstStep = currentIndex <= 0;
26905
26951
  const isLastStep = currentIndex === tabSteps.length - 1;
26906
26952
  const activeStep = tabSteps[currentIndex];
26907
- const buttons = /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(WorkflowActions, { isFirstStep, isLastStep, isMobile, onBack: () => setCurrentStep(tabSteps[currentIndex - 1].value), onCancel, onSaveAndExit, completeLabel, onComplete, primaryDisabled: !activeStep?.completed, onContinue: () => setCurrentStep(tabSteps[currentIndex + 1].value) });
26953
+ const buttons = /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(WorkflowActions, { isFirstStep, isLastStep, isMobile, onBack: () => setCurrentStep(tabSteps[currentIndex - 1].value), onCancel, onSaveAndExit, completeLabel, onComplete, primaryDisabled: !activeStep?.completed, onContinue: () => setCurrentStep(tabSteps[currentIndex + 1].value) });
26908
26954
  const showFooter = isMobile;
26909
26955
  (0, import_react154.useLayoutEffect)(() => {
26910
26956
  const root = document.documentElement;
@@ -26918,54 +26964,49 @@ function WorkflowLayout(props) {
26918
26964
  }
26919
26965
  };
26920
26966
  }, [showFooter]);
26921
- const headerEl = /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(WorkflowHeader, { ...headerProps, rightSlot: isMobile ? void 0 : buttons, stepperTabs: {
26967
+ const headerEl = /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(WorkflowHeader, { ...headerProps, rightSlot: isMobile ? void 0 : buttons, stepperTabs: {
26922
26968
  steps: tabSteps,
26923
26969
  currentStep,
26924
26970
  onChange: setCurrentStep,
26925
26971
  collapsed
26926
26972
  } });
26927
- return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)("div", { ...(0, import_runtime134.mergeProps)(void 0, cssVars, {
26973
+ return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { ...(0, import_runtime135.mergeProps)(void 0, cssVars, {
26928
26974
  display: "df",
26929
26975
  flexDirection: "fdc",
26930
26976
  width: "w100"
26931
26977
  }), ...tid, children: [
26932
- /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ref: spacerRef, ...(0, import_runtime134.mergeProps)(void 0, {
26933
- height: headerHeight
26934
- }, {
26935
- flexShrink: "fs0",
26936
- width: "w100"
26937
- }), ...tid.spacer, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime134.trussProps)({
26938
- position: "fixed",
26978
+ /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime135.trussProps)({
26979
+ position: "sticky",
26980
+ left: "left0",
26939
26981
  width: ["w_var", {
26940
- "--width": (0, import_runtime134.maybeCssVar)(__maybeInc27(headerWidth))
26982
+ "--width": (0, import_runtime135.maybeCssVar)(__maybeInc27(headerWidth))
26941
26983
  }],
26942
26984
  zIndex: ["z_var", {
26943
- "--zIndex": (0, import_runtime134.maybeCssVar)(zIndices.pageStickyHeader)
26985
+ "--zIndex": (0, import_runtime135.maybeCssVar)(zIndices.pageStickyHeader)
26944
26986
  }],
26945
26987
  top: ["top_var", {
26946
- "--top": (0, import_runtime134.maybeCssVar)(__maybeInc27(outerTop))
26988
+ "--top": (0, import_runtime135.maybeCssVar)(__maybeInc27(outerTop))
26947
26989
  }]
26948
- }), ...tid.header, children: headerEl }) }),
26949
- /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children: activeStep?.content }),
26950
- showFooter && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ...(0, import_runtime134.trussProps)({
26990
+ }), ...tid.header, children: headerEl }),
26991
+ /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children: activeStep?.content }),
26992
+ showFooter && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime135.trussProps)({
26951
26993
  flexShrink: "fs0",
26952
26994
  width: "w100",
26953
26995
  height: ["h_var", {
26954
26996
  "--height": `${mobileFooterHeightPx}px`
26955
26997
  }]
26956
- }) }),
26957
- showFooter && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ...(0, import_runtime134.trussProps)({
26998
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime135.trussProps)({
26958
26999
  ...{
26959
27000
  position: "fixed",
26960
27001
  bottom: "bottom0",
26961
27002
  width: ["w_var", {
26962
- "--width": (0, import_runtime134.maybeCssVar)(__maybeInc27(headerWidth))
27003
+ "--width": (0, import_runtime135.maybeCssVar)(__maybeInc27(headerWidth))
26963
27004
  }],
26964
27005
  height: ["h_var", {
26965
27006
  "--height": `${mobileFooterHeightPx}px`
26966
27007
  }],
26967
27008
  zIndex: ["z_var", {
26968
- "--zIndex": (0, import_runtime134.maybeCssVar)(zIndices.pageStickyFooter)
27009
+ "--zIndex": (0, import_runtime135.maybeCssVar)(zIndices.pageStickyFooter)
26969
27010
  }],
26970
27011
  display: "df",
26971
27012
  alignItems: "aic",
@@ -26981,7 +27022,7 @@ function WorkflowLayout(props) {
26981
27022
  }]
26982
27023
  },
26983
27024
  ...pageContentPaddingX
26984
- }), ...tid.footer, children: buttons })
27025
+ }), ...tid.footer, children: buttons }) })
26985
27026
  ] }) });
26986
27027
  }
26987
27028
  var mobileFooterHeightPx = 80;
@@ -27044,6 +27085,7 @@ function getInitialStep(steps, defaultStep) {
27044
27085
  CollapseToggle,
27045
27086
  CollapsedContext,
27046
27087
  ConfirmCloseModal,
27088
+ ContentHeader,
27047
27089
  ContrastScope,
27048
27090
  Copy,
27049
27091
  CountBadge,