zudoku 0.3.0-dev.55 → 0.3.0-dev.57

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 (181) hide show
  1. package/dist/app/demo.js +6 -1
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.d.ts +1 -1
  4. package/dist/app/entry.client.js +1 -1
  5. package/dist/app/entry.client.js.map +1 -1
  6. package/dist/app/entry.server.d.ts +1 -1
  7. package/dist/app/entry.server.js +1 -1
  8. package/dist/app/entry.server.js.map +1 -1
  9. package/dist/app/main.d.ts +1 -1
  10. package/dist/app/main.js +9 -2
  11. package/dist/app/main.js.map +1 -1
  12. package/dist/app/standalone.js +6 -1
  13. package/dist/app/standalone.js.map +1 -1
  14. package/dist/config/validators/validate.d.ts +77 -17
  15. package/dist/config/validators/validate.js +7 -1
  16. package/dist/config/validators/validate.js.map +1 -1
  17. package/dist/lib/components/DeveloperHint.d.ts +5 -0
  18. package/dist/lib/components/DeveloperHint.js +10 -0
  19. package/dist/lib/components/DeveloperHint.js.map +1 -0
  20. package/dist/lib/components/Header.js +1 -1
  21. package/dist/lib/components/Header.js.map +1 -1
  22. package/dist/lib/components/NotFoundPage.js +2 -2
  23. package/dist/lib/components/NotFoundPage.js.map +1 -1
  24. package/dist/lib/components/navigation/SideNavigationCategory.js +2 -2
  25. package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
  26. package/dist/lib/core/DevPortalContext.d.ts +8 -1
  27. package/dist/lib/core/DevPortalContext.js.map +1 -1
  28. package/dist/lib/oas/graphql/index.js +5 -3
  29. package/dist/lib/oas/graphql/index.js.map +1 -1
  30. package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
  31. package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
  32. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
  33. package/dist/lib/plugins/api-keys/index.js +2 -12
  34. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  35. package/dist/lib/plugins/openapi/OperationList.js +4 -3
  36. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  37. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +5 -0
  38. package/dist/lib/plugins/openapi/StaggeredRender.js +13 -0
  39. package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
  40. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -3
  41. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  42. package/dist/vite/plugin-custom-css.js +2 -3
  43. package/dist/vite/plugin-custom-css.js.map +1 -1
  44. package/lib/AnchorLink-GNsUeGSX.js +705 -0
  45. package/lib/{AnchorLink-BaXHjhF-.js.map → AnchorLink-GNsUeGSX.js.map} +1 -1
  46. package/lib/Button-DpHMZvVs.js +4571 -0
  47. package/lib/Button-DpHMZvVs.js.map +1 -0
  48. package/lib/DevPortalProvider-Do9oJqme.js +1081 -0
  49. package/lib/{DevPortalProvider-GjdO0Xr-.js.map → DevPortalProvider-Do9oJqme.js.map} +1 -1
  50. package/lib/Markdown-DtLFdxD1.js +15031 -0
  51. package/lib/Markdown-DtLFdxD1.js.map +1 -0
  52. package/lib/MdxPage-CbwYRKf5.js +190 -0
  53. package/lib/{MdxPage-Dlujuj-J.js.map → MdxPage-CbwYRKf5.js.map} +1 -1
  54. package/lib/OperationList-DypxLtSC.js +5578 -0
  55. package/lib/OperationList-DypxLtSC.js.map +1 -0
  56. package/lib/Route-C1LyvITr.js +13 -0
  57. package/lib/{Route-CR6TEwVC.js.map → Route-C1LyvITr.js.map} +1 -1
  58. package/lib/Spinner-Bhbs5aPI.js +182 -0
  59. package/lib/Spinner-Bhbs5aPI.js.map +1 -0
  60. package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
  61. package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
  62. package/lib/assets/index-BPdJm2ty.js +4765 -0
  63. package/lib/assets/{index-CpIig0AX.js.map → index-BPdJm2ty.js.map} +1 -1
  64. package/lib/assets/worker-BWwCA-wk.js +14900 -0
  65. package/lib/assets/{worker-B5k2aBV9.js.map → worker-BWwCA-wk.js.map} +1 -1
  66. package/lib/context-_fYfJFgk.js +14 -0
  67. package/lib/{context-BoN_3uxi.js.map → context-_fYfJFgk.js.map} +1 -1
  68. package/lib/hook-Biq3zYel.js +92 -0
  69. package/lib/hook-Biq3zYel.js.map +1 -0
  70. package/lib/{index-Dih8IAqw.js → index-Bg82-bqR.js} +83 -103
  71. package/lib/{index-Dih8IAqw.js.map → index-Bg82-bqR.js.map} +1 -1
  72. package/lib/index-gsAuUwQh.js +418 -0
  73. package/lib/index-gsAuUwQh.js.map +1 -0
  74. package/lib/index-pI9JkN46.js +4765 -0
  75. package/lib/{index-Bn03IPZt.js.map → index-pI9JkN46.js.map} +1 -1
  76. package/lib/jsx-runtime-CJZJivg2.js +1526 -0
  77. package/lib/{jsx-runtime-DvZ6OKMM.js.map → jsx-runtime-CJZJivg2.js.map} +1 -1
  78. package/lib/prism-bash.min-DadFsM4Z.js +7 -0
  79. package/lib/{prism-bash.min-BtBk0onv.js.map → prism-bash.min-DadFsM4Z.js.map} +1 -1
  80. package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
  81. package/lib/{prism-csharp.min-Cv7D49bv.js.map → prism-csharp.min-Yizuc34Y.js.map} +1 -1
  82. package/lib/prism-java.min-d5iT_mOd.js +7 -0
  83. package/lib/{prism-java.min-tNK-JX6x.js.map → prism-java.min-d5iT_mOd.js.map} +1 -1
  84. package/lib/prism-json.min-B1GJqK1k.js +2 -0
  85. package/lib/{prism-json.min-Cdtv-CME.js.map → prism-json.min-B1GJqK1k.js.map} +1 -1
  86. package/lib/prism-markup-templating-DZrrEs0A.js +62 -0
  87. package/lib/{prism-markup-templating-iotg2sCU.js.map → prism-markup-templating-DZrrEs0A.js.map} +1 -1
  88. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  89. package/lib/{prism-objectivec.min-CY4WGixz.js.map → prism-objectivec.min-BXSWqpJJ.js.map} +1 -1
  90. package/lib/prism-php.min-o7FpoMP_.js +11 -0
  91. package/lib/{prism-php.min-T6sIVgED.js.map → prism-php.min-o7FpoMP_.js.map} +1 -1
  92. package/lib/prism-ruby.min-C7LwcKyz.js +10 -0
  93. package/lib/{prism-ruby.min-B-2KAa4y.js.map → prism-ruby.min-C7LwcKyz.js.map} +1 -1
  94. package/lib/router-CBw2vqJE.js +2973 -0
  95. package/lib/{router-ButO1QyY.js.map → router-CBw2vqJE.js.map} +1 -1
  96. package/lib/slugify-CiPVjteN.js +28 -0
  97. package/lib/{slugify-CmS97Vy8.js.map → slugify-CiPVjteN.js.map} +1 -1
  98. package/lib/state-DKdaQzvh.js +288 -0
  99. package/lib/{state-CmGfNKhR.js.map → state-DKdaQzvh.js.map} +1 -1
  100. package/lib/urql-DMlBWUKL.js +1592 -0
  101. package/lib/{urql-DtVKPBx_.js.map → urql-DMlBWUKL.js.map} +1 -1
  102. package/lib/util-_jwUlTBU.js +41 -0
  103. package/lib/{util-B5KX4h4M.js.map → util-_jwUlTBU.js.map} +1 -1
  104. package/lib/zudoku.auth-auth0.js +18 -24
  105. package/lib/zudoku.auth-auth0.js.map +1 -1
  106. package/lib/zudoku.auth-clerk.js +34 -43
  107. package/lib/zudoku.auth-clerk.js.map +1 -1
  108. package/lib/zudoku.auth-openid.js +734 -1121
  109. package/lib/zudoku.auth-openid.js.map +1 -1
  110. package/lib/zudoku.components.js +830 -1076
  111. package/lib/zudoku.components.js.map +1 -1
  112. package/lib/zudoku.openapi-worker.js +9689 -13781
  113. package/lib/zudoku.openapi-worker.js.map +1 -1
  114. package/lib/zudoku.plugin-api-keys.js +171 -208
  115. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  116. package/lib/zudoku.plugin-markdown.js +33 -41
  117. package/lib/zudoku.plugin-markdown.js.map +1 -1
  118. package/lib/zudoku.plugin-openapi.js +6 -6
  119. package/lib/zudoku.plugin-redirect.js +8 -10
  120. package/lib/zudoku.plugin-redirect.js.map +1 -1
  121. package/package.json +2 -2
  122. package/src/app/demo.tsx +6 -1
  123. package/src/app/entry.client.tsx +1 -1
  124. package/src/app/entry.server.tsx +1 -1
  125. package/src/app/main.tsx +11 -2
  126. package/src/app/standalone.tsx +6 -1
  127. package/src/lib/components/DeveloperHint.tsx +25 -0
  128. package/src/lib/components/Header.tsx +6 -1
  129. package/src/lib/components/NotFoundPage.tsx +8 -14
  130. package/src/lib/components/navigation/SideNavigationCategory.tsx +3 -3
  131. package/src/lib/core/DevPortalContext.ts +8 -1
  132. package/src/lib/oas/graphql/index.ts +7 -3
  133. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
  134. package/src/lib/plugins/api-keys/index.tsx +2 -21
  135. package/src/lib/plugins/openapi/OperationList.tsx +14 -14
  136. package/src/lib/plugins/openapi/StaggeredRender.tsx +17 -0
  137. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -5
  138. package/lib/AnchorLink-BaXHjhF-.js +0 -989
  139. package/lib/Combination-BfufJFkX.js +0 -1365
  140. package/lib/Combination-BfufJFkX.js.map +0 -1
  141. package/lib/DevPortalProvider-GjdO0Xr-.js +0 -1610
  142. package/lib/Markdown-B8nPVql1.js +0 -19708
  143. package/lib/Markdown-B8nPVql1.js.map +0 -1
  144. package/lib/MdxPage-Dlujuj-J.js +0 -223
  145. package/lib/OperationList-krPgt6sE.js +0 -8041
  146. package/lib/OperationList-krPgt6sE.js.map +0 -1
  147. package/lib/Playground-DOHxca0P.js +0 -539
  148. package/lib/Playground-DOHxca0P.js.map +0 -1
  149. package/lib/Route-CR6TEwVC.js +0 -13
  150. package/lib/Select-Boi_pe3L.js +0 -5298
  151. package/lib/Select-Boi_pe3L.js.map +0 -1
  152. package/lib/Spinner-oU0QJmi_.js +0 -16
  153. package/lib/Spinner-oU0QJmi_.js.map +0 -1
  154. package/lib/_commonjsHelpers-BxmBWJD2.js +0 -34
  155. package/lib/_commonjsHelpers-BxmBWJD2.js.map +0 -1
  156. package/lib/assets/index-CpIig0AX.js +0 -6341
  157. package/lib/assets/worker-B5k2aBV9.js +0 -18921
  158. package/lib/context-BoN_3uxi.js +0 -17
  159. package/lib/hook-CIuFuyBT.js +0 -90
  160. package/lib/hook-CIuFuyBT.js.map +0 -1
  161. package/lib/index-BL1P4Gqq.js +0 -280
  162. package/lib/index-BL1P4Gqq.js.map +0 -1
  163. package/lib/index-Bn03IPZt.js +0 -6341
  164. package/lib/index-FprhHF51.js +0 -253
  165. package/lib/index-FprhHF51.js.map +0 -1
  166. package/lib/jsx-runtime-DvZ6OKMM.js +0 -2110
  167. package/lib/mutation-DWY9x2Uc.js +0 -250
  168. package/lib/mutation-DWY9x2Uc.js.map +0 -1
  169. package/lib/prism-bash.min-BtBk0onv.js +0 -7
  170. package/lib/prism-csharp.min-Cv7D49bv.js +0 -30
  171. package/lib/prism-java.min-tNK-JX6x.js +0 -7
  172. package/lib/prism-json.min-Cdtv-CME.js +0 -2
  173. package/lib/prism-markup-templating-iotg2sCU.js +0 -94
  174. package/lib/prism-objectivec.min-CY4WGixz.js +0 -2
  175. package/lib/prism-php.min-T6sIVgED.js +0 -11
  176. package/lib/prism-ruby.min-B-2KAa4y.js +0 -8
  177. package/lib/router-ButO1QyY.js +0 -4062
  178. package/lib/slugify-CmS97Vy8.js +0 -50
  179. package/lib/state-CmGfNKhR.js +0 -436
  180. package/lib/urql-DtVKPBx_.js +0 -2567
  181. package/lib/util-B5KX4h4M.js +0 -55
