convex-cms 0.0.1 → 0.0.3

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 (267) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +99 -0
  3. package/admin-dist/nitro.json +15 -0
  4. package/admin-dist/public/assets/CmsEmptyState-CRswfTzk.js +5 -0
  5. package/admin-dist/public/assets/CmsPageHeader-CirpXndm.js +1 -0
  6. package/admin-dist/public/assets/CmsStatusBadge-CbEUpQu-.js +1 -0
  7. package/admin-dist/public/assets/CmsToolbar-BI2nZOXp.js +1 -0
  8. package/admin-dist/public/assets/ContentEntryEditor-CBeCyK_m.js +4 -0
  9. package/admin-dist/public/assets/ErrorState-BIVaWmom.js +1 -0
  10. package/admin-dist/public/assets/TaxonomyFilter-ChaY6Y_x.js +1 -0
  11. package/admin-dist/public/assets/_contentTypeId-DQ8k_Rvw.js +1 -0
  12. package/admin-dist/public/assets/_entryId-CKU_glsK.js +1 -0
  13. package/admin-dist/public/assets/alert-BXjTqrwQ.js +1 -0
  14. package/admin-dist/public/assets/badge-hvUOzpVZ.js +1 -0
  15. package/admin-dist/public/assets/circle-check-big-CF_pR17r.js +1 -0
  16. package/admin-dist/public/assets/command-DU82cJlt.js +1 -0
  17. package/admin-dist/public/assets/content-_LXl3pp7.js +1 -0
  18. package/admin-dist/public/assets/content-types-KjxaXGxY.js +2 -0
  19. package/admin-dist/public/assets/globals-CS6BZ0zp.css +1 -0
  20. package/admin-dist/public/assets/index-DNGIZHL-.js +1 -0
  21. package/admin-dist/public/assets/label-KNtpL71g.js +1 -0
  22. package/admin-dist/public/assets/link-2-Bw2aI4V4.js +1 -0
  23. package/admin-dist/public/assets/list-sYepHjt_.js +1 -0
  24. package/admin-dist/public/assets/main-CKj5yfEi.js +97 -0
  25. package/admin-dist/public/assets/media-Bkrkffm7.js +1 -0
  26. package/admin-dist/public/assets/new._contentTypeId-C3LstjNs.js +1 -0
  27. package/admin-dist/public/assets/plus-DUn8v_Xf.js +1 -0
  28. package/admin-dist/public/assets/rotate-ccw-DJEoHcRI.js +1 -0
  29. package/admin-dist/public/assets/scroll-area-DfIlT0in.js +1 -0
  30. package/admin-dist/public/assets/search-MuAUDJKR.js +1 -0
  31. package/admin-dist/public/assets/select-BD29IXCI.js +1 -0
  32. package/admin-dist/public/assets/settings-DmMyn_6A.js +1 -0
  33. package/admin-dist/public/assets/switch-h3Rrnl5i.js +1 -0
  34. package/admin-dist/public/assets/tabs-imc8h-Dp.js +1 -0
  35. package/admin-dist/public/assets/taxonomies-dAsrT65H.js +1 -0
  36. package/admin-dist/public/assets/textarea-BTy7nwzR.js +1 -0
  37. package/admin-dist/public/assets/trash-SAWKZZHv.js +1 -0
  38. package/admin-dist/public/assets/triangle-alert-E52Vfeuh.js +1 -0
  39. package/admin-dist/public/assets/useBreadcrumbLabel-BECBMCzM.js +1 -0
  40. package/admin-dist/public/assets/usePermissions-Basjs9BT.js +1 -0
  41. package/admin-dist/public/favicon.ico +0 -0
  42. package/admin-dist/server/_chunks/_libs/@date-fns/tz.mjs +217 -0
  43. package/admin-dist/server/_chunks/_libs/@floating-ui/core.mjs +719 -0
  44. package/admin-dist/server/_chunks/_libs/@floating-ui/dom.mjs +622 -0
  45. package/admin-dist/server/_chunks/_libs/@floating-ui/react-dom.mjs +292 -0
  46. package/admin-dist/server/_chunks/_libs/@floating-ui/utils.mjs +320 -0
  47. package/admin-dist/server/_chunks/_libs/@radix-ui/number.mjs +6 -0
  48. package/admin-dist/server/_chunks/_libs/@radix-ui/primitive.mjs +11 -0
  49. package/admin-dist/server/_chunks/_libs/@radix-ui/react-arrow.mjs +23 -0
  50. package/admin-dist/server/_chunks/_libs/@radix-ui/react-avatar.mjs +119 -0
  51. package/admin-dist/server/_chunks/_libs/@radix-ui/react-checkbox.mjs +270 -0
  52. package/admin-dist/server/_chunks/_libs/@radix-ui/react-collection.mjs +69 -0
  53. package/admin-dist/server/_chunks/_libs/@radix-ui/react-compose-refs.mjs +39 -0
  54. package/admin-dist/server/_chunks/_libs/@radix-ui/react-context.mjs +137 -0
  55. package/admin-dist/server/_chunks/_libs/@radix-ui/react-dialog.mjs +325 -0
  56. package/admin-dist/server/_chunks/_libs/@radix-ui/react-direction.mjs +9 -0
  57. package/admin-dist/server/_chunks/_libs/@radix-ui/react-dismissable-layer.mjs +210 -0
  58. package/admin-dist/server/_chunks/_libs/@radix-ui/react-dropdown-menu.mjs +253 -0
  59. package/admin-dist/server/_chunks/_libs/@radix-ui/react-focus-guards.mjs +29 -0
  60. package/admin-dist/server/_chunks/_libs/@radix-ui/react-focus-scope.mjs +206 -0
  61. package/admin-dist/server/_chunks/_libs/@radix-ui/react-id.mjs +14 -0
  62. package/admin-dist/server/_chunks/_libs/@radix-ui/react-label.mjs +23 -0
  63. package/admin-dist/server/_chunks/_libs/@radix-ui/react-menu.mjs +812 -0
  64. package/admin-dist/server/_chunks/_libs/@radix-ui/react-popover.mjs +300 -0
  65. package/admin-dist/server/_chunks/_libs/@radix-ui/react-popper.mjs +286 -0
  66. package/admin-dist/server/_chunks/_libs/@radix-ui/react-portal.mjs +16 -0
  67. package/admin-dist/server/_chunks/_libs/@radix-ui/react-presence.mjs +128 -0
  68. package/admin-dist/server/_chunks/_libs/@radix-ui/react-primitive.mjs +141 -0
  69. package/admin-dist/server/_chunks/_libs/@radix-ui/react-roving-focus.mjs +224 -0
  70. package/admin-dist/server/_chunks/_libs/@radix-ui/react-scroll-area.mjs +721 -0
  71. package/admin-dist/server/_chunks/_libs/@radix-ui/react-select.mjs +1163 -0
  72. package/admin-dist/server/_chunks/_libs/@radix-ui/react-separator.mjs +28 -0
  73. package/admin-dist/server/_chunks/_libs/@radix-ui/react-slot.mjs +601 -0
  74. package/admin-dist/server/_chunks/_libs/@radix-ui/react-switch.mjs +152 -0
  75. package/admin-dist/server/_chunks/_libs/@radix-ui/react-tabs.mjs +189 -0
  76. package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-callback-ref.mjs +11 -0
  77. package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-controllable-state.mjs +69 -0
  78. package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-effect-event.mjs +1 -0
  79. package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-escape-keydown.mjs +17 -0
  80. package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-is-hydrated.mjs +15 -0
  81. package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-layout-effect.mjs +6 -0
  82. package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-previous.mjs +14 -0
  83. package/admin-dist/server/_chunks/_libs/@radix-ui/react-use-size.mjs +39 -0
  84. package/admin-dist/server/_chunks/_libs/@radix-ui/react-visually-hidden.mjs +33 -0
  85. package/admin-dist/server/_chunks/_libs/@tanstack/history.mjs +409 -0
  86. package/admin-dist/server/_chunks/_libs/@tanstack/react-router.mjs +1711 -0
  87. package/admin-dist/server/_chunks/_libs/@tanstack/react-store.mjs +56 -0
  88. package/admin-dist/server/_chunks/_libs/@tanstack/router-core.mjs +4829 -0
  89. package/admin-dist/server/_chunks/_libs/@tanstack/store.mjs +134 -0
  90. package/admin-dist/server/_chunks/_libs/react-dom.mjs +10781 -0
  91. package/admin-dist/server/_chunks/_libs/react.mjs +513 -0
  92. package/admin-dist/server/_libs/aria-hidden.mjs +122 -0
  93. package/admin-dist/server/_libs/class-variance-authority.mjs +44 -0
  94. package/admin-dist/server/_libs/clsx.mjs +16 -0
  95. package/admin-dist/server/_libs/cmdk.mjs +315 -0
  96. package/admin-dist/server/_libs/convex.mjs +4841 -0
  97. package/admin-dist/server/_libs/cookie-es.mjs +58 -0
  98. package/admin-dist/server/_libs/croner.mjs +1 -0
  99. package/admin-dist/server/_libs/crossws.mjs +1 -0
  100. package/admin-dist/server/_libs/date-fns.mjs +1716 -0
  101. package/admin-dist/server/_libs/detect-node-es.mjs +1 -0
  102. package/admin-dist/server/_libs/get-nonce.mjs +9 -0
  103. package/admin-dist/server/_libs/h3-v2.mjs +277 -0
  104. package/admin-dist/server/_libs/h3.mjs +401 -0
  105. package/admin-dist/server/_libs/hookable.mjs +1 -0
  106. package/admin-dist/server/_libs/isbot.mjs +20 -0
  107. package/admin-dist/server/_libs/lucide-react.mjs +850 -0
  108. package/admin-dist/server/_libs/ohash.mjs +1 -0
  109. package/admin-dist/server/_libs/react-day-picker.mjs +2201 -0
  110. package/admin-dist/server/_libs/react-remove-scroll-bar.mjs +82 -0
  111. package/admin-dist/server/_libs/react-remove-scroll.mjs +328 -0
  112. package/admin-dist/server/_libs/react-style-singleton.mjs +69 -0
  113. package/admin-dist/server/_libs/rou3.mjs +8 -0
  114. package/admin-dist/server/_libs/seroval-plugins.mjs +58 -0
  115. package/admin-dist/server/_libs/seroval.mjs +1765 -0
  116. package/admin-dist/server/_libs/srvx.mjs +719 -0
  117. package/admin-dist/server/_libs/tailwind-merge.mjs +3010 -0
  118. package/admin-dist/server/_libs/tiny-invariant.mjs +12 -0
  119. package/admin-dist/server/_libs/tiny-warning.mjs +5 -0
  120. package/admin-dist/server/_libs/tslib.mjs +39 -0
  121. package/admin-dist/server/_libs/ufo.mjs +54 -0
  122. package/admin-dist/server/_libs/unctx.mjs +1 -0
  123. package/admin-dist/server/_libs/unstorage.mjs +1 -0
  124. package/admin-dist/server/_libs/use-callback-ref.mjs +66 -0
  125. package/admin-dist/server/_libs/use-sidecar.mjs +106 -0
  126. package/admin-dist/server/_libs/use-sync-external-store.mjs +139 -0
  127. package/admin-dist/server/_libs/zod.mjs +4223 -0
  128. package/admin-dist/server/_ssr/CmsEmptyState-DU7-7-mV.mjs +290 -0
  129. package/admin-dist/server/_ssr/CmsPageHeader-CseW0AHm.mjs +24 -0
  130. package/admin-dist/server/_ssr/CmsStatusBadge-B_pi4KCp.mjs +127 -0
  131. package/admin-dist/server/_ssr/CmsToolbar-X75ex6ek.mjs +49 -0
  132. package/admin-dist/server/_ssr/ContentEntryEditor-CepusRsA.mjs +3720 -0
  133. package/admin-dist/server/_ssr/ErrorState-cI-bKLez.mjs +89 -0
  134. package/admin-dist/server/_ssr/TaxonomyFilter-Bwrq0-cz.mjs +188 -0
  135. package/admin-dist/server/_ssr/_contentTypeId-BqYKEcLr.mjs +379 -0
  136. package/admin-dist/server/_ssr/_entryId-CRfnqeDf.mjs +161 -0
  137. package/admin-dist/server/_ssr/_tanstack-start-manifest_v-BwDlABVk.mjs +4 -0
  138. package/admin-dist/server/_ssr/alert-CVt45UUP.mjs +92 -0
  139. package/admin-dist/server/_ssr/badge-6BsP37vG.mjs +125 -0
  140. package/admin-dist/server/_ssr/command-fy8epIKf.mjs +128 -0
  141. package/admin-dist/server/_ssr/config.server-D7JHDcDv.mjs +117 -0
  142. package/admin-dist/server/_ssr/content-B5RhL7uW.mjs +532 -0
  143. package/admin-dist/server/_ssr/content-types-BIOqCQYN.mjs +1166 -0
  144. package/admin-dist/server/_ssr/index-DHSHDPt1.mjs +193 -0
  145. package/admin-dist/server/_ssr/index.mjs +1275 -0
  146. package/admin-dist/server/_ssr/label-C8Dko1j7.mjs +22 -0
  147. package/admin-dist/server/_ssr/media-CSx3XttC.mjs +1832 -0
  148. package/admin-dist/server/_ssr/new._contentTypeId-DzanEZQM.mjs +144 -0
  149. package/admin-dist/server/_ssr/router-DDWcF-kt.mjs +1556 -0
  150. package/admin-dist/server/_ssr/scroll-area-bjPYwhXN.mjs +59 -0
  151. package/admin-dist/server/_ssr/select-BUhDDf4T.mjs +142 -0
  152. package/admin-dist/server/_ssr/settings-DAsxnw2q.mjs +348 -0
  153. package/admin-dist/server/_ssr/start-HYkvq4Ni.mjs +4 -0
  154. package/admin-dist/server/_ssr/switch-BgyRtQ1Z.mjs +31 -0
  155. package/admin-dist/server/_ssr/tabs-DzMdRB1A.mjs +628 -0
  156. package/admin-dist/server/_ssr/taxonomies-C8j8g5Q5.mjs +915 -0
  157. package/admin-dist/server/_ssr/textarea-9jNeYJSc.mjs +18 -0
  158. package/admin-dist/server/_ssr/trash-DYMxwhZB.mjs +291 -0
  159. package/admin-dist/server/_ssr/useBreadcrumbLabel-FNSAr2Ha.mjs +16 -0
  160. package/admin-dist/server/_ssr/usePermissions-BJGGahrJ.mjs +68 -0
  161. package/admin-dist/server/favicon.ico +0 -0
  162. package/admin-dist/server/index.mjs +627 -0
  163. package/dist/cli/index.js +0 -0
  164. package/dist/client/admin-config.d.ts +0 -1
  165. package/dist/client/admin-config.d.ts.map +1 -1
  166. package/dist/client/admin-config.js +0 -1
  167. package/dist/client/admin-config.js.map +1 -1
  168. package/dist/client/adminApi.d.ts.map +1 -1
  169. package/dist/client/agentTools.d.ts +1237 -135
  170. package/dist/client/agentTools.d.ts.map +1 -1
  171. package/dist/client/agentTools.js +33 -9
  172. package/dist/client/agentTools.js.map +1 -1
  173. package/dist/client/index.d.ts +1 -1
  174. package/dist/client/index.d.ts.map +1 -1
  175. package/dist/client/index.js.map +1 -1
  176. package/dist/component/_generated/component.d.ts +9 -0
  177. package/dist/component/_generated/component.d.ts.map +1 -1
  178. package/dist/component/mediaAssets.d.ts +35 -0
  179. package/dist/component/mediaAssets.d.ts.map +1 -1
  180. package/dist/component/mediaAssets.js +81 -0
  181. package/dist/component/mediaAssets.js.map +1 -1
  182. package/dist/test.d.ts.map +1 -1
  183. package/dist/test.js +2 -1
  184. package/dist/test.js.map +1 -1
  185. package/package.json +24 -9
  186. package/dist/component/auditLog.d.ts +0 -410
  187. package/dist/component/auditLog.d.ts.map +0 -1
  188. package/dist/component/auditLog.js +0 -607
  189. package/dist/component/auditLog.js.map +0 -1
  190. package/dist/component/types.d.ts +0 -4
  191. package/dist/component/types.d.ts.map +0 -1
  192. package/dist/component/types.js +0 -2
  193. package/dist/component/types.js.map +0 -1
  194. package/src/cli/commands/admin.ts +0 -104
  195. package/src/cli/index.ts +0 -21
  196. package/src/cli/utils/detectConvexUrl.ts +0 -54
  197. package/src/cli/utils/openBrowser.ts +0 -16
  198. package/src/client/admin-config.ts +0 -138
  199. package/src/client/adminApi.ts +0 -942
  200. package/src/client/agentTools.ts +0 -1311
  201. package/src/client/argTypes.ts +0 -316
  202. package/src/client/field-types.ts +0 -187
  203. package/src/client/index.ts +0 -1301
  204. package/src/client/queryBuilder.ts +0 -1100
  205. package/src/client/schema/codegen.ts +0 -500
  206. package/src/client/schema/defineContentType.ts +0 -501
  207. package/src/client/schema/index.ts +0 -169
  208. package/src/client/schema/schemaDrift.ts +0 -574
  209. package/src/client/schema/typedClient.ts +0 -688
  210. package/src/client/schema/types.ts +0 -666
  211. package/src/client/types.ts +0 -723
  212. package/src/client/workflows.ts +0 -141
  213. package/src/client/wrapper.ts +0 -4304
  214. package/src/component/_generated/api.ts +0 -140
  215. package/src/component/_generated/component.ts +0 -5029
  216. package/src/component/_generated/dataModel.ts +0 -60
  217. package/src/component/_generated/server.ts +0 -156
  218. package/src/component/authorization.ts +0 -647
  219. package/src/component/authorizationHooks.ts +0 -668
  220. package/src/component/bulkOperations.ts +0 -687
  221. package/src/component/contentEntries.ts +0 -1976
  222. package/src/component/contentEntryMutations.ts +0 -1223
  223. package/src/component/contentEntryValidation.ts +0 -707
  224. package/src/component/contentLock.ts +0 -550
  225. package/src/component/contentTypeMigration.ts +0 -1064
  226. package/src/component/contentTypeMutations.ts +0 -969
  227. package/src/component/contentTypes.ts +0 -346
  228. package/src/component/convex.config.ts +0 -44
  229. package/src/component/documentTypes.ts +0 -240
  230. package/src/component/eventEmitter.ts +0 -485
  231. package/src/component/exportImport.ts +0 -1169
  232. package/src/component/index.ts +0 -491
  233. package/src/component/lib/deepReferenceResolver.ts +0 -999
  234. package/src/component/lib/errors.ts +0 -816
  235. package/src/component/lib/index.ts +0 -145
  236. package/src/component/lib/mediaReferenceResolver.ts +0 -495
  237. package/src/component/lib/metadataExtractor.ts +0 -792
  238. package/src/component/lib/mutationAuth.ts +0 -199
  239. package/src/component/lib/queries.ts +0 -79
  240. package/src/component/lib/ragContentChunker.ts +0 -1371
  241. package/src/component/lib/referenceResolver.ts +0 -430
  242. package/src/component/lib/slugGenerator.ts +0 -262
  243. package/src/component/lib/slugUniqueness.ts +0 -333
  244. package/src/component/lib/softDelete.ts +0 -44
  245. package/src/component/localeFallbackChain.ts +0 -673
  246. package/src/component/localeFields.ts +0 -896
  247. package/src/component/mediaAssetMutations.ts +0 -725
  248. package/src/component/mediaAssets.ts +0 -932
  249. package/src/component/mediaFolderMutations.ts +0 -1046
  250. package/src/component/mediaUploadMutations.ts +0 -224
  251. package/src/component/mediaVariantMutations.ts +0 -900
  252. package/src/component/mediaVariants.ts +0 -793
  253. package/src/component/ragContentIndexer.ts +0 -1067
  254. package/src/component/rateLimitHooks.ts +0 -572
  255. package/src/component/roles.ts +0 -1360
  256. package/src/component/scheduledPublish.ts +0 -358
  257. package/src/component/schema.ts +0 -617
  258. package/src/component/taxonomies.ts +0 -949
  259. package/src/component/taxonomyMutations.ts +0 -1210
  260. package/src/component/trash.ts +0 -724
  261. package/src/component/userContext.ts +0 -898
  262. package/src/component/validation.ts +0 -1388
  263. package/src/component/validators.ts +0 -949
  264. package/src/component/versionMutations.ts +0 -392
  265. package/src/component/webhookTrigger.ts +0 -1922
  266. package/src/react/index.ts +0 -898
  267. package/src/test.ts +0 -1580
