var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
    for (var name in all) __defProp(target, name, {
      get: all[name],
      enumerable: !0
    });
  },
  __copyProps = (to, from, except, desc) => {
    if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
      get: () => from[key],
      enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
    });
    return to;
  };
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
  value: !0
}), mod);
var Dialog_exports = {};
__export(Dialog_exports, {
  Dialog: () => Dialog
});
module.exports = __toCommonJS(Dialog_exports);
var import_tamagui = require("tamagui"),
  import_dimensions = require("./dimensions.cjs"),
  import_typography = require("./typography.cjs");
const DialogContext = (0, import_tamagui.createStyledContext)({
    fullscreen: !1
  }),
  DialogFrame = (0, import_tamagui.styled)(import_tamagui.Dialog, {
    name: "Dialog",
    context: DialogContext
  }),
  Content = (0, import_tamagui.styled)(import_tamagui.Dialog.Content, {
    name: "DialogContainer",
    context: DialogContext,
    backgroundColor: "$surfaceContainerLowest",
    borderRadius: "$shape.corner_xl",
    padding: 24,
    minWidth: 280,
    maxWidth: 560,
    elevate: !0,
    key: "content",
    overflow: "hidden",
    animateOnly: ["transform", "opacity"],
    $compact: {
      mx: 20,
      backgroundColor: "$surfaceContainerLowest"
    },
    animation: ["quick", {
      o: {
        overshootClamping: !0
      }
    }],
    enterStyle: {
      x: 0,
      y: -20,
      opacity: 0,
      scale: 0.9
    },
    exitStyle: {
      x: 0,
      y: 10,
      opacity: 0,
      scale: 0.95
    },
    variants: {
      fullscreen: {
        true: {
          minWidth: import_dimensions.WINDOW_WIDTH,
          maxWidth: import_dimensions.WINDOW_WIDTH,
          width: import_dimensions.WINDOW_WIDTH,
          minHeight: import_dimensions.WINDOW_HEIGHT,
          maxHeight: import_dimensions.WINDOW_HEIGHT,
          height: import_dimensions.WINDOW_HEIGHT,
          borderRadius: 0,
          display: "flex",
          justifyContent: "center",
          flexDirection: "row",
          padding: 0
        },
        false: {}
      }
    },
    defaultVariants: {
      fullscreen: !1
    }
  }),
  Headline = (0, import_tamagui.styled)(import_typography.Headline, {
    name: "DialogHeadline",
    context: DialogContext,
    size: "small"
  }),
  Title = (0, import_tamagui.styled)(import_tamagui.Dialog.Title, {
    context: DialogContext,
    name: "DialogTitle",
    mb: 16
  }),
  SupportingText = (0, import_tamagui.styled)(import_typography.Body, {
    size: "medium",
    mb: 24
  }),
  Overlay = (0, import_tamagui.styled)(import_tamagui.Dialog.Overlay, {
    context: DialogContext,
    name: "DialogOverlay",
    backgroundColor: "$scrim",
    key: "overlay",
    // animation: 'slow',
    opacity: 0.6,
    enterStyle: {
      opacity: 0
    },
    exitStyle: {
      opacity: 0
    }
  }),
  Actions = (0, import_tamagui.styled)(import_tamagui.XStack, {
    name: "DialogActions",
    width: "100%",
    justifyContent: "flex-end",
    marginTop: 24,
    gap: 8
  }),
  Header = (0, import_tamagui.styled)(import_tamagui.View, {
    name: "DialogHeader",
    mb: 16
  }),
  Dialog = (0, import_tamagui.withStaticProperties)(DialogFrame, {
    Props: DialogContext.Provider,
    Content,
    Headline,
    SupportingText,
    Trigger: import_tamagui.Dialog.Trigger,
    Portal: import_tamagui.Dialog.Portal,
    Overlay,
    Actions,
    Header,
    Close: import_tamagui.Dialog.Close,
    Title
  });