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