import{template as t}from"@gem-sdk/core";import{getDynamicSourceLocales as e,createSettingId as s}from"../../helpers.js";import{getLabelCustomCss as i}from"../common/styles.js";import{ImageComparison as a}from"../settings/configs/translate.js";let Label=({uid:l,label:o,styles:r,positionId:m,pageContext:d,translateLabel:p,childrenStyle:n,childrenClass:$,containerStyle:c,containerClass:f})=>{let g=i(r,l??""),y=e({uid:l,val:o,pageContext:d??{},settingId:s({id:a?.[p]?.id}),isCapitalize:r?.typo?.attrs?.transform==="capitalize"});return t`
    <div
      id="image-comparison-${m}-label-${l}"
      style="${c}"
      class="${f}"
    >
      <style>${g}</style>
      <div class="${$}" style="${n}">
        ${y}
      </div>
    </div>
  `};export{Label as default};
