likec4 1.15.0 → 1.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useOverviewGraph } from "virtual:likec4/overview-graph";
3
- import { u, c as createReactComponent, I as IconFolderFilled, e, a as useUpdateEffect, n as nonexhaustive } from "./main-Q7z-4OPp.js";
3
+ import { u, c as createReactComponent, I as IconFolderFilled, e, a as useUpdateEffect, n as nonexhaustive } from "./main-CDPsQgdJ.js";
4
4
  import { u as useRouter } from "./tanstack-router-CfO1HFS2.js";
5
5
  import { B as BaseEdge, H as Handle, P as Position, u as useNodesState, a as useEdgesState, i as index, b as Background, c as BackgroundVariant } from "./likec4-zEZHE7gJ.js";
6
6
  import { memo, useRef, useMemo } from "react";
7
- import { P as Paper, c as clsx, G as Group, T as ThemeIcon, a as Text, C as Card, b as CardSection, d as Center, I as Image, B as Box, u as useMantineColorScheme } from "./mantine-Dx0sIYv1.js";
7
+ import { P as Paper, c as clsx, G as Group, T as ThemeIcon, a as Text, C as Card, b as CardSection, d as Center, I as Image, B as Box, u as useMantineColorScheme } from "./mantine-3sBuUgD1.js";
8
8
  import { usePreviewUrl } from "virtual:likec4/previews";
