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AE,GAAG,EACrB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACQ,EACjC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/core/features/presto-cta-overlay/component/presto-cta-overlay.css?tag=presto-cta-overlay","src/components/core/features/presto-cta-overlay/component/presto-cta-overlay.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, h, Prop, State } from '@stencil/core';\nimport { i18nConfig, presetAttributes } from '../../../../../interfaces';\n\n/**\n * This component is needed to prevent re-rendering of\n * main component with currentTime changes.\n */\n@Component({\n tag: 'presto-cta-overlay',\n styleUrl: 'presto-cta-overlay.css',\n shadow: false,\n})\nexport class PrestoCTAOverlay {\n @Prop() player: any;\n @Prop() direction?: 'rtl';\n @Prop() preset: presetAttributes;\n @Prop() i18n: i18nConfig;\n @Prop() provider: string;\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 /**\n * Maybe render\n * @returns JSX\n */\n render() {\n return (\n <presto-cta-overlay-controller\n ended={this.ended}\n currentTime={this.currentTime}\n duration={this.duration}\n direction={this.direction}\n cta={this.preset?.cta}\n i18n={this.i18n}\n provider={this.provider}\n ></presto-cta-overlay-controller>\n );\n }\n}\n"],"version":3}