{"version":3,"file":"index.cjs","sources":["../../../src/components/Dialog/index.tsx"],"sourcesContent":["import { cn } from \"@/components/utils\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\nimport * as React from \"react\";\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n  React.ElementRef<typeof DialogPrimitive.Overlay>,\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n  <DialogPrimitive.Overlay\n    ref={ref}\n    className={cn(\n      \"fixed inset-0 z-[1004] bg-black/60  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n      className\n    )}\n    {...props}\n  />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n  React.ElementRef<typeof DialogPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n  <DialogPortal>\n    <DialogOverlay />\n    <DialogPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"fixed left-[50%] top-[50%] z-[1005] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background 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\",\n        className\n      )}\n      {...props}\n    >\n      {children}\n      <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n        <X className=\"h-4 w-4\" />\n        <span className=\"sr-only\">Close</span>\n      </DialogPrimitive.Close>\n    </DialogPrimitive.Content>\n  </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\"flex flex-col space-y-1.5 text-left\", className)}\n    {...props}\n  />\n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\n      \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n      className\n    )}\n    {...props}\n  />\n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogTitle = React.forwardRef<\n  React.ElementRef<typeof DialogPrimitive.Title>,\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n  <DialogPrimitive.Title\n    ref={ref}\n    className={cn(\n      \"text-lg font-semibold leading-none tracking-tight\",\n      className\n    )}\n    {...props}\n  />\n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n  React.ElementRef<typeof DialogPrimitive.Description>,\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n  <DialogPrimitive.Description\n    ref={ref}\n    className={cn(\"text-sm text-muted-foreground\", className)}\n    {...props}\n  />\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n  Dialog,\n  DialogClose,\n  DialogContent,\n  DialogDescription,\n  DialogFooter,\n  DialogHeader,\n  DialogOverlay,\n  DialogPortal,\n  DialogTitle,\n  DialogTrigger,\n};\n"],"names":["Dialog","DialogPrimitive.Root","Root","DialogTrigger","DialogPrimitive.Trigger","Trigger","DialogPortal","DialogPrimitive.Portal","Portal","DialogClose","DialogPrimitive.Close","Close","DialogOverlay","React","forwardRef","className","props","ref","jsx","jsxRuntimeExports","DialogPrimitive.Overlay","Overlay","cn","displayName","DialogContent","children","jsxs","jsxRuntime","DialogPrimitive.Content","Content","X","DialogHeader","DialogFooter","DialogTitle","DialogPrimitive.Title","Title","DialogDescription","DialogPrimitive.Description","Description"],"mappings":"6iBAKMA,EAASC,EAAgBC,KAEzBC,EAAgBC,EAAgBC,QAEhCC,EAAeC,EAAgBC,OAE/BC,EAAcC,EAAgBC,MAE9BC,EAAgBC,EAAMC,YAG1B,EAAGC,eAAcC,GAASC,IAC1BC,EAAAC,kBAAAD,IAACE,EAAgBC,QAAhB,CACCJ,MACAF,UAAWO,EAAAA,GACT,8JACAP,MAEEC,MAGRJ,EAAcW,YAAcH,EAAwBC,QAAAE,YAEpD,MAAMC,EAAgBX,EAAMC,YAG1B,EAAGC,YAAWU,cAAaT,GAASC,IACpCS,EAAAA,kBAAAA,KAACpB,EACC,CAAAmB,SAAA,CAAAE,EAAAR,kBAAAD,IAACN,EAAc,MACfO,kBAAAO,KAACE,EAAgBC,QAAhB,CACCZ,MACAF,UAAWO,EAAAA,GACT,kgBACAP,MAEEC,EAEHS,SAAA,CAAAA,EACAC,EAAAA,kBAAAA,KAAAhB,EAAAA,MAAA,CAAsBK,UAAU,gRAC/BU,SAAA,CAACP,EAAAA,kBAAAA,IAAAY,EAAAA,EAAA,CAAEf,UAAU,YACZG,EAAAC,kBAAAD,IAAA,OAAA,CAAKH,UAAU,UAAUU,SAAK,qBAKvCD,EAAcD,YAAcK,EAAwBC,QAAAN,YAEpD,MAAMQ,EAAe,EACnBhB,eACGC,OAEHG,kBAAAD,IAAC,MAAA,CACCH,UAAWO,EAAAA,GAAG,sCAAuCP,MACjDC,IAGRe,EAAaR,YAAc,eAE3B,MAAMS,EAAe,EACnBjB,eACGC,OAEHG,kBAAAD,IAAC,MAAA,CACCH,UAAWO,EAAAA,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