"use client";
import { clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import * as React from 'react';
import { cva } from 'class-variance-authority';
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';

// lib/utils.ts
function cn(...inputs) {
  return twMerge(clsx(inputs));
}
function normalizePhoneNumber(input) {
  const trimmed = input.trim();
  if (trimmed.toLowerCase().startsWith("tel:")) {
    return trimmed;
  }
  const match = trimmed.match(/^[\s\+\-\(\)]*(\d[\d\s\-\(\)\.]*\d)[\s\-]*(x|ext\.?|extension)?[\s\-]*(\d+)?$/i);
  if (match) {
    const mainNumber = match[1].replace(/[\s\-\(\)\.]/g, "");
    const extension = match[3];
    const normalized = mainNumber.length >= 10 && !trimmed.startsWith("+") ? `+${mainNumber}` : mainNumber;
    const withExtension = extension ? `${normalized};ext=${extension}` : normalized;
    return `tel:${withExtension}`;
  }
  const cleaned = trimmed.replace(/[\s\-\(\)\.]/g, "");
  return `tel:${cleaned}`;
}
function normalizeEmail(input) {
  const trimmed = input.trim();
  if (trimmed.toLowerCase().startsWith("mailto:")) {
    return trimmed;
  }
  return `mailto:${trimmed}`;
}
function isEmail(input) {
  const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
  return emailRegex.test(input.trim());
}
function isPhoneNumber(input) {
  const trimmed = input.trim();
  if (trimmed.toLowerCase().startsWith("tel:")) {
    return true;
  }
  const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
  return phoneRegex.test(trimmed);
}
function isInternalUrl(href) {
  if (typeof window === "undefined") {
    return href.startsWith("/") && !href.startsWith("//");
  }
  const trimmed = href.trim();
  if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
    return true;
  }
  try {
    const url = new URL(trimmed, window.location.href);
    const currentOrigin = window.location.origin;
    const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
    return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
  } catch {
    return false;
  }
}
function toRelativePath(href) {
  if (typeof window === "undefined") {
    return href;
  }
  const trimmed = href.trim();
  if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
    return trimmed;
  }
  try {
    const url = new URL(trimmed, window.location.href);
    const currentOrigin = window.location.origin;
    const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
    if (normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin)) {
      return url.pathname + url.search + url.hash;
    }
  } catch {
  }
  return trimmed;
}
function useNavigation({
  href,
  onClick
} = {}) {
  const linkType = React.useMemo(() => {
    if (!href || href.trim() === "") {
      return onClick ? "none" : "none";
    }
    const trimmed = href.trim();
    if (trimmed.toLowerCase().startsWith("mailto:") || isEmail(trimmed)) {
      return "mailto";
    }
    if (trimmed.toLowerCase().startsWith("tel:") || isPhoneNumber(trimmed)) {
      return "tel";
    }
    if (isInternalUrl(trimmed)) {
      return "internal";
    }
    try {
      new URL(trimmed, typeof window !== "undefined" ? window.location.href : "http://localhost");
      return "external";
    } catch {
      return "internal";
    }
  }, [href, onClick]);
  const normalizedHref = React.useMemo(() => {
    if (!href || href.trim() === "") {
      return void 0;
    }
    const trimmed = href.trim();
    switch (linkType) {
      case "tel":
        return normalizePhoneNumber(trimmed);
      case "mailto":
        return normalizeEmail(trimmed);
      case "internal":
        return toRelativePath(trimmed);
      case "external":
        return trimmed;
      default:
        return trimmed;
    }
  }, [href, linkType]);
  const target = React.useMemo(() => {
    switch (linkType) {
      case "external":
        return "_blank";
      case "internal":
        return "_self";
      case "mailto":
      case "tel":
        return void 0;
      default:
        return void 0;
    }
  }, [linkType]);
  const rel = React.useMemo(() => {
    if (linkType === "external") {
      return "noopener noreferrer";
    }
    return void 0;
  }, [linkType]);
  const isExternal = linkType === "external";
  const isInternal = linkType === "internal";
  const shouldUseRouter = isInternal && typeof normalizedHref === "string" && normalizedHref.startsWith("/");
  const handleClick = React.useCallback(
    (event) => {
      if (onClick) {
        try {
          onClick(event);
        } catch (error) {
          console.error("Error in user onClick handler:", error);
        }
      }
      if (event.defaultPrevented) {
        return;
      }
      if (shouldUseRouter && normalizedHref && event.button === 0 && // left-click only
      !event.metaKey && !event.altKey && !event.ctrlKey && !event.shiftKey) {
        if (typeof window !== "undefined") {
          const handler = window.__opensiteNavigationHandler;
          if (typeof handler === "function") {
            try {
              const handled = handler(normalizedHref, event.nativeEvent || event);
              if (handled !== false) {
                event.preventDefault();
              }
            } catch (error) {
              console.error("Error in navigation handler:", error);
            }
          }
        }
      }
    },
    [onClick, shouldUseRouter, normalizedHref]
  );
  return {
    linkType,
    normalizedHref,
    target,
    rel,
    isExternal,
    isInternal,
    shouldUseRouter,
    handleClick
  };
}
var baseStyles = [
  // Layout
  "inline-flex items-center justify-center gap-2 whitespace-nowrap shrink-0",
  // Typography - using CSS variables with sensible defaults
  "font-[var(--button-font-family,inherit)]",
  "font-[var(--button-font-weight,500)]",
  "tracking-[var(--button-letter-spacing,0)]",
  "leading-[var(--button-line-height,1.25)]",
  "[text-transform:var(--button-text-transform,none)]",
  "text-sm",
  // Border radius
  "rounded-[var(--button-radius,var(--radius,0.375rem))]",
  // Smooth transition - using [transition:...] to set full shorthand property (not just transition-property)
  "[transition:var(--button-transition,all_250ms_cubic-bezier(0.4,0,0.2,1))]",
  // Box shadow (master level) - using [box-shadow:...] for complex multi-value shadows
  "[box-shadow:var(--button-shadow,none)]",
  "hover:[box-shadow:var(--button-shadow-hover,var(--button-shadow,none))]",
  // Disabled state
  "disabled:pointer-events-none disabled:opacity-50",
  // SVG handling
  "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
  // Focus styles
  "outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
  // Invalid state
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
].join(" ");
var buttonVariants = cva(baseStyles, {
  variants: {
    variant: {
      // Default (Primary) variant - full customization
      default: [
        "bg-[var(--button-default-bg,hsl(var(--primary)))]",
        "text-[var(--button-default-fg,hsl(var(--primary-foreground)))]",
        "border-[length:var(--button-default-border-width,0px)]",
        "border-[color:var(--button-default-border,transparent)]",
        "[box-shadow:var(--button-default-shadow,var(--button-shadow,none))]",
        "hover:bg-[var(--button-default-hover-bg,hsl(var(--primary)/0.9))]",
        "hover:text-[var(--button-default-hover-fg,var(--button-default-fg,hsl(var(--primary-foreground))))]",
        "hover:border-[color:var(--button-default-hover-border,var(--button-default-border,transparent))]",
        "hover:[box-shadow:var(--button-default-shadow-hover,var(--button-shadow-hover,var(--button-default-shadow,var(--button-shadow,none))))]"
      ].join(" "),
      // Destructive variant - full customization
      destructive: [
        "bg-[var(--button-destructive-bg,hsl(var(--destructive)))]",
        "text-[var(--button-destructive-fg,white)]",
        "border-[length:var(--button-destructive-border-width,0px)]",
        "border-[color:var(--button-destructive-border,transparent)]",
        "[box-shadow:var(--button-destructive-shadow,var(--button-shadow,none))]",
        "hover:bg-[var(--button-destructive-hover-bg,hsl(var(--destructive)/0.9))]",
        "hover:text-[var(--button-destructive-hover-fg,var(--button-destructive-fg,white))]",
        "hover:border-[color:var(--button-destructive-hover-border,var(--button-destructive-border,transparent))]",
        "hover:[box-shadow:var(--button-destructive-shadow-hover,var(--button-shadow-hover,var(--button-destructive-shadow,var(--button-shadow,none))))]",
        "focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
        "dark:bg-destructive/60"
      ].join(" "),
      // Outline variant - full customization with proper border handling
      outline: [
        "bg-[var(--button-outline-bg,hsl(var(--background)))]",
        "text-[var(--button-outline-fg,inherit)]",
        "border-[length:var(--button-outline-border-width,1px)]",
        "border-[color:var(--button-outline-border,hsl(var(--border)))]",
        "[box-shadow:var(--button-outline-shadow,var(--button-shadow,0_1px_2px_0_rgb(0_0_0/0.05)))]",
        "hover:bg-[var(--button-outline-hover-bg,hsl(var(--accent)))]",
        "hover:text-[var(--button-outline-hover-fg,hsl(var(--accent-foreground)))]",
        "hover:border-[color:var(--button-outline-hover-border,var(--button-outline-border,hsl(var(--border))))]",
        "hover:[box-shadow:var(--button-outline-shadow-hover,var(--button-shadow-hover,var(--button-outline-shadow,var(--button-shadow,none))))]",
        "dark:bg-input/30 dark:border-input dark:hover:bg-input/50"
      ].join(" "),
      // Secondary variant - full customization
      secondary: [
        "bg-[var(--button-secondary-bg,hsl(var(--secondary)))]",
        "text-[var(--button-secondary-fg,hsl(var(--secondary-foreground)))]",
        "border-[length:var(--button-secondary-border-width,0px)]",
        "border-[color:var(--button-secondary-border,transparent)]",
        "[box-shadow:var(--button-secondary-shadow,var(--button-shadow,none))]",
        "hover:bg-[var(--button-secondary-hover-bg,hsl(var(--secondary)/0.8))]",
        "hover:text-[var(--button-secondary-hover-fg,var(--button-secondary-fg,hsl(var(--secondary-foreground))))]",
        "hover:border-[color:var(--button-secondary-hover-border,var(--button-secondary-border,transparent))]",
        "hover:[box-shadow:var(--button-secondary-shadow-hover,var(--button-shadow-hover,var(--button-secondary-shadow,var(--button-shadow,none))))]"
      ].join(" "),
      // Ghost variant - full customization
      ghost: [
        "bg-[var(--button-ghost-bg,transparent)]",
        "text-[var(--button-ghost-fg,inherit)]",
        "border-[length:var(--button-ghost-border-width,0px)]",
        "border-[color:var(--button-ghost-border,transparent)]",
        "[box-shadow:var(--button-ghost-shadow,var(--button-shadow,none))]",
        "hover:bg-[var(--button-ghost-hover-bg,hsl(var(--accent)))]",
        "hover:text-[var(--button-ghost-hover-fg,hsl(var(--accent-foreground)))]",
        "hover:border-[color:var(--button-ghost-hover-border,var(--button-ghost-border,transparent))]",
        "hover:[box-shadow:var(--button-ghost-shadow-hover,var(--button-shadow-hover,var(--button-ghost-shadow,var(--button-shadow,none))))]",
        "dark:hover:bg-accent/50"
      ].join(" "),
      // Link variant - full customization
      link: [
        "bg-[var(--button-link-bg,transparent)]",
        "text-[var(--button-link-fg,hsl(var(--primary)))]",
        "border-[length:var(--button-link-border-width,0px)]",
        "border-[color:var(--button-link-border,transparent)]",
        "[box-shadow:var(--button-link-shadow,none)]",
        "hover:bg-[var(--button-link-hover-bg,transparent)]",
        "hover:text-[var(--button-link-hover-fg,var(--button-link-fg,hsl(var(--primary))))]",
        "hover:[box-shadow:var(--button-link-shadow-hover,none)]",
        "underline-offset-4 hover:underline"
      ].join(" ")
    },
    size: {
      default: [
        "h-[var(--button-height-md,2.25rem)]",
        "px-[var(--button-padding-x-md,1rem)]",
        "py-[var(--button-padding-y-md,0.5rem)]",
        "has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
      ].join(" "),
      sm: [
        "h-[var(--button-height-sm,2rem)]",
        "px-[var(--button-padding-x-sm,0.75rem)]",
        "py-[var(--button-padding-y-sm,0.25rem)]",
        "gap-1.5",
        "has-[>svg]:px-[calc(var(--button-padding-x-sm,0.75rem)*0.83)]"
      ].join(" "),
      md: [
        "h-[var(--button-height-md,2.25rem)]",
        "px-[var(--button-padding-x-md,1rem)]",
        "py-[var(--button-padding-y-md,0.5rem)]",
        "has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
      ].join(" "),
      lg: [
        "h-[var(--button-height-lg,2.5rem)]",
        "px-[var(--button-padding-x-lg,1.5rem)]",
        "py-[var(--button-padding-y-lg,0.5rem)]",
        "has-[>svg]:px-[calc(var(--button-padding-x-lg,1.5rem)*0.67)]"
      ].join(" "),
      icon: "size-[var(--button-height-md,2.25rem)]",
      "icon-sm": "size-[var(--button-height-sm,2rem)]",
      "icon-lg": "size-[var(--button-height-lg,2.5rem)]"
    }
  },
  defaultVariants: {
    variant: "default",
    size: "default"
  }
});
var Pressable = React.forwardRef(
  ({
    children,
    className,
    href,
    onClick,
    variant,
    size,
    asButton = false,
    fallbackComponentType = "span",
    componentType,
    "aria-label": ariaLabel,
    "aria-describedby": ariaDescribedby,
    id,
    ...props
  }, ref) => {
    const navigation = useNavigation({ href, onClick });
    const {
      normalizedHref,
      target,
      rel,
      linkType,
      isInternal,
      handleClick
    } = navigation;
    const shouldRenderLink = normalizedHref && linkType !== "none";
    const shouldRenderButton = !shouldRenderLink && onClick;
    const effectiveComponentType = componentType || (shouldRenderLink ? "a" : shouldRenderButton ? "button" : fallbackComponentType);
    const finalComponentType = isInternal && shouldRenderLink ? "a" : effectiveComponentType;
    const shouldApplyButtonStyles = asButton || variant || size;
    const combinedClassName = cn(
      shouldApplyButtonStyles && buttonVariants({ variant, size }),
      className
    );
    const dataProps = Object.fromEntries(
      Object.entries(props).filter(([key]) => key.startsWith("data-"))
    );
    const buttonDataAttributes = shouldApplyButtonStyles ? {
      "data-slot": "button",
      "data-variant": variant ?? "default",
      "data-size": size ?? "default"
    } : {};
    const commonProps = {
      className: combinedClassName,
      onClick: handleClick,
      "aria-label": ariaLabel,
      "aria-describedby": ariaDescribedby,
      id,
      ...dataProps,
      ...buttonDataAttributes
    };
    if (finalComponentType === "a" && shouldRenderLink) {
      return /* @__PURE__ */ jsx(
        "a",
        {
          ref,
          href: normalizedHref,
          target,
          rel,
          ...commonProps,
          ...props,
          children
        }
      );
    }
    if (finalComponentType === "button") {
      return /* @__PURE__ */ jsx(
        "button",
        {
          ref,
          type: props.type || "button",
          ...commonProps,
          ...props,
          children
        }
      );
    }
    if (finalComponentType === "div") {
      return /* @__PURE__ */ jsx(
        "div",
        {
          ref,
          ...commonProps,
          children
        }
      );
    }
    return /* @__PURE__ */ jsx(
      "span",
      {
        ref,
        ...commonProps,
        children
      }
    );
  }
);
Pressable.displayName = "Pressable";

