"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),system=require("@gem-sdk/system"),classes=require("../common/classes.js"),helpers=require("../common/helpers.js"),CompareImage_liquid=require("./CompareImage.liquid.js");const ImageComparison=({setting:e,styles:r,builderProps:a,advanced:s,...t})=>{let{imageLeft:l,altLeft:i,titleLeft:m,imageRight:o,altRight:g,titleRight:c,direction:p,defaultPercentage:d,leftImageLabel:u,rightImageLabel:n,sliderLineWidth:I,hoverToSlide:y,enableLabel:q,preload:f,translate:h,qualityType:C,qualityPercent:b,enableSEOLeft:v,enableSEORight:P}=e??{},j=system.createClass(classes.getImageComparisonWrapperClasses()),L=system.createStyle(classes.getImageComparisonWrapperStyles());return core.template`
    <div class="${j}" style="${L}">
      ${CompareImage_liquid.default({...t,styles:r,preload:f,advanced:s,leftImage:l,leftImageAlt:v?i:"",leftImageTitle:v?m:"",rightImage:o,rightImageAlt:P?g:"",rightImageTitle:P?c:"",leftImageLabel:u??"Before",rightImageLabel:n??"After",sliderLineWidth:I,sliderPositionPercentage:helpers.getSliderPositionPercentage(d),vertical:"vertical"===p,hover:y,enableLabel:q,qualityType:C,qualityPercent:b,componentUid:a?.uid??"",builderData:a?.builderData,translate:h})}
    </div>
  `};exports.default=ImageComparison;
