1import{d as F,ci as Q,ag as X,bl as Y,x as f,o as s,j as n,i,b as l,w as r,e as t,c as v,t as c,V as p,K as Z,aq as ee,L as te,_ as oe,G as ke,F as z,r as D,u as be,a as we,f as Le,s as Ce,ab as W,b1 as Ve,g as $e,k as Be,v as Re,m as Ne,A as ze,cj as K,n as N,D as Ie,aC as Se,bz as J,bv as Ae,bw as je,M as Pe,a0 as He,N as De,ck as Fe,cl as Me,q as Te,ad as Ee,aO as Ue}from"./entry.C_E2KLfC.js";import{_ as qe}from"./SubscriptionsProBadge.vue.BiPXAg4G.js";import{_ as Ge}from"./CardActionsPanel.vue.CrYPQ4Lb.js";import{_ as Oe}from"./CommentsList.vue.DDdr7_k0.js";import{_ as We}from"./client-only.LpQaDE1a.js";import"./BaseContentEditable.vue.g00n0aT2.js";import"./BaseMenu.vue.BhXqNr6R.js";const Ke={class:"flex gap-3"},Je={class:"w-[120px]"},Qe={class:"w-full h-full rounded-xl overflow-hidden flex items-center justify-center bg-gray-200"},Xe=["src","alt"],Ye={class:"flex-1 flex flex-col"},Ze={class:"font-bold text-xs text-gray-900 line-clamp-2"},et={key:0,class:"text-gray-500 text-xs"},tt=F({__name:"VideoRelatedCard",props:{video:{}},setup(k){const e=k,{VideoPreviewFallbackGetters:u,getVideoId:x,getVideoPreview:y}=Q(),{getFormattedDate:b}=X(),{getCategoryItemsByIds:I}=Y(),S=I(e.video.categories.map(d=>d.id),"video"),h={name:"video-category-item-id",params:{id:e.video.id,category:S[0].slug}},w=f(()=>{var _;const d=x(e.video);return((_=e.video.preview)==null?void 0:_.url)||y(e.video.video_source,d)||""});function A(d){var _;e.video.video_source&&((_=u[e.video.video_source])==null||_.call(u,d,e.video.video_id))}return(d,_)=>{const L=Z,C=We,V=ee,$=te,j=oe;return s(),n("article",Ke,[i("div",Je,[l($,{to:h},{default:r(()=>[l(V,{ratio:9/16,size:"cover"},{default:r(()=>[l(C,null,{default:r(()=>[i("div",Qe,[t(w)?(s(),n("img",{key:0,loading:"lazy",class:"w-full",src:t(w),alt:d.video.title,onLoad:_[0]||(_[0]=P=>A(P))},null,40,Xe)):(s(),v(L,{key:1,name:"solid_play",size:"lg",class:"text-gray-900"}))])]),_:1})]),_:1})]),_:1})]),i("div",Ye,[l(j,{theme:"dark",class:"!inline py-1",to:h},{default:r(()=>[i("h2",Ze,c(d.video.title),1)]),_:1}),d.video.date?(s(),n("div",et,c(t(b)(d.video.date)),1)):p("",!0)])])}}}),ot={class:"flex flex-col gap-4"},st={key:0},it={key:1,class:"flex flex-col gap-4"},nt=F({__name:"VideoRelatedList",props:{videoList:{}},setup(k){return(e,u)=>{const x=tt;return s(),n("div",ot,[e.videoList.length?(s(),n("div",it,[(s(!0),n(z,null,D(e.videoList,y=>(s(),v(x,{key:y.id,video:y},null,8,["video"]))),128))])):(s(),n("div",st,[ke(e.$slots,"empty")]))])}}}),at={key:0,class:"py-10 flex justify-center"},dt={key:1},lt={class:"flex flex-col gap-6 mb-6 text-gray-900"},ct={class:"flex flex-col gap-2 p-4 sm:p-8 bg-white rounded-xl"},rt=["src"],_t={key:1,class:"w-full h-full rounded-xl",controls:"",controlslist:"nodownload"},ut=["src"],mt={class:"flex justify-between"},vt={key:0,class:"flex flex-wrap items-center gap-1"},pt={class:"text-sm"},gt={class:"text-2xl text-gray-900 font-bold"},ft={key:0,class:"flex gap-2 text-gray-900 items-center"},yt={key:1},ht={class:"flex gap-2 items-center"},xt={key:0},kt={key:1,class:"flex gap-2 items-center"},bt={class:"font-semibold"},wt={key:2,class:"flex gap-6 flex-wrap leading-5"},Lt={key:1,class:"font-medium"},Ct={class:"text-xs text-gray-500"},Vt={class:"flex flex-col gap-2 bg-white rounded-xl p-4 sm:p-8"},$t=["innerHTML"],Bt={class:"flex gap-6 flex-col lg:flex-row"},Rt={class:"flex-1"},Nt={class:"flex flex-col gap-2 w-full lg:w-1/3 xl:w-1/4 px-4 sm:px-0"},zt={class:"text-lg font-bold text-gray-900"},It={key:0,class:"py-10 flex justify-center"},St={class:"text-gray-700"},At=F({__name:"VideoItemPageContent",setup(k){const e=Q(),u=be(),{getCategoryItemsByIds:x,getPageLinkCategorySlug:y}=Y(),b=we(),I=Pe(),{getEventPageRoute:S}=Le(),h=Ce(),{getHumanizedDate:w,getHumanizedDatePeriod:A}=X(),d=Array.isArray(u.params.id)?Number(u.params.id[0]):Number(u.params.id),_=f(()=>{var o;return x(((o=e.video)==null?void 0:o.categories.map(g=>g.id))||[],"video")}),L=f(()=>y(_.value)),C=f(()=>e.getVideoPageLink(d,L.value)),V=f(()=>{if(!e.video)return"";const{video_source:o,video_id:g,video_url:B}=e.video;return e.video&&e.getVideoSrc({videoSource:o,videoId:g,videoUrl:B,host:I})||""}),$=async()=>{var o;(o=e.video)!=null&&o.event.id&&await e.fetchRelatedVideoList(Number(_.value[0].id),e.video.id)},j={entity_id:d,entity_type:W.Video},{initCountersHelper:P,commentsCounter:H,reactionsCounters:se,updateCommentsCounter:ie,onChangeReaction:ne,isCountersProcessing:ae}=Ve();$e(async()=>{await e.fetchVideo(d),re(),!Be().isHydrating&&await $(),await P({entity:j,isLoadComments:!0,isLoadReactions:!0})});const M=Re(null);function de(){var o;u.query.scroll==="comments"&&((o=M.value)==null||o.scrollIntoView())}function le(){ie(H.value+1)}const m=f(()=>{var o;return(o=e.video)==null?void 0:o.event}),ce=f(()=>_.value.map(o=>o.local)),T=f(()=>{var o;return((o=e.video)==null?void 0:o.tags.map(g=>g.name))||[]}),re=()=>{e.video&&Ne({title:e.video.meta_title||e.video.title.trim(),description:e.video.meta_description||e.video.title.trim(),keywords:e.video.meta_keywords||T.value.join(", "),image:`https://img.youtube.com/vi/${e.video.video_id}/hqdefault.jpg`,article:{publishedTime:e.video.date,sections:ce.value,tags:T.value}},{canonical:C})},_e=f(()=>e.isRelatedVideoListLoaded&&e.relatedVideoList.length),ue=()=>{var g;const o=((g=h.options.history.state.back)==null?void 0:g.toString())||"";o.includes("video")&&!o.includes("item-")?h.back():h.push(He()({name:"video"}))};return ze(()=>!!b.auth,async()=>{e.resetVideo(),await e.fetchVideo(d),$()}),(o,g)=>{var G,O;const B=De,me=Fe,ve=Me,pe=ee,E=Te,U=te,R=Z,q=oe,ge=qe,fe=Ee,ye=Ge,he=Oe,xe=nt;return s(),n("div",null,[!t(e).isVideoLoaded||t(e).isCategoryChanging?(s(),n("div",at,[l(B)])):t(e).video?(s(),n("div",dt,[i("article",lt,[i("div",ct,[l(pe,{ratio:9/16,class:"bg-black rounded-xl overflow-hidden mb-2"},{default:r(()=>{var a;return[t(e).video.video_source!==t(K).WNMeet?(s(),n(z,{key:0},[i("iframe",{class:"w-full h-full rounded-xl",src:t(V),allow:"accelerometer; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:"",credentialless:"",anonymous:""},null,8,rt),t(e).video.video_source===t(K).Google?(s(),v(me,{key:0})):p("",!0),t(e).isOpenInBrowser(t(e).video.video_source)?(s(),v(ve,{key:1,src:t(V)},null,8,["src"])):p("",!0)],64)):(s(),n("video",_t,[i("source",{src:(a=t(e).video)==null?void 0:a.temp_video_url,type:"video/mp4"},null,8,ut)]))]}),_:1}),i("div",mt,[t(_).length?(s(),n("div",vt,[(s(!0),n(z,null,D(t(_),a=>(s(),v(U,{key:a.id,to:a.route,class:Ie(["no-underline font-normal",a.hidden&&"pointer-events-none"])},{default:r(()=>[l(E,{size:"xs",look:"none",class:"bg-primary-100 hover:bg-primary-400"},{default:r(()=>[N(c(a.local),1)]),_:2},1024)]),_:2},1032,["to","class"]))),128))])):p("",!0),l(E,{look:"link",theme:"dark",class:"font-normal inline-flex",
1size:"xs",onClick:ue},{default:r(()=>[l(R,{name:"outline_arrow_turn_left",size:"xs",class:"mr-2"}),i("span",pt,c(o.$t("video.back_to_videos")),1)]),_:1})]),i("h2",gt,c(t(e).video.title),1),t(e).video.date?(s(),n("div",ft,[l(R,{name:"outline_calendar",size:"xs",class:"flex-shrink-0"}),i("div",null,c(t(w)(t(e).video.date)),1)])):p("",!0),t(m)?(s(),n("div",yt,[t(m).slug?(s(),v(q,{key:0,to:t(S)(t(m).slug,t(m).type)},{default:r(()=>[i("div",ht,[l(R,{name:"outline_external_link",size:"xs",class:"flex-shrink-0 text-primary"}),i("div",null,[N(c(t(m).name)+" ",1),t(m).date_from&&t(m).date_to?(s(),n("span",xt," - "+c(t(A)(t(m).date_from,t(m).date_to,t(m).timezone)),1)):p("",!0)])])]),_:1},8,["to"])):(s(),n("div",kt,[l(R,{name:"outline_ticket",size:"xs",class:"flex-shrink-0 mt-[1px]"}),i("div",bt,c(t(m).name),1)]))])):p("",!0),(G=t(e).video.speakers)!=null&&G.length?(s(),n("div",wt,[(s(!0),n(z,null,D(t(e).video.speakers,a=>(s(),v(fe,{key:a.id,src:("getAvatar"in o?o.getAvatar:t(Ae))(a),abbr:("getAbbr"in o?o.getAbbr:t(je))(a),size:"lg",class:"w-max"},Se({title:r(()=>[t(b).auth?(s(),v(U,{key:0,to:`/users/${a.id}`,class:"hover:text-gray-700 font-medium"},{default:r(()=>[N(c(("getFullName"in o?o.getFullName:t(J))(a)),1)]),_:2},1032,["to"])):(s(),n("span",Lt,c(("getFullName"in o?o.getFullName:t(J))(a)),1))]),_:2},[a!=null&&a.is_subscription_active?{name:"topBadge",fn:r(()=>[l(ge)]),key:"0"}:void 0,a.job?{name:"text",fn:r(()=>[i("div",Ct,c(a.job),1)]),key:"1"}:void 0]),1032,["src","abbr"]))),128))])):p("",!0),l(ye,{class:"!px-0 mt-4",name:t(e).video.title,comments:t(H),reactions:t(se),"page-link":t(C),"is-counters-processing":t(ae),onChangeReaction:t(ne)},null,8,["name","comments","reactions","page-link","is-counters-processing","onChangeReaction"])]),i("div",Vt,[i("div",{class:"marked",innerHTML:o.$marked((O=t(e).video)==null?void 0:O.description)},null,8,$t)])]),i("div",Bt,[i("div",Rt,[i("div",{ref_key:"commentsElement",ref:M,class:"p-4 sm:p-8 bg-white rounded-xl"},[l(he,{id:t(d),total:t(H),"entity-type":t(W).Video,onLoaded:de,onCreate:le},null,8,["id","total","entity-type"])],512)]),i("div",Nt,[i("div",zt,c(o.$t("video.related")),1),t(e).isRelatedVideoListLoaded?(s(),v(xe,{key:1,"video-list":t(e).relatedVideoList},{empty:r(()=>[i("span",St,c(o.$t("video.no_related")),1)]),_:1},8,["video-list"])):(s(),n("div",It,[l(B)])),t(_e)?(s(),v(q,{key:2,class:"mt-2",to:{name:"video-category",params:{category:t(L)}}},{default:r(()=>[N(c(o.$t("video.all_related_videos")),1)]),_:1},8,["to"])):p("",!0)])])])):p("",!0)])}}}),jt={};function Pt(k,e){const u=At;return s(),v(u)}const qt=Ue(jt,[["render",Pt]]);export{qt as default}; 2//# sourceMappingURL=item-_id_.DZZ7sMsn.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.