import{d as B,a as d,e as x,at as q,G as I,P as M,p as P,O as a,J as n,K as o,u as t,Q as l,a9 as i,Z as v,X as b,Y as k,L,a6 as R,F as Z,R as F,V as E,W as w,ab as N,a8 as $}from"./EchoChannel-Dko4GTAA.js";import{_ as j}from"./Countdown.vue_vue_type_script_setup_true_lang-DqVsAi03.js";import T from"./RegisterButton-7fdFjvbX.js";import{u as A}from"./Gate-BQVvOn3b.js";import{o as U,s as W,u as Y,a as J}from"./floating-ui.vue-xDqX_bOH.js";import{_ as K}from"./GateSessions.vue_vue_type_script_setup_true_lang-Ey8J6nyd.js";import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-DjKJqAo0.js";import"./app-eBVI1eNF.js";import"./TelemetryClient-Difip1hg.js";const X={class:"w-full relative bg-cover from-transparent to-black bg-event-hero-y xl:bg-event-hero-x","data-loadComponent":"event/Countdown"},O={class:"backdrop-blur-2xl"},ee={class:"mx-auto container px-2 md:px-4 py-8 md:py-16 grid xl:grid-cols-3 gap-8 items-center text-white"},te={class:"xl:col-span-2 relative"},se=["src","alt"],oe=["src"],re={class:"w-fit mb-4 text-xs text-white bg-black/25 backdrop-blur uppercase font-thin flex"},ae={class:"flex flex-col items-center px-6 py-1.5"},ne={class:"text-3xl leading-none"},le={key:0,class:"relative flex flex-col items-center px-6 py-1.5 before:content-['-'] before:absolute before:text-2xl before:leading-none before:top-2 before:-left-1"},ie={class:"text-3xl leading-none"},ce={key:0,class:"text-2xl text-red-600 flex items-center gap-2"},de={key:1},ue={class:"block text-2xl"},pe={class:"block text-base font-thin"},ve={class:"text-3xl font-light"},me={key:3,class:"flex items-center ml-6 mt-4"},fe=["src","alt"],he={key:0,class:"text-2xl font-light ml-4"},ge={key:4,class:"flex flex-wrap gap-x-8 gap-y-4 items-center mt-8"},ye=["data-ph-capture-attribute-eventgate-calendar-event-name","href"],xe={key:1,class:"relative"},be={key:0,class:"bg-black/50 fixed inset-0 backdrop-blur-sm z-10 starting:bg-black/5 starting:backdrop-blur-none transition-all duration-500"},we={class:"px-8 py-4 flex flex-col gap-4"},_e={key:2,class:"w-full text-sm text-qorus-grey-mid font-light"},He={key:3,class:"w-full text-sm text-qorus-grey-mid font-light"},ke={key:4,class:"w-full text-sm text-qorus-grey-mid font-light"},Le={key:5,class:"w-full text-sm text-qorus-grey-mid font-light"},De={key:5,class:"flex flex-wrap gap-x-8 gap-y-4 items-center mt-8"},Ce=["href"],Ve=B({__name:"GateHero",props:{isGuest:{type:[Boolean,null]},event:{},csrf:{},withLink:{type:[Boolean,null]}},setup(D){const m=D,f=d(!1),e=A();e.eventHero=m.event,e.csrf=m.csrf;const C=x(()=>Math.round((m.event.startDate.timestamp*1e3-Date.now())/1e3)),{width:c}=q(),V=d(document.body),G=I(V),_=d(),h=d(),z=d([U(({rects:r})=>-r.reference.height-16),W()]);Y(_,h,{placement:"top",middleware:z,transform:!1,whileElementsMounted:J});const u=async(r=!0)=>{var s;(e.lockHovering||!((s=e.eventHero.sessions)!=null&&s.length))&&r||(G.value=r&&c.value<768,f.value=r,e.cardHover=r)};M(h,()=>u(!1)),P(()=>{document.documentElement.style.setProperty("--background-hero","url('"+e.eventHero.image+"')"),new URL(location.href).searchParams.has("replay")&&e.startReplay()});const g=x(()=>e.eventHero.participants.sort((r,s)=>r.hasImage&&!s.hasImage?-1:!r.hasImage&&s.hasImage?1:r.type==="speaker"&&s.type!=="speaker"?-1:r.type!=="speaker"&&s.type==="speaker"?1:r.name>s.name?-1:1)),y=x(()=>{const r=e.eventHero.participants.filter(s=>s.hasImage).length;return r>4?4:r});return(r,s)=>{var H;return a(),n("section",X,[o("div",O,[o("div",ee,[o("div",te,[t(e).replayIsStart?l("",!0):(a(),n("img",{key:0,class:"w-full object-cover rounded-xl shadow-xl aspect-video",src:t(e).eventHero.image,alt:"banner of"+t(e).eventHero.name},null,8,se)),!r.isGuest&&t(e).eventHero.replay&&!t(e).replayIsStart&&t(e).eventHero.endDate.timestamp*1e3<Date.now()?(a(),n("button",{key:1,class:"w-24 h-24 absolute bg-black/25 backdrop-blur-md rounded-full top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 hover:text-black/90 hover:scale-110 transition-all",style:{"mask-image":"url('/images/mask.svg')","mask-mode":"alpha","mask-repeat":"no-repeat","mask-size":"cover"},onClick:s[0]||(s[0]=p=>t(e).startReplay())})):l("",!0),!r.isGuest&&t(e).eventHero.replay&&t(e).replayIsStart?(a(),n("iframe",{key:2,class:"w-full h-full aspect-video",src:t(e).eventHero.replay+"?controls=0&autoplay=1",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""},null,8,oe)):l("",!0)]),o("div",null,[o("div",re,[o("div",ae,[o("span",ne,i(t(e).eventHero.startDate.day),1),o("span",null,i(t(e).eventHero.startDate.month),1),o("span",null,i(t(e).eventHero.startDate.year),1)]),t(e).eventHero.endDate.isSameDay?l("",!0):(a(),n("div",le,[o("span",ie,i(t(e).eventHero.endDate.day),1),o("span",null,i(t(e).eventHero.endDate.month),1),o("span",null,i(t(e).eventHero.endDate.year),1)]))]),t(e).eventHero.isLive?(a(),n("strong",ce,s[4]||(s[4]=[o("i",{class:"relative w-3 h-3 rounded-full bg-red-600"},[o("span",{class:"absolute animate-ping w-3 h-3 rounded-full bg-red-600"})],-1),v(" Live now ")]))):(a(),n("div",de,[o("strong",ue,i(t(e).eventHero.type),1),o("small",pe,i(t(e).eventHero.date),1)])),o("h1",ve,[(a(),b(R(r.withLink?"a":"div"),{href:t(e).eventHero.url,class:L({"hover:underline decoration-1":r.withLink})},{default:k(()=>[v(i(t(e).eventHero.name),1)]),_:1},8,["href","class"]))]),t(e).eventHero.startDate.timestamp*1e3>Date.now()?(a(),b(j,{key:2,"initial-seconds":C.value},null,8,["initial-seconds"])):t(e).eventHero.isLive&&t(e).eventHero.participants.length?(a(),n("div",me,[(a(!0),n(Z,null,F(g.value.slice(0,y.value),(p,S)=>(a(),n("img",{class:"rounded-full w-16 h-16 object-cover -ml-6 relative shadow-xl",style:E(["z-index: "+-1*S]),src:p.image,alt:"portrait of "+p.name},null,12,fe))),256)),g.value.length>y.value?(a(),n("span",he," +"+i(g.value.length-y.value),1)):l("",!0)])):l("",!0),t(e).eventHero.online?(a(),n("div",ge,[w(T,{"is-guest":r.isGuest,"is-hero":!0,visible:!0,card:t(e).eventHero,"join-url":"#","show-replay":!!t(e).eventHero.replay,onRegistered:s[1]||(s[1]=()=>u(!0))},null,8,["is-guest","card","show-replay"]),!((H=t(e).eventHero.sessions)!=null&&H.length)&&t(e).eventHero.registered&&t(e).eventHero.startDate.timestamp*1e3>Date.now()?(a(),n("a",{key:0,class:"hover:underline text-white flex gap-1 font-light uppercase text-sm","data-ph-autocapture":"","data-ph-capture-attribute-eventgate-calendar-event-name":t(e).eventHero.name,"data-ph-capture-attribute-eventgate-calendar-from-button":"hero header",href:"/event-gate/"+t(e).eventHero.id+"/calendar"},s[5]||(s[5]=[o("svg",{class:"w-6 h-6 -mt-1",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9332 2.91667L14.7915 1.25H13.5415L13.3998 2.91667H6.59984L6.45817 1.25H5.20817L5.0665 2.91667H1.6665V18.75H18.3332V2.91667H14.9332ZM4.93317 4.58333L4.7915 6.25H6.87484L6.73317 4.58333H13.2582L13.1165 6.25H15.1998L15.0582 4.58333H16.6582V8.125H3.33317V4.58333H4.93317ZM3.33317 9.425V17.0833V17.0917H16.6665V10.1667L3.33317 9.425Z"})],-1),v(" Add to my calendar ")]),8,ye)):t(e).eventHero.registered&&t(e).eventHero.startDate.timestamp*1e3>Date.now()?(a(),n("div",xe,[o("button",{ref_key:"reference",ref:_,class:"hover:underline text-white flex gap-1 font-light uppercase text-sm",onClick:s[2]||(s[2]=()=>u(!0))}," Choose your sessions ",512),(a(),b($,{to:"body",disabled:t(c)>=768},[f.value&&t(c)<768?(a(),n("div",be)):l("",!0),w(N,{name:t(c)>=768?"popover":"popup"},{default:k(()=>[f.value?(a(),n("div",{key:0,ref_key:"floating",ref:h,role:"tooltip",class:L([{"origin-top-left fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 scale-100":t(c)<768,"origin-bottom-right absolute -bottom-8 -right-1/2":t(c)>=768},"z-10 rounded-xl overflow-hidden p-0 bg-qorus-purple-alpha transition-all w-96 h-max max-h-96 shadow-lg text-black"])},[o("div",we,[o("button",{onClick:s[3]||(s[3]=p=>u(!1)),class:"absolute right-2 top-2 p-2 text-black rounded-full before:ease-squishy before:scale-0 hover:before:scale-100 before:transition-all before:inset-0 before:absolute before:bg-white before:rounded-full before:content-['']"},s[6]||(s[6]=[o("svg",{class:"relative w-3 h-3",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M18 1.06763L16.9324 0L9 7.30377L1.06763 0L0 1.06763L7.30377 9L0 16.9324L1.06763 18L9 10.6962L16.9324 18L18 16.9324L10.6962 9L18 1.06763Z"})],-1)])),w(K,{card:t(e).eventHero},null,8,["card"])])],2)):l("",!0)]),_:1},8,["name"])],8,["disabled"]))])):l("",!0),r.isGuest&&t(e).eventHero.replay?(a(),n("div",_e," Create your account to watch the replay ")):r.isGuest&&t(e).eventHero.authorized?(a(),n("div",He," Create your account to sign up ")):r.isGuest&&!t(e).eventHero.authorized?(a(),n("div",ke," Create your account to get in touch with our team ")):!r.isGuest&&!t(e).eventHero.authorized?(a(),n("div",Le," Your request will be sent to our team ")):l("",!0)])):(a(),n("div",De,[o("a",{href:t(e).eventHero.url,class:"hover:underline hover:text-qorus-purple inline-flex gap-2 text-qorus-purple items-center transition-all animate-[popping_.2s_cubic-bezier(0.175,_0.885,_0.32,_1.275)_both_.3s]"},s[7]||(s[7]=[v(" Event details & registration "),o("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M17.2752 8.34208L10.2156 1.875L9.41527 2.6675L14.625 8.25236H0V9.74764H14.625L9.41527 15.3325L10.2156 16.125L17.2752 9.65792L18 9L17.2752 8.34208Z",fill:"#645AFF"})],-1)]),8,Ce)]))])])])])}}}),Fe=Q(Ve,[["__scopeId","data-v-70e787e0"]]);export{Fe as default};