@quantinuum/quantinuum-ui 3.5.1 → 3.6.0-release-input-group.1

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 (46) hide show
  1. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js +1 -1
  2. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js.map +1 -1
  3. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  4. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  5. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js +1 -1
  6. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js.map +1 -1
  7. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  8. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  9. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js +1 -1
  10. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js.map +1 -1
  11. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  12. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  13. package/dist/node_modules/@radix-ui/react-popover/dist/index.mjs.js +1 -1
  14. package/dist/node_modules/@radix-ui/react-popover/dist/index.mjs.js.map +1 -1
  15. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  16. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  17. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +1 -1
  18. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -1
  19. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  20. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  21. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js +1 -1
  22. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js.map +1 -1
  23. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  24. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  25. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js +1 -1
  26. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -1
  27. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +2 -0
  28. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -0
  29. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +1 -1
  30. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js.map +1 -1
  31. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  32. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  33. package/dist/src/custom/icons.js +1 -1
  34. package/dist/src/custom/icons.js.map +1 -1
  35. package/dist/src/index.js +1 -1
  36. package/dist/src/shadcn/ui/breadcrumb.js +1 -1
  37. package/dist/src/shadcn/ui/button.js +1 -1
  38. package/dist/src/shadcn/ui/form.js +1 -1
  39. package/dist/src/shadcn/ui/input-group.js +3 -0
  40. package/dist/src/shadcn/ui/input-group.js.map +1 -0
  41. package/dist/tailwind-manifest.js +785 -129
  42. package/dist/types/src/custom/icons.d.ts +3 -0
  43. package/dist/types/src/index.d.ts +1 -0
  44. package/dist/types/src/shadcn/ui/input-group.d.ts +18 -0
  45. package/dist/types/stories/shadcn/input-group.stories.d.ts +5 -0
  46. package/package.json +9 -5
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\n for(const propName in childProps){\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$5e63c961fc1ce211$export$8c6ed5c666ac1360","$9IrjX$forwardRef","props","forwardedRef","children","slotProps","childrenArray","$9IrjX$Children","toArray","slottable","find","$5e63c961fc1ce211$var$isSlottable","newElement","newChildren","map","child","count","only","$9IrjX$isValidElement","$9IrjX$createElement","$5e63c961fc1ce211$var$SlotClone","$9IrjX$babelruntimehelpersesmextends","ref","$9IrjX$cloneElement","undefined","displayName","$5e63c961fc1ce211$var$mergeProps","$9IrjX$composeRefs","$5e63c961fc1ce211$export$d9f1ccf0bdb05d45","$9IrjX$Fragment","type","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","filter","Boolean","join"],"mappings":"+PAS0G,MAACA,EAA0DC,GAAkB,CAACC,EAAOC,KAC3L,MAAQC,SAAUA,KAAcC,GAAcH,EACxCI,EAAgBC,EAAgBC,QAAQJ,GACxCK,EAAYH,EAAcI,KAAKC,GACrC,GAAIF,EAAW,CAEX,MAAMG,EAAaH,EAAUP,MAAME,SAC7BS,EAAcP,EAAcQ,KAAKC,GAC/BA,IAAUN,EAGNF,EAAgBS,MAAMJ,GAAc,EAAUL,EAAgBU,KAAK,MAClDC,EAAsBN,GAAcA,EAAWV,MAAME,SAAW,KAC3EW,IAElB,OAAqBI,EAAqBC,EAAiCC,EAAqC,CAAA,EAAIhB,EAAW,CAC3HiB,IAAKnB,IACSe,EAAsBN,GAA4BW,EAAoBX,OAAYY,EAAWX,GAAe,KACjI,CACD,OAAqBM,EAAqBC,EAAiCC,EAAqC,CAAA,EAAIhB,EAAW,CAC3HiB,IAAKnB,IACLC,EAAS,IAEjBJ,EAA0CyB,YAAc,OAG6C,MAAML,EAAgDnB,GAAkB,CAACC,EAAOC,KACjL,MAAQC,SAAUA,KAAcC,GAAcH,EAC9C,OAAkBgB,EAAsBd,GAAgCmB,EAAoBnB,EAAU,IAC/FsB,EAAiCrB,EAAWD,EAASF,OACxDoB,IAAKnB,EAAewB,EAAmBxB,EAAcC,EAASkB,KAAOlB,EAASkB,MAE3Ef,EAAgBS,MAAMZ,GAAY,EAAIG,EAAgBU,KAAK,MAAQ,IAAI,IAElFG,EAAgCK,YAAc,YAG4D,MAACG,EAA4C,EAAGxB,SAAUA,KAC3Ie,EAAqBU,EAAiB,KAAMzB,GAEgC,SAASO,EAAkCI,GAC5I,OAAqBG,EAAsBH,IAAUA,EAAMe,OAASF,CACxE,CACA,SAASF,EAAiCrB,EAAW0B,GAEjD,MAAMC,EAAgB,IACfD,GAEP,IAAI,MAAME,KAAYF,EAAW,CAC7B,MAAMG,EAAgB7B,EAAU4B,GAC1BE,EAAiBJ,EAAWE,GAChB,WAAWG,KAAKH,GAG1BC,GAAiBC,EAAgBH,EAAcC,GAAY,IAAII,KAC/DF,KAAkBE,GAClBH,KAAiBG,EAAK,EAEjBH,IAAeF,EAAcC,GAAYC,GAC9B,UAAbD,EAAsBD,EAAcC,GAAY,IACpDC,KACAC,GAEe,cAAbF,IAA0BD,EAAcC,GAAY,CACzDC,EACAC,GACFG,OAAOC,SAASC,KAAK,KAC1B,CACD,MAAO,IACAnC,KACA2B,EAEX"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nvar use = React[\" use \".trim().toString()];\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["REACT_LAZY_TYPE","Symbol","for","use","React","trim","toString","isLazyComponent","element","$$typeof","value","_payload","createSlot","ownerName","SlotClone","createSlotClone","Slot2","forwardRef","props","forwardedRef","children","slotProps","childrenArray","Children","toArray","slottable","find","isSlottable","newElement","newChildren","map","child","count","only","isValidElement","jsx","ref","cloneElement","displayName","Slot","childrenRef","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","props2","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","result","filter","Boolean","join","mergeProps","type","Fragment","composeRefs","SLOTTABLE_IDENTIFIER","__radixId"],"mappings":"6JAIA,IAAIA,EAAkBC,OAAOC,IAAI,cAC7BC,EAAMC,EAAM,QAAQC,OAAOC,YAI/B,SAASC,EAAgBC,GACvB,OAAkB,MAAXA,GAAsC,iBAAZA,GAAwB,aAAcA,GAAWA,EAAQC,WAAaT,GAAmB,aAAcQ,IAHhH,iBADHE,EAI4IF,EAAQG,WAH3H,OAAVD,GAAkB,SAAUA,GADlE,IAAuBA,CAKvB,CAEA,SAASE,EAAWC,GAClB,MAAMC,EAA4BC,EAAgBF,GAC5CG,EAAQZ,EAAMa,YAAW,CAACC,EAAOC,KACrC,IAAIC,SAAEA,KAAaC,GAAcH,EAC7BX,EAAgBa,IAA4B,mBAARjB,IACtCiB,EAAWjB,EAAIiB,EAAST,WAE1B,MAAMW,EAAgBlB,EAAMmB,SAASC,QAAQJ,GACvCK,EAAYH,EAAcI,KAAKC,GACrC,GAAIF,EAAW,CACb,MAAMG,EAAaH,EAAUP,MAAME,SAC7BS,EAAcP,EAAcQ,KAAKC,GACjCA,IAAUN,EACRrB,EAAMmB,SAASS,MAAMJ,GAAc,EAAUxB,EAAMmB,SAASU,KAAK,MAC9D7B,EAAM8B,eAAeN,GAAcA,EAAWV,MAAME,SAAW,KAE/DW,IAGX,OAAuBI,EAAIrB,EAAW,IAAKO,EAAWe,IAAKjB,EAAcC,SAAUhB,EAAM8B,eAAeN,GAAcxB,EAAMiC,aAAaT,OAAY,EAAQC,GAAe,MAC7K,CACD,OAAuBM,EAAIrB,EAAW,IAAKO,EAAWe,IAAKjB,EAAcC,YAAW,IAGtF,OADAJ,EAAMsB,YAAc,GAAGzB,SAChBG,CACT,CACG,IAACuB,EAAuB3B,EAAW,QAEtC,SAASG,EAAgBF,GACvB,MAAMC,EAA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AIhB,EAAMmB,SAASU,KAAK,MAAQ,IAAI,IAG9E,OADAnB,EAAUwB,YAAc,GAAGzB,cACpBC,CACT,CACA,IAAIkD,EAAuB/D,OAAO,mBAWlC,SAAS0B,EAAYI,GACnB,OAAO3B,EAAM8B,eAAeH,IAAgC,mBAAfA,EAAM8B,MAAuB,cAAe9B,EAAM8B,MAAQ9B,EAAM8B,KAAKI,YAAcD,CAClI"}
@@ -0,0 +1,2 @@
1
+ import"react";function t(t,n){if("function"==typeof t)return t(n);null!=t&&(t.current=n)}function n(...n){return o=>{let r=!1;const e=n.map((n=>{const e=t(n,o);return r||"function"!=typeof e||(r=!0),e}));if(r)return()=>{for(let o=0;o<e.length;o++){const r=e[o];"function"==typeof r?r():t(n[o],null)}}}}export{n as composeRefs};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-slot/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"],"mappings":"cAEA,SAASA,EAAOC,EAAKC,GACnB,GAAmB,mBAARD,EACT,OAAOA,EAAIC,GACFD,UACTA,EAAIE,QAAUD,EAElB,CACA,SAASE,KAAeC,GACtB,OAAQC,IACN,IAAIC,GAAa,EACjB,MAAMC,EAAWH,EAAKI,KAAKR,IACzB,MAAMS,EAAUV,EAAOC,EAAKK,GAI5B,OAHKC,GAAgC,mBAAXG,IACxBH,GAAa,GAERG,CAAO,IAEhB,GAAIH,EACF,MAAO,KACL,IAAK,IAAII,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAAK,CACxC,MAAMD,EAAUF,EAASG,GACH,mBAAXD,EACTA,IAEAV,EAAOK,EAAKM,GAAI,KAEnB,EAEJ,CAEL"}
@@ -1,2 +1,2 @@
1
- import e from"../../../@babel/runtime/helpers/esm/extends.js";import{useState as t,useRef as o,useMemo as n,useCallback as r,useEffect as i,createElement as s,forwardRef as a}from"react";import{composeEventHandlers as l}from"../../primitive/dist/index.mjs.js";import{useComposedRefs as c}from"../../react-compose-refs/dist/index.mjs.js";import{createContextScope as p}from"../../react-context/dist/index.mjs.js";import{DismissableLayer as d}from"../../react-dismissable-layer/dist/index.mjs.js";import{useId as u}from"../../react-id/dist/index.mjs.js";import{createPopperScope as m,Root as g,Content as x,Anchor as h}from"../../react-popper/dist/index.mjs.js";import{Presence as v}from"../../react-presence/dist/index.mjs.js";import{Primitive as y}from"../../react-primitive/dist/index.mjs.js";import{Slottable as f}from"../../react-slot/dist/index.mjs.js";import{useControllableState as b}from"../../react-use-controllable-state/dist/index.mjs.js";import{Root as T}from"../../react-visually-hidden/dist/index.mjs.js";const[w,C]=p("Tooltip",[m]),j=m(),E=700,P="tooltip.open",[D,_]=w("TooltipProvider"),L=e=>{const{__scopeTooltip:n,delayDuration:a=E,skipDelayDuration:l=300,disableHoverableContent:c=!1,children:p}=e,[d,u]=t(!0),m=o(!1),g=o(0);return i((()=>{const e=g.current;return()=>window.clearTimeout(e)}),[]),s(D,{scope:n,isOpenDelayed:d,delayDuration:a,onOpen:r((()=>{window.clearTimeout(g.current),u(!1)}),[]),onClose:r((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>u(!0)),l)}),[l]),isPointerInTransitRef:m,onPointerInTransitChange:r((e=>{m.current=e}),[]),disableHoverableContent:c},p)},O="Tooltip",[I,M]=w(O),k=e=>{const{__scopeTooltip:a,children:l,open:c,defaultOpen:p=!1,onOpenChange:d,disableHoverableContent:m,delayDuration:x}=e,h=_(O,e.__scopeTooltip),v=j(a),[y,f]=t(null),T=u(),w=o(0),C=null!=m?m:h.disableHoverableContent,E=null!=x?x:h.delayDuration,D=o(!1),[L=!1,M]=b({prop:c,defaultProp:p,onChange:e=>{e?(h.onOpen(),document.dispatchEvent(new CustomEvent(P))):h.onClose(),null==d||d(e)}}),k=n((()=>L?D.current?"delayed-open":"instant-open":"closed"),[L]),R=r((()=>{window.clearTimeout(w.current),D.current=!1,M(!0)}),[M]),H=r((()=>{window.clearTimeout(w.current),M(!1)}),[M]),S=r((()=>{window.clearTimeout(w.current),w.current=window.setTimeout((()=>{D.current=!0,M(!0)}),E)}),[E,M]);return i((()=>()=>window.clearTimeout(w.current)),[]),s(g,v,s(I,{scope:a,contentId:T,open:L,stateAttribute:k,trigger:y,onTriggerChange:f,onTriggerEnter:r((()=>{h.isOpenDelayed?S():R()}),[h.isOpenDelayed,S,R]),onTriggerLeave:r((()=>{C?H():window.clearTimeout(w.current)}),[H,C]),onOpen:R,onClose:H,disableHoverableContent:C},l))},R="TooltipTrigger",H=a(((t,n)=>{const{__scopeTooltip:a,...p}=t,d=M(R,a),u=_(R,a),m=j(a),g=o(null),x=c(n,g,d.onTriggerChange),v=o(!1),f=o(!1),b=r((()=>v.current=!1),[]);return i((()=>()=>document.removeEventListener("pointerup",b)),[b]),s(h,e({asChild:!0},m),s(y.button,e({"aria-describedby":d.open?d.contentId:void 0,"data-state":d.stateAttribute},p,{ref:x,onPointerMove:l(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(f.current||u.isPointerInTransitRef.current||(d.onTriggerEnter(),f.current=!0))})),onPointerLeave:l(t.onPointerLeave,(()=>{d.onTriggerLeave(),f.current=!1})),onPointerDown:l(t.onPointerDown,(()=>{v.current=!0,document.addEventListener("pointerup",b,{once:!0})})),onFocus:l(t.onFocus,(()=>{v.current||d.onOpen()})),onBlur:l(t.onBlur,d.onClose),onClick:l(t.onClick,d.onClose)})))})),[S,A]=w("TooltipPortal",{forceMount:void 0}),B="TooltipContent",F=a(((t,o)=>{const n=A(B,t.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=t,l=M(B,t.__scopeTooltip);return s(v,{present:r||l.open},l.disableHoverableContent?s(q,e({side:i},a,{ref:o})):s(K,e({side:i},a,{ref:o})))})),K=a(((n,a)=>{const l=M(B,n.__scopeTooltip),p=_(B,n.__scopeTooltip),d=o(null),u=c(a,d),[m,g]=t(null),{trigger:x,onClose:h}=l,v=d.current,{onPointerInTransitChange:y}=p,f=r((()=>{g(null),y(!1)}),[y]),b=r(((e,t)=>{const o=e.currentTarget,n={x:e.clientX,y:e.clientY},r=function(e,t,o=5){const n=[];switch(t){case"top":n.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":n.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":n.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":n.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o})}return n}(n,function(e,t){const o=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(o,n,r,i)){case i:return"left";case r:return"right";case o:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,o.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const n=e[o];for(;t.length>=2;){const e=t[t.length-1],o=t[t.length-2];if(!((e.x-o.x)*(n.y-o.y)>=(e.y-o.y)*(n.x-o.x)))break;t.pop()}t.push(n)}t.pop();const o=[];for(let t=e.length-1;t>=0;t--){const n=e[t];for(;o.length>=2;){const e=o[o.length-1],t=o[o.length-2];if(!((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x)))break;o.pop()}o.push(n)}return o.pop(),1===t.length&&1===o.length&&t[0].x===o[0].x&&t[0].y===o[0].y?t:t.concat(o)}(t)}([...r,...function(e){const{top:t,right:o,bottom:n,left:r}=e;return[{x:r,y:t},{x:o,y:t},{x:o,y:n},{x:r,y:n}]}(t.getBoundingClientRect())]);g(i),y(!0)}),[y]);return i((()=>()=>f()),[f]),i((()=>{if(x&&v){const e=e=>b(e,v),t=e=>b(e,x);return x.addEventListener("pointerleave",e),v.addEventListener("pointerleave",t),()=>{x.removeEventListener("pointerleave",e),v.removeEventListener("pointerleave",t)}}}),[x,v,b,f]),i((()=>{if(m){const e=e=>{const t=e.target,o={x:e.clientX,y:e.clientY},n=(null==x?void 0:x.contains(t))||(null==v?void 0:v.contains(t)),r=!function(e,t){const{x:o,y:n}=e;let r=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const s=t[e].x,a=t[e].y,l=t[i].x,c=t[i].y;a>n!=c>n&&o<(l-s)*(n-a)/(c-a)+s&&(r=!r)}return r}(o,m);n?f():r&&(f(),h())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[x,v,m,h,f]),s(q,e({},n,{ref:u}))})),[X,Y]=w(O,{isInside:!1}),q=a(((t,o)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:c,...p}=t,u=M(B,n),m=j(n),{onClose:g}=u;return i((()=>(document.addEventListener(P,g),()=>document.removeEventListener(P,g))),[g]),i((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&g()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,g]),s(d,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:g},s(x,e({"data-state":u.stateAttribute},m,p,{ref:o,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),s(f,null,r),s(X,{scope:n,isInside:!0},s(T,{id:u.contentId,role:"tooltip"},a||r))))}));const z=L,G=k,J=H,N=F;export{N as Content,z as Provider,G as Root,k as Tooltip,F as TooltipContent,L as TooltipProvider,H as TooltipTrigger,J as Trigger,C as createTooltipScope};
1
+ import e from"../../../@babel/runtime/helpers/esm/extends.js";import{useState as t,useRef as o,useMemo as n,useCallback as r,useEffect as i,createElement as s,forwardRef as a}from"react";import{composeEventHandlers as l}from"../../primitive/dist/index.mjs.js";import{useComposedRefs as c}from"../../react-compose-refs/dist/index.mjs.js";import{createContextScope as p}from"../../react-context/dist/index.mjs.js";import{DismissableLayer as d}from"../../react-dismissable-layer/dist/index.mjs.js";import{useId as u}from"../../react-id/dist/index.mjs.js";import{createPopperScope as m,Root as g,Content as x,Anchor as h}from"../../react-popper/dist/index.mjs.js";import{Presence as v}from"../../react-presence/dist/index.mjs.js";import{Primitive as y}from"../../react-primitive/dist/index.mjs.js";import{Slottable as f}from"../node_modules/@radix-ui/react-slot/dist/index.mjs.js";import{useControllableState as b}from"../../react-use-controllable-state/dist/index.mjs.js";import{Root as T}from"../../react-visually-hidden/dist/index.mjs.js";const[w,C]=p("Tooltip",[m]),j=m(),E=700,P="tooltip.open",[_,D]=w("TooltipProvider"),L=e=>{const{__scopeTooltip:n,delayDuration:a=E,skipDelayDuration:l=300,disableHoverableContent:c=!1,children:p}=e,[d,u]=t(!0),m=o(!1),g=o(0);return i((()=>{const e=g.current;return()=>window.clearTimeout(e)}),[]),s(_,{scope:n,isOpenDelayed:d,delayDuration:a,onOpen:r((()=>{window.clearTimeout(g.current),u(!1)}),[]),onClose:r((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>u(!0)),l)}),[l]),isPointerInTransitRef:m,onPointerInTransitChange:r((e=>{m.current=e}),[]),disableHoverableContent:c},p)},O="Tooltip",[I,M]=w(O),k=e=>{const{__scopeTooltip:a,children:l,open:c,defaultOpen:p=!1,onOpenChange:d,disableHoverableContent:m,delayDuration:x}=e,h=D(O,e.__scopeTooltip),v=j(a),[y,f]=t(null),T=u(),w=o(0),C=null!=m?m:h.disableHoverableContent,E=null!=x?x:h.delayDuration,_=o(!1),[L=!1,M]=b({prop:c,defaultProp:p,onChange:e=>{e?(h.onOpen(),document.dispatchEvent(new CustomEvent(P))):h.onClose(),null==d||d(e)}}),k=n((()=>L?_.current?"delayed-open":"instant-open":"closed"),[L]),R=r((()=>{window.clearTimeout(w.current),_.current=!1,M(!0)}),[M]),H=r((()=>{window.clearTimeout(w.current),M(!1)}),[M]),S=r((()=>{window.clearTimeout(w.current),w.current=window.setTimeout((()=>{_.current=!0,M(!0)}),E)}),[E,M]);return i((()=>()=>window.clearTimeout(w.current)),[]),s(g,v,s(I,{scope:a,contentId:T,open:L,stateAttribute:k,trigger:y,onTriggerChange:f,onTriggerEnter:r((()=>{h.isOpenDelayed?S():R()}),[h.isOpenDelayed,S,R]),onTriggerLeave:r((()=>{C?H():window.clearTimeout(w.current)}),[H,C]),onOpen:R,onClose:H,disableHoverableContent:C},l))},R="TooltipTrigger",H=a(((t,n)=>{const{__scopeTooltip:a,...p}=t,d=M(R,a),u=D(R,a),m=j(a),g=o(null),x=c(n,g,d.onTriggerChange),v=o(!1),f=o(!1),b=r((()=>v.current=!1),[]);return i((()=>()=>document.removeEventListener("pointerup",b)),[b]),s(h,e({asChild:!0},m),s(y.button,e({"aria-describedby":d.open?d.contentId:void 0,"data-state":d.stateAttribute},p,{ref:x,onPointerMove:l(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(f.current||u.isPointerInTransitRef.current||(d.onTriggerEnter(),f.current=!0))})),onPointerLeave:l(t.onPointerLeave,(()=>{d.onTriggerLeave(),f.current=!1})),onPointerDown:l(t.onPointerDown,(()=>{v.current=!0,document.addEventListener("pointerup",b,{once:!0})})),onFocus:l(t.onFocus,(()=>{v.current||d.onOpen()})),onBlur:l(t.onBlur,d.onClose),onClick:l(t.onClick,d.onClose)})))})),[S,A]=w("TooltipPortal",{forceMount:void 0}),B="TooltipContent",F=a(((t,o)=>{const n=A(B,t.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=t,l=M(B,t.__scopeTooltip);return s(v,{present:r||l.open},l.disableHoverableContent?s(q,e({side:i},a,{ref:o})):s(K,e({side:i},a,{ref:o})))})),K=a(((n,a)=>{const l=M(B,n.__scopeTooltip),p=D(B,n.__scopeTooltip),d=o(null),u=c(a,d),[m,g]=t(null),{trigger:x,onClose:h}=l,v=d.current,{onPointerInTransitChange:y}=p,f=r((()=>{g(null),y(!1)}),[y]),b=r(((e,t)=>{const o=e.currentTarget,n={x:e.clientX,y:e.clientY},r=function(e,t,o=5){const n=[];switch(t){case"top":n.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":n.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":n.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":n.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o})}return n}(n,function(e,t){const o=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(o,n,r,i)){case i:return"left";case r:return"right";case o:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,o.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const n=e[o];for(;t.length>=2;){const e=t[t.length-1],o=t[t.length-2];if(!((e.x-o.x)*(n.y-o.y)>=(e.y-o.y)*(n.x-o.x)))break;t.pop()}t.push(n)}t.pop();const o=[];for(let t=e.length-1;t>=0;t--){const n=e[t];for(;o.length>=2;){const e=o[o.length-1],t=o[o.length-2];if(!((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x)))break;o.pop()}o.push(n)}return o.pop(),1===t.length&&1===o.length&&t[0].x===o[0].x&&t[0].y===o[0].y?t:t.concat(o)}(t)}([...r,...function(e){const{top:t,right:o,bottom:n,left:r}=e;return[{x:r,y:t},{x:o,y:t},{x:o,y:n},{x:r,y:n}]}(t.getBoundingClientRect())]);g(i),y(!0)}),[y]);return i((()=>()=>f()),[f]),i((()=>{if(x&&v){const e=e=>b(e,v),t=e=>b(e,x);return x.addEventListener("pointerleave",e),v.addEventListener("pointerleave",t),()=>{x.removeEventListener("pointerleave",e),v.removeEventListener("pointerleave",t)}}}),[x,v,b,f]),i((()=>{if(m){const e=e=>{const t=e.target,o={x:e.clientX,y:e.clientY},n=(null==x?void 0:x.contains(t))||(null==v?void 0:v.contains(t)),r=!function(e,t){const{x:o,y:n}=e;let r=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const s=t[e].x,a=t[e].y,l=t[i].x,c=t[i].y;a>n!=c>n&&o<(l-s)*(n-a)/(c-a)+s&&(r=!r)}return r}(o,m);n?f():r&&(f(),h())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[x,v,m,h,f]),s(q,e({},n,{ref:u}))})),[X,Y]=w(O,{isInside:!1}),q=a(((t,o)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:c,...p}=t,u=M(B,n),m=j(n),{onClose:g}=u;return i((()=>(document.addEventListener(P,g),()=>document.removeEventListener(P,g))),[g]),i((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&g()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,g]),s(d,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:g},s(x,e({"data-state":u.stateAttribute},m,p,{ref:o,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),s(f,null,r),s(X,{scope:n,isInside:!0},s(T,{id:u.contentId,role:"tooltip"},a||r))))}));const z=L,G=k,J=H,N=F;export{N as Content,z as Provider,G as Root,k as Tooltip,F as TooltipContent,L as TooltipProvider,H as TooltipTrigger,J as Trigger,C as createTooltipScope};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-tooltip/dist/index.mjs"],"sourcesContent":["import $8wepK$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useState as $8wepK$useState, useRef as $8wepK$useRef, useEffect as $8wepK$useEffect, createElement as $8wepK$createElement, useCallback as $8wepK$useCallback, useMemo as $8wepK$useMemo, forwardRef as $8wepK$forwardRef} from \"react\";\nimport {composeEventHandlers as $8wepK$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $8wepK$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $8wepK$createContextScope} from \"@radix-ui/react-context\";\nimport {DismissableLayer as $8wepK$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {useId as $8wepK$useId} from \"@radix-ui/react-id\";\nimport {createPopperScope as $8wepK$createPopperScope, Root as $8wepK$Root, Anchor as $8wepK$Anchor, Content as $8wepK$Content, Arrow as $8wepK$Arrow} from \"@radix-ui/react-popper\";\nimport {Portal as $8wepK$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $8wepK$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $8wepK$Primitive} from \"@radix-ui/react-primitive\";\nimport {Slottable as $8wepK$Slottable} from \"@radix-ui/react-slot\";\nimport {useControllableState as $8wepK$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {Root as $8wepK$Root1} from \"@radix-ui/react-visually-hidden\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst [$a093c7e1ec25a057$var$createTooltipContext, $a093c7e1ec25a057$export$1c540a2224f0d865] = $8wepK$createContextScope('Tooltip', [\n $8wepK$createPopperScope\n]);\nconst $a093c7e1ec25a057$var$usePopperScope = $8wepK$createPopperScope();\n/* -------------------------------------------------------------------------------------------------\n * TooltipProvider\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$PROVIDER_NAME = 'TooltipProvider';\nconst $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION = 700;\nconst $a093c7e1ec25a057$var$TOOLTIP_OPEN = 'tooltip.open';\nconst [$a093c7e1ec25a057$var$TooltipProviderContextProvider, $a093c7e1ec25a057$var$useTooltipProviderContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PROVIDER_NAME);\nconst $a093c7e1ec25a057$export$f78649fb9ca566b8 = (props)=>{\n const { __scopeTooltip: __scopeTooltip , delayDuration: delayDuration = $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION , skipDelayDuration: skipDelayDuration = 300 , disableHoverableContent: disableHoverableContent = false , children: children } = props;\n const [isOpenDelayed, setIsOpenDelayed] = $8wepK$useState(true);\n const isPointerInTransitRef = $8wepK$useRef(false);\n const skipDelayTimerRef = $8wepK$useRef(0);\n $8wepK$useEffect(()=>{\n const skipDelayTimer = skipDelayTimerRef.current;\n return ()=>window.clearTimeout(skipDelayTimer)\n ;\n }, []);\n return /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipProviderContextProvider, {\n scope: __scopeTooltip,\n isOpenDelayed: isOpenDelayed,\n delayDuration: delayDuration,\n onOpen: $8wepK$useCallback(()=>{\n window.clearTimeout(skipDelayTimerRef.current);\n setIsOpenDelayed(false);\n }, []),\n onClose: $8wepK$useCallback(()=>{\n window.clearTimeout(skipDelayTimerRef.current);\n skipDelayTimerRef.current = window.setTimeout(()=>setIsOpenDelayed(true)\n , skipDelayDuration);\n }, [\n skipDelayDuration\n ]),\n isPointerInTransitRef: isPointerInTransitRef,\n onPointerInTransitChange: $8wepK$useCallback((inTransit)=>{\n isPointerInTransitRef.current = inTransit;\n }, []),\n disableHoverableContent: disableHoverableContent\n }, children);\n};\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$f78649fb9ca566b8, {\n displayName: $a093c7e1ec25a057$var$PROVIDER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * Tooltip\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$TOOLTIP_NAME = 'Tooltip';\nconst [$a093c7e1ec25a057$var$TooltipContextProvider, $a093c7e1ec25a057$var$useTooltipContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME);\nconst $a093c7e1ec25a057$export$28c660c63b792dea = (props)=>{\n const { __scopeTooltip: __scopeTooltip , children: children , open: openProp , defaultOpen: defaultOpen = false , onOpenChange: onOpenChange , disableHoverableContent: disableHoverableContentProp , delayDuration: delayDurationProp } = props;\n const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TOOLTIP_NAME, props.__scopeTooltip);\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const [trigger, setTrigger] = $8wepK$useState(null);\n const contentId = $8wepK$useId();\n const openTimerRef = $8wepK$useRef(0);\n const disableHoverableContent = disableHoverableContentProp !== null && disableHoverableContentProp !== void 0 ? disableHoverableContentProp : providerContext.disableHoverableContent;\n const delayDuration = delayDurationProp !== null && delayDurationProp !== void 0 ? delayDurationProp : providerContext.delayDuration;\n const wasOpenDelayedRef = $8wepK$useRef(false);\n const [open1 = false, setOpen] = $8wepK$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: (open)=>{\n if (open) {\n providerContext.onOpen(); // as `onChange` is called within a lifecycle method we\n // avoid dispatching via `dispatchDiscreteCustomEvent`.\n document.dispatchEvent(new CustomEvent($a093c7e1ec25a057$var$TOOLTIP_OPEN));\n } else providerContext.onClose();\n onOpenChange === null || onOpenChange === void 0 || onOpenChange(open);\n }\n });\n const stateAttribute = $8wepK$useMemo(()=>{\n return open1 ? wasOpenDelayedRef.current ? 'delayed-open' : 'instant-open' : 'closed';\n }, [\n open1\n ]);\n const handleOpen = $8wepK$useCallback(()=>{\n window.clearTimeout(openTimerRef.current);\n wasOpenDelayedRef.current = false;\n setOpen(true);\n }, [\n setOpen\n ]);\n const handleClose = $8wepK$useCallback(()=>{\n window.clearTimeout(openTimerRef.current);\n setOpen(false);\n }, [\n setOpen\n ]);\n const handleDelayedOpen = $8wepK$useCallback(()=>{\n window.clearTimeout(openTimerRef.current);\n openTimerRef.current = window.setTimeout(()=>{\n wasOpenDelayedRef.current = true;\n setOpen(true);\n }, delayDuration);\n }, [\n delayDuration,\n setOpen\n ]);\n $8wepK$useEffect(()=>{\n return ()=>window.clearTimeout(openTimerRef.current)\n ;\n }, []);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$Root, popperScope, /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContextProvider, {\n scope: __scopeTooltip,\n contentId: contentId,\n open: open1,\n stateAttribute: stateAttribute,\n trigger: trigger,\n onTriggerChange: setTrigger,\n onTriggerEnter: $8wepK$useCallback(()=>{\n if (providerContext.isOpenDelayed) handleDelayedOpen();\n else handleOpen();\n }, [\n providerContext.isOpenDelayed,\n handleDelayedOpen,\n handleOpen\n ]),\n onTriggerLeave: $8wepK$useCallback(()=>{\n if (disableHoverableContent) handleClose();\n else // Clear the timer in case the pointer leaves the trigger before the tooltip is opened.\n window.clearTimeout(openTimerRef.current);\n }, [\n handleClose,\n disableHoverableContent\n ]),\n onOpen: handleOpen,\n onClose: handleClose,\n disableHoverableContent: disableHoverableContent\n }, children));\n};\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$28c660c63b792dea, {\n displayName: $a093c7e1ec25a057$var$TOOLTIP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipTrigger\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$TRIGGER_NAME = 'TooltipTrigger';\nconst $a093c7e1ec25a057$export$8c610744efcf8a1d = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const { __scopeTooltip: __scopeTooltip , ...triggerProps } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);\n const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const ref = $8wepK$useRef(null);\n const composedRefs = $8wepK$useComposedRefs(forwardedRef, ref, context.onTriggerChange);\n const isPointerDownRef = $8wepK$useRef(false);\n const hasPointerMoveOpenedRef = $8wepK$useRef(false);\n const handlePointerUp = $8wepK$useCallback(()=>isPointerDownRef.current = false\n , []);\n $8wepK$useEffect(()=>{\n return ()=>document.removeEventListener('pointerup', handlePointerUp)\n ;\n }, [\n handlePointerUp\n ]);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$Anchor, $8wepK$babelruntimehelpersesmextends({\n asChild: true\n }, popperScope), /*#__PURE__*/ $8wepK$createElement($8wepK$Primitive.button, $8wepK$babelruntimehelpersesmextends({\n // We purposefully avoid adding `type=button` here because tooltip triggers are also\n // commonly anchors and the anchor `type` attribute signifies MIME type.\n \"aria-describedby\": context.open ? context.contentId : undefined,\n \"data-state\": context.stateAttribute\n }, triggerProps, {\n ref: composedRefs,\n onPointerMove: $8wepK$composeEventHandlers(props.onPointerMove, (event)=>{\n if (event.pointerType === 'touch') return;\n if (!hasPointerMoveOpenedRef.current && !providerContext.isPointerInTransitRef.current) {\n context.onTriggerEnter();\n hasPointerMoveOpenedRef.current = true;\n }\n }),\n onPointerLeave: $8wepK$composeEventHandlers(props.onPointerLeave, ()=>{\n context.onTriggerLeave();\n hasPointerMoveOpenedRef.current = false;\n }),\n onPointerDown: $8wepK$composeEventHandlers(props.onPointerDown, ()=>{\n isPointerDownRef.current = true;\n document.addEventListener('pointerup', handlePointerUp, {\n once: true\n });\n }),\n onFocus: $8wepK$composeEventHandlers(props.onFocus, ()=>{\n if (!isPointerDownRef.current) context.onOpen();\n }),\n onBlur: $8wepK$composeEventHandlers(props.onBlur, context.onClose),\n onClick: $8wepK$composeEventHandlers(props.onClick, context.onClose)\n })));\n});\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$8c610744efcf8a1d, {\n displayName: $a093c7e1ec25a057$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipPortal\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$PORTAL_NAME = 'TooltipPortal';\nconst [$a093c7e1ec25a057$var$PortalProvider, $a093c7e1ec25a057$var$usePortalContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $a093c7e1ec25a057$export$7b36b8f925ab7497 = (props)=>{\n const { __scopeTooltip: __scopeTooltip , forceMount: forceMount , children: children , container: container } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, __scopeTooltip);\n return /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$PortalProvider, {\n scope: __scopeTooltip,\n forceMount: forceMount\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Portal, {\n asChild: true,\n container: container\n }, children)));\n};\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$7b36b8f925ab7497, {\n displayName: $a093c7e1ec25a057$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipContent\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$CONTENT_NAME = 'TooltipContent';\nconst $a093c7e1ec25a057$export$e9003e2be37ec060 = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const portalContext = $a093c7e1ec25a057$var$usePortalContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n const { forceMount: forceMount = portalContext.forceMount , side: side = 'top' , ...contentProps } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$Presence, {\n present: forceMount || context.open\n }, context.disableHoverableContent ? /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContentImpl, $8wepK$babelruntimehelpersesmextends({\n side: side\n }, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContentHoverable, $8wepK$babelruntimehelpersesmextends({\n side: side\n }, contentProps, {\n ref: forwardedRef\n })));\n});\nconst $a093c7e1ec25a057$var$TooltipContentHoverable = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n const ref = $8wepK$useRef(null);\n const composedRefs = $8wepK$useComposedRefs(forwardedRef, ref);\n const [pointerGraceArea, setPointerGraceArea] = $8wepK$useState(null);\n const { trigger: trigger , onClose: onClose } = context;\n const content = ref.current;\n const { onPointerInTransitChange: onPointerInTransitChange } = providerContext;\n const handleRemoveGraceArea = $8wepK$useCallback(()=>{\n setPointerGraceArea(null);\n onPointerInTransitChange(false);\n }, [\n onPointerInTransitChange\n ]);\n const handleCreateGraceArea = $8wepK$useCallback((event, hoverTarget)=>{\n const currentTarget = event.currentTarget;\n const exitPoint = {\n x: event.clientX,\n y: event.clientY\n };\n const exitSide = $a093c7e1ec25a057$var$getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());\n const paddedExitPoints = $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide);\n const hoverTargetPoints = $a093c7e1ec25a057$var$getPointsFromRect(hoverTarget.getBoundingClientRect());\n const graceArea = $a093c7e1ec25a057$var$getHull([\n ...paddedExitPoints,\n ...hoverTargetPoints\n ]);\n setPointerGraceArea(graceArea);\n onPointerInTransitChange(true);\n }, [\n onPointerInTransitChange\n ]);\n $8wepK$useEffect(()=>{\n return ()=>handleRemoveGraceArea()\n ;\n }, [\n handleRemoveGraceArea\n ]);\n $8wepK$useEffect(()=>{\n if (trigger && content) {\n const handleTriggerLeave = (event)=>handleCreateGraceArea(event, content)\n ;\n const handleContentLeave = (event)=>handleCreateGraceArea(event, trigger)\n ;\n trigger.addEventListener('pointerleave', handleTriggerLeave);\n content.addEventListener('pointerleave', handleContentLeave);\n return ()=>{\n trigger.removeEventListener('pointerleave', handleTriggerLeave);\n content.removeEventListener('pointerleave', handleContentLeave);\n };\n }\n }, [\n trigger,\n content,\n handleCreateGraceArea,\n handleRemoveGraceArea\n ]);\n $8wepK$useEffect(()=>{\n if (pointerGraceArea) {\n const handleTrackPointerGrace = (event)=>{\n const target = event.target;\n const pointerPosition = {\n x: event.clientX,\n y: event.clientY\n };\n const hasEnteredTarget = (trigger === null || trigger === void 0 ? void 0 : trigger.contains(target)) || (content === null || content === void 0 ? void 0 : content.contains(target));\n const isPointerOutsideGraceArea = !$a093c7e1ec25a057$var$isPointInPolygon(pointerPosition, pointerGraceArea);\n if (hasEnteredTarget) handleRemoveGraceArea();\n else if (isPointerOutsideGraceArea) {\n handleRemoveGraceArea();\n onClose();\n }\n };\n document.addEventListener('pointermove', handleTrackPointerGrace);\n return ()=>document.removeEventListener('pointermove', handleTrackPointerGrace)\n ;\n }\n }, [\n trigger,\n content,\n pointerGraceArea,\n onClose,\n handleRemoveGraceArea\n ]);\n return /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContentImpl, $8wepK$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs\n }));\n});\nconst [$a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, $a093c7e1ec25a057$var$useVisuallyHiddenContentContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME, {\n isInside: false\n});\nconst $a093c7e1ec25a057$var$TooltipContentImpl = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const { __scopeTooltip: __scopeTooltip , children: children , 'aria-label': ariaLabel , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , ...contentProps } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, __scopeTooltip);\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const { onClose: onClose } = context; // Close this tooltip if another one opens\n $8wepK$useEffect(()=>{\n document.addEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose);\n return ()=>document.removeEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose)\n ;\n }, [\n onClose\n ]); // Close the tooltip if the trigger is scrolled\n $8wepK$useEffect(()=>{\n if (context.trigger) {\n const handleScroll = (event)=>{\n const target = event.target;\n if (target !== null && target !== void 0 && target.contains(context.trigger)) onClose();\n };\n window.addEventListener('scroll', handleScroll, {\n capture: true\n });\n return ()=>window.removeEventListener('scroll', handleScroll, {\n capture: true\n })\n ;\n }\n }, [\n context.trigger,\n onClose\n ]);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$DismissableLayer, {\n asChild: true,\n disableOutsidePointerEvents: false,\n onEscapeKeyDown: onEscapeKeyDown,\n onPointerDownOutside: onPointerDownOutside,\n onFocusOutside: (event)=>event.preventDefault()\n ,\n onDismiss: onClose\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Content, $8wepK$babelruntimehelpersesmextends({\n \"data-state\": context.stateAttribute\n }, popperScope, contentProps, {\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n '--radix-tooltip-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-tooltip-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-tooltip-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-tooltip-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-tooltip-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }), /*#__PURE__*/ $8wepK$createElement($8wepK$Slottable, null, children), /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, {\n scope: __scopeTooltip,\n isInside: true\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Root1, {\n id: context.contentId,\n role: \"tooltip\"\n }, ariaLabel || children))));\n});\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$e9003e2be37ec060, {\n displayName: $a093c7e1ec25a057$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipArrow\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$ARROW_NAME = 'TooltipArrow';\nconst $a093c7e1ec25a057$export$c27ee0ad710f7559 = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const { __scopeTooltip: __scopeTooltip , ...arrowProps } = props;\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const visuallyHiddenContentContext = $a093c7e1ec25a057$var$useVisuallyHiddenContentContext($a093c7e1ec25a057$var$ARROW_NAME, __scopeTooltip); // if the arrow is inside the `VisuallyHidden`, we don't want to render it all to\n // prevent issues in positioning the arrow due to the duplicate\n return visuallyHiddenContentContext.isInside ? null : /*#__PURE__*/ $8wepK$createElement($8wepK$Arrow, $8wepK$babelruntimehelpersesmextends({}, popperScope, arrowProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$c27ee0ad710f7559, {\n displayName: $a093c7e1ec25a057$var$ARROW_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $a093c7e1ec25a057$var$getExitSideFromRect(point, rect) {\n const top = Math.abs(rect.top - point.y);\n const bottom = Math.abs(rect.bottom - point.y);\n const right = Math.abs(rect.right - point.x);\n const left = Math.abs(rect.left - point.x);\n switch(Math.min(top, bottom, right, left)){\n case left:\n return 'left';\n case right:\n return 'right';\n case top:\n return 'top';\n case bottom:\n return 'bottom';\n default:\n throw new Error('unreachable');\n }\n}\nfunction $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide, padding = 5) {\n const paddedExitPoints = [];\n switch(exitSide){\n case 'top':\n paddedExitPoints.push({\n x: exitPoint.x - padding,\n y: exitPoint.y + padding\n }, {\n x: exitPoint.x + padding,\n y: exitPoint.y + padding\n });\n break;\n case 'bottom':\n paddedExitPoints.push({\n x: exitPoint.x - padding,\n y: exitPoint.y - padding\n }, {\n x: exitPoint.x + padding,\n y: exitPoint.y - padding\n });\n break;\n case 'left':\n paddedExitPoints.push({\n x: exitPoint.x + padding,\n y: exitPoint.y - padding\n }, {\n x: exitPoint.x + padding,\n y: exitPoint.y + padding\n });\n break;\n case 'right':\n paddedExitPoints.push({\n x: exitPoint.x - padding,\n y: exitPoint.y - padding\n }, {\n x: exitPoint.x - padding,\n y: exitPoint.y + padding\n });\n break;\n }\n return paddedExitPoints;\n}\nfunction $a093c7e1ec25a057$var$getPointsFromRect(rect) {\n const { top: top , right: right , bottom: bottom , left: left } = rect;\n return [\n {\n x: left,\n y: top\n },\n {\n x: right,\n y: top\n },\n {\n x: right,\n y: bottom\n },\n {\n x: left,\n y: bottom\n }\n ];\n} // Determine if a point is inside of a polygon.\n// Based on https://github.com/substack/point-in-polygon\nfunction $a093c7e1ec25a057$var$isPointInPolygon(point, polygon) {\n const { x: x , y: y } = point;\n let inside = false;\n for(let i = 0, j = polygon.length - 1; i < polygon.length; j = i++){\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y; // prettier-ignore\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n} // Returns a new array of points representing the convex hull of the given set of points.\n// https://www.nayuki.io/page/convex-hull-algorithm\nfunction $a093c7e1ec25a057$var$getHull(points) {\n const newPoints = points.slice();\n newPoints.sort((a, b)=>{\n if (a.x < b.x) return -1;\n else if (a.x > b.x) return 1;\n else if (a.y < b.y) return -1;\n else if (a.y > b.y) return 1;\n else return 0;\n });\n return $a093c7e1ec25a057$var$getHullPresorted(newPoints);\n} // Returns the convex hull, assuming that each points[i] <= points[i + 1]. Runs in O(n) time.\nfunction $a093c7e1ec25a057$var$getHullPresorted(points) {\n if (points.length <= 1) return points.slice();\n const upperHull = [];\n for(let i = 0; i < points.length; i++){\n const p = points[i];\n while(upperHull.length >= 2){\n const q = upperHull[upperHull.length - 1];\n const r = upperHull[upperHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) upperHull.pop();\n else break;\n }\n upperHull.push(p);\n }\n upperHull.pop();\n const lowerHull = [];\n for(let i1 = points.length - 1; i1 >= 0; i1--){\n const p = points[i1];\n while(lowerHull.length >= 2){\n const q = lowerHull[lowerHull.length - 1];\n const r = lowerHull[lowerHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) lowerHull.pop();\n else break;\n }\n lowerHull.push(p);\n }\n lowerHull.pop();\n if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) return upperHull;\n else return upperHull.concat(lowerHull);\n}\nconst $a093c7e1ec25a057$export$2881499e37b75b9a = $a093c7e1ec25a057$export$f78649fb9ca566b8;\nconst $a093c7e1ec25a057$export$be92b6f5f03c0fe9 = $a093c7e1ec25a057$export$28c660c63b792dea;\nconst $a093c7e1ec25a057$export$41fb9f06171c75f4 = $a093c7e1ec25a057$export$8c610744efcf8a1d;\nconst $a093c7e1ec25a057$export$602eac185826482c = $a093c7e1ec25a057$export$7b36b8f925ab7497;\nconst $a093c7e1ec25a057$export$7c6e2c02157bb7d2 = $a093c7e1ec25a057$export$e9003e2be37ec060;\nconst $a093c7e1ec25a057$export$21b07c8f274aebd5 = $a093c7e1ec25a057$export$c27ee0ad710f7559;\n\n\n\n\nexport {$a093c7e1ec25a057$export$1c540a2224f0d865 as createTooltipScope, $a093c7e1ec25a057$export$f78649fb9ca566b8 as TooltipProvider, $a093c7e1ec25a057$export$28c660c63b792dea as Tooltip, $a093c7e1ec25a057$export$8c610744efcf8a1d as TooltipTrigger, $a093c7e1ec25a057$export$7b36b8f925ab7497 as TooltipPortal, $a093c7e1ec25a057$export$e9003e2be37ec060 as TooltipContent, $a093c7e1ec25a057$export$c27ee0ad710f7559 as TooltipArrow, $a093c7e1ec25a057$export$2881499e37b75b9a as Provider, $a093c7e1ec25a057$export$be92b6f5f03c0fe9 as Root, $a093c7e1ec25a057$export$41fb9f06171c75f4 as Trigger, $a093c7e1ec25a057$export$602eac185826482c as Portal, $a093c7e1ec25a057$export$7c6e2c02157bb7d2 as Content, $a093c7e1ec25a057$export$21b07c8f274aebd5 as Arrow};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$a093c7e1ec25a057$var$createTooltipContext","$a093c7e1ec25a057$export$1c540a2224f0d865","$8wepK$createContextScope","$8wepK$createPopperScope","$a093c7e1ec25a057$var$usePopperScope","$a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION","$a093c7e1ec25a057$var$TOOLTIP_OPEN","$a093c7e1ec25a057$var$TooltipProviderContextProvider","$a093c7e1ec25a057$var$useTooltipProviderContext","$a093c7e1ec25a057$export$f78649fb9ca566b8","props","__scopeTooltip","delayDuration","skipDelayDuration","disableHoverableContent","children","isOpenDelayed","setIsOpenDelayed","$8wepK$useState","isPointerInTransitRef","$8wepK$useRef","skipDelayTimerRef","$8wepK$useEffect","skipDelayTimer","current","window","clearTimeout","$8wepK$createElement","scope","onOpen","$8wepK$useCallback","onClose","setTimeout","onPointerInTransitChange","inTransit","$a093c7e1ec25a057$var$TOOLTIP_NAME","$a093c7e1ec25a057$var$TooltipContextProvider","$a093c7e1ec25a057$var$useTooltipContext","$a093c7e1ec25a057$export$28c660c63b792dea","open","openProp","defaultOpen","onOpenChange","disableHoverableContentProp","delayDurationProp","providerContext","popperScope","trigger","setTrigger","contentId","$8wepK$useId","openTimerRef","wasOpenDelayedRef","open1","setOpen","$8wepK$useControllableState","prop","defaultProp","onChange","document","dispatchEvent","CustomEvent","stateAttribute","$8wepK$useMemo","handleOpen","handleClose","handleDelayedOpen","$8wepK$Root","onTriggerChange","onTriggerEnter","onTriggerLeave","$a093c7e1ec25a057$var$TRIGGER_NAME","$a093c7e1ec25a057$export$8c610744efcf8a1d","$8wepK$forwardRef","forwardedRef","triggerProps","context","ref","composedRefs","$8wepK$useComposedRefs","isPointerDownRef","hasPointerMoveOpenedRef","handlePointerUp","removeEventListener","$8wepK$Anchor","$8wepK$babelruntimehelpersesmextends","asChild","$8wepK$Primitive","button","undefined","onPointerMove","$8wepK$composeEventHandlers","event","pointerType","onPointerLeave","onPointerDown","addEventListener","once","onFocus","onBlur","onClick","$a093c7e1ec25a057$var$PortalProvider","$a093c7e1ec25a057$var$usePortalContext","forceMount","$a093c7e1ec25a057$var$CONTENT_NAME","$a093c7e1ec25a057$export$e9003e2be37ec060","portalContext","side","contentProps","$8wepK$Presence","present","$a093c7e1ec25a057$var$TooltipContentImpl","$a093c7e1ec25a057$var$TooltipContentHoverable","pointerGraceArea","setPointerGraceArea","content","handleRemoveGraceArea","handleCreateGraceArea","hoverTarget","currentTarget","exitPoint","x","clientX","y","clientY","paddedExitPoints","exitSide","padding","push","$a093c7e1ec25a057$var$getPaddedExitPoints","point","rect","top","Math","abs","bottom","right","left","min","Error","$a093c7e1ec25a057$var$getExitSideFromRect","getBoundingClientRect","graceArea","points","newPoints","slice","sort","a","b","length","upperHull","i","p","q","r","pop","lowerHull","i1","concat","$a093c7e1ec25a057$var$getHullPresorted","$a093c7e1ec25a057$var$getHull","$a093c7e1ec25a057$var$getPointsFromRect","handleTriggerLeave","handleContentLeave","handleTrackPointerGrace","target","pointerPosition","hasEnteredTarget","contains","isPointerOutsideGraceArea","polygon","inside","j","xi","yi","xj","yj","$a093c7e1ec25a057$var$isPointInPolygon","$a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider","$a093c7e1ec25a057$var$useVisuallyHiddenContentContext","isInside","ariaLabel","onEscapeKeyDown","onPointerDownOutside","handleScroll","capture","$8wepK$DismissableLayer","disableOutsidePointerEvents","onFocusOutside","preventDefault","onDismiss","$8wepK$Content","style","$8wepK$Slottable","$8wepK$Root1","id","role","$a093c7e1ec25a057$export$2881499e37b75b9a","$a093c7e1ec25a057$export$be92b6f5f03c0fe9","$a093c7e1ec25a057$export$41fb9f06171c75f4","$a093c7e1ec25a057$export$7c6e2c02157bb7d2"],"mappings":"0/BA8BK,MAAEA,EAA4CC,GAA6CC,EAA0B,UAAW,CACjIC,IAEEC,EAAuCD,IAIvCE,EAA+C,IAC/CC,EAAqC,gBACpCC,EAAsDC,GAAmDR,EAHiC,mBAI3IS,EAA6CC,IAC/C,MAAQC,eAAgBA,EAAiBC,cAAeA,EAAgBP,EAA+CQ,kBAAmBA,EAAoB,I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GAAIvH,EAAQ3B,UACZmJ,KAAM,WACPf,GAAatK,KAAY,IA4J3B,MAACsL,EAA4C5L,EAC5C6L,EAA4ChK,EAC5CiK,EAA4C/H,EAE5CgI,EAA4C/F"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-tooltip/dist/index.mjs"],"sourcesContent":["import $8wepK$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useState as $8wepK$useState, useRef as $8wepK$useRef, useEffect as $8wepK$useEffect, createElement as $8wepK$createElement, useCallback as $8wepK$useCallback, useMemo as $8wepK$useMemo, forwardRef as $8wepK$forwardRef} from \"react\";\nimport {composeEventHandlers as $8wepK$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $8wepK$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $8wepK$createContextScope} from \"@radix-ui/react-context\";\nimport {DismissableLayer as $8wepK$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {useId as $8wepK$useId} from \"@radix-ui/react-id\";\nimport {createPopperScope as $8wepK$createPopperScope, Root as $8wepK$Root, Anchor as $8wepK$Anchor, Content as $8wepK$Content, Arrow as $8wepK$Arrow} from \"@radix-ui/react-popper\";\nimport {Portal as $8wepK$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $8wepK$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $8wepK$Primitive} from \"@radix-ui/react-primitive\";\nimport {Slottable as $8wepK$Slottable} from \"@radix-ui/react-slot\";\nimport {useControllableState as $8wepK$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {Root as $8wepK$Root1} from \"@radix-ui/react-visually-hidden\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst [$a093c7e1ec25a057$var$createTooltipContext, $a093c7e1ec25a057$export$1c540a2224f0d865] = $8wepK$createContextScope('Tooltip', [\n $8wepK$createPopperScope\n]);\nconst $a093c7e1ec25a057$var$usePopperScope = $8wepK$createPopperScope();\n/* -------------------------------------------------------------------------------------------------\n * TooltipProvider\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$PROVIDER_NAME = 'TooltipProvider';\nconst $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION = 700;\nconst $a093c7e1ec25a057$var$TOOLTIP_OPEN = 'tooltip.open';\nconst [$a093c7e1ec25a057$var$TooltipProviderContextProvider, $a093c7e1ec25a057$var$useTooltipProviderContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PROVIDER_NAME);\nconst $a093c7e1ec25a057$export$f78649fb9ca566b8 = (props)=>{\n const { __scopeTooltip: __scopeTooltip , delayDuration: delayDuration = $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION , skipDelayDuration: skipDelayDuration = 300 , disableHoverableContent: disableHoverableContent = false , children: children } = props;\n const [isOpenDelayed, setIsOpenDelayed] = $8wepK$useState(true);\n const isPointerInTransitRef = $8wepK$useRef(false);\n const skipDelayTimerRef = $8wepK$useRef(0);\n $8wepK$useEffect(()=>{\n const skipDelayTimer = skipDelayTimerRef.current;\n return ()=>window.clearTimeout(skipDelayTimer)\n ;\n }, []);\n return /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipProviderContextProvider, {\n scope: __scopeTooltip,\n isOpenDelayed: isOpenDelayed,\n delayDuration: delayDuration,\n onOpen: $8wepK$useCallback(()=>{\n window.clearTimeout(skipDelayTimerRef.current);\n setIsOpenDelayed(false);\n }, []),\n onClose: $8wepK$useCallback(()=>{\n window.clearTimeout(skipDelayTimerRef.current);\n skipDelayTimerRef.current = window.setTimeout(()=>setIsOpenDelayed(true)\n , skipDelayDuration);\n }, [\n skipDelayDuration\n ]),\n isPointerInTransitRef: isPointerInTransitRef,\n onPointerInTransitChange: $8wepK$useCallback((inTransit)=>{\n isPointerInTransitRef.current = inTransit;\n }, []),\n disableHoverableContent: disableHoverableContent\n }, children);\n};\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$f78649fb9ca566b8, {\n displayName: $a093c7e1ec25a057$var$PROVIDER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * Tooltip\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$TOOLTIP_NAME = 'Tooltip';\nconst [$a093c7e1ec25a057$var$TooltipContextProvider, $a093c7e1ec25a057$var$useTooltipContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME);\nconst $a093c7e1ec25a057$export$28c660c63b792dea = (props)=>{\n const { __scopeTooltip: __scopeTooltip , children: children , open: openProp , defaultOpen: defaultOpen = false , onOpenChange: onOpenChange , disableHoverableContent: disableHoverableContentProp , delayDuration: delayDurationProp } = props;\n const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TOOLTIP_NAME, props.__scopeTooltip);\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const [trigger, setTrigger] = $8wepK$useState(null);\n const contentId = $8wepK$useId();\n const openTimerRef = $8wepK$useRef(0);\n const disableHoverableContent = disableHoverableContentProp !== null && disableHoverableContentProp !== void 0 ? disableHoverableContentProp : providerContext.disableHoverableContent;\n const delayDuration = delayDurationProp !== null && delayDurationProp !== void 0 ? delayDurationProp : providerContext.delayDuration;\n const wasOpenDelayedRef = $8wepK$useRef(false);\n const [open1 = false, setOpen] = $8wepK$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: (open)=>{\n if (open) {\n providerContext.onOpen(); // as `onChange` is called within a lifecycle method we\n // avoid dispatching via `dispatchDiscreteCustomEvent`.\n document.dispatchEvent(new CustomEvent($a093c7e1ec25a057$var$TOOLTIP_OPEN));\n } else providerContext.onClose();\n onOpenChange === null || onOpenChange === void 0 || onOpenChange(open);\n }\n });\n const stateAttribute = $8wepK$useMemo(()=>{\n return open1 ? wasOpenDelayedRef.current ? 'delayed-open' : 'instant-open' : 'closed';\n }, [\n open1\n ]);\n const handleOpen = $8wepK$useCallback(()=>{\n window.clearTimeout(openTimerRef.current);\n wasOpenDelayedRef.current = false;\n setOpen(true);\n }, [\n setOpen\n ]);\n const handleClose = $8wepK$useCallback(()=>{\n window.clearTimeout(openTimerRef.current);\n setOpen(false);\n }, [\n setOpen\n ]);\n const handleDelayedOpen = $8wepK$useCallback(()=>{\n window.clearTimeout(openTimerRef.current);\n openTimerRef.current = window.setTimeout(()=>{\n wasOpenDelayedRef.current = true;\n setOpen(true);\n }, delayDuration);\n }, [\n delayDuration,\n setOpen\n ]);\n $8wepK$useEffect(()=>{\n return ()=>window.clearTimeout(openTimerRef.current)\n ;\n }, []);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$Root, popperScope, /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContextProvider, {\n scope: __scopeTooltip,\n contentId: contentId,\n open: open1,\n stateAttribute: stateAttribute,\n trigger: trigger,\n onTriggerChange: setTrigger,\n onTriggerEnter: $8wepK$useCallback(()=>{\n if (providerContext.isOpenDelayed) handleDelayedOpen();\n else handleOpen();\n }, [\n providerContext.isOpenDelayed,\n handleDelayedOpen,\n handleOpen\n ]),\n onTriggerLeave: $8wepK$useCallback(()=>{\n if (disableHoverableContent) handleClose();\n else // Clear the timer in case the pointer leaves the trigger before the tooltip is opened.\n window.clearTimeout(openTimerRef.current);\n }, [\n handleClose,\n disableHoverableContent\n ]),\n onOpen: handleOpen,\n onClose: handleClose,\n disableHoverableContent: disableHoverableContent\n }, children));\n};\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$28c660c63b792dea, {\n displayName: $a093c7e1ec25a057$var$TOOLTIP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipTrigger\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$TRIGGER_NAME = 'TooltipTrigger';\nconst $a093c7e1ec25a057$export$8c610744efcf8a1d = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const { __scopeTooltip: __scopeTooltip , ...triggerProps } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);\n const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const ref = $8wepK$useRef(null);\n const composedRefs = $8wepK$useComposedRefs(forwardedRef, ref, context.onTriggerChange);\n const isPointerDownRef = $8wepK$useRef(false);\n const hasPointerMoveOpenedRef = $8wepK$useRef(false);\n const handlePointerUp = $8wepK$useCallback(()=>isPointerDownRef.current = false\n , []);\n $8wepK$useEffect(()=>{\n return ()=>document.removeEventListener('pointerup', handlePointerUp)\n ;\n }, [\n handlePointerUp\n ]);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$Anchor, $8wepK$babelruntimehelpersesmextends({\n asChild: true\n }, popperScope), /*#__PURE__*/ $8wepK$createElement($8wepK$Primitive.button, $8wepK$babelruntimehelpersesmextends({\n // We purposefully avoid adding `type=button` here because tooltip triggers are also\n // commonly anchors and the anchor `type` attribute signifies MIME type.\n \"aria-describedby\": context.open ? context.contentId : undefined,\n \"data-state\": context.stateAttribute\n }, triggerProps, {\n ref: composedRefs,\n onPointerMove: $8wepK$composeEventHandlers(props.onPointerMove, (event)=>{\n if (event.pointerType === 'touch') return;\n if (!hasPointerMoveOpenedRef.current && !providerContext.isPointerInTransitRef.current) {\n context.onTriggerEnter();\n hasPointerMoveOpenedRef.current = true;\n }\n }),\n onPointerLeave: $8wepK$composeEventHandlers(props.onPointerLeave, ()=>{\n context.onTriggerLeave();\n hasPointerMoveOpenedRef.current = false;\n }),\n onPointerDown: $8wepK$composeEventHandlers(props.onPointerDown, ()=>{\n isPointerDownRef.current = true;\n document.addEventListener('pointerup', handlePointerUp, {\n once: true\n });\n }),\n onFocus: $8wepK$composeEventHandlers(props.onFocus, ()=>{\n if (!isPointerDownRef.current) context.onOpen();\n }),\n onBlur: $8wepK$composeEventHandlers(props.onBlur, context.onClose),\n onClick: $8wepK$composeEventHandlers(props.onClick, context.onClose)\n })));\n});\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$8c610744efcf8a1d, {\n displayName: $a093c7e1ec25a057$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipPortal\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$PORTAL_NAME = 'TooltipPortal';\nconst [$a093c7e1ec25a057$var$PortalProvider, $a093c7e1ec25a057$var$usePortalContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $a093c7e1ec25a057$export$7b36b8f925ab7497 = (props)=>{\n const { __scopeTooltip: __scopeTooltip , forceMount: forceMount , children: children , container: container } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, __scopeTooltip);\n return /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$PortalProvider, {\n scope: __scopeTooltip,\n forceMount: forceMount\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Portal, {\n asChild: true,\n container: container\n }, children)));\n};\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$7b36b8f925ab7497, {\n displayName: $a093c7e1ec25a057$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipContent\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$CONTENT_NAME = 'TooltipContent';\nconst $a093c7e1ec25a057$export$e9003e2be37ec060 = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const portalContext = $a093c7e1ec25a057$var$usePortalContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n const { forceMount: forceMount = portalContext.forceMount , side: side = 'top' , ...contentProps } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$Presence, {\n present: forceMount || context.open\n }, context.disableHoverableContent ? /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContentImpl, $8wepK$babelruntimehelpersesmextends({\n side: side\n }, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContentHoverable, $8wepK$babelruntimehelpersesmextends({\n side: side\n }, contentProps, {\n ref: forwardedRef\n })));\n});\nconst $a093c7e1ec25a057$var$TooltipContentHoverable = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n const ref = $8wepK$useRef(null);\n const composedRefs = $8wepK$useComposedRefs(forwardedRef, ref);\n const [pointerGraceArea, setPointerGraceArea] = $8wepK$useState(null);\n const { trigger: trigger , onClose: onClose } = context;\n const content = ref.current;\n const { onPointerInTransitChange: onPointerInTransitChange } = providerContext;\n const handleRemoveGraceArea = $8wepK$useCallback(()=>{\n setPointerGraceArea(null);\n onPointerInTransitChange(false);\n }, [\n onPointerInTransitChange\n ]);\n const handleCreateGraceArea = $8wepK$useCallback((event, hoverTarget)=>{\n const currentTarget = event.currentTarget;\n const exitPoint = {\n x: event.clientX,\n y: event.clientY\n };\n const exitSide = $a093c7e1ec25a057$var$getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());\n const paddedExitPoints = $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide);\n const hoverTargetPoints = $a093c7e1ec25a057$var$getPointsFromRect(hoverTarget.getBoundingClientRect());\n const graceArea = $a093c7e1ec25a057$var$getHull([\n ...paddedExitPoints,\n ...hoverTargetPoints\n ]);\n setPointerGraceArea(graceArea);\n onPointerInTransitChange(true);\n }, [\n onPointerInTransitChange\n ]);\n $8wepK$useEffect(()=>{\n return ()=>handleRemoveGraceArea()\n ;\n }, [\n handleRemoveGraceArea\n ]);\n $8wepK$useEffect(()=>{\n if (trigger && content) {\n const handleTriggerLeave = (event)=>handleCreateGraceArea(event, content)\n ;\n const handleContentLeave = (event)=>handleCreateGraceArea(event, trigger)\n ;\n trigger.addEventListener('pointerleave', handleTriggerLeave);\n content.addEventListener('pointerleave', handleContentLeave);\n return ()=>{\n trigger.removeEventListener('pointerleave', handleTriggerLeave);\n content.removeEventListener('pointerleave', handleContentLeave);\n };\n }\n }, [\n trigger,\n content,\n handleCreateGraceArea,\n handleRemoveGraceArea\n ]);\n $8wepK$useEffect(()=>{\n if (pointerGraceArea) {\n const handleTrackPointerGrace = (event)=>{\n const target = event.target;\n const pointerPosition = {\n x: event.clientX,\n y: event.clientY\n };\n const hasEnteredTarget = (trigger === null || trigger === void 0 ? void 0 : trigger.contains(target)) || (content === null || content === void 0 ? void 0 : content.contains(target));\n const isPointerOutsideGraceArea = !$a093c7e1ec25a057$var$isPointInPolygon(pointerPosition, pointerGraceArea);\n if (hasEnteredTarget) handleRemoveGraceArea();\n else if (isPointerOutsideGraceArea) {\n handleRemoveGraceArea();\n onClose();\n }\n };\n document.addEventListener('pointermove', handleTrackPointerGrace);\n return ()=>document.removeEventListener('pointermove', handleTrackPointerGrace)\n ;\n }\n }, [\n trigger,\n content,\n pointerGraceArea,\n onClose,\n handleRemoveGraceArea\n ]);\n return /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContentImpl, $8wepK$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs\n }));\n});\nconst [$a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, $a093c7e1ec25a057$var$useVisuallyHiddenContentContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME, {\n isInside: false\n});\nconst $a093c7e1ec25a057$var$TooltipContentImpl = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const { __scopeTooltip: __scopeTooltip , children: children , 'aria-label': ariaLabel , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , ...contentProps } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, __scopeTooltip);\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const { onClose: onClose } = context; // Close this tooltip if another one opens\n $8wepK$useEffect(()=>{\n document.addEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose);\n return ()=>document.removeEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose)\n ;\n }, [\n onClose\n ]); // Close the tooltip if the trigger is scrolled\n $8wepK$useEffect(()=>{\n if (context.trigger) {\n const handleScroll = (event)=>{\n const target = event.target;\n if (target !== null && target !== void 0 && target.contains(context.trigger)) onClose();\n };\n window.addEventListener('scroll', handleScroll, {\n capture: true\n });\n return ()=>window.removeEventListener('scroll', handleScroll, {\n capture: true\n })\n ;\n }\n }, [\n context.trigger,\n onClose\n ]);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$DismissableLayer, {\n asChild: true,\n disableOutsidePointerEvents: false,\n onEscapeKeyDown: onEscapeKeyDown,\n onPointerDownOutside: onPointerDownOutside,\n onFocusOutside: (event)=>event.preventDefault()\n ,\n onDismiss: onClose\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Content, $8wepK$babelruntimehelpersesmextends({\n \"data-state\": context.stateAttribute\n }, popperScope, contentProps, {\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n '--radix-tooltip-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-tooltip-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-tooltip-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-tooltip-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-tooltip-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }), /*#__PURE__*/ $8wepK$createElement($8wepK$Slottable, null, children), /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, {\n scope: __scopeTooltip,\n isInside: true\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Root1, {\n id: context.contentId,\n role: \"tooltip\"\n }, ariaLabel || children))));\n});\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$e9003e2be37ec060, {\n displayName: $a093c7e1ec25a057$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipArrow\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$ARROW_NAME = 'TooltipArrow';\nconst $a093c7e1ec25a057$export$c27ee0ad710f7559 = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const { __scopeTooltip: __scopeTooltip , ...arrowProps } = props;\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const visuallyHiddenContentContext = $a093c7e1ec25a057$var$useVisuallyHiddenContentContext($a093c7e1ec25a057$var$ARROW_NAME, __scopeTooltip); // if the arrow is inside the `VisuallyHidden`, we don't want to render it all to\n // prevent issues in positioning the arrow due to the duplicate\n return visuallyHiddenContentContext.isInside ? null : /*#__PURE__*/ $8wepK$createElement($8wepK$Arrow, $8wepK$babelruntimehelpersesmextends({}, popperScope, arrowProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$c27ee0ad710f7559, {\n displayName: $a093c7e1ec25a057$var$ARROW_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $a093c7e1ec25a057$var$getExitSideFromRect(point, rect) {\n const top = Math.abs(rect.top - point.y);\n const bottom = Math.abs(rect.bottom - point.y);\n const right = Math.abs(rect.right - point.x);\n const left = Math.abs(rect.left - point.x);\n switch(Math.min(top, bottom, right, left)){\n case left:\n return 'left';\n case right:\n return 'right';\n case top:\n return 'top';\n case bottom:\n return 'bottom';\n default:\n throw new Error('unreachable');\n }\n}\nfunction $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide, padding = 5) {\n const paddedExitPoints = [];\n switch(exitSide){\n case 'top':\n paddedExitPoints.push({\n x: exitPoint.x - padding,\n y: exitPoint.y + padding\n }, {\n x: exitPoint.x + padding,\n y: exitPoint.y + padding\n });\n break;\n case 'bottom':\n paddedExitPoints.push({\n x: exitPoint.x - padding,\n y: exitPoint.y - padding\n }, {\n x: exitPoint.x + padding,\n y: exitPoint.y - padding\n });\n break;\n case 'left':\n paddedExitPoints.push({\n x: exitPoint.x + padding,\n y: exitPoint.y - padding\n }, {\n x: exitPoint.x + padding,\n y: exitPoint.y + padding\n });\n break;\n case 'right':\n paddedExitPoints.push({\n x: exitPoint.x - padding,\n y: exitPoint.y - padding\n }, {\n x: exitPoint.x - padding,\n y: exitPoint.y + padding\n });\n break;\n }\n return paddedExitPoints;\n}\nfunction $a093c7e1ec25a057$var$getPointsFromRect(rect) {\n const { top: top , right: right , bottom: bottom , left: left } = rect;\n return [\n {\n x: left,\n y: top\n },\n {\n x: right,\n y: top\n },\n {\n x: right,\n y: bottom\n },\n {\n x: left,\n y: bottom\n }\n ];\n} // Determine if a point is inside of a polygon.\n// Based on https://github.com/substack/point-in-polygon\nfunction $a093c7e1ec25a057$var$isPointInPolygon(point, polygon) {\n const { x: x , y: y } = point;\n let inside = false;\n for(let i = 0, j = polygon.length - 1; i < polygon.length; j = i++){\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y; // prettier-ignore\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n} // Returns a new array of points representing the convex hull of the given set of points.\n// https://www.nayuki.io/page/convex-hull-algorithm\nfunction $a093c7e1ec25a057$var$getHull(points) {\n const newPoints = points.slice();\n newPoints.sort((a, b)=>{\n if (a.x < b.x) return -1;\n else if (a.x > b.x) return 1;\n else if (a.y < b.y) return -1;\n else if (a.y > b.y) return 1;\n else return 0;\n });\n return $a093c7e1ec25a057$var$getHullPresorted(newPoints);\n} // Returns the convex hull, assuming that each points[i] <= points[i + 1]. Runs in O(n) time.\nfunction $a093c7e1ec25a057$var$getHullPresorted(points) {\n if (points.length <= 1) return points.slice();\n const upperHull = [];\n for(let i = 0; i < points.length; i++){\n const p = points[i];\n while(upperHull.length >= 2){\n const q = upperHull[upperHull.length - 1];\n const r = upperHull[upperHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) upperHull.pop();\n else break;\n }\n upperHull.push(p);\n }\n upperHull.pop();\n const lowerHull = [];\n for(let i1 = points.length - 1; i1 >= 0; i1--){\n const p = points[i1];\n while(lowerHull.length >= 2){\n const q = lowerHull[lowerHull.length - 1];\n const r = lowerHull[lowerHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) lowerHull.pop();\n else break;\n }\n lowerHull.push(p);\n }\n lowerHull.pop();\n if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) return upperHull;\n else return upperHull.concat(lowerHull);\n}\nconst $a093c7e1ec25a057$export$2881499e37b75b9a = $a093c7e1ec25a057$export$f78649fb9ca566b8;\nconst $a093c7e1ec25a057$export$be92b6f5f03c0fe9 = $a093c7e1ec25a057$export$28c660c63b792dea;\nconst $a093c7e1ec25a057$export$41fb9f06171c75f4 = $a093c7e1ec25a057$export$8c610744efcf8a1d;\nconst $a093c7e1ec25a057$export$602eac185826482c = $a093c7e1ec25a057$export$7b36b8f925ab7497;\nconst $a093c7e1ec25a057$export$7c6e2c02157bb7d2 = $a093c7e1ec25a057$export$e9003e2be37ec060;\nconst $a093c7e1ec25a057$export$21b07c8f274aebd5 = $a093c7e1ec25a057$export$c27ee0ad710f7559;\n\n\n\n\nexport {$a093c7e1ec25a057$export$1c540a2224f0d865 as createTooltipScope, $a093c7e1ec25a057$export$f78649fb9ca566b8 as TooltipProvider, $a093c7e1ec25a057$export$28c660c63b792dea as Tooltip, $a093c7e1ec25a057$export$8c610744efcf8a1d as TooltipTrigger, $a093c7e1ec25a057$export$7b36b8f925ab7497 as TooltipPortal, $a093c7e1ec25a057$export$e9003e2be37ec060 as TooltipContent, $a093c7e1ec25a057$export$c27ee0ad710f7559 as TooltipArrow, $a093c7e1ec25a057$export$2881499e37b75b9a as Provider, $a093c7e1ec25a057$export$be92b6f5f03c0fe9 as Root, $a093c7e1ec25a057$export$41fb9f06171c75f4 as Trigger, $a093c7e1ec25a057$export$602eac185826482c as Portal, $a093c7e1ec25a057$export$7c6e2c02157bb7d2 as Content, $a093c7e1ec25a057$export$21b07c8f274aebd5 as Arrow};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$a093c7e1ec25a057$var$createTooltipContext","$a093c7e1ec25a057$export$1c540a2224f0d865","$8wepK$createContextScope","$8wepK$createPopperScope","$a093c7e1ec25a057$var$usePopperScope","$a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION","$a093c7e1ec25a057$var$TOOLTIP_OPEN","$a093c7e1ec25a057$var$TooltipProviderContextProvider","$a093c7e1ec25a057$var$useTooltipProviderContext","$a093c7e1ec25a057$export$f78649fb9ca566b8","props","__scopeTooltip","delayDuration","skipDelayDuration","disableHoverableContent","children","isOpenDelayed","setIsOpenDelayed","$8wepK$useState","isPointerInTransitRef","$8wepK$useRef","skipDelayTimerRef","$8wepK$useEffect","skipDelayTimer","current","window","clearTimeout","$8wepK$createElement","scope","onOpen","$8wepK$useCallback","onClose","setTimeout","onPointerInTransitChange","inTransit","$a093c7e1ec25a057$var$TOOLTIP_NAME","$a093c7e1ec25a057$var$TooltipContextProvider","$a093c7e1ec25a057$var$useTooltipContext","$a093c7e1ec25a057$export$28c660c63b792dea","open","openProp","defaultOpen","onOpenChange","disableHoverableContentProp","delayDurationProp","providerContext","popperScope","trigger","setTrigger","contentId","$8wepK$useId","openTimerRef","wasOpenDelayedRef","open1","setOpen","$8wepK$useControllableState","prop","defaultProp","onChange","document","dispatchEvent","CustomEvent","stateAttribute","$8wepK$useMemo","handleOpen","handleClose","handleDelayedOpen","$8wepK$Root","onTriggerChange","onTriggerEnter","onTriggerLeave","$a093c7e1ec25a057$var$TRIGGER_NAME","$a093c7e1ec25a057$export$8c610744efcf8a1d","$8wepK$forwardRef","forwardedRef","triggerProps","context","ref","composedRefs","$8wepK$useComposedRefs","isPointerDownRef","hasPointerMoveOpenedRef","handlePointerUp","removeEventListener","$8wepK$Anchor","$8wepK$babelruntimehelpersesmextends","asChild","$8wepK$Primitive","button","undefined","onPointerMove","$8wepK$composeEventHandlers","event","pointerType","onPointerLeave","onPointerDown","addEventListener","once","onFocus","onBlur","onClick","$a093c7e1ec25a057$var$PortalProvider","$a093c7e1ec25a057$var$usePortalContext","forceMount","$a093c7e1ec25a057$var$CONTENT_NAME","$a093c7e1ec25a057$export$e9003e2be37ec060","portalContext","side","contentProps","$8wepK$Presence","present","$a093c7e1ec25a057$var$TooltipContentImpl","$a093c7e1ec25a057$var$TooltipContentHoverable","pointerGraceArea","setPointerGraceArea","content","handleRemoveGraceArea","handleCreateGraceArea","hoverTarget","currentTarget","exitPoint","x","clientX","y","clientY","paddedExitPoints","exitSide","padding","push","$a093c7e1ec25a057$var$getPaddedExitPoints","point","rect","top","Math","abs","bottom","right","left","min","Error","$a093c7e1ec25a057$var$getExitSideFromRect","getBoundingClientRect","graceArea","points","newPoints","slice","sort","a","b","length","upperHull","i","p","q","r","pop","lowerHull","i1","concat","$a093c7e1ec25a057$var$getHullPresorted","$a093c7e1ec25a057$var$getHull","$a093c7e1ec25a057$var$getPointsFromRect","handleTriggerLeave","handleContentLeave","handleTrackPointerGrace","target","pointerPosition","hasEnteredTarget","contains","isPointerOutsideGraceArea","polygon","inside","j","xi","yi","xj","yj","$a093c7e1ec25a057$var$isPointInPolygon","$a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider","$a093c7e1ec25a057$var$useVisuallyHiddenContentContext","isInside","ariaLabel","onEscapeKeyDown","onPointerDownOutside","handleScroll","capture","$8wepK$DismissableLayer","disableOutsidePointerEvents","onFocusOutside","preventDefault","onDismiss","$8wepK$Content","style","$8wepK$Slottable","$8wepK$Root1","id","role","$a093c7e1ec25a057$export$2881499e37b75b9a","$a093c7e1ec25a057$export$be92b6f5f03c0fe9","$a093c7e1ec25a057$export$41fb9f06171c75f4","$a093c7e1ec25a057$export$7c6e2c02157bb7d2"],"mappings":"8gCA8BK,MAAEA,EAA4CC,GAA6CC,EAA0B,UAAW,CACjIC,IAEEC,EAAuCD,IAIvCE,EAA+C,IAC/CC,EAAqC,gBACpCC,EAAsDC,GAAmDR,EAHiC,mBAI3IS,EAA6CC,IAC/C,MAAQC,eAAgBA,EAAiBC,cAAeA,EAAgBP,EAA+CQ,kBAAmBA,EAAoB,IAAMC,wBAAyBA,GAA0B,EAAQC,SAAUA,GAAcL,GAChPM,EAAeC,GAAoBC,GAAgB,GACpDC,EAAwBC,GAAc,GACtCC,EAAoBD,EAAc,GAMxC,OALAE,GAAiB,KACb,MAAMC,EAAiBF,EAAkBG,QACzC,MAAO,IAAIC,OAAOC,aAAaH,EAC9B,GACF,IACkBI,EAAqBpB,EAAsD,CAC5FqB,MAAOjB,EACPK,cAAeA,EACfJ,cAAeA,EACfiB,OAAQC,GAAmB,KACvBL,OAAOC,aAAaL,EAAkBG,SACtCP,GAAiB,EAAM,GACxB,IACHc,QAASD,GAAmB,KACxBL,OAAOC,aAAaL,EAAkBG,SACtCH,EAAkBG,QAAUC,OAAOO,YAAW,IAAIf,GAAiB,IACjEJ,EAAkB,GACrB,CACCA,IAEJM,sBAAuBA,EACvBc,yBAA0BH,GAAoBI,IAC1Cf,EAAsBK,QAAUU,CAAS,GAC1C,IACHpB,wBAAyBA,GAC1BC,EAAS,EAO2FoB,EAAqC,WACzIC,EAA8C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BAAiB,SAAUwF,EAAc,CAC5CC,SAAS,IAEN,IAAIhK,OAAO0D,oBAAoB,SAAUqG,EAAc,CACtDC,SAAS,GAGpB,IACF,CACC7G,EAAQ7B,QACRhB,IAEiBJ,EAAqB+J,EAAyB,CAC/DpG,SAAS,EACTqG,6BAA6B,EAC7BL,gBAAiBA,EACjBC,qBAAsBA,EACtBK,eAAiBhG,GAAQA,EAAMiG,iBAE/BC,UAAW/J,GACEJ,EAAqBoK,EAAgB1G,EAAqC,CACvF,aAAcT,EAAQd,gBACvBhB,EAAa8D,EAAc,CAC1B/B,IAAKH,EACLsH,MAAO,IACApF,EAAaoF,MAChB,2CAA4C,uCAC5C,0CAA2C,sCAC3C,2CAA4C,uCAC5C,gCAAiC,mCACjC,iCAAkC,uCAExBrK,EAAqBsK,EAAkB,KAAMlL,GAAyBY,EAAqBuJ,EAA4D,CACrKtJ,MAAOjB,EACPyK,UAAU,GACGzJ,EAAqBuK,EAAc,CAChDC,GAAIvH,EAAQ3B,UACZmJ,KAAM,WACPf,GAAatK,KAAY,IA4J3B,MAACsL,EAA4C5L,EAC5C6L,EAA4ChK,EAC5CiK,EAA4C/H,EAE5CgI,EAA4C/F"}
@@ -0,0 +1,2 @@
1
+ import n from"../../../../../../@babel/runtime/helpers/esm/extends.js";import{createElement as o,Fragment as e,forwardRef as r,Children as t,isValidElement as l,cloneElement as s}from"react";import{composeRefs as c}from"../../../../../react-compose-refs/dist/index.mjs.js";const i=r(((e,r)=>{const{children:c,...i}=e,a=t.toArray(c),u=a.find(f);if(u){const e=u.props.children,c=a.map((n=>n===u?t.count(e)>1?t.only(null):l(e)?e.props.children:null:n));return o(p,n({},i,{ref:r}),l(e)?s(e,void 0,c):null)}return o(p,n({},i,{ref:r}),c)}));i.displayName="Slot";const p=r(((n,o)=>{const{children:e,...r}=n;return l(e)?s(e,{...u(r,e.props),ref:o?c(o,e.ref):e.ref}):t.count(e)>1?t.only(null):null}));p.displayName="SlotClone";const a=({children:n})=>o(e,null,n);function f(n){return l(n)&&n.type===a}function u(n,o){const e={...o};for(const r in o){const t=n[r],l=o[r];/^on[A-Z]/.test(r)?t&&l?e[r]=(...n)=>{l(...n),t(...n)}:t&&(e[r]=t):"style"===r?e[r]={...t,...l}:"className"===r&&(e[r]=[t,l].filter(Boolean).join(" "))}return{...n,...e}}export{i as Slot,a as Slottable};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\n for(const propName in childProps){\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$5e63c961fc1ce211$export$8c6ed5c666ac1360","$9IrjX$forwardRef","props","forwardedRef","children","slotProps","childrenArray","$9IrjX$Children","toArray","slottable","find","$5e63c961fc1ce211$var$isSlottable","newElement","newChildren","map","child","count","only","$9IrjX$isValidElement","$9IrjX$createElement","$5e63c961fc1ce211$var$SlotClone","$9IrjX$babelruntimehelpersesmextends","ref","$9IrjX$cloneElement","undefined","displayName","$5e63c961fc1ce211$var$mergeProps","$9IrjX$composeRefs","$5e63c961fc1ce211$export$d9f1ccf0bdb05d45","$9IrjX$Fragment","type","childProps","overrideProps","propName","slotPropValue","childPropValue","test","args","filter","Boolean","join"],"mappings":"iRAS0G,MAACA,EAA0DC,GAAkB,CAACC,EAAOC,KAC3L,MAAQC,SAAUA,KAAcC,GAAcH,EACxCI,EAAgBC,EAAgBC,QAAQJ,GACxCK,EAAYH,EAAcI,KAAKC,GACrC,GAAIF,EAAW,CAEX,MAAMG,EAAaH,EAAUP,MAAME,SAC7BS,EAAcP,EAAcQ,KAAKC,GAC/BA,IAAUN,EAGNF,EAAgBS,MAAMJ,GAAc,EAAUL,EAAgBU,KAAK,MAClDC,EAAsBN,GAAcA,EAAWV,MAAME,SAAW,KAC3EW,IAElB,OAAqBI,EAAqBC,EAAiCC,EAAqC,CAAA,EAAIhB,EAAW,CAC3HiB,IAAKnB,IACSe,EAAsBN,GAA4BW,EAAoBX,OAAYY,EAAWX,GAAe,KACjI,CACD,OAAqBM,EAAqBC,EAAiCC,EAAqC,CAAA,EAAIhB,EAAW,CAC3HiB,IAAKnB,IACLC,EAAS,IAEjBJ,EAA0CyB,YAAc,OAG6C,MAAML,EAAgDnB,GAAkB,CAACC,EAAOC,KACjL,MAAQC,SAAUA,KAAcC,GAAcH,EAC9C,OAAkBgB,EAAsBd,GAAgCmB,EAAoBnB,EAAU,IAC/FsB,EAAiCrB,EAAWD,EAASF,OACxDoB,IAAKnB,EAAewB,EAAmBxB,EAAcC,EAASkB,KAAOlB,EAASkB,MAE3Ef,EAAgBS,MAAMZ,GAAY,EAAIG,EAAgBU,KAAK,MAAQ,IAAI,IAElFG,EAAgCK,YAAc,YAG4D,MAACG,EAA4C,EAAGxB,SAAUA,KAC3Ie,EAAqBU,EAAiB,KAAMzB,GAEgC,SAASO,EAAkCI,GAC5I,OAAqBG,EAAsBH,IAAUA,EAAMe,OAASF,CACxE,CACA,SAASF,EAAiCrB,EAAW0B,GAEjD,MAAMC,EAAgB,IACfD,GAEP,IAAI,MAAME,KAAYF,EAAW,CAC7B,MAAMG,EAAgB7B,EAAU4B,GAC1BE,EAAiBJ,EAAWE,GAChB,WAAWG,KAAKH,GAG1BC,GAAiBC,EAAgBH,EAAcC,GAAY,IAAII,KAC/DF,KAAkBE,GAClBH,KAAiBG,EAAK,EAEjBH,IAAeF,EAAcC,GAAYC,GAC9B,UAAbD,EAAsBD,EAAcC,GAAY,IACpDC,KACAC,GAEe,cAAbF,IAA0BD,EAAcC,GAAY,CACzDC,EACAC,GACFG,OAAOC,SAASC,KAAK,KAC1B,CACD,MAAO,IACAnC,KACA2B,EAEX"}
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{cn as i}from"../utils/index.js";const l=t=>e("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("size-5 text-[#16A34A] dark:text-[#4ADE80]",t.className)},{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.8566 8.19113C14.1002 7.85614 14.0261 7.38708 13.6911 7.14345C13.3561 6.89982 12.8871 6.97388 12.6434 7.30887L9.15969 12.099L7.28033 10.2197C6.98744 9.92678 6.51256 9.92678 6.21967 10.2197C5.92678 10.5126 5.92678 10.9874 6.21967 11.2803L8.71967 13.7803C8.87477 13.9354 9.08999 14.0149 9.30867 13.9977C9.52734 13.9805 9.72754 13.8685 9.85655 13.6911L13.8566 8.19113Z",fill:"currentColor"})})),s=t=>e("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("size-5 text-[#E7000B] dark:text-[#FF6467]",t.className)},{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V10.25C10.75 10.6642 10.4142 11 10 11C9.58579 11 9.25 10.6642 9.25 10.25V5.75C9.25 5.33579 9.58579 5 10 5ZM10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44771 13 9 13.4477 9 14C9 14.5523 9.44771 15 10 15Z",fill:"currentColor"})})),C=l=>t("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("size-5 text-muted-foreground",l.className)},{children:[e("path",{d:"M10 2.75C14.0041 2.75 17.25 5.99594 17.25 10C17.25 14.0041 14.0041 17.25 10 17.25C5.99594 17.25 2.75 14.0041 2.75 10C2.75 5.99594 5.99594 2.75 10 2.75Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M5 5L15 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})),r=t=>e("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("size-5 text-muted-foreground",t.className)},{children:e("path",{d:"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 4.25C9.58579 4.25 9.25 4.58579 9.25 5V10C9.25 10.4142 9.58579 10.75 10 10.75H14C14.4142 10.75 14.75 10.4142 14.75 10C14.75 9.58579 14.4142 9.25 14 9.25H10.75V5C10.75 4.58579 10.4142 4.25 10 4.25Z",fill:"currentColor"})})),n=t=>e("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("size-5 text-muted-foreground",t.className)},{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM9.25 13.25C9.25 13.6642 9.58579 14 10 14C10.4142 14 10.75 13.6642 10.75 13.25V8.6599L12.7004 10.7603C12.9823 11.0639 13.4568 11.0814 13.7603 10.7996C14.0639 10.5177 14.0814 10.0432 13.7996 9.73966L10.5496 6.23966C10.4077 6.08684 10.2086 6 10 6C9.79145 6 9.59231 6.08684 9.45041 6.23966L6.20041 9.73966C5.91855 10.0432 5.93613 10.5177 6.23966 10.7996C6.54319 11.0814 7.01774 11.0639 7.2996 10.7603L9.25 8.6599V13.25Z",fill:"currentColor"})})),o=l=>t("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("size-5 text-muted-foreground",l.className)},{children:[e("g",Object.assign({clipPath:"url(#clip0_4504_53241)"},{children:e("path",{d:"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM12.4424 6.55762C12.1983 6.31354 11.8017 6.31354 11.5576 6.55762C11.3135 6.80169 11.3135 7.19831 11.5576 7.44238L12.4902 8.375H9.0625C8.35591 8.375 7.67431 8.64675 7.16895 9.13672C6.66291 9.62742 6.375 10.2975 6.375 11C6.375 11.3474 6.44544 11.6909 6.58203 12.0107C6.71865 12.3306 6.91852 12.6204 7.16895 12.8633C7.67431 13.3532 8.35591 13.625 9.0625 13.625H10.375C10.7202 13.625 11 13.3452 11 13C11 12.6548 10.7202 12.375 10.375 12.375H9.0625C8.67519 12.375 8.30727 12.2259 8.03906 11.9658C7.90645 11.8372 7.80212 11.685 7.73145 11.5195C7.6609 11.3542 7.625 11.1777 7.625 11C7.625 10.6416 7.77151 10.2936 8.03906 10.0342C8.30727 9.77415 8.67519 9.625 9.0625 9.625H12.4902L11.5576 10.5576C11.3135 10.8017 11.3135 11.1983 11.5576 11.4424C11.8017 11.6865 12.1983 11.6865 12.4424 11.4424L14.4424 9.44238C14.6865 9.19831 14.6865 8.80169 14.4424 8.55762L12.4424 6.55762Z",fill:"currentColor"})})),e("defs",{children:e("clipPath",Object.assign({id:"clip0_4504_53241"},{children:e("rect",{width:"16",height:"16",fill:"white",transform:"translate(2 2)"})}))})]}));export{C as StatusIconCancelled,s as StatusIconError,r as StatusIconQueued,o as StatusIconRetrying,n as StatusIconSubmitted,l as StatusIconSuccess};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{cn as C}from"../utils/index.js";const i=t=>e("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("size-5 text-[#16A34A] dark:text-[#4ADE80]",t.className)},{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.8566 8.19113C14.1002 7.85614 14.0261 7.38708 13.6911 7.14345C13.3561 6.89982 12.8871 6.97388 12.6434 7.30887L9.15969 12.099L7.28033 10.2197C6.98744 9.92678 6.51256 9.92678 6.21967 10.2197C5.92678 10.5126 5.92678 10.9874 6.21967 11.2803L8.71967 13.7803C8.87477 13.9354 9.08999 14.0149 9.30867 13.9977C9.52734 13.9805 9.72754 13.8685 9.85655 13.6911L13.8566 8.19113Z",fill:"currentColor"})})),l=t=>e("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("size-5 text-[#E7000B] dark:text-[#FF6467]",t.className)},{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V10.25C10.75 10.6642 10.4142 11 10 11C9.58579 11 9.25 10.6642 9.25 10.25V5.75C9.25 5.33579 9.58579 5 10 5ZM10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44771 13 9 13.4477 9 14C9 14.5523 9.44771 15 10 15Z",fill:"currentColor"})})),s=i=>t("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("size-5 text-muted-foreground",i.className)},{children:[e("path",{d:"M10 2.75C14.0041 2.75 17.25 5.99594 17.25 10C17.25 14.0041 14.0041 17.25 10 17.25C5.99594 17.25 2.75 14.0041 2.75 10C2.75 5.99594 5.99594 2.75 10 2.75Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M5 5L15 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})),r=t=>e("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("size-5 text-muted-foreground",t.className)},{children:e("path",{d:"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 4.25C9.58579 4.25 9.25 4.58579 9.25 5V10C9.25 10.4142 9.58579 10.75 10 10.75H14C14.4142 10.75 14.75 10.4142 14.75 10C14.75 9.58579 14.4142 9.25 14 9.25H10.75V5C10.75 4.58579 10.4142 4.25 10 4.25Z",fill:"currentColor"})})),o=t=>e("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("size-5 text-muted-foreground",t.className)},{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM9.25 13.25C9.25 13.6642 9.58579 14 10 14C10.4142 14 10.75 13.6642 10.75 13.25V8.6599L12.7004 10.7603C12.9823 11.0639 13.4568 11.0814 13.7603 10.7996C14.0639 10.5177 14.0814 10.0432 13.7996 9.73966L10.5496 6.23966C10.4077 6.08684 10.2086 6 10 6C9.79145 6 9.59231 6.08684 9.45041 6.23966L6.20041 9.73966C5.91855 10.0432 5.93613 10.5177 6.23966 10.7996C6.54319 11.0814 7.01774 11.0639 7.2996 10.7603L9.25 8.6599V13.25Z",fill:"currentColor"})})),n=i=>t("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("size-5 text-muted-foreground",i.className)},{children:[e("g",Object.assign({clipPath:"url(#clip0_4504_53241)"},{children:e("path",{d:"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM12.4424 6.55762C12.1983 6.31354 11.8017 6.31354 11.5576 6.55762C11.3135 6.80169 11.3135 7.19831 11.5576 7.44238L12.4902 8.375H9.0625C8.35591 8.375 7.67431 8.64675 7.16895 9.13672C6.66291 9.62742 6.375 10.2975 6.375 11C6.375 11.3474 6.44544 11.6909 6.58203 12.0107C6.71865 12.3306 6.91852 12.6204 7.16895 12.8633C7.67431 13.3532 8.35591 13.625 9.0625 13.625H10.375C10.7202 13.625 11 13.3452 11 13C11 12.6548 10.7202 12.375 10.375 12.375H9.0625C8.67519 12.375 8.30727 12.2259 8.03906 11.9658C7.90645 11.8372 7.80212 11.685 7.73145 11.5195C7.6609 11.3542 7.625 11.1777 7.625 11C7.625 10.6416 7.77151 10.2936 8.03906 10.0342C8.30727 9.77415 8.67519 9.625 9.0625 9.625H12.4902L11.5576 10.5576C11.3135 10.8017 11.3135 11.1983 11.5576 11.4424C11.8017 11.6865 12.1983 11.6865 12.4424 11.4424L14.4424 9.44238C14.6865 9.19831 14.6865 8.80169 14.4424 8.55762L12.4424 6.55762Z",fill:"currentColor"})})),e("defs",{children:e("clipPath",Object.assign({id:"clip0_4504_53241"},{children:e("rect",{width:"16",height:"16",fill:"white",transform:"translate(2 2)"})}))})]})),d=i=>t("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("size-5",i.className)},{children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"1.5",stroke:"currentColor"}),e("path",{d:"M17 13H14.4074C14.1325 12.9996 13.869 12.8941 13.6746 12.7067C13.4802 12.5192 13.3708 12.2651 13.3704 12V9C13.3704 8.73478 13.4796 8.48043 13.6741 8.29289C13.8686 8.10536 14.1324 8 14.4074 8H17V9H14.4074V12H17V13ZM11.2963 8H9.22222V6H8.18518V13H11.2963C11.5712 12.9996 11.8347 12.8941 12.0291 12.7067C12.2235 12.5192 12.3329 12.2651 12.3333 12V9C12.3333 8.73478 12.2241 8.48043 12.0296 8.29289C11.8351 8.10536 11.5713 8 11.2963 8ZM9.22222 12V9H11.2963V12H9.22222ZM6.11111 8H3.51852V9H6.11111V10H4.03704C3.762 10 3.49822 10.1054 3.30374 10.2929C3.10926 10.4804 3 10.7348 3 11V12C3 12.2652 3.10926 12.5196 3.30374 12.7071C3.49822 12.8946 3.762 13 4.03704 13H7.14815V9C7.14815 8.73478 7.03889 8.48043 6.84441 8.29289C6.64992 8.10536 6.38615 8 6.11111 8ZM6.11111 12H4.03704V11H6.11111V12Z",fill:"currentColor"})]}));export{d as ExactMatchIcon,s as StatusIconCancelled,l as StatusIconError,r as StatusIconQueued,n as StatusIconRetrying,o as StatusIconSubmitted,i as StatusIconSuccess};
2
2
  //# sourceMappingURL=icons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.js","sources":["../../../../src/custom/icons.tsx"],"sourcesContent":[null],"names":["StatusIconSuccess","props","_jsx","Object","assign","width","height","viewBox","fill","xmlns","className","cn","fillRule","clipRule","d","StatusIconError","StatusIconCancelled","_jsxs","children","stroke","strokeWidth","strokeLinecap","strokeLinejoin","StatusIconQueued","StatusIconSubmitted","StatusIconRetrying","clipPath","id","transform"],"mappings":"yFAEa,MAAAA,EAAqBC,GAGzBC,EAAA,MAAAC,OAAAC,OAAA,CAAKC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA6BC,UAAWC,EAAG,4CAA6CV,EAAMS,sBACzKR,EAAM,OAAA,CAAAU,SAAS,UAAUC,SAAS,UAAUC,EAAE,oeAAoeN,KAAK,oBAM1gBO,EAAmBd,GACvBC,EAAA,MAAAC,OAAAC,OAAA,CAAKC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA6BC,UAAWC,EAAG,4CAA6CV,EAAMS,sBACrKR,EAAM,OAAA,CAAAU,SAAS,UAAUC,SAAS,UAAUC,EAAE,0XAA0XN,KAAK,oBAOpaQ,EAAuB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ourcesContent":[null],"names":["StatusIconSuccess","props","_jsx","Object","assign","width","height","viewBox","fill","xmlns","className","cn","fillRule","clipRule","d","StatusIconError","StatusIconCancelled","_jsxs","children","stroke","strokeWidth","strokeLinecap","strokeLinejoin","StatusIconQueued","StatusIconSubmitted","StatusIconRetrying","clipPath","id","transform","ExactMatchIcon","x","y","rx"],"mappings":"yFAEa,MAAAA,EAAqBC,GAGzBC,EAAA,MAAAC,OAAAC,OAAA,CAAKC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA6BC,UAAWC,EAAG,4CAA6CV,EAAMS,sBACzKR,EAAM,OAAA,CAAAU,SAAS,UAAUC,SAAS,UAAUC,EAAE,oeAAoeN,KAAK,oBAM1gBO,EAAmBd,GACvBC,EAAA,MAAAC,OAAAC,OAAA,CAAKC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA6BC,UAAWC,EAAG,4CAA6CV,EAAMS,sBACrKR,EAAM,OAAA,CAAAU,SAAS,UAAUC,SAAS,UAAUC,EAAE,0XAA0XN,KAAK,oBAOpaQ,EAAuBf,GAG3BgB,uBAAKZ,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA6BC,UAAWC,EAAG,+BAAgCV,EAAMS,YACxJ,CAAAQ,SAAA,CAAAhB,EAAA,OAAA,CAAMY,EAAE,0JAA0JK,OAAO,eAAeC,YAAY,MAAMC,cAAc,QAAQC,eAAe,UAC/OpB,EAAA,OAAA,CAAMY,EAAE,aAAaK,OAAO,eAAeC,YAAY,MAAMC,cAAc,QAAQC,eAAe,cASzFC,EAAoBtB,GAIxBC,uBAAKG,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA6BC,UAAWC,EAAG,+BAAgCV,EAAMS,YAAU,CAAAQ,SAClKhB,UAAMY,EAAE,0TAA0TN,KAAK,oBAO9TgB,EAAuBvB,GAI3BC,EAAA,MAAAC,OAAAC,OAAA,CAAKC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA6BC,UAAWC,EAAG,+BAAgCV,EAAMS,sBACxJR,EAAM,OAAA,CAAAU,SAAS,UAAUC,SAAS,UAAUC,EAAE,ohBAAohBN,KAAK,oBAS9jBiB,EAAsBxB,GAE1BgB,EAAK,MAAAd,OAAAC,OAAA,CAAAC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAAOC,MAAM,6BAA6BC,UAAWC,EAAG,+BAAgCV,EAAMS,YAAU,CAAAQ,SAAA,CAClKhB,EAAG,IAAAC,OAAAC,OAAA,CAAAsB,SAAS,0BAAwB,CAAAR,SAClChB,EAAM,OAAA,CAAAY,EAAE,o9BAAo9BN,KAAK,oBAEn+BN,mBACEA,EAAU,WAAAC,OAAAC,OAAA,CAAAuB,GAAG,8BACXzB,EAAM,OAAA,CAAAG,MAAM,KAAKC,OAAO,KAAKE,KAAK,QAAQoB,UAAU,4BAQ/CC,EAAkB5B,GAE3BgB,EAAA,MAAAd,OAAAC,OAAA,CAAKC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OAChDC,MAAM,6BACNC,UAAWC,EAAG,SAAUV,EAAMS,uBACjCR,EAAM,OAAA,CAAA4B,EAAE,MAAMC,EAAE,MAAM1B,MAAM,KAAKC,OAAO,KAAK0B,GAAG,MAAMb,OAAO,iBAC7DjB,UACEY,EAAE,mxBACFN,KAAK"}
package/dist/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{Footer as DocsFooter}from"./custom/docs/components/footer/index.js";export{NavBar as DocsNavBar}from"./custom/docs/components/navmenu/index.js";export{TripleCard as DocsTripleCard}from"./custom/docs/components/triplecard/index.js";export{HelpCard as DocsHelpCard}from"./custom/docs/components/helpcard/index.js";export{DocsHeaderLeft,DocsHeaderRight,DocsHeaderSubtitle,DocsHeaderTitle,DocsHeaderWrapper}from"./custom/docs/components/header/index.js";export{DocsPageLayout}from"./custom/docs/components/page/index.js";export{StatusIconCancelled,StatusIconError,StatusIconQueued,StatusIconRetrying,StatusIconSubmitted,StatusIconSuccess}from"./custom/icons.js";export{SlideIn}from"./custom/slide-in.js";export{ThemeSelector,useTheme}from"./custom/theme-selector.js";export{Accordion,AccordionContent,AccordionItem,AccordionTrigger}from"./shadcn/ui/accordion.js";export{Alert,AlertDescription,AlertTitle}from"./shadcn/ui/alert.js";export{Avatar,AvatarFallback,AvatarImage}from"./shadcn/ui/avatar.js";export{Badge,badgeVariants}from"./shadcn/ui/badge.js";export{Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator}from"./shadcn/ui/breadcrumb.js";export{Button,buttonVariants}from"./shadcn/ui/button.js";export{Calendar}from"./shadcn/ui/calendar.js";export{Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle}from"./shadcn/ui/card.js";export{Checkbox}from"./shadcn/ui/checkbox.js";export{Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut}from"./shadcn/ui/command.js";export{Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger}from"./shadcn/ui/dialog.js";export{DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger}from"./shadcn/ui/dropdown-menu.js";export{Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage}from"./shadcn/ui/form.js";export{HoverCard,HoverCardContent,HoverCardTrigger}from"./shadcn/ui/hover-card.js";export{Input}from"./shadcn/ui/input.js";export{InputOTP,InputOTPGroup,InputOTPSeparator,InputOTPSlot}from"./shadcn/ui/input-otp.js";export{Label}from"./shadcn/ui/label.js";export{NavigationMenu,NavigationMenuContent,NavigationMenuIndicator,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NavigationMenuViewport,navigationMenuTriggerStyle}from"./shadcn/ui/navigation-menu.js";export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious}from"./shadcn/ui/pagination.js";export{Popover,PopoverContent,PopoverTrigger}from"./shadcn/ui/popover.js";export{Progress}from"./shadcn/ui/progress.js";export{RadioGroup,RadioGroupItem}from"./shadcn/ui/radio-group.js";export{ScrollArea,ScrollBar}from"./shadcn/ui/scroll-area.js";export{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue}from"./shadcn/ui/select.js";export{Separator}from"./shadcn/ui/separator.js";export{Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger}from"./shadcn/ui/sheet.js";export{Skeleton}from"./shadcn/ui/skeleton.js";export{SonnerToast}from"./shadcn/ui/sonner.js";export{Switch}from"./shadcn/ui/switch.js";export{Table,TableBody,TableCaption,TableCell,TableFooter,TableHead,TableHeader,TableRow}from"./shadcn/ui/table.js";export{Tabs,TabsContent,TabsList,TabsTrigger}from"./shadcn/ui/tabs.js";export{Textarea}from"./shadcn/ui/textarea.js";export{ToggleGroup,ToggleGroupItem}from"./shadcn/ui/toggle-group.js";export{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"./shadcn/ui/tooltip.js";export{tailwindTheme}from"./tailwindTheme.js";export{cn}from"./utils/index.js";export{CodeCopy}from"./custom/docs/components/header/CodeCopy.js";import*as o from"../node_modules/sonner/dist/index.mjs.js";export{o as sonner};export{getTheme,setTheme,subscribeToTheme}from"./utils/darkMode.js";
1
+ export{Footer as DocsFooter}from"./custom/docs/components/footer/index.js";export{NavBar as DocsNavBar}from"./custom/docs/components/navmenu/index.js";export{TripleCard as DocsTripleCard}from"./custom/docs/components/triplecard/index.js";export{HelpCard as DocsHelpCard}from"./custom/docs/components/helpcard/index.js";export{DocsHeaderLeft,DocsHeaderRight,DocsHeaderSubtitle,DocsHeaderTitle,DocsHeaderWrapper}from"./custom/docs/components/header/index.js";export{DocsPageLayout}from"./custom/docs/components/page/index.js";export{ExactMatchIcon,StatusIconCancelled,StatusIconError,StatusIconQueued,StatusIconRetrying,StatusIconSubmitted,StatusIconSuccess}from"./custom/icons.js";export{SlideIn}from"./custom/slide-in.js";export{ThemeSelector,useTheme}from"./custom/theme-selector.js";export{Accordion,AccordionContent,AccordionItem,AccordionTrigger}from"./shadcn/ui/accordion.js";export{Alert,AlertDescription,AlertTitle}from"./shadcn/ui/alert.js";export{Avatar,AvatarFallback,AvatarImage}from"./shadcn/ui/avatar.js";export{Badge,badgeVariants}from"./shadcn/ui/badge.js";export{Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator}from"./shadcn/ui/breadcrumb.js";export{Button,buttonVariants}from"./shadcn/ui/button.js";export{Calendar}from"./shadcn/ui/calendar.js";export{Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle}from"./shadcn/ui/card.js";export{Checkbox}from"./shadcn/ui/checkbox.js";export{Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut}from"./shadcn/ui/command.js";export{Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger}from"./shadcn/ui/dialog.js";export{DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger}from"./shadcn/ui/dropdown-menu.js";export{Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage}from"./shadcn/ui/form.js";export{HoverCard,HoverCardContent,HoverCardTrigger}from"./shadcn/ui/hover-card.js";export{Input}from"./shadcn/ui/input.js";export{InputGroup,InputGroupAddon,InputGroupButton,InputGroupInput,InputGroupText,InputGroupTextarea}from"./shadcn/ui/input-group.js";export{InputOTP,InputOTPGroup,InputOTPSeparator,InputOTPSlot}from"./shadcn/ui/input-otp.js";export{Label}from"./shadcn/ui/label.js";export{NavigationMenu,NavigationMenuContent,NavigationMenuIndicator,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NavigationMenuViewport,navigationMenuTriggerStyle}from"./shadcn/ui/navigation-menu.js";export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious}from"./shadcn/ui/pagination.js";export{Popover,PopoverContent,PopoverTrigger}from"./shadcn/ui/popover.js";export{Progress}from"./shadcn/ui/progress.js";export{RadioGroup,RadioGroupItem}from"./shadcn/ui/radio-group.js";export{ScrollArea,ScrollBar}from"./shadcn/ui/scroll-area.js";export{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue}from"./shadcn/ui/select.js";export{Separator}from"./shadcn/ui/separator.js";export{Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger}from"./shadcn/ui/sheet.js";export{Skeleton}from"./shadcn/ui/skeleton.js";export{SonnerToast}from"./shadcn/ui/sonner.js";export{Switch}from"./shadcn/ui/switch.js";export{Table,TableBody,TableCaption,TableCell,TableFooter,TableHead,TableHeader,TableRow}from"./shadcn/ui/table.js";export{Tabs,TabsContent,TabsList,TabsTrigger}from"./shadcn/ui/tabs.js";export{Textarea}from"./shadcn/ui/textarea.js";export{ToggleGroup,ToggleGroupItem}from"./shadcn/ui/toggle-group.js";export{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"./shadcn/ui/tooltip.js";export{tailwindTheme}from"./tailwindTheme.js";export{cn}from"./utils/index.js";export{CodeCopy}from"./custom/docs/components/header/CodeCopy.js";import*as o from"../node_modules/sonner/dist/index.mjs.js";export{o as sonner};export{getTheme,setTheme,subscribeToTheme}from"./utils/darkMode.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as a,jsxs as s}from"react/jsx-runtime";import*as r from"react";import{ChevronRightIcon as t,DotsHorizontalIcon as i}from"../../../node_modules/@radix-ui/react-icons/dist/react-icons.esm.js";import{Slot as l}from"../../../node_modules/@radix-ui/react-slot/dist/index.mjs.js";import{cn as n}from"../../utils/index.js";const m=r.forwardRef(((s,r)=>{var t=e(s,[]);return a("nav",Object.assign({ref:r,"aria-label":"breadcrumb"},t))}));m.displayName="Breadcrumb";const c=r.forwardRef(((s,r)=>{var{className:t}=s,i=e(s,["className"]);return a("ol",Object.assign({ref:r,className:n("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t)},i))}));c.displayName="BreadcrumbList";const o=r.forwardRef(((s,r)=>{var{className:t}=s,i=e(s,["className"]);return a("li",Object.assign({ref:r,className:n("inline-flex items-center gap-1.5",t)},i))}));o.displayName="BreadcrumbItem";const d=r.forwardRef(((s,r)=>{var{asChild:t,className:i}=s,m=e(s,["asChild","className"]);return a(t?l:"a",Object.assign({ref:r,className:n("transition-colors hover:text-foreground",i)},m))}));d.displayName="BreadcrumbLink";const u=r.forwardRef(((s,r)=>{var{className:t}=s,i=e(s,["className"]);return a("span",Object.assign({ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",t)},i))}));u.displayName="BreadcrumbPage";const f=s=>{var{children:r,className:i}=s,l=e(s,["children","className"]);return a("li",Object.assign({role:"presentation","aria-hidden":"true",className:n("[&>svg]:size-3.5",i)},l,{children:null!=r?r:a(t,{})}))};f.displayName="BreadcrumbSeparator";const N=r=>{var{className:t}=r,l=e(r,["className"]);return s("span",Object.assign({role:"presentation","aria-hidden":"true",className:n("flex h-9 w-9 items-center justify-center",t)},l,{children:[a(i,{className:"h-4 w-4"}),a("span",Object.assign({className:"sr-only"},{children:"More"}))]}))};N.displayName="BreadcrumbElipssis";export{m as Breadcrumb,N as BreadcrumbEllipsis,o as BreadcrumbItem,d as BreadcrumbLink,c as BreadcrumbList,u as BreadcrumbPage,f as BreadcrumbSeparator};
1
+ import{__rest as e}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as a,jsxs as s}from"react/jsx-runtime";import*as r from"react";import{ChevronRightIcon as t,DotsHorizontalIcon as i}from"../../../node_modules/@radix-ui/react-icons/dist/react-icons.esm.js";import{Root as n}from"../../../node_modules/@radix-ui/react-slot/dist/index.mjs.js";import{cn as l}from"../../utils/index.js";const m=r.forwardRef(((s,r)=>{var t=e(s,[]);return a("nav",Object.assign({ref:r,"aria-label":"breadcrumb"},t))}));m.displayName="Breadcrumb";const c=r.forwardRef(((s,r)=>{var{className:t}=s,i=e(s,["className"]);return a("ol",Object.assign({ref:r,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t)},i))}));c.displayName="BreadcrumbList";const o=r.forwardRef(((s,r)=>{var{className:t}=s,i=e(s,["className"]);return a("li",Object.assign({ref:r,className:l("inline-flex items-center gap-1.5",t)},i))}));o.displayName="BreadcrumbItem";const d=r.forwardRef(((s,r)=>{var{asChild:t,className:i}=s,m=e(s,["asChild","className"]);return a(t?n:"a",Object.assign({ref:r,className:l("transition-colors hover:text-foreground",i)},m))}));d.displayName="BreadcrumbLink";const u=r.forwardRef(((s,r)=>{var{className:t}=s,i=e(s,["className"]);return a("span",Object.assign({ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",t)},i))}));u.displayName="BreadcrumbPage";const f=s=>{var{children:r,className:i}=s,n=e(s,["children","className"]);return a("li",Object.assign({role:"presentation","aria-hidden":"true",className:l("[&>svg]:size-3.5",i)},n,{children:null!=r?r:a(t,{})}))};f.displayName="BreadcrumbSeparator";const N=r=>{var{className:t}=r,n=e(r,["className"]);return s("span",Object.assign({role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",t)},n,{children:[a(i,{className:"h-4 w-4"}),a("span",Object.assign({className:"sr-only"},{children:"More"}))]}))};N.displayName="BreadcrumbElipssis";export{m as Breadcrumb,N as BreadcrumbEllipsis,o as BreadcrumbItem,d as BreadcrumbLink,c as BreadcrumbList,u as BreadcrumbPage,f as BreadcrumbSeparator};
2
2
  //# sourceMappingURL=breadcrumb.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as r}from"react/jsx-runtime";import*as t from"react";import{Slot as s}from"../../../node_modules/@radix-ui/react-slot/dist/index.mjs.js";import{cva as o}from"../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as i}from"../../utils/index.js";const a=o("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),n=t.forwardRef(((t,o)=>{var{className:n,variant:d,size:m,asChild:u=!1}=t,c=e(t,["className","variant","size","asChild"]);return r(u?s:"button",Object.assign({className:i(a({variant:d,size:m,className:n})),ref:o},c))}));n.displayName="Button";export{n as Button,a as buttonVariants};
1
+ import{__rest as e}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as r}from"react/jsx-runtime";import*as t from"react";import{Root as s}from"../../../node_modules/@radix-ui/react-slot/dist/index.mjs.js";import{cva as o}from"../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as i}from"../../utils/index.js";const a=o("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),n=t.forwardRef(((t,o)=>{var{className:n,variant:d,size:m,asChild:u=!1}=t,c=e(t,["className","variant","size","asChild"]);return r(u?s:"button",Object.assign({className:i(a({variant:d,size:m,className:n})),ref:o},c))}));n.displayName="Button";export{n as Button,a as buttonVariants};
2
2
  //# sourceMappingURL=button.js.map
@@ -1,3 +1,3 @@
1
1
  'use client';
2
- import{__rest as e}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as r}from"react/jsx-runtime";import{Slot as s}from"../../../node_modules/@radix-ui/react-slot/dist/index.mjs.js";import*as t from"react";import{FormProvider as a,Controller as o,useFormContext as m}from"react-hook-form";import{cn as i}from"../../utils/index.js";import{Label as n}from"./label.js";const d=a,c=t.createContext({}),l=s=>{var t=e(s,[]);return r(c.Provider,Object.assign({value:{name:t.name}},{children:r(o,Object.assign({},t))}))},f=()=>{const e=t.useContext(c),r=t.useContext(u),{getFieldState:s,formState:a}=m(),o=s(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=r;return Object.assign({id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`},o)},u=t.createContext({}),p=t.forwardRef(((s,a)=>{var{className:o}=s,m=e(s,["className"]);const n=t.useId();return r(u.Provider,Object.assign({value:{id:n}},{children:r("div",Object.assign({ref:a,className:i("space-y-2",o)},m))}))}));p.displayName="FormItem";const g=t.forwardRef(((s,t)=>{var{className:a}=s,o=e(s,["className"]);const{error:m,formItemId:d}=f();return r(n,Object.assign({ref:t,className:i(m&&"text-destructive",a),htmlFor:d},o))}));g.displayName="FormLabel";const N=t.forwardRef(((t,a)=>{var o=e(t,[]);const{error:m,formItemId:i,formDescriptionId:n,formMessageId:d}=f();return r(s,Object.assign({ref:a,id:i,"aria-describedby":m?`${n} ${d}`:`${n}`,"aria-invalid":!!m},o))}));N.displayName="FormControl";const b=t.forwardRef(((s,t)=>{var{className:a}=s,o=e(s,["className"]);const{formDescriptionId:m}=f();return r("p",Object.assign({ref:t,id:m,className:i("text-[0.8rem] text-muted-foreground",a)},o))}));b.displayName="FormDescription";const j=t.forwardRef(((s,t)=>{var{className:a,children:o}=s,m=e(s,["className","children"]);const{error:n,formMessageId:d}=f(),c=n?String(null==n?void 0:n.message):o;return c?r("p",Object.assign({ref:t,id:d,className:i("text-[0.8rem] font-medium text-destructive",a)},m,{children:c})):null}));j.displayName="FormMessage";export{d as Form,N as FormControl,b as FormDescription,l as FormField,p as FormItem,g as FormLabel,j as FormMessage};
2
+ import{__rest as e}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as r}from"react/jsx-runtime";import{Root as s}from"../../../node_modules/@radix-ui/react-slot/dist/index.mjs.js";import*as t from"react";import{FormProvider as a,Controller as o,useFormContext as m}from"react-hook-form";import{cn as i}from"../../utils/index.js";import{Label as n}from"./label.js";const d=a,c=t.createContext({}),l=s=>{var t=e(s,[]);return r(c.Provider,Object.assign({value:{name:t.name}},{children:r(o,Object.assign({},t))}))},f=()=>{const e=t.useContext(c),r=t.useContext(u),{getFieldState:s,formState:a}=m(),o=s(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=r;return Object.assign({id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`},o)},u=t.createContext({}),p=t.forwardRef(((s,a)=>{var{className:o}=s,m=e(s,["className"]);const n=t.useId();return r(u.Provider,Object.assign({value:{id:n}},{children:r("div",Object.assign({ref:a,className:i("space-y-2",o)},m))}))}));p.displayName="FormItem";const g=t.forwardRef(((s,t)=>{var{className:a}=s,o=e(s,["className"]);const{error:m,formItemId:d}=f();return r(n,Object.assign({ref:t,className:i(m&&"text-destructive",a),htmlFor:d},o))}));g.displayName="FormLabel";const N=t.forwardRef(((t,a)=>{var o=e(t,[]);const{error:m,formItemId:i,formDescriptionId:n,formMessageId:d}=f();return r(s,Object.assign({ref:a,id:i,"aria-describedby":m?`${n} ${d}`:`${n}`,"aria-invalid":!!m},o))}));N.displayName="FormControl";const b=t.forwardRef(((s,t)=>{var{className:a}=s,o=e(s,["className"]);const{formDescriptionId:m}=f();return r("p",Object.assign({ref:t,id:m,className:i("text-[0.8rem] text-muted-foreground",a)},o))}));b.displayName="FormDescription";const j=t.forwardRef(((s,t)=>{var{className:a,children:o}=s,m=e(s,["className","children"]);const{error:n,formMessageId:d}=f(),c=n?String(null==n?void 0:n.message):o;return c?r("p",Object.assign({ref:t,id:d,className:i("text-[0.8rem] font-medium text-destructive",a)},m,{children:c})):null}));j.displayName="FormMessage";export{d as Form,N as FormControl,b as FormDescription,l as FormField,p as FormItem,g as FormLabel,j as FormMessage};
3
3
  //# sourceMappingURL=form.js.map
@@ -0,0 +1,3 @@
1
+ 'use client';
2
+ import{__rest as a}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as t}from"react/jsx-runtime";import*as s from"react";import{cva as e}from"../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as r}from"../../utils/index.js";import{Button as n}from"./button.js";import{Input as i}from"./input.js";import{Textarea as o}from"./textarea.js";function l(s){var{className:e}=s,n=a(s,["className"]);return t("div",Object.assign({"data-slot":"input-group",role:"group",className:r("group/input-group border-input shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e)},n))}const u=e("text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]","block-start":"[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5","block-end":"[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function d(s){var{className:e,align:n="inline-start"}=s,i=a(s,["className","align"]);return t("div",Object.assign({role:"group","data-slot":"input-group-addon","data-align":n,className:r(u({align:n}),e),onClick:a=>{var t,s;a.target.closest("button")||null===(s=null===(t=a.currentTarget.parentElement)||void 0===t?void 0:t.querySelector("input"))||void 0===s||s.focus()}},i))}const p=e("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function c(s){var{className:e,type:i="button",variant:o="ghost",size:l="xs"}=s,u=a(s,["className","type","variant","size"]);return t(n,Object.assign({type:i,"data-size":l,variant:o,className:r(p({size:l}),e)},u))}function g(s){var{className:e}=s,n=a(s,["className"]);return t("span",Object.assign({className:r("text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",e)},n))}const m=s.forwardRef(((s,e)=>{var{className:n}=s,o=a(s,["className"]);return t(i,Object.assign({"data-slot":"input-group-control",className:r("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",n)},o))}));m.displayName="InputGroupInput";const b=s.forwardRef(((s,e)=>{var{className:n}=s,i=a(s,["className"]);return t(o,Object.assign({ref:e,"data-slot":"input-group-control",className:r("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",n)},i))}));b.displayName="InputGroupTextarea";export{l as InputGroup,d as InputGroupAddon,c as InputGroupButton,m as InputGroupInput,g as InputGroupText,b as InputGroupTextarea};
3
+ //# sourceMappingURL=input-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}