@uninspired/cookie-banner 0.0.2 → 0.0.4

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,27 +1,304 @@
1
1
  import * as React from "react";
2
- import React__default, { forwardRef, createElement, useMemo, useState, useEffect, useCallback, useContext, createContext } from "react";
2
+ import React__default, { forwardRef, createElement, useMemo, useState, useEffect, useCallback, createContext, useContext } from "react";
3
3
  import * as ReactDOM from "react-dom";
4
- var l;
5
- function k(n) {
6
- return n.children;
7
- }
8
- l = { __e: function(n, l2, u2, t) {
9
- for (var i, r, o; l2 = l2.__; ) if ((i = l2.__c) && !i.__) try {
10
- if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), o = i.__d), o) return i.__E = i;
11
- } catch (l3) {
12
- n = l3;
13
- }
14
- throw n;
15
- } }, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout;
16
- var f = 0;
17
- function u(e, t, n, o, i, u2) {
18
- t || (t = {});
19
- var a, c, p = t;
20
- if ("ref" in p) for (c in p = {}, t) "ref" == c ? a = t[c] : p[c] = t[c];
21
- var l$1 = { type: e, props: p, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f, __i: -1, __u: 0, __source: i, __self: u2 };
22
- if ("function" == typeof e && (a = e.defaultProps)) for (c in a) void 0 === p[c] && (p[c] = a[c]);
23
- return l.vnode && l.vnode(l$1), l$1;
4
+ var jsxRuntime = { exports: {} };
5
+ var reactJsxRuntime_production = {};
6
+ var hasRequiredReactJsxRuntime_production;
7
+ function requireReactJsxRuntime_production() {
8
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
9
+ hasRequiredReactJsxRuntime_production = 1;
10
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
11
+ function jsxProd(type, config2, maybeKey) {
12
+ var key = null;
13
+ void 0 !== maybeKey && (key = "" + maybeKey);
14
+ void 0 !== config2.key && (key = "" + config2.key);
15
+ if ("key" in config2) {
16
+ maybeKey = {};
17
+ for (var propName in config2)
18
+ "key" !== propName && (maybeKey[propName] = config2[propName]);
19
+ } else maybeKey = config2;
20
+ config2 = maybeKey.ref;
21
+ return {
22
+ $$typeof: REACT_ELEMENT_TYPE,
23
+ type,
24
+ key,
25
+ ref: void 0 !== config2 ? config2 : null,
26
+ props: maybeKey
27
+ };
28
+ }
29
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
30
+ reactJsxRuntime_production.jsx = jsxProd;
31
+ reactJsxRuntime_production.jsxs = jsxProd;
32
+ return reactJsxRuntime_production;
33
+ }
34
+ var reactJsxRuntime_development = {};
35
+ var hasRequiredReactJsxRuntime_development;
36
+ function requireReactJsxRuntime_development() {
37
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
38
+ hasRequiredReactJsxRuntime_development = 1;
39
+ "production" !== process.env.NODE_ENV && (function() {
40
+ function getComponentNameFromType(type) {
41
+ if (null == type) return null;
42
+ if ("function" === typeof type)
43
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
44
+ if ("string" === typeof type) return type;
45
+ switch (type) {
46
+ case REACT_FRAGMENT_TYPE:
47
+ return "Fragment";
48
+ case REACT_PROFILER_TYPE:
49
+ return "Profiler";
50
+ case REACT_STRICT_MODE_TYPE:
51
+ return "StrictMode";
52
+ case REACT_SUSPENSE_TYPE:
53
+ return "Suspense";
54
+ case REACT_SUSPENSE_LIST_TYPE:
55
+ return "SuspenseList";
56
+ case REACT_ACTIVITY_TYPE:
57
+ return "Activity";
58
+ }
59
+ if ("object" === typeof type)
60
+ switch ("number" === typeof type.tag && console.error(
61
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
62
+ ), type.$$typeof) {
63
+ case REACT_PORTAL_TYPE:
64
+ return "Portal";
65
+ case REACT_CONTEXT_TYPE:
66
+ return type.displayName || "Context";
67
+ case REACT_CONSUMER_TYPE:
68
+ return (type._context.displayName || "Context") + ".Consumer";
69
+ case REACT_FORWARD_REF_TYPE:
70
+ var innerType = type.render;
71
+ type = type.displayName;
72
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
73
+ return type;
74
+ case REACT_MEMO_TYPE:
75
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
76
+ case REACT_LAZY_TYPE:
77
+ innerType = type._payload;
78
+ type = type._init;
79
+ try {
80
+ return getComponentNameFromType(type(innerType));
81
+ } catch (x) {
82
+ }
83
+ }
84
+ return null;
85
+ }
86
+ function testStringCoercion(value) {
87
+ return "" + value;
88
+ }
89
+ function checkKeyStringCoercion(value) {
90
+ try {
91
+ var JSCompiler_inline_result = false;
92
+ } catch (e) {
93
+ JSCompiler_inline_result = true;
94
+ }
95
+ if (JSCompiler_inline_result) {
96
+ JSCompiler_inline_result = console;
97
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
98
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
99
+ JSCompiler_temp_const.call(
100
+ JSCompiler_inline_result,
101
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
102
+ JSCompiler_inline_result$jscomp$0
103
+ );
104
+ return testStringCoercion(value);
105
+ }
106
+ }
107
+ function getTaskName(type) {
108
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
109
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
110
+ return "<...>";
111
+ try {
112
+ var name = getComponentNameFromType(type);
113
+ return name ? "<" + name + ">" : "<...>";
114
+ } catch (x) {
115
+ return "<...>";
116
+ }
117
+ }
118
+ function getOwner() {
119
+ var dispatcher = ReactSharedInternals.A;
120
+ return null === dispatcher ? null : dispatcher.getOwner();
121
+ }
122
+ function UnknownOwner() {
123
+ return Error("react-stack-top-frame");
124
+ }
125
+ function hasValidKey(config2) {
126
+ if (hasOwnProperty.call(config2, "key")) {
127
+ var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
128
+ if (getter && getter.isReactWarning) return false;
129
+ }
130
+ return void 0 !== config2.key;
131
+ }
132
+ function defineKeyPropWarningGetter(props, displayName) {
133
+ function warnAboutAccessingKey() {
134
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
135
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
136
+ displayName
137
+ ));
138
+ }
139
+ warnAboutAccessingKey.isReactWarning = true;
140
+ Object.defineProperty(props, "key", {
141
+ get: warnAboutAccessingKey,
142
+ configurable: true
143
+ });
144
+ }
145
+ function elementRefGetterWithDeprecationWarning() {
146
+ var componentName = getComponentNameFromType(this.type);
147
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
148
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
149
+ ));
150
+ componentName = this.props.ref;
151
+ return void 0 !== componentName ? componentName : null;
152
+ }
153
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
154
+ var refProp = props.ref;
155
+ type = {
156
+ $$typeof: REACT_ELEMENT_TYPE,
157
+ type,
158
+ key,
159
+ props,
160
+ _owner: owner
161
+ };
162
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
163
+ enumerable: false,
164
+ get: elementRefGetterWithDeprecationWarning
165
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
166
+ type._store = {};
167
+ Object.defineProperty(type._store, "validated", {
168
+ configurable: false,
169
+ enumerable: false,
170
+ writable: true,
171
+ value: 0
172
+ });
173
+ Object.defineProperty(type, "_debugInfo", {
174
+ configurable: false,
175
+ enumerable: false,
176
+ writable: true,
177
+ value: null
178
+ });
179
+ Object.defineProperty(type, "_debugStack", {
180
+ configurable: false,
181
+ enumerable: false,
182
+ writable: true,
183
+ value: debugStack
184
+ });
185
+ Object.defineProperty(type, "_debugTask", {
186
+ configurable: false,
187
+ enumerable: false,
188
+ writable: true,
189
+ value: debugTask
190
+ });
191
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
192
+ return type;
193
+ }
194
+ function jsxDEVImpl(type, config2, maybeKey, isStaticChildren, debugStack, debugTask) {
195
+ var children = config2.children;
196
+ if (void 0 !== children)
197
+ if (isStaticChildren)
198
+ if (isArrayImpl(children)) {
199
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
200
+ validateChildKeys(children[isStaticChildren]);
201
+ Object.freeze && Object.freeze(children);
202
+ } else
203
+ console.error(
204
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
205
+ );
206
+ else validateChildKeys(children);
207
+ if (hasOwnProperty.call(config2, "key")) {
208
+ children = getComponentNameFromType(type);
209
+ var keys = Object.keys(config2).filter(function(k) {
210
+ return "key" !== k;
211
+ });
212
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
213
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
214
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
215
+ isStaticChildren,
216
+ children,
217
+ keys,
218
+ children
219
+ ), didWarnAboutKeySpread[children + isStaticChildren] = true);
220
+ }
221
+ children = null;
222
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
223
+ hasValidKey(config2) && (checkKeyStringCoercion(config2.key), children = "" + config2.key);
224
+ if ("key" in config2) {
225
+ maybeKey = {};
226
+ for (var propName in config2)
227
+ "key" !== propName && (maybeKey[propName] = config2[propName]);
228
+ } else maybeKey = config2;
229
+ children && defineKeyPropWarningGetter(
230
+ maybeKey,
231
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
232
+ );
233
+ return ReactElement(
234
+ type,
235
+ children,
236
+ maybeKey,
237
+ getOwner(),
238
+ debugStack,
239
+ debugTask
240
+ );
241
+ }
242
+ function validateChildKeys(node) {
243
+ isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
244
+ }
245
+ function isValidElement(object2) {
246
+ return "object" === typeof object2 && null !== object2 && object2.$$typeof === REACT_ELEMENT_TYPE;
247
+ }
248
+ var React2 = React__default, REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
249
+ return null;
250
+ };
251
+ React2 = {
252
+ react_stack_bottom_frame: function(callStackForError) {
253
+ return callStackForError();
254
+ }
255
+ };
256
+ var specialPropKeyWarningShown;
257
+ var didWarnAboutElementRef = {};
258
+ var unknownOwnerDebugStack = React2.react_stack_bottom_frame.bind(
259
+ React2,
260
+ UnknownOwner
261
+ )();
262
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
263
+ var didWarnAboutKeySpread = {};
264
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
265
+ reactJsxRuntime_development.jsx = function(type, config2, maybeKey) {
266
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
267
+ return jsxDEVImpl(
268
+ type,
269
+ config2,
270
+ maybeKey,
271
+ false,
272
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
273
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
274
+ );
275
+ };
276
+ reactJsxRuntime_development.jsxs = function(type, config2, maybeKey) {
277
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
278
+ return jsxDEVImpl(
279
+ type,
280
+ config2,
281
+ maybeKey,
282
+ true,
283
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
284
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
285
+ );
286
+ };
287
+ })();
288
+ return reactJsxRuntime_development;
289
+ }
290
+ var hasRequiredJsxRuntime;
291
+ function requireJsxRuntime() {
292
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
293
+ hasRequiredJsxRuntime = 1;
294
+ if (process.env.NODE_ENV === "production") {
295
+ jsxRuntime.exports = /* @__PURE__ */ requireReactJsxRuntime_production();
296
+ } else {
297
+ jsxRuntime.exports = /* @__PURE__ */ requireReactJsxRuntime_development();
298
+ }
299
+ return jsxRuntime.exports;
24
300
  }