@@ -0,0 +1,418 @@
1
+ var W = (e) => {
2
+ throw TypeError(e);
3
+ };
4
+ var D = (e, t, s) => t.has(e) || W("Cannot " + s);
5
+ var c = (e, t, s) => (D(e, t, "read from private field"), s ? s.call(e) : t.get(e)), b = (e, t, s) => t.has(e) ? W("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), E = (e, t, s, n) => (D(e, t, "write to private field"), n ? n.call(e, s) : t.set(e, s), s), C = (e, t, s) => (D(e, t, "access private method"), s);
6
+ import { j as P } from "./jsx-runtime-CJZJivg2.js";
7
+ import { R as L, z, n as Z } from "./DevPortalProvider-Do9oJqme.js";
8
+ import * as r from "react";
9
+ import * as q from "react-dom";
10
+ const ct = ({
11
+ children: e,
12
+ className: t
13
+ }) => {
14
+ };
15
+ var y, h, w, x, S, k, lt = (k = class extends L {
16
+ constructor(t) {
17
+ super();
18
+ b(this, x);
19
+ b(this, y);
20
+ b(this, h);
21
+ b(this, w);
22
+ this.mutationId = t.mutationId, E(this, h, t.mutationCache), E(this, y, []), this.state = t.state || J(), this.setOptions(t.options), this.scheduleGc();
23
+ }
24
+ setOptions(t) {
25
+ this.options = t, this.updateGcTime(this.options.gcTime);
26
+ }
27
+ get meta() {
28
+ return this.options.meta;
29
+ }
30
+ addObserver(t) {
31
+ c(this, y).includes(t) || (c(this, y).push(t), this.clearGcTimeout(), c(this, h).notify({
32
+ type: "observerAdded",
33
+ mutation: this,
34
+ observer: t
35
+ }));
36
+ }
37
+ removeObserver(t) {
38
+ E(this, y, c(this, y).filter((s) => s !== t)), this.scheduleGc(), c(this, h).notify({
39
+ type: "observerRemoved",
40
+ mutation: this,
41
+ observer: t
42
+ });
43
+ }
44
+ optionalRemove() {
45
+ c(this, y).length || (this.state.status === "pending" ? this.scheduleGc() : c(this, h).remove(this));
46
+ }
47
+ continue() {
48
+ var t;
49
+ return ((t = c(this, w)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
50
+ this.execute(this.state.variables);
51
+ }
52
+ async execute(t) {
53
+ var o, i, u, a, l, d, R, p, m, g, v, j, M, $, A, I, _, F, G, V;
54
+ E(this, w, z({
55
+ fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
56
+ onFail: (f, O) => {
57
+ C(this, x, S).call(this, { type: "failed", failureCount: f, error: O });
58
+ },
59
+ onPause: () => {
60
+ C(this, x, S).call(this, { type: "pause" });
61
+ },
62
+ onContinue: () => {
63
+ C(this, x, S).call(this, { type: "continue" });
64
+ },
65
+ retry: this.options.retry ?? 0,
66
+ retryDelay: this.options.retryDelay,
67
+ networkMode: this.options.networkMode,
68
+ canRun: () => c(this, h).canRun(this)
69
+ }));
70
+ const s = this.state.status === "pending", n = !c(this, w).canStart();
71
+ try {
72
+ if (!s) {
73
+ C(this, x, S).call(this, { type: "pending", variables: t, isPaused: n }), await ((i = (o = c(this, h).config).onMutate) == null ? void 0 : i.call(
74
+ o,
75
+ t,
76
+ this
77
+ ));
78
+ const O = await ((a = (u = this.options).onMutate) == null ? void 0 : a.call(u, t));
79
+ O !== this.state.context && C(this, x, S).call(this, {
80
+ type: "pending",
81
+ context: O,
82
+ variables: t,
83
+ isPaused: n
84
+ });
85
+ }
86
+ const f = await c(this, w).start();
87
+ return await ((d = (l = c(this, h).config).onSuccess) == null ? void 0 : d.call(
88
+ l,
89
+ f,
90
+ t,
91
+ this.state.context,
92
+ this
93
+ )), await ((p = (R = this.options).onSuccess) == null ? void 0 : p.call(R, f, t, this.state.context)), await ((g = (m = c(this, h).config).onSettled) == null ? void 0 : g.call(
94
+ m,
95
+ f,
96
+ null,
97
+ this.state.variables,
98
+ this.state.context,
99
+ this
100
+ )), await ((j = (v = this.options).onSettled) == null ? void 0 : j.call(v, f, null, t, this.state.context)), C(this, x, S).call(this, { type: "success", data: f }), f;
101
+ } catch (f) {
102
+ try {
103
+ throw await (($ = (M = c(this, h).config).onError) == null ? void 0 : $.call(
104
+ M,
105
+ f,
106
+ t,
107
+ this.state.context,
108
+ this
109
+ )), await ((I = (A = this.options).onError) == null ? void 0 : I.call(
110
+ A,
111
+ f,
112
+ t,
113
+ this.state.context
114
+ )), await ((F = (_ = c(this, h).config).onSettled) == null ? void 0 : F.call(
115
+ _,
116
+ void 0,
117
+ f,
118
+ this.state.variables,
119
+ this.state.context,
120
+ this
121
+ )), await ((V = (G = this.options).onSettled) == null ? void 0 : V.call(
122
+ G,
123
+ void 0,
124
+ f,
125
+ t,
126
+ this.state.context
127
+ )), f;
128
+ } finally {
129
+ C(this, x, S).call(this, { type: "error", error: f });
130
+ }
131
+ } finally {
132
+ c(this, h).runNext(this);
133
+ }
134
+ }
135
+ }, y = new WeakMap(), h = new WeakMap(), w = new WeakMap(), x = new WeakSet(), S = function(t) {
136
+ const s = (n) => {
137
+ switch (t.type) {
138
+ case "failed":
139
+ return {
140
+ ...n,
141
+ failureCount: t.failureCount,
142
+ failureReason: t.error
143
+ };
144
+ case "pause":
145
+ return {
146
+ ...n,
147
+ isPaused: !0
148
+ };
149
+ case "continue":
150
+ return {
151
+ ...n,
152
+ isPaused: !1
153
+ };
154
+ case "pending":
155
+ return {
156
+ ...n,
157
+ context: t.context,
158
+ data: void 0,
159
+ failureCount: 0,
160
+ failureReason: null,
161
+ error: null,
162
+ isPaused: t.isPaused,
163
+ status: "pending",
164
+ variables: t.variables,
165
+ submittedAt: Date.now()
166
+ };
167
+ case "success":
168
+ return {
169
+ ...n,
170
+ data: t.data,
171
+ failureCount: 0,
172
+ failureReason: null,
173
+ error: null,
174
+ status: "success",
175
+ isPaused: !1
176
+ };
177
+ case "error":
178
+ return {
179
+ ...n,
180
+ data: void 0,
181
+ error: t.error,
182
+ failureCount: n.failureCount + 1,
183
+ failureReason: t.error,
184
+ isPaused: !1,
185
+ status: "error"
186
+ };
187
+ }
188
+ };
189
+ this.state = s(this.state), Z.batch(() => {
190
+ c(this, y).forEach((n) => {
191
+ n.onMutationUpdate(t);
192
+ }), c(this, h).notify({
193
+ mutation: this,
194
+ type: "updated",
195
+ action: t
196
+ });
197
+ });
198
+ }, k);
199
+ function J() {
200
+ return {
201
+ context: void 0,
202
+ data: void 0,
203
+ error: null,
204
+ failureCount: 0,
205
+ failureReason: null,
206
+ isPaused: !1,
207
+ status: "idle",
208
+ variables: void 0,
209
+ submittedAt: 0
210
+ };
211
+ }
212
+ function ft(e, t, { checkForDefaultPrevented: s = !0 } = {}) {
213
+ return function(o) {
214
+ if (e == null || e(o), s === !1 || !o.defaultPrevented)
215
+ return t == null ? void 0 : t(o);
216
+ };
217
+ }
218
+ function ht(e, t) {
219
+ const s = r.createContext(t);
220
+ function n(i) {
221
+ const { children: u, ...a } = i, l = r.useMemo(() => a, Object.values(a));
222
+ return /* @__PURE__ */ P.jsx(s.Provider, { value: l, children: u });
223
+ }
224
+ function o(i) {
225
+ const u = r.useContext(s);
226
+ if (u) return u;
227
+ if (t !== void 0) return t;
228
+ throw new Error(`\`${i}\` must be used within \`${e}\``);
229
+ }
230
+ return n.displayName = e + "Provider", [n, o];
231
+ }
232
+ function dt(e, t = []) {
233
+ let s = [];
234
+ function n(i, u) {
235
+ const a = r.createContext(u), l = s.length;
236
+ s = [...s, u];
237
+ function d(p) {
238
+ const { scope: m, children: g, ...v } = p, j = (m == null ? void 0 : m[e][l]) || a, M = r.useMemo(() => v, Object.values(v));
239
+ return /* @__PURE__ */ P.jsx(j.Provider, { value: M, children: g });
240
+ }
241
+ function R(p, m) {
242
+ const g = (m == null ? void 0 : m[e][l]) || a, v = r.useContext(g);
243
+ if (v) return v;
244
+ if (u !== void 0) return u;
245
+ throw new Error(`\`${p}\` must be used within \`${i}\``);
246
+ }
247
+ return d.displayName = i + "Provider", [d, R];
248
+ }
249
+ const o = () => {
250
+ const i = s.map((u) => r.createContext(u));
251
+ return function(a) {
252
+ const l = (a == null ? void 0 : a[e]) || i;
253
+ return r.useMemo(
254
+ () => ({ [`__scope${e}`]: { ...a, [e]: l } }),
255
+ [a, l]
256
+ );
257
+ };
258
+ };
259
+ return o.scopeName = e, [n, K(o, ...t)];
260
+ }
261
+ function K(...e) {
262
+ const t = e[0];
263
+ if (e.length === 1) return t;
264
+ const s = () => {
265
+ const n = e.map((o) => ({
266
+ useScope: o(),
267
+ scopeName: o.scopeName
268
+ }));
269
+ return function(i) {
270
+ const u = n.reduce((a, { useScope: l, scopeName: d }) => {
271
+ const p = l(i)[`__scope${d}`];
272
+ return { ...a, ...p };
273
+ }, {});
274
+ return r.useMemo(() => ({ [`__scope${t.scopeName}`]: u }), [u]);
275
+ };
276
+ };
277
+ return s.scopeName = t.scopeName, s;
278
+ }
279
+ function T(e) {
280
+ const t = r.useRef(e);
281
+ return r.useEffect(() => {
282
+ t.current = e;
283
+ }), r.useMemo(() => (...s) => {
284
+ var n;
285
+ return (n = t.current) == null ? void 0 : n.call(t, ...s);
286
+ }, []);
287
+ }
288
+ function pt({
289
+ prop: e,
290
+ defaultProp: t,
291
+ onChange: s = () => {
292
+ }
293
+ }) {
294
+ const [n, o] = Q({ defaultProp: t, onChange: s }), i = e !== void 0, u = i ? e : n, a = T(s), l = r.useCallback(
295
+ (d) => {
296
+ if (i) {
297
+ const p = typeof d == "function" ? d(e) : d;
298
+ p !== e && a(p);
299
+ } else
300
+ o(d);
301
+ },
302
+ [i, e, o, a]
303
+ );
304
+ return [u, l];
305
+ }
306
+ function Q({
307
+ defaultProp: e,
308
+ onChange: t
309
+ }) {
310
+ const s = r.useState(e), [n] = s, o = r.useRef(n), i = T(t);
311
+ return r.useEffect(() => {
312
+ o.current !== n && (i(n), o.current = n);
313
+ }, [n, o, i]), s;
314
+ }
315
+ var X = globalThis != null && globalThis.document ? r.useLayoutEffect : () => {
316
+ };
317
+ function Y(e, t) {
318
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
319
+ }
320
+ function B(...e) {
321
+ return (t) => e.forEach((s) => Y(s, t));
322
+ }
323
+ function mt(...e) {
324
+ return r.useCallback(B(...e), e);
325
+ }
326
+ var U = r.forwardRef((e, t) => {
327
+ const { children: s, ...n } = e, o = r.Children.toArray(s), i = o.find(tt);
328
+ if (i) {
329
+ const u = i.props.children, a = o.map((l) => l === i ? r.Children.count(u) > 1 ? r.Children.only(null) : r.isValidElement(u) ? u.props.children : null : l);
330
+ return /* @__PURE__ */ P.jsx(N, { ...n, ref: t, children: r.isValidElement(u) ? r.cloneElement(u, void 0, a) : null });
331
+ }
332
+ return /* @__PURE__ */ P.jsx(N, { ...n, ref: t, children: s });
333
+ });
334
+ U.displayName = "Slot";
335
+ var N = r.forwardRef((e, t) => {
336
+ const { children: s, ...n } = e;
337
+ if (r.isValidElement(s)) {
338
+ const o = st(s);
339
+ return r.cloneElement(s, {
340
+ ...et(n, s.props),
341
+ // @ts-ignore
342
+ ref: t ? B(t, o) : o
343
+ });
344
+ }
345
+ return r.Children.count(s) > 1 ? r.Children.only(null) : null;
346
+ });
347
+ N.displayName = "SlotClone";
348
+ var H = ({ children: e }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: e });
349
+ function tt(e) {
350
+ return r.isValidElement(e) && e.type === H;
351
+ }
352
+ function et(e, t) {
353
+ const s = { ...t };
354
+ for (const n in t) {
355
+ const o = e[n], i = t[n];
356
+ /^on[A-Z]/.test(n) ? o && i ? s[n] = (...a) => {
357
+ i(...a), o(...a);
358
+ } : o && (s[n] = o) : n === "style" ? s[n] = { ...o, ...i } : n === "className" && (s[n] = [o, i].filter(Boolean).join(" "));
359
+ }
360
+ return { ...e, ...s };
361
+ }
362
+ function st(e) {
363
+ var n, o;
364
+ let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, s = t && "isReactWarning" in t && t.isReactWarning;
365
+ return s ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, s = t && "isReactWarning" in t && t.isReactWarning, s ? e.props.ref : e.props.ref || e.ref);
366
+ }
367
+ var nt = [
368
+ "a",
369
+ "button",
370
+ "div",
371
+ "form",
372
+ "h2",
373
+ "h3",
374
+ "img",
375
+ "input",
376
+ "label",
377
+ "li",
378
+ "nav",
379
+ "ol",
380
+ "p",
381
+ "span",
382
+ "svg",
383
+ "ul"
384
+ ], yt = nt.reduce((e, t) => {
385
+ const s = r.forwardRef((n, o) => {
386
+ const { asChild: i, ...u } = n, a = i ? U : t;
387
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P.jsx(a, { ...u, ref: o });
388
+ });
389
+ return s.displayName = `Primitive.${t}`, { ...e, [t]: s };
390
+ }, {});
391
+ function xt(e, t) {
392
+ e && q.flushSync(() => e.dispatchEvent(t));
393
+ }
394
+ var ot = r.useId || (() => {
395
+ }), rt = 0;
396
+ function vt(e) {
397
+ const [t, s] = r.useState(ot());
398
+ return X(() => {
399
+ s((n) => n ?? String(rt++));
400
+ }, [e]), t ? `radix-${t}` : "";
401
+ }
402
+ export {
403
+ ct as D,
404
+ lt as M,
405
+ yt as P,
406
+ U as S,
407
+ pt as a,
408
+ T as b,
409
+ dt as c,
410
+ ft as d,
411
+ vt as e,
412
+ ht as f,
413
+ X as g,
414
+ J as h,
415
+ xt as i,
416
+ mt as u
417
+ };
418
+ //# sourceMappingURL=index-gsAuUwQh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-gsAuUwQh.js","sources":["../src/lib/components/DeveloperHint.tsx","../../../node_modules/.pnpm/@tanstack+query-core@5.50.1/node_modules/@tanstack/query-core/build/modern/mutation.js","../../../node_modules/.pnpm/@radix-ui+primitive@1.1.0/node_modules/@radix-ui/primitive/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-context@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-slot@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-primitive@2.0.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-id@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Callout } from \"../ui/Callout.js\";\n\nexport const DeveloperHint = ({\n children,\n className,\n}: {\n children: ReactNode;\n className?: string;\n}) => {\n // TODO: figure out a way to do that in consumer dev mode not \"internal\"\n // so this doesn't get stripped out in the build\n if (!import.meta.env.DEV) return;\n\n return (\n <Callout type=\"caution\" title=\"Developer hint\" className={className}>\n <div className=\"flex flex-col gap-2\">\n <div>{children}</div>\n <small className=\"italic\">\n Note: This hint is only shown in development mode.\n </small>\n </div>\n </Callout>\n );\n};\n","// src/mutation.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { createRetryer } from \"./retryer.js\";\nvar Mutation = class extends Removable {\n #observers;\n #mutationCache;\n #retryer;\n constructor(config) {\n super();\n this.mutationId = config.mutationId;\n this.#mutationCache = config.mutationCache;\n this.#observers = [];\n this.state = config.state || getDefaultState();\n this.setOptions(config.options);\n this.scheduleGc();\n }\n setOptions(options) {\n this.options = options;\n this.updateGcTime(this.options.gcTime);\n }\n get meta() {\n return this.options.meta;\n }\n addObserver(observer) {\n if (!this.#observers.includes(observer)) {\n this.#observers.push(observer);\n this.clearGcTimeout();\n this.#mutationCache.notify({\n type: \"observerAdded\",\n mutation: this,\n observer\n });\n }\n }\n removeObserver(observer) {\n this.#observers = this.#observers.filter((x) => x !== observer);\n this.scheduleGc();\n this.#mutationCache.notify({\n type: \"observerRemoved\",\n mutation: this,\n observer\n });\n }\n optionalRemove() {\n if (!this.#observers.length) {\n if (this.state.status === \"pending\") {\n this.scheduleGc();\n } else {\n this.#mutationCache.remove(this);\n }\n }\n }\n continue() {\n return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before\n this.execute(this.state.variables);\n }\n async execute(variables) {\n this.#retryer = createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject(new Error(\"No mutationFn found\"));\n }\n return this.options.mutationFn(variables);\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue: () => {\n this.#dispatch({ type: \"continue\" });\n },\n retry: this.options.retry ?? 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode,\n canRun: () => this.#mutationCache.canRun(this)\n });\n const restored = this.state.status === \"pending\";\n const isPaused = !this.#retryer.canStart();\n try {\n if (!restored) {\n this.#dispatch({ type: \"pending\", variables, isPaused });\n await this.#mutationCache.config.onMutate?.(\n variables,\n this\n );\n const context = await this.options.onMutate?.(variables);\n if (context !== this.state.context) {\n this.#dispatch({\n type: \"pending\",\n context,\n variables,\n isPaused\n });\n }\n }\n const data = await this.#retryer.start();\n await this.#mutationCache.config.onSuccess?.(\n data,\n variables,\n this.state.context,\n this\n );\n await this.options.onSuccess?.(data, variables, this.state.context);\n await this.#mutationCache.config.onSettled?.(\n data,\n null,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(data, null, variables, this.state.context);\n this.#dispatch({ type: \"success\", data });\n return data;\n } catch (error) {\n try {\n await this.#mutationCache.config.onError?.(\n error,\n variables,\n this.state.context,\n this\n );\n await this.options.onError?.(\n error,\n variables,\n this.state.context\n );\n await this.#mutationCache.config.onSettled?.(\n void 0,\n error,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(\n void 0,\n error,\n variables,\n this.state.context\n );\n throw error;\n } finally {\n this.#dispatch({ type: \"error\", error });\n }\n } finally {\n this.#mutationCache.runNext(this);\n }\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n failureCount: action.failureCount,\n failureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n isPaused: true\n };\n case \"continue\":\n return {\n ...state,\n isPaused: false\n };\n case \"pending\":\n return {\n ...state,\n context: action.context,\n data: void 0,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: action.isPaused,\n status: \"pending\",\n variables: action.variables,\n submittedAt: Date.now()\n };\n case \"success\":\n return {\n ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: \"success\",\n isPaused: false\n };\n case \"error\":\n return {\n ...state,\n data: void 0,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: \"error\"\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.#observers.forEach((observer) => {\n observer.onMutationUpdate(action);\n });\n this.#mutationCache.notify({\n mutation: this,\n type: \"updated\",\n action\n });\n });\n }\n};\nfunction getDefaultState() {\n return {\n context: void 0,\n data: void 0,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: \"idle\",\n variables: void 0,\n submittedAt: 0\n };\n}\nexport {\n Mutation,\n getDefaultState\n};\n//# sourceMappingURL=mutation.js.map","// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n function Provider(props) {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n function Provider(props) {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName][index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName][index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-callback-ref/src/useCallbackRef.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-controllable-state/src/useControllableState.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/compose-refs/src/composeRefs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => refs.forEach((ref) => setRef(ref, node));\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/slot/src/Slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n return React.cloneElement(children, {\n ...mergeProps(slotProps, children.props),\n // @ts-ignore\n ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef\n });\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/primitive/src/Primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\"useId\".toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DeveloperHint","children","className","Mutation","_a","Removable","config","__privateAdd","_Mutation_instances","_observers","_mutationCache","_retryer","__privateSet","getDefaultState","options","observer","__privateGet","x","variables","createRetryer","failureCount","error","__privateMethod","dispatch_fn","restored","isPaused","_b","context","_d","_c","data","_f","_e","_h","_g","_j","_i","_l","_k","_n","_m","_p","_o","_r","_q","_t","_s","action","reducer","state","notifyManager","composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event","createContext2","rootComponentName","defaultContext","Context","React","Provider","props","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope","useCallbackRef","callback","callbackRef","args","useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","handleChange","setValue","nextValue","value2","uncontrolledState","prevValueRef","useLayoutEffect2","setRef","ref","composeRefs","refs","node","useComposedRefs","Slot","forwardedRef","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","SlotClone","childrenRef","getElementRef","mergeProps","Slottable","Fragment","childProps","overrideProps","propName","slotPropValue","childPropValue","element","getter","mayWarn","NODES","Primitive","primitive","Node","asChild","primitiveProps","Comp","dispatchDiscreteCustomEvent","target","ReactDOM","useReactId","count","useId","deterministicId","id","setId","useLayoutEffect","reactId"],"mappings":";;;;;;;;;AAGO,MAAMA,KAAgB,CAAC;AAAA,EAC5B,UAAAC;AAAA,EACA,WAAAC;AACF,MAGM;AAeN;sBCpBIC,MAAWC,IAAA,cAAcC,EAAU;AAAA,EAIrC,YAAYC,GAAQ;AAClB;AALW,IAAAC,EAAA,MAAAC;AACb,IAAAD,EAAA,MAAAE;AACA,IAAAF,EAAA,MAAAG;AACA,IAAAH,EAAA,MAAAI;AAGE,SAAK,aAAaL,EAAO,YACzBM,EAAA,MAAKF,GAAiBJ,EAAO,gBAC7BM,EAAA,MAAKH,GAAa,KAClB,KAAK,QAAQH,EAAO,SAASO,EAAe,GAC5C,KAAK,WAAWP,EAAO,OAAO,GAC9B,KAAK,WAAU;AAAA,EAChB;AAAA,EACD,WAAWQ,GAAS;AAClB,SAAK,UAAUA,GACf,KAAK,aAAa,KAAK,QAAQ,MAAM;AAAA,EACtC;AAAA,EACD,IAAI,OAAO;AACT,WAAO,KAAK,QAAQ;AAAA,EACrB;AAAA,EACD,YAAYC,GAAU;AACpB,IAAKC,EAAA,MAAKP,GAAW,SAASM,CAAQ,MACpCC,EAAA,MAAKP,GAAW,KAAKM,CAAQ,GAC7B,KAAK,eAAc,GACnBC,EAAA,MAAKN,GAAe,OAAO;AAAA,MACzB,MAAM;AAAA,MACN,UAAU;AAAA,MACV,UAAAK;AAAA,IACR,CAAO;AAAA,EAEJ;AAAA,EACD,eAAeA,GAAU;AACvB,IAAAH,EAAA,MAAKH,GAAaO,EAAA,MAAKP,GAAW,OAAO,CAACQ,MAAMA,MAAMF,CAAQ,IAC9D,KAAK,WAAU,GACfC,EAAA,MAAKN,GAAe,OAAO;AAAA,MACzB,MAAM;AAAA,MACN,UAAU;AAA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