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,CAAC,OAAO,GACS,EAChC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/core/features/presto-action-bar/component/presto-action-bar.scss?tag=presto-action-bar&encapsulation=shadow","src/components/core/features/presto-action-bar/component/presto-action-bar.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Element, h, Prop, State } from '@stencil/core';\nimport { ActionBarConfig, YoutubeConfig } from '../../../../../interfaces';\n\n@Component({\n tag: 'presto-action-bar',\n styleUrl: 'presto-action-bar.scss',\n shadow: true,\n})\nexport class PrestoActionBar {\n @Element() el: HTMLElement;\n\n @Prop() player: any;\n @Prop() config: ActionBarConfig;\n @Prop() direction?: 'rtl';\n @Prop() youtube?: YoutubeConfig;\n\n @State() currentTime: number;\n @State() duration: number;\n @State() ended: boolean;\n\n componentWillLoad() {\n if (!this.player) return;\n this.player.on('ended', () => this.setEnded());\n this.player.on('timeupdate', e => this.setCurrentTime(e));\n }\n\n setEnded() {\n this.ended = true;\n }\n\n setCurrentTime(e) {\n this.currentTime = e?.detail?.plyr.currentTime;\n this.duration = e?.detail?.plyr.duration;\n }\n\n /**\n * Remove listeners if destroyed\n */\n disconnectedCallback() {\n if (!this.player) return;\n this.player.off('ended', this.setEnded);\n this.player.off('timeupdate', this.setCurrentTime);\n }\n\n render() {\n return (\n <presto-action-bar-controller\n ended={this.ended}\n config={this.config}\n currentTime={this.currentTime}\n duration={this.duration}\n direction={this.direction}\n youtube={this.youtube}\n ></presto-action-bar-controller>\n );\n }\n}\n"],"version":3}