9
9
  function i(...e2) {
10
10
  return u(y, e2);
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import { createContext as createContext$1, useContext as useContext$1, useId as useId$1, useEffect as useEffect$1, useCallback as useCallback$1, Component, useLayoutEffect as useLayoutEffect$1, useRef as useRef$1, useInsertionEffect, useMemo as useMemo$1, forwardRef as forwardRef$1, Fragment, createElement as createElement$1, Children, isValidElement, useState as useState$1, memo as memo$1, Suspense, lazy, useSyncExternalStore, StrictMode } from "react";
4
4
  import { createRoot } from "react-dom/client";
5
5
  import { L as Link, c as createRootRouteWithContext, S as ScrollRestoration, O as Outlet, a as createFileRoute, u as useRouter, b as useParams, d as useRouterState, i as isNotFound, n as notFound, R as RouterProvider, e as createRouter$1, f as createHashHistory, g as createBrowserHistory } from "./tanstack-router-CfO1HFS2.js";
6
- import { e as Container, f as Title, a as Text$6, G as Group, g as Button, h as useMergedRef, t as themeToVars, i as useMantineStyleNonce, M as MantineContext, j as useComputedColorScheme, k as Popover, l as PopoverTarget, B as Box, T as ThemeIcon, m as PopoverDropdown, S as ScrollAreaAutosize, c as clsx, A as ActionIcon$1, n as Stack$1, o as useTree, p as Tree, q as useLocalStorage, r as useStateHistory, s as Space, v as SegmentedControl, w as useHotkeys, F as FocusTrap, x as Tooltip$3, y as Menu, z as MenuTarget, D as MenuDropdown, E as MenuLabel, H as MenuDivider, J as TooltipGroup, K as MenuItem, L as CloseButton, N as keys$1, O as ColorSwatch, Q as Divider, R as Flex, U as CheckIcon, V as rem, W as Slider, P as Paper, X as useDebouncedValue, Y as HoverCard, Z as HoverCardTarget, _ as UnstyledButton, $ as HoverCardDropdown, a0 as Anchor, a1 as CopyButton$1, C as Card, b as CardSection, a2 as Spoiler, a3 as Badge, a4 as ButtonGroup, a5 as Tabs, a6 as TabsList, a7 as TabsTab, a8 as TabsPanel, a9 as useHover, aa as FloatingIndicator, ab as useUncontrolled, ac as clampUseMovePosition, ad as useMove, ae as ActionIconGroup, af as Overlay, ag as Notification, ah as Code, ai as createTheme, aj as MantineProvider, ak as useInViewport, al as SimpleGrid, u as useMantineColorScheme, am as Drawer, an as ScrollArea, ao as Alert, ap as Select, aq as ModalRoot, ar as ModalOverlay, as as ModalContent, at as ModalBody, au as useMantineTheme, av as useMediaQuery, aw as useDisclosure, ax as LoadingOverlay, ay as useCallbackRef, az as Burger, aA as Loader } from "./mantine-Dx0sIYv1.js";
6
+ import { e as Container, f as Title, a as Text$6, G as Group, g as Button, h as useMergedRef, t as themeToVars, i as useMantineStyleNonce, M as MantineContext, j as useComputedColorScheme, k as Popover, l as PopoverTarget, B as Box, T as ThemeIcon, m as PopoverDropdown, S as ScrollAreaAutosize, c as clsx, A as ActionIcon$1, n as Stack$1, o as useTree, p as Tree, q as useLocalStorage, r as useStateHistory, s as Space, v as SegmentedControl, w as useHotkeys, F as FocusTrap, x as Tooltip$3, y as Menu, z as MenuTarget, D as MenuDropdown, E as MenuLabel, H as MenuDivider, J as TooltipGroup, K as MenuItem, L as CloseButton, N as keys$1, O as ColorSwatch, Q as Divider, R as Flex, U as CheckIcon, V as rem, W as Slider, P as Paper, X as useDebouncedValue, Y as HoverCard, Z as HoverCardTarget, _ as UnstyledButton, $ as HoverCardDropdown, a0 as Anchor, a1 as CopyButton$1, C as Card, b as CardSection, a2 as Spoiler, a3 as Badge, a4 as ButtonGroup, a5 as Tabs, a6 as TabsList, a7 as TabsTab, a8 as TabsPanel, a9 as useHover, aa as FloatingIndicator, ab as useUncontrolled, ac as clampUseMovePosition, ad as useMove, ae as ActionIconGroup, af as Overlay, ag as Notification, ah as Code, ai as createTheme, aj as MantineProvider, ak as useInViewport, al as SimpleGrid, u as useMantineColorScheme, am as Drawer, an as ScrollArea, ao as Alert, ap as Select, aq as ModalRoot, ar as ModalOverlay, as as ModalContent, at as ModalBody, au as useMantineTheme, av as useMediaQuery, aw as useDisclosure, ax as LoadingOverlay, ay as useCallbackRef, az as Burger, aA as Loader } from "./mantine-3sBuUgD1.js";
7
7
  import { withOverviewGraph, ComponentName, isDevelopment, krokiD2SvgUrl, basepath, useHashHistory } from "../const.js";
8
8
  import { useLikeC4ModelAtom } from "virtual:likec4/model";
9
9
  import { g as getDefaultExportFromCjs, d as useReactFlow, e as useStoreApi, f as useStore$1, h as useNodesData, j as getNodeDimensions, k as createWithEqualityFn, l as applyNodeChanges, m as applyEdgeChanges, n as getViewportForBounds, o as getBoundsOfRects, s as shallow$1, p as boxToRect, q as useStoreWithEqualityFn, M as MarkerType, H as Handle, P as Position, r as getBezierPath, B as BaseEdge, E as EdgeLabelRenderer, i as index, t as Panel$1, V as ViewportPortal, R as ReactFlowProvider, N as NodeToolbar, v as useOnViewportChange, b as Background, c as BackgroundVariant } from "./likec4-zEZHE7gJ.js";
@@ -5240,7 +5240,18 @@ function useAnimate() {
5240
5240
  scope.animations.forEach((animation) => animation.stop());
5241
5241
  }), [scope, animate];
5242
5242
  }