@@ -0,0 +1,28 @@
1
+ import { r as reactExports, j as jsxRuntimeExports } from "../react.mjs";
2
+ import { c as Primitive } from "./react-primitive.mjs";
3
+ var NAME = "Separator";
4
+ var DEFAULT_ORIENTATION = "horizontal";
5
+ var ORIENTATIONS = ["horizontal", "vertical"];
6
+ var Separator = reactExports.forwardRef((props, forwardedRef) => {
7
+ const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
8
+ const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
9
+ const ariaOrientation = orientation === "vertical" ? orientation : void 0;
10
+ const semanticProps = decorative ? { role: "none" } : { "aria-orientation": ariaOrientation, role: "separator" };
11
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
12
+ Primitive.div,
13
+ {
14
+ "data-orientation": orientation,
15
+ ...semanticProps,
16
+ ...domProps,
17
+ ref: forwardedRef
18
+ }
19
+ );
20
+ });
21
+ Separator.displayName = NAME;
22
+ function isValidOrientation(orientation) {
23
+ return ORIENTATIONS.includes(orientation);
24
+ }
25
+ var Root = Separator;
26
+ export {
27
+ Root as R
28
+ };
@@ -0,0 +1,601 @@
1
+ import { r as reactExports, j as jsxRuntimeExports, R as React } from "../react.mjs";
2
+ import { c as composeRefs } from "./react-compose-refs.mjs";
3
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
4
+ var use = React[" use ".trim().toString()];
5
+ function isPromiseLike(value) {
6
+ return typeof value === "object" && value !== null && "then" in value;
7
+ }
8
+ function isLazyComponent(element) {
9
+ return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
10
+ }
11
+ // @__NO_SIDE_EFFECTS__
12
+ function createSlot$6(ownerName) {
13
+ const SlotClone = /* @__PURE__ */ createSlotClone$6(ownerName);
14
+ const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
15
+ let { children, ...slotProps } = props;
16
+ if (isLazyComponent(children) && typeof use === "function") {
17
+ children = use(children._payload);
18
+ }
19
+ const childrenArray = reactExports.Children.toArray(children);
20
+ const slottable = childrenArray.find(isSlottable$6);
21
+ if (slottable) {
22
+ const newElement = slottable.props.children;
23
+ const newChildren = childrenArray.map((child) => {
24
+ if (child === slottable) {
25
+ if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
26
+ return reactExports.isValidElement(newElement) ? newElement.props.children : null;
27
+ } else {
28
+ return child;
29
+ }
30
+ });
31
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
32
+ }
33
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
34
+ });
35
+ Slot2.displayName = `${ownerName}.Slot`;
36
+ return Slot2;
37
+ }
38
+ var Slot = /* @__PURE__ */ createSlot$6("Slot");
39
+ // @__NO_SIDE_EFFECTS__
40
+ function createSlotClone$6(ownerName) {
41
+ const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
42
+ let { children, ...slotProps } = props;
43
+ if (isLazyComponent(children) && typeof use === "function") {
44
+ children = use(children._payload);
45
+ }
46
+ if (reactExports.isValidElement(children)) {
47
+ const childrenRef = getElementRef$6(children);
48
+ const props2 = mergeProps$6(slotProps, children.props);
49
+ if (children.type !== reactExports.Fragment) {
50
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
51
+ }
52
+ return reactExports.cloneElement(children, props2);
53
+ }
54
+ return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
55
+ });
56
+ SlotClone.displayName = `${ownerName}.SlotClone`;
57
+ return SlotClone;
58
+ }
59
+ var SLOTTABLE_IDENTIFIER$6 = Symbol("radix.slottable");
60
+ function isSlottable$6(child) {
61
+ return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$6;
62
+ }
63
+ function mergeProps$6(slotProps, childProps) {
64
+ const overrideProps = { ...childProps };
65
+ for (const propName in childProps) {
66
+ const slotPropValue = slotProps[propName];
67
+ const childPropValue = childProps[propName];
68
+ const isHandler = /^on[A-Z]/.test(propName);
69
+ if (isHandler) {
70
+ if (slotPropValue && childPropValue) {
71
+ overrideProps[propName] = (...args) => {
72
+ const result = childPropValue(...args);
73
+ slotPropValue(...args);
74
+ return result;
75
+ };
76
+ } else if (slotPropValue) {
77
+ overrideProps[propName] = slotPropValue;
78
+ }
79
+ } else if (propName === "style") {
80
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
81
+ } else if (propName === "className") {
82
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
83
+ }
84
+ }
85
+ return { ...slotProps, ...overrideProps };
86
+ }
87
+ function getElementRef$6(element) {
88
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
89
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
90
+ if (mayWarn) {
91
+ return element.ref;
92
+ }
93
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
94
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
95
+ if (mayWarn) {
96
+ return element.props.ref;
97
+ }
98
+ return element.props.ref || element.ref;
99
+ }
100
+ // @__NO_SIDE_EFFECTS__
101
+ function createSlot$5(ownerName) {
102
+ const SlotClone = /* @__PURE__ */ createSlotClone$5(ownerName);
103
+ const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
104
+ const { children, ...slotProps } = props;
105
+ const childrenArray = reactExports.Children.toArray(children);
106
+ const slottable = childrenArray.find(isSlottable$5);
107
+ if (slottable) {
108
+ const newElement = slottable.props.children;
109
+ const newChildren = childrenArray.map((child) => {
110
+ if (child === slottable) {
111
+ if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
112
+ return reactExports.isValidElement(newElement) ? newElement.props.children : null;
113
+ } else {
114
+ return child;
115
+ }
116
+ });
117
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
118
+ }
119
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
120
+ });
121
+ Slot2.displayName = `${ownerName}.Slot`;
122
+ return Slot2;
123
+ }
124
+ // @__NO_SIDE_EFFECTS__
125
+ function createSlotClone$5(ownerName) {
126
+ const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
127
+ const { children, ...slotProps } = props;
128
+ if (reactExports.isValidElement(children)) {
129
+ const childrenRef = getElementRef$5(children);
130
+ const props2 = mergeProps$5(slotProps, children.props);
131
+ if (children.type !== reactExports.Fragment) {
132
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
133
+ }
134
+ return reactExports.cloneElement(children, props2);
135
+ }
136
+ return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
137
+ });
138
+ SlotClone.displayName = `${ownerName}.SlotClone`;
139
+ return SlotClone;
140
+ }
141
+ var SLOTTABLE_IDENTIFIER$5 = Symbol("radix.slottable");
142
+ function isSlottable$5(child) {
143
+ return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$5;
144
+ }
145
+ function mergeProps$5(slotProps, childProps) {
146
+ const overrideProps = { ...childProps };
147
+ for (const propName in childProps) {
148
+ const slotPropValue = slotProps[propName];
149
+ const childPropValue = childProps[propName];
150
+ const isHandler = /^on[A-Z]/.test(propName);
151
+ if (isHandler) {
152
+ if (slotPropValue && childPropValue) {
153
+ overrideProps[propName] = (...args) => {
154
+ const result = childPropValue(...args);
155
+ slotPropValue(...args);
156
+ return result;
157
+ };
158
+ } else if (slotPropValue) {
159
+ overrideProps[propName] = slotPropValue;
160
+ }
161
+ } else if (propName === "style") {
162
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
163
+ } else if (propName === "className") {
164
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
165
+ }
166
+ }
167
+ return { ...slotProps, ...overrideProps };
168
+ }
169
+ function getElementRef$5(element) {
170
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
171
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
172
+ if (mayWarn) {
173
+ return element.ref;
174
+ }
175
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
176
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
177
+ if (mayWarn) {
178
+ return element.props.ref;
179
+ }
180
+ return element.props.ref || element.ref;
181
+ }
182
+ // @__NO_SIDE_EFFECTS__
183
+ function createSlot$4(ownerName) {
184
+ const SlotClone = /* @__PURE__ */ createSlotClone$4(ownerName);
185
+ const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
186
+ const { children, ...slotProps } = props;
187
+ const childrenArray = reactExports.Children.toArray(children);
188
+ const slottable = childrenArray.find(isSlottable$4);
189
+ if (slottable) {
190
+ const newElement = slottable.props.children;
191
+ const newChildren = childrenArray.map((child) => {
192
+ if (child === slottable) {
193
+ if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
194
+ return reactExports.isValidElement(newElement) ? newElement.props.children : null;
195
+ } else {
196
+ return child;
197
+ }
198
+ });
199
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
200
+ }
201
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
202
+ });
203
+ Slot2.displayName = `${ownerName}.Slot`;
204
+ return Slot2;
205
+ }
206
+ // @__NO_SIDE_EFFECTS__
207
+ function createSlotClone$4(ownerName) {
208
+ const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
209
+ const { children, ...slotProps } = props;
210
+ if (reactExports.isValidElement(children)) {
211
+ const childrenRef = getElementRef$4(children);
212
+ const props2 = mergeProps$4(slotProps, children.props);
213
+ if (children.type !== reactExports.Fragment) {
214
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
215
+ }
216
+ return reactExports.cloneElement(children, props2);
217
+ }
218
+ return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
219
+ });
220
+ SlotClone.displayName = `${ownerName}.SlotClone`;
221
+ return SlotClone;
222
+ }
223
+ var SLOTTABLE_IDENTIFIER$4 = Symbol("radix.slottable");
224
+ function isSlottable$4(child) {
225
+ return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$4;
226
+ }
227
+ function mergeProps$4(slotProps, childProps) {
228
+ const overrideProps = { ...childProps };
229
+ for (const propName in childProps) {
230
+ const slotPropValue = slotProps[propName];
231
+ const childPropValue = childProps[propName];
232
+ const isHandler = /^on[A-Z]/.test(propName);
233
+ if (isHandler) {
234
+ if (slotPropValue && childPropValue) {
235
+ overrideProps[propName] = (...args) => {
236
+ const result = childPropValue(...args);
237
+ slotPropValue(...args);
238
+ return result;
239
+ };
240
+ } else if (slotPropValue) {
241
+ overrideProps[propName] = slotPropValue;
242
+ }
243
+ } else if (propName === "style") {
244
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
245
+ } else if (propName === "className") {
246
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
247
+ }
248
+ }
249
+ return { ...slotProps, ...overrideProps };
250
+ }
251
+ function getElementRef$4(element) {
252
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
253
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
254
+ if (mayWarn) {
255
+ return element.ref;
256
+ }
257
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
258
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
259
+ if (mayWarn) {
260
+ return element.props.ref;
261
+ }
262
+ return element.props.ref || element.ref;
263
+ }
264
+ // @__NO_SIDE_EFFECTS__
265
+ function createSlot$3(ownerName) {
266
+ const SlotClone = /* @__PURE__ */ createSlotClone$3(ownerName);
267
+ const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
268
+ const { children, ...slotProps } = props;
269
+ const childrenArray = reactExports.Children.toArray(children);
270
+ const slottable = childrenArray.find(isSlottable$3);
271
+ if (slottable) {
272
+ const newElement = slottable.props.children;
273
+ const newChildren = childrenArray.map((child) => {
274
+ if (child === slottable) {
275
+ if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
276
+ return reactExports.isValidElement(newElement) ? newElement.props.children : null;
277
+ } else {
278
+ return child;
279
+ }
280
+ });
281
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
282
+ }
283
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
284
+ });
285
+ Slot2.displayName = `${ownerName}.Slot`;
286
+ return Slot2;
287
+ }
288
+ // @__NO_SIDE_EFFECTS__
289
+ function createSlotClone$3(ownerName) {
290
+ const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
291
+ const { children, ...slotProps } = props;
292
+ if (reactExports.isValidElement(children)) {
293
+ const childrenRef = getElementRef$3(children);
294
+ const props2 = mergeProps$3(slotProps, children.props);
295
+ if (children.type !== reactExports.Fragment) {
296
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
297
+ }
298
+ return reactExports.cloneElement(children, props2);
299
+ }
300
+ return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
301
+ });
302
+ SlotClone.displayName = `${ownerName}.SlotClone`;
303
+ return SlotClone;
304
+ }
305
+ var SLOTTABLE_IDENTIFIER$3 = Symbol("radix.slottable");
306
+ function isSlottable$3(child) {
307
+ return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$3;
308
+ }
309
+ function mergeProps$3(slotProps, childProps) {
310
+ const overrideProps = { ...childProps };
311
+ for (const propName in childProps) {
312
+ const slotPropValue = slotProps[propName];
313
+ const childPropValue = childProps[propName];
314
+ const isHandler = /^on[A-Z]/.test(propName);
315
+ if (isHandler) {
316
+ if (slotPropValue && childPropValue) {
317
+ overrideProps[propName] = (...args) => {
318
+ const result = childPropValue(...args);
319
+ slotPropValue(...args);
320
+ return result;
321
+ };
322
+ } else if (slotPropValue) {
323
+ overrideProps[propName] = slotPropValue;
324
+ }
325
+ } else if (propName === "style") {
326
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
327
+ } else if (propName === "className") {
328
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
329
+ }
330
+ }
331
+ return { ...slotProps, ...overrideProps };
332
+ }
333
+ function getElementRef$3(element) {
334
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
335
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
336
+ if (mayWarn) {
337
+ return element.ref;
338
+ }
339
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
340
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
341
+ if (mayWarn) {
342
+ return element.props.ref;
343
+ }
344
+ return element.props.ref || element.ref;
345
+ }
346
+ // @__NO_SIDE_EFFECTS__
347
+ function createSlot$2(ownerName) {
348
+ const SlotClone = /* @__PURE__ */ createSlotClone$2(ownerName);
349
+ const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
350
+ const { children, ...slotProps } = props;
351
+ const childrenArray = reactExports.Children.toArray(children);
352
+ const slottable = childrenArray.find(isSlottable$2);
353
+ if (slottable) {
354
+ const newElement = slottable.props.children;
355
+ const newChildren = childrenArray.map((child) => {
356
+ if (child === slottable) {
357
+ if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
358
+ return reactExports.isValidElement(newElement) ? newElement.props.children : null;
359
+ } else {
360
+ return child;
361
+ }
362
+ });
363
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
364
+ }
365
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
366
+ });
367
+ Slot2.displayName = `${ownerName}.Slot`;
368
+ return Slot2;
369
+ }
370
+ // @__NO_SIDE_EFFECTS__
371
+ function createSlotClone$2(ownerName) {
372
+ const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
373
+ const { children, ...slotProps } = props;
374
+ if (reactExports.isValidElement(children)) {
375
+ const childrenRef = getElementRef$2(children);
376
+ const props2 = mergeProps$2(slotProps, children.props);
377
+ if (children.type !== reactExports.Fragment) {
378
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
379
+ }
380
+ return reactExports.cloneElement(children, props2);
381
+ }
382
+ return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
383
+ });
384
+ SlotClone.displayName = `${ownerName}.SlotClone`;
385
+ return SlotClone;
386
+ }
387
+ var SLOTTABLE_IDENTIFIER$2 = Symbol("radix.slottable");
388
+ function isSlottable$2(child) {
389
+ return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$2;
390
+ }
391
+ function mergeProps$2(slotProps, childProps) {
392
+ const overrideProps = { ...childProps };
393
+ for (const propName in childProps) {
394
+ const slotPropValue = slotProps[propName];
395
+ const childPropValue = childProps[propName];
396
+ const isHandler = /^on[A-Z]/.test(propName);
397
+ if (isHandler) {
398
+ if (slotPropValue && childPropValue) {
399
+ overrideProps[propName] = (...args) => {
400
+ const result = childPropValue(...args);
401
+ slotPropValue(...args);
402
+ return result;
403
+ };
404
+ } else if (slotPropValue) {
405
+ overrideProps[propName] = slotPropValue;
406
+ }
407
+ } else if (propName === "style") {
408
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
409
+ } else if (propName === "className") {
410
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
411
+ }
412
+ }
413
+ return { ...slotProps, ...overrideProps };
414
+ }
415
+ function getElementRef$2(element) {
416
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
417
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
418
+ if (mayWarn) {
419
+ return element.ref;
420
+ }
421
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
422
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
423
+ if (mayWarn) {
424
+ return element.props.ref;
425
+ }
426
+ return element.props.ref || element.ref;
427
+ }
428
+ // @__NO_SIDE_EFFECTS__
429
+ function createSlot$1(ownerName) {
430
+ const SlotClone = /* @__PURE__ */ createSlotClone$1(ownerName);
431
+ const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
432
+ const { children, ...slotProps } = props;
433
+ const childrenArray = reactExports.Children.toArray(children);
434
+ const slottable = childrenArray.find(isSlottable$1);
435
+ if (slottable) {
436
+ const newElement = slottable.props.children;
437
+ const newChildren = childrenArray.map((child) => {
438
+ if (child === slottable) {
439
+ if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
440
+ return reactExports.isValidElement(newElement) ? newElement.props.children : null;
441
+ } else {
442
+ return child;
443
+ }
444
+ });
445
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
446
+ }
447
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
448
+ });
449
+ Slot2.displayName = `${ownerName}.Slot`;
450
+ return Slot2;
451
+ }
452
+ // @__NO_SIDE_EFFECTS__
453
+ function createSlotClone$1(ownerName) {
454
+ const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
455
+ const { children, ...slotProps } = props;
456
+ if (reactExports.isValidElement(children)) {
457
+ const childrenRef = getElementRef$1(children);
458
+ const props2 = mergeProps$1(slotProps, children.props);
459
+ if (children.type !== reactExports.Fragment) {
460
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
461
+ }
462
+ return reactExports.cloneElement(children, props2);
463
+ }
464
+ return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
465
+ });
466
+ SlotClone.displayName = `${ownerName}.SlotClone`;
467
+ return SlotClone;
468
+ }
469
+ var SLOTTABLE_IDENTIFIER$1 = Symbol("radix.slottable");
470
+ function isSlottable$1(child) {
471
+ return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER$1;
472
+ }
473
+ function mergeProps$1(slotProps, childProps) {
474
+ const overrideProps = { ...childProps };
475
+ for (const propName in childProps) {
476
+ const slotPropValue = slotProps[propName];
477
+ const childPropValue = childProps[propName];
478
+ const isHandler = /^on[A-Z]/.test(propName);
479
+ if (isHandler) {
480
+ if (slotPropValue && childPropValue) {
481
+ overrideProps[propName] = (...args) => {
482
+ const result = childPropValue(...args);
483
+ slotPropValue(...args);
484
+ return result;
485
+ };
486
+ } else if (slotPropValue) {
487
+ overrideProps[propName] = slotPropValue;
488
+ }
489
+ } else if (propName === "style") {
490
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
491
+ } else if (propName === "className") {
492
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
493
+ }
494
+ }
495
+ return { ...slotProps, ...overrideProps };
496
+ }
497
+ function getElementRef$1(element) {
498
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
499
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
500
+ if (mayWarn) {
501
+ return element.ref;
502
+ }
503
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
504
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
505
+ if (mayWarn) {
506
+ return element.props.ref;
507
+ }
508
+ return element.props.ref || element.ref;
509
+ }
510
+ // @__NO_SIDE_EFFECTS__
511
+ function createSlot(ownerName) {
512
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
513
+ const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
514
+ const { children, ...slotProps } = props;
515
+ const childrenArray = reactExports.Children.toArray(children);
516
+ const slottable = childrenArray.find(isSlottable);
517
+ if (slottable) {
518
+ const newElement = slottable.props.children;
519
+ const newChildren = childrenArray.map((child) => {
520
+ if (child === slottable) {
521
+ if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
522
+ return reactExports.isValidElement(newElement) ? newElement.props.children : null;
523
+ } else {
524
+ return child;
525
+ }
526
+ });
527
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
528
+ }
529
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
530
+ });
531
+ Slot2.displayName = `${ownerName}.Slot`;
532
+ return Slot2;
533
+ }
534
+ // @__NO_SIDE_EFFECTS__
535
+ function createSlotClone(ownerName) {
536
+ const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
537
+ const { children, ...slotProps } = props;
538
+ if (reactExports.isValidElement(children)) {
539
+ const childrenRef = getElementRef(children);
540
+ const props2 = mergeProps(slotProps, children.props);
541
+ if (children.type !== reactExports.Fragment) {
542
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
543
+ }
544
+ return reactExports.cloneElement(children, props2);
545
+ }
546
+ return reactExports.Children.count(children) > 1 ? reactExports.Children.only(null) : null;
547
+ });
548
+ SlotClone.displayName = `${ownerName}.SlotClone`;
549
+ return SlotClone;
550
+ }
551
+ var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
552
+ function isSlottable(child) {
553
+ return reactExports.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
554
+ }
555
+ function mergeProps(slotProps, childProps) {
556
+ const overrideProps = { ...childProps };
557
+ for (const propName in childProps) {
558
+ const slotPropValue = slotProps[propName];
559
+ const childPropValue = childProps[propName];
560
+ const isHandler = /^on[A-Z]/.test(propName);
561
+ if (isHandler) {
562
+ if (slotPropValue && childPropValue) {
563
+ overrideProps[propName] = (...args) => {
564
+ const result = childPropValue(...args);
565
+ slotPropValue(...args);
566
+ return result;
567
+ };
568
+ } else if (slotPropValue) {
569
+ overrideProps[propName] = slotPropValue;
570
+ }
571
+ } else if (propName === "style") {
572
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
573
+ } else if (propName === "className") {
574
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
575
+ }
576
+ }
577
+ return { ...slotProps, ...overrideProps };
578
+ }
579
+ function getElementRef(element) {
580
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
581
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
582
+ if (mayWarn) {
583
+ return element.ref;
584
+ }
585
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
586
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
587
+ if (mayWarn) {
588
+ return element.props.ref;
589
+ }
590
+ return element.props.ref || element.ref;
591
+ }
592
+ export {
593
+ Slot as S,
594
+ createSlot$6 as a,
595
+ createSlot$4 as b,
596
+ createSlot$5 as c,
597
+ createSlot$3 as d,
598
+ createSlot$2 as e,
599
+ createSlot$1 as f,
600
+ createSlot as g
601
+ };