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,KAAA,UACA,EACAU,GAAA,CACAV,KAAA,UACA,EACAW,GAAA,CACAX,KAAA,UACA,EACAY,GAAA,CACAZ,KAAA,UACA,EACAa,GAAA,CACAb,KAAA,UACA,EACA,OACAA,KAAA,WACA,EACA,OACAA,KAAA,WACA,EACA,OACAA,KAAA,WACA,EACA,OACAA,KAAA,WACA,EACAc,KAAA,CACAd,KAAA,+DACA,CACA,EACAe,OAAA,CACAC,KAAA,CAAchB,KAAA,gBACdU,GAAA,CAAYV,KAAA,iBACZW,GAAA,CAAYX,KAAA,kBACZY,GAAA,CAAYZ,KAAA,gBACZ,EACAiB,UAAA,CACAC,KAAA,CACAnB,QAAA,2BACA,EACAoB,OAAA,CACApB,QAAA,8BACA,EACAf,IAAA,CACAe,QAAA,4BACA,EACA,cACAA,QAAA,6BACA,EACAqB,OAAA,CACArB,QAAA,wBACA,EACA,iBACAA,QAAA,2BACA,CACA,EACAsB,OAAA,CACAX,GAAA,CACAV,KAAA,cACA,EACAW,GAAA,CACAX,KAAA,eACA,EACAY,GAAA,CACAZ,KAAA,cACA,CACA,EACAC,SAAA,CACAqB,YAAA,CACArB,SAAA,QACA,EACAsB,OAAA,CACAtB,SAAA,yCACA,EACAuB,KAAA,CACAvB,SAAA,sDACA,CACA,EACAwB,eAAA,CACAC,OAAA,CACA1B,KAAA,mBACA,EACA2B,OAAA,CACA3B,KAAA,8BACAnD,KAAA,iBACA,EACA+E,QAAA,CACA7B,QAAA,6CACAC,KAAA,OACA,CACA,EACA6B,iBAAA,CACAC,MAAA,CACA/B,QAAA,CACA,uBACA,sBACA,sBACA,sBACA,0BACA,yBACA,yBACA,wBACA,CAEA,CACA,EACAgC,gBAAA,CACAvB,KAAA,KACAO,OAAA,KACAM,OAAA,KACAJ,UAAA,OACAhB,SAAA,SACAwB,eAAA,QACA,EACAO,iBAAA,CACA,CACA/B,SAAA,kBACAnD,MAAA,CACAmD,SAAA,iCACA,CACA,EACA,iHCrKA,SAASgC,EAASC,CAAa,EAC7B,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,EAAkB,GAAAC,EAAAvJ,KAAA,IAClB5G,EAAAqP,GAAAa,EACAE,EAAAd,KAAA,IAAAA,EACAlJ,EAAkB,GAAA+J,EAAApF,WAAA,EAAW,KAC7BqF,GACAL,EAAA,IAEAD,MAAAA,GAAAA,GACA,EAAG,CAAAM,EAAAN,EAAA,EACHN,EAAiB,GAAAW,EAAApF,WAAA,EAAW,KAC5BqF,GACAL,EAAA,IAEAJ,MAAAA,GAAAA,GACA,EAAG,CAAAS,EAAAT,EAAA,EACH9J,EAAuB,GAAAsK,EAAApF,WAAA,EAAW,KAElCsF,CADA1K,EAAAS,EAAAoJ,CAAA,GAEA,EAAG,CAAA7J,EAAA6J,EAAApJ,EAAA,EACH,OACAT,OAAA,EAAAA,EACA6J,OAAAA,EACApJ,QAAAA,EACAP,aAAAA,EACAuK,aAAAA,EACAE,eAAA,CAAAtF,EAAA,EAAgC,KAChC,GAAAA,CAAA,CACA,gBAAArF,EACA,gBAAA3F,EACAiL,QAAe,GAAAsF,EAAAhI,CAAA,EAAKyC,EAAAC,OAAA,CAAApF,EACpB,GACA2K,mBAAA,CAAAxF,EAAA,EAAoC,KACpC,GAAAA,CAAA,CACAyF,OAAA,CAAA9K,EACA3F,GAAAA,CACA,EACA,CACA,wEC1CA,SAAA0Q,EAAAC,CAAA,CAAAC,CAAA,EACA,IAAAC,EAAAF,EAEA,IADA,GAAYG,EAAAC,CAAyC,EAAAF,EAAAD,IAAAC,CAAAA,EAAAA,EAAAzO,aAAA,EACrDyO,GAAA,IAAiCC,EAAAC,CAAyC,EAAAF,EAAAD,IAAAC,EAAAA,EAAAzO,aAAA,CAC1E,OAAAyO,GAAAxQ,SAAAoB,gBAAA,EAAApB,SAAAqB,eAAA,AACA","sources":["webpack://_N_E/./node_modules/.pnpm/@nextui-org+modal@2.0.36_@nextui-org+system@2.2.2_@nextui-org+theme@2.2.6_tailwindcss@3.4.4_t_xo4ucnw74u5t5ogtrrx2rxfhbi/node_modules/@nextui-org/modal/dist/chunk-6JNB4JMH.mjs","webpack://_N_E/./node_modules/.pnpm/@nextui-org+modal@2.0.36_@nextui-org+system@2.2.2_@nextui-org+theme@2.2.6_tailwindcss@3.4.4_t_xo4ucnw74u5t5ogtrrx2rxfhbi/node_modules/@nextui-org/modal/dist/chunk-EPDLEVDR.mjs","webpack://_N_E/./node_modules/.pnpm/@react-aria+overlays@3.22.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/usePreventScroll.mjs","webpack://_N_E/./node_modules/.pnpm/@nextui-org+use-aria-modal-overlay@2.0.10_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@nextui-org/use-aria-modal-overlay/dist/index.mjs","webpack://_N_E/./node_modules/.pnpm/@nextui-org+theme@2.2.6_tailwindcss@3.4.4_ts-node@10.9.1_@types+node@20.14.10_typescript@5.5.3__/node_modules/@nextui-org/theme/dist/chunk-INW3YHX5.mjs","webpack://_N_E/./node_modules/.pnpm/@nextui-org+modal@2.0.36_@nextui-org+system@2.2.2_@nextui-org+theme@2.2.6_tailwindcss@3.4.4_t_xo4ucnw74u5t5ogtrrx2rxfhbi/node_modules/@nextui-org/modal/dist/chunk-I4YDOO25.mjs","webpack://_N_E/./node_modules/.pnpm/@nextui-org+modal@2.0.36_@nextui-org+system@2.2.2_@nextui-org+theme@2.2.6_tailwindcss@3.4.4_t_xo4ucnw74u5t5ogtrrx2rxfhbi/node_modules/@nextui-org/modal/dist/chunk-T2APNBYK.mjs","webpack://_N_E/./node_modules/.pnpm/@nextui-org+modal@2.0.36_@nextui-org+system@2.2.2_@nextui-org+theme@2.2.6_tailwindcss@3.4.4_t_xo4ucnw74u5t5ogtrrx2rxfhbi/node_modules/@nextui-org/modal/dist/chunk-LT4XONRR.mjs","webpack://_N_E/./node_modules/.pnpm/@nextui-org+modal@2.0.36_@nextui-org+system@2.2.2_@nextui-org+theme@2.2.6_tailwindcss@3.4.4_t_xo4ucnw74u5t5ogtrrx2rxfhbi/node_modules/@nextui-org/modal/dist/chunk-P2T5LMDM.mjs","webpack://_N_E/./node_modules/.pnpm/@nextui-org+shared-icons@2.0.8_react@18.3.1/node_modules/@nextui-org/shared-icons/dist/chunk-LJROZDOV.mjs","webpack://_N_E/./node_modules/.pnpm/@nextui-org+use-disclosure@2.0.9_react@18.3.1/node_modules/@nextui-org/use-disclosure/dist/index.mjs","webpack://_N_E/./node_modules/.pnpm/@react-aria+utils@3.24.1_react@18.3.1/node_modules/@react-aria/utils/dist/getScrollParent.mjs"],"sourcesContent":["\"use client\";\n\n// src/modal-context.ts\nimport { createContext } from \"@nextui-org/react-utils\";\nvar [ModalProvider, useModalContext] = createContext({\n name: \"ModalContext\",\n errorMessage: \"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within ``\"\n});\n\nexport {\n ModalProvider,\n useModalContext\n};\n","\"use client\";\nimport {\n useModalContext\n} from \"./chunk-6JNB4JMH.mjs\";\n\n// src/modal-body.tsx\nimport { useEffect } from \"react\";\nimport { forwardRef } from \"@nextui-org/system\";\nimport { useDOMRef } from \"@nextui-org/react-utils\";\nimport { clsx } from \"@nextui-org/shared-utils\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ModalBody = forwardRef((props, ref) => {\n const { as, children, className, ...otherProps } = props;\n const { slots, classNames, bodyId, setBodyMounted } = useModalContext();\n const domRef = useDOMRef(ref);\n const Component = as || \"div\";\n useEffect(() => {\n setBodyMounted(true);\n return () => setBodyMounted(false);\n }, [setBodyMounted]);\n return /* @__PURE__ */ jsx(\n Component,\n {\n ref: domRef,\n className: slots.body({ class: clsx(classNames == null ? void 0 : classNames.body, className) }),\n id: bodyId,\n ...otherProps,\n children\n }\n );\n});\nModalBody.displayName = \"NextUI.ModalBody\";\nvar modal_body_default = ModalBody;\n\nexport {\n modal_body_default\n};\n","import {useLayoutEffect as $7mMvr$useLayoutEffect, isIOS as $7mMvr$isIOS, chain as $7mMvr$chain, getScrollParent as $7mMvr$getScrollParent} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n// @ts-ignore\nconst $49c51c25361d4cd2$var$visualViewport = typeof document !== 'undefined' && window.visualViewport;\n// HTML input types that do not cause the software keyboard to appear.\nconst $49c51c25361d4cd2$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n// The number of active usePreventScroll calls. Used to determine whether to revert back to the original page style/scroll position\nlet $49c51c25361d4cd2$var$preventScrollCount = 0;\nlet $49c51c25361d4cd2$var$restore;\nfunction $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(options = {}) {\n let { isDisabled: isDisabled } = options;\n (0, $7mMvr$useLayoutEffect)(()=>{\n if (isDisabled) return;\n $49c51c25361d4cd2$var$preventScrollCount++;\n if ($49c51c25361d4cd2$var$preventScrollCount === 1) {\n if ((0, $7mMvr$isIOS)()) $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollMobileSafari();\n else $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollStandard();\n }\n return ()=>{\n $49c51c25361d4cd2$var$preventScrollCount--;\n if ($49c51c25361d4cd2$var$preventScrollCount === 0) $49c51c25361d4cd2$var$restore();\n };\n }, [\n isDisabled\n ]);\n}\n// For most browsers, all we need to do is set `overflow: hidden` on the root element, and\n// add some padding to prevent the page from shifting when the scrollbar is hidden.\nfunction $49c51c25361d4cd2$var$preventScrollStandard() {\n return (0, $7mMvr$chain)($49c51c25361d4cd2$var$setStyle(document.documentElement, 'paddingRight', `${window.innerWidth - document.documentElement.clientWidth}px`), $49c51c25361d4cd2$var$setStyle(document.documentElement, 'overflow', 'hidden'));\n}\n// Mobile Safari is a whole different beast. Even with overflow: hidden,\n// it still scrolls the page in many situations:\n//\n// 1. When the bottom toolbar and address bar are collapsed, page scrolling is always allowed.\n// 2. When the keyboard is visible, the viewport does not resize. Instead, the keyboard covers part of\n// it, so it becomes scrollable.\n// 3. When tapping on an input, the page always scrolls so that the input is centered in the visual viewport.\n// This may cause even fixed position elements to scroll off the screen.\n// 4. When using the next/previous buttons in the keyboard to navigate between inputs, the whole page always\n// scrolls, even if the input is inside a nested scrollable element that could be scrolled instead.\n//\n// In order to work around these cases, and prevent scrolling without jankiness, we do a few things:\n//\n// 1. Prevent default on `touchmove` events that are not in a scrollable element. This prevents touch scrolling\n// on the window.\n// 2. Set `overscroll-behavior: contain` on nested scrollable regions so they do not scroll the page when at\n// the top or bottom. Work around a bug where this does not work when the element does not actually overflow\n// by preventing default in a `touchmove` event.\n// 3. Prevent default on `touchend` events on input elements and handle focusing the element ourselves.\n// 4. When focusing an input, apply a transform to trick Safari into thinking the input is at the top\n// of the page, which prevents it from scrolling the page. After the input is focused, scroll the element\n// into view ourselves, without scrolling the whole page.\n// 5. Offset the body by the scroll position using a negative margin and scroll to the top. This should appear the\n// same visually, but makes the actual scroll position always zero. This is required to make all of the\n// above work or Safari will still try to scroll the page when focusing an input.\n// 6. As a last resort, handle window scroll events, and scroll back to the top. This can happen when attempting\n// to navigate to an input with the next/previous buttons that's outside a modal.\nfunction $49c51c25361d4cd2$var$preventScrollMobileSafari() {\n let scrollable;\n let restoreScrollableStyles;\n let onTouchStart = (e)=>{\n // Store the nearest scrollable parent element from the element that the user touched.\n scrollable = (0, $7mMvr$getScrollParent)(e.target, true);\n if (scrollable === document.documentElement && scrollable === document.body) return;\n // Prevent scrolling up when at the top and scrolling down when at the bottom\n // of a nested scrollable area, otherwise mobile Safari will start scrolling\n // the window instead.\n if (scrollable instanceof HTMLElement && window.getComputedStyle(scrollable).overscrollBehavior === 'auto') restoreScrollableStyles = $49c51c25361d4cd2$var$setStyle(scrollable, 'overscrollBehavior', 'contain');\n };\n let onTouchMove = (e)=>{\n // Prevent scrolling the window.\n if (!scrollable || scrollable === document.documentElement || scrollable === document.body) {\n e.preventDefault();\n return;\n }\n // overscroll-behavior should prevent scroll chaining, but currently does not\n // if the element doesn't actually overflow. https://bugs.webkit.org/show_bug.cgi?id=243452\n // This checks that both the width and height do not overflow, otherwise we might\n // block horizontal scrolling too. In that case, adding `touch-action: pan-x` to\n // the element will prevent vertical page scrolling. We can't add that automatically\n // because it must be set before the touchstart event.\n if (scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth) e.preventDefault();\n };\n let onTouchEnd = (e)=>{\n let target = e.target;\n // Apply this change if we're not already focused on the target element\n if ($49c51c25361d4cd2$var$willOpenKeyboard(target) && target !== document.activeElement) {\n e.preventDefault();\n setupStyles();\n // Apply a transform to trick Safari into thinking the input is at the top of the page\n // so it doesn't try to scroll it into view. When tapping on an input, this needs to\n // be done before the \"focus\" event, so we have to focus the element ourselves.\n target.style.transform = 'translateY(-2000px)';\n target.focus();\n requestAnimationFrame(()=>{\n target.style.transform = '';\n });\n }\n if (restoreScrollableStyles) restoreScrollableStyles();\n };\n let onFocus = (e)=>{\n let target = e.target;\n if ($49c51c25361d4cd2$var$willOpenKeyboard(target)) {\n setupStyles();\n // Transform also needs to be applied in the focus event in cases where focus moves\n // other than tapping on an input directly, e.g. the next/previous buttons in the\n // software keyboard. In these cases, it seems applying the transform in the focus event\n // is good enough, whereas when tapping an input, it must be done before the focus event. 🤷‍♂️\n target.style.transform = 'translateY(-2000px)';\n requestAnimationFrame(()=>{\n target.style.transform = '';\n // This will have prevented the browser from scrolling the focused element into view,\n // so we need to do this ourselves in a way that doesn't cause the whole page to scroll.\n if ($49c51c25361d4cd2$var$visualViewport) {\n if ($49c51c25361d4cd2$var$visualViewport.height < window.innerHeight) // If the keyboard is already visible, do this after one additional frame\n // to wait for the transform to be removed.\n requestAnimationFrame(()=>{\n $49c51c25361d4cd2$var$scrollIntoView(target);\n });\n else // Otherwise, wait for the visual viewport to resize before scrolling so we can\n // measure the correct position to scroll to.\n $49c51c25361d4cd2$var$visualViewport.addEventListener('resize', ()=>$49c51c25361d4cd2$var$scrollIntoView(target), {\n once: true\n });\n }\n });\n }\n };\n let restoreStyles = null;\n let setupStyles = ()=>{\n if (restoreStyles) return;\n let onWindowScroll = ()=>{\n // Last resort. If the window scrolled, scroll it back to the top.\n // It should always be at the top because the body will have a negative margin (see below).\n window.scrollTo(0, 0);\n };\n // Record the original scroll position so we can restore it.\n // Then apply a negative margin to the body to offset it by the scroll position. This will\n // enable us to scroll the window to the top, which is required for the rest of this to work.\n let scrollX = window.pageXOffset;\n let scrollY = window.pageYOffset;\n restoreStyles = (0, $7mMvr$chain)($49c51c25361d4cd2$var$addEvent(window, 'scroll', onWindowScroll), $49c51c25361d4cd2$var$setStyle(document.documentElement, 'paddingRight', `${window.innerWidth - document.documentElement.clientWidth}px`), $49c51c25361d4cd2$var$setStyle(document.documentElement, 'overflow', 'hidden'), $49c51c25361d4cd2$var$setStyle(document.body, 'marginTop', `-${scrollY}px`), ()=>{\n window.scrollTo(scrollX, scrollY);\n });\n // Scroll to the top. The negative margin on the body will make this appear the same.\n window.scrollTo(0, 0);\n };\n let removeEvents = (0, $7mMvr$chain)($49c51c25361d4cd2$var$addEvent(document, 'touchstart', onTouchStart, {\n passive: false,\n capture: true\n }), $49c51c25361d4cd2$var$addEvent(document, 'touchmove', onTouchMove, {\n passive: false,\n capture: true\n }), $49c51c25361d4cd2$var$addEvent(document, 'touchend', onTouchEnd, {\n passive: false,\n capture: true\n }), $49c51c25361d4cd2$var$addEvent(document, 'focus', onFocus, true));\n return ()=>{\n // Restore styles and scroll the page back to where it was.\n restoreScrollableStyles === null || restoreScrollableStyles === void 0 ? void 0 : restoreScrollableStyles();\n restoreStyles === null || restoreStyles === void 0 ? void 0 : restoreStyles();\n removeEvents();\n };\n}\n// Sets a CSS property on an element, and returns a function to revert it to the previous value.\nfunction $49c51c25361d4cd2$var$setStyle(element, style, value) {\n let cur = element.style[style];\n element.style[style] = value;\n return ()=>{\n element.style[style] = cur;\n };\n}\n// Adds an event listener to an element, and returns a function to remove it.\nfunction $49c51c25361d4cd2$var$addEvent(target, event, handler, options) {\n target.addEventListener(event, handler, options);\n return ()=>{\n target.removeEventListener(event, handler, options);\n };\n}\nfunction $49c51c25361d4cd2$var$scrollIntoView(target) {\n let root = document.scrollingElement || document.documentElement;\n while(target && target !== root){\n // Find the parent scrollable element and adjust the scroll position if the target is not already in view.\n let scrollable = (0, $7mMvr$getScrollParent)(target);\n if (scrollable !== document.documentElement && scrollable !== document.body && scrollable !== target) {\n let scrollableTop = scrollable.getBoundingClientRect().top;\n let targetTop = target.getBoundingClientRect().top;\n if (targetTop > scrollableTop + target.clientHeight) scrollable.scrollTop += targetTop - scrollableTop;\n }\n target = scrollable.parentElement;\n }\n}\nfunction $49c51c25361d4cd2$var$willOpenKeyboard(target) {\n return target instanceof HTMLInputElement && !$49c51c25361d4cd2$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;\n}\n\n\nexport {$49c51c25361d4cd2$export$ee0f7cc6afcd1c18 as usePreventScroll};\n//# sourceMappingURL=usePreventScroll.module.js.map\n","// src/index.ts\nimport {\n ariaHideOutside,\n useOverlay,\n usePreventScroll,\n useOverlayFocusContain\n} from \"@react-aria/overlays\";\nimport { mergeProps } from \"@react-aria/utils\";\nimport { useEffect } from \"react\";\nfunction useAriaModalOverlay(props = {\n shouldBlockScroll: true\n}, state, ref) {\n let { overlayProps, underlayProps } = useOverlay(\n {\n ...props,\n isOpen: state.isOpen,\n onClose: state.close\n },\n ref\n );\n usePreventScroll({\n isDisabled: !state.isOpen || !props.shouldBlockScroll\n });\n useOverlayFocusContain();\n useEffect(() => {\n if (state.isOpen && ref.current) {\n return ariaHideOutside([ref.current]);\n }\n }, [state.isOpen, ref]);\n return {\n modalProps: mergeProps(overlayProps),\n underlayProps\n };\n}\nexport {\n useAriaModalOverlay\n};\n","import {\n tv\n} from \"./chunk-N2KXC5ZE.mjs\";\nimport {\n dataFocusVisibleClasses\n} from \"./chunk-XHQUSKIE.mjs\";\n\n// src/components/modal.ts\nvar modal = tv({\n slots: {\n wrapper: [\n \"flex\",\n \"w-screen\",\n \"h-[100dvh]\",\n \"fixed\",\n \"inset-0\",\n \"z-50\",\n \"overflow-x-auto\",\n \"justify-center\"\n ],\n base: [\n \"flex\",\n \"flex-col\",\n \"relative\",\n \"bg-white\",\n \"z-50\",\n \"w-full\",\n \"box-border\",\n \"bg-content1\",\n \"outline-none\",\n \"mx-1\",\n \"my-1\",\n \"sm:mx-6\",\n \"sm:my-16\"\n ],\n backdrop: \"z-50\",\n header: \"flex py-4 px-6 flex-initial text-large font-semibold\",\n body: \"flex flex-1 flex-col gap-3 px-6 py-2\",\n footer: \"flex flex-row gap-2 px-6 py-4 justify-end\",\n closeButton: [\n \"absolute\",\n \"appearance-none\",\n \"outline-none\",\n \"select-none\",\n \"top-1\",\n \"right-1\",\n \"rtl:left-1\",\n \"rtl:right-[unset]\",\n \"p-2\",\n \"text-foreground-500\",\n \"rounded-full\",\n \"hover:bg-default-100\",\n \"active:bg-default-200\",\n \"tap-highlight-transparent\",\n ...dataFocusVisibleClasses\n ]\n },\n variants: {\n size: {\n xs: {\n base: \"max-w-xs\"\n },\n sm: {\n base: \"max-w-sm\"\n },\n md: {\n base: \"max-w-md\"\n },\n lg: {\n base: \"max-w-lg\"\n },\n xl: {\n base: \"max-w-xl\"\n },\n \"2xl\": {\n base: \"max-w-2xl\"\n },\n \"3xl\": {\n base: \"max-w-3xl\"\n },\n \"4xl\": {\n base: \"max-w-4xl\"\n },\n \"5xl\": {\n base: \"max-w-5xl\"\n },\n full: {\n base: \"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] !rounded-none\"\n }\n },\n radius: {\n none: { base: \"rounded-none\" },\n sm: { base: \"rounded-small\" },\n md: { base: \"rounded-medium\" },\n lg: { base: \"rounded-large\" }\n },\n placement: {\n auto: {\n wrapper: \"items-end sm:items-center\"\n },\n center: {\n wrapper: \"items-center sm:items-center\"\n },\n top: {\n wrapper: \"items-start sm:items-start\"\n },\n \"top-center\": {\n wrapper: \"items-start sm:items-center\"\n },\n bottom: {\n wrapper: \"items-end sm:items-end\"\n },\n \"bottom-center\": {\n wrapper: \"items-end sm:items-center\"\n }\n },\n shadow: {\n sm: {\n base: \"shadow-small\"\n },\n md: {\n base: \"shadow-medium\"\n },\n lg: {\n base: \"shadow-large\"\n }\n },\n backdrop: {\n transparent: {\n backdrop: \"hidden\"\n },\n opaque: {\n backdrop: \"bg-overlay/50 backdrop-opacity-disabled\"\n },\n blur: {\n backdrop: \"backdrop-blur-md backdrop-saturate-150 bg-overlay/30\"\n }\n },\n scrollBehavior: {\n normal: {\n base: \"overflow-y-hidden\"\n },\n inside: {\n base: \"max-h-[calc(100%_-_7.5rem)]\",\n body: \"overflow-y-auto\"\n },\n outside: {\n wrapper: \"items-start sm:items-start overflow-y-auto\",\n base: \"my-16\"\n }\n },\n disableAnimation: {\n false: {\n wrapper: [\n \"[--scale-enter:100%]\",\n \"[--scale-exit:100%]\",\n \"[--slide-enter:0px]\",\n \"[--slide-exit:80px]\",\n \"sm:[--scale-enter:100%]\",\n \"sm:[--scale-exit:103%]\",\n \"sm:[--slide-enter:0px]\",\n \"sm:[--slide-exit:0px]\"\n ]\n }\n }\n },\n defaultVariants: {\n size: \"md\",\n radius: \"lg\",\n shadow: \"sm\",\n placement: \"auto\",\n backdrop: \"opaque\",\n scrollBehavior: \"normal\"\n },\n compoundVariants: [\n {\n backdrop: [\"opaque\", \"blur\"],\n class: {\n backdrop: \"w-screen h-screen fixed inset-0\"\n }\n }\n ]\n});\n\nexport {\n modal\n};\n","\"use client\";\n\n// src/use-modal.ts\nimport { useAriaModalOverlay } from \"@nextui-org/use-aria-modal-overlay\";\nimport { useCallback, useId, useRef, useState, useMemo } from \"react\";\nimport { modal } from \"@nextui-org/theme\";\nimport {\n mapPropsVariants,\n useProviderContext\n} from \"@nextui-org/system\";\nimport { useAriaButton } from \"@nextui-org/use-aria-button\";\nimport { useFocusRing } from \"@react-aria/focus\";\nimport { clsx, dataAttr, objectToDeps } from \"@nextui-org/shared-utils\";\nimport { useDOMRef } from \"@nextui-org/react-utils\";\nimport { useOverlayTriggerState } from \"@react-stately/overlays\";\nimport { mergeRefs, mergeProps } from \"@react-aria/utils\";\nfunction useModal(originalProps) {\n var _a, _b, _c;\n const globalContext = useProviderContext();\n const [props, variantProps] = mapPropsVariants(originalProps, modal.variantKeys);\n const {\n ref,\n as,\n className,\n classNames,\n isOpen,\n defaultOpen,\n onOpenChange,\n motionProps,\n closeButton,\n isDismissable = true,\n hideCloseButton = false,\n shouldBlockScroll = true,\n portalContainer,\n isKeyboardDismissDisabled = false,\n onClose,\n ...otherProps\n } = props;\n const Component = as || \"section\";\n const domRef = useDOMRef(ref);\n const closeButtonRef = useRef(null);\n const [headerMounted, setHeaderMounted] = useState(false);\n const [bodyMounted, setBodyMounted] = useState(false);\n const disableAnimation = (_b = (_a = originalProps.disableAnimation) != null ? _a : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _b : false;\n const dialogId = useId();\n const headerId = useId();\n const bodyId = useId();\n const state = useOverlayTriggerState({\n isOpen,\n defaultOpen,\n onOpenChange: (isOpen2) => {\n onOpenChange == null ? void 0 : onOpenChange(isOpen2);\n if (!isOpen2) {\n onClose == null ? void 0 : onClose();\n }\n }\n });\n const { modalProps, underlayProps } = useAriaModalOverlay(\n {\n isDismissable,\n shouldBlockScroll,\n isKeyboardDismissDisabled\n },\n state,\n domRef\n );\n const { buttonProps: closeButtonProps } = useAriaButton({ onPress: state.close }, closeButtonRef);\n const { isFocusVisible: isCloseButtonFocusVisible, focusProps: closeButtonFocusProps } = useFocusRing();\n const baseStyles = clsx(classNames == null ? void 0 : classNames.base, className);\n const slots = useMemo(\n () => modal({\n ...variantProps,\n disableAnimation\n }),\n [objectToDeps(variantProps), disableAnimation]\n );\n const getDialogProps = (props2 = {}, ref2 = null) => ({\n ref: mergeRefs(ref2, domRef),\n ...mergeProps(modalProps, otherProps, props2),\n className: slots.base({ class: clsx(baseStyles, props2.className) }),\n id: dialogId,\n \"data-open\": dataAttr(state.isOpen),\n \"data-dismissable\": dataAttr(isDismissable),\n \"aria-modal\": dataAttr(true),\n \"aria-labelledby\": headerMounted ? headerId : void 0,\n \"aria-describedby\": bodyMounted ? bodyId : void 0\n });\n const getBackdropProps = useCallback(\n (props2 = {}) => ({\n className: slots.backdrop({ class: classNames == null ? void 0 : classNames.backdrop }),\n onClick: () => state.close(),\n ...underlayProps,\n ...props2\n }),\n [slots, classNames, underlayProps]\n );\n const getCloseButtonProps = () => {\n return {\n role: \"button\",\n tabIndex: 0,\n \"aria-label\": \"Close\",\n \"data-focus-visible\": dataAttr(isCloseButtonFocusVisible),\n className: slots.closeButton({ class: classNames == null ? void 0 : classNames.closeButton }),\n ...mergeProps(closeButtonProps, closeButtonFocusProps)\n };\n };\n return {\n Component,\n slots,\n domRef,\n headerId,\n bodyId,\n motionProps,\n classNames,\n isDismissable,\n closeButton,\n hideCloseButton,\n portalContainer,\n shouldBlockScroll,\n backdrop: (_c = originalProps.backdrop) != null ? _c : \"opaque\",\n isOpen: state.isOpen,\n onClose: state.close,\n disableAnimation,\n setBodyMounted,\n setHeaderMounted,\n getDialogProps,\n getBackdropProps,\n getCloseButtonProps\n };\n}\n\nexport {\n useModal\n};\n","\"use client\";\n\n// src/modal-transition.ts\nimport { TRANSITION_EASINGS } from \"@nextui-org/framer-utils\";\nvar scaleInOut = {\n enter: {\n scale: \"var(--scale-enter)\",\n y: \"var(--slide-enter)\",\n opacity: 1,\n transition: {\n scale: {\n duration: 0.4,\n ease: TRANSITION_EASINGS.ease\n },\n opacity: {\n duration: 0.4,\n ease: TRANSITION_EASINGS.ease\n },\n y: {\n type: \"spring\",\n bounce: 0,\n duration: 0.6\n }\n }\n },\n exit: {\n scale: \"var(--scale-exit)\",\n y: \"var(--slide-exit)\",\n opacity: 0,\n transition: {\n duration: 0.3,\n ease: TRANSITION_EASINGS.ease\n }\n }\n};\n\nexport {\n scaleInOut\n};\n","\"use client\";\nimport {\n scaleInOut\n} from \"./chunk-T2APNBYK.mjs\";\nimport {\n useModalContext\n} from \"./chunk-6JNB4JMH.mjs\";\n\n// src/modal-content.tsx\nimport { cloneElement, isValidElement, useMemo, useCallback } from \"react\";\nimport { forwardRef } from \"@nextui-org/system\";\nimport { DismissButton } from \"@react-aria/overlays\";\nimport { TRANSITION_VARIANTS } from \"@nextui-org/framer-utils\";\nimport { CloseIcon } from \"@nextui-org/shared-icons\";\nimport { domAnimation, LazyMotion, m } from \"framer-motion\";\nimport { useDialog } from \"@react-aria/dialog\";\nimport { chain, mergeProps } from \"@react-aria/utils\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ModalContent = forwardRef((props, _) => {\n const { as, children, role = \"dialog\", ...otherProps } = props;\n const {\n Component: DialogComponent,\n domRef,\n slots,\n classNames,\n motionProps,\n backdrop,\n closeButton,\n hideCloseButton,\n disableAnimation,\n getDialogProps,\n getBackdropProps,\n getCloseButtonProps,\n onClose\n } = useModalContext();\n const Component = as || DialogComponent || \"div\";\n const { dialogProps } = useDialog(\n {\n role\n },\n domRef\n );\n const closeButtonContent = isValidElement(closeButton) ? cloneElement(closeButton, getCloseButtonProps()) : /* @__PURE__ */ jsx(\"button\", { ...getCloseButtonProps(), children: /* @__PURE__ */ jsx(CloseIcon, {}) });\n const onKeyDown = useCallback((e) => {\n if (e.key === \"Tab\" && e.nativeEvent.isComposing) {\n e.stopPropagation();\n e.preventDefault();\n }\n }, []);\n const contentProps = getDialogProps(mergeProps(dialogProps, otherProps));\n const content = /* @__PURE__ */ jsxs(Component, { ...contentProps, onKeyDown: chain(contentProps.onKeyDown, onKeyDown), children: [\n /* @__PURE__ */ jsx(DismissButton, { onDismiss: onClose }),\n !hideCloseButton && closeButtonContent,\n typeof children === \"function\" ? children(onClose) : children,\n /* @__PURE__ */ jsx(DismissButton, { onDismiss: onClose })\n ] });\n const backdropContent = useMemo(() => {\n if (backdrop === \"transparent\") {\n return null;\n }\n if (disableAnimation) {\n return /* @__PURE__ */ jsx(\"div\", { ...getBackdropProps() });\n }\n return /* @__PURE__ */ jsx(LazyMotion, { features: domAnimation, children: /* @__PURE__ */ jsx(\n m.div,\n {\n animate: \"enter\",\n exit: \"exit\",\n initial: \"exit\",\n variants: TRANSITION_VARIANTS.fade,\n ...getBackdropProps()\n }\n ) });\n }, [backdrop, disableAnimation, getBackdropProps]);\n const contents = disableAnimation ? /* @__PURE__ */ jsx(\"div\", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), \"data-slot\": \"wrapper\", children: content }) : /* @__PURE__ */ jsx(LazyMotion, { features: domAnimation, children: /* @__PURE__ */ jsx(\n m.div,\n {\n animate: \"enter\",\n className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }),\n \"data-slot\": \"wrapper\",\n exit: \"exit\",\n initial: \"exit\",\n variants: scaleInOut,\n ...motionProps,\n children: content\n }\n ) });\n return /* @__PURE__ */ jsxs(\"div\", { tabIndex: -1, children: [\n backdropContent,\n contents\n ] });\n});\nModalContent.displayName = \"NextUI.ModalContent\";\nvar modal_content_default = ModalContent;\n\nexport {\n modal_content_default\n};\n","\"use client\";\nimport {\n useModal\n} from \"./chunk-I4YDOO25.mjs\";\nimport {\n ModalProvider\n} from \"./chunk-6JNB4JMH.mjs\";\n\n// src/modal.tsx\nimport { AnimatePresence } from \"framer-motion\";\nimport { Overlay } from \"@react-aria/overlays\";\nimport { forwardRef } from \"@nextui-org/system\";\nimport { jsx } from \"react/jsx-runtime\";\nvar Modal = forwardRef((props, ref) => {\n const { children, ...otherProps } = props;\n const context = useModal({ ...otherProps, ref });\n const overlay = /* @__PURE__ */ jsx(Overlay, { portalContainer: context.portalContainer, children });\n return /* @__PURE__ */ jsx(ModalProvider, { value: context, children: context.disableAnimation && context.isOpen ? overlay : /* @__PURE__ */ jsx(AnimatePresence, { children: context.isOpen ? overlay : null }) });\n});\nModal.displayName = \"NextUI.Modal\";\nvar modal_default = Modal;\n\nexport {\n modal_default\n};\n","// src/close.tsx\nimport { jsx } from \"react/jsx-runtime\";\nvar CloseIcon = (props) => {\n const { isSelected, isIndeterminate, disableAnimation, ...otherProps } = props;\n return /* @__PURE__ */ jsx(\n \"svg\",\n {\n \"aria-hidden\": \"true\",\n fill: \"none\",\n focusable: \"false\",\n height: \"1em\",\n role: \"presentation\",\n stroke: \"currentColor\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 2,\n viewBox: \"0 0 24 24\",\n width: \"1em\",\n ...otherProps,\n children: /* @__PURE__ */ jsx(\"path\", { d: \"M18 6L6 18M6 6l12 12\" })\n }\n );\n};\n\nexport {\n CloseIcon\n};\n","// src/index.ts\nimport { chain } from \"@react-aria/utils\";\nimport { useControlledState } from \"@react-stately/utils\";\nimport { useCallbackRef } from \"@nextui-org/use-callback-ref\";\nimport { useCallback, useId } from \"react\";\nfunction useDisclosure(props = {}) {\n const {\n id: idProp,\n defaultOpen,\n isOpen: isOpenProp,\n onClose: onCloseProp,\n onOpen: onOpenProp,\n onChange = () => {\n }\n } = props;\n const onOpenPropCallbackRef = useCallbackRef(onOpenProp);\n const onClosePropCallbackRef = useCallbackRef(onCloseProp);\n const [isOpen, setIsOpen] = useControlledState(isOpenProp, defaultOpen || false, onChange);\n const reactId = useId();\n const id = idProp || reactId;\n const isControlled = isOpenProp !== void 0;\n const onClose = useCallback(() => {\n if (!isControlled) {\n setIsOpen(false);\n }\n onClosePropCallbackRef == null ? void 0 : onClosePropCallbackRef();\n }, [isControlled, onClosePropCallbackRef]);\n const onOpen = useCallback(() => {\n if (!isControlled) {\n setIsOpen(true);\n }\n onOpenPropCallbackRef == null ? void 0 : onOpenPropCallbackRef();\n }, [isControlled, onOpenPropCallbackRef]);\n const onOpenChange = useCallback(() => {\n const action = isOpen ? onClose : onOpen;\n action();\n }, [isOpen, onOpen, onClose]);\n return {\n isOpen: !!isOpen,\n onOpen,\n onClose,\n onOpenChange,\n isControlled,\n getButtonProps: (props2 = {}) => ({\n ...props2,\n \"aria-expanded\": isOpen,\n \"aria-controls\": id,\n onClick: chain(props2.onClick, onOpenChange)\n }),\n getDisclosureProps: (props2 = {}) => ({\n ...props2,\n hidden: !isOpen,\n id\n })\n };\n}\nexport {\n useDisclosure\n};\n","import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from \"./isScrollable.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {\n let scrollableNode = node;\n if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;\n while(scrollableNode && !(0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow))scrollableNode = scrollableNode.parentElement;\n return scrollableNode || document.scrollingElement || document.documentElement;\n}\n\n\nexport {$62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent};\n//# sourceMappingURL=getScrollParent.module.js.map\n"],"names":["ModalProvider","useModalContext","createContext","name","errorMessage","ModalBody","forwardRef","props","ref","as","children","className","otherProps","slots","classNames","bodyId","setBodyMounted","domRef","useDOMRef","useEffect","jsx","body","class","clsx","id","displayName","modal_body_default","$49c51c25361d4cd2$var$restore","$49c51c25361d4cd2$var$visualViewport","document","window","visualViewport","$49c51c25361d4cd2$var$nonTextInputTypes","Set","$49c51c25361d4cd2$var$preventScrollCount","$49c51c25361d4cd2$var$setStyle","element","style","value","cur","$49c51c25361d4cd2$var$addEvent","target","event","handler","options","addEventListener","removeEventListener","$49c51c25361d4cd2$var$scrollIntoView","root","scrollingElement","documentElement","scrollable","getScrollParent","r","scrollableTop","getBoundingClientRect","top","targetTop","clientHeight","scrollTop","parentElement","$49c51c25361d4cd2$var$willOpenKeyboard","HTMLInputElement","has","type","HTMLTextAreaElement","HTMLElement","isContentEditable","modal","chunk_N2KXC5ZE","tv","wrapper","base","backdrop","header","footer","closeButton","chunk_XHQUSKIE","Dh","variants","size","xs","sm","md","lg","xl","full","radius","none","placement","auto","center","bottom","shadow","transparent","opaque","blur","scrollBehavior","normal","inside","outside","disableAnimation","false","defaultVariants","compoundVariants","useModal","originalProps","_a","_b","_c","globalContext","useProviderContext","variantProps","mapPropsVariants","variantKeys","isOpen","defaultOpen","onOpenChange","motionProps","isDismissable","hideCloseButton","shouldBlockScroll","portalContainer","isKeyboardDismissDisabled","onClose","closeButtonRef","useRef","headerMounted","setHeaderMounted","useState","bodyMounted","dialogId","useId","headerId","state","useOverlayTriggerState","isOpen2","modalProps","underlayProps","useAriaModalOverlay","overlayProps","useOverlay","I","close","$49c51c25361d4cd2$export$ee0f7cc6afcd1c18","isDisabled","useLayoutEffect","b","restoreScrollableStyles","restoreStyles","setupStyles","removeEvents","platform","gn","scrollX","pageXOffset","scrollY","pageYOffset","chain","t","scrollTo","innerWidth","clientWidth","e","getComputedStyle","overscrollBehavior","passive","capture","preventDefault","scrollHeight","scrollWidth","activeElement","transform","focus","requestAnimationFrame","height","innerHeight","once","Overlay","Bq","react","current","ariaHideOutside","R","mergeProps","d","buttonProps","closeButtonProps","useAriaButton","onPress","isFocusVisible","isCloseButtonFocusVisible","focusProps","closeButtonFocusProps","useFocusRing","baseStyles","useMemo","objectToDeps","getBackdropProps","useCallback","props2","onClick","Component","getDialogProps","ref2","mergeRefs","dataAttr","getCloseButtonProps","role","tabIndex","scaleInOut","enter","scale","y","opacity","transition","duration","ease","TRANSITION_EASINGS","bounce","exit","ModalContent","_","DialogComponent","dialogProps","useDialog","closeButtonContent","isValidElement","cloneElement","CloseIcon","onKeyDown","key","nativeEvent","isComposing","stopPropagation","contentProps","content","jsxs","DismissButton","onDismiss","backdropContent","LazyMotion","features","domAnimation","m","div","animate","initial","TRANSITION_VARIANTS","fade","contents","modal_content_default","Modal","context","overlay","AnimatePresence","modal_default","isSelected","isIndeterminate","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","fill","focusable","stroke","strokeLinecap","strokeLinejoin","strokeWidth","viewBox","width","useDisclosure","idProp","isOpenProp","onCloseProp","onOpen","onOpenProp","onChange","onOpenPropCallbackRef","_nextui_org_use_callback_ref__WEBPACK_IMPORTED_MODULE_1__","W","onClosePropCallbackRef","setIsOpen","_react_stately_utils__WEBPACK_IMPORTED_MODULE_2__","z","reactId","react__WEBPACK_IMPORTED_MODULE_0__","isControlled","action","getButtonProps","_react_aria_utils__WEBPACK_IMPORTED_MODULE_3__","getDisclosureProps","hidden","$62d8ded9296f3872$export$cfa2225e87938781","node","checkForOverflow","scrollableNode","_isScrollable_mjs__WEBPACK_IMPORTED_MODULE_0__","a"],"sourceRoot":""}