"use client";

// src/embed-shims/next-image.tsx
import {
  forwardRef
} from "react";
import { jsx } from "react/jsx-runtime";
var impl = null;
function registerImage(component) {
  impl = component;
}
var Image = forwardRef(function NextImageShim(props, ref) {
  if (impl) {
    const Real = impl;
    return /* @__PURE__ */ jsx(Real, { ref, ...props });
  }
  const {
    src,
    alt,
    width,
    height,
    fill,
    sizes: _sizes,
    quality: _quality,
    priority: _priority,
    placeholder: _placeholder,
    blurDataURL: _blurDataURL,
    unoptimized: _unoptimized,
    onLoadingComplete,
    loader: _loader,
    style,
    ...rest
  } = props;
  const srcStr = typeof src === "string" ? src : src?.src;
  const finalStyle = fill ? {
    position: "absolute",
    inset: 0,
    width: "100%",
    height: "100%",
    objectFit: "cover",
    ...style
  } : style;
  return /* @__PURE__ */ jsx(
    "img",
    {
      ref,
      src: srcStr,
      alt: alt ?? "",
      width: fill ? void 0 : width,
      height: fill ? void 0 : height,
      style: finalStyle,
      onLoad: onLoadingComplete ? (e) => onLoadingComplete(e.currentTarget) : void 0,
      ...rest
    }
  );
});
var next_image_default = Image;

export {
  registerImage,
  next_image_default
};
//# sourceMappingURL=chunk-LXC6P2EO.js.map