// lib/mediaPlaceholders.ts
var videoPlaceholders = [
  "https://toastability-production.s3.amazonaws.com/urjamg8k59poainq262wz5aigdea",
  "https://toastability-production.s3.amazonaws.com/967hpd5j4k491suxfangl7e4y2m2",
  "https://toastability-production.s3.amazonaws.com/886abpfd39erc4c2l11d1rz1iipg",
  "https://toastability-production.s3.amazonaws.com/iic2r7870zdzetm120wk0ave06x1",
  "https://toastability-production.s3.amazonaws.com/qii4j58hy81shrmzhsywtocy15vv",
  "https://toastability-production.s3.amazonaws.com/11i6kj17zxmglmiy14y04cgpvk6z",
  "https://toastability-production.s3.amazonaws.com/3kjzqffpqcpk2kh2t4wqfclsdh4y",
  "https://toastability-production.s3.amazonaws.com/rg7vkxwvgfuo8k8yjqe75d9bxucc",
  "https://toastability-production.s3.amazonaws.com/1bou1flbdox2ym6w85ou833pj20o",
  "https://toastability-production.s3.amazonaws.com/or7g4x5fkizj42z5n39izuwue4h0",
  "https://toastability-production.s3.amazonaws.com/unyzj7pv1ld3dz1y1u965xa5ica0",
  "https://toastability-production.s3.amazonaws.com/4snoop9a33kqylqijz6ws8r71kum",
  "https://toastability-production.s3.amazonaws.com/a15eg83yn7dcdrpxtk7r66b19sq6",
  "https://toastability-production.s3.amazonaws.com/ee81h5zi5ul9wq6wnpn2ruo14o95",
  "https://toastability-production.s3.amazonaws.com/s8x5lgzzohc35bbhvksw7d09wthw",
  "https://toastability-production.s3.amazonaws.com/s7ugt4t7tcbw33w2e3ze6yyk19ax",
  "https://toastability-production.s3.amazonaws.com/z4bypi4g203y6sbws0p4baqzjbna",
  "https://toastability-production.s3.amazonaws.com/l7zwipfyms4a4g9p1eenakyz5u5m",
  "https://toastability-production.s3.amazonaws.com/o3ejptisqthjuu8saplu3k8fpkwm",
  "https://toastability-production.s3.amazonaws.com/t630uvmyscnwu1y5xk8ncjl0k013",
  "https://toastability-production.s3.amazonaws.com/wqb40069w5p1fg475h33omfreeb3",
  "https://toastability-production.s3.amazonaws.com/pidq0etqbvrx71lg1biv1zk014nq",
  "https://toastability-production.s3.amazonaws.com/8frwo0jbs6xtriz9odotvj2oqiqw",
  "https://toastability-production.s3.amazonaws.com/n4tfcuiuxska4i0qwecz7a0txp5l",
  "https://toastability-production.s3.amazonaws.com/j4ek20c3jj24w90qkoriitd0gjrd",
  "https://toastability-production.s3.amazonaws.com/aojv1u7zwo8xtvafh05mvclm7inu",
  "https://toastability-production.s3.amazonaws.com/hgjdvzw6p1w55bznd9wbyzbte1ad",
  "https://toastability-production.s3.amazonaws.com/xfridp2sc2ue6pne9pr7juc8cfs0",
  "https://toastability-production.s3.amazonaws.com/qa11vl9yazjlrxyurugs5m1uob0t",
  "https://toastability-production.s3.amazonaws.com/c044p4yvo0butlxlfr6l5texeyjp",
  "https://toastability-production.s3.amazonaws.com/66ku1sro7yva6ptugbc2uw8xteyt",
  "https://toastability-production.s3.amazonaws.com/u9unwqisurutme6ed14v6c8rwdyj",
  "https://toastability-production.s3.amazonaws.com/7zymw27zz08xpup8wpvxebrcudk6",
  "https://toastability-production.s3.amazonaws.com/g9hb0egbqdzg6env95qknu9wdkpy",
  "https://toastability-production.s3.amazonaws.com/2ejrsd2x1o9aba6c3zyggpmr1yvi",
  "https://toastability-production.s3.amazonaws.com/6wsm6nr9vz133hwqa449dskep0sa",
  "https://toastability-production.s3.amazonaws.com/rxv63kh0kvbqdwao6qkuclymov67",
  "https://toastability-production.s3.amazonaws.com/uc8wywdh858i1ynbtcxpb4hlactk",
  "https://toastability-production.s3.amazonaws.com/uuelw57fokumfq0x8wo4vz3b77xi",
  "https://toastability-production.s3.amazonaws.com/557a7ih976jm430fdstnw8o3goh0",
  "https://toastability-production.s3.amazonaws.com/kwy3al9xi76s7joe4bbdcnxenlas",
  "https://toastability-production.s3.amazonaws.com/vw5ko0uzj6tcbusxkzntyqkls7xa",
  "https://toastability-production.s3.amazonaws.com/ywl3pyo1nnur62m3m5rxrcztf9xs",
  "https://toastability-production.s3.amazonaws.com/au1my2rw504h8xmgnljnaw2fw8zh",
  "https://toastability-production.s3.amazonaws.com/es21k0pbh5xdeypl7qaxxhgi6dmx",
  "https://toastability-production.s3.amazonaws.com/iqflbnmke2y5r87nhb38dwddxob8",
  "https://toastability-production.s3.amazonaws.com/kuqm2gg9kvtz7b04wqva6gmxvqj7",
  "https://toastability-production.s3.amazonaws.com/igcf8gywfu0ulnd74gi6mpfjnd5p",
  "https://toastability-production.s3.amazonaws.com/14f9harck597gc9qlpbs0dggpdn4",
  "https://toastability-production.s3.amazonaws.com/37li5a79oamn06977ghog14brs13",
  "https://toastability-production.s3.amazonaws.com/hhlf7h2q33xs6pj8n0aytrm0z3jx",
  "https://toastability-production.s3.amazonaws.com/mt27frf4cjexhxzxkegb60gahqxp",
  "https://toastability-production.s3.amazonaws.com/h8wuxcfu1yhr5s8vfph1syvmfeox",
  "https://toastability-production.s3.amazonaws.com/bj0a77zekrl8q6rfhy2ou362kta6",
  "https://toastability-production.s3.amazonaws.com/n6hjl9m0qzmm5tdyfaetdjg1uwly",
  "https://toastability-production.s3.amazonaws.com/1l2qanw2aifxcgvq0161r8xbfgoy",
  "https://toastability-production.s3.amazonaws.com/y48it0s5ddcrhvgmxzp9flxl4nxr",
  "https://toastability-production.s3.amazonaws.com/ji6f8c8sal4f7ypcf5eqybjs29j7",
  "https://toastability-production.s3.amazonaws.com/osijygtadnyitdmj8zvxf92ielj1",
  "https://toastability-production.s3.amazonaws.com/2h6bp97kuvdwzkhio02e1f9gv3u9",
  "https://toastability-production.s3.amazonaws.com/vsv0xnxtuvam6wqbl18nliux33nj",
  "https://toastability-production.s3.amazonaws.com/rbc3pffkh18f2oysfm3l07awxm3s",
  "https://toastability-production.s3.amazonaws.com/hgsrzkwr4ucvudq0wexohboz234m",
  "https://toastability-production.s3.amazonaws.com/s2bw25vlbrp6lvc29er5h1s5xub3",
  "https://toastability-production.s3.amazonaws.com/lhqgmfrlvk7o5kusnotxzd3hvowz",
  "https://toastability-production.s3.amazonaws.com/rka4y4l9ihtuho5wjylbbaiyan5t",
  "https://toastability-production.s3.amazonaws.com/qxcby2fbw6jtnm3fab131071dnje",
  "https://toastability-production.s3.amazonaws.com/lijssav0g5e6wstdz7bcdin14fix",
  "https://toastability-production.s3.amazonaws.com/syz5wu2s7psznfecptwge4aeugrv",
  "https://toastability-production.s3.amazonaws.com/s45m6e1h7aeq23z9oiiquqjycl34",
  "https://toastability-production.s3.amazonaws.com/rh3d3i0t40utzw7rj3hdy5ddyxiv",
  "https://toastability-production.s3.amazonaws.com/4u3pi66nga47kc1th8tyqd3lpj28",
  "https://toastability-production.s3.amazonaws.com/gafgk4cwd845yo094665jsuq9e21",
  "https://toastability-production.s3.amazonaws.com/krnuu3wc960ltazr5cu120xpzmj5",
  "https://toastability-production.s3.amazonaws.com/a56r6wtlw1lw7krf0nfbe7dyhfdh",
  "https://toastability-production.s3.amazonaws.com/0uv0c0b0wkud7ul98fnhzpowmwlj",
  "https://toastability-production.s3.amazonaws.com/a62af29fwmtnpu7tmiwoofx2wlqw",
  "https://toastability-production.s3.amazonaws.com/hdlqazy1cp3u3s6df2zoozu9xpox",
  "https://toastability-production.s3.amazonaws.com/6wgxszvzxjuc3n129224urjawa1y",
  "https://toastability-production.s3.amazonaws.com/xa1t8a9usk1uyb4oibb2374yp8lx"
];
var defaultActions = [
  {
    label: "Enroll in Beta",
    href: "#",
    variant: "default",
    className: "h-fit flex-1 rounded-full px-6 py-3.5"
  },
  {
    label: "Book a Demo",
    href: "#",
    variant: "outline",
    className: "h-fit flex-1 rounded-full border border-white/50 bg-transparent px-6 py-3.5 text-foreground hover:bg-transparent"
  }
];
function HeroVideoBackgroundDark({
  badgeText = "BETA RELEASE AVAILABLE",
  heading = "Unveiling MyBusiness Edition 1",
  description = "Tailor and oversee any creative process from start to finish with unprecedented speed and efficiency.",
  actions = defaultActions,
  actionsSlot,
  videoSrc = videoPlaceholders[0],
  videoSlot,
  className,
  contentClassName,
  headingClassName,
  descriptionClassName
}) {
  const renderActions = () => {
    if (actionsSlot) return actionsSlot;
    return /* @__PURE__ */ jsx("div", { className: "flex lg:justify-center", children: /* @__PURE__ */ jsx("div", { className: "flex min-w-fit flex-col gap-5 text-sm leading-[.96] whitespace-nowrap lg:flex-row lg:items-stretch", children: actions.map((action, index) => {
      const { label, icon, iconAfter, children, className: actionClassName, ...pressableProps } = action;
      return /* @__PURE__ */ jsx(
        Pressable,
        {
          asButton: true,
          className: actionClassName,
          ...pressableProps,
          children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
            icon,
            label,
            iconAfter
          ] })
        },
        index
      );
    }) }) });
  };
  const renderVideo = () => {
    if (videoSlot) return videoSlot;
    return /* @__PURE__ */ jsx(
      "video",
      {
        loop: true,
        playsInline: true,
        src: videoSrc,
        className: "absolute top-0 left-0 size-full object-cover",
        autoPlay: true,
        muted: true
      }
    );
  };
  return /* @__PURE__ */ jsxs("section", { className: cn("dark relative h-screen bg-background", className), children: [
    /* @__PURE__ */ jsxs("div", { className: cn("relative z-10 container mx-auto flex size-full max-w-3xl flex-col justify-center gap-4 lg:items-center lg:text-center", contentClassName), children: [
      badgeText && (typeof badgeText === "string" ? /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: badgeText }) : badgeText),
      heading && (typeof heading === "string" ? /* @__PURE__ */ jsx("h1", { className: cn("text-5xl font-bold text-foreground lg:text-[4.2rem]", headingClassName), children: heading }) : /* @__PURE__ */ jsx("h1", { className: cn("text-5xl font-bold text-foreground lg:text-[4.2rem]", headingClassName), children: heading })),
      description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-lg text-muted-foreground", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
      renderActions()
    ] }),
    renderVideo()
  ] });
}

export { HeroVideoBackgroundDark };