5243
- var rootClassName = "likec4-diagram-root", s$2 = { done: !1, hasNext: !1 };
5243
+ var rootClassName = "likec4-diagram-root";
5244
+ function u$9(t2, n2, a2) {
5245
+ let o2 = (r2) => t2(r2, ...n2);
5246
+ return a2 === void 0 ? o2 : Object.assign(o2, { lazy: a2, lazyArgs: n2 });
5247
+ }
5248
+ function u$8(r2, n2, a2) {
5249
+ let o2 = r2.length - n2.length;
5250
+ if (o2 === 0) return r2(...n2);
5251
+ if (o2 === 1) return u$9(r2, n2, a2);
5252
+ throw new Error("Wrong number of arguments");
5253
+ }
5254
+ var s$2 = { done: !1, hasNext: !1 };
5244
5255
  function x$1(t2, ...o2) {
5245
5256
  let n2 = t2, u2 = o2.map((e2) => "lazy" in e2 ? f$2(e2) : void 0), p2 = 0;
5246
5257
  for (; p2 < o2.length; ) {
@@ -5304,45 +5315,24 @@ function o$7() {
5304
5315
  let e2 = /* @__PURE__ */ new Set();
5305
5316
  return (t2) => e2.has(t2) ? s$2 : (e2.add(t2), { done: !1, hasNext: !0, next: t2 });
5306
5317
  }
5307
- function u$9(t2, n2, a2) {
5308
- let o2 = (r2) => t2(r2, ...n2);
5309
- return a2 === void 0 ? o2 : Object.assign(o2, { lazy: a2, lazyArgs: n2 });
5310
- }
5311
- function u$8(r2, n2, a2) {
5312
- let o2 = r2.length - n2.length;
5313
- if (o2 === 0) return r2(...n2);
5314
- if (o2 === 1) return u$9(r2, n2, a2);
5315
- throw new Error("Wrong number of arguments");
5316
- }
5317
5318
  function r$4(...n2) {
5318
5319
  return u$8(Object.values, n2);
5319
5320
  }
5320
- function u$7(...e2) {
5321
- return u$8(i$7, e2);
5322
- }
5323
- function i$7(e2, a2) {
5324
- let n2 = [];
5325
- for (let [o2, r2] of e2.entries()) {
5326
- if (!a2(r2, o2, e2)) break;
5327
- n2.push(r2);
5328
- }
5329
- return n2;
5330
- }
5331
- function i$6(...e2) {
5321
+ function i$7(...e2) {
5332
5322
  return u$8(r$3, e2);
5333
5323
  }
5334
5324
  var r$3 = (e2, t2) => e2.length >= t2, T$1 = { asc: (r2, n2) => r2 > n2, desc: (r2, n2) => r2 < n2 };
5335
5325
  function m$2(r2, n2) {
5336
5326
  let [e2, ...o2] = n2;
5337
5327
  if (!s$1(e2)) {
5338
- let t2 = u$6(...o2);
5328
+ let t2 = u$7(...o2);
5339
5329
  return r2(e2, t2);
5340
5330
  }
5341
- let a2 = u$6(e2, ...o2);
5331
+ let a2 = u$7(e2, ...o2);
5342
5332
  return (t2) => r2(t2, a2);
5343
5333
  }
5344
- function u$6(r2, n2, ...e2) {
5345
- let o2 = typeof r2 == "function" ? r2 : r2[0], a2 = typeof r2 == "function" ? "asc" : r2[1], { [a2]: t2 } = T$1, i2 = n2 === void 0 ? void 0 : u$6(n2, ...e2);
5334
+ function u$7(r2, n2, ...e2) {
5335
+ let o2 = typeof r2 == "function" ? r2 : r2[0], a2 = typeof r2 == "function" ? "asc" : r2[1], { [a2]: t2 } = T$1, i2 = n2 === void 0 ? void 0 : u$7(n2, ...e2);
5346
5336
  return (y2, c) => {
5347
5337
  let l2 = o2(y2), p2 = o2(c);
5348
5338
  return t2(l2, p2) ? 1 : t2(p2, l2) ? -1 : i2?.(y2, c) ?? 0;
@@ -5355,6 +5345,27 @@ function s$1(r2) {
5355
5345
  return d$2(n2) && typeof e2 == "string" && e2 in T$1 && o2.length === 0;
5356
5346
  }
5357
5347
  var d$2 = (r2) => typeof r2 == "function" && r2.length === 1;
5348
+ function u$6(...e2) {
5349
+ return u$8(i$6, e2);
5350
+ }
5351
+ function i$6(e2, a2) {
5352
+ let n2 = [];
5353
+ for (let [o2, r2] of e2.entries()) {
5354
+ if (!a2(r2, o2, e2)) break;
5355
+ n2.push(r2);
5356
+ }
5357
+ return n2;
5358
+ }
5359
+ function b(t2) {
5360
+ return (e2, r2) => {
5361
+ if (r2 === 0) return t2(e2);
5362
+ if (!Number.isInteger(r2)) throw new TypeError(`precision must be an integer: ${r2.toString()}`);
5363
+ if (r2 > 15 || r2 < -15) throw new RangeError("precision must be between -15 and 15");
5364
+ if (Number.isNaN(e2) || !Number.isFinite(e2)) return t2(e2);
5365
+ let n2 = 10 ** r2;
5366
+ return t2(e2 * n2) / n2;
5367
+ };
5368
+ }
5358
5369
  function m$1(...r2) {
5359
5370
  return u$8(o$6, r2);
5360
5371
  }
@@ -5376,20 +5387,10 @@ function t$7(...e2) {
5376
5387
  function r$2(e2) {
5377
5388
  return [...e2].reverse();
5378
5389
  }
5379
- function b(t2) {
5380
- return (e2, r2) => {
5381
- if (r2 === 0) return t2(e2);
5382
- if (!Number.isInteger(r2)) throw new TypeError(`precision must be an integer: ${r2.toString()}`);
5383
- if (r2 > 15 || r2 < -15) throw new RangeError("precision must be between -15 and 15");
5384
- if (Number.isNaN(e2) || !Number.isFinite(e2)) return t2(e2);
5385
- let n2 = 10 ** r2;
5386
- return t2(e2 * n2) / n2;
5387
- };
5388
- }
5389
- function p$3(...o2) {
5390
- return u$8(t$6, o2);
5390
+ function p$3(...n2) {
5391
+ return u$8(t$6, n2);
5391
5392
  }
5392
- var t$6 = (o2, e2) => o2[e2];
5393
+ var t$6 = (n2, e2) => n2[e2];
5393
5394
  function t$5(...n2) {
5394
5395
  return u$8(o$4, n2);
5395
5396
  }
@@ -6339,7 +6340,7 @@ function useLayoutConstraints() {
6339
6340
  T((n2) => n2.draggable !== !1),
6340
6341
  m((x2) => x2.id)
6341
6342
  );
6342
- i$6(draggingNodes, 1) && (solverRef.current = createLayoutConstraints(xystore, draggingNodes));
6343
+ i$7(draggingNodes, 1) && (solverRef.current = createLayoutConstraints(xystore, draggingNodes));
6343
6344
  },
6344
6345
  onNodeDrag: () => {
6345
6346
  solverRef.current?.onMove((nodes) => {
@@ -7301,7 +7302,7 @@ function bezierControlPoints(diagramEdge) {
7301
7302
  const handles = [
7302
7303
  // start
7303
7304
  ];
7304
- for (; i$6(bezierPoints, 3); ) {
7305
+ for (; i$7(bezierPoints, 3); ) {
7305
7306
  const [cp1, cp2, end, ...rest] = bezierPoints, bezier = new Bezier(start[0], start[1], cp1[0], cp1[1], cp2[0], cp2[1], end[0], end[1]), inflections = bezier.inflections();
7306
7307
  inflections.length === 0 && inflections.push(0.5), inflections.forEach((t2) => {
7307
7308
  const { x: x2, y: y2 } = bezier.get(t2);
@@ -7337,7 +7338,7 @@ function diagramViewToXYFlowData(view, opts) {
7337
7338
  const ns = "", nodeById = (id2) => nonNullable(nodeLookup.get(id2), `Node not found: ${id2}`);
7338
7339
  let next;
7339
7340
  for (; next = traverse.shift(); ) {
7340
- const { node: node2, parent } = next, isCompound = i$6(node2.children, 1) || node2.kind == ElementKind.Group;
7341
+ const { node: node2, parent } = next, isCompound = i$7(node2.children, 1) || node2.kind == ElementKind.Group;
7341
7342
  isCompound && traverse.push(...node2.children.map((child) => ({ node: nodeById(child), parent: node2 })));
7342
7343
  const position2 = {
7343
7344
  x: node2.position[0],
@@ -7381,7 +7382,7 @@ function diagramViewToXYFlowData(view, opts) {
7381
7382
  }
7382
7383
  for (const edge of view.edges) {
7383
7384
  const source = edge.source, target = edge.target, id2 = ns + edge.id;
7384
- if (!i$6(edge.points, 2)) {
7385
+ if (!i$7(edge.points, 2)) {
7385
7386
  console.error("edge should have at least 2 points", edge);
7386
7387
  continue;
7387
7388
  }
@@ -7725,7 +7726,7 @@ function createDiagramStore(props2) {
7725
7726
  const _updated = acc[data.edge.id] = {
7726
7727
  points: data.edge.points
7727
7728
  };
7728
- data.label?.bbox && (_updated.labelBBox = data.label.bbox), data.edge.labelBBox && (_updated.labelBBox ??= data.edge.labelBBox), i$6(controlPoints, 1) && (_updated.controlPoints = controlPoints), !sourceOrTargetMoved && data.edge.dotpos && (_updated.dotpos = data.edge.dotpos);
7729
+ data.label?.bbox && (_updated.labelBBox = data.label.bbox), data.edge.labelBBox && (_updated.labelBBox ??= data.edge.labelBBox), i$7(controlPoints, 1) && (_updated.controlPoints = controlPoints), !sourceOrTargetMoved && data.edge.dotpos && (_updated.dotpos = data.edge.dotpos);
7729
7730
  const allX = [
7730
7731
  ...data.edge.points.map((p2) => p2[0]),
7731
7732
  ...controlPoints.map((p2) => p2.x),
@@ -7977,7 +7978,7 @@ function createDiagramStore(props2) {
7977
7978
  },
7978
7979
  align: (mode) => {
7979
7980
  const { scheduleSaveManualLayout, xystore } = get(), { nodeLookup, parentLookup } = xystore.getState(), nodesToAlign = [...new Set(nodeLookup.values().filter((n2) => n2.selected).map((n2) => n2.id)).difference(new Set(parentLookup.keys()))];
7980
- if (!i$6(nodesToAlign, 2)) {
7981
+ if (!i$7(nodesToAlign, 2)) {
7981
7982
  console.warn("At least 2 nodes must be selected to align");
7982
7983
  return;
7983
7984
  }
@@ -13835,7 +13836,7 @@ function createNode$1(nodeType, element, ctx) {
13835
13836
  return node2;
13836
13837
  const g = ctx.g, parent = x$1(
13837
13838
  element.ancestors(),
13838
- u$7((ancestor) => !isAncestor(ancestor.id, ctx.edge.source) && !isAncestor(ancestor.id, ctx.edge.target)),
13839
+ u$6((ancestor) => !isAncestor(ancestor.id, ctx.edge.source) && !isAncestor(ancestor.id, ctx.edge.target)),
13839
13840
  d(),
13840
13841
  (found) => found ? createNode$1("compound", found, ctx) : null
13841
13842
  ), xynode = {
@@ -14667,7 +14668,7 @@ const classes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
14667
14668
  edgesep: 20
14668
14669
  },
14669
14670
  edgeLabel: {
14670
- width: 60
14671
+ width: 65
14671
14672
  },
14672
14673
  emptyNodeOffset: 150,
14673
14674
  nodeWidth: 270,
@@ -14762,7 +14763,7 @@ function createNode(column, nodeType, element, ctx) {
14762
14763
  return invariant(node2.type !== "empty", `Node ${element.id} is empty`), node2;
14763
14764
  const g = ctx.g, parent = x$1(
14764
14765
  element.ancestors(),
14765
- u$7((ancestor) => !isAncestor(ancestor.id, ctx.subjectId)),
14766
+ u$6((ancestor) => !isAncestor(ancestor.id, ctx.subjectId)),
14766
14767
  f(
14767
14768
  (ancestor) => ctx.diagramNodes.has(ancestor.id) || ctx.connected[column].has(ancestor.id) || ctx.scope === "global" && ctx.subjectElement.ascendingSiblings().some((s2) => s2.id === ancestor.id)
14768
14769
  ),
@@ -14905,7 +14906,10 @@ function layout(subjectId, view, likec4model, scope) {
14905
14906
  },
14906
14907
  forEachIncoming(sourceId, relations) {
14907
14908
  const source = createNode("incomers", "element", likec4model.element(sourceId), ctx);
14908
- g.setEdge(graphId(source).port, subject.id), subject.data.ports.left.push({
14909
+ g.setEdge(graphId(source).port, subject.id, {
14910
+ width: Sizes.edgeLabel.width,
14911
+ weight: source.type === "compound" ? 0 : 1
14912
+ }), subject.data.ports.left.push({
14909
14913
  id: source.id,
14910
14914
  type: "in"
14911
14915
  }), source.data.ports.right.push({
@@ -14919,7 +14923,10 @@ function layout(subjectId, view, likec4model, scope) {
14919
14923
  },
14920
14924
  forEachOutgoing(targetId, relations) {
14921
14925
  const target = createNode("outgoers", "element", likec4model.element(targetId), ctx);
14922
- g.setEdge(subjectElement.id, graphId(target).port), subject.data.ports.right.push({
14926
+ g.setEdge(subjectElement.id, graphId(target).port, {
14927
+ width: Sizes.edgeLabel.width,
14928
+ weight: target.type === "compound" ? 1 : 2
14929
+ }), subject.data.ports.right.push({
14923
14930
  id: target.id,
14924
14931
  type: "out"
14925
14932
  }), target.data.ports.left.push({
@@ -14940,7 +14947,7 @@ function layout(subjectId, view, likec4model, scope) {
14940
14947
  g.setEdge(subject.id, graphId(target).port);
14941
14948
  }
14942
14949
  const subjectPortsCount = Math.max(subject.data.ports.left.length, subject.data.ports.right.length);
14943
- subjectPortsCount > 2 && (g.node(subjectElement.id).height = Sizes.hodeHeight + (subjectPortsCount - 2) * 1);
14950
+ subjectPortsCount > 3 && (g.node(subjectElement.id).height = Sizes.hodeHeight + (subjectPortsCount - 3) * 5);
14944
14951
  const nodebounds = applyDagreLayout(ctx.g), xynodes = [
14945
14952
  subject,
14946
14953
  ...ctx.columns.incomers.values(),
@@ -15265,6 +15272,9 @@ function RelationshipEdge$1({
15265
15272
  Text$6,
15266
15273
  {
15267
15274
  fw: isMultiRelation ? "500" : "400",
15275
+ style: {
15276
+ whiteSpace: isMultiRelation ? "nowrap" : void 0
15277
+ },
15268
15278
  component: "div",
15269
15279
  className: edgeLabelText$1,
15270
15280
  lineClamp: 3,
@@ -16640,7 +16650,7 @@ function bezierPath(bezierSpline) {
16640
16650
  let [start, ...points] = bezierSpline;
16641
16651
  invariant(start, "start should be defined");
16642
16652
  let path = `M ${start[0]},${start[1]}`;
16643
- for (; i$6(points, 3); ) {
16653
+ for (; i$7(points, 3); ) {
16644
16654
  const [cp1, cp2, end, ...rest] = points;
16645
16655
  path = path + ` C ${cp1[0]},${cp1[1]} ${cp2[0]},${cp2[1]} ${end[0]},${end[1]}`, points = rest;
16646
16656
  }
@@ -19545,7 +19555,7 @@ function DiagramPreview$1({ diagram }) {
19545
19555
  }
19546
19556
  ) });
19547
19557
  }
19548
- const OverviewGraph = /* @__PURE__ */ lazy(() => import("./-index-overview-BwT9t8VB.js"));
19558
+ const OverviewGraph = /* @__PURE__ */ lazy(() => import("./-index-overview-3cvoLqZL.js"));
19549
19559
  function WithOverviewGraph() {
19550
19560
  return /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(OverviewGraph, {}) });
19551
19561
  }
@@ -3,16 +3,16 @@ import React__default, { useState, Fragment, createContext, useContext, useRef,
3
3
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
4
4
  import * as ReactDOM from "react-dom";
5
5
  import ReactDOM__default, { createPortal } from "react-dom";
6
- var __assign = function() {
7
- return __assign = Object.assign || function(t) {
6
+ var __assign$1 = function() {
7
+ return __assign$1 = Object.assign || function(t) {
8
8
  for (var s, i = 1, n = arguments.length; i < n; i++) {
9
9
  s = arguments[i];
10
10
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]);
11
11
  }
12
12
  return t;
13
- }, __assign.apply(this, arguments);
13
+ }, __assign$1.apply(this, arguments);
14
14
  };
15
- function __rest(s, e) {
15
+ function __rest$1(s, e) {
16
16
  var t = {};
17
17
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
18
18
  if (s != null && typeof Object.getOwnPropertySymbols == "function")
@@ -70,6 +70,23 @@ function useMergeRefs(refs, defaultValue) {
70
70
  currentValues.set(callbackRef, refs);
71
71
  }, [refs]), callbackRef;
72
72
  }
73
+ var __assign = function() {
74
+ return __assign = Object.assign || function(t) {
75
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
76
+ s = arguments[i];
77
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]);
78
+ }
79
+ return t;
80
+ }, __assign.apply(this, arguments);
81
+ };
82
+ function __rest(s, e) {
83
+ var t = {};
84
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
85
+ if (s != null && typeof Object.getOwnPropertySymbols == "function")
86
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
87
+ e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
88
+ return t;
89
+ }
73
90
  function ItoI(a) {
74
91
  return a;
75
92
  }
@@ -152,12 +169,12 @@ var effectCar = createSidecarMedium(), nothing = function() {
152
169
  onScrollCapture: nothing,
153
170
  onWheelCapture: nothing,
154
171
  onTouchMoveCapture: nothing
155
- }), callbacks = _a[0], setCallbacks = _a[1], forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container2 = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), SideCar2 = sideCar, containerRef = useMergeRefs([ref, parentRef]), containerProps = __assign(__assign({}, rest), callbacks);
172
+ }), callbacks = _a[0], setCallbacks = _a[1], forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container2 = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest$1(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), SideCar2 = sideCar, containerRef = useMergeRefs([ref, parentRef]), containerProps = __assign$1(__assign$1({}, rest), callbacks);
156
173
  return React.createElement(
157
174
  React.Fragment,
158
175
  null,
159
176
  enabled && React.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
160
- forwardProps ? React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React.createElement(Container2, __assign({}, containerProps, { className, ref: containerRef }), children)
177
+ forwardProps ? React.cloneElement(React.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef })) : React.createElement(Container2, __assign$1({}, containerProps, { className, ref: containerRef }), children)
161
178
  );
162
179
  });
163
180
  RemoveScroll$1.defaultProps = {
@@ -470,7 +487,7 @@ function getOutermostShadowParent(node) {
470
487
  }
471
488
  const SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
472
489
  var ReactRemoveScroll = React.forwardRef(function(props, ref) {
473
- return React.createElement(RemoveScroll$1, __assign({}, props, { ref, sideCar: SideCar }));
490
+ return React.createElement(RemoveScroll$1, __assign$1({}, props, { ref, sideCar: SideCar }));
474
491
  });
475
492
  ReactRemoveScroll.classNames = RemoveScroll$1.classNames;
476
493
  const RemoveScroll = ReactRemoveScroll;
@@ -1,4 +1,4 @@
1
1
  import "react/jsx-runtime";
2
- import "./chunks/main-Q7z-4OPp.js";
2
+ import "./chunks/main-CDPsQgdJ.js";
3
3
  import "react";
4
4
  import "react-dom/client";