import{r as registerInstance,h}from"./index-BxRAfMA5.js";const prestoActionBarUiCss=":host{display:block;overflow:hidden}.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;background:var(--presto-action-bar-background, #1d1d1d);color:#fff;padding:0 var(--presto-action-bar-padding, 6px);line-height:1em;font-size:16px;margin-top:-100%;transition:margin var(--presto-action-bar-animation-speed, 0.5s) ease-in-out;transform:translate3d(0);border-radius:0px 0px var(--presto-player-border-radius) var(--presto-player-border-radius)}.bar.bar--open{margin-top:0}.bar__button{margin:var(--presto-action-bar-padding, 6px);display:flex;align-items:center}.bar__content{margin:var(--presto-action-bar-padding, 6px);width:100%;text-align:center}@media screen and (min-width: 480px){.bar__content{width:auto}}",PrestoActionBarUi=class{constructor(t){registerInstance(this,t)}render(){return h("div",{key:"b45af8959832ecc2f240622497174cd70f17015d",class:{bar:!0,"bar--open":this.open}},h("span",{key:"96010998372b90e5afba2316b9b71b3efb0e7502",part:"content",class:"bar__content"},h("slot",{key:"c166254469403bf9b24479697f11fda494246dcb"})),h("span",{key:"94a877081d27b5b19dd68419ca1b0694ef25053c",part:"button",class:"bar__button"},h("slot",{key:"de591a41e84782ef5b9dcdc06c5ee06e22e1b024",name:"button"})))}};PrestoActionBarUi.style=prestoActionBarUiCss;const prestoYoutubeSubscribeButtonCss=":host{display:block}",PrestoYoutubeSubscribeButton=class{constructor(t){registerInstance(this,t),this.layout="default"}waitForApi(t){var e=setInterval(function(){var r;(null===(r=null===window||void 0===window?void 0:window.gapi)||void 0===r?void 0:r.ytsubscribe)&&(clearInterval(e),t())},50)}componentDidLoad(){const t=document.createElement("script");t.type="text/javascript",t.async=!1,t.src="https://apis.google.com/js/platform.js";const e=document.getElementsByTagName("script")[0];e&&e.parentNode.insertBefore(t,e),this.waitForApi(()=>{window.gapi.ytsubscribe.render(this.textInput,{channelId:this.channel,layout:this.layout,count:this.showCount?"default":"hidden"})})}render(){return h("div",{key:"5891adca82eb9dfda8db90ca5b11dac0cfdc58ed",class:"g-ytsubscribe",ref:t=>this.textInput=t})}};PrestoYoutubeSubscribeButton.style=":host{display:block}";export{PrestoActionBarUi as presto_action_bar_ui,PrestoYoutubeSubscribeButton as presto_youtube_subscribe_button};