import{template as e}from"@gem-sdk/core";import{getStyle as i}from"./common/styles.js";import{getClass as r}from"./common/classes.js";let d=d=>{let{builderAttrs:s,index:m,children:a,id:o}=d,{carouselItemStyle:t,carouselItemInnerStyle:l}=i(d),{carouselItemClass:c,carouselItemInnerClass:u}=r(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}}"
    >
      <div
        class="${u}"
        style="${l}"
      >
      ${a}
      </div>
    </div>
  `};export{d as default};
