create-airjam 0.1.7 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/index.js +12 -4
  2. package/package.json +10 -8
  3. package/templates/pong/.env.example +7 -0
  4. package/templates/pong/{AI_INSTRUCTIONS.md → AGENTS.md} +9 -2
  5. package/templates/pong/README.md +38 -3
  6. package/templates/pong/airjam-docs/for-agents/page.md +27 -0
  7. package/templates/pong/airjam-docs/getting-started/architecture/page.md +4 -1
  8. package/templates/pong/airjam-docs/getting-started/introduction/page.md +56 -38
  9. package/templates/pong/airjam-docs/getting-started/quick-start/page.md +108 -0
  10. package/templates/pong/airjam-docs/how-it-works/architecture/page.md +168 -0
  11. package/templates/pong/airjam-docs/how-it-works/host-system/page.md +20 -10
  12. package/templates/pong/airjam-docs/sdk/hooks/page.md +13 -11
  13. package/templates/pong/airjam-docs/sdk/networked-state/page.md +1 -1
  14. package/templates/pong/package.json +6 -3
  15. package/templates/pong/scripts/dev-secure.mjs +177 -0
  16. package/templates/pong/scripts/secure-init.mjs +134 -0
  17. package/templates/pong/src/App.tsx +2 -0
  18. package/templates/pong/src/controller-view.tsx +78 -99
  19. package/templates/pong/src/host-view.tsx +3 -18
  20. package/templates/pong/src/vite-env.d.ts +1 -0
  21. package/templates/pong/vite.config.ts +9 -0
  22. package/templates/pong/dist/assets/index-BwJ4uU20.js +0 -269
  23. package/templates/pong/dist/assets/index-D42jDbB5.css +0 -1
  24. package/templates/pong/dist/index.html +0 -19
  25. package/templates/pong/node_modules/.bin/air-jam-server +0 -17
  26. package/templates/pong/node_modules/.bin/eslint +0 -17
  27. package/templates/pong/node_modules/.bin/eslint-config-prettier +0 -17
  28. package/templates/pong/node_modules/.bin/tsc +0 -17
  29. package/templates/pong/node_modules/.bin/tsserver +0 -17
  30. package/templates/pong/node_modules/.bin/vite +0 -17
  31. package/templates/pong/node_modules/.vite/deps/@radix-ui_react-dialog.js +0 -1680
  32. package/templates/pong/node_modules/.vite/deps/@radix-ui_react-dialog.js.map +0 -7
  33. package/templates/pong/node_modules/.vite/deps/@radix-ui_react-slider.js +0 -638
  34. package/templates/pong/node_modules/.vite/deps/@radix-ui_react-slider.js.map +0 -7
  35. package/templates/pong/node_modules/.vite/deps/@radix-ui_react-slot.js +0 -129
  36. package/templates/pong/node_modules/.vite/deps/@radix-ui_react-slot.js.map +0 -7
  37. package/templates/pong/node_modules/.vite/deps/@radix-ui_react-tabs.js +0 -434
  38. package/templates/pong/node_modules/.vite/deps/@radix-ui_react-tabs.js.map +0 -7
  39. package/templates/pong/node_modules/.vite/deps/_metadata.json +0 -163
  40. package/templates/pong/node_modules/.vite/deps/chunk-6G72RLJL.js +0 -1004
  41. package/templates/pong/node_modules/.vite/deps/chunk-6G72RLJL.js.map +0 -7
  42. package/templates/pong/node_modules/.vite/deps/chunk-BHOBIW4J.js +0 -99
  43. package/templates/pong/node_modules/.vite/deps/chunk-BHOBIW4J.js.map +0 -7
  44. package/templates/pong/node_modules/.vite/deps/chunk-E44IQKDY.js +0 -49
  45. package/templates/pong/node_modules/.vite/deps/chunk-E44IQKDY.js.map +0 -7
  46. package/templates/pong/node_modules/.vite/deps/chunk-E5X4SHYG.js +0 -21
  47. package/templates/pong/node_modules/.vite/deps/chunk-E5X4SHYG.js.map +0 -7
  48. package/templates/pong/node_modules/.vite/deps/chunk-G3PMV62Z.js +0 -35
  49. package/templates/pong/node_modules/.vite/deps/chunk-G3PMV62Z.js.map +0 -7
  50. package/templates/pong/node_modules/.vite/deps/chunk-LI6KBZ3D.js +0 -292
  51. package/templates/pong/node_modules/.vite/deps/chunk-LI6KBZ3D.js.map +0 -7
  52. package/templates/pong/node_modules/.vite/deps/chunk-MDNXVKSA.js +0 -337
  53. package/templates/pong/node_modules/.vite/deps/chunk-MDNXVKSA.js.map +0 -7
  54. package/templates/pong/node_modules/.vite/deps/chunk-METQ356G.js +0 -280
  55. package/templates/pong/node_modules/.vite/deps/chunk-METQ356G.js.map +0 -7
  56. package/templates/pong/node_modules/.vite/deps/chunk-NPTAWNEA.js +0 -171
  57. package/templates/pong/node_modules/.vite/deps/chunk-NPTAWNEA.js.map +0 -7
  58. package/templates/pong/node_modules/.vite/deps/class-variance-authority.js +0 -51
  59. package/templates/pong/node_modules/.vite/deps/class-variance-authority.js.map +0 -7
  60. package/templates/pong/node_modules/.vite/deps/clsx.js +0 -9
  61. package/templates/pong/node_modules/.vite/deps/clsx.js.map +0 -7
  62. package/templates/pong/node_modules/.vite/deps/howler.js +0 -2241
  63. package/templates/pong/node_modules/.vite/deps/howler.js.map +0 -7
  64. package/templates/pong/node_modules/.vite/deps/html5-qrcode.js +0 -29350
  65. package/templates/pong/node_modules/.vite/deps/html5-qrcode.js.map +0 -7
  66. package/templates/pong/node_modules/.vite/deps/lucide-react.js +0 -28662
  67. package/templates/pong/node_modules/.vite/deps/lucide-react.js.map +0 -7
  68. package/templates/pong/node_modules/.vite/deps/package.json +0 -3
  69. package/templates/pong/node_modules/.vite/deps/qrcode.js +0 -2083
  70. package/templates/pong/node_modules/.vite/deps/qrcode.js.map +0 -7
  71. package/templates/pong/node_modules/.vite/deps/react-dom.js +0 -6
  72. package/templates/pong/node_modules/.vite/deps/react-dom.js.map +0 -7
  73. package/templates/pong/node_modules/.vite/deps/react-dom_client.js +0 -20217
  74. package/templates/pong/node_modules/.vite/deps/react-dom_client.js.map +0 -7
  75. package/templates/pong/node_modules/.vite/deps/react-router-dom.js +0 -13900
  76. package/templates/pong/node_modules/.vite/deps/react-router-dom.js.map +0 -7
  77. package/templates/pong/node_modules/.vite/deps/react.js +0 -5
  78. package/templates/pong/node_modules/.vite/deps/react.js.map +0 -7
  79. package/templates/pong/node_modules/.vite/deps/react_jsx-dev-runtime.js +0 -278
  80. package/templates/pong/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +0 -7
  81. package/templates/pong/node_modules/.vite/deps/react_jsx-runtime.js +0 -6
  82. package/templates/pong/node_modules/.vite/deps/react_jsx-runtime.js.map +0 -7
  83. package/templates/pong/node_modules/.vite/deps/socket__io-client.js +0 -3422
  84. package/templates/pong/node_modules/.vite/deps/socket__io-client.js.map +0 -7
  85. package/templates/pong/node_modules/.vite/deps/tailwind-merge.js +0 -2534
  86. package/templates/pong/node_modules/.vite/deps/tailwind-merge.js.map +0 -7
  87. package/templates/pong/node_modules/.vite/deps/zod.js +0 -13810
  88. package/templates/pong/node_modules/.vite/deps/zod.js.map +0 -7
  89. package/templates/pong/node_modules/.vite/deps/zustand.js +0 -56
  90. package/templates/pong/node_modules/.vite/deps/zustand.js.map +0 -7
  91. package/templates/pong/node_modules/.vite/deps/zustand_react_shallow.js +0 -77
  92. package/templates/pong/node_modules/.vite/deps/zustand_react_shallow.js.map +0 -7
