const e=require(`./chunk-BcutgqC9.cjs`),t=require(`./utils-8yHOSEWy.cjs`),n=require(`./x-BCptJoBS.cjs`),r=require(`./dist-YgKfMPGA.cjs`),i=require(`./dist-Ct4_oLGd.cjs`);let a=require(`react`);a=e.n(a,1);let o=require(`react/jsx-runtime`);var s=r.o,c=r.a,l=a.default.forwardRef(({className:e,...n},i)=>(0,o.jsx)(r.i,{...n,ref:i,className:t.t(`fixed inset-0 z-50 backdrop-blur-[18px] bg-[#f7f7f7]/[.9] dark:bg-[#55606E]/[.9] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e)}));l.displayName=r.i.displayName;var u=a.default.forwardRef(({className:e,children:n,onOpenChange:i,inPortal:a=!1,overlayClassName:s,...u},d)=>{let f=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l,{onClick:()=>i?.(!1),className:s}),(0,o.jsx)(r.n,{...u,ref:d,className:t.t(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg max-h-[90vh] overflow-auto translate-x-[-50%] translate-y-[-50%] gap-4 border border-primary-gray-200 bg-primary-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),children:n})]});return a?(0,o.jsx)(c,{"data-slot":`drawer-portal`,children:f}):f});u.displayName=r.n.displayName;function d({className:e,...n}){return(0,o.jsx)(`div`,{...n,className:t.t(`flex flex-col gap-1.5 text-center sm:text-left`,e)})}d.displayName=`DialogHeader`;function f({className:e,children:t,...n}){return(0,o.jsx)(`div`,{...n,className:e,children:t})}f.displayName=`DialogFooter`;var p=a.default.forwardRef(({className:e,...n},i)=>(0,o.jsx)(r.s,{...n,ref:i,className:t.t(`mb-0 p-0 text-[1.563rem] md:text-[2.188rem] font-normal leading-[1.15] text-primary-black dark:text-primary-white`,e)}));p.displayName=r.s.displayName;var m=a.default.forwardRef(({className:e,...n},i)=>(0,o.jsx)(r.r,{...n,ref:i,className:t.t(`text-sm text-primary-gray-600 dark:text-primary-gray-300 m-0`,e)}));m.displayName=r.r.displayName;function h(e){let{title:r,description:c,children:l,footer:h,open:g,onClose:_,className:v,titleClassName:y,footerClassName:b,descriptionClassName:x,overlayClassName:S,closeButtonClassName:C,showCloseButton:w=!0,inPortal:T=!1}=e,E=a.default.useId(),D=a.default.useId();return(0,o.jsx)(s,{open:g,onOpenChange:e=>{e||_?.()},children:(0,o.jsxs)(u,{inPortal:T,className:t.t(`rounded-none p-16 max-w-(--breakpoint-xl) undp-scrollbar`,`data-[state=open]:animate-in data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,`data-[state=closed]:slide-out-to-top-[2%] data-[state=open]:slide-in-from-top-[2%]`,v),overlayClassName:S,onOpenChange:e=>{e||_?.()},"aria-describedby":c?E:void 0,"aria-labelledby":r?D:void 0,children:[w&&(0,o.jsx)(`button`,{type:`button`,onClick:()=>{_?.()},className:t.t(`absolute right-6 top-6 p-2 bg-primary-gray-200 dark:bg-primary-gray-600 rounded-full ring-offset-background transition-opacity hover:bg-primary-gray-300 dark:hover:bg-primary-gray-500 disabled:pointer-events-none data-[state=open]:bg-primary-gray-200 dark:data-[state=open]:bg-primary-gray-600 data-[state=open]:text-primary-gray-600`,C),children:(0,o.jsx)(n.t,{className:`h-6 w-6 stroke-primary-black dark:stroke-primary-gray-100`})}),r||c?(0,o.jsxs)(d,{children:[r&&(0,o.jsx)(p,{id:D,className:y,children:r}),c&&(0,o.jsx)(m,{className:x,id:E,children:c})]}):(0,o.jsx)(i.r,{children:(0,o.jsx)(p,{children:`This a modal`})}),l,h&&(0,o.jsx)(f,{className:b,children:h})]})})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
//# sourceMappingURL=modal-EI3zhrKp.cjs.map