import{f as c,o as a,c as o,a as t,p as u}from"./C_yW9YRN.js";const n=["src"],d={key:1,class:"how_it_work_content w-full h-full flex max-h-[500px] relative max-w-[800px] rounded-3xl overflow-hidden"},f=["src"],w={__name:"PlayVideo",props:{src:{required:!0},url:{required:!1,default:!1}},setup(e){const l=c(),r=c();function i(){l.value.paused==!0?(l.value.play(),r.value.classList.add("opacity-0")):(r.value.classList.remove("opacity-0"),l.value.pause())}return(p,s)=>e.url?(a(),o("iframe",{key:0,width:"100%",height:"100%",src:e.src,title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:"",class:"how_it_work_content w-full h-full flex max-h-[500px] relative max-w-[800px] rounded-3xl overflow-hidden"},null,8,n)):(a(),o("div",d,[e.src?(a(),o("video",{key:0,ref_key:"video",ref:l,class:"w-full rounded-3xl bg-black"},[t("source",{src:e.src,type:"video/mp4"},null,8,f)],512)):u("",!0),t("button",{class:"play bg-[#000000a2] absolute left-0 top-0 flex justify-center items-center w-full h-full",type:"button",onClick:i,ref_key:"play_btn",ref:r},s[0]||(s[0]=[t("span",{class:"w-16 h-16 rounded-full border border-white flex justify-center items-center"},[t("i",{class:"fas fa-play text-white text-2xl"})],-1)]),512)]))}};export{w as _};
