"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:g,height:d,customLazyload:n,isDisableObjectFit:y,isDisableAspectStyle:p}=i,q=!n&&(c?.enableLazyLoadImage??!0)&&!o,x=s.createStyle({...m,...r.getNextImageStyles({width:g,height:d,setting:l,isDisableObjectFit:y,isDisableAspectStyle:p})}),j=s.createClass({...t.getNextImageClasses({className:u,hasLazyLoad:q,isOptimizePlan:c?.isOptimizePlan})}),I=a.getNextImageLiquidAttrs(i);return e.template`
    <img
      ${I}
      id="${i?.id}"
      style="${x}"
      class="${j}"
    />`};
