"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";

// src/embed-shims/next-image.tsx


var _react = require('react');
var _jsxruntime = require('react/jsx-runtime');
var impl = null;
function registerImage(component) {
  impl = component;
}
var Image = _react.forwardRef.call(void 0, function NextImageShim(props, ref) {
  if (impl) {
    const Real = impl;
    return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 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 : _optionalChain([src, 'optionalAccess', _ => _.src]);
  const finalStyle = fill ? {
    position: "absolute",
    inset: 0,
    width: "100%",
    height: "100%",
    objectFit: "cover",
    ...style
  } : style;
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 
    "img",
    {
      ref,
      src: srcStr,
      alt: _nullishCoalesce(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;




exports.registerImage = registerImage; exports.next_image_default = next_image_default;
//# sourceMappingURL=chunk-XL4V2PYG.cjs.map