import { jsxs as l, Fragment as c, jsx as n } from "react/jsx-runtime";
import { i as g, B as i } from "./PrizeCard-C2El3VOB.js";
const s = (e) => ({
  // Image container (left position)
  imageContainerLeft: {
    display: e.isMobile ? "none" : "block",
    flex: "0.3",
    overflow: "hidden",
    height: "auto",
    position: "relative",
    minHeight: "auto",
    backgroundImage: `url("${e.finalImage}")`,
    backgroundSize: "cover",
    backgroundPosition: "center center",
    backgroundRepeat: "no-repeat",
    alignItems: "center",
    justifyContent: "center"
  },
  // Image container (right position)
  imageContainerRight: {
    display: e.isMobile ? "none" : "block",
    flex: "0.3",
    overflow: "hidden",
    height: "auto",
    position: "relative",
    minHeight: "auto",
    backgroundImage: `url("${e.finalImage}")`,
    backgroundSize: "cover",
    backgroundPosition: "center center",
    backgroundRepeat: "no-repeat",
    alignItems: "center",
    justifyContent: "center"
  },
  // Image safe area (placeholder for image space)
  imageSafeArea: {
    width: "100%",
    height: "100%"
  }
}), h = ({
  finalImage: e,
  imagePosition: o = "left",
  children: a
}) => {
  const r = g(), t = s({
    finalImage: e,
    imagePosition: o,
    isMobile: r
  });
  return /* @__PURE__ */ l(c, { children: [
    o === "left" && e ? /* @__PURE__ */ n(i, { sx: t.imageContainerLeft, children: /* @__PURE__ */ n(i, { sx: t.imageSafeArea }) }) : null,
    a,
    o === "right" && e ? /* @__PURE__ */ n(i, { sx: t.imageContainerRight, children: /* @__PURE__ */ n(i, { sx: t.imageSafeArea }) }) : null
  ] });
};
export {
  h as S
};
