@frontera-sdk/chat-ui 1.50.79 → 1.50.80

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.
Files changed (46) hide show
  1. package/dist/agent-picker.js +6 -6
  2. package/dist/{capture-NO5ZIGP6.js → capture-G4CDPSBH.js} +1 -1
  3. package/dist/chat.d.ts +1 -1
  4. package/dist/chat.js +4594 -941
  5. package/dist/{chunk-V44YVBRX.js → chunk-2P4IEVOQ.js} +29 -12
  6. package/dist/{chunk-WMN6BPPS.js → chunk-4FRTPVJT.js} +2 -2
  7. package/dist/{chunk-UTKQ6G2A.js → chunk-5B25DNOG.js} +7 -7
  8. package/dist/{chunk-FTLVGUG5.js → chunk-7AT2LRVW.js} +2640 -153
  9. package/dist/{chunk-FNIHHKOZ.js → chunk-C2TZSGKK.js} +1374 -186
  10. package/dist/{chunk-BDJFVRYR.js → chunk-C3HW5S2Z.js} +57 -18
  11. package/dist/chunk-CWAOLMFS.js +32 -0
  12. package/dist/{chunk-26L3ST3H.js → chunk-EFFOOCIK.js} +5975 -639
  13. package/dist/{chunk-J7EWRXEC.js → chunk-EXPHCRFP.js} +3 -3
  14. package/dist/{chunk-PH7AYVSS.js → chunk-FLOAEPRU.js} +4 -4
  15. package/dist/chunk-LGVMMBL3.js +33 -0
  16. package/dist/{chunk-IQXJEZM7.js → chunk-LOBDKA2D.js} +328 -32
  17. package/dist/{chunk-FDGBZFGN.js → chunk-PKNEC4LJ.js} +528 -12
  18. package/dist/{chunk-TSKFBMGC.js → chunk-PUMRNN3R.js} +117 -66
  19. package/dist/{chunk-S3ECTKA3.js → chunk-QBV7MAFV.js} +30 -4
  20. package/dist/{chunk-F6PEZE7A.js → chunk-T5SANYSX.js} +3 -10
  21. package/dist/{chunk-AFVU5VT6.js → chunk-TUDJ35AB.js} +1071 -87
  22. package/dist/{chunk-ROJM44GB.js → chunk-UWKO24VT.js} +28 -2
  23. package/dist/{chunk-KHF7OM3F.js → chunk-UZ6RDWCT.js} +4 -4
  24. package/dist/chunk-X3QVICX7.js +32 -0
  25. package/dist/client.d.ts +3 -3
  26. package/dist/client.js +1 -1
  27. package/dist/header.d.ts +1 -1
  28. package/dist/header.js +15 -15
  29. package/dist/message.js +14 -15
  30. package/dist/new-session.d.ts +1 -1
  31. package/dist/new-session.js +7 -8
  32. package/dist/parts.js +6 -6
  33. package/dist/{pdf-deck-view-inner-AY4FYDAJ.js → pdf-deck-view-inner-KW6RIALH.js} +7 -8
  34. package/dist/{pdf-document-view-inner-NC5MBN7X.js → pdf-document-view-inner-AJEP5IJC.js} +6 -7
  35. package/dist/{pdf-viewer-inner-GPES3KG2.js → pdf-viewer-inner-CXWPRACH.js} +2 -2
  36. package/dist/pending-cards.js +7 -7
  37. package/dist/platform.css +1 -1
  38. package/package.json +7 -4
  39. package/dist/chunk-6BPHEBCF.js +0 -639
  40. package/dist/chunk-IXDM5R55.js +0 -23
  41. package/dist/chunk-XLX3L3P4.js +0 -43
  42. package/dist/vega-chart-block-NQADYNWQ.js +0 -2857
  43. package/dist/{chunk-7ADM3CKD.js → chunk-6JLWE7M3.js} +0 -0
  44. package/dist/{pdf-cover-thumbnail-inner-4N2Q5AAG.js → pdf-cover-thumbnail-inner-B2P6S25B.js} +0 -0
  45. package/dist/{types-BDqLaBfH.d.ts → types-BZhoOcz2.d.ts} +3 -3
  46. /package/dist/{univer-workbook-LSBVETAQ.js → univer-workbook-PENO65OQ.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { cn } from './chunk-XLX3L3P4.js';
2
+ import { cn } from './chunk-LGVMMBL3.js';
3
3
  import { forwardRef, useState, useId, useRef, useMemo, memo, useEffect, useLayoutEffect } from 'react';
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
  import { z } from 'zod';
6
6
 
7
- // src/vendor/ui/agent-avatar/lab/math.ts
7
+ // ../platform-kit/src/ui/agent-avatar/lab/math.ts
8
8
  var TAU = Math.PI * 2;
9
9
  var clamp = (value, minimum = 0, maximum = 1) => value < minimum ? minimum : value > maximum ? maximum : value;
10
10
  var lerp = (from, to, progress) => from + (to - from) * progress;
@@ -28,7 +28,7 @@ function createRng(seed) {
28
28
  }
29
29
  var r2 = (value) => Math.round(value * 100) / 100;
30
30
 
31
- // src/vendor/ui/agent-avatar/lab/expressions.ts
31
+ // ../platform-kit/src/ui/agent-avatar/lab/expressions.ts
32
32
  var eye = (width, height, tilt = 0, open = 1) => ({
33
33
  width,
34
34
  height,
@@ -79,7 +79,7 @@ function blendEyeExpressions(from, to, progress) {
79
79
  };
80
80
  }
81
81
 
82
- // src/vendor/ui/agent-avatar/lab/eyes.ts
82
+ // ../platform-kit/src/ui/agent-avatar/lab/eyes.ts
83
83
  function clampGaze(gaze) {
84
84
  return {
85
85
  x: clamp(gaze.x, -1, 1),
@@ -113,7 +113,7 @@ function eyePair(region, gaze, openness, state, expressionInput = "neutral", eye
113
113
  return [buildEye(-1, 0), buildEye(1, 1)];
114
114
  }
115
115
 
116
- // src/vendor/ui/agent-avatar/lab/shape.ts
116
+ // ../platform-kit/src/ui/agent-avatar/lab/shape.ts
117
117
  function normalizeProfile(radii, maximum = 1) {
118
118
  const peak = Math.max(...radii);
119
119
  if (!Number.isFinite(peak) || peak <= 0) return [...radii];
@@ -271,7 +271,7 @@ function profilePath(radii, pose = {}, tension = 1 / 6) {
271
271
  return closedPath(profilePoints(radii, 104, 128, 128, pose), tension);
272
272
  }
273
273
 
274
- // src/vendor/ui/agent-avatar/lab/profiles.ts
274
+ // ../platform-kit/src/ui/agent-avatar/lab/profiles.ts
275
275
  var PROFILE_SAMPLES = 64;
276
276
  var angles = Array.from(
277
277
  { length: PROFILE_SAMPLES },
@@ -694,7 +694,7 @@ function resolveFaceColors(housingColor, preference) {
694
694
  return { tone, ...AVATAR_FACE_COLORS[tone] };
695
695
  }
696
696
 
697
- // src/vendor/ui/agent-avatar/lab/motion.ts
697
+ // ../platform-kit/src/ui/agent-avatar/lab/motion.ts
698
698
  var BLINK_RNG = createRng(24301);
699
699
  var BLINKS = (() => {
700
700
  const schedule = [];
@@ -856,7 +856,7 @@ function blendMotion(from, to, progress) {
856
856
  };
857
857
  }
858
858
 
859
- // src/vendor/ui/agent-avatar/lab/engine.ts
859
+ // ../platform-kit/src/ui/agent-avatar/lab/engine.ts
860
860
  var ROLE_EYE_SCALE = 1.35;
861
861
  function sampleAvatarFrame({
862
862
  shape: shapeId,
@@ -1407,7 +1407,7 @@ function compileShader(gl, type, source) {
1407
1407
  }
1408
1408
  return shader;
1409
1409
  }
1410
- function createCloudRenderer(canvas, color) {
1410
+ function createCloudRenderer(canvas, color, renderSize = Math.max(1, Math.round(ORB_DIAMETER * devicePixelScale()))) {
1411
1411
  let gl;
1412
1412
  try {
1413
1413
  gl = canvas.getContext("webgl", {
@@ -1456,8 +1456,7 @@ function createCloudRenderer(canvas, color) {
1456
1456
  gl.deleteShader(fragmentShader);
1457
1457
  return void 0;
1458
1458
  }
1459
- const pixelRatio = Math.min(window.devicePixelRatio || 1, 2);
1460
- const pixelSize = Math.max(1, Math.round(ORB_DIAMETER * pixelRatio));
1459
+ const pixelSize = Math.max(1, Math.round(renderSize));
1461
1460
  canvas.width = pixelSize;
1462
1461
  canvas.height = pixelSize;
1463
1462
  gl.viewport(0, 0, pixelSize, pixelSize);
@@ -1490,32 +1489,74 @@ function createCloudRenderer(canvas, color) {
1490
1489
  function cloudFallback(color) {
1491
1490
  return `radial-gradient(circle at 50% 47%, rgba(255,255,255,0.92) 0%, ${color} 42%, rgba(80, 88, 220, 0.9) 100%)`;
1492
1491
  }
1493
- function paintCloudSnapshot(canvas, color, state) {
1492
+ function devicePixelScale() {
1493
+ return Math.min(typeof window === "undefined" ? 1 : window.devicePixelRatio || 1, 2);
1494
+ }
1495
+ var SNAPSHOT_CACHE = /* @__PURE__ */ new Map();
1496
+ var MIN_MASTER_PX = 64;
1497
+ function masterSizeFor(devicePx) {
1498
+ const ceiling = Math.max(1, Math.round(ORB_DIAMETER * devicePixelScale()));
1499
+ let size = MIN_MASTER_PX;
1500
+ while (size < devicePx && size < ceiling) size *= 2;
1501
+ return Math.min(size, ceiling);
1502
+ }
1503
+ function cloudSnapshotSource(color, state, devicePx) {
1504
+ const activity = sampleOrbCloudMotion(state).activity;
1505
+ const masterPx = masterSizeFor(devicePx);
1506
+ const key = `${color}|${activity}|${masterPx}`;
1507
+ const cached = SNAPSHOT_CACHE.get(key);
1508
+ if (cached !== void 0) return cached;
1494
1509
  const source = document.createElement("canvas");
1495
- const renderer = createCloudRenderer(source, color);
1496
- if (!renderer) return false;
1497
- renderer.draw(0, sampleOrbCloudMotion(state).activity);
1498
- canvas.width = source.width;
1499
- canvas.height = source.height;
1510
+ const renderer = createCloudRenderer(source, color, masterPx);
1511
+ if (!renderer) {
1512
+ SNAPSHOT_CACHE.set(key, null);
1513
+ return null;
1514
+ }
1515
+ renderer.draw(0, activity);
1516
+ const snapshot = document.createElement("canvas");
1517
+ snapshot.width = source.width;
1518
+ snapshot.height = source.height;
1500
1519
  let context;
1501
1520
  try {
1502
- context = canvas.getContext("2d");
1521
+ context = snapshot.getContext("2d");
1503
1522
  } catch {
1504
- renderer.destroy();
1505
- return false;
1523
+ context = null;
1506
1524
  }
1507
1525
  if (!context) {
1508
1526
  renderer.destroy();
1509
- return false;
1527
+ SNAPSHOT_CACHE.set(key, null);
1528
+ return null;
1510
1529
  }
1511
- context.drawImage(source, 0, 0, canvas.width, canvas.height);
1530
+ context.drawImage(source, 0, 0);
1512
1531
  renderer.destroy();
1532
+ SNAPSHOT_CACHE.set(key, snapshot);
1533
+ return snapshot;
1534
+ }
1535
+ function paintCloudSnapshot(canvas, color, state, devicePx) {
1536
+ const source = cloudSnapshotSource(color, state, devicePx);
1537
+ if (!source) return false;
1538
+ const size = Math.max(1, Math.round(devicePx));
1539
+ canvas.width = size;
1540
+ canvas.height = size;
1541
+ let context;
1542
+ try {
1543
+ context = canvas.getContext("2d");
1544
+ } catch {
1545
+ return false;
1546
+ }
1547
+ if (!context) return false;
1548
+ context.drawImage(source, 0, 0, size, size);
1513
1549
  return true;
1514
1550
  }
1515
- function OrbCloud({ color, playing, reducedMotion, state }) {
1551
+ function OrbCloud({ color, playing, reducedMotion, state, size }) {
1516
1552
  const canvasRef = useRef(null);
1517
1553
  const stateRef = useRef(state);
1518
- const rendererKey = `${color}:${playing}:${reducedMotion}`;
1554
+ const stagePx = size ?? 256;
1555
+ const devicePx = Math.max(
1556
+ 1,
1557
+ Math.round(stagePx * ORB_DIAMETER / 256 * devicePixelScale())
1558
+ );
1559
+ const rendererKey = `${color}:${playing}:${reducedMotion}:${devicePx}`;
1519
1560
  const [unavailableRendererKey, setUnavailableRendererKey] = useState(null);
1520
1561
  const webglUnavailable = unavailableRendererKey === rendererKey;
1521
1562
  const continuouslyAnimated = playing && !reducedMotion && !webglUnavailable;
@@ -1528,10 +1569,10 @@ function OrbCloud({ color, playing, reducedMotion, state }) {
1528
1569
  if (!canvas) return;
1529
1570
  canvas.style.background = cloudFallback(color);
1530
1571
  if (!continuouslyAnimated) {
1531
- paintCloudSnapshot(canvas, color, snapshotState ?? stateRef.current);
1572
+ paintCloudSnapshot(canvas, color, snapshotState ?? stateRef.current, devicePx);
1532
1573
  return;
1533
1574
  }
1534
- const renderer = createCloudRenderer(canvas, color);
1575
+ const renderer = createCloudRenderer(canvas, color, devicePx);
1535
1576
  if (!renderer) {
1536
1577
  setUnavailableRendererKey(rendererKey);
1537
1578
  return;
@@ -1559,53 +1600,47 @@ function OrbCloud({ color, playing, reducedMotion, state }) {
1559
1600
  canvas.removeEventListener("webglcontextlost", handleContextLost);
1560
1601
  renderer.destroy();
1561
1602
  };
1562
- }, [color, continuouslyAnimated, rendererKey, snapshotState]);
1563
- return /* @__PURE__ */ jsx(
1564
- "foreignObject",
1603
+ }, [color, continuouslyAnimated, devicePx, rendererKey, snapshotState]);
1604
+ const stageSize = stagePx;
1605
+ const canvasSize = stageSize * ORB_DIAMETER / 256;
1606
+ const cloud2 = /* @__PURE__ */ jsx(
1607
+ "span",
1565
1608
  {
1566
- x: "0",
1567
- y: "0",
1568
- width: "256",
1569
- height: "256",
1570
1609
  "data-avatar-orb-cloud": "",
1571
1610
  "data-avatar-orb-cloud-state": state,
1572
1611
  "data-avatar-orb-cloud-theme": toOrbCloudState(state),
1573
- style: { pointerEvents: "none" },
1612
+ style: {
1613
+ alignItems: "center",
1614
+ display: "flex",
1615
+ height: stageSize,
1616
+ justifyContent: "center",
1617
+ pointerEvents: "none",
1618
+ width: stageSize
1619
+ },
1574
1620
  children: /* @__PURE__ */ jsx(
1575
- "div",
1621
+ "canvas",
1576
1622
  {
1623
+ ref: canvasRef,
1624
+ "aria-hidden": "true",
1625
+ "data-avatar-orb-cloud-alpha": "opaque",
1626
+ "data-avatar-orb-cloud-canvas": "",
1627
+ "data-avatar-orb-cloud-renderer": continuouslyAnimated ? "animated-webgl" : "snapshot-2d",
1577
1628
  style: {
1578
- alignItems: "center",
1579
- display: "flex",
1580
- height: 256,
1581
- justifyContent: "center",
1582
- width: 256
1583
- },
1584
- children: /* @__PURE__ */ jsx(
1585
- "canvas",
1586
- {
1587
- ref: canvasRef,
1588
- "aria-hidden": "true",
1589
- "data-avatar-orb-cloud-alpha": "opaque",
1590
- "data-avatar-orb-cloud-canvas": "",
1591
- "data-avatar-orb-cloud-renderer": continuouslyAnimated ? "animated-webgl" : "snapshot-2d",
1592
- style: {
1593
- borderRadius: "50%",
1594
- clipPath: "circle(50% at 50% 50%)",
1595
- display: "block",
1596
- height: ORB_DIAMETER,
1597
- width: ORB_DIAMETER
1598
- }
1599
- },
1600
- continuouslyAnimated ? "animated-webgl" : "snapshot-2d"
1601
- )
1602
- }
1629
+ borderRadius: "50%",
1630
+ clipPath: "circle(50% at 50% 50%)",
1631
+ display: "block",
1632
+ height: canvasSize,
1633
+ width: canvasSize
1634
+ }
1635
+ },
1636
+ continuouslyAnimated ? "animated-webgl" : "snapshot-2d"
1603
1637
  )
1604
1638
  }
1605
1639
  );
1640
+ return size === void 0 ? /* @__PURE__ */ jsx("foreignObject", { x: "0", y: "0", width: "256", height: "256", "data-avatar-orb-cloud": "", children: cloud2 }) : cloud2;
1606
1641
  }
1607
1642
 
1608
- // src/vendor/ui/agent-avatar/lab/timeline.ts
1643
+ // ../platform-kit/src/ui/agent-avatar/lab/timeline.ts
1609
1644
  var STATE_TRANSITION_DURATION = {
1610
1645
  idle: 0.45,
1611
1646
  attentive: 0.55,
@@ -2035,7 +2070,7 @@ var Avatar = forwardRef(function Avatar2({
2035
2070
  );
2036
2071
  });
2037
2072
 
2038
- // src/vendor/service/agent-avatar-seed.ts
2073
+ // src/adapters/service/agent-avatar-seed.ts
2039
2074
  var SEEDED_AGENT_AVATAR_COLORS = [
2040
2075
  "#E8483F",
2041
2076
  "#F08A24",
@@ -2058,7 +2093,7 @@ function pickAgentAvatarColor(seed) {
2058
2093
  return SEEDED_AGENT_AVATAR_COLORS[(hash >>> 0) % SEEDED_AGENT_AVATAR_COLORS.length];
2059
2094
  }
2060
2095
 
2061
- // src/vendor/service/agent-avatar-config.ts
2096
+ // src/adapters/service/agent-avatar-config.ts
2062
2097
  var AGENT_AVATAR_SHAPES = [
2063
2098
  "orb",
2064
2099
  "round",
@@ -2088,7 +2123,7 @@ z.object({
2088
2123
  face: z.enum(["square", "none"]).optional()
2089
2124
  }).strict();
2090
2125
 
2091
- // src/vendor/service/agent-history-contract.ts
2126
+ // src/adapters/service/agent-history-contract.ts
2092
2127
  var HISTORY_CITATION_PREFIX = "/cite/history/";
2093
2128
  function historyCitationReference(href) {
2094
2129
  if (!href.startsWith(HISTORY_CITATION_PREFIX)) return null;
@@ -2096,7 +2131,7 @@ function historyCitationReference(href) {
2096
2131
  return reference.length <= 16e3 && /^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/.test(reference) ? reference : null;
2097
2132
  }
2098
2133
 
2099
- // src/vendor/service-types.ts
2134
+ // src/adapters/service-types.ts
2100
2135
  var FORMAT_EXT = {
2101
2136
  markdown: "md",
2102
2137
  csv: "csv",
@@ -2108,7 +2143,7 @@ var FORMAT_EXT = {
2108
2143
  canvas: "html"
2109
2144
  };
2110
2145
 
2111
- // src/vendor/ui/agent-avatar/types.ts
2146
+ // ../platform-kit/src/ui/agent-avatar/types.ts
2112
2147
  var DEFAULT_AGENT_AVATAR_CONFIG = {
2113
2148
  version: 4,
2114
2149
  shape: "orb",
@@ -2143,9 +2178,25 @@ var AgentAvatarView = memo(function AgentAvatarView2({
2143
2178
  className,
2144
2179
  label
2145
2180
  }) {
2181
+ const reducedMotion = useReducedMotion(animated ? void 0 : true);
2146
2182
  const persistedIdentity = normalizeAgentAvatarConfig(config, seed ?? name);
2147
2183
  const identity = { ...persistedIdentity, faceTone: "light" };
2148
2184
  const accessibleLabel = label ?? `${name?.trim() || "Agent"} avatar`;
2185
+ if (identity.shape === "orb") {
2186
+ return /* @__PURE__ */ jsx(
2187
+ "span",
2188
+ {
2189
+ role: "img",
2190
+ "aria-label": accessibleLabel,
2191
+ "data-avatar-root": "",
2192
+ "data-avatar-state": state,
2193
+ "data-avatar-presentation": "free",
2194
+ className: cn("block shrink-0 overflow-hidden", className),
2195
+ style: { width: size, height: size },
2196
+ children: /* @__PURE__ */ jsx(OrbCloud, { color: identity.color, playing: animated, reducedMotion, state, size })
2197
+ }
2198
+ );
2199
+ }
2149
2200
  return /* @__PURE__ */ jsx(
2150
2201
  Avatar,
2151
2202
  {
@@ -1,10 +1,36 @@
1
1
  'use client';
2
- import { describeToolRow, getToolMeta, Shimmer, Collapse } from './chunk-FDGBZFGN.js';
3
- import { cn } from './chunk-XLX3L3P4.js';
4
- import { Code2Icon, ChevronDownMediumIcon, ProcessorIcon } from './chunk-AFVU5VT6.js';
2
+ import { describeToolRow, Code2Icon, getToolMeta, Shimmer, Collapse } from './chunk-PKNEC4LJ.js';
3
+ import { ChevronDownMediumIcon } from './chunk-UWKO24VT.js';
4
+ import { cn } from './chunk-LGVMMBL3.js';
5
5
  import { memo, useState, useMemo } from 'react';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
 
8
+ function ProcessorIcon(props) {
9
+ return /* @__PURE__ */ jsx(
10
+ "svg",
11
+ {
12
+ "aria-hidden": "true",
13
+ role: "img",
14
+ "aria-label": "processor, chip",
15
+ width: "24px",
16
+ height: "24px",
17
+ viewBox: "0 0 24 24",
18
+ fill: "none",
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ ...props,
21
+ children: /* @__PURE__ */ jsx(
22
+ "path",
23
+ {
24
+ d: "M12.0002 4.74693V2.74609M16 4.75V2.75M8.00018 4.75V2.74609M12 21.25V19.25M16 21.25V19.25M8 21.25V19.25M19.25 16H21.25M19.25 8H21.25M19.25 12H21.25M2.75 12H4.75M2.75 16H4.75M2.75 8H4.75M15.2488 11.999C15.2488 13.7939 13.7937 15.249 11.9988 15.249C10.2039 15.249 8.74878 13.7939 8.74878 11.999C8.74878 10.2041 10.2039 8.74902 11.9988 8.74902C13.7937 8.74902 15.2488 10.2041 15.2488 11.999ZM7.75 19.25H16.25C17.9069 19.25 19.25 17.9069 19.25 16.25V7.75C19.25 6.09315 17.9069 4.75 16.25 4.75H7.75C6.09315 4.75 4.75 6.09315 4.75 7.75V16.25C4.75 17.9069 6.09315 19.25 7.75 19.25Z",
25
+ stroke: "currentColor",
26
+ strokeWidth: "1.5",
27
+ strokeLinecap: "round",
28
+ strokeLinejoin: "round"
29
+ }
30
+ )
31
+ }
32
+ );
33
+ }
8
34
  var RUNNING_STATES = /* @__PURE__ */ new Set([
9
35
  "input-streaming",
10
36
  "partial-call",
@@ -212,4 +238,4 @@ var ToolCallItem = memo(function ToolCallItem2({
212
238
  ] });
213
239
  });
214
240
 
215
- export { ToolCallItem };
241
+ export { ProcessorIcon, ToolCallItem };
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { usePortalContainer, cn } from './chunk-XLX3L3P4.js';
3
- import { CrossMediumIcon } from './chunk-AFVU5VT6.js';
2
+ import { CrossMediumIcon } from './chunk-2P4IEVOQ.js';
3
+ import { usePortalContainer, cn } from './chunk-LGVMMBL3.js';
4
4
  import * as PopoverPrimitive from '@radix-ui/react-popover';
5
5
  import { jsx, jsxs } from 'react/jsx-runtime';
6
6
  import * as DialogPrimitive from '@radix-ui/react-dialog';
@@ -64,14 +64,7 @@ function SheetPortal({
64
64
  ...props
65
65
  }) {
66
66
  const container = usePortalContainer();
67
- return /* @__PURE__ */ jsx(
68
- DialogPrimitive.Portal,
69
- {
70
- "data-slot": "sheet-portal",
71
- ...container ? { container } : {},
72
- ...props
73
- }
74
- );
67
+ return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...container ? { container } : {}, ...props });
75
68
  }
76
69
  function SheetOverlay({
77
70
  className,