"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("@gem-sdk/system"),s=require("../../helpers.js"),r=require("./AdaptiveImage.liquid.js"),a=require("./NextImage.liquid.js"),i=require("../common/styles.js"),l=require("../common/classes.js"),g=require("../common/attrs.js"),u=require("../common/helpers.js");exports.default=({style:d,styles:m,setting:n,advanced:c,className:o,pageContext:p,builderAttrs:y,builderProps:q})=>{let C=u.getSettingTranslatedImageAndSeo({setting:n,uid:q?.uid,pageContext:p}),{imageLink:A,isAdaptive:I,enableImageLink:$}=C??{},{Wrapper:j,urlData:S}=s.getLinkData({defaultWrap:"div",setting:A,enableImageLink:$,isLiquid:!0}),v=t.createStyle(i.getWrapperStyles(m)),f=t.createStyle(i.getImageStyles(m,q)),L=t.createStyle(i.getContainerStyles(d,m)),W=t.createClass(l.getWrapperClasses()),k=t.createClass(l.getImageClasses(o,m)),x=t.createClass(l.getContainerClasses(q?.uid,c?.cssClass,m?.shape)),N=t.createAttr(g.getContainerAttrs(y,q?.uid)),h=g.getLinkWrapperAttrs({urlData:S,imageLink:A,title:C?.title,isLiquid:!0}),_=g.getAdaptiveImageAttrs({styles:m,setting:C,isLiquid:!0}),b=g.getNextImageAttrs({styles:m,setting:C}),D=g.getImageLiquidAttrs({pageContext:p});return e.template`
    <div
      role="presentation"
      ${{...N}}
      style="${L}"
      class="${x}"
    >
      <${j}
        ${h}
        style="${v}"
        class="${W}"
      >
        ${t.If(I,r.default({...D,..._,style:f,className:k}),a.default({...D,...b,style:f,className:k}))}
      </${j}>
    </div>
  `};
