{"version":3,"names":["prestoActionBarUiCss","PrestoActionBarUiStyle0","PrestoActionBarUi","render","h","key","class","bar","this","open","part","name","prestoYoutubeSubscribeButtonCss","PrestoYoutubeSubscribeButtonStyle0","PrestoYoutubeSubscribeButton","waitForApi","callback","interval","setInterval","_a","window","gapi","ytsubscribe","clearInterval","componentDidLoad","po","document","createElement","type","async","src","s","getElementsByTagName","parentNode","insertBefore","textInput","channelId","channel","layout","count","showCount","ref","el"],"sources":["src/components/core/features/presto-action-bar/ui/presto-action-bar-ui.scss?tag=presto-action-bar-ui&encapsulation=shadow","src/components/core/features/presto-action-bar/ui/presto-action-bar-ui.tsx","src/components/ui/presto-youtube-subscribe-button/presto-youtube-subscribe-button.css?tag=presto-youtube-subscribe-button","src/components/ui/presto-youtube-subscribe-button/presto-youtube-subscribe-button.tsx"],"sourcesContent":[":host {\n display: block;\n overflow: hidden;\n}\n\n.bar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n background: var(--presto-action-bar-background, #1d1d1d);\n color: #fff;\n padding: 0 var(--presto-action-bar-padding, 6px);\n line-height: 1em;\n font-size: 16px;\n margin-top: -100%;\n transition: margin var(--presto-action-bar-animation-speed, 0.5s) ease-in-out;\n transform: translate3d(0);\n border-radius: 0px 0px var(--presto-player-border-radius) var(--presto-player-border-radius);\n &.bar--open {\n margin-top: 0;\n }\n}\n\n.bar__button {\n margin: var(--presto-action-bar-padding, 6px);\n display: flex;\n align-items: center;\n}\n\n.bar__content {\n margin: var(--presto-action-bar-padding, 6px);\n width: 100%;\n text-align: center;\n\n @media screen and (min-width: 480px) {\n width: auto;\n }\n}\n","import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'presto-action-bar-ui',\n styleUrl: 'presto-action-bar-ui.scss',\n shadow: true,\n})\nexport class PrestoActionBarUi {\n @Prop() open?: boolean;\n\n render() {\n return (\n \n \n \n \n \n \n \n \n );\n }\n}\n",":host {\n display: block;\n}\n","import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'presto-youtube-subscribe-button',\n styleUrl: 'presto-youtube-subscribe-button.css',\n shadow: false,\n})\nexport class PrestoYoutubeSubscribeButton {\n private textInput?: HTMLElement;\n\n @Prop() channel: string;\n @Prop() layout: string = 'default';\n @Prop() showCount: boolean;\n\n waitForApi(callback) {\n var interval = setInterval(function () {\n if (window?.gapi?.ytsubscribe) {\n clearInterval(interval);\n callback();\n }\n }, 50);\n }\n\n componentDidLoad() {\n const po = document.createElement('script');\n po.type = 'text/javascript';\n po.async = false;\n po.src = 'https://apis.google.com/js/platform.js';\n const s = document.getElementsByTagName('script')[0];\n s && s.parentNode.insertBefore(po, s);\n\n this.waitForApi(() => {\n window.gapi.ytsubscribe.render(this.textInput, {\n channelId: this.channel,\n layout: this.layout,\n count: this.showCount ? 'default' : 'hidden',\n });\n });\n }\n\n render() {\n return
(this.textInput = el as HTMLElement)}>
;\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAuB,ouBAC7B,MAAAC,EAAeD,E,MCMFE,EAAiB,M,6CAG5B,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CACEC,MAAO,CACLC,IAAO,KACP,YAAaC,KAAKC,OAGpBL,EAAA,QAAAC,IAAA,2CAAMK,KAAK,UAAUJ,MAAM,gBACzBF,EAAA,QAAAC,IAAA,8CAEFD,EAAA,QAAAC,IAAA,2CAAMK,KAAK,SAASJ,MAAM,eACxBF,EAAA,QAAAC,IAAA,2CAAMM,KAAK,Y,aCtBrB,MAAMC,EAAkC,uBACxC,MAAAC,EAAeD,E,MCMFE,EAA4B,M,4DAId,U,yBAGzB,UAAAC,CAAWC,GACT,IAAIC,EAAWC,aAAY,W,MACzB,IAAIC,EAAAC,SAAM,MAANA,cAAM,SAANA,OAAQC,QAAI,MAAAF,SAAA,SAAAA,EAAEG,YAAa,CAC7BC,cAAcN,GACdD,G,IAED,G,CAGL,gBAAAQ,GACE,MAAMC,EAAKC,SAASC,cAAc,UAClCF,EAAGG,KAAO,kBACVH,EAAGI,MAAQ,MACXJ,EAAGK,IAAM,yCACT,MAAMC,EAAIL,SAASM,qBAAqB,UAAU,GAClDD,GAAKA,EAAEE,WAAWC,aAAaT,EAAIM,GAEnCvB,KAAKO,YAAW,KACdK,OAAOC,KAAKC,YAAYnB,OAAOK,KAAK2B,UAAW,CAC7CC,UAAW5B,KAAK6B,QAChBC,OAAQ9B,KAAK8B,OACbC,MAAO/B,KAAKgC,UAAY,UAAY,UACpC,G,CAIN,MAAArC,GACE,OAAOC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,gBAAgBmC,IAAKC,GAAOlC,KAAK2B,UAAYO,G"}