301
+ var jsxRuntimeExports = /* @__PURE__ */ requireJsxRuntime();
25
302
  function cls(...classes2) {
26
303
  return classes2.filter(Boolean).join(" ");
27
304
  }
@@ -39,7 +316,7 @@ const classes$4 = {
39
316
  ghost
40
317
  };
41
318
  const Button = ({ variant = "neutral", ...rest }) => {
42
- return /* @__PURE__ */ u("button", { className: cls(classes$4.root, classes$4[variant]), ...rest });
319
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: cls(classes$4.root, classes$4[variant]), ...rest });
43
320
  };
44
321
  const root$3 = "_root_14l5h_1";
45
322
  const muted = "_muted_14l5h_4";
@@ -65,7 +342,7 @@ const Text = ({
65
342
  const Component = as ?? "span";
66
343
  return (
67
344
  // @ts-ignore
68
- /* @__PURE__ */ u(
345
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
69
346
  Component,
70
347
  {
71
348
  className: cls(
@@ -139,9 +416,9 @@ function $constructor(name, initializer2, params) {
139
416
  const proto = _.prototype;
140
417
  const keys = Object.keys(proto);
141
418
  for (let i = 0; i < keys.length; i++) {
142
- const k2 = keys[i];
143
- if (!(k2 in inst)) {
144
- inst[k2] = proto[k2].bind(inst);
419
+ const k = keys[i];
420
+ if (!(k in inst)) {
421
+ inst[k] = proto[k].bind(inst);
145
422
  }
146
423
  }
147
424
  }
@@ -257,8 +534,8 @@ function normalizeParams(_params) {
257
534
  return {};
258
535
  }
259
536
  function optionalKeys(shape) {
260
- return Object.keys(shape).filter((k2) => {
261
- return shape[k2]._zod.optin === "optional" && shape[k2]._zod.optout === "optional";
537
+ return Object.keys(shape).filter((k) => {
538
+ return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
262
539
  });
263
540
  }
264
541
  function aborted(x, startIndex = 0) {
@@ -541,9 +818,9 @@ function handlePropertyResult(result, final, key, input, isOptionalOut) {
541
818
  }
542
819
  function normalizeDef(def) {
543
820
  const keys = Object.keys(def.shape);
544
- for (const k2 of keys) {
545
- if (!def.shape?.[k2]?._zod?.traits?.has("$ZodType")) {
546
- throw new Error(`Invalid element at key "${k2}": expected a Zod schema`);
821
+ for (const k of keys) {
822
+ if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) {
823
+ throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
547
824
  }
548
825
  }
549
826
  const okeys = optionalKeys(def.shape);
@@ -728,11 +1005,11 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
728
1005
  const pv = option._zod.propValues;
729
1006
  if (!pv || Object.keys(pv).length === 0)
730
1007
  throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
731
- for (const [k2, v] of Object.entries(pv)) {
732
- if (!propValues[k2])
733
- propValues[k2] = /* @__PURE__ */ new Set();
1008
+ for (const [k, v] of Object.entries(pv)) {
1009
+ if (!propValues[k])
1010
+ propValues[k] = /* @__PURE__ */ new Set();
734
1011
  for (const val of v) {
735
- propValues[k2].add(val);
1012
+ propValues[k].add(val);
736
1013
  }
737
1014
  }
738
1015
  }
@@ -1090,7 +1367,7 @@ function createContext2(rootComponentName, defaultContext) {
1090
1367
  const Provider = (props) => {
1091
1368
  const { children, ...context } = props;
1092
1369
  const value = React.useMemo(() => context, Object.values(context));
1093
- return /* @__PURE__ */ u(Context.Provider, { value, children });
1370
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Context.Provider, { value, children });
1094
1371
  };
1095
1372
  Provider.displayName = rootComponentName + "Provider";
1096
1373
  function useContext2(consumerName) {
@@ -1111,7 +1388,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
1111
1388
  const { scope, children, ...context } = props;
1112
1389
  const Context = scope?.[scopeName]?.[index] || BaseContext;
1113
1390
  const value = React.useMemo(() => context, Object.values(context));
1114
- return /* @__PURE__ */ u(Context.Provider, { value, children });
1391
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Context.Provider, { value, children });
1115
1392
  };
1116
1393
  Provider.displayName = rootComponentName + "Provider";
1117
1394
  function useContext2(consumerName, scope) {
@@ -1209,9 +1486,9 @@ function createSlot(ownerName) {
1209
1486
  return child;
1210
1487
  }
1211
1488
  });
1212
- return /* @__PURE__ */ u(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
1489
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
1213
1490
  }
1214
- return /* @__PURE__ */ u(SlotClone, { ...slotProps, ref: forwardedRef, children });
1491
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
1215
1492
  });
1216
1493
  Slot2.displayName = `${ownerName}.Slot`;
1217
1494
  return Slot2;
@@ -1285,7 +1562,7 @@ function createCollection(name) {
1285
1562
  const { scope, children } = props;
1286
1563
  const ref = React__default.useRef(null);
1287
1564
  const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
1288
- return /* @__PURE__ */ u(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
1565
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
1289
1566
  };
1290
1567
  CollectionProvider.displayName = PROVIDER_NAME;
1291
1568
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
@@ -1295,7 +1572,7 @@ function createCollection(name) {
1295
1572
  const { scope, children } = props;
1296
1573
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
1297
1574
  const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
1298
- return /* @__PURE__ */ u(CollectionSlotImpl, { ref: composedRefs, children });
1575
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CollectionSlotImpl, { ref: composedRefs, children });
1299
1576
  }
1300
1577
  );
1301
1578
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
@@ -1312,7 +1589,7 @@ function createCollection(name) {
1312
1589
  context.itemMap.set(ref, { ref, ...itemData });
1313
1590
  return () => void context.itemMap.delete(ref);
1314
1591
  });
1315
- return /* @__PURE__ */ u(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
1592
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
1316
1593
  }
1317
1594
  );
1318
1595
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
@@ -1437,7 +1714,7 @@ var Primitive = NODES.reduce((primitive, node) => {
1437
1714
  if (typeof window !== "undefined") {
1438
1715
  window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
1439
1716
  }
1440
- return /* @__PURE__ */ u(Comp, { ...primitiveProps, ref: forwardedRef });
1717
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Comp, { ...primitiveProps, ref: forwardedRef });
1441
1718
  });
1442
1719
  Node2.displayName = `Primitive.${node}`;
1443
1720
  return { ...primitive, [node]: Node2 };
@@ -1595,7 +1872,7 @@ var Collapsible = React.forwardRef(
1595
1872
  onChange: onOpenChange,
1596
1873
  caller: COLLAPSIBLE_NAME
1597
1874
  });
1598
- return /* @__PURE__ */ u(
1875
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1599
1876
  CollapsibleProvider,
1600
1877
  {
1601
1878
  scope: __scopeCollapsible,
@@ -1603,7 +1880,7 @@ var Collapsible = React.forwardRef(
1603
1880
  contentId: useId(),
1604
1881
  open: open2,
1605
1882
  onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
1606
- children: /* @__PURE__ */ u(
1883
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1607
1884
  Primitive.div,
1608
1885
  {
1609
1886
  "data-state": getState$3(open2),
@@ -1622,7 +1899,7 @@ var CollapsibleTrigger = React.forwardRef(
1622
1899
  (props, forwardedRef) => {
1623
1900
  const { __scopeCollapsible, ...triggerProps } = props;
1624
1901
  const context = useCollapsibleContext(TRIGGER_NAME$2, __scopeCollapsible);
1625
- return /* @__PURE__ */ u(
1902
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1626
1903
  Primitive.button,
1627
1904
  {
1628
1905
  type: "button",
@@ -1644,7 +1921,7 @@ var CollapsibleContent = React.forwardRef(
1644
1921
  (props, forwardedRef) => {
1645
1922
  const { forceMount, ...contentProps } = props;
1646
1923
  const context = useCollapsibleContext(CONTENT_NAME$2, props.__scopeCollapsible);
1647
- return /* @__PURE__ */ u(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ u(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
1924
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
1648
1925
  }
1649
1926
  );
1650
1927
  CollapsibleContent.displayName = CONTENT_NAME$2;
@@ -1684,7 +1961,7 @@ var CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {
1684
1961
  setIsPresent(present);
1685
1962
  }
1686
1963
  }, [context.open, present]);
1687
- return /* @__PURE__ */ u(
1964
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1688
1965
  Primitive.div,
1689
1966
  {
1690
1967
  "data-state": getState$3(context.open),
@@ -1726,7 +2003,7 @@ var Accordion = React__default.forwardRef(
1726
2003
  const { type, ...accordionProps } = props;
1727
2004
  const singleProps = accordionProps;
1728
2005
  const multipleProps = accordionProps;
1729
- return /* @__PURE__ */ u(Collection.Provider, { scope: props.__scopeAccordion, children: type === "multiple" ? /* @__PURE__ */ u(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ u(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });
2006
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Collection.Provider, { scope: props.__scopeAccordion, children: type === "multiple" ? /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });
1730
2007
  }
1731
2008
  );
1732
2009
  Accordion.displayName = ACCORDION_NAME;
@@ -1751,14 +2028,14 @@ var AccordionImplSingle = React__default.forwardRef(
1751
2028
  onChange: onValueChange,
1752
2029
  caller: ACCORDION_NAME
1753
2030
  });
1754
- return /* @__PURE__ */ u(
2031
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1755
2032
  AccordionValueProvider,
1756
2033
  {
1757
2034
  scope: props.__scopeAccordion,
1758
2035
  value: React__default.useMemo(() => value ? [value] : [], [value]),
1759
2036
  onItemOpen: setValue,
1760
2037
  onItemClose: React__default.useCallback(() => collapsible2 && setValue(""), [collapsible2, setValue]),
1761
- children: /* @__PURE__ */ u(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: collapsible2, children: /* @__PURE__ */ u(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })
2038
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: collapsible2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })
1762
2039
  }
1763
2040
  );
1764
2041
  }
@@ -1785,14 +2062,14 @@ var AccordionImplMultiple = React__default.forwardRef((props, forwardedRef) => {
1785
2062
  (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
1786
2063
  [setValue]
1787
2064
  );
1788
- return /* @__PURE__ */ u(
2065
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1789
2066
  AccordionValueProvider,
1790
2067
  {
1791
2068
  scope: props.__scopeAccordion,
1792
2069
  value,
1793
2070
  onItemOpen: handleItemOpen,
1794
2071
  onItemClose: handleItemClose,
1795
- children: /* @__PURE__ */ u(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ u(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })
2072
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })
1796
2073
  }
1797
2074
  );
1798
2075
  });
@@ -1867,14 +2144,14 @@ var AccordionImpl = React__default.forwardRef(
1867
2144
  const clampedIndex = nextIndex % triggerCount;
1868
2145
  triggerCollection[clampedIndex].ref.current?.focus();
1869
2146
  });
1870
- return /* @__PURE__ */ u(
2147
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1871
2148
  AccordionImplProvider,
1872
2149
  {
1873
2150
  scope: __scopeAccordion,
1874
2151
  disabled,
1875
2152
  direction: dir,
1876
2153
  orientation,
1877
- children: /* @__PURE__ */ u(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ u(
2154
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1878
2155
  Primitive.div,
1879
2156
  {
1880
2157
  ...accordionProps,
@@ -1898,14 +2175,14 @@ var AccordionItem = React__default.forwardRef(
1898
2175
  const triggerId = useId();
1899
2176
  const open2 = value && valueContext.value.includes(value) || false;
1900
2177
  const disabled = accordionContext.disabled || props.disabled;
1901
- return /* @__PURE__ */ u(
2178
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1902
2179
  AccordionItemProvider,
1903
2180
  {
1904
2181
  scope: __scopeAccordion,
1905
2182
  open: open2,
1906
2183
  disabled,
1907
2184
  triggerId,
1908
- children: /* @__PURE__ */ u(
2185
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1909
2186
  Root$2,
1910
2187
  {
1911
2188
  "data-orientation": accordionContext.orientation,
@@ -1935,7 +2212,7 @@ var AccordionHeader = React__default.forwardRef(
1935
2212
  const { __scopeAccordion, ...headerProps } = props;
1936
2213
  const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
1937
2214
  const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
1938
- return /* @__PURE__ */ u(
2215
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1939
2216
  Primitive.h3,
1940
2217
  {
1941
2218
  "data-orientation": accordionContext.orientation,
@@ -1956,7 +2233,7 @@ var AccordionTrigger = React__default.forwardRef(
1956
2233
  const itemContext = useAccordionItemContext(TRIGGER_NAME$1, __scopeAccordion);
1957
2234
  const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME$1, __scopeAccordion);
1958
2235
  const collapsibleScope = useCollapsibleScope(__scopeAccordion);
1959
- return /* @__PURE__ */ u(Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ u(
2236
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1960
2237
  Trigger,
1961
2238
  {
1962
2239
  "aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
@@ -1977,7 +2254,7 @@ var AccordionContent = React__default.forwardRef(
1977
2254
  const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
1978
2255
  const itemContext = useAccordionItemContext(CONTENT_NAME$1, __scopeAccordion);
1979
2256
  const collapsibleScope = useCollapsibleScope(__scopeAccordion);
1980
- return /* @__PURE__ */ u(
2257
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1981
2258
  Content$1,
1982
2259
  {
1983
2260
  role: "region",
@@ -2154,8 +2431,8 @@ var Switch$1 = React.forwardRef(
2154
2431
  onChange: onCheckedChange,
2155
2432
  caller: SWITCH_NAME
2156
2433
  });
2157
- return /* @__PURE__ */ u(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [
2158
- /* @__PURE__ */ u(
2434
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [
2435
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
2159
2436
  Primitive.button,
2160
2437
  {
2161
2438
  type: "button",
@@ -2177,7 +2454,7 @@ var Switch$1 = React.forwardRef(
2177
2454
  })
2178
2455
  }
2179
2456
  ),
2180
- isFormControl && /* @__PURE__ */ u(
2457
+ isFormControl && /* @__PURE__ */ jsxRuntimeExports.jsx(
2181
2458
  SwitchBubbleInput,
2182
2459
  {
2183
2460
  control: button,
@@ -2200,7 +2477,7 @@ var SwitchThumb = React.forwardRef(
2200
2477
  (props, forwardedRef) => {
2201
2478
  const { __scopeSwitch, ...thumbProps } = props;
2202
2479
  const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
2203
- return /* @__PURE__ */ u(
2480
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
2204
2481
  Primitive.span,
2205
2482
  {
2206
2483
  "data-state": getState$1(context.checked),
@@ -2240,7 +2517,7 @@ var SwitchBubbleInput = React.forwardRef(
2240
2517
  input.dispatchEvent(event);
2241
2518
  }
2242
2519
  }, [prevChecked, checked, bubbles]);
2243
- return /* @__PURE__ */ u(
2520
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
2244
2521
  "input",
2245
2522
  {
2246
2523
  type: "checkbox",
@@ -2275,9 +2552,9 @@ const classes = {
2275
2552
  thumb
2276
2553
  };
2277
2554
  const Switch = ({ label: label2, id, ...rest }) => {
2278
- return /* @__PURE__ */ u("div", { className: classes.root, children: [
2279
- label2 && /* @__PURE__ */ u(Text, { className: classes.label, as: "label", htmlFor: id, children: label2 }),
2280
- /* @__PURE__ */ u(Root$1, { className: classes.switch, ...rest, children: /* @__PURE__ */ u(Thumb, { className: classes.thumb }) })
2555
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes.root, children: [
2556
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: classes.label, as: "label", htmlFor: id, children: label2 }),
2557
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Root$1, { className: classes.switch, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Thumb, { className: classes.thumb }) })
2281
2558
  ] });
2282
2559
  };
2283
2560
  const selectionSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ boolean());
@@ -2379,7 +2656,7 @@ const SelectionProvider = ({
2379
2656
  const itemKeys = items.map((item) => item.value);
2380
2657
  return itemKeys.every((key) => selectedKeys.includes(key));
2381
2658
  }, [savedSelection, items]);
2382
- return /* @__PURE__ */ u(
2659
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
2383
2660
  SelectionContext.Provider,
2384
2661
  {
2385
2662
  value: {
@@ -2426,14 +2703,14 @@ const BannerItem = ({
2426
2703
  [required, toggleSelection, value]
2427
2704
  );
2428
2705
  const disabled = useMemo(() => required, [required]);
2429
- return /* @__PURE__ */ u(Item, { value, className: classes$1.root, children: [
2430
- /* @__PURE__ */ u("div", { className: classes$1.header, children: [
2431
- /* @__PURE__ */ u(Trigger2, { asChild: true, children: /* @__PURE__ */ u("div", { className: classes$1.label, children: [
2432
- /* @__PURE__ */ u(Text, { weight: "bold", children: label2 }),
2433
- sublabel && /* @__PURE__ */ u(Text, { size: "caption", color: "muted", children: sublabel })
2706
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Item, { value, className: classes$1.root, children: [
2707
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes$1.header, children: [
2708
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Trigger2, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes$1.label, children: [
2709
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { weight: "bold", children: label2 }),
2710
+ sublabel && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "caption", color: "muted", children: sublabel })
2434
2711
  ] }) }),
2435
- /* @__PURE__ */ u("div", { className: classes$1.actions, children: [
2436
- /* @__PURE__ */ u(
2712
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes$1.actions, children: [
2713
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
2437
2714
  Switch,
2438
2715
  {
2439
2716
  checked,
@@ -2441,7 +2718,7 @@ const BannerItem = ({
2441
2718
  disabled
2442
2719
  }
2443
2720
  ),
2444
- /* @__PURE__ */ u(Trigger2, { asChild: true, children: /* @__PURE__ */ u(
2721
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Trigger2, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2445
2722
  ChevronDown,
2446
2723
  {
2447
2724
  size: 16,
@@ -2453,7 +2730,7 @@ const BannerItem = ({
2453
2730
  ) })
2454
2731
  ] })
2455
2732
  ] }),
2456
- description2 && /* @__PURE__ */ u(Content2, { className: classes$1.description, children: /* @__PURE__ */ u(
2733
+ description2 && /* @__PURE__ */ jsxRuntimeExports.jsx(Content2, { className: classes$1.description, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2457
2734
  Text,
2458
2735
  {
2459
2736
  size: "caption",
@@ -2568,7 +2845,7 @@ var DismissableLayer = React.forwardRef(
2568
2845
  document.addEventListener(CONTEXT_UPDATE, handleUpdate);
2569
2846
  return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
2570
2847
  }, []);
2571
- return /* @__PURE__ */ u(
2848
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
2572
2849
  Primitive.div,
2573
2850
  {
2574
2851
  ...layerProps,
@@ -2602,7 +2879,7 @@ var DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {
2602
2879
  };
2603
2880
  }
2604
2881
  }, [context.branches]);
2605
- return /* @__PURE__ */ u(Primitive.div, { ...props, ref: composedRefs });
2882
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.div, { ...props, ref: composedRefs });
2606
2883
  });
2607
2884
  DismissableLayerBranch.displayName = BRANCH_NAME;
2608
2885
  function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
@@ -2799,7 +3076,7 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
2799
3076
  },
2800
3077
  [loop, trapped, focusScope.paused]
2801
3078
  );
2802
- return /* @__PURE__ */ u(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
3079
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
2803
3080
  });
2804
3081
  FocusScope.displayName = FOCUS_SCOPE_NAME;
2805
3082
  function focusFirst(candidates, { select = false } = {}) {
@@ -2928,7 +3205,7 @@ function __rest(s, e) {
2928
3205
  return t;
2929
3206
  }
2930
3207
  function __spreadArray(to, from, pack) {
2931
- if (pack || arguments.length === 2) for (var i = 0, l2 = from.length, ar; i < l2; i++) {
3208
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2932
3209
  if (ar || !(i in from)) {
2933
3210
  if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2934
3211
  ar[i] = from[i];
@@ -3701,7 +3978,7 @@ var Dialog = (props) => {
3701
3978
  onChange: onOpenChange,
3702
3979
  caller: DIALOG_NAME
3703
3980
  });
3704
- return /* @__PURE__ */ u(
3981
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
3705
3982
  DialogProvider,
3706
3983
  {
3707
3984
  scope: __scopeDialog,
@@ -3725,7 +4002,7 @@ var DialogTrigger = React.forwardRef(
3725
4002
  const { __scopeDialog, ...triggerProps } = props;
3726
4003
  const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
3727
4004
  const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
3728
- return /* @__PURE__ */ u(
4005
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
3729
4006
  Primitive.button,
3730
4007
  {
3731
4008
  type: "button",
@@ -3751,7 +4028,7 @@ var DialogOverlay = React.forwardRef(
3751
4028
  const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
3752
4029
  const { forceMount = portalContext.forceMount, ...overlayProps } = props;
3753
4030
  const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
3754
- return context.modal ? /* @__PURE__ */ u(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ u(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
4031
+ return context.modal ? /* @__PURE__ */ jsxRuntimeExports.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
3755
4032
  }
3756
4033
  );
3757
4034
  DialogOverlay.displayName = OVERLAY_NAME;
@@ -3763,7 +4040,7 @@ var DialogOverlayImpl = React.forwardRef(
3763
4040
  return (
3764
4041
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
3765
4042
  // ie. when `Overlay` and `Content` are siblings
3766
- /* @__PURE__ */ u(ReactRemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ u(
4043
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ReactRemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3767
4044
  Primitive.div,
3768
4045
  {
3769
4046
  "data-state": getState(context.open),
@@ -3781,7 +4058,7 @@ var DialogContent = React.forwardRef(
3781
4058
  const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
3782
4059
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
3783
4060
  const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
3784
- return /* @__PURE__ */ u(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ u(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ u(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
4061
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsxRuntimeExports.jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntimeExports.jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
3785
4062
  }
3786
4063
  );
3787
4064
  DialogContent.displayName = CONTENT_NAME;
@@ -3794,7 +4071,7 @@ var DialogContentModal = React.forwardRef(
3794
4071
  const content = contentRef.current;
3795
4072
  if (content) return hideOthers(content);
3796
4073
  }, []);
3797
- return /* @__PURE__ */ u(
4074
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
3798
4075
  DialogContentImpl,
3799
4076
  {
3800
4077
  ...props,
@@ -3824,7 +4101,7 @@ var DialogContentNonModal = React.forwardRef(
3824
4101
  const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
3825
4102
  const hasInteractedOutsideRef = React.useRef(false);
3826
4103
  const hasPointerDownOutsideRef = React.useRef(false);
3827
- return /* @__PURE__ */ u(
4104
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
3828
4105
  DialogContentImpl,
3829
4106
  {
3830
4107
  ...props,
@@ -3866,8 +4143,8 @@ var DialogContentImpl = React.forwardRef(
3866
4143
  const contentRef = React.useRef(null);
3867
4144
  const composedRefs = useComposedRefs(forwardedRef, contentRef);
3868
4145
  useFocusGuards();
3869
- return /* @__PURE__ */ u(k, { children: [
3870
- /* @__PURE__ */ u(
4146
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
4147
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
3871
4148
  FocusScope,
3872
4149
  {
3873
4150
  asChild: true,
@@ -3875,7 +4152,7 @@ var DialogContentImpl = React.forwardRef(
3875
4152
  trapped: trapFocus,
3876
4153
  onMountAutoFocus: onOpenAutoFocus,
3877
4154
  onUnmountAutoFocus: onCloseAutoFocus,
3878
- children: /* @__PURE__ */ u(
4155
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3879
4156
  DismissableLayer,
3880
4157
  {
3881
4158
  role: "dialog",
@@ -3890,9 +4167,9 @@ var DialogContentImpl = React.forwardRef(
3890
4167
  )
3891
4168
  }
3892
4169
  ),
3893
- /* @__PURE__ */ u(k, { children: [
3894
- /* @__PURE__ */ u(TitleWarning, { titleId: context.titleId }),
3895
- /* @__PURE__ */ u(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
4170
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
4171
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TitleWarning, { titleId: context.titleId }),
4172
+ /* @__PURE__ */ jsxRuntimeExports.jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
3896
4173
  ] })
3897
4174
  ] });
3898
4175
  }
@@ -3902,7 +4179,7 @@ var DialogTitle = React.forwardRef(
3902
4179
  (props, forwardedRef) => {
3903
4180
  const { __scopeDialog, ...titleProps } = props;
3904
4181
  const context = useDialogContext(TITLE_NAME, __scopeDialog);
3905
- return /* @__PURE__ */ u(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
4182
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
3906
4183
  }
3907
4184
  );
3908
4185
  DialogTitle.displayName = TITLE_NAME;
@@ -3911,7 +4188,7 @@ var DialogDescription = React.forwardRef(
3911
4188
  (props, forwardedRef) => {
3912
4189
  const { __scopeDialog, ...descriptionProps } = props;
3913
4190
  const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
3914
- return /* @__PURE__ */ u(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
4191
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
3915
4192
  }
3916
4193
  );
3917
4194
  DialogDescription.displayName = DESCRIPTION_NAME;
@@ -3920,7 +4197,7 @@ var DialogClose = React.forwardRef(
3920
4197
  (props, forwardedRef) => {
3921
4198
  const { __scopeDialog, ...closeProps } = props;
3922
4199
  const context = useDialogContext(CLOSE_NAME, __scopeDialog);
3923
- return /* @__PURE__ */ u(
4200
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
3924
4201
  Primitive.button,
3925
4202
  {
3926
4203
  type: "button",
@@ -3989,26 +4266,26 @@ const BannerContent = ({
3989
4266
  const { onSave, onDeclineAll, selectionTaken } = useSelection();
3990
4267
  const [openItem, setOpenItem] = useState(void 0);
3991
4268
  const [settingsOpen, setSettingsOpen] = useState(defaultSettingsOpen);
3992
- return /* @__PURE__ */ u(Root, { open: !selectionTaken, children: /* @__PURE__ */ u(
4269
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Root, { open: !selectionTaken, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3993
4270
  Content,
3994
4271
  {
3995
4272
  className: cls(classes$2.root, noTarget2 ? classes$2.noTarget : ""),
3996
- children: /* @__PURE__ */ u(
4273
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
3997
4274
  Root$2,
3998
4275
  {
3999
4276
  open: settingsOpen,
4000
4277
  onOpenChange: setSettingsOpen,
4001
4278
  className: classes$2.collapsible,
4002
4279
  children: [
4003
- /* @__PURE__ */ u("div", { className: classes$2.header, children: [
4004
- /* @__PURE__ */ u("div", { className: classes$2.heading, children: [
4005
- /* @__PURE__ */ u(Title, { asChild: true, children: /* @__PURE__ */ u(Text, { weight: "bold", children: heading2 }) }),
4006
- /* @__PURE__ */ u(Description, { asChild: true, children: /* @__PURE__ */ u(Text, { size: "caption", color: "muted", children: subheading }) })
4280
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes$2.header, children: [
4281
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes$2.heading, children: [
4282
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Title, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { weight: "bold", children: heading2 }) }),
4283
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Description, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "caption", color: "muted", children: subheading }) })
4007
4284
  ] }),
4008
- /* @__PURE__ */ u(Trigger, { asChild: true, children: /* @__PURE__ */ u(Button, { variant: "ghost", children: [
4285
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { variant: "ghost", children: [
4009
4286
  settingsOpen ? hideLabel : selectLabel,
4010
4287
  " ",
4011
- /* @__PURE__ */ u(
4288
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
4012
4289
  ChevronUp,
4013
4290
  {
4014
4291
  size: 12,
@@ -4020,29 +4297,29 @@ const BannerContent = ({
4020
4297
  )
4021
4298
  ] }) })
4022
4299
  ] }),
4023
- /* @__PURE__ */ u(
4300
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
4024
4301
  Content$1,
4025
4302
  {
4026
4303
  className: clx({
4027
4304
  [classes$2.settings]: true
4028
4305
  }),
4029
- children: /* @__PURE__ */ u(
4306
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
4030
4307
  Root2,
4031
4308
  {
4032
4309
  type: "single",
4033
4310
  collapsible: true,
4034
4311
  value: openItem,
4035
4312
  onValueChange: setOpenItem,
4036
- children: items.map((item) => /* @__PURE__ */ u(BannerItem, { ...item, openItem }, item.value))
4313
+ children: items.map((item) => /* @__PURE__ */ jsxRuntimeExports.jsx(BannerItem, { ...item, openItem }, item.value))
4037
4314
  }
4038
4315
  )
4039
4316
  }
4040
4317
  ),
4041
- /* @__PURE__ */ u("div", { className: classes$2.footer, children: [
4042
- /* @__PURE__ */ u("div", { className: classes$2.legal, children: privacyPolicy && /* @__PURE__ */ u(Text, { size: "caption", children: /* @__PURE__ */ u("a", { href: privacyPolicy.url, target: "_blank", children: privacyPolicy.label }) }) }),
4043
- /* @__PURE__ */ u("div", { className: classes$2.actions, children: [
4044
- /* @__PURE__ */ u(Close, { asChild: true, children: /* @__PURE__ */ u(Button, { variant: "neutral", onClick: () => onDeclineAll(), children: declineLabel }) }),
4045
- /* @__PURE__ */ u(Close, { asChild: true, children: /* @__PURE__ */ u(Button, { variant: "brand", onClick: () => onSave(), children: saveLabel }) })
4318
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes$2.footer, children: [
4319
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes$2.legal, children: privacyPolicy && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "caption", children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: privacyPolicy.url, target: "_blank", children: privacyPolicy.label }) }) }),
4320
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes$2.actions, children: [
4321
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Close, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "neutral", onClick: () => onDeclineAll(), children: declineLabel }) }),
4322
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Close, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "brand", onClick: () => onSave(), children: saveLabel }) })
4046
4323
  ] })
4047
4324
  ] })
4048
4325
  ]
@@ -4065,7 +4342,7 @@ const Banner = ({
4065
4342
  })),
4066
4343
  [items]
4067
4344
  );
4068
- return /* @__PURE__ */ u(SelectionProvider, { items: selectionItems, localStorageKey, children: /* @__PURE__ */ u(BannerContent, { items, ...rest }) });
4345
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SelectionProvider, { items: selectionItems, localStorageKey, children: /* @__PURE__ */ jsxRuntimeExports.jsx(BannerContent, { items, ...rest }) });
4069
4346
  };
4070
4347
  export {
4071
4348
  Banner