{"version":3,"sources":["../../../../src/lib/elements/alert-dialog.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport {\n  Content as RadixAlertDialogContent,\n  type ContentProps as RadixAlertDialogContentProps,\n  Description as RadixAlertDialogDescription,\n  type DescriptionProps as RadixAlertDialogDescriptionProps,\n} from \"@radix-ui/themes/components/alert-dialog\";\nimport { useElement } from \"../widgets-context.js\";\nimport { getDomProps, namespaceClassNames } from \"../utils.js\";\nimport { useDialogOverlayHack } from \"./utils.js\";\n\ninterface ContentProps extends RadixAlertDialogContentProps {}\n\nconst AlertDialogContent = React.forwardRef<HTMLDivElement, ContentProps>(\n  function AlertDialogContent({ className, ...props }, forwardedRef) {\n    const element = useElement(\"dialog\");\n    const { ref } = useDialogOverlayHack(forwardedRef, {\n      className: namespaceClassNames(\"dialog-overlay\"),\n      selector: \".rt-DialogOverlay\",\n    });\n    return (\n      <RadixAlertDialogContent\n        ref={ref}\n        {...getDomProps({ elementId: \"dialog\", className })}\n        {...props}\n        {...element}\n      />\n    );\n  },\n);\n\ninterface DescriptionProps extends RadixAlertDialogDescriptionProps {}\n\nconst AlertDialogDescription = React.forwardRef<\n  HTMLParagraphElement,\n  DescriptionProps\n>(function AlertDialogDescription({ size = \"2\", ...props }, forwardedRef) {\n  return (\n    <RadixAlertDialogDescription ref={forwardedRef} size={size} {...props} />\n  );\n});\n\nexport { AlertDialogContent as Content, AlertDialogDescription as Description };\nexport type { ContentProps, DescriptionProps };\n\nexport {\n  Action,\n  Cancel,\n  Root,\n  Title,\n  Trigger,\n} from \"@radix-ui/themes/components/alert-dialog\";\nexport type {\n  ActionProps,\n  CancelProps,\n  RootProps,\n  TitleProps,\n  TriggerProps,\n} from \"@radix-ui/themes/components/alert-dialog\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBM;AArBN,YAAuB;AACvB,0BAKO;AACP,6BAA2B;AAC3B,mBAAiD;AACjD,IAAAA,gBAAqC;AAoCrC,IAAAC,uBAMO;AAtCP,MAAM,qBAAqB,MAAM;AAAA,EAC/B,SAASC,oBAAmB,EAAE,WAAW,GAAG,MAAM,GAAG,cAAc;AACjE,UAAM,cAAU,mCAAW,QAAQ;AACnC,UAAM,EAAE,IAAI,QAAI,oCAAqB,cAAc;AAAA,MACjD,eAAW,kCAAoB,gBAAgB;AAAA,MAC/C,UAAU;AAAA,IACZ,CAAC;AACD,WACE;AAAA,MAAC,oBAAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACC,OAAG,0BAAY,EAAE,WAAW,UAAU,UAAU,CAAC;AAAA,QACjD,GAAG;AAAA,QACH,GAAG;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AAIA,MAAM,yBAAyB,MAAM,WAGnC,SAASC,wBAAuB,EAAE,OAAO,KAAK,GAAG,MAAM,GAAG,cAAc;AACxE,SACE,4CAAC,oBAAAC,aAAA,EAA4B,KAAK,cAAc,MAAa,GAAG,OAAO;AAE3E,CAAC;","names":["import_utils","import_alert_dialog","AlertDialogContent","RadixAlertDialogContent","AlertDialogDescription","RadixAlertDialogDescription"]}