@@ -1,292 +0,0 @@
1
- import {
2
- require_react
3
- } from "./chunk-6G72RLJL.js";
4
- import {
5
- __commonJS
6
- } from "./chunk-G3PMV62Z.js";
7
-
8
- // ../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js
9
- var require_react_jsx_runtime_development = __commonJS({
10
- "../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
11
- "use strict";
12
- (function() {
13
- function getComponentNameFromType(type) {
14
- if (null == type) return null;
15
- if ("function" === typeof type)
16
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
17
- if ("string" === typeof type) return type;
18
- switch (type) {
19
- case REACT_FRAGMENT_TYPE:
20
- return "Fragment";
21
- case REACT_PROFILER_TYPE:
22
- return "Profiler";
23
- case REACT_STRICT_MODE_TYPE:
24
- return "StrictMode";
25
- case REACT_SUSPENSE_TYPE:
26
- return "Suspense";
27
- case REACT_SUSPENSE_LIST_TYPE:
28
- return "SuspenseList";
29
- case REACT_ACTIVITY_TYPE:
30
- return "Activity";
31
- }
32
- if ("object" === typeof type)
33
- switch ("number" === typeof type.tag && console.error(
34
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
35
- ), type.$$typeof) {
36
- case REACT_PORTAL_TYPE:
37
- return "Portal";
38
- case REACT_CONTEXT_TYPE:
39
- return type.displayName || "Context";
40
- case REACT_CONSUMER_TYPE:
41
- return (type._context.displayName || "Context") + ".Consumer";
42
- case REACT_FORWARD_REF_TYPE:
43
- var innerType = type.render;
44
- type = type.displayName;
45
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
46
- return type;
47
- case REACT_MEMO_TYPE:
48
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
49
- case REACT_LAZY_TYPE:
50
- innerType = type._payload;
51
- type = type._init;
52
- try {
53
- return getComponentNameFromType(type(innerType));
54
- } catch (x) {
55
- }
56
- }
57
- return null;
58
- }
59
- function testStringCoercion(value) {
60
- return "" + value;
61
- }
62
- function checkKeyStringCoercion(value) {
63
- try {
64
- testStringCoercion(value);
65
- var JSCompiler_inline_result = false;
66
- } catch (e) {
67
- JSCompiler_inline_result = true;
68
- }
69
- if (JSCompiler_inline_result) {
70
- JSCompiler_inline_result = console;
71
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
72
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
73
- JSCompiler_temp_const.call(
74
- JSCompiler_inline_result,
75
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
76
- JSCompiler_inline_result$jscomp$0
77
- );
78
- return testStringCoercion(value);
79
- }
80
- }
81
- function getTaskName(type) {
82
- if (type === REACT_FRAGMENT_TYPE) return "<>";
83
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
84
- return "<...>";
85
- try {
86
- var name = getComponentNameFromType(type);
87
- return name ? "<" + name + ">" : "<...>";
88
- } catch (x) {
89
- return "<...>";
90
- }
91
- }
92
- function getOwner() {
93
- var dispatcher = ReactSharedInternals.A;
94
- return null === dispatcher ? null : dispatcher.getOwner();
95
- }
96
- function UnknownOwner() {
97
- return Error("react-stack-top-frame");
98
- }
99
- function hasValidKey(config) {
100
- if (hasOwnProperty.call(config, "key")) {
101
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
102
- if (getter && getter.isReactWarning) return false;
103
- }
104
- return void 0 !== config.key;
105
- }
106
- function defineKeyPropWarningGetter(props, displayName) {
107
- function warnAboutAccessingKey() {
108
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
109
- "%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)",
110
- displayName
111
- ));
112
- }
113
- warnAboutAccessingKey.isReactWarning = true;
114
- Object.defineProperty(props, "key", {
115
- get: warnAboutAccessingKey,
116
- configurable: true
117
- });
118
- }
119
- function elementRefGetterWithDeprecationWarning() {
120
- var componentName = getComponentNameFromType(this.type);
121
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
122
- "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."
123
- ));
124
- componentName = this.props.ref;
125
- return void 0 !== componentName ? componentName : null;
126
- }
127
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
128
- var refProp = props.ref;
129
- type = {
130
- $$typeof: REACT_ELEMENT_TYPE,
131
- type,
132
- key,
133
- props,
134
- _owner: owner
135
- };
136
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
137
- enumerable: false,
138
- get: elementRefGetterWithDeprecationWarning
139
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
140
- type._store = {};
141
- Object.defineProperty(type._store, "validated", {
142
- configurable: false,
143
- enumerable: false,
144
- writable: true,
145
- value: 0
146
- });
147
- Object.defineProperty(type, "_debugInfo", {
148
- configurable: false,
149
- enumerable: false,
150
- writable: true,
151
- value: null
152
- });
153
- Object.defineProperty(type, "_debugStack", {
154
- configurable: false,
155
- enumerable: false,
156
- writable: true,
157
- value: debugStack
158
- });
159
- Object.defineProperty(type, "_debugTask", {
160
- configurable: false,
161
- enumerable: false,
162
- writable: true,
163
- value: debugTask
164
- });
165
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
166
- return type;
167
- }
168
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
169
- var children = config.children;
170
- if (void 0 !== children)
171
- if (isStaticChildren)
172
- if (isArrayImpl(children)) {
173
- for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
174
- validateChildKeys(children[isStaticChildren]);
175
- Object.freeze && Object.freeze(children);
176
- } else
177
- console.error(
178
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
179
- );
180
- else validateChildKeys(children);
181
- if (hasOwnProperty.call(config, "key")) {
182
- children = getComponentNameFromType(type);
183
- var keys = Object.keys(config).filter(function(k) {
184
- return "key" !== k;
185
- });
186
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
187
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
188
- '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} />',
189
- isStaticChildren,
190
- children,
191
- keys,
192
- children
193
- ), didWarnAboutKeySpread[children + isStaticChildren] = true);
194
- }
195
- children = null;
196
- void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
197
- hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
198
- if ("key" in config) {
199
- maybeKey = {};
200
- for (var propName in config)
201
- "key" !== propName && (maybeKey[propName] = config[propName]);
202
- } else maybeKey = config;
203
- children && defineKeyPropWarningGetter(
204
- maybeKey,
205
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
206
- );
207
- return ReactElement(
208
- type,
209
- children,
210
- maybeKey,
211
- getOwner(),
212
- debugStack,
213
- debugTask
214
- );
215
- }
216
- function validateChildKeys(node) {
217
- 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));
218
- }
219
- function isValidElement(object) {
220
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
221
- }
222
- var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
223
- return null;
224
- };
225
- React = {
226
- react_stack_bottom_frame: function(callStackForError) {
227
- return callStackForError();
228
- }
229
- };
230
- var specialPropKeyWarningShown;
231
- var didWarnAboutElementRef = {};
232
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
233
- React,
234
- UnknownOwner
235
- )();
236
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
237
- var didWarnAboutKeySpread = {};
238
- exports.Fragment = REACT_FRAGMENT_TYPE;
239
- exports.jsx = function(type, config, maybeKey) {
240
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
241
- return jsxDEVImpl(
242
- type,
243
- config,
244
- maybeKey,
245
- false,
246
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
247
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
248
- );
249
- };
250
- exports.jsxs = function(type, config, maybeKey) {
251
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
252
- return jsxDEVImpl(
253
- type,
254
- config,
255
- maybeKey,
256
- true,
257
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
258
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
259
- );
260
- };
261
- })();
262
- }
263
- });
264
-
265
- // ../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js
266
- var require_jsx_runtime = __commonJS({
267
- "../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js"(exports, module) {
268
- if (false) {
269
- module.exports = null;
270
- } else {
271
- module.exports = require_react_jsx_runtime_development();
272
- }
273
- }
274
- });
275
-
276
- export {
277
- require_jsx_runtime
278
- };
279
- /*! Bundled license information:
280
-
281
- react/cjs/react-jsx-runtime.development.js:
282
- (**
283
- * @license React
284
- * react-jsx-runtime.development.js
285
- *
286
- * Copyright (c) Meta Platforms, Inc. and affiliates.
287
- *
288
- * This source code is licensed under the MIT license found in the
289
- * LICENSE file in the root directory of this source tree.
290
- *)
291
- */
292
- //# sourceMappingURL=chunk-LI6KBZ3D.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js", "../../../../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js"],
4
- "sourcesContent": ["/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%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)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"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.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n '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} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],
5
- "mappings": ";;;;;;;;AAAA;AAAA;AAAA;AAWA,KACG,WAAY;AACX,eAAS,yBAAyB,MAAM;AACtC,YAAI,QAAQ,KAAM,QAAO;AACzB,YAAI,eAAe,OAAO;AACxB,iBAAO,KAAK,aAAa,yBACrB,OACA,KAAK,eAAe,KAAK,QAAQ;AACvC,YAAI,aAAa,OAAO,KAAM,QAAO;AACrC,gBAAQ,MAAM;AAAA,UACZ,KAAK;AACH,mBAAO;AAAA,UACT,KAAK;AACH,mBAAO;AAAA,UACT,KAAK;AACH,mBAAO;AAAA,UACT,KAAK;AACH,mBAAO;AAAA,UACT,KAAK;AACH,mBAAO;AAAA,UACT,KAAK;AACH,mBAAO;AAAA,QACX;AACA,YAAI,aAAa,OAAO;AACtB,kBACG,aAAa,OAAO,KAAK,OACxB,QAAQ;AAAA,YACN;AAAA,UACF,GACF,KAAK,UACL;AAAA,YACA,KAAK;AACH,qBAAO;AAAA,YACT,KAAK;AACH,qBAAO,KAAK,eAAe;AAAA,YAC7B,KAAK;AACH,sBAAQ,KAAK,SAAS,eAAe,aAAa;AAAA,YACpD,KAAK;AACH,kBAAI,YAAY,KAAK;AACrB,qBAAO,KAAK;AACZ,uBACI,OAAO,UAAU,eAAe,UAAU,QAAQ,IACnD,OAAO,OAAO,OAAO,gBAAgB,OAAO,MAAM;AACrD,qBAAO;AAAA,YACT,KAAK;AACH,qBACG,YAAY,KAAK,eAAe,MACjC,SAAS,YACL,YACA,yBAAyB,KAAK,IAAI,KAAK;AAAA,YAE/C,KAAK;AACH,0BAAY,KAAK;AACjB,qBAAO,KAAK;AACZ,kBAAI;AACF,uBAAO,yBAAyB,KAAK,SAAS,CAAC;AAAA,cACjD,SAAS,GAAG;AAAA,cAAC;AAAA,UACjB;AACF,eAAO;AAAA,MACT;AAC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;AACF,UAAI,wBAAwB,WAAW,YAAY,YAAY,CAAC;AAChE,UAAI,wBAAwB,CAAC;AAC7B,cAAQ,WAAW;AACnB,cAAQ,MAAM,SAAU,MAAM,QAAQ,UAAU;AAC9C,YAAI,mBACF,MAAM,qBAAqB;AAC7B,eAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,mBACI,MAAM,uBAAuB,IAC7B;AAAA,UACJ,mBAAmB,WAAW,YAAY,IAAI,CAAC,IAAI;AAAA,QACrD;AAAA,MACF;AACA,cAAQ,OAAO,SAAU,MAAM,QAAQ,UAAU;AAC/C,YAAI,mBACF,MAAM,qBAAqB;AAC7B,eAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,mBACI,MAAM,uBAAuB,IAC7B;AAAA,UACJ,mBAAmB,WAAW,YAAY,IAAI,CAAC,IAAI;AAAA,QACrD;AAAA,MACF;AAAA,IACF,GAAG;AAAA;AAAA;;;AC/VL;AAAA;AAEA,QAAI,OAAuC;AACzC,aAAO,UAAU;AAAA,IACnB,OAAO;AACL,aAAO,UAAU;AAAA,IACnB;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,337 +0,0 @@
1
- import {
2
- require_react_dom
3
- } from "./chunk-METQ356G.js";
4
- import {
5
- composeRefs
6
- } from "./chunk-E44IQKDY.js";
7
- import {
8
- require_jsx_runtime
9
- } from "./chunk-LI6KBZ3D.js";
10
- import {
11
- require_react
12
- } from "./chunk-6G72RLJL.js";
13
- import {
14
- __toESM
15
- } from "./chunk-G3PMV62Z.js";
16
-
17
- // ../../../../node_modules/.pnpm/@radix-ui+primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.mjs
18
- var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
19
- function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
20
- return function handleEvent(event) {
21
- originalEventHandler == null ? void 0 : originalEventHandler(event);
22
- if (checkForDefaultPrevented === false || !event.defaultPrevented) {
23
- return ourEventHandler == null ? void 0 : ourEventHandler(event);
24
- }
25
- };
26
- }
27
-
28
- // ../../../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs
29
- var React = __toESM(require_react(), 1);
30
- var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
31
- function createContext2(rootComponentName, defaultContext) {
32
- const Context = React.createContext(defaultContext);
33
- const Provider = (props) => {
34
- const { children, ...context } = props;
35
- const value = React.useMemo(() => context, Object.values(context));
36
- return (0, import_jsx_runtime.jsx)(Context.Provider, { value, children });
37
- };
38
- Provider.displayName = rootComponentName + "Provider";
39
- function useContext2(consumerName) {
40
- const context = React.useContext(Context);
41
- if (context) return context;
42
- if (defaultContext !== void 0) return defaultContext;
43
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
44
- }
45
- return [Provider, useContext2];
46
- }
47
- function createContextScope(scopeName, createContextScopeDeps = []) {
48
- let defaultContexts = [];
49
- function createContext3(rootComponentName, defaultContext) {
50
- const BaseContext = React.createContext(defaultContext);
51
- const index = defaultContexts.length;
52
- defaultContexts = [...defaultContexts, defaultContext];
53
- const Provider = (props) => {
54
- var _a;
55
- const { scope, children, ...context } = props;
56
- const Context = ((_a = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a[index]) || BaseContext;
57
- const value = React.useMemo(() => context, Object.values(context));
58
- return (0, import_jsx_runtime.jsx)(Context.Provider, { value, children });
59
- };
60
- Provider.displayName = rootComponentName + "Provider";
61
- function useContext2(consumerName, scope) {
62
- var _a;
63
- const Context = ((_a = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a[index]) || BaseContext;
64
- const context = React.useContext(Context);
65
- if (context) return context;
66
- if (defaultContext !== void 0) return defaultContext;
67
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
68
- }
69
- return [Provider, useContext2];
70
- }
71
- const createScope = () => {
72
- const scopeContexts = defaultContexts.map((defaultContext) => {
73
- return React.createContext(defaultContext);
74
- });
75
- return function useScope(scope) {
76
- const contexts = (scope == null ? void 0 : scope[scopeName]) || scopeContexts;
77
- return React.useMemo(
78
- () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
79
- [scope, contexts]
80
- );
81
- };
82
- };
83
- createScope.scopeName = scopeName;
84
- return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
85
- }
86
- function composeContextScopes(...scopes) {
87
- const baseScope = scopes[0];
88
- if (scopes.length === 1) return baseScope;
89
- const createScope = () => {
90
- const scopeHooks = scopes.map((createScope2) => ({
91
- useScope: createScope2(),
92
- scopeName: createScope2.scopeName
93
- }));
94
- return function useComposedScopes(overrideScopes) {
95
- const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
96
- const scopeProps = useScope(overrideScopes);
97
- const currentScope = scopeProps[`__scope${scopeName}`];
98
- return { ...nextScopes2, ...currentScope };
99
- }, {});
100
- return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
101
- };
102
- };
103
- createScope.scopeName = baseScope.scopeName;
104
- return createScope;
105
- }
106
-
107
- // ../../../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs
108
- var React2 = __toESM(require_react(), 1);
109
- var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
110
- function createSlot(ownerName) {
111
- const SlotClone = createSlotClone(ownerName);
112
- const Slot2 = React2.forwardRef((props, forwardedRef) => {
113
- const { children, ...slotProps } = props;
114
- const childrenArray = React2.Children.toArray(children);
115
- const slottable = childrenArray.find(isSlottable);
116
- if (slottable) {
117
- const newElement = slottable.props.children;
118
- const newChildren = childrenArray.map((child) => {
119
- if (child === slottable) {
120
- if (React2.Children.count(newElement) > 1) return React2.Children.only(null);
121
- return React2.isValidElement(newElement) ? newElement.props.children : null;
122
- } else {
123
- return child;
124
- }
125
- });
126
- return (0, import_jsx_runtime2.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React2.isValidElement(newElement) ? React2.cloneElement(newElement, void 0, newChildren) : null });
127
- }
128
- return (0, import_jsx_runtime2.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
129
- });
130
- Slot2.displayName = `${ownerName}.Slot`;
131
- return Slot2;
132
- }
133
- var Slot = createSlot("Slot");
134
- function createSlotClone(ownerName) {
135
- const SlotClone = React2.forwardRef((props, forwardedRef) => {
136
- const { children, ...slotProps } = props;
137
- if (React2.isValidElement(children)) {
138
- const childrenRef = getElementRef(children);
139
- const props2 = mergeProps(slotProps, children.props);
140
- if (children.type !== React2.Fragment) {
141
- props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
142
- }
143
- return React2.cloneElement(children, props2);
144
- }
145
- return React2.Children.count(children) > 1 ? React2.Children.only(null) : null;
146
- });
147
- SlotClone.displayName = `${ownerName}.SlotClone`;
148
- return SlotClone;
149
- }
150
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
151
- function createSlottable(ownerName) {
152
- const Slottable2 = ({ children }) => {
153
- return (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children });
154
- };
155
- Slottable2.displayName = `${ownerName}.Slottable`;
156
- Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
157
- return Slottable2;
158
- }
159
- var Slottable = createSlottable("Slottable");
160
- function isSlottable(child) {
161
- return React2.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
162
- }
163
- function mergeProps(slotProps, childProps) {
164
- const overrideProps = { ...childProps };
165
- for (const propName in childProps) {
166
- const slotPropValue = slotProps[propName];
167
- const childPropValue = childProps[propName];
168
- const isHandler = /^on[A-Z]/.test(propName);
169
- if (isHandler) {
170
- if (slotPropValue && childPropValue) {
171
- overrideProps[propName] = (...args) => {
172
- const result = childPropValue(...args);
173
- slotPropValue(...args);
174
- return result;
175
- };
176
- } else if (slotPropValue) {
177
- overrideProps[propName] = slotPropValue;
178
- }
179
- } else if (propName === "style") {
180
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
181
- } else if (propName === "className") {
182
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
183
- }
184
- }
185
- return { ...slotProps, ...overrideProps };
186
- }
187
- function getElementRef(element) {
188
- var _a, _b;
189
- let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
190
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
191
- if (mayWarn) {
192
- return element.ref;
193
- }
194
- getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
195
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
196
- if (mayWarn) {
197
- return element.props.ref;
198
- }
199
- return element.props.ref || element.ref;
200
- }
201
-
202
- // ../../../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.6__@types+react@19._hl7njqfk7lmwklmajdqgwqj6ci/node_modules/@radix-ui/react-primitive/dist/index.mjs
203
- var React3 = __toESM(require_react(), 1);
204
- var ReactDOM = __toESM(require_react_dom(), 1);
205
- var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
206
- var NODES = [
207
- "a",
208
- "button",
209
- "div",
210
- "form",
211
- "h2",
212
- "h3",
213
- "img",
214
- "input",
215
- "label",
216
- "li",
217
- "nav",
218
- "ol",
219
- "p",
220
- "select",
221
- "span",
222
- "svg",
223
- "ul"
224
- ];
225
- var Primitive = NODES.reduce((primitive, node) => {
226
- const Slot2 = createSlot(`Primitive.${node}`);
227
- const Node = React3.forwardRef((props, forwardedRef) => {
228
- const { asChild, ...primitiveProps } = props;
229
- const Comp = asChild ? Slot2 : node;
230
- if (typeof window !== "undefined") {
231
- window[Symbol.for("radix-ui")] = true;
232
- }
233
- return (0, import_jsx_runtime3.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
234
- });
235
- Node.displayName = `Primitive.${node}`;
236
- return { ...primitive, [node]: Node };
237
- }, {});
238
- function dispatchDiscreteCustomEvent(target, event) {
239
- if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
240
- }
241
-
242
- // ../../../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
243
- var React6 = __toESM(require_react(), 1);
244
-
245
- // ../../../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
246
- var React4 = __toESM(require_react(), 1);
247
- var useLayoutEffect2 = (globalThis == null ? void 0 : globalThis.document) ? React4.useLayoutEffect : () => {
248
- };
249
-
250
- // ../../../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
251
- var React22 = __toESM(require_react(), 1);
252
-
253
- // ../../../../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.2_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
254
- var React5 = __toESM(require_react(), 1);
255
- var useReactEffectEvent = React5[" useEffectEvent ".trim().toString()];
256
- var useReactInsertionEffect = React5[" useInsertionEffect ".trim().toString()];
257
-
258
- // ../../../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
259
- var useInsertionEffect = React6[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
260
- function useControllableState({
261
- prop,
262
- defaultProp,
263
- onChange = () => {
264
- },
265
- caller
266
- }) {
267
- const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
268
- defaultProp,
269
- onChange
270
- });
271
- const isControlled = prop !== void 0;
272
- const value = isControlled ? prop : uncontrolledProp;
273
- if (true) {
274
- const isControlledRef = React6.useRef(prop !== void 0);
275
- React6.useEffect(() => {
276
- const wasControlled = isControlledRef.current;
277
- if (wasControlled !== isControlled) {
278
- const from = wasControlled ? "controlled" : "uncontrolled";
279
- const to = isControlled ? "controlled" : "uncontrolled";
280
- console.warn(
281
- `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
282
- );
283
- }
284
- isControlledRef.current = isControlled;
285
- }, [isControlled, caller]);
286
- }
287
- const setValue = React6.useCallback(
288
- (nextValue) => {
289
- var _a;
290
- if (isControlled) {
291
- const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
292
- if (value2 !== prop) {
293
- (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value2);
294
- }
295
- } else {
296
- setUncontrolledProp(nextValue);
297
- }
298
- },
299
- [isControlled, prop, setUncontrolledProp, onChangeRef]
300
- );
301
- return [value, setValue];
302
- }
303
- function useUncontrolledState({
304
- defaultProp,
305
- onChange
306
- }) {
307
- const [value, setValue] = React6.useState(defaultProp);
308
- const prevValueRef = React6.useRef(value);
309
- const onChangeRef = React6.useRef(onChange);
310
- useInsertionEffect(() => {
311
- onChangeRef.current = onChange;
312
- }, [onChange]);
313
- React6.useEffect(() => {
314
- var _a;
315
- if (prevValueRef.current !== value) {
316
- (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value);
317
- prevValueRef.current = value;
318
- }
319
- }, [value, prevValueRef]);
320
- return [value, setValue, onChangeRef];
321
- }
322
- function isFunction(value) {
323
- return typeof value === "function";
324
- }
325
- var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
326
-
327
- export {
328
- composeEventHandlers,
329
- createContext2,
330
- createContextScope,
331
- createSlot,
332
- useLayoutEffect2,
333
- Primitive,
334
- dispatchDiscreteCustomEvent,
335
- useControllableState
336
- };
337
- //# sourceMappingURL=chunk-MDNXVKSA.js.map