ivt 0.2.6 → 0.2.8

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 (156) hide show
  1. package/dist/accordion/index.mjs +1 -1
  2. package/dist/alert/index.mjs +1 -1
  3. package/dist/alert-dialog/index.mjs +1 -1
  4. package/dist/avatar/index.mjs +1 -1
  5. package/dist/avatar/index.mjs.map +1 -1
  6. package/dist/badge/index.mjs +1 -1
  7. package/dist/base/index.mjs +1 -1
  8. package/dist/base/index.mjs.map +1 -1
  9. package/dist/button/index.mjs +1 -1
  10. package/dist/calendar/index.mjs +1 -1
  11. package/dist/card/index.mjs +1 -1
  12. package/dist/chart/index.d.ts +55 -0
  13. package/dist/chart/index.mjs +2 -0
  14. package/dist/chart/index.mjs.map +1 -0
  15. package/dist/checkbox/index.mjs +1 -1
  16. package/dist/chunks/_commonjsHelpers-Bjj-JKBe.mjs +2 -0
  17. package/dist/chunks/_commonjsHelpers-Bjj-JKBe.mjs.map +1 -0
  18. package/dist/chunks/{accordion-0MI-Gnhr.mjs → accordion-Dl9OR3bi.mjs} +2 -2
  19. package/dist/chunks/{accordion-0MI-Gnhr.mjs.map → accordion-Dl9OR3bi.mjs.map} +1 -1
  20. package/dist/chunks/{badge-CORNh0AZ.mjs → badge-DQMrqIyu.mjs} +2 -2
  21. package/dist/chunks/{badge-CORNh0AZ.mjs.map → badge-DQMrqIyu.mjs.map} +1 -1
  22. package/dist/chunks/{bundle-mjs-D9tdROnD.mjs → bundle-mjs-DRUwh-0R.mjs} +1 -1
  23. package/dist/chunks/{bundle-mjs-D9tdROnD.mjs.map → bundle-mjs-DRUwh-0R.mjs.map} +1 -1
  24. package/dist/chunks/{button-C-N34JAH.mjs → button-Dhe5fFAk.mjs} +2 -2
  25. package/dist/chunks/{button-C-N34JAH.mjs.map → button-Dhe5fFAk.mjs.map} +1 -1
  26. package/dist/chunks/{calendar--a2-dYhD.mjs → calendar-CvUHWFGI.mjs} +2 -2
  27. package/dist/chunks/{calendar--a2-dYhD.mjs.map → calendar-CvUHWFGI.mjs.map} +1 -1
  28. package/dist/chunks/check-CTdDPXjk.mjs +2 -0
  29. package/dist/chunks/{check-C1kmNajw.mjs.map → check-CTdDPXjk.mjs.map} +1 -1
  30. package/dist/chunks/chevron-down-DDHw_qmV.mjs +2 -0
  31. package/dist/chunks/{chevron-down-V04oa9sD.mjs.map → chevron-down-DDHw_qmV.mjs.map} +1 -1
  32. package/dist/chunks/chevron-left-CjUEKmgQ.mjs +2 -0
  33. package/dist/chunks/{chevron-left-B3kOPqDD.mjs.map → chevron-left-CjUEKmgQ.mjs.map} +1 -1
  34. package/dist/chunks/chevron-right-BaRUY2Lm.mjs +2 -0
  35. package/dist/chunks/{chevron-right-PpLc5ALc.mjs.map → chevron-right-BaRUY2Lm.mjs.map} +1 -1
  36. package/dist/chunks/circle-B6AT9LZB.mjs +2 -0
  37. package/dist/chunks/{circle-U4u29qXG.mjs.map → circle-B6AT9LZB.mjs.map} +1 -1
  38. package/dist/chunks/{command-C7dK8ZE6.mjs → command-B20MmNTS.mjs} +2 -2
  39. package/dist/chunks/{command-C7dK8ZE6.mjs.map → command-B20MmNTS.mjs.map} +1 -1
  40. package/dist/chunks/{createLucideIcon-CXSR1bEP.mjs → createLucideIcon-Bub0IDlo.mjs} +1 -1
  41. package/dist/chunks/{createLucideIcon-CXSR1bEP.mjs.map → createLucideIcon-Bub0IDlo.mjs.map} +1 -1
  42. package/dist/chunks/{dialog-CJ5QhsSB.mjs → dialog-DvFOk-pv.mjs} +2 -2
  43. package/dist/chunks/{dialog-CJ5QhsSB.mjs.map → dialog-DvFOk-pv.mjs.map} +1 -1
  44. package/dist/chunks/{hover-card-Bok4BVC-.mjs → hover-card-D8uFTCNm.mjs} +2 -2
  45. package/dist/chunks/{hover-card-Bok4BVC-.mjs.map → hover-card-D8uFTCNm.mjs.map} +1 -1
  46. package/dist/chunks/{index-DOiEGiat.mjs → index-0ahJ1Q21.mjs} +2 -2
  47. package/dist/chunks/{index-DOiEGiat.mjs.map → index-0ahJ1Q21.mjs.map} +1 -1
  48. package/dist/chunks/{index-D532f2iM.mjs → index-B7nzlBcT.mjs} +2 -2
  49. package/dist/chunks/{index-D532f2iM.mjs.map → index-B7nzlBcT.mjs.map} +1 -1
  50. package/dist/chunks/{index-L0FTCOiH.mjs → index-BOWDavn2.mjs} +2 -2
  51. package/dist/chunks/{index-L0FTCOiH.mjs.map → index-BOWDavn2.mjs.map} +1 -1
  52. package/dist/chunks/{index-BMe6PFsX.mjs → index-Bo9g9ZHj.mjs} +2 -2
  53. package/dist/chunks/{index-BMe6PFsX.mjs.map → index-Bo9g9ZHj.mjs.map} +1 -1
  54. package/dist/chunks/{index-BzvNkDmM.mjs → index-Bt73Afz2.mjs} +1 -1
  55. package/dist/chunks/{index-BzvNkDmM.mjs.map → index-Bt73Afz2.mjs.map} +1 -1
  56. package/dist/chunks/{index-CO0WWuYX.mjs → index-Bv09gbbz.mjs} +1 -1
  57. package/dist/chunks/{index-CO0WWuYX.mjs.map → index-Bv09gbbz.mjs.map} +1 -1
  58. package/dist/chunks/{index-BNzQ3c3A.mjs → index-C4C3l5WF.mjs} +2 -2
  59. package/dist/chunks/{index-BNzQ3c3A.mjs.map → index-C4C3l5WF.mjs.map} +1 -1
  60. package/dist/chunks/{index-DCzuZZz4.mjs → index-CaYe_hNP.mjs} +1 -1
  61. package/dist/chunks/{index-DCzuZZz4.mjs.map → index-CaYe_hNP.mjs.map} +1 -1
  62. package/dist/chunks/{index-BJZ14-gh.mjs → index-Cu6LwID6.mjs} +1 -1
  63. package/dist/chunks/{index-BJZ14-gh.mjs.map → index-Cu6LwID6.mjs.map} +1 -1
  64. package/dist/chunks/{index-BVACT7xe.mjs → index-CzTsDkbO.mjs} +2 -2
  65. package/dist/chunks/{index-BVACT7xe.mjs.map → index-CzTsDkbO.mjs.map} +1 -1
  66. package/dist/chunks/{index-BO-2wsZH.mjs → index-DBp_Gx1M.mjs} +1 -1
  67. package/dist/chunks/{index-BO-2wsZH.mjs.map → index-DBp_Gx1M.mjs.map} +1 -1
  68. package/dist/chunks/{index-DtAARIfz.mjs → index-DZgHf-gI.mjs} +1 -1
  69. package/dist/chunks/{index-DtAARIfz.mjs.map → index-DZgHf-gI.mjs.map} +1 -1
  70. package/dist/chunks/index-DheYAHt3.mjs +2 -0
  71. package/dist/chunks/index-DheYAHt3.mjs.map +1 -0
  72. package/dist/chunks/{index-C3QHFNp7.mjs → index-DmBXPUeL.mjs} +1 -1
  73. package/dist/chunks/{index-C3QHFNp7.mjs.map → index-DmBXPUeL.mjs.map} +1 -1
  74. package/dist/chunks/{index-CZMSgrEB.mjs → index-DuDVR7ID.mjs} +1 -1
  75. package/dist/chunks/{index-CZMSgrEB.mjs.map → index-DuDVR7ID.mjs.map} +1 -1
  76. package/dist/chunks/{index-PTRe4YNS.mjs → index-GOFmxCuq.mjs} +2 -2
  77. package/dist/chunks/{index-PTRe4YNS.mjs.map → index-GOFmxCuq.mjs.map} +1 -1
  78. package/dist/chunks/{index-D5ESKExj.mjs → index-VuwFoF4R.mjs} +2 -2
  79. package/dist/chunks/{index-D5ESKExj.mjs.map → index-VuwFoF4R.mjs.map} +1 -1
  80. package/dist/chunks/{index-qj95ftFz.mjs → index-ZCQr-O7f.mjs} +2 -2
  81. package/dist/chunks/{index-qj95ftFz.mjs.map → index-ZCQr-O7f.mjs.map} +1 -1
  82. package/dist/chunks/{index-yLvhFHpw.mjs → index-czDftnY4.mjs} +2 -2
  83. package/dist/chunks/{index-yLvhFHpw.mjs.map → index-czDftnY4.mjs.map} +1 -1
  84. package/dist/chunks/{index-C20HgOT7.mjs → index-gfwlB8lL.mjs} +2 -2
  85. package/dist/chunks/{index-C20HgOT7.mjs.map → index-gfwlB8lL.mjs.map} +1 -1
  86. package/dist/chunks/{input-BlNrkN6W.mjs → input-DnILT0JB.mjs} +2 -2
  87. package/dist/chunks/{input-BlNrkN6W.mjs.map → input-DnILT0JB.mjs.map} +1 -1
  88. package/dist/chunks/{label-BDU0LXe-.mjs → label-C4MbS7O2.mjs} +2 -2
  89. package/dist/chunks/{label-BDU0LXe-.mjs.map → label-C4MbS7O2.mjs.map} +1 -1
  90. package/dist/chunks/{pagination-nctvfVO2.mjs → pagination-BvnQsAX6.mjs} +2 -2
  91. package/dist/chunks/{pagination-nctvfVO2.mjs.map → pagination-BvnQsAX6.mjs.map} +1 -1
  92. package/dist/chunks/{popover-BPna4ATX.mjs → popover-CLYjD1Mz.mjs} +2 -2
  93. package/dist/chunks/{popover-BPna4ATX.mjs.map → popover-CLYjD1Mz.mjs.map} +1 -1
  94. package/dist/chunks/{progress-D5dklJPH.mjs → progress-B7e979vj.mjs} +2 -2
  95. package/dist/chunks/{progress-D5dklJPH.mjs.map → progress-B7e979vj.mjs.map} +1 -1
  96. package/dist/chunks/{scroll-area-BUsoZk7w.mjs → scroll-area-DeP5Jei7.mjs} +2 -2
  97. package/dist/chunks/{scroll-area-BUsoZk7w.mjs.map → scroll-area-DeP5Jei7.mjs.map} +1 -1
  98. package/dist/chunks/{select-Dsju3pcN.mjs → select-BdrpNh7G.mjs} +2 -2
  99. package/dist/chunks/{select-Dsju3pcN.mjs.map → select-BdrpNh7G.mjs.map} +1 -1
  100. package/dist/chunks/{separator-yvrmazzo.mjs → separator-DbIrm4r-.mjs} +2 -2
  101. package/dist/chunks/{separator-yvrmazzo.mjs.map → separator-DbIrm4r-.mjs.map} +1 -1
  102. package/dist/chunks/{skeleton-CgM54DVd.mjs → skeleton-j85jApz0.mjs} +2 -2
  103. package/dist/chunks/{skeleton-CgM54DVd.mjs.map → skeleton-j85jApz0.mjs.map} +1 -1
  104. package/dist/chunks/{sortable-r5LNLyFY.mjs → sortable-D6tXnjgL.mjs} +2 -2
  105. package/dist/chunks/{sortable-r5LNLyFY.mjs.map → sortable-D6tXnjgL.mjs.map} +1 -1
  106. package/dist/chunks/{table-C7HL2RQX.mjs → table-BsrKQPpM.mjs} +2 -2
  107. package/dist/chunks/{table-C7HL2RQX.mjs.map → table-BsrKQPpM.mjs.map} +1 -1
  108. package/dist/chunks/{toggle-BNsCXJfn.mjs → toggle-DFi2H45K.mjs} +2 -2
  109. package/dist/chunks/{toggle-BNsCXJfn.mjs.map → toggle-DFi2H45K.mjs.map} +1 -1
  110. package/dist/chunks/{tslib.es6-BPlpgYSG.mjs → tslib.es6-mR5Ag05r.mjs} +1 -1
  111. package/dist/chunks/{tslib.es6-BPlpgYSG.mjs.map → tslib.es6-mR5Ag05r.mjs.map} +1 -1
  112. package/dist/chunks/utils-C1EKaz-p.mjs +2 -0
  113. package/dist/chunks/{utils-CplKzw61.mjs.map → utils-C1EKaz-p.mjs.map} +1 -1
  114. package/dist/chunks/x-B1PdcxpA.mjs +2 -0
  115. package/dist/chunks/{x-CXgTi8Ya.mjs.map → x-B1PdcxpA.mjs.map} +1 -1
  116. package/dist/combobox/index.mjs +1 -1
  117. package/dist/command/index.mjs +1 -1
  118. package/dist/data-table/index.mjs +1 -1
  119. package/dist/dialog/index.mjs +1 -1
  120. package/dist/dropdown-menu/index.mjs +1 -1
  121. package/dist/dropzone/index.mjs +1 -1
  122. package/dist/dropzone/index.mjs.map +1 -1
  123. package/dist/form/index.mjs +1 -1
  124. package/dist/hover-card/index.mjs +1 -1
  125. package/dist/icon/index.mjs +1 -1
  126. package/dist/index.css +1 -1
  127. package/dist/input/index.mjs +1 -1
  128. package/dist/ivt.css +1 -1
  129. package/dist/label/index.mjs +1 -1
  130. package/dist/menubar/index.mjs +1 -1
  131. package/dist/multi-select/index.mjs +1 -1
  132. package/dist/pagination/index.mjs +1 -1
  133. package/dist/popover/index.mjs +1 -1
  134. package/dist/progress/index.mjs +1 -1
  135. package/dist/radio-group/index.mjs +1 -1
  136. package/dist/scroll-area/index.mjs +1 -1
  137. package/dist/select/index.mjs +1 -1
  138. package/dist/separator/index.mjs +1 -1
  139. package/dist/sheet/index.mjs +1 -1
  140. package/dist/skeleton/index.mjs +1 -1
  141. package/dist/sortable/index.mjs +1 -1
  142. package/dist/table/index.mjs +1 -1
  143. package/dist/tabs/index.mjs +1 -1
  144. package/dist/textarea/index.mjs +1 -1
  145. package/dist/toast/index.mjs +1 -1
  146. package/dist/toggle/index.mjs +1 -1
  147. package/dist/toggle-group/index.mjs +1 -1
  148. package/dist/tooltip/index.mjs +1 -1
  149. package/package.json +5 -1
  150. package/dist/chunks/check-C1kmNajw.mjs +0 -2
  151. package/dist/chunks/chevron-down-V04oa9sD.mjs +0 -2
  152. package/dist/chunks/chevron-left-B3kOPqDD.mjs +0 -2
  153. package/dist/chunks/chevron-right-PpLc5ALc.mjs +0 -2
  154. package/dist/chunks/circle-U4u29qXG.mjs +0 -2
  155. package/dist/chunks/utils-CplKzw61.mjs +0 -2
  156. package/dist/chunks/x-CXgTi8Ya.mjs +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index-BO-2wsZH.mjs","sources":["../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const 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 Provider.displayName = rootComponentName + \"Provider\";\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 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 const 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 Provider.displayName = rootComponentName + \"Provider\";\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 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"],"names":["createContext","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","useMemo","Object","values","jsx","displayName","consumerName","useContext","Error","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","scope","contexts","BaseContext","index","length","composeContextScopes","scopes","baseScope","scopeHooks","useScope","overrideScopes","nextScopes","reduce"],"mappings":"gEAEA,SAASA,EACPC,EACAC,GAEA,MAAMC,EAAgBC,EAAAJ,cAA4CE,GAE5D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QAAuB,IAAnBN,EAA8B,OAAOA,EAEzC,MAAM,IAAIe,MAAM,KAAKF,6BAAwCd,MAC/D,EAGF,EAoBuB6B,EAAqBR,KAAgBF,GAC9D,CAMA,SAASU,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOF,OAAc,OAAOG,EAEhC,MAAMV,EAA2B,KAC/B,MAAMW,EAAaF,EAAOP,IAAKF,IAAAA,CAC7BY,SAAUZ,IACVH,UAAWG,EAAYH,aAGzB,OAAO,SAA2BgB,GAChC,MAAMC,EAAaH,EAAWI,OAAO,CAACD,GAAcF,WAAUf,gBAMrD,IAAKiB,KAFOF,EAASC,GACI,UAAUhB,OAEzC,CAAA,GAEH,OAAaf,EAAAM,QAAQ,KAAA,CAAS,CAAC,UAAUsB,EAAUb,aAAciB,IAAe,CAACA,GACnF,GAIF,OADAd,EAAYH,UAAYa,EAAUb,UAC3BG,CACT","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-DBp_Gx1M.mjs","sources":["../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const 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 Provider.displayName = rootComponentName + \"Provider\";\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 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 const 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 Provider.displayName = rootComponentName + \"Provider\";\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 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"],"names":["createContext","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","useMemo","Object","values","jsx","displayName","consumerName","useContext","Error","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","scope","contexts","BaseContext","index","length","composeContextScopes","scopes","baseScope","scopeHooks","useScope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MtB,EAAUsB,IAAQN,KAAaS,IAAUD,EACzCnB,EAAgBJ,EAAAY,WAAWb,GACjC,GAAIK,EAAS,OAAOA,EACpB,QAAuB,IAAnBN,EAA8B,OAAOA,EAEzC,MAAM,IAAIe,MAAM,KAAKF,6BAAwCd,MAC/D,EAGF,EAoBuB6B,EAAqBR,KAAgBF,GAC9D,CAMA,SAASU,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOF,OAAc,OAAOG,EAEhC,MAAMV,EAA2B,KAC/B,MAAMW,EAAaF,EAAOP,IAAKF,IAAAA,CAC7BY,SAAUZ,IACVH,UAAWG,EAAYH,aAGzB,OAAO,SAA2BgB,GAChC,MAAMC,EAAaH,EAAWI,OAAO,CAACD,GAAcF,WAAUf,gBAMrD,IAAKiB,KAFOF,EAASC,GACI,UAAUhB,OAEzC,CAAA,GAEH,OAAaf,EAAAM,QAAQ,KAAA,CAAS,CAAC,UAAUsB,EAAUb,aAAciB,IAAe,CAACA,GACnF,GAIF,OADAd,EAAYH,UAAYa,EAAUb,UAC3BG,CACT","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  import*as a from"react";var o=globalThis?.document?a.useLayoutEffect:()=>{};export{o as u};
2
- //# sourceMappingURL=index-DtAARIfz.mjs.map
2
+ //# sourceMappingURL=index-DZgHf-gI.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DtAARIfz.mjs","sources":["../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect","globalThis","document","React"],"mappings":"wBASA,IAAMA,EAAkBC,YAAYC,SAAiBC,EAAAH,gBAAkB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-DZgHf-gI.mjs","sources":["../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect","globalThis","document","React"],"mappings":"wBASA,IAAMA,EAAkBC,YAAYC,SAAiBC,EAAAH,gBAAkB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import t from"react";var e,n={exports:{}},r={};var o,u,i={};function a(){return u||(u=1,"production"===process.env.NODE_ENV?n.exports=function(){if(e)return r;e=1;var n=t,o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=n.useState,i=n.useEffect,a=n.useLayoutEffect,c=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=u({inst:{value:n,getSnapshot:e}}),o=r[0].inst,f=r[1];return a(function(){o.value=n,o.getSnapshot=e,s(o)&&f({inst:o})},[t,n,e]),i(function(){return s(o)&&f({inst:o}),t(function(){s(o)&&f({inst:o})})},[t]),c(n),n};return r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f,r}():n.exports=(o||(o=1,"production"!==process.env.NODE_ENV&&function(){function e(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!r(t,n)}catch(t){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=t,r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=n.useState,u=n.useEffect,a=n.useLayoutEffect,c=n.useDebugValue,s=!1,f=!1,_="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,i){s||void 0===n.startTransition||(s=!0);var _=i();if(!f){var O=i();r(_,O)||(f=!0)}var d=(O=o({inst:{value:_,getSnapshot:i}}))[0].inst,E=O[1];return a(function(){d.value=_,d.getSnapshot=i,e(d)&&E({inst:d})},[t,_,i]),u(function(){return e(d)&&E({inst:d}),t(function(){e(d)&&E({inst:d})})},[t]),c(_),_};i.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:_,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),i)),n.exports}export{a as r};
2
+ //# sourceMappingURL=index-DheYAHt3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DheYAHt3.mjs","sources":["../../node_modules/use-sync-external-store/shim/index.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim.production.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\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.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 is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["process","env","NODE_ENV","shimModule","exports","React","require$$0","objectIs","Object","is","x","y","useState","useEffect","useLayoutEffect","useDebugValue","checkIfSnapshotChanged","inst","latestGetSnapshot","getSnapshot","value","nextValue","error","shim","window","document","createElement","subscribe","_useState","forceUpdate","useSyncExternalStoreShim_production","useSyncExternalStore","__REACT_DEVTOOLS_GLOBAL_HOOK__","registerInternalModuleStart","Error","didWarnOld18Alpha","didWarnUncachedGetSnapshot","startTransition","cachedValue","useSyncExternalStoreShim_development","registerInternalModuleStop"],"mappings":"wFAE6B,eAAzBA,QAAQC,IAAIC,SACdC,EAAAC,qCCQF,IAAIC,EAAQC,EAIRC,EAAW,mBAAsBC,OAAOC,GAAKD,OAAOC,GAHxD,SAAYC,EAAGC,GACb,OAAOD,IAAOC,IAAM,IAAMD,GAAK,EAAIA,GAAM,EAAIC,IAAQD,GAAMA,GAAKC,GAAMA,CACxE,EAEEC,EAAWP,EAAMO,SACjBC,EAAYR,EAAMQ,UAClBC,EAAkBT,EAAMS,gBACxBC,EAAgBV,EAAMU,cA0BxB,SAASC,EAAuBC,GAC9B,IAAIC,EAAoBD,EAAKE,YAC7BF,EAAOA,EAAKG,MACZ,IACE,IAAIC,EAAYH,IAChB,OAAQX,EAASU,EAAMI,EAC3B,CAAI,MAAOC,GACP,OAAO,CACX,CACA,CAIA,IAAIC,EACF,oBAAuBC,aACvB,IAAuBA,OAAOC,eAC9B,IAAuBD,OAAOC,SAASC,cANzC,SAAgCC,EAAWR,GACzC,OAAOA,GACT,EArCA,SAAgCQ,EAAWR,GACzC,IAAIC,EAAQD,IACVS,EAAYhB,EAAS,CAAEK,KAAM,CAAEG,MAAOA,EAAOD,YAAaA,KAC1DF,EAAOW,EAAU,GAAGX,KACpBY,EAAcD,EAAU,GAmB1B,OAlB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AAOkB,KAIbF,GAA6B,EACxC,CAIM,IAAInB,GAHJqB,EAAc1B,EAAS,CACrBK,KAAM,CAAEG,MAAOA,EAAOD,YAAaA,MAEd,GAAGF,KACxBY,EAAcS,EAAY,GAmB5B,OAlBAxB,EACE,WACEG,EAAKG,MAAQA,EACbH,EAAKE,YAAcA,EACnBH,EAAuBC,IAASY,EAAY,CAAEZ,KAAMA,GAC9D,EACQ,CAACU,EAAWP,EAAOD,IAErBN,EACE,WAEE,OADAG,EAAuBC,IAASY,EAAY,CAAEZ,KAAMA,IAC7CU,EAAU,WACfX,EAAuBC,IAASY,EAAY,CAAEZ,KAAMA,GAChE,EACA,EACQ,CAACU,IAEHZ,EAAcK,GACPA,CACb,EAgCImB,EAAAR,0BACE,IAAW1B,EAAM0B,qBAAuB1B,EAAM0B,qBAAuBR,EACvE,oBAAuBS,gCACrB,mBACSA,+BAA+BQ,4BACxCR,+BAA+BQ,2BAA2BN,QAChE,CAlFE","x_google_ignoreList":[0,1,2]}
@@ -1,2 +1,2 @@
1
1
  import*as n from"react";function t(n,t){if("function"==typeof n)return n(t);null!=n&&(n.current=t)}function r(...n){return r=>{let o=!1;const u=n.map(n=>{const u=t(n,r);return o||"function"!=typeof u||(o=!0),u});if(o)return()=>{for(let r=0;r<u.length;r++){const o=u[r];"function"==typeof o?o():t(n[r],null)}}}}function o(...t){return n.useCallback(r(...t),t)}export{r as c,o as u};
2
- //# sourceMappingURL=index-C3QHFNp7.mjs.map
2
+ //# sourceMappingURL=index-DmBXPUeL.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-C3QHFNp7.mjs","sources":["../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","current","composeRefs","refs","node","hasCleanup","cleanups","map","cleanup","i","length","useComposedRefs","React","useCallback"],"mappings":"wBAQA,SAASA,EAAUC,EAAqBC,GACtC,GAAmB,mBAARD,EACT,OAAOA,EAAIC,GACFD,UACTA,EAAIE,QAAUD,EAElB,CAMA,SAASE,KAAkBC,GACzB,OAAQC,IACN,IAAIC,GAAa,EACjB,MAAMC,EAAWH,EAAKI,IAAKR,IACzB,MAAMS,EAAUV,EAAOC,EAAKK,GAI5B,OAHKC,GAAgC,mBAAXG,IACxBH,GAAa,GAERG,IAOT,GAAIH,EACF,MAAO,KACL,IAAA,IAASI,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAAK,CACxC,MAAMD,EAAUF,EAASG,GACH,mBAAXD,EACTA,IAEAV,EAAOK,EAAKM,GAAI,KAEpB,GAIR,CAMA,SAASE,KAAsBR,GAE7B,OAAaS,EAAAC,YAAYX,KAAeC,GAAOA,EACjD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-DmBXPUeL.mjs","sources":["../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","current","composeRefs","refs","node","hasCleanup","cleanups","map","cleanup","i","length","useComposedRefs","React","useCallback"],"mappings":"wBAQA,SAASA,EAAUC,EAAqBC,GACtC,GAAmB,mBAARD,EACT,OAAOA,EAAIC,GACFD,UACTA,EAAIE,QAAUD,EAElB,CAMA,SAASE,KAAkBC,GACzB,OAAQC,IACN,IAAIC,GAAa,EACjB,MAAMC,EAAWH,EAAKI,IAAKR,IACzB,MAAMS,EAAUV,EAAOC,EAAKK,GAI5B,OAHKC,GAAgC,mBAAXG,IACxBH,GAAa,GAERG,IAOT,GAAIH,EACF,MAAO,KACL,IAAA,IAASI,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAAK,CACxC,MAAMD,EAAUF,EAASG,GACH,mBAAXD,EACTA,IAEAV,EAAOK,EAAKM,GAAI,KAEpB,GAIR,CAMA,SAASE,KAAsBR,GAE7B,OAAaS,EAAAC,YAAYX,KAAeC,GAAOA,EACjD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  import*as r from"react";import*as i from"react-dom";import{createSlot as t}from"@radix-ui/react-slot";import{jsx as o}from"react/jsx-runtime";var e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((i,e)=>{const a=t(`Primitive.${e}`),n=r.forwardRef((r,i)=>{const{asChild:t,...n}=r,m=t?a:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),o(m,{...n,ref:i})});return n.displayName=`Primitive.${e}`,{...i,[e]:n}},{});function a(r,t){r&&i.flushSync(()=>r.dispatchEvent(t))}export{e as P,a as d};
2
- //# sourceMappingURL=index-CZMSgrEB.mjs.map
2
+ //# sourceMappingURL=index-DuDVR7ID.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-CZMSgrEB.mjs","sources":["../../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } 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 \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`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"],"names":["Primitive","reduce","primitive","node","Slot","createSlot","Node","React","forwardRef","props","forwardedRef","asChild","primitiveProps","Comp","window","Symbol","for","jsx","ref","displayName","dispatchDiscreteCustomEvent","target","event","ReactDOM","flushSync","dispatchEvent"],"mappings":"8IAIA,IAgCMA,EAhCQ,CACZ,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,SACA,OACA,MACA,MAesBC,OAAO,CAACC,EAAWC,KACzC,MAAMC,EAAOC,EAAW,aAAaF,KAC/BG,EAAaC,EAAAC,WAAW,CAACC,EAA2CC,KACxE,MAAMC,QAAEA,KAAYC,GAAmBH,EACjCI,EAAYF,EAAUP,EAAOD,EAMnC,MAJsB,oBAAXW,SACRA,OAAeC,OAAOC,IAAI,cAAe,GAGrCC,EAACJ,EAAA,IAASD,EAAgBM,IAAKR,MAKxC,OAFAJ,EAAKa,YAAc,aAAahB,IAEzB,IAAKD,EAAWC,CAACA,GAAOG,IAC9B,CAAA,GA2CH,SAASc,EAAmDC,EAAqBC,GAC3ED,GAAiBE,EAAAC,UAAU,IAAMH,EAAOI,cAAcH,GAC5D","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-DuDVR7ID.mjs","sources":["../../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } 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 \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`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"],"names":["Primitive","reduce","primitive","node","Slot","createSlot","Node","React","forwardRef","props","forwardedRef","asChild","primitiveProps","Comp","window","Symbol","for","jsx","ref","displayName","dispatchDiscreteCustomEvent","target","event","ReactDOM","flushSync","dispatchEvent"],"mappings":"8IAIA,IAgCMA,EAhCQ,CACZ,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,SACA,OACA,MACA,MAesBC,OAAO,CAACC,EAAWC,KACzC,MAAMC,EAAOC,EAAW,aAAaF,KAC/BG,EAAaC,EAAAC,WAAW,CAACC,EAA2CC,KACxE,MAAMC,QAAEA,KAAYC,GAAmBH,EACjCI,EAAYF,EAAUP,EAAOD,EAMnC,MAJsB,oBAAXW,SACRA,OAAeC,OAAOC,IAAI,cAAe,GAGrCC,EAACJ,EAAA,IAASD,EAAgBM,IAAKR,MAKxC,OAFAJ,EAAKa,YAAc,aAAahB,IAEzB,IAAKD,EAAWC,CAACA,GAAOG,IAC9B,CAAA,GA2CH,SAASc,EAAmDC,EAAqBC,GAC3ED,GAAiBE,EAAAC,UAAU,IAAMH,EAAOI,cAAcH,GAC5D","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{c as t}from"./index-DCzuZZz4.mjs";import{P as n,d as r}from"./index-CZMSgrEB.mjs";import{u as s}from"./index-C3QHFNp7.mjs";import{u as o}from"./index-BJZ14-gh.mjs";import{jsx as i}from"react/jsx-runtime";import a from"react-dom";import{u}from"./index-DtAARIfz.mjs";var c,d="dismissableLayer.update",l="dismissableLayer.pointerDownOutside",f="dismissableLayer.focusOutside",m=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=e.forwardRef((r,a)=>{const{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:w,onDismiss:h,...D}=r,P=e.useContext(m),[L,C]=e.useState(null),O=L?.ownerDocument??globalThis?.document,[,g]=e.useState({}),x=s(a,e=>C(e)),R=Array.from(P.layers),[T]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),k=R.indexOf(T),W=L?R.indexOf(L):-1,j=P.layersWithOutsidePointerEventsDisabled.size>0,B=W>=k,S=function(t,n=globalThis?.document){const r=o(t),s=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!s.current){let t=function(){y(l,r,s,{discrete:!0})};const s={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);s.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>s.current=!0}}(e=>{const t=e.target,n=[...P.branches].some(e=>e.contains(t));B&&!n&&(p?.(e),w?.(e),e.defaultPrevented||h?.())},O),F=function(t,n=globalThis?.document){const r=o(t),s=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!s.current){y(f,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}(e=>{const t=e.target;[...P.branches].some(e=>e.contains(t))||(b?.(e),w?.(e),e.defaultPrevented||h?.())},O);return function(t,n=globalThis?.document){const r=o(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{W===P.layers.size-1&&(v?.(e),!e.defaultPrevented&&h&&(e.preventDefault(),h()))},O),e.useEffect(()=>{if(L)return u&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(c=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(L)),P.layers.add(L),E(),()=>{u&&1===P.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=c)}},[L,O,u,P]),e.useEffect(()=>()=>{L&&(P.layers.delete(L),P.layersWithOutsidePointerEventsDisabled.delete(L),E())},[L,P]),e.useEffect(()=>{const e=()=>g({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),i(n.div,{...D,ref:x,style:{pointerEvents:j?B?"auto":"none":void 0,...r.style},onFocusCapture:t(r.onFocusCapture,F.onFocusCapture),onBlurCapture:t(r.onBlurCapture,F.onBlurCapture),onPointerDownCapture:t(r.onPointerDownCapture,S.onPointerDownCapture)})});v.displayName="DismissableLayer";var p=e.forwardRef((t,r)=>{const o=e.useContext(m),a=e.useRef(null),u=s(r,a);return e.useEffect(()=>{const e=a.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),i(n.div,{...t,ref:u})});function E(){const e=new CustomEvent(d);document.dispatchEvent(e)}function y(e,t,n,{discrete:s}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?r(o,i):o.dispatchEvent(i)}p.displayName="DismissableLayerBranch";var b=v,w=p,h=e.forwardRef((t,r)=>{const{container:s,...o}=t,[c,d]=e.useState(!1);u(()=>d(!0),[]);const l=s||c&&globalThis?.document?.body;return l?a.createPortal(i(n.div,{...o,ref:r}),l):null});h.displayName="Portal";export{w as B,v as D,h as P,b as R};
2
- //# sourceMappingURL=index-PTRe4YNS.mjs.map
1
+ import*as e from"react";import{c as t}from"./index-CaYe_hNP.mjs";import{P as n,d as r}from"./index-DuDVR7ID.mjs";import{u as s}from"./index-DmBXPUeL.mjs";import{u as o}from"./index-Cu6LwID6.mjs";import{jsx as i}from"react/jsx-runtime";import a from"react-dom";import{u}from"./index-DZgHf-gI.mjs";var c,d="dismissableLayer.update",l="dismissableLayer.pointerDownOutside",f="dismissableLayer.focusOutside",m=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=e.forwardRef((r,a)=>{const{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:v,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:w,onDismiss:h,...D}=r,P=e.useContext(m),[L,C]=e.useState(null),O=L?.ownerDocument??globalThis?.document,[,g]=e.useState({}),x=s(a,e=>C(e)),R=Array.from(P.layers),[T]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),k=R.indexOf(T),W=L?R.indexOf(L):-1,j=P.layersWithOutsidePointerEventsDisabled.size>0,B=W>=k,S=function(t,n=globalThis?.document){const r=o(t),s=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!s.current){let t=function(){y(l,r,s,{discrete:!0})};const s={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);s.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>s.current=!0}}(e=>{const t=e.target,n=[...P.branches].some(e=>e.contains(t));B&&!n&&(p?.(e),w?.(e),e.defaultPrevented||h?.())},O),F=function(t,n=globalThis?.document){const r=o(t),s=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!s.current){y(f,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}(e=>{const t=e.target;[...P.branches].some(e=>e.contains(t))||(b?.(e),w?.(e),e.defaultPrevented||h?.())},O);return function(t,n=globalThis?.document){const r=o(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{W===P.layers.size-1&&(v?.(e),!e.defaultPrevented&&h&&(e.preventDefault(),h()))},O),e.useEffect(()=>{if(L)return u&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(c=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(L)),P.layers.add(L),E(),()=>{u&&1===P.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=c)}},[L,O,u,P]),e.useEffect(()=>()=>{L&&(P.layers.delete(L),P.layersWithOutsidePointerEventsDisabled.delete(L),E())},[L,P]),e.useEffect(()=>{const e=()=>g({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),i(n.div,{...D,ref:x,style:{pointerEvents:j?B?"auto":"none":void 0,...r.style},onFocusCapture:t(r.onFocusCapture,F.onFocusCapture),onBlurCapture:t(r.onBlurCapture,F.onBlurCapture),onPointerDownCapture:t(r.onPointerDownCapture,S.onPointerDownCapture)})});v.displayName="DismissableLayer";var p=e.forwardRef((t,r)=>{const o=e.useContext(m),a=e.useRef(null),u=s(r,a);return e.useEffect(()=>{const e=a.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),i(n.div,{...t,ref:u})});function E(){const e=new CustomEvent(d);document.dispatchEvent(e)}function y(e,t,n,{discrete:s}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?r(o,i):o.dispatchEvent(i)}p.displayName="DismissableLayerBranch";var b=v,w=p,h=e.forwardRef((t,r)=>{const{container:s,...o}=t,[c,d]=e.useState(!1);u(()=>d(!0),[]);const l=s||c&&globalThis?.document?.body;return l?a.createPortal(i(n.div,{...o,ref:r}),l):null});h.displayName="Portal";export{w as B,v as D,h as P,b as R};
2
+ //# sourceMappingURL=index-GOFmxCuq.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-PTRe4YNS.mjs","sources":["../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs","../../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs","../../node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["originalBodyPointerEvents","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","DismissableLayerContext","React","createContext","layers","Set","layersWithOutsidePointerEventsDisabled","branches","DismissableLayer","forwardRef","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","useContext","node","setNode","useState","ownerDocument","globalThis","document","force","composedRefs","useComposedRefs","Array","from","highestLayerWithOutsidePointerEventsDisabled","slice","highestLayerWithOutsidePointerEventsDisabledIndex","indexOf","index","isBodyPointerEventsDisabled","size","isPointerEventsEnabled","pointerDownOutside","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","useRef","handleClickRef","useEffect","handlePointerDown","event","target","current","handleAndDispatchPointerDownOutsideEvent","handleAndDispatchCustomEvent","eventDetail","discrete","originalEvent","pointerType","removeEventListener","addEventListener","once","timerId","window","setTimeout","clearTimeout","onPointerDownCapture","usePointerDownOutside","isPointerDownOnBranch","some","branch","contains","defaultPrevented","focusOutside","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","onFocusCapture","onBlurCapture","useFocusOutside","onEscapeKeyDownProp","handleKeyDown","key","capture","useEscapeKeydown","preventDefault","body","style","pointerEvents","add","dispatchUpdate","delete","handleUpdate","jsx","Primitive","div","ref","composeEventHandlers","displayName","DismissableLayerBranch","CustomEvent","dispatchEvent","name","handler","detail","bubbles","cancelable","dispatchDiscreteCustomEvent","Root","Branch","Portal","container","containerProp","portalProps","mounted","setMounted","useLayoutEffect","ReactDOM","createPortal"],"mappings":"wSAWA,IAKIA,EAJEC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAIhBC,EAAgCC,EAAAC,cAAc,CAClDC,OAAQ,IAAIC,IACZC,uCAAwC,IAAID,IAC5CE,SAAU,IAAIF,MAuCVG,EAAyBN,EAAAO,WAC7B,CAACC,EAAOC,KACN,MAAMC,4BACJA,GAA8B,EAAAC,gBAC9BA,EAAAC,qBACAA,EAAAC,eACAA,EAAAC,kBACAA,EAAAC,UACAA,KACGC,GACDR,EACES,EAAgBjB,EAAAkB,WAAWnB,IAC1BoB,EAAMC,GAAiBpB,EAAAqB,SAAyC,MACjEC,EAAgBH,GAAMG,eAAiBC,YAAYC,UACnD,CAAGC,GAAezB,EAAAqB,SAAS,CAAA,GAC3BK,EAAeC,EAAgBlB,EAAeU,GAASC,EAAQD,IAC/DjB,EAAS0B,MAAMC,KAAKZ,EAAQf,SAC3B4B,GAAgD,IAAIb,E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MAAML,EAASqD,EAAO/C,cAAcN,OAC9BD,EAAQ,IAAIkD,YAAYE,EAAM,CAAEG,SAAS,EAAOC,YAAY,EAAMF,WACpED,GAASpD,EAAOS,iBAAiB0C,EAAMC,EAA0B,CAAE1C,MAAM,IAEzEL,EACFmD,EAA4BxD,EAAQD,GAEpCC,EAAOkD,cAAcnD,EAEzB,CA3IAiD,EAAuBD,YA1BH,yBAuKpB,IAAMU,EAAOlG,EACPmG,EAASV,EE1UTW,EAAe1G,EAAAO,WAAuC,CAACC,EAAOC,KAClE,MAAQkG,UAAWC,KAAkBC,GAAgBrG,GAC9CsG,EAASC,GAAoB/G,EAAAqB,UAAS,GAC7C2F,EAAgB,IAAMD,GAAW,GAAO,IACxC,MAAMJ,EAAYC,GAAkBE,GAAWvF,YAAYC,UAAU0D,KACrE,OAAOyB,EACHM,EAASC,aAAazB,EAACC,EAAUC,IAAV,IAAkBkB,EAAajB,IAAKnF,IAAkBkG,GAC7E,OAGND,EAAOZ,YArBa","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"index-GOFmxCuq.mjs","sources":["../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs","../../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs","../../node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["originalBodyPointerEvents","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","DismissableLayerContext","React","createContext","layers","Set","layersWithOutsidePointerEventsDisabled","branches","DismissableLayer","forwardRef","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","useContext","node","setNode","useState","ownerDocument","globalThis","document","force","composedRefs","useComposedRefs","Array","from","highestLayerWithOutsidePointerEventsDisabled","slice","highestLayerWithOutsidePointerEventsDisabledIndex","indexOf","index","isBodyPointerEventsDisabled","size","isPointerEventsEnabled","pointerDownOutside","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","useRef","handleClickRef","useEffect","handlePointerDown","event","target","current","handleAndDispatchPointerDownOutsideEvent","handleAndDispatchCustomEvent","eventDetail","discrete","originalEvent","pointerType","removeEventListener","addEventListener","once","timerId","window","setTimeout","clearTimeout","onPointerDownCapture","usePointerDownOutside","isPointerDownOnBranch","some","branch","contains","defaultPrevented","focusOutside","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","onFocusCapture","onBlurCapture","useFocusOutside","onEscapeKeyDownProp","handleKeyDown","key","capture","useEscapeKeydown","preventDefault","body","style","pointerEvents","add","dispatchUpdate","delete","handleUpdate","jsx","Primitive","div","ref","composeEventHandlers","displayName","DismissableLayerBranch","CustomEvent","dispatchEvent","name","handler","detail","bubbles","cancelable","dispatchDiscreteCustomEvent","Root","Branch","Portal","container","containerProp","portalProps","mounted","setMounted","useLayoutEffect","ReactDOM","createPortal"],"mappings":"wSAWA,IAKIA,EAJEC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAIhBC,EAAgCC,EAAAC,cAAc,CAClDC,OAAQ,IAAIC,IACZC,uCAAwC,IAAID,IAC5CE,SAAU,IAAIF,MAuCVG,EAAyBN,EAAAO,WAC7B,CAACC,EAAOC,KACN,MAAMC,4BACJA,GAA8B,EAAAC,gBAC9BA,EAAAC,qBACAA,EAAAC,eACAA,EAAAC,kBACAA,EAAAC,UACAA,KACGC,GACDR,EACES,EAAgBjB,EAAAkB,WAAWnB,IAC1BoB,EAAMC,GAAiBpB,EAAAqB,SAAyC,MACjEC,EAAgBH,GAAMG,eAAiBC,YAAYC,UACnD,CAAGC,GAAezB,EAAAqB,SAAS,CAAA,GAC3BK,EAAeC,EAAgBlB,EAAeU,GAASC,EAAQD,IAC/DjB,EAAS0B,MAAMC,KAAKZ,EAAQf,SAC3B4B,GAAgD,IAAIb,EAAQb,wCAAwC2B,OAAM,GAC3GC,EAAoD9B,EAAO+B,QAAQH,GACnEI,EAAQf,EAAOjB,EAAO+B,QAAQd,IAAQ,EACtCgB,EAA8BlB,EAAQb,uCAAuCgC,KAAO,EACpFC,EAAyBH,GAASF,EAElCM,EAyIV,SACE1B,EACAU,EAA0BC,YAAYC,UAEtC,MAAMe,EAA2BC,EAAe5B,GAC1C6B,EAAoCzC,EAAA0C,QAAO,GAC3CC,EAAuB3C,EAAA0C,OAAO,QAiEpC,OA/DM1C,EAAA4C,UAAU,KACd,MAAMC,EAAqBC,IACzB,GAAIA,EAAMC,SAAWN,EAA4BO,QAAS,CAGxD,IAASC,EAAT,WACEC,EACErD,EACA0C,EACAY,EACA,CAAEC,UAAU,GAEhB,EATA,MAAMD,EAAc,CAAEE,cAAeP,GAuBX,UAAtBA,EAAMQ,aACRhC,EAAciC,oBAAoB,QAASZ,EAAeK,SAC1D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,IAAKnF,IAAkBkG,GAC7E,OAGND,EAAOZ,YArBa","x_google_ignoreList":[0,1,2]}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{u as t}from"./index-DtAARIfz.mjs";var r=e[" useInsertionEffect ".trim().toString()]||t;function n({prop:t,defaultProp:n,onChange:o=()=>{},caller:u}){const[c,f,s]=function({defaultProp:t,onChange:n}){const[o,u]=e.useState(t),c=e.useRef(o),f=e.useRef(n);return r(()=>{f.current=n},[n]),e.useEffect(()=>{c.current!==o&&(f.current?.(o),c.current=o)},[o,c]),[o,u,f]}({defaultProp:n,onChange:o}),a=void 0!==t,i=a?t:c;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==a){}r.current=a},[a,u])}const p=e.useCallback(e=>{if(a){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else f(e)},[a,t,f,s]);return[i,p]}export{n as u};
2
- //# sourceMappingURL=index-D5ESKExj.mjs.map
1
+ import*as e from"react";import{u as t}from"./index-DZgHf-gI.mjs";var r=e[" useInsertionEffect ".trim().toString()]||t;function n({prop:t,defaultProp:n,onChange:o=()=>{},caller:u}){const[c,f,s]=function({defaultProp:t,onChange:n}){const[o,u]=e.useState(t),c=e.useRef(o),f=e.useRef(n);return r(()=>{f.current=n},[n]),e.useEffect(()=>{c.current!==o&&(f.current?.(o),c.current=o)},[o,c]),[o,u,f]}({defaultProp:n,onChange:o}),a=void 0!==t,i=a?t:c;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==a){}r.current=a},[a,u])}const p=e.useCallback(e=>{if(a){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else f(e)},[a,t,f,s]);return[i,p]}export{n as u};
2
+ //# sourceMappingURL=index-VuwFoF4R.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-D5ESKExj.mjs","sources":["../../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useInsertionEffect = React[\" useInsertionEffect \".trim().toString()] || useLayoutEffect;\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n },\n caller\n}) {\n const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({\n defaultProp,\n onChange\n });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n if (true) {\n const isControlledRef = React.useRef(prop !== void 0);\n React.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${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.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;\n if (value2 !== prop) {\n onChangeRef.current?.(value2);\n }\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, onChangeRef]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const [value, setValue] = React.useState(defaultProp);\n const prevValueRef = React.useRef(value);\n const onChangeRef = React.useRef(onChange);\n useInsertionEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n onChangeRef.current?.(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef]);\n return [value, setValue, onChangeRef];\n}\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\n// src/use-controllable-state-reducer.tsx\nimport * as React2 from \"react\";\nimport { useEffectEvent } from \"@radix-ui/react-use-effect-event\";\nvar SYNC_STATE = Symbol(\"RADIX:SYNC_STATE\");\nfunction useControllableStateReducer(reducer, userArgs, initialArg, init) {\n const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;\n const isControlled = controlledState !== void 0;\n const onChange = useEffectEvent(onChangeProp);\n if (true) {\n const isControlledRef = React2.useRef(controlledState !== void 0);\n React2.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${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.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const args = [{ ...initialArg, state: defaultProp }];\n if (init) {\n args.push(init);\n }\n const [internalState, dispatch] = React2.useReducer(\n (state2, action) => {\n if (action.type === SYNC_STATE) {\n return { ...state2, state: action.state };\n }\n const next = reducer(state2, action);\n if (isControlled && !Object.is(next.state, state2.state)) {\n onChange(next.state);\n }\n return next;\n },\n ...args\n );\n const uncontrolledState = internalState.state;\n const prevValueRef = React2.useRef(uncontrolledState);\n React2.useEffect(() => {\n if (prevValueRef.current !== uncontrolledState) {\n prevValueRef.current = uncontrolledState;\n if (!isControlled) {\n onChange(uncontrolledState);\n }\n }\n }, [onChange, uncontrolledState, prevValueRef, isControlled]);\n const state = React2.useMemo(() => {\n const isControlled2 = controlledState !== void 0;\n if (isControlled2) {\n return { ...internalState, state: controlledState };\n }\n return internalState;\n }, [internalState, controlledState]);\n React2.useEffect(() => {\n if (isControlled && !Object.is(controlledState, internalState.state)) {\n dispatch({ type: SYNC_STATE, state: controlledState });\n }\n }, [controlledState, internalState.state, isControlled]);\n return [state, dispatch];\n}\nexport {\n useControllableState,\n useControllableStateReducer\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useInsertionEffect","React","trim","toString","useLayoutEffect","useControllableState","prop","defaultProp","onChange","caller","uncontrolledProp","setUncontrolledProp","onChangeRef","value","setValue","useState","prevValueRef","useRef","current","useEffect","useUncontrolledState","isControlled","isControlledRef","wasControlled","useCallback","nextValue","isFunction"],"mappings":"iEAIA,IAAMA,EACHC,EAAc,uBAAuBC,OAAOC,aAAeC,EAYvD,SAASC,GAAwBC,KACtCA,EAAAC,YACAA,EAAAC,SACAA,EAAW,OAAMC,OACjBA,IAEA,MAAOC,EAAkBC,EAAqBC,GA4ChD,UAAiCL,YAC/BA,EAAAC,SACAA,IAMA,MAAOK,EAAOC,GAAkBb,EAAAc,SAASR,GACnCS,EAAqBf,EAAAgB,OAAOJ,GAE5BD,EAAoBX,EAAAgB,OAAOT,GAYjC,OAXAR,EAAmB,KACjBY,EAAYM,QAAUV,GACrB,CAACA,IAEEP,EAAAkB,UAAU,KACVH,EAAaE,UAAYL,IAC3BD,EAAYM,UAAUL,GACtBG,EAAaE,QAAUL,IAExB,CAACA,EAAOG,IAEJ,CAACH,EAAOC,EAAUF,EAC3B,CApE+DQ,CAAqB,CAChFb,cACAC,aAEIa,OAAwB,IAATf,EACfO,EAAQQ,EAAef,EAAOI,EAMO,CACzC,MAAMY,EAAwBrB,EAAAgB,YAAgB,IAATX,GAC/BL,EAAAkB,UAAU,KACd,MAAMI,EAAgBD,EAAgBJ,QACtC,GAAIK,IAAkBF,EAAc,CAMpC,CACAC,EAAgBJ,QAAUG,GACzB,CAACA,EAAcZ,GACpB,CAGA,MAAMK,EAAiBb,EAAAuB,YACpBC,IACC,GAAIJ,EAAc,CAChB,MAAMR,EAwCd,SAAoBA,GAClB,MAAwB,mBAAVA,CAChB,CA1CsBa,CAAWD,GAAaA,EAAUnB,GAAQmB,EACpDZ,IAAUP,GACZM,EAAYM,UAAUL,EAE1B,MACEF,EAAoBc,IAGxB,CAACJ,EAAcf,EAAMK,EAAqBC,IAG5C,MAAO,CAACC,EAAOC,EACjB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-VuwFoF4R.mjs","sources":["../../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useInsertionEffect = React[\" useInsertionEffect \".trim().toString()] || useLayoutEffect;\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n },\n caller\n}) {\n const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({\n defaultProp,\n onChange\n });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n if (true) {\n const isControlledRef = React.useRef(prop !== void 0);\n React.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${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.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;\n if (value2 !== prop) {\n onChangeRef.current?.(value2);\n }\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, onChangeRef]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const [value, setValue] = React.useState(defaultProp);\n const prevValueRef = React.useRef(value);\n const onChangeRef = React.useRef(onChange);\n useInsertionEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n onChangeRef.current?.(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef]);\n return [value, setValue, onChangeRef];\n}\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\n// src/use-controllable-state-reducer.tsx\nimport * as React2 from \"react\";\nimport { useEffectEvent } from \"@radix-ui/react-use-effect-event\";\nvar SYNC_STATE = Symbol(\"RADIX:SYNC_STATE\");\nfunction useControllableStateReducer(reducer, userArgs, initialArg, init) {\n const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;\n const isControlled = controlledState !== void 0;\n const onChange = useEffectEvent(onChangeProp);\n if (true) {\n const isControlledRef = React2.useRef(controlledState !== void 0);\n React2.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${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.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const args = [{ ...initialArg, state: defaultProp }];\n if (init) {\n args.push(init);\n }\n const [internalState, dispatch] = React2.useReducer(\n (state2, action) => {\n if (action.type === SYNC_STATE) {\n return { ...state2, state: action.state };\n }\n const next = reducer(state2, action);\n if (isControlled && !Object.is(next.state, state2.state)) {\n onChange(next.state);\n }\n return next;\n },\n ...args\n );\n const uncontrolledState = internalState.state;\n const prevValueRef = React2.useRef(uncontrolledState);\n React2.useEffect(() => {\n if (prevValueRef.current !== uncontrolledState) {\n prevValueRef.current = uncontrolledState;\n if (!isControlled) {\n onChange(uncontrolledState);\n }\n }\n }, [onChange, uncontrolledState, prevValueRef, isControlled]);\n const state = React2.useMemo(() => {\n const isControlled2 = controlledState !== void 0;\n if (isControlled2) {\n return { ...internalState, state: controlledState };\n }\n return internalState;\n }, [internalState, controlledState]);\n React2.useEffect(() => {\n if (isControlled && !Object.is(controlledState, internalState.state)) {\n dispatch({ type: SYNC_STATE, state: controlledState });\n }\n }, [controlledState, internalState.state, isControlled]);\n return [state, dispatch];\n}\nexport {\n useControllableState,\n useControllableStateReducer\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useInsertionEffect","React","trim","toString","useLayoutEffect","useControllableState","prop","defaultProp","onChange","caller","uncontrolledProp","setUncontrolledProp","onChangeRef","value","setValue","useState","prevValueRef","useRef","current","useEffect","useUncontrolledState","isControlled","isControlledRef","wasControlled","useCallback","nextValue","isFunction"],"mappings":"iEAIA,IAAMA,EACHC,EAAc,uBAAuBC,OAAOC,aAAeC,EAYvD,SAASC,GAAwBC,KACtCA,EAAAC,YACAA,EAAAC,SACAA,EAAW,OAAMC,OACjBA,IAEA,MAAOC,EAAkBC,EAAqBC,GA4ChD,UAAiCL,YAC/BA,EAAAC,SACAA,IAMA,MAAOK,EAAOC,GAAkBb,EAAAc,SAASR,GACnCS,EAAqBf,EAAAgB,OAAOJ,GAE5BD,EAAoBX,EAAAgB,OAAOT,GAYjC,OAXAR,EAAmB,KACjBY,EAAYM,QAAUV,GACrB,CAACA,IAEEP,EAAAkB,UAAU,KACVH,EAAaE,UAAYL,IAC3BD,EAAYM,UAAUL,GACtBG,EAAaE,QAAUL,IAExB,CAACA,EAAOG,IAEJ,CAACH,EAAOC,EAAUF,EAC3B,CApE+DQ,CAAqB,CAChFb,cACAC,aAEIa,OAAwB,IAATf,EACfO,EAAQQ,EAAef,EAAOI,EAMO,CACzC,MAAMY,EAAwBrB,EAAAgB,YAAgB,IAATX,GAC/BL,EAAAkB,UAAU,KACd,MAAMI,EAAgBD,EAAgBJ,QACtC,GAAIK,IAAkBF,EAAc,CAMpC,CACAC,EAAgBJ,QAAUG,GACzB,CAACA,EAAcZ,GACpB,CAGA,MAAMK,EAAiBb,EAAAuB,YACpBC,IACC,GAAIJ,EAAc,CAChB,MAAMR,EAwCd,SAAoBA,GAClB,MAAwB,mBAAVA,CAChB,CA1CsBa,CAAWD,GAAaA,EAAUnB,GAAQmB,EACpDZ,IAAUP,GACZM,EAAYM,UAAUL,EAE1B,MACEF,EAAoBc,IAGxB,CAACJ,EAAcf,EAAMK,EAAqBC,IAG5C,MAAO,CAACC,EAAOC,EACjB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import*as r from"react";import{u as t}from"./index-DtAARIfz.mjs";var i=r[" useId ".trim().toString()]||(()=>{}),o=0;function a(a){const[e,n]=r.useState(i());return t(()=>{n(r=>r??String(o++))},[a]),e?`radix-${e}`:""}export{a as u};
2
- //# sourceMappingURL=index-qj95ftFz.mjs.map
1
+ import*as r from"react";import{u as t}from"./index-DZgHf-gI.mjs";var i=r[" useId ".trim().toString()]||(()=>{}),o=0;function a(a){const[e,n]=r.useState(i());return t(()=>{n(r=>r??String(o++))},[a]),e?`radix-${e}`:""}export{a as u};
2
+ //# sourceMappingURL=index-ZCQr-O7f.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-qj95ftFz.mjs","sources":["../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().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":["useReactId","React","trim","toString","count","useId","deterministicId","id","setId","useState","useLayoutEffect","reactId","String"],"mappings":"iEAIA,IAAMA,EAAcC,EAAc,UAAUC,OAAOC,aAAU,MAAY,GACrEC,EAAQ,EAEZ,SAASC,EAAMC,GACb,MAAOC,EAAIC,GAAeP,EAAAQ,SAA6BT,KAKvD,OAHAU,EAAgB,KACQF,EAAOG,GAAYA,GAAWC,OAAOR,OAC1D,CAACE,IACuBC,EAAK,SAASA,IAAO,EAClD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index-ZCQr-O7f.mjs","sources":["../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().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":["useReactId","React","trim","toString","count","useId","deterministicId","id","setId","useState","useLayoutEffect","reactId","String"],"mappings":"iEAIA,IAAMA,EAAcC,EAAc,UAAUC,OAAOC,aAAU,MAAY,GACrEC,EAAQ,EAEZ,SAASC,EAAMC,GACb,MAAOC,EAAIC,GAAeP,EAAAQ,SAA6BT,KAKvD,OAHAU,EAAgB,KACQF,EAAOG,GAAYA,GAAWC,OAAOR,OAC1D,CAACE,IACuBC,EAAK,SAASA,IAAO,EAClD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{c as n}from"./index-DCzuZZz4.mjs";import{createCollection as t}from"@radix-ui/react-collection";import{u as r,c as o}from"./index-C3QHFNp7.mjs";import{c as a}from"./index-BO-2wsZH.mjs";import{u as c}from"./index-BzvNkDmM.mjs";import{P as s,D as u}from"./index-PTRe4YNS.mjs";import{h as i,u as l,R as d,F as f}from"./index-BVACT7xe.mjs";import{u as p}from"./index-qj95ftFz.mjs";import{c as m,R as h,A as v,C as g,a as _}from"./index-BMe6PFsX.mjs";import{P as w}from"./index-D532f2iM.mjs";import{P as M,d as C}from"./index-CZMSgrEB.mjs";import{c as y,I as b,R}from"./index-DOiEGiat.mjs";import{createSlot as P}from"@radix-ui/react-slot";import{u as k}from"./index-BJZ14-gh.mjs";import{jsx as x}from"react/jsx-runtime";var D=["Enter"," "],E=["ArrowUp","PageDown","End"],O=["ArrowDown","PageUp","Home",...E],I={ltr:[...D,"ArrowRight"],rtl:[...D,"ArrowLeft"]},S={ltr:["ArrowLeft"],rtl:["ArrowRight"]},T="Menu",[F,L,K]=t(T),[A,N]=a(T,[K,m,y]),j=m(),G=y(),[V,U]=A(T),[B,X]=A(T),Y=n=>{const{__scopeMenu:t,open:r=!1,children:o,dir:a,onOpenChange:s,modal:u=!0}=n,i=j(t),[l,d]=e.useState(null),f=e.useRef(!1),p=k(s),m=c(a);return e.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),x(h,{...i,children:x(V,{scope:t,open:r,onOpenChange:p,content:l,onContentChange:d,children:x(B,{scope:t,onClose:e.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:u,children:o})})})};Y.displayName=T;var z=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,o=j(t);return x(v,{...o,...r,ref:n})});z.displayName="MenuAnchor";var H="MenuPortal",[J,W]=A(H,{forceMount:void 0}),Z=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,a=U(H,n);return x(J,{scope:n,forceMount:t,children:x(w,{present:t||a.open,children:x(s,{asChild:!0,container:o,children:r})})})};Z.displayName=H;var q="MenuContent",[Q,$]=A(q),ee=e.forwardRef((e,n)=>{const t=W(q,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,a=U(q,e.__scopeMenu),c=X(q,e.__scopeMenu);return x(F.Provider,{scope:e.__scopeMenu,children:x(w,{present:r||a.open,children:x(F.Slot,{scope:e.__scopeMenu,children:c.modal?x(ne,{...o,ref:n}):x(te,{...o,ref:n})})})})}),ne=e.forwardRef((t,o)=>{const a=U(q,t.__scopeMenu),c=e.useRef(null),s=r(o,c);return e.useEffect(()=>{const e=c.current;if(e)return i(e)},[]),x(oe,{...t,ref:s,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:n(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),te=e.forwardRef((e,n)=>{const t=U(q,e.__scopeMenu);return x(oe,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),re=P("MenuContent.ScrollLock"),oe=e.forwardRef((t,o)=>{const{__scopeMenu:a,loop:c=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:p,disableOutsidePointerEvents:m,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:_,onFocusOutside:w,onInteractOutside:M,onDismiss:C,disableOutsideScroll:y,...b}=t,P=U(q,a),k=X(q,a),D=j(a),I=G(a),S=L(a),[T,F]=e.useState(null),K=e.useRef(null),A=r(o,K,P.onContentChange),N=e.useRef(0),V=e.useRef(""),B=e.useRef(0),Y=e.useRef(null),z=e.useRef("right"),H=e.useRef(0),J=y?d:e.Fragment,W=y?{as:re,allowPinchZoom:!0}:void 0,Z=e=>{const n=V.current+e,t=S().filter(e=>!e.disabled),r=document.activeElement,o=t.find(e=>e.ref.current===r)?.textValue,a=function(e,n,t){const r=n.length>1&&Array.from(n).every(e=>e===n[0]),o=r?n[0]:n,a=t?e.indexOf(t):-1;let c=(s=e,u=Math.max(a,0),s.map((e,n)=>s[(u+n)%s.length]));var s,u;1===o.length&&(c=c.filter(e=>e!==t));const i=c.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==t?i:void 0}(t.map(e=>e.textValue),n,o),c=t.find(e=>e.textValue===a)?.ref.current;!function e(n){V.current=n,window.clearTimeout(N.current),""!==n&&(N.current=window.setTimeout(()=>e(""),1e3))}(n),c&&setTimeout(()=>c.focus())};e.useEffect(()=>()=>window.clearTimeout(N.current),[]),l();const $=e.useCallback(e=>z.current===Y.current?.side&&function(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return function(e,n){const{x:t,y:r}=e;let o=!1;for(let e=0,a=n.length-1;e<n.length;a=e++){const c=n[e],s=n[a],u=c.x,i=c.y,l=s.x,d=s.y;i>r!=d>r&&t<(l-u)*(r-i)/(d-i)+u&&(o=!o)}return o}(t,n)}(e,Y.current?.area),[]);return x(Q,{scope:a,searchRef:V,onItemEnter:e.useCallback(e=>{$(e)&&e.preventDefault()},[$]),onItemLeave:e.useCallback(e=>{$(e)||(K.current?.focus(),F(null))},[$]),onTriggerLeave:e.useCallback(e=>{$(e)&&e.preventDefault()},[$]),pointerGraceTimerRef:B,onPointerGraceIntentChange:e.useCallback(e=>{Y.current=e},[]),children:x(J,{...W,children:x(f,{asChild:!0,trapped:s,onMountAutoFocus:n(i,e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:p,children:x(u,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:v,onPointerDownOutside:_,onFocusOutside:w,onInteractOutside:M,onDismiss:C,children:x(R,{asChild:!0,...I,dir:k.dir,orientation:"vertical",loop:c,currentTabStopId:T,onCurrentTabStopIdChange:F,onEntryFocus:n(h,e=>{k.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:x(g,{role:"menu","aria-orientation":"vertical","data-state":Se(P.open),"data-radix-menu-content":"",dir:k.dir,...D,...b,ref:A,style:{outline:"none",...b.style},onKeyDown:n(b.onKeyDown,e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&Z(e.key));const o=K.current;if(e.target!==o)return;if(!O.includes(e.key))return;e.preventDefault();const a=S().filter(e=>!e.disabled).map(e=>e.ref.current);E.includes(e.key)&&a.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(a)}),onBlur:n(t.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),V.current="")}),onPointerMove:n(t.onPointerMove,Le(e=>{const n=e.target,t=H.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>H.current?"right":"left";z.current=n,H.current=e.clientX}}))})})})})})})});ee.displayName=q;var ae=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return x(M.div,{role:"group",...r,ref:n})});ae.displayName="MenuGroup";var ce=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return x(M.div,{...r,ref:n})});ce.displayName="MenuLabel";var se="MenuItem",ue="menu.itemSelect",ie=e.forwardRef((t,o)=>{const{disabled:a=!1,onSelect:c,...s}=t,u=e.useRef(null),i=X(se,t.__scopeMenu),l=$(se,t.__scopeMenu),d=r(o,u),f=e.useRef(!1);return x(le,{...s,ref:d,disabled:a,onClick:n(t.onClick,()=>{const e=u.current;if(!a&&e){const n=new CustomEvent(ue,{bubbles:!0,cancelable:!0});e.addEventListener(ue,e=>c?.(e),{once:!0}),C(e,n),n.defaultPrevented?f.current=!1:i.onClose()}}),onPointerDown:e=>{t.onPointerDown?.(e),f.current=!0},onPointerUp:n(t.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:n(t.onKeyDown,e=>{const n=""!==l.searchRef.current;a||n&&" "===e.key||D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ie.displayName=se;var le=e.forwardRef((t,o)=>{const{__scopeMenu:a,disabled:c=!1,textValue:s,...u}=t,i=$(se,a),l=G(a),d=e.useRef(null),f=r(o,d),[p,m]=e.useState(!1),[h,v]=e.useState("");return e.useEffect(()=>{const e=d.current;e&&v((e.textContent??"").trim())},[u.children]),x(F.ItemSlot,{scope:a,disabled:c,textValue:s??h,children:x(b,{asChild:!0,...l,focusable:!c,children:x(M.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...u,ref:f,onPointerMove:n(t.onPointerMove,Le(e=>{if(c)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:n(t.onPointerLeave,Le(e=>i.onItemLeave(e))),onFocus:n(t.onFocus,()=>m(!0)),onBlur:n(t.onBlur,()=>m(!1))})})})}),de=e.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:o,...a}=e;return x(we,{scope:e.__scopeMenu,checked:r,children:x(ie,{role:"menuitemcheckbox","aria-checked":Te(r)?"mixed":r,...a,ref:t,"data-state":Fe(r),onSelect:n(a.onSelect,()=>o?.(!!Te(r)||!r),{checkForDefaultPrevented:!1})})})});de.displayName="MenuCheckboxItem";var fe="MenuRadioGroup",[pe,me]=A(fe,{value:void 0,onValueChange:()=>{}}),he=e.forwardRef((e,n)=>{const{value:t,onValueChange:r,...o}=e,a=k(r);return x(pe,{scope:e.__scopeMenu,value:t,onValueChange:a,children:x(ae,{...o,ref:n})})});he.displayName=fe;var ve="MenuRadioItem",ge=e.forwardRef((e,t)=>{const{value:r,...o}=e,a=me(ve,e.__scopeMenu),c=r===a.value;return x(we,{scope:e.__scopeMenu,checked:c,children:x(ie,{role:"menuitemradio","aria-checked":c,...o,ref:t,"data-state":Fe(c),onSelect:n(o.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});ge.displayName=ve;var _e="MenuItemIndicator",[we,Me]=A(_e,{checked:!1}),Ce=e.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,a=Me(_e,t);return x(w,{present:r||Te(a.checked)||!0===a.checked,children:x(M.span,{...o,ref:n,"data-state":Fe(a.checked)})})});Ce.displayName=_e;var ye=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return x(M.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})});ye.displayName="MenuSeparator";var be=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,o=j(t);return x(_,{...o,...r,ref:n})});be.displayName="MenuArrow";var Re="MenuSub",[Pe,ke]=A(Re),xe=n=>{const{__scopeMenu:t,children:r,open:o=!1,onOpenChange:a}=n,c=U(Re,t),s=j(t),[u,i]=e.useState(null),[l,d]=e.useState(null),f=k(a);return e.useEffect(()=>(!1===c.open&&f(!1),()=>f(!1)),[c.open,f]),x(h,{...s,children:x(V,{scope:t,open:o,onOpenChange:f,content:l,onContentChange:d,children:x(Pe,{scope:t,contentId:p(),triggerId:p(),trigger:u,onTriggerChange:i,children:r})})})};xe.displayName=Re;var De="MenuSubTrigger",Ee=e.forwardRef((t,r)=>{const a=U(De,t.__scopeMenu),c=X(De,t.__scopeMenu),s=ke(De,t.__scopeMenu),u=$(De,t.__scopeMenu),i=e.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:d}=u,f={__scopeMenu:t.__scopeMenu},p=e.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return e.useEffect(()=>p,[p]),e.useEffect(()=>{const e=l.current;return()=>{window.clearTimeout(e),d(null)}},[l,d]),x(z,{asChild:!0,...f,children:x(le,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":s.contentId,"data-state":Se(a.open),...t,ref:o(r,s.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:n(t.onPointerMove,Le(e=>{u.onItemEnter(e),e.defaultPrevented||t.disabled||a.open||i.current||(u.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{a.onOpenChange(!0),p()},100))})),onPointerLeave:n(t.onPointerLeave,Le(e=>{p();const n=a.content?.getBoundingClientRect();if(n){const t=a.content?.dataset.side,r="right"===t,o=r?-5:5,c=n[r?"left":"right"],s=n[r?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:n.top},{x:s,y:n.top},{x:s,y:n.bottom},{x:c,y:n.bottom}],side:t}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:n(t.onKeyDown,e=>{const n=""!==u.searchRef.current;t.disabled||n&&" "===e.key||I[c.dir].includes(e.key)&&(a.onOpenChange(!0),a.content?.focus(),e.preventDefault())})})})});Ee.displayName=De;var Oe="MenuSubContent",Ie=e.forwardRef((t,o)=>{const a=W(q,t.__scopeMenu),{forceMount:c=a.forceMount,...s}=t,u=U(q,t.__scopeMenu),i=X(q,t.__scopeMenu),l=ke(Oe,t.__scopeMenu),d=e.useRef(null),f=r(o,d);return x(F.Provider,{scope:t.__scopeMenu,children:x(w,{present:c||u.open,children:x(F.Slot,{scope:t.__scopeMenu,children:x(oe,{id:l.contentId,"aria-labelledby":l.triggerId,...s,ref:f,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:n(t.onFocusOutside,e=>{e.target!==l.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:n(t.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:n(t.onKeyDown,e=>{const n=e.currentTarget.contains(e.target),t=S[i.dir].includes(e.key);n&&t&&(u.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function Se(e){return e?"open":"closed"}function Te(e){return"indeterminate"===e}function Fe(e){return Te(e)?"indeterminate":e?"checked":"unchecked"}function Le(e){return n=>"mouse"===n.pointerType?e(n):void 0}Ie.displayName=Oe;var Ke=Y,Ae=z,Ne=Z,je=ee,Ge=ae,Ve=ce,Ue=ie,Be=de,Xe=he,Ye=ge,ze=Ce,He=ye,Je=be,We=xe,Ze=Ee,qe=Ie;export{Ae as A,je as C,Ge as G,Ue as I,Ve as L,Ne as P,Ke as R,He as S,Be as a,ze as b,N as c,Xe as d,Ye as e,We as f,Ze as g,qe as h,Je as i};
2
- //# sourceMappingURL=index-yLvhFHpw.mjs.map
1
+ import*as e from"react";import{c as n}from"./index-CaYe_hNP.mjs";import{createCollection as t}from"@radix-ui/react-collection";import{u as r,c as o}from"./index-DmBXPUeL.mjs";import{c as a}from"./index-DBp_Gx1M.mjs";import{u as c}from"./index-Bt73Afz2.mjs";import{P as s,D as u}from"./index-GOFmxCuq.mjs";import{h as i,u as l,R as d,F as f}from"./index-CzTsDkbO.mjs";import{u as p}from"./index-ZCQr-O7f.mjs";import{c as m,R as h,A as v,C as g,a as _}from"./index-Bo9g9ZHj.mjs";import{P as w}from"./index-B7nzlBcT.mjs";import{P as M,d as C}from"./index-DuDVR7ID.mjs";import{c as y,I as b,R}from"./index-0ahJ1Q21.mjs";import{createSlot as P}from"@radix-ui/react-slot";import{u as k}from"./index-Cu6LwID6.mjs";import{jsx as x}from"react/jsx-runtime";var D=["Enter"," "],E=["ArrowUp","PageDown","End"],O=["ArrowDown","PageUp","Home",...E],I={ltr:[...D,"ArrowRight"],rtl:[...D,"ArrowLeft"]},S={ltr:["ArrowLeft"],rtl:["ArrowRight"]},T="Menu",[F,L,K]=t(T),[A,N]=a(T,[K,m,y]),j=m(),G=y(),[V,U]=A(T),[B,X]=A(T),Y=n=>{const{__scopeMenu:t,open:r=!1,children:o,dir:a,onOpenChange:s,modal:u=!0}=n,i=j(t),[l,d]=e.useState(null),f=e.useRef(!1),p=k(s),m=c(a);return e.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),x(h,{...i,children:x(V,{scope:t,open:r,onOpenChange:p,content:l,onContentChange:d,children:x(B,{scope:t,onClose:e.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:u,children:o})})})};Y.displayName=T;var z=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,o=j(t);return x(v,{...o,...r,ref:n})});z.displayName="MenuAnchor";var H="MenuPortal",[W,Z]=A(H,{forceMount:void 0}),q=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,a=U(H,n);return x(W,{scope:n,forceMount:t,children:x(w,{present:t||a.open,children:x(s,{asChild:!0,container:o,children:r})})})};q.displayName=H;var J="MenuContent",[Q,$]=A(J),ee=e.forwardRef((e,n)=>{const t=Z(J,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,a=U(J,e.__scopeMenu),c=X(J,e.__scopeMenu);return x(F.Provider,{scope:e.__scopeMenu,children:x(w,{present:r||a.open,children:x(F.Slot,{scope:e.__scopeMenu,children:c.modal?x(ne,{...o,ref:n}):x(te,{...o,ref:n})})})})}),ne=e.forwardRef((t,o)=>{const a=U(J,t.__scopeMenu),c=e.useRef(null),s=r(o,c);return e.useEffect(()=>{const e=c.current;if(e)return i(e)},[]),x(oe,{...t,ref:s,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:n(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),te=e.forwardRef((e,n)=>{const t=U(J,e.__scopeMenu);return x(oe,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),re=P("MenuContent.ScrollLock"),oe=e.forwardRef((t,o)=>{const{__scopeMenu:a,loop:c=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:p,disableOutsidePointerEvents:m,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:_,onFocusOutside:w,onInteractOutside:M,onDismiss:C,disableOutsideScroll:y,...b}=t,P=U(J,a),k=X(J,a),D=j(a),I=G(a),S=L(a),[T,F]=e.useState(null),K=e.useRef(null),A=r(o,K,P.onContentChange),N=e.useRef(0),V=e.useRef(""),B=e.useRef(0),Y=e.useRef(null),z=e.useRef("right"),H=e.useRef(0),W=y?d:e.Fragment,Z=y?{as:re,allowPinchZoom:!0}:void 0,q=e=>{const n=V.current+e,t=S().filter(e=>!e.disabled),r=document.activeElement,o=t.find(e=>e.ref.current===r)?.textValue,a=function(e,n,t){const r=n.length>1&&Array.from(n).every(e=>e===n[0]),o=r?n[0]:n,a=t?e.indexOf(t):-1;let c=(s=e,u=Math.max(a,0),s.map((e,n)=>s[(u+n)%s.length]));var s,u;1===o.length&&(c=c.filter(e=>e!==t));const i=c.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==t?i:void 0}(t.map(e=>e.textValue),n,o),c=t.find(e=>e.textValue===a)?.ref.current;!function e(n){V.current=n,window.clearTimeout(N.current),""!==n&&(N.current=window.setTimeout(()=>e(""),1e3))}(n),c&&setTimeout(()=>c.focus())};e.useEffect(()=>()=>window.clearTimeout(N.current),[]),l();const $=e.useCallback(e=>z.current===Y.current?.side&&function(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return function(e,n){const{x:t,y:r}=e;let o=!1;for(let e=0,a=n.length-1;e<n.length;a=e++){const c=n[e],s=n[a],u=c.x,i=c.y,l=s.x,d=s.y;i>r!=d>r&&t<(l-u)*(r-i)/(d-i)+u&&(o=!o)}return o}(t,n)}(e,Y.current?.area),[]);return x(Q,{scope:a,searchRef:V,onItemEnter:e.useCallback(e=>{$(e)&&e.preventDefault()},[$]),onItemLeave:e.useCallback(e=>{$(e)||(K.current?.focus(),F(null))},[$]),onTriggerLeave:e.useCallback(e=>{$(e)&&e.preventDefault()},[$]),pointerGraceTimerRef:B,onPointerGraceIntentChange:e.useCallback(e=>{Y.current=e},[]),children:x(W,{...Z,children:x(f,{asChild:!0,trapped:s,onMountAutoFocus:n(i,e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:p,children:x(u,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:v,onPointerDownOutside:_,onFocusOutside:w,onInteractOutside:M,onDismiss:C,children:x(R,{asChild:!0,...I,dir:k.dir,orientation:"vertical",loop:c,currentTabStopId:T,onCurrentTabStopIdChange:F,onEntryFocus:n(h,e=>{k.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:x(g,{role:"menu","aria-orientation":"vertical","data-state":Se(P.open),"data-radix-menu-content":"",dir:k.dir,...D,...b,ref:A,style:{outline:"none",...b.style},onKeyDown:n(b.onKeyDown,e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&q(e.key));const o=K.current;if(e.target!==o)return;if(!O.includes(e.key))return;e.preventDefault();const a=S().filter(e=>!e.disabled).map(e=>e.ref.current);E.includes(e.key)&&a.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(a)}),onBlur:n(t.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),V.current="")}),onPointerMove:n(t.onPointerMove,Le(e=>{const n=e.target,t=H.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>H.current?"right":"left";z.current=n,H.current=e.clientX}}))})})})})})})});ee.displayName=J;var ae=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return x(M.div,{role:"group",...r,ref:n})});ae.displayName="MenuGroup";var ce=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return x(M.div,{...r,ref:n})});ce.displayName="MenuLabel";var se="MenuItem",ue="menu.itemSelect",ie=e.forwardRef((t,o)=>{const{disabled:a=!1,onSelect:c,...s}=t,u=e.useRef(null),i=X(se,t.__scopeMenu),l=$(se,t.__scopeMenu),d=r(o,u),f=e.useRef(!1);return x(le,{...s,ref:d,disabled:a,onClick:n(t.onClick,()=>{const e=u.current;if(!a&&e){const n=new CustomEvent(ue,{bubbles:!0,cancelable:!0});e.addEventListener(ue,e=>c?.(e),{once:!0}),C(e,n),n.defaultPrevented?f.current=!1:i.onClose()}}),onPointerDown:e=>{t.onPointerDown?.(e),f.current=!0},onPointerUp:n(t.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:n(t.onKeyDown,e=>{const n=""!==l.searchRef.current;a||n&&" "===e.key||D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ie.displayName=se;var le=e.forwardRef((t,o)=>{const{__scopeMenu:a,disabled:c=!1,textValue:s,...u}=t,i=$(se,a),l=G(a),d=e.useRef(null),f=r(o,d),[p,m]=e.useState(!1),[h,v]=e.useState("");return e.useEffect(()=>{const e=d.current;e&&v((e.textContent??"").trim())},[u.children]),x(F.ItemSlot,{scope:a,disabled:c,textValue:s??h,children:x(b,{asChild:!0,...l,focusable:!c,children:x(M.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...u,ref:f,onPointerMove:n(t.onPointerMove,Le(e=>{if(c)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:n(t.onPointerLeave,Le(e=>i.onItemLeave(e))),onFocus:n(t.onFocus,()=>m(!0)),onBlur:n(t.onBlur,()=>m(!1))})})})}),de=e.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:o,...a}=e;return x(we,{scope:e.__scopeMenu,checked:r,children:x(ie,{role:"menuitemcheckbox","aria-checked":Te(r)?"mixed":r,...a,ref:t,"data-state":Fe(r),onSelect:n(a.onSelect,()=>o?.(!!Te(r)||!r),{checkForDefaultPrevented:!1})})})});de.displayName="MenuCheckboxItem";var fe="MenuRadioGroup",[pe,me]=A(fe,{value:void 0,onValueChange:()=>{}}),he=e.forwardRef((e,n)=>{const{value:t,onValueChange:r,...o}=e,a=k(r);return x(pe,{scope:e.__scopeMenu,value:t,onValueChange:a,children:x(ae,{...o,ref:n})})});he.displayName=fe;var ve="MenuRadioItem",ge=e.forwardRef((e,t)=>{const{value:r,...o}=e,a=me(ve,e.__scopeMenu),c=r===a.value;return x(we,{scope:e.__scopeMenu,checked:c,children:x(ie,{role:"menuitemradio","aria-checked":c,...o,ref:t,"data-state":Fe(c),onSelect:n(o.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});ge.displayName=ve;var _e="MenuItemIndicator",[we,Me]=A(_e,{checked:!1}),Ce=e.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,a=Me(_e,t);return x(w,{present:r||Te(a.checked)||!0===a.checked,children:x(M.span,{...o,ref:n,"data-state":Fe(a.checked)})})});Ce.displayName=_e;var ye=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return x(M.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})});ye.displayName="MenuSeparator";var be=e.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,o=j(t);return x(_,{...o,...r,ref:n})});be.displayName="MenuArrow";var Re="MenuSub",[Pe,ke]=A(Re),xe=n=>{const{__scopeMenu:t,children:r,open:o=!1,onOpenChange:a}=n,c=U(Re,t),s=j(t),[u,i]=e.useState(null),[l,d]=e.useState(null),f=k(a);return e.useEffect(()=>(!1===c.open&&f(!1),()=>f(!1)),[c.open,f]),x(h,{...s,children:x(V,{scope:t,open:o,onOpenChange:f,content:l,onContentChange:d,children:x(Pe,{scope:t,contentId:p(),triggerId:p(),trigger:u,onTriggerChange:i,children:r})})})};xe.displayName=Re;var De="MenuSubTrigger",Ee=e.forwardRef((t,r)=>{const a=U(De,t.__scopeMenu),c=X(De,t.__scopeMenu),s=ke(De,t.__scopeMenu),u=$(De,t.__scopeMenu),i=e.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:d}=u,f={__scopeMenu:t.__scopeMenu},p=e.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return e.useEffect(()=>p,[p]),e.useEffect(()=>{const e=l.current;return()=>{window.clearTimeout(e),d(null)}},[l,d]),x(z,{asChild:!0,...f,children:x(le,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":s.contentId,"data-state":Se(a.open),...t,ref:o(r,s.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:n(t.onPointerMove,Le(e=>{u.onItemEnter(e),e.defaultPrevented||t.disabled||a.open||i.current||(u.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{a.onOpenChange(!0),p()},100))})),onPointerLeave:n(t.onPointerLeave,Le(e=>{p();const n=a.content?.getBoundingClientRect();if(n){const t=a.content?.dataset.side,r="right"===t,o=r?-5:5,c=n[r?"left":"right"],s=n[r?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:n.top},{x:s,y:n.top},{x:s,y:n.bottom},{x:c,y:n.bottom}],side:t}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:n(t.onKeyDown,e=>{const n=""!==u.searchRef.current;t.disabled||n&&" "===e.key||I[c.dir].includes(e.key)&&(a.onOpenChange(!0),a.content?.focus(),e.preventDefault())})})})});Ee.displayName=De;var Oe="MenuSubContent",Ie=e.forwardRef((t,o)=>{const a=Z(J,t.__scopeMenu),{forceMount:c=a.forceMount,...s}=t,u=U(J,t.__scopeMenu),i=X(J,t.__scopeMenu),l=ke(Oe,t.__scopeMenu),d=e.useRef(null),f=r(o,d);return x(F.Provider,{scope:t.__scopeMenu,children:x(w,{present:c||u.open,children:x(F.Slot,{scope:t.__scopeMenu,children:x(oe,{id:l.contentId,"aria-labelledby":l.triggerId,...s,ref:f,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:n(t.onFocusOutside,e=>{e.target!==l.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:n(t.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:n(t.onKeyDown,e=>{const n=e.currentTarget.contains(e.target),t=S[i.dir].includes(e.key);n&&t&&(u.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function Se(e){return e?"open":"closed"}function Te(e){return"indeterminate"===e}function Fe(e){return Te(e)?"indeterminate":e?"checked":"unchecked"}function Le(e){return n=>"mouse"===n.pointerType?e(n):void 0}Ie.displayName=Oe;var Ke=Y,Ae=z,Ne=q,je=ee,Ge=ae,Ve=ce,Ue=ie,Be=de,Xe=he,Ye=ge,ze=Ce,He=ye,We=be,Ze=xe,qe=Ee,Je=Ie;export{Ae as A,je as C,Ge as G,Ue as I,Ve as L,Ne as P,Ke as R,He as S,Be as a,ze as b,N as c,Xe as d,Ye as e,Ze as f,qe as g,Je as h,We as i};
2
+ //# sourceMappingURL=index-czDftnY4.mjs.map