import{template as e}from"@gem-sdk/core";import{getStyle as r}from"./common/styles.js";import{getClass as i}from"./common/classes.js";let d=d=>{let{builderAttrs:s,index:m,children:a,id:o}=d,{carouselItemStyle:t,carouselItemInnerStyle:l}=r(d),{carouselItemClass:c,carouselItemInnerClass:u}=i(d);return e`
    <div
      ${{...s}}
      id="${o}"
      class="${c}"
      style="${t}"
      data-index="${m}"
      grid-index="{{forloop.index}}"
      external-id="{{media.external_id}}"
      media-type="{{media.media_type}}"
      media-poster="{{media.preview_image.src}}"
      media-source-url="{{media.sources.first.url}}"
      media-last-source-url="{{mediaSourceUrl}}"
      dir="ltr"
    >
      <div
        class="${u}"
        style="${l}"
      >
      ${a}
      </div>
    </div>
  `};export{d as default};
