"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),system=require("@gem-sdk/system"),classes=require("../common/classes.js"),styles=require("../common/styles.js"),attrs=require("../common/attrs.js");const NextImage=e=>{let{style:s,setting:t,priority:r,className:a,pageContext:m,width:l,height:i,customLazyload:c,isDisableObjectFit:o,isDisableAspectStyle:g,enableLazyLoadImage:u=!0}=e,y=!c&&u&&!r,d=system.createStyle({...s,...styles.getNextImageStyles({width:l,height:i,setting:t,isDisableObjectFit:o,isDisableAspectStyle:g})}),n=system.createClass({...classes.getNextImageClasses({className:a,hasLazyLoad:y,isOptimizePlan:m?.isOptimizePlan})}),x=attrs.getNextImageLiquidAttrs(e);return core.template`
    <img
      ${x}
      id="${e?.id}"
      style="${d}"
      class="${n}"
    />`};exports.default=NextImage;
