{"version":3,"names":["prestoVideoCss","PrestoVideoStyle0","PrestoVideo","render","h","Object","assign","key","class","includes","this","provider","part","ref","getRef","autoplay","preload","poster","playsinline","videoAttributes","src","tracks","length","map","track","kind","label","srclang","srcLang"],"sources":["src/components/core/providers/presto-video/presto-video.css?tag=presto-video","src/components/core/providers/presto-video/presto-video.tsx"],"sourcesContent":[":host {\n  display: block;\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n  tag: 'presto-video',\n  styleUrl: 'presto-video.css',\n  shadow: false,\n})\nexport class PrestoVideo {\n  @Prop({ mutable: true }) getRef?: (elm?: HTMLVideoElement) => void;\n  @Prop() autoplay: boolean;\n  @Prop() src: string;\n  @Prop() preload: string;\n  @Prop() poster: string;\n  @Prop() player: any;\n  @Prop() tracks: { label: string; src: string; srcLang: string }[];\n  @Prop() playsinline: boolean;\n  @Prop() provider: string;\n  @Prop() videoAttributes: object;\n\n  render() {\n    return (\n      <video\n        class={{\n          'presto-player__player': true,\n          'plyr__video-embed': ['youtube', 'vimeo'].includes(this.provider),\n        }}\n        part=\"video\"\n        ref={this.getRef}\n        autoplay={this.autoplay}\n        preload={this.preload}\n        data-poster={this.poster}\n        playsinline={this.playsinline}\n        {...this.videoAttributes}\n      >\n        <source src={this.src} />\n        {!!this.tracks &&\n          !!this.tracks.length &&\n          this.tracks.map(track => <track kind=\"captions\" label={track?.label ? track.label : 'Captions'} src={track?.src} srclang={track?.srcLang ? track?.srcLang : 'en'} />)}\n      </video>\n    );\n  }\n}\n"],"mappings":"2CAAA,MAAMA,EAAiB,uBACvB,MAAAC,EAAeD,E,MCMFE,EAAW,M,qQAYtB,MAAAC,GACE,OACEC,EAAA,QAAAC,OAAAC,OAAA,CAAAC,IAAA,2CACEC,MAAO,CACL,wBAAyB,KACzB,oBAAqB,CAAC,UAAW,SAASC,SAASC,KAAKC,WAE1DC,KAAK,QACLC,IAAKH,KAAKI,OACVC,SAAUL,KAAKK,SACfC,QAASN,KAAKM,QAAO,cACRN,KAAKO,OAClBC,YAAaR,KAAKQ,aACdR,KAAKS,iBAETf,EAAA,UAAAG,IAAA,2CAAQa,IAAKV,KAAKU,QACfV,KAAKW,UACJX,KAAKW,OAAOC,QACdZ,KAAKW,OAAOE,KAAIC,GAASpB,EAAA,SAAOqB,KAAK,WAAWC,OAAOF,IAAK,MAALA,SAAK,SAALA,EAAOE,OAAQF,EAAME,MAAQ,WAAYN,IAAKI,IAAK,MAALA,SAAK,SAALA,EAAOJ,IAAKO,SAASH,IAAK,MAALA,SAAK,SAALA,EAAOI,SAAUJ,IAAK,MAALA,SAAK,SAALA,EAAOI,QAAU,S"}