import{d,u as y,e as f,f as _,h as t,E as m,k as b,o as P,aB as h,_ as w}from"./index-D92x6h1h.js";import{P as C}from"./play-DDT_Ndp2.js";const v=["disabled","title","aria-label"],k=d({__name:"PlayCell",props:{value:{},row:{},col:{}},setup(c){const e=c,{t:l}=y(),a=b(()=>typeof e.row.uuid!="string"||!e.row.uuid||!e.col.playPath?!1:e.col.playEnabled?e.col.playEnabled(e.row):!0);function i(o){if(o.stopPropagation(),!a.value)return;const s=e.row.uuid,u=e.col.playPath,n=e.col.playTitle,r=n?n(e.row):"",p=r?`?title=${encodeURIComponent(r)}`:"";h(`${u}/${s}${p}`)}return(o,s)=>(P(),f("button",{type:"button",class:m(["play-cell",{"play-cell--disabled":!a.value}]),disabled:!a.value,title:t(l)("Play this stream"),"aria-label":t(l)("Play this stream"),onClick:i},[_(t(C),{size:16,class:"play-cell__icon","aria-hidden":"true"})],10,v))}}),$=w(k,[["__scopeId","data-v-16ba84d9"]]);export{$ as P};
