'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("next/head"),s=require("./Img.js");exports.default=({srcSet:t,priority:a=!1,pictureClass:i,...c})=>t?.desktop?.src?e.jsxs(e.Fragment,{children:[e.jsx(r,{children:Object.entries(t).map(([r,s])=>s?.src&&e.jsx("link",{rel:"preload",href:s.src,as:"image"},`preload-${r}`))}),e.jsxs("picture",{className:i,children:[(r=>{let s=[{media:"(max-width: 767px)",srcSet:r.mobile?.src},{media:"(max-width: 1024px)",srcSet:r.tablet?.src}];return s.map(({media:r,srcSet:s})=>s&&e.jsx("source",{media:r,srcSet:s},r))})(t),e.jsx(s.default,{...c,loading:a?"eager":"lazy",image:{src:t.desktop.src}})]})]}):null;
