1import{ch as S,aW as v,aX as n,b4 as i,b1 as r,a_ as g,cg as A,b5 as L,b6 as P,bo as z,b9 as o,aZ as u,b8 as b,b7 as V,bt as C,cc as M,ba as W,bc as R,bf as F,bh as Y,bg as q,co as U,cp as H}from"./0fa048f5.js";import{_ as K}from"./TitleAndActor.0e54b0e0.js";import{_ as O}from"./Like.fdca5bc1.js";import{_ as X}from"./Share.8afe7123.js";import{_ as Z}from"./beautifyDuration.cf49fbac.js";import{u as N}from"./useBackNavigation.0d23c00b.js";import{_ as G}from"./RecommendedSliders.vue.e22d2d26.js";import{u as J}from"./useSeoMetaWrapper.becf7705.js";import{u as Q}from"./useVideoSchema.c4605332.js";import{u as ee}from"./useLikeAction.b5a8aba7.js";import"./useLiveConstants.68867438.js";import"./popper.esm.00d44f59.js";import"./CardVideo.b48563d1.js";import"./HoverPreview.vue.36735c81.js";import"./Reminder.vue.72b8659c.js";import"./Donate.vue.0e1d6791.js";import"./LoaderCircle.ffda3c8c.js";import"./index.4c1314a6.js";import"./CardVideoCategories.05981db4.js";import"./useWatchedCountFormat.3acaacde.js";import"./donations.6e4b22d9.js";import"./showDonateAction.cc831c46.js";import"./CardVideoSkeleton.3b37a5ab.js";import"./Wrapper.ffff05b7.js";import"./CardBlog.7f57238a.js";import"./CardChannel.051d4765.js";import"./PurchaseButton.119ec33c.js";import"./resolveShowsCount.f5182e33.js";import"./CardChannelSkeleton.0568b0a6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"4841975a70f63c5239ecd69fa93efe34762bb5f2"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="2b8f33d3-b328-4798-bf69-6dc38c0f680d",e._sentryDebugIdIdentifier="sentry-dbid-2b8f33d3-b328-4798-bf69-6dc38c0f680d")})()}catch{}const te={class:"bg-[#000060]"},ae={class:"xl:program-screen-minus-header-xl relative w-full"},se={class:"absolute left-7 top-4 mr-4 max-w-2xl sm:top-6 lg:top-8 2xl:left-20"},ie={key:0,class:"absolute bottom-16 right-4 z-[1] flex items-center gap-1 rounded-full bg-black/60 px-3 py-2 text-sm leading-6 text-white sm:bottom-20 sm:right-6"},le={class:"absolute bottom-0 z-30 flex w-full justify-between bg-[#D9D9D9]/60 px-4 py-2 text-sm font-bold uppercase text-white shadow-[10px_-10px_10px_-10px_rgba(0,0,0,0.2)] backdrop-blur-md dark:bg-[#082792]/30 sm:px-6 sm:py-2.5 sm:text-lg lg:py-3 lg:text-xl xl:px-20 2xl:text-2xl"},oe={class:"flex w-full items-center"},ne={key:0,class:"mr-2 flex items-center gap-1.5 sm:gap-3 lg:gap-6"},re={class:"flex w-full justify-center gap-1.5 sm:gap-6"},de={class:"custom-gradient relative flex size-full max-w-36 items-center rounded-full px-3 py-1 text-white transition-transform before:rounded-full hover:scale-110 active:scale-95 lg:max-w-52 2xl:max-w-60"},ce={class:"mx-auto uppercase"},me={class:"flex w-fit items-center gap-4"},ue={class:"ml-2 flex items-center justify-center gap-x-1.5 sm:gap-x-5"},fe={class:"prose max-w-none bg-white px-4 py-5 dark:prose-invert lg:prose-xl dark:bg-[#0F2260] sm:px-6 xl:px-20"},pe=["innerHTML"],xe={__name:"page",props:{data:{type:Object,required:!0,default:()=>{}},liked:{type:Boolean,default:!1},watch:{type:Boolean,default:!1}},emits:["toggleLike"],setup(e){var f;const s=e;if((f=s.data)!=null&&f.error)throw S({statusCode:404,statusMessage:"Page Not Found",fatal:!0});const c=s.data.urlId;return(d,t)=>{var y,w,x,_,I,D,E,T,$,B;const h=A,k=K,m=P,a=V,l=O,p=X;return n(),v("div",te,[i("section",ae,[r(h,{class:"block aspect-video size-full object-cover",src:(y=e.data.images)==null?void 0:y.detailImage,alt:"Image"},null,8,["src"]),i("div",se,[r(k,{class:"flex items-center gap-x-4 rounded-full bg-gradient-to-r from-black/50 to-black/30 pr-4 text-white md:pr-0",title:e.data.title,actors:e.data.actors,"url-id":String(e.data.urlId),"content-type":e.data.contentType},null,8,["title","actors","url-id","content-type"])]),e.data.duration?(n(),v("div",ie,[r(m,{name:"duration",class:"size-4 text-[#00E6FF]"}),L(" "+z(("beautifyDuration"in d?d.beautifyDuration:o(Z))((w=e.data)==null?void 0:w.duration)),1)])):g("",!0),i("div",le,[i("div",oe,[e.data.linkVideoId?(n(),v("div",ne,[e.data.videoType==="2D"?(n(),u(a,{key:0,to:{name:"video-detail
1s",params:{id:e.data.linkVideoId}},class:"flex h-fit items-center justify-center rounded-full bg-white/30 px-2.5 py-1 shadow-sm sm:px-5"},{default:b(()=>[...t[2]||(t[2]=[i("p",{class:"text-sm font-black lg:text-base 2xl:text-2xl"},z("2D"),-1)])]),_:1},8,["to"])):g("",!0),e.data.videoType!=="2D"?(n(),u(a,{key:1,to:{name:"video-details",params:{id:e.data.linkVideoId}},class:"flex h-fit items-center justify-center rounded-full bg-white/30 px-2.5 py-1 shadow-sm sm:px-5"},{default:b(()=>[r(m,{name:"360-marker",class:"size-9 fill-white"})]),_:1},8,["to"])):g("",!0)])):g("",!0),i("div",re,[e.watch?(n(),u(a,{key:0,to:{name:"video-play",params:{id:o(c)}},class:"custom-gradient relative flex w-full max-w-36 items-center rounded-full px-2 py-1 transition-transform before:rounded-full hover:scale-110 active:scale-95 lg:max-w-52 2xl:max-w-60"},{default:b(()=>[r(m,{name:"circle-play",class:"size-4 shrink-0 fill-[url(#gradient)] sm:size-6 lg:size-8 2xl:size-10"}),t[3]||(t[3]=i("span",{class:"mx-auto"},"PLAY",-1))]),_:1},8,["to"])):(n(),u(a,{key:1,to:{name:"video-purchase",params:{id:o(c)},query:{boughtByContentId:s.data._id}},class:"w-full max-w-36 lg:max-w-52 2xl:max-w-60"},{default:b(()=>[i("button",de,[e.data.onlyWithSubscription?g("",!0):(n(),u(m,{key:0,name:"ticket",class:"size-4 fill-[url(#gradient)] sm:size-6 lg:size-8 2xl:size-10"})),i("span",ce,z(e.data.onlyWithSubscription?"Subscribe":"Tickets"),1)])]),_:1},8,["to"])),r(a,{to:{name:"video-preview",params:{id:o(c)}},class:"custom-gradient relative flex w-full max-w-36 items-center rounded-full px-2 py-1 text-white transition-transform before:rounded-full hover:scale-110 active:scale-95 lg:max-w-52 2xl:max-w-60"},{default:b(()=>[r(m,{name:"eye",class:"size-4 fill-[url(#gradient)] pr-px sm:size-6 lg:size-8 2xl:size-10"}),t[4]||(t[4]=i("span",{class:"mx-auto"},"PREVIEW",-1))]),_:1},8,["to"])])]),i("div",me,[i("div",ue,[r(l,{"liked-by-user":e.liked,class:"size-10",onToggleLike:t[0]||(t[0]=()=>d.$emit("toggleLike"))},null,8,["liked-by-user"]),r(p,{url:`video/${o(c)}`,image:((_=(x=e.data)==null?void 0:x.images)==null?void 0:_.tvPoster)||((D=(I=e.data)==null?void 0:I.images)==null?void 0:D.sliderTV)||((T=(E=e.data)==null?void 0:E.images)==null?void 0:T.detailImage),"embed-url":`video/${o(c)}/embed`,placement:"bottom"},null,8,["url","image","embed-url"])]),i("button",{type:"button",class:"hidden w-fit items-center gap-1 rounded-full px-6 py-2 transition-transform hover:scale-110 active:scale-95 xl:flex",onClick:t[1]||(t[1]=(...j)=>("useBackNavigation"in d?d.useBackNavigation:o(N))&&("useBackNavigation"in d?d.useBackNavigation:o(N))(...j))},[r(m,{name:"back",class:"size-8 fill-white"}),t[5]||(t[5]=L(" BACK ",-1))])])])]),i("section",fe,[i("p",{innerHTML:(($=e.data)==null?void 0:$.html_description)||((B=e.data)==null?void 0:B.description)},null,8,pe)])])}}},ge={},be={class:"bg-[#000060]"};function ve(e,s){return n(),v("div",be,[...s[0]||(s[0]=[M('<section class="xl:program-screen-minus-header-xl relative w-full"><div class="block aspect-square size-full animate-pulse bg-gray-300 object-cover lg:aspect-video" alt="Image"></div><div class="absolute bottom-0 z-30 flex w-full justify-between bg-[#D9D9D9]/60 px-4 py-2 text-lg font-bold uppercase text-white shadow-[10px_-10px_10px_-10px_rgba(0,0,0,0.2)] backdrop-blur-md dark:bg-[#082792]/30 sm:px-6 sm:py-2.5 lg:py-3 lg:text-xl xl:px-20 2xl:text-2xl"><div class="flex w-full items-center"><div class="mr-2 flex items-center gap-3 lg:gap-6"><div class="flex h-fit items-center justify-center rounded-full bg-white/30 px-5 py-1 shadow-sm"><p class="text-sm font-black text-transparent lg:text-base 2xl:text-2xl">180</p></div><div class="flex h-fit items-center justify-center rounded-full bg-white/30 px-5 py-1 shadow-sm"><p class="text-sm font-black text-transparent lg:text-base 2xl:text-2xl">2D</p></div></div><div class="hidden w-full justify-center gap-6 md:flex"><div class="relative flex w-full max-w-36 items-center rounded-full bg-white/30 px-2 py-1 lg:max-w-52 2xl:max-w-60"><div class="size-6 lg:size-8 2xl:size-10"></div><span class="mx-auto text-transparent">PLAY</span></div><div class="relative flex w-full max-w-36 items-center rounded-full bg-white/30 px-2 py-1 lg:max-w-52 2xl:max-w-60"><div class="size-6 lg:size-8 2xl:size-10"></div><span class="mx-auto text-transparent">PREVIEW</span></div></div></div><div class="flex w-fit items-center gap-4"><div class="hidden w-fit items-center gap-1 rounded-full bg-white/30 px-6 py-2 text-transparent xl:flex"><div class="size-8"></div> BACK </div></div></div></section><section class="prose max-w-none bg-white p-5 dark:prose-invert lg:prose-xl dark:bg-inherit"><p class="max-h-96 overflow-y-scroll"></p><div class="flex w-full justify-center gap-4 md:hidden"><div class="flex w-full max-w-36 animate-pulse rounded-full bg-black/10 px-2 py-1 dark:bg-white/30"><div class="size-6"></div><span class="mx-auto text-transparent">PLAY</span></div><div class="flex w-full max-w-36 animate-pulse rounded-full bg-black/10 px-2 py-1 dark:bg-white/30"><div class="size-6"></div><span class="mx-auto text-transparent">PREVIEW</span></div></div></section>',2)])])}const ye=C(ge,[["render",ve]]),Xe={__name:"index",async setup(e){let s,c;const f=W(),d=R(),{data:t,pending:h,error:k}=([s,c]=F(()=>{var a;return q(`/api/content/${f.params.id}/details`,{key:`content|detail|${f.params.id}|${(a=d.user)==null?void 0:a.id}`,transform:l=>(l==null?void 0:l.content)||l,server:!0})}),s=await s,c(),s);if(k.value)throw S({statusCode:404,statusMessage:"Page Not Found",fatal:!0});Y(t,a=>{var l;
1a&&(J({title:a.title,description:`${a.description} Enjoy immersive content anytime, anywhere.`,image:(l=a.images)==null?void 0:l.detailImage}),U([H({mainEntity:Q([t.value])[0]})]))},{immediate:!0});async function m(a){ee("video",a._id,(l,p)=>{a.likedByUser=l,a.likesCount=p})}return(a,l)=>{var x;const p=xe,y=ye,w=G;return n(),v("div",null,[!o(h)&&o(t)?(n(),u(p,{key:0,data:o(t),liked:o(t).likedByUser,watch:(x=o(t))==null?void 0:x.watch,onToggleLike:l[0]||(l[0]=_=>m(o(t)))},null,8,["data","liked","watch"])):(n(),u(y,{key:1})),r(w,{class:"px-2"})])}}};export{Xe as default};
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.