PageSourceSearch

https://www.deeptoplay.com/_next/static/chunks/app/%5Blocale%5D/(w…/%5B...slug%5D/page-2f898f80a0a8aca3.js

js deeptoplay.com collected 2026-09-24 13:39:19 UTC 89,085 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9105,153,5417,2639],{72431:function(){},19424:function(e,t,n){Promise.resolve().then(n.bind(n,34327)),Promise.resolve().then(n.bind(n,40011)),Promise.resolve().then(n.bind(n,98408)),Promise.resolve().then(n.bind(n,44694)),Promise.resolve().then(n.bind(n,30504)),Promise.resolve().then(n.bind(n,71481)),Promise.resolve().then(n.bind(n,54007)),Promise.resolve().then(n.bind(n,4425)),Promise.resolve().then(n.bind(n,44351)),Promise.resolve().then(n.bind(n,54089)),Promise.resolve().then(n.bind(n,58015)),Promise.resolve().then(n.bind(n,49925)),Promise.resolve().then(n.bind(n,8249)),Promise.resolve().then(n.bind(n,61973)),Promise.resolve().then(n.bind(n,76823)),Promise.resolve().then(n.bind(n,52194)),Promise.resolve().then(n.bind(n,37031)),Promise.resolve().then(n.bind(n,14973)),Promise.resolve().then(n.bind(n,94056)),Promise.resolve().then(n.bind(n,24839)),Promise.resolve().then(n.bind(n,88857)),Promise.resolve().then(n.bind(n,27154))},40011:function(e,t,n){"use strict";n.d(t,{default:function(){return r}});var l=n(12887),i=n(2265),s=n(54480);function r(e){let{locale:t,...n}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl-docs.vercel.app/docs/configuration#locale");return i.createElement(s.IntlProvider,(0,l.g)({locale:t},n))}},12098:function(e,t,n){"use strict";n.d(t,{S4:function(){return a}});var l=n(57437),i=n(94951),s=n(12218),r=n(58214);let o=n(2265).forwardRef((e,t)=>{let{className:n="",type:o="button",disabled:a=!1,loading:d=!1,icon:u,iconAlignment:p="left",children:h,size:v="default",buttonType:m="primary",radius:f="default",...x}=e,g=(0,s.j)("inline-flex items-center justify-center space-x-2 text-sm font-medium text-center transition disabled:opacity-70 disabled:cursor-not-allowed",{variants:{buttonType:{default:"text-sm bg-primary-600 text-white hover:bg-primary-600/90",primary:"text-sm bg-accent-600 hover:bg-accent-700 focus:bg-accent-600 bg-gradient-to-r from-primary-600 to-accent-600 bg-accent-600",dark:"text-base text-black inline-flex space-x-3 bg-white hover:bg-white/80 rounded items-center px-4 py-3.5 space-x-1 cursor-pointer lg:px-6",danger:"border border-red-400 py-2 px-4 rounded-full tracking-wide text-red-500",outline:"bg-transparent border border-solid border-zinc-700 hover:bg-white/10 rounded-xl",white:"bg-white text-black text-sm hover:bg-white/90",alpha:c,dark2:"text-sm bg-zinc-700 hover:bg-zinc-700/90 disabled:pointer-events-none",save:"text-sm bg-primary-600 hover:bg-primary-600/90 disabled:pointer-events-none",blank:"bg-transparent text-white outline-none",brand:"bg-primary-600 text-white hover:bg-primary-500",vip:"bg-[#fdba74] text-black"},size:{default:"px-3 py-2 lg:px-6",small:"px-4 py-2",large:"px-6 py-4 lg:px-8",xlarge:"px-8 py-5 lg:px-10",md:"py-2 px-3",icon:"aspect-square"},radius:{default:"rounded-md",circle:"rounded-full"}},defaultVariants:{buttonType:"primary",size:"default",radius:"default"}});function w(){return d?(0,l.jsx)(i.Z,{className:"w-4 h-4 animate-spin"}):u}return(0,l.jsxs)("button",{ref:t,className:(0,r.cn)(g({buttonType:m,size:v,radius:f,className:n})),type:"button"==o?"button":"submit",disabled:a||d,...x,children:["left"===p&&w(),h&&(0,l.jsx)("span",{className:"inline-flex items-center space-x-1",children:h}),"right"===p&&w()]})});o.displayName="Button",t.ZP=o;let a="text-base text-white inline-flex space-x-3 bg-gray-600 hover:bg-gray-700 rounded items-center px-4 py-3.5 space-x-1 cursor-pointer lg:px-6",c="bg-white/20 hover:bg-white/25 rounded-md"},78876:function(e,t,n){"use strict";n.d(t,{default:function(){return x}});var l=n(57437),i=n(48162),s=n(32238),r=n(88336),o=n(91358),a=n(76237),c=n(2265),d=n(12098),u=n(58018),p=n(18087),h=n(91185),v=n(59140);function m(e,t){return{...e,skip_history:!0,type:e.type||"clips",classname:e.classname||"App\\Models\\Video",thumbnail:e.thumbnail||t.thumbnail,content_access:e.content_access||"free"}}function f(e){let t=[];return e.clips&&e.clips.length>0?(e.clips.forEach(n=>n.is_pre_clip&&n.url&&t.push(m(n,e))),t.push(e),e.clips.forEach(n=>n.is_post_clip&&n.url&&t.push(m(n,e)))):t.push(e),t}var x=function(e){var t,n,d,p,v,m,x,w,b,j,y;let{video:_,nextVideo:N}=e,C=(0,a.tv)(),{auth:S,settings:k}=(0,r.bp)(),[E,P]=(0,c.useState)(f(_)),[L,T]=(0,c.useState)(0),[R,M]=(0,c.useState)(!1),A=E[L],I=(0,h.Z)();return(0,c.useEffect)(()=>{M(!1),P(f(_)),T(0)},[_]),(0,c.useEffect)(()=>{A&&(A.skip_history||(0,o.xr)(A),(0,i.y)(A))},[L]),(0,l.jsxs)(l.Fragment,{children:[A&&(0,l.jsx)(u.Z,{video:A,onProgress:e=>{I(()=>{(0,o.wD)(A,S,e)},s.z8)},onFinish:()=>{L<E.length-1?T(e=>e+1):function(){var e,t;if(s.Xn.autoPlayNext&&(null==N?void 0:N.route_uri)&&!("object"==typeof(null===(e=window.player)||void 0===e?void 0:e.ima)&&(null===(t=window.player.ima.cuePoints)||void 0===t?void 0:t.length)>0&&-1===window.player.ima.cuePoints[window.player.ima.cuePoints.length-1]))return M(!0)}()},maxQuality:"clips"===A.type||(null===(t=S.user)||void 0===t?void 0:t.is_privileged)?0:k.free_user_max_resolution>0&&"free"===A.content_access&&!S.hasSubscription()?k.free_user_max_resolution:("free"===A.content_access||"subscription"===A.content_access)&&S.hasSubscription()&&(null===(p=S.user)||void 0===p?void 0:null===(d=p.subscription)||void 0===d?void 0:null===(n=d.features)||void 0===n?void 0:n.max_resolution)&&S.user.subscription.features.max_resolution>0?null===(b=S.user)||void 0===b?void 0:null===(w=b.subscription)||void 0===w?void 0:w.features.max_resolution:"purchase_or_subscription"===A.content_access&&S.hasSubscription()&&(null===(x=S.user)||void 0===x?void 0:null===(m=x.subscription)||void 0===m?void 0:null===(v=m.features)||void 0===v?void 0:v.max_resolution)&&S.user.subscription.features.max_resolution>0&&!S.hasContentLicense(A)?null===(y=S.user)||void 0===y?void 0:null===(j=y.subscription)||void 0===j?void 0:j.features.max_resolution:0}),R&&N&&(0,l.jsx)(g,{title:N.title,onCancel:()=>{M(!1)},onEnd:()=>{M(!1),C.push(N.route_uri)}})]})};function g(e){let{title:t,onCancel:n,onEnd:i}=e,[s,r]=(0,c.useState)(5),o=(0,p.useTranslations)("Common.buttons");return(0,c.useEffect)(()=>{let e=setInterval(()=>r(e=>e-1),1e3);return()=>clearInterval(e)},[]),(0,c.useEffect)(()=>{s<=0&&i()},[s]),(0,l.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center w-full h-full bg-black/80",children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center w-full max-w-lg p-4 space-y-2 text-center lg:space-y-4",children:[(0,l.jsx)("p",{children:"Next"}),(0,l.jsx)("p",{className:"text-lg font-semibold lg:text-xl",children:t}),(0,l.jsx)("p",{className:"text-xl font-semibold lg:text-4xl",children:s}),(0,l.jsxs)("div",{className:"flex items-center w-full space-x-4",children:[(0,l.jsx)(d.ZP,{buttonType:"dark",onClick:n,"aria-label":o("cancel"),className:"flex-1",children:o("cancel")}),(0,l.jsx)(d.ZP,{"aria-label":o("watch_now"),onClick:i,icon:(0,l.jsx)(v.z,{className:"size-4"}),className:"flex-1",children:o("watch_now")})]})]})})}},21089:function(e,t,n){"use strict";n.d(t,{Z:function(){return m},o:function(){return f}});var l=n(57437),i=n(18087),s=n(44351),r=n(80023),o=n(98408),a=n(58214),c=n(32238),d=n(33129),u=n(76237),p=n(20635),h=n(2265);function v(e){return e.split("/").join("")}
1function m(e){let{collections:t=[],className:n=""}=e,p=(0,u.jD)(),m=(0,i.useTranslations)("ContentDetails"),f=(0,i.useFormatter)();return(0,h.useEffect)(()=>{let e=document.querySelector("#".concat(v(p)));console.log("activeCollection",e),e&&(e.scrollIntoView({behavior:"smooth",block:"end"}),document.body.scrollTop=0)},[p]),(0,l.jsx)(r.x,{className:"h-auto lg:h-[83vh] xl:mr-10 2xl:mr-20",children:(0,l.jsx)("div",{className:(0,a.cn)("space-y-2",n),id:"collections_container",children:t.map((e,t)=>(0,l.jsx)(o.ContentGeoAccessControlCheck,{content:e,children:(0,l.jsxs)(u.rU,{href:(null==e?void 0:e.route_uri)||"",className:"flex gap-4 p-1 ".concat(!(null==e?void 0:e.route_uri)&&"pointer-events-none opacity-70"),id:v((null==e?void 0:e.route_uri)||""),scroll:!1,children:[(0,l.jsx)("div",{className:"w-2/5 max-w-[13rem]",children:(0,l.jsx)("div",{children:(0,l.jsx)(s.default,{width:480,height:270,src:(null==e?void 0:e.thumbnail)||(null==e?void 0:e.image)||c._E,alt:null==e?void 0:e.title,placeholder:"blur",blurDataURL:c._E,className:"object-cover size-full aspect-video rounded-md ".concat((null==e?void 0:e.route_uri)===p&&" outline outline-offset-2 outline-2 outline-white")})})}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsxs)("p",{className:"font-semibold line-clamp-2 text-sm xl:text-base",children:[(null==e?void 0:e.show_rank)&&(0,l.jsxs)("span",{children:[t+1,". "]}),null==e?void 0:e.title]}),(null==e?void 0:e.duration)&&(0,l.jsx)("p",{className:"mt-1 text-xs xl:text-sm text-neutral-300",children:(0,d.lL)({seconds:e.duration,t:m,format:f,withoutSeconds:!0})})]})]})},e.id+e.classname))})})}function f(){return(0,l.jsxs)("section",{className:"flex space-x-4 p-1",children:[(0,l.jsx)("div",{className:"w-2/5 max-w-[13rem] aspect-video",children:(0,l.jsx)(p.O,{className:"w-full h-full"})}),(0,l.jsxs)("div",{className:"flex-1 space-y-2.5",children:[(0,l.jsx)(p.O,{className:"w-1/2 h-4"}),(0,l.jsx)(p.O,{className:"w-1/4 h-3"})]})]})}},54007:function(e,t,n){"use strict";n.d(t,{SingleContentPageView:function(){return s}});var l=n(57437),i=n(91358);function s(e){let{content:t}=e;return(0,i.C8)(t),window.dispatchEvent(new CustomEvent("contentChange",{detail:{content:t}})),(0,l.jsx)(l.Fragment,{})}},4425:function(e,t,n){"use strict";n.d(t,{default:function(){return T}});var l=n(57437),i=n(18087),s=n(26259),r=n(81164),o=n(2265),a=n(76237),c=n(27070),d=n(12098),u=n(27154),p=n(84239),h=function(e){let{content:t}=e;return(0,l.jsxs)("div",{className:"grid grid-cols-2 lg:flex lg:space-x-3",children:[(0,l.jsx)(u.default,{className:"pr-1 lg:pr-0 ",buttonClassName:"".concat(d.S4," w-full flex justify-center lg:min-w-[150px]")}),(0,l.jsx)("div",{className:"pl-1 lg:pl-0",children:(0,l.jsx)(p.Z,{buttonClassName:"w-full ".concat(d.S4," flex justify-center px-0 lg:px-4 lg:min-w-[150px]"),content:t})})]})},v=n(2691),m=n(16031),f=n(53757),x=function(e){let{content:t,className:n=""}=e,[i,s]=(0,o.useState)(!1),r=(0,v.ZP)(),a=r.getButtons(t),c=a.filter(e=>e.show).length;return(0,l.jsxs)("div",{className:"relative lg:static lg:pb-0 ".concat(c>=3?"pb-8":""," ").concat(c>0&&n),children:[(0,l.jsx)("div",{className:"flex flex-col lg:flex-row space-y-3.5 lg:space-y-0 lg:space-x-3 lg:flex-wrap lg:items-end overflow-hidden ".concat(i?"h-full":c>=3?"h-40 lg:h-auto":"h-full"),children:a.map((e,n)=>{let i=e.icon;return(0,l.jsx)(o.Fragment,{children:e.show&&(0,l.jsxs)(d.ZP,{className:"text-sm lg:text-base",buttonType:0===n||e.text.startsWith("Subscribe")?"vip":"dark",onClick:e.onClick,icon:e.icon?(0,l.jsx)(i,{className:"w-4 h-4"}):null,children:[e.price&&(0,l.jsxs)("span",{children:[r.getCurrencySymbol(t.currency),e.price]}),e.text&&(0,l.jsxs)("span",{children:[" ",e.text]})]})},n)})}),c>=3&&(0,l.jsxs)("button",{className:"lg:hidden absolute inset-x-0 z-10 py-1.5 bottom-[10px] -mt-2 -mx-4 transition text-accent-600 flex items-end space-x-1.5 justify-center ".concat(i?"!-bottom-2":"bg-gradient-to-t from-background via-background to-transparent opacity-95 h-[70px]"),onClick:()=>s(!i),children:[(0,l.jsx)("span",{className:"text-base font-semibold",children:i?"Collapse":"See more options"})," ",i?(0,l.jsx)(f.Z,{className:"w-5 h-5"}):(0,l.jsx)(m.Z,{className:"w-5 h-5"})]})]})},g=n(33129);function w(e){let{views:t}=e;return(0,l.jsx)(l.Fragment,{})}
1function b(e){let{content:t,classNames:n=""}=e,r=(0,i.useFormatter)();return(0,l.jsx)("div",{className:"px-4 text-white lg:px-10 ".concat(n),children:(0,l.jsxs)("div",{className:"pt-4 space-y-3 text-sm lg:pt-8 lg:text-base",children:[(0,l.jsx)("h1",{className:"text-lg font-bold leading-none md:text-xl lg:text-2xl",children:t.title}),(0,l.jsxs)("p",{className:"pb-3 space-x-2 text-gray-300 seperate",children:[t.views>0&&(0,l.jsx)(w,{views:t.views}),t.series&&t.series.title&&(0,l.jsx)(a.rU,{href:t.series.route_uri||"/",className:"link",children:t.series.title}),(0,l.jsx)("span",{children:t.release_date}),t.duration>0&&(0,l.jsx)("span",{children:(0,g.lL)({seconds:t.duration,format:r})}),t.metas&&t.metas.genres&&t.metas.genres.length>0&&(0,l.jsx)("span",{children:t.metas.genres.map((e,n)=>(0,l.jsxs)("span",{className:"hover:text-accent-600",children:[(0,l.jsx)(a.rU,{href:e.route_uri||"/",children:e.title}),n<t.metas.genres.length-1&&(0,l.jsx)("span",{children:", "})]},n))}),t.content_rating&&(0,l.jsx)("span",{children:t.content_rating})]}),(0,l.jsx)(s.Z,{placement:"after_video_meta"}),(0,l.jsx)(j,{content:t}),(0,l.jsx)(s.Z,{placement:"after_video_description"})]})})}function j(e){let{content:t}=e,[n,i]=(0,o.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-col space-y-3 lg:flex-row lg:space-y-0 lg:items-center",children:[!t.is_accessible&&(0,l.jsx)(x,{content:t,className:"mr-3"}),(0,l.jsx)(h,{content:t})]}),(0,l.jsxs)("div",{className:"flex flex-col py-4 lg:w-5/6",children:[(0,l.jsx)(c.u,{appear:!0,show:!0,enter:"transition-opacity duration-150",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,l.jsx)("p",{className:"text-white cursor-pointer leading-7 mb-4 ".concat(n?"line-clamp-4":"line-clamp-2"),onClick:()=>i(!n),children:t.description})}),n&&t.metas&&(0,l.jsx)("div",{className:"space-y-4",children:(0,l.jsx)(c.u,{appear:!0,show:!0,enter:"transition ease-out duration-700",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-75",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:Object.keys(t.metas).sort().map(e=>(0,l.jsx)("div",{className:"mb-3",children:"genres"!=e&&"tags"!=e&&t.metas[e].length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:"mb-1 text-sm text-gray-400 uppercase",children:e}),(0,l.jsx)("div",{className:"flex flex-wrap",children:t.metas[e].map((e,t)=>(0,l.jsx)(a.rU,{href:e.route_uri||"/",className:"link after:content-[',__'] whitespace-pre after:last:content-['']",children:e.title},t))})]})},e))})}),(0,l.jsxs)("button",{className:"-mt-2 transition text-accent-600 flex items-center space-x-1.5",onClick:()=>i(!n),children:[(0,l.jsx)("span",{className:"text-sm lg:text-base",children:n?"Collapse":"More"})," ",n?(0,l.jsx)(f.Z,{className:"w-5 h-5"}):(0,l.jsx)(m.Z,{className:"w-5 h-5"})]})]})]})}var y=n(44351),_=n(88336),N=function(){var e;let{auth:t}=(0,_.bp)();return t.isLoggedIn&&(null===(e=t.user)||void 0===e?void 0:e.subscription)?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("div",{className:"flex items-center justify-between px-4 py-4 space-x-2 bg-accent-900/20 lg:px-10",children:[(0,l.jsx)("p",{className:"text-sm text-gray-400 lg:text-base",children:"Subscribe to watch ads free in Full HD"}),(0,l.jsx)(a.rU,{href:"/subscribe",className:"px-4 py-2 text-sm tracking-wide border rounded lg:font-semibold lg:px-6 lg:text-base border-accent-600 whitespace-nowrap",children:"Remove Ads"})]})},C=n(78876),S=n(7784),k=e=>{let{auth:t}=(0,_.bp)(),[n,l]=(0,o.useState)(e);return(0,o.useEffect)(()=>{e.is_accessible?e.id!==n.id&&l(e):t.canAccessContent(e)?l({...e,is_accessible:!0}):l(e)},[null==e?void 0:e.id,t.canAccessContent]),n},E=n(32238);function P(e){let{video:t}=e,n=k(t),o=(0,S.Z)(),{auth:a}=(0,_.bp)(),c=(0,i.useTranslations)("LiveTV")((null==t?void 0:t.rental_price)>0?"banner_text_1":"banner_text_2"),d=n.is_accessible?(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden",children:(0,l.jsx)(C.default,{video:n})}):(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)("div",{className:"relative aspect-video overflow-hidden lg:rounded-xl",children:(0,l.jsx)(y.default,{width:800,height:450,className:"size-full",src:n.tv_cover||n.thumbnail||E._E,alt:n.title,placeholder:"blur",blurDataURL:E._E})}),!a.isLoading&&(0,l.jsx)("div",{className:"mt-5 px-4 lg:px-0",children:(0,l.jsxs)("div",{className:"lg:flex flex-row items-center justify-between bg-gradient-to-r from-[#00264D] to-[#000B18] p-4 rounded-xl",children:[(0,l.jsx)("p",{className:"text-center lg:text-left mb-6 lg:mb-0",children:c}),(0,l.jsx)(r.Z,{content:n})]})})]});return(0,l.jsxs)("div",{children:[o&&(0,l.jsx)(s.Z,{placement:"before_player"}),d,o&&n.is_accessible&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N,{}),(0,l.jsx)(s.Z,{placement:"after_player"}),(0,l.jsx)(b,{content:n})]})]})}function L(e){var t;let{sections:n}=e,[i,s]=(0,o.useState)(null==n?void 0:null===(t=n[0])||void 0===t?void 0:t.t
1itle),r="/"+(0,a.jD)().split("/").pop(),c=n.filter(e=>(null==e?void 0:e.title)===i);return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"flex gap-2 lg:gap-5 items-center border-b border-solid border-zinc-800 overflow-x-auto",children:null==n?void 0:n.map((e,t)=>(0,l.jsx)("button",{type:"button",className:"py-2 px-2 lg:px-4 font-semibold capitalize border-b-2 border-solid ".concat((null==e?void 0:e.title)===i?"border-white":"border-transparent"),onClick:()=>s(null==e?void 0:e.title),children:null==e?void 0:e.title},t))}),(0,l.jsx)("div",{className:"space-y-5 overflow-hidden overflow-y-scroll",children:c.map((e,t)=>{var n;return(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)("div",{className:"grid grid-cols-4 gap-3 lg:gap-4 p-0.5",children:null==e?void 0:null===(n=e.items)||void 0===n?void 0:n.map((e,t)=>(0,l.jsx)(a.rU,{href:null==e?void 0:e.route_uri,className:"size-full aspect-square rounded-xl overflow-hidden ".concat(r===(null==e?void 0:e.route_uri)?"outline outline-2 outline-sky-500":"outline-transparent"),children:(0,l.jsx)(y.default,{src:(null==e?void 0:e.tv_cover)||E._E,alt:null==e?void 0:e.title,width:120,height:120,className:"size-full object-cover"})},t))})},t)})})]})}function T(e){let{video:t,sections:n}=e;return(0,l.jsx)("div",{className:"lg:ml-sidebar lg:mb-10",children:n.length>0?(0,l.jsxs)("div",{className:"lg:grid lg:grid-cols-7",children:[(0,l.jsx)("div",{className:"lg:col-span-5",children:(0,l.jsx)(R,{video:t})}),(0,l.jsx)("div",{className:"mt-5 lg:mt-0 lg:col-span-2 px-4",children:(0,l.jsx)(L,{sections:n})})]}):(0,l.jsx)("div",{className:"mx-auto w-full lg:w-[70%]",children:(0,l.jsx)(R,{video:t})})})}function R(e){let{video:t}=e;return(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)("div",{className:"lg:px-4",children:(0,l.jsx)(P,{video:t})}),(0,l.jsx)("div",{className:"mt-5 px-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h1",{className:"text-lg lg:text-2xl font-semibold lg:font-bold",children:null==t?void 0:t.title}),(0,l.jsx)(u.default,{})]})})]})}},16031:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l=n(57437),i=n(58214);function s(e){let{className:t="",...n}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"6",fill:"none",viewBox:"0 0 12 6",children:(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M.932.266a.567.567 0 01.802 0L6 4.532 10.266.266a.567.567 0 01.801.801L6.4 5.734a.567.567 0 01-.801 0L.932 1.067a.567.567 0 010-.801z",clipRule:"evenodd",className:(0,i.cn)(t),...n})})}},53757:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l=n(57437),i=n(44839);function s(e){let{className:t="",...n}=e,s=(0,i.Z)("fill-current",t);return(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,...n,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4697 8.96967C11.7626 8.67678 12.2374 8.67678 12.5303 8.96967L17.5303 13.9697C17.8232 14.2626 17.8232 14.7374 17.5303 15.0303C17.2374 15.3232 16.7626 15.3232 16.4697 15.0303L12 10.5607L7.53033 15.0303C7.23744 15.3232 6.76256 15.3232 6.46967 15.0303C6.17678 14.7374 6.17678 14.2626 6.46967 13.9697L11.4697 8.96967Z",fill:"current"})})}},94951:function(e,t,n){"use strict";var l=n(57437);n(2265),t.Z=function(e){return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,l.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"inherit"}),(0,l.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}},98054:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l=n(57437),i=n(58214);function s(e){let{className:t=""}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",fill:"none",viewBox:"0 0 17 17",className:(0,i.cn)(t),children:(0,l.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M9.48 4.049a.5.5 0 01.707 0l4 4a.5.5 0 010 .707l-4 4a.5.5 0 11-.707-.707l3.146-3.147h-9.46a.5.5 0 110-1h9.46L9.48 4.756a.5.5 0 010-.707z",clipRule:"evenodd"})})}},81456:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l=n(57437),i=n(58214);function s(e){let{className:t=""}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 18 18",className:(0,i.cn)(t),children:(0,l.jsx)("path",{fill:"#431407",fillRule:"evenodd",d:"M8.487 2.394a1.013 1.013 0 011.402.383l.006.011 1.99 3.777 2.879
1-2.466a1.013 1.013 0 011.63 1.04l-.001.003-1.914 6.918a1.351 1.351 0 01-1.291.991H4.818a1.351 1.351 0 01-1.293-.991L1.612 5.14a1.013 1.013 0 011.63-1.04L6.12 6.564l-.43.521.435-.508.588.31-.593-.323 1.989-3.777.006-.01c.087-.16.216-.292.372-.384zM4.276 14.402a.675.675 0 000 1.35h9.453a.675.675 0 100-1.35H4.276z",clipRule:"evenodd"})})}},56228:function(e,t,n){"use strict";n.d(t,{Ct:function(){return _},ZP:function(){return w},dG:function(){return j},ZO:function(){return b}});var l=n(57437),i=n(2265),s=n(31877),r=n(98054),o=n(33129),a={name:"bKash",brandColor:"#E2136E",scriptSrc:"https://cdn.capp.bka.sh/scripts/webview_bridge.js",backButton:{onClick:()=>{void 0!==window.webViewJSBridge&&window.webViewJSBridge.goBackHome("Tickets")},label:"Back to bKash App Home",id:"bkash_btn"}},c=n(2691);let d=n(25566).env.NEXT_PUBLIC_PARTNER_GP_JS_INTERFACE||"deeptoplay";var u={name:"MyGP",brandColor:"#FF6600",subscribeButton:{onClick:e=>{window.dispatchEvent(new CustomEvent("contentChange",{detail:{content:e}}))},label:"Get GP Pack"},eventListeners:{onLogin(e){console.log("MyGP: Logged in",e)},onLogout(e){var t,n;console.log("MyGP: Logged out",e),"function"==typeof(null===(t=window[d])||void 0===t?void 0:t.tokenStatus)&&window[d].tokenStatus(!1,"token expired"),void 0!==window.webkit&&void 0!==(null===(n=window.webkit)||void 0===n?void 0:n.messageHandlers)&&void 0!==window.webkit.messageHandlers.onTokenStatus&&window.webkit.messageHandlers.onTokenStatus.postMessage({status:!1,message:"Token expired"})},onContentChange(e){var t,n,l,i,s;let{content:r}=e.detail,o=location.origin+((null==r?void 0:r.route_uri)||""),a=!r||!(0,c.tJ)(r);"function"==typeof(null===(t=window[d])||void 0===t?void 0:t.contentChange)&&window[d].contentChange(o,a),void 0!==window.webkit&&void 0!==(null===(n=window.webkit)||void 0===n?void 0:n.messageHandlers)&&void 0!==window.webkit.messageHandlers.onContentChange&&window.webkit.messageHandlers.onContentChange.postMessage({contentUrl:o,isPremium:a}),console.log("MyGP: Content changed",e),console.log("MyGP:",o,a),console.log("MyGP: typeof ".concat(d,".contentChange"),typeof(null===(l=window[d])||void 0===l?void 0:l.contentChange)),console.log("MyGP: typeof window.webkit.messageHandlers.onContentChange",typeof(null===(s=window.webkit)||void 0===s?void 0:null===(i=s.messageHandlers)||void 0===i?void 0:i.onContentChange))},onEvent(e){var t,n;console.log("MyGP: Event",e);let l=e.type,i=e.detail||{};if("function"==typeof(null===(t=window[d])||void 0===t?void 0:t.eventExecute)){let e=Object.entries(i).map(e=>{let[t,n]=e;return"".concat(t,",").concat(n)}).join(",");window[d].eventExecute(l,e)}void 0!==window.webkit&&void 0!==(null===(n=window.webkit)||void 0===n?void 0:n.messageHandlers)&&void 0!==window.webkit.messageHandlers.onEventExecute&&window.webkit.messageHandlers.onEventExecute.postMessage(l,i),console.log("MyGP:",l,commaSeparatedParams)}},registerEventListeners(){window.addEventListener("login",this.eventListeners.onLogin),window.addEventListener("logout",this.eventListeners.onLogout),window.addEventListener("contentChange",this.eventListeners.onContentChange)},unregisterEventListeners(){window.removeEventListener("login",this.eventListeners.onLogin),window.removeEventListener("logout",this.eventListeners.onLogout),window.removeEventListener("contentChange",this.eventListeners.onContentChange)}},p={name:"MyBL",brandColor:"#000000",subscribeButton:{onClick:e=>{window.dispatchEvent(new CustomEvent("contentChange",{detail:{content:e}}))},label:"Get BL Pack"},eventListeners:{onLogin(e){var t,n,l,i;console.log("MyBL: Logged in",e),"function"==typeof(null===(t=window.AndroidInterface)||void 0===t?void 0:t.tokenStatus)&&window.AndroidInterface.tokenStatus("Y"),"function"==typeof(null===(i=window.webkit)||void 0===i?void 0:null===(l=i.messageHandlers)||void 0===l?void 0:null===(n=l.tokenStatus)||void 0===n?void 0:n.postMessage)&&window.webkit.messageHandlers.tokenStatus.postMessage("Y")},onLogout(e){var t,n,l,i;console.log("MyBL: Logged out",e),"function"==typeof(null===(t=window.AndroidInterface)||void 0===t?void 0:t.tokenStatus)&&window.Android
1Interface.tokenStatus("N"),"function"==typeof(null===(i=window.webkit)||void 0===i?void 0:null===(l=i.messageHandlers)||void 0===l?void 0:null===(n=l.tokenStatus)||void 0===n?void 0:n.postMessage)&&window.webkit.messageHandlers.tokenStatus.postMessage("N")},onContentChange(e){var t,n,l,i,s;let{content:r}=e.detail,o=location.origin+((null==r?void 0:r.route_uri)||""),a=!r||!(0,c.tJ)(r);"function"==typeof(null===(t=window.deeptoplay)||void 0===t?void 0:t.contentChange)&&window.deeptoplay.contentChange(o,a),"function"==typeof window.contentChange&&window.contentChange(o,a),void 0!==window.webkit&&void 0!==(null===(n=window.webkit)||void 0===n?void 0:n.messageHandlers)&&void 0!==window.webkit.messageHandlers.onContentChange&&window.webkit.messageHandlers.onContentChange.postMessage({contentUrl:o,isPremium:a}),console.log("MyBL: Content changed",e),console.log("MyBL:",o,a),console.log("MyBL: typeof contentChange",typeof window.contentChange),console.log("MyBL: typeof deeptoplay.contentChange",typeof(null===(l=window.deeptoplay)||void 0===l?void 0:l.contentChange)),console.log("MyBL: typeof window.webkit.messageHandlers.onContentChange",typeof(null===(s=window.webkit)||void 0===s?void 0:null===(i=s.messageHandlers)||void 0===i?void 0:i.onContentChange))},onEvent(e){var t,n;console.log("MyBL: Event",e);let l=e.type,i=e.detail||{};if("function"==typeof(null===(t=window.deeptoplay)||void 0===t?void 0:t.eventExecute)){let e=Object.entries(i).map(e=>{let[t,n]=e;return"".concat(t,",").concat(n)}).join(",");window.deeptoplay.eventExecute(l,e)}void 0!==window.webkit&&void 0!==(null===(n=window.webkit)||void 0===n?void 0:n.messageHandlers)&&void 0!==window.webkit.messageHandlers.onEventExecute&&window.webkit.messageHandlers.onEventExecute.postMessage(l,i),console.log("MyBL:",l,commaSeparatedParams)}},registerEventListeners(){window.addEventListener("login",this.eventListeners.onLogin),window.addEventListener("logout",this.eventListeners.onLogout),window.addEventListener("contentChange",this.eventListeners.onContentChange)},unregisterEventListeners(){window.removeEventListener("login",this.eventListeners.onLogin),window.removeEventListener("logout",this.eventListeners.onLogout),window.removeEventListener("contentChange",this.eventListeners.onContentChange)}},h=n(12098),v=n(81456),m=n(7784),f=n(76237),x=n(88336);let g={bkash:a,bkash_app:a,mygp:u,grameenphone:u,gp:u,banglalink:p,mybl:p,bl:p};var w=function(){let[e,t]=(0,i.useState)(),n=g[e],{auth:a}=(0,x.bp)(),c=(0,m.Z)(),d=(0,f.jD)(),u=a.hasSubscription(),p="/subscribe"===d&&u,h=["/payment/success","/payment/failure","/payment/processing","/payment/cancelled"].includes(d)||p;return(0,i.useEffect)(()=>{var e,n;let l=(0,o.kW)();return t(l),null===(n=g[l])||void 0===n||null===(e=n.registerEventListeners)||void 0===e||e.call(n),()=>{var e,t;null===(t=g[l])||void 0===t||null===(e=t.unregisterEventListeners)||void 0===e||e.call(t)}},[]),(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.scriptSrc)&&(0,l.jsx)(s.default,{type:"text/javascript",src:n.scriptSrc}),(null==n?void 0:n.backButton)&&c&&h&&(0,l.jsxs)("button",{id:n.backButton.id,type:"button",onClick:n.backButton.onClick,className:"fixed bottom-0 left-0 z-20 flex items-center justify-between w-full px-4 py-2.5 text-white",style:{backgroundColor:n.brandColor,borderColor:n.brandColor},children:[(0,l.jsx)("span",{children:n.backButton.label}),(0,l.jsx)(r.Z,{className:"inline-block size-5"})]})]})};function b(e){let t=g[(0,o.kW)()];if(t&&t.subscribeButton)return{label:t.subscribeButton.label,onClick:()=>t.subscribeButton.onClick(e)}}function j(e){let t=b(e);if(t)return"Get BL Pack"===t.label?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(y,{label:t.label,onClick:t.onClick})}function y(e){let{label:t,onClick:n}=e;return(0,l.jsx)(h.ZP,{"aria-label":t,buttonType:"vip",onClick:n,className:"px-2.5 py-2 font-medium rounded-full",children:(0,l.jsxs)("span",{className:"relative z-10 flex items-center gap-1.5 lg:gap-2",children:[(0,l.jsx)(v.Z,{}),(0,l.jsx)("span",{children:t})]})})}function _(e){let{children:t,partnerList:n}=e,l=(0,o.kW)(),i=(0,m.Z)();return n.includes(l)&&i?null:t}},76823:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var l=n(57437),i=n(21039),s=n(53659),r=n(7442),o=n(24608),a=n(18707),c=n(73986),d=n(85139),u=n(32238),p=n(15630);
1function h(e){let{content:t,sections:n}=e,h=(0,r.oQ)(t),v=(0,r.Q$)(t),{dominantColor:m}=(0,d.Z)(v||u._E);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"fixed -z-10 top-0 w-full h-screen",style:{background:"linear-gradient(to bottom, ".concat(m,", rgba(0, 0, 0, 0))"),opacity:.4}}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-9 grid-cols-1 xl:gap-5 mb-5",children:[(0,l.jsx)("div",{className:"lg:ml-sidebar px-4 lg:col-span-4 order-last lg:order-first",children:(0,l.jsx)("div",{className:"relative h-full",children:(0,l.jsx)(p.x1,{content:t,children:(0,l.jsx)("div",{className:"w-full",children:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"space-y-1.5 lg:space-y-2",children:[(0,l.jsx)("div",{className:"hidden lg:block xl:mt-9",children:(0,l.jsx)(i.rz,{content:t})}),(0,l.jsx)("div",{className:"block lg:hidden",children:(0,l.jsx)(i.rz,{content:t,isMnemonic:!1,position:"start",className:"mt-4"})}),(0,l.jsx)(i.RS,{content:t})]}),(0,l.jsx)("div",{className:"hidden lg:block",children:(0,l.jsx)(s.ZP,{content:t,sections:n,buttonType:"rounded",trailerEnabled:!1,type:"series"})}),(0,l.jsx)("div",{className:"lg:hidden",children:(0,l.jsx)(s.ZP,{content:t,sections:n,trailerEnabled:!1,type:"series"})}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)(a.R,{content:t}),(0,l.jsx)(c._,{content:t})]})]})})})})}),(0,l.jsx)("div",{className:"w-full lg:px-4 lg:col-span-5",children:(0,l.jsxs)("div",{className:"relative overflow-hidden",children:[(0,l.jsx)(o.Z,{image:v,video:h,enableVideo:!0,sectionClassName:"rounded-none lg:rounded-[28px]"}),(0,l.jsx)("div",{id:"volume_btn_container",className:"absolute right-5 bottom-2 lg:bottom-5 z-20"})]})})]})]})}},38312:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(57437),i=n(76237),s=n(18087),r=n(81456),o=n(56228);function a(e){let{content:t=null}=e,n=(0,s.useTranslations)("Header");return(0,o.dG)(t)||(0,l.jsx)(i.rU,{href:"/subscribe",className:"whitespace-nowrap relative animate-shimmer bg-[linear-gradient(135deg,#fdba74,45%,rgba(255,255,255,0.5),55%,#fdba74)] bg-[length:250%_100%] px-2.5 lg:px-3 py-1 lg:py-1.5 overflow-hidden font-semibold text-sm rounded-full bg-orange-300 border border-solid border-orange-300 text-orange-950",children:(0,l.jsxs)("span",{className:"relative z-10 flex items-center gap-1.5 lg:gap-2",children:[(0,l.jsx)(r.Z,{}),(0,l.jsx)("span",{className:"hidden lg:block",children:n("get_vip")}),(0,l.jsx)("span",{className:"lg:hidden",children:n("vip")})]})})}},73986:function(e,t,n){"use strict";n.d(t,{_:function(){return f}});var l=n(57437),i=n(12098),s=n(16031),r=n(53757),o=n(33129),a=n(76237),c=n(27070),d=n(44839),u=n(18087),p=n(2265);function h(e){let{children:t}=e;return(0,l.jsx)("section",{className:"grid grid-cols-1 gap-2 xl:gap-6 lg:grid-cols-12",children:t})}function v(e){let{children:t}=e;return(0,l.jsx)("div",{className:"text-xs font-medium lg:col-span-3 xl:col-span-2 lg:text-base text-zinc-400",children:t})}function m(e){let{children:t,className:n=""}=e;return(0,l.jsx)("div",{className:(0,d.Z)("lg:col-span-9 xl:col-span-10 text-xs lg:text-base",n),children:t})}function f(e){var t,n,f,x,g,w,b;let{content:j}=e,[y,_]=(0,p.useState)(!1),N=(0,u.useTranslations)("ContentDetails"),C=(0,u.useTranslations)("Common.buttons"),S=(0,u.useTranslations)("MetaTypes.options"),k=(0,u.useFormatter)(),E=null==j?void 0:j.description,P=null==j?void 0:null===(t=j.metas)||void 0===t?void 0:t.genres,L=(null==j?void 0:j.duration)&&(0,o.lL)({seconds:null==j?void 0:j.duration,t:N,format:k,withoutSeconds:!0}),T=null==j?void 0:j.release_date,R=null==j?void 0:null===(n=j.content_rating)||void 0===n?void 0:n.name,M=null==j?void 0:j.total_episodes,A=null==j?void 0:j.total_seasons,I=null==j?void 0:j.custom_fields,z=(null==j?void 0:null===(f=j.metas)||void 0===f?void 0:f.casts)||[],Z=null!==(w=z.filter(e=>{var t;return(null===(t=e.pivot)||void 0===t?void 0:t.featured)===!0}))&&void 0!==w?w:[],B=null!==(b=z.filter(e=>{var t;return(null===(t=e.pivot)||void 0===t?void 0:t.featured)===!1}))&&void 0!==b?b:[],U=(null==j?void 0:null===(x=j.metas)||void 0===x?void 0:x.directors)||[],D=(null==j?void 0:null===(g=j.metas)||void 0===g?void 0:g.writers)||[];return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("section",{className:"space-y-2",children:[E&&(0,l.jsx)(l.Fragment,{children:y?(0,l.jsx)("p",{className:"max-w-3xl mb-4 text-xs text-gray-200 transition-all lg:text-base",children:E}):(0,l.jsx)("p",{className:(0,d.Z)("line-clamp-2 max-w-3xl text-xs lg:text-base text-gray-200 transition-all"),children:E})}),(0,l.jsx)(c.u,{show:y,enter:"transition-opacity duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",appear:!0,children:(0,l.jsxs)("section",{className:"space-y-4 text-lg",children:[Z&&Z.length>0&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:S("casts")}
1)}),(0,l.jsx)(m,{children:(0,l.jsx)(O,{icons:Z})})]}),U&&U.length>0&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:S("directors")})}),(0,l.jsx)(m,{children:(0,l.jsx)(O,{icons:U})})]}),D&&D.length>0&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:S("writers")})}),(0,l.jsx)(m,{children:(0,l.jsx)(O,{icons:D})})]}),B&&B.length>0&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:N("other_casts")})}),(0,l.jsx)(m,{className:"space-x-2",children:B.map((e,t)=>e.route_uri?(0,l.jsx)(a.rU,{href:e.route_uri,className:"hover:text-primary-500 transition-colors duration-200",children:e.title},t):(0,l.jsx)("span",{children:e.title},t))})]}),M>0&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:N("episodes")})}),(0,l.jsx)(m,{children:(0,l.jsx)("p",{children:k.number(M)})})]}),A>0&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:N("seasons")})}),(0,l.jsx)(m,{children:(0,l.jsx)("p",{children:k.number(A)})})]}),P&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:N("genres")})}),(0,l.jsx)(m,{className:"space-x-2",children:P.map((e,t)=>(0,l.jsx)(a.rU,{href:e.route_uri,className:"hover:text-primary-500 transition-colors duration-200",children:e.title},t))})]}),R&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:N("maturity_ratings")})}),(0,l.jsx)(m,{children:(0,l.jsx)("p",{children:R})})]}),(null==L?void 0:L.length)>0&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:N("runtime")})}),(0,l.jsx)(m,{children:(0,l.jsx)("p",{children:L})})]}),T&&(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:N("release_date")})}),(0,l.jsx)(m,{children:(0,l.jsx)("p",{children:k.dateTime(new Date(T),{year:"numeric",month:"long",day:"numeric"})})})]}),I.length>0&&(0,l.jsx)(l.Fragment,{children:I.map((e,t)=>(0,l.jsxs)(h,{children:[(0,l.jsx)(v,{children:(0,l.jsx)("p",{children:e.label})}),(0,l.jsx)(m,{children:(0,l.jsx)("p",{children:e.value})})]},t))})]})}),(0,l.jsxs)(i.ZP,{buttonType:"blank",className:"flex items-center !px-0 py-0 text-xs font-semibold lg:text-base text-accent-600",onClick:function(){_(!y)},children:[(0,l.jsx)("span",{children:C(y?"see_less":"see_more")}),y?(0,l.jsx)(r.Z,{className:"!h-5 !w-5"}):(0,l.jsx)(s.Z,{className:"!h-5 !w-5"})]})]})});function O(e){let{icons:t}=e;return(0,l.jsx)("div",{className:"flex flex-wrap gap-y-1 lg:gap-y-1.5 w-full",children:t.map((e,n)=>(0,l.jsx)(a.rU,{href:null==e?void 0:e.route_uri,className:"inline-flex items-center gap-px",children:e.title&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"hover:text-primary-500 transition-colors duration-200",children:e.title}),n<t.length-1&&(0,l.jsx)("span",{className:"mr-1",children:","})]})},e.id))})}}},52194:function(e,t,n){"use strict";n.d(t,{default:function(){return u}});var l=n(57437),i=n(2265),s=n(49059),r=n(2128),o=n(21089),a=n(88857),c=n(33129),d=n(18087);function u(e){var t,n;let{seasons:r,content:o,sections:c}=e,[d,u]=(0,i.useState)(o),h=r.length>0?null===(t=r.map(e=>({id:e.id,name:e.title,value:e.id,total_episodes:e.total_episodes})))||void 0===t?void 0:t.reverse():[],{episodeResponse:v}=(0,s.Z)({seasons:h,content:o,enableFetchingNextSeason:!0});return(0,l.jsx)(a.default,{content:d,playlistsQueue:(null==v?void 0:null===(n=v.data)||void 0===n?void 0:n.data)||[],children:(0,l.jsx)(p,{seasons:h,content:o})})}function p(e){var t,n,i,a,u,p;let{seasons:h,content:v}=e,m=(0,d.useTranslations)("ContentDetails"),{episodeResponse:f,activePage:x,episodeRange:g,handlePageChange:w,handleSeasonChange:b,activeSeasonId:j,isEpisodesLoading:y}=(0,s.Z)({seasons:h,content:v});return(0,l.jsxs)("div",{className:"space-y-4 pb-4",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,l.jsx)("div",{className:"max-w-[100px] lg:max-w-[180px]",children:(0,l.jsxs)(r.Ph,{onValueChange:b,value:j,children:[(0,l.jsx)(r.i4,{className:"w-full",children:(0,l.jsx)(r.ki,{placeholder:null!==(p=null===(t=h.find(e=>(null==e?void 0:e.id)===j))||void 0===t?void 0:t.name)&&void 0!==p?p:m("season")})}),(0,l.jsx)(r.Bw,{children:null==h?void 0:h.map(e=>(0,l.jsx)(r.Ql,{value:e.value,children:e.name},e.value))})]})}),(null==g?void 0:g.length)>0&&(0,l.jsx)("div",{className:"max-w-[100px] lg:max-w-[180px]",children:(0,l.jsxs)(r.Ph,{onValueChange:w,value:x,children:[(0,l.jsx)(r.i4,{className:"w-full",children:(0,l.jsx)(r.ki,{placeholder:"".concat((null===(n=g[x-1])||void 0===n?void 0:n.name)||"Episodes")})}),(0,l.jsx)(r.Bw,{children:null==g?void 0:g.map(e=>(0,l.jsx)(r.Ql,{value:e.value,children:e.name},e.value))})]})})]}),y?(0,l.jsx)("div",{className:"space-y-2",children:(0,c.G$)(7).map(e=>(0,l.jsx)(o.o,{},e))}):(null==f?void 0:null===(a=f.data)||void 0===a?void 0:null===(i=a.data)||void 0===i?void 0:i.length)>0?(0,l.jsx)(o.Z,{collections:(null==f?void 0:null===(u=f.data)||void 0===u?void 0:u.data)||[]}):!y&&(0,l.jsx)("p",{className:"p-1",children:m("no_episode_found")})]})}},37031:function(e,t,n){"use strict";n.d(t,{default:function(){return r}});var l=n(57437),i=n(44839),s=n(18087);function r(e){let{title:t,className:n=""}=e,r=(0,s.useTranslations)("ContentDetails");return(0,l.jsx)("div",{className:(0,i.Z)("flex items-center justify-between relative",n),children:(0,l.jsx)("h2",{className:"flex-1 text-base font-medium lg:text-xl lg:font-semibold",children:r("episodes")})})}n(2265)},14973:function(e,t,n){"use strict";n.d(t,{default:function(){return h},j:function(){return p}});var l=n(57437),i=n(2265),s=n(18087),r=n(87484);n(21089);var o=n(2128),a=n(33263),c=n(32238);n(20635);var d=n(63094),u=n(54117);async function p(e){return a.R.get(e).then(e=>e.data)}function h(e){var t;let{episodes:n,series:a}=e,[h,v]=(0,i.useState)(!0),[m,f]=(0,i.useState)(n),[x,g]=(0,i.useState)(1),w=(0,i.useMemo)(()=>{var e,t;return(0,r.t)((null==m?void 0:null===(t=m.data)||void 0===t?void 0:null===(e=t.meta)||void 0===e?void 0:e.total)||0,c.zr).map((e,t)=>({name:"Episode ".concat(e[0],"-").concat(e[1]?e[1]:e[0]),value:t+1}))},[x,m]),b=(0,s.useTranslations)("ContentDetails");return((0,i.useEffect)(()=>{x&&(v(!0),p("/v1".concat(null==a?void 0:a.route_uri,"/episodes?per_page=").concat(c.zr,"&page=").concat(x)).then(e=>{if(e.success){var t,n;(null===(n=e.result)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.links)&&(e.result.data.links=null),f(e.result)}}).finally(()=>{v(!1)}))},[x]),h)?(0,l.jsx)("div",{className:"grid h-56 place-content-center ",children:(0,l.jsx)(d.Jz,{})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-col space-y-2 lg:space-y-0 lg:flex-row lg:items-center lg:justify-between ",children:[(0,l.jsx)("h2",{className:"flex-1 lg:ml-sidebar lg:text-xl font-semibold",children:b("episodes")}),w.length>1&&(0,l.jsx)("div",{className:"w-[200px]",children:(0,l.jsxs)(o.Ph,{onValueChange:function(e){g(e)},value:x,children:[(0,l.jsx)(o.i4,{className:"w-full",children:(0,l.jsx)(o.ki,{placeholder:"".concat((null===(t=w[x-1])||void 0===t?void 0:t.name)||"Episodes")})}),(0,l.jsx)(o.Bw,{children:null==w?void 0:w.map(e=>(0,l.jsx)(o.Ql,{value:e.value,children:e.name},e.value))})]})})]}),(0,l.jsx)(u.Z,{collection:m})]})}},94056:function(e,t,n){"use strict";n.d(t,{MultipleSeasonsAndEpisodes:function(){return p}});var l=n(57437),i=n(54117),s=n(32238),r=n(2265),o=n(87484),a=n(14973),c=n(63094),d=n(18087),u=n(2128);function p(e){var t,n,i,c,d,p,v,m;let{seasons:f,series:x}=e,[g,w]=(0,r.useState)(!0),[b,j]=(0,r.useState)(null===(t=f[0])||void 0===t?void 0:t.id),[y,_]=(0,r.useState)(1),[N,C]=(0,r.useState)(null),S=(null==N?void 0:null===(i=N.data)||void 0===i?void 0:null===(n=i.meta)||void 0===n?void 0:n.total)||0,k=(0,r.useMemo)(()=>{var e,t;return(0,o.t)((null==N?void 0:null===(t=N.data)||void 0===t?void 0:null===(e=t.meta)||void 0===e?void 0:e.total)||0,s.zr).map((e,t)=>({name:"Episode ".concat(e[0],"-").concat(e[1]?e[1]:e[0]),value:t+1}))},[b,N]);function E(e){j(e),_(1)}return((0,r.useEffect)(()=>
1{if(!b){w(!1);return}w(!0);let e="/v1".concat(null==x?void 0:x.route_uri,"/episodes?per_page=").concat(s.zr,"&season_id=").concat(b,"&page=").concat(y);(0,a.j)(e).then(e=>{e.success&&C(e.result)}).catch(e=>{}).finally(()=>{w(!1)})},[b,y]),S>s.zr)?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(h,{episodes:N,isLoading:g,children:(0,l.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,l.jsx)("div",{className:"w-[160px] lg:w-[300px]",children:(0,l.jsxs)(u.Ph,{onValueChange:E,value:b,children:[(0,l.jsx)(u.i4,{className:"w-full",children:(0,l.jsx)(u.ki,{placeholder:null!==(v=null===(d=f.find(e=>(null==e?void 0:e.id)===b))||void 0===d?void 0:d.name)&&void 0!==v?v:"Season"})}),(0,l.jsx)(u.Bw,{children:null==f?void 0:f.map(e=>(0,l.jsx)(u.Ql,{value:e.value,children:e.name},e.value))})]})}),(0,l.jsx)("div",{className:"w-[160px] lg:w-[300px]",children:(0,l.jsxs)(u.Ph,{onValueChange:function(e){_(e)},value:y,children:[(0,l.jsx)(u.i4,{className:"w-full",children:(0,l.jsx)(u.ki,{placeholder:"".concat((null===(p=k[y-1])||void 0===p?void 0:p.name)||"Episodes")})}),(0,l.jsx)(u.Bw,{children:null==k?void 0:k.map(e=>(0,l.jsx)(u.Ql,{value:e.value,children:e.name},e.value))})]})})]})})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(h,{episodes:N,isLoading:g,children:(0,l.jsx)("div",{className:"w-[300px]",children:(0,l.jsxs)(u.Ph,{onValueChange:E,value:b,children:[(0,l.jsx)(u.i4,{className:"w-full",children:(0,l.jsx)(u.ki,{placeholder:null!==(m=null===(c=f.find(e=>(null==e?void 0:e.id)===b))||void 0===c?void 0:c.name)&&void 0!==m?m:"Season"})}),(0,l.jsx)(u.Bw,{children:null==f?void 0:f.map(e=>(0,l.jsx)(u.Ql,{value:e.value,children:e.name},e.value))})]})})})})}function h(e){var t;let{children:n,episodes:s,isLoading:r=!1}=e,o=(0,d.useTranslations)("ContentDetails");return(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.links)&&(s.data.links=null),(0,l.jsxs)("div",{className:"pb-10",children:[(0,l.jsxs)("div",{className:"flex flex-col space-y-2 lg:space-y-0 lg:flex-row lg:items-center lg:justify-between lg:ml-sidebar",children:[(0,l.jsx)("h2",{className:"flex-1 text-base font-semibold lg:text-lg",children:o("episodes")}),n]}),r?(0,l.jsx)("div",{className:"grid h-full place-content-center",children:(0,l.jsx)(c.Jz,{})}):(0,l.jsx)(i.Z,{collection:s})]})}},87484:function(e,t,n){"use strict";function l(e,t){if("number"!=typeof e||"number"!=typeof t||e<=0||t<=0)return[];if(e<=t)return[[1,e]];let n=[],l=Math.ceil(e/t);for(let i=0;i<l;i++){let l=i*t+1,s=Math.min((i+1)*t,e),r=[];r.push(l),r.push(s),n.push(r)}return n}n.d(t,{t:function(){return l}}),n(32238)},24839:function(e,t,n){"use strict";n.d(t,{default:function(){return v}});var l=n(57437),i=n(2265),s=n(18087),r=n(44351),o=n(53757),a=n(16031),c=n(27154),d=n(33129),u=n(32238),p=n(85139),h=n(54089);function v(e){let{content:t}=e,n=(null==t?void 0:t.type)==="casts"||(null==t?void 0:t.type)==="actors"||(null==t?void 0:t.type)==="directors"||(null==t?void 0:t.type)==="writers",i=(null==t?void 0:t.type)==="genres";return(0,l.jsxs)("section",{className:"lg:ml-sidebar mb-4 lg:mb-8",children:[n&&(0,l.jsx)(m,{content:t}),i&&(0,l.jsx)(f,{content:t})]})}
1function m(e){let{content:t}=e,n=(0,s.useTranslations)("Common.buttons"),u=(0,s.useTranslations)("MetaTypes.singular_options"),h=(0,s.useTranslations)("MetaTypes"),[v,m]=(0,i.useState)(!1),f=(null==t?void 0:t.thumbnail)||"/images/blank-user.png",{dominantColor:x}=(0,p.Z)(f);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"fixed -z-10 top-0 inset-x-0 w-full h-[50vh]",style:{background:"linear-gradient(to bottom, ".concat(x,", rgba(0, 0, 0, 0))"),opacity:.5}}),(0,l.jsxs)("div",{className:"pt-4 lg:pt-6 px-4 flex flex-col items-center lg:flex-row lg:space-x-8 lg:items-end",children:[(0,l.jsx)(r.default,{src:f,alt:null==t?void 0:t.title,className:"rounded-full aspect-square object-cover size-36 lg:size-60",width:240,height:240}),(0,l.jsxs)("div",{className:"pt-5 lg:pt-[2.4rem] text-center lg:text-start",children:[(0,l.jsx)("h1",{className:"font-semibold text-2xl lg:text-3xl",children:null==t?void 0:t.title}),(0,l.jsx)("p",{className:"mt-1 lg:mt-2 text-zinc-300 capitalize",children:u(null==t?void 0:t.type)}),(null==t?void 0:t.description)&&(0,l.jsxs)("div",{className:"mt-3 lg:mt-2",children:[(0,l.jsx)("p",{className:" text-base w-full lg:w-2/3 text-zinc-300",children:(0,d.oE)(null==t?void 0:t.description,!v)}),(null==t?void 0:t.description.length)>300&&(0,l.jsxs)("button",{className:"mt-2 flex items-center space-x-1.5 text-accent-600",onClick:()=>m(!v),children:[(0,l.jsx)("span",{className:"text-base",children:n(v?"see_less":"see_more")})," ",v?(0,l.jsx)(o.Z,{className:"!h-5 !w-5"}):(0,l.jsx)(a.Z,{className:"!h-5 !w-5"})]})]}),(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(c.default,{buttonClassName:"py-2.5 bg-white/10 hover:bg-white/20",type:"secondary",isText:!0,text:h("share_profile")})})]})]})]})}function f(e){var t;let{content:n}=e,i=(null==n?void 0:n.thumbnail_background)||(null==n?void 0:null===(t=n.latest_content)||void 0===t?void 0:t.thumbnail_background)||u._E;return(0,l.jsx)("div",{className:"px-4",children:(0,l.jsx)(h.default,{imageSrc:i,title:null==n?void 0:n.title})})}},88857:function(e,t,n){"use strict";n.d(t,{default:function(){return x}});var l=n(57437),i=n(53659),s=n(73986),r=n(21039),o=n(29940),a=n(21089),c=n(25536),d=n(76237),u=n(58214),p=n(88336),h=n(38312),v=n(18087);
1function m(e){let{content:t}=e,{auth:n}=(0,p.bp)(),i=(null==t?void 0:t.content_access)==="free",s=n.hasSubscription(),r=(0,v.useTranslations)("Avod");return i&&!s?(0,l.jsxs)("div",{className:"bg-neutral-800 text-white p-4 rounded-xl flex justify-between items-center mx-3 lg:mx-0 space-x-2",children:[(0,l.jsx)("h3",{className:"text-sm font-medium",children:r("title")}),(0,l.jsx)(h.Z,{content:t})]}):null}var f=n(26259);function x(e){var t;let{content:n,sections:p,playlistsQueue:h,children:v}=e;return(0,l.jsxs)("section",{className:"grid lg:grid-cols-3 lg:space-x-6 lg:ml-sidebar lg:px-4",children:[(0,l.jsxs)("div",{className:(0,u.cn)("w-full col-span-1 relative overflow-hidden space-y-6 lg:col-span-2"),children:[(0,l.jsxs)("div",{className:"w-full aspect-video space-y-4",children:[(0,l.jsx)(o.default,{content:n,playlists:h||p}),(0,l.jsx)(f.Z,{placement:"after_player"}),(0,l.jsx)(m,{content:n})]}),(0,l.jsx)("div",{className:"relative h-full px-4 lg:px-0",children:(0,l.jsxs)("section",{children:[(0,l.jsxs)("div",{className:"w-full mb-4 lg:mb-8 flex-1 lg:flex lg:flex-row lg:justify-between lg:gap-5",children:[(0,l.jsxs)("div",{className:"space-y-4 lg:flex-1",children:[(0,l.jsxs)("div",{className:"space-y-1.5 lg:space-y-2",children:["series"===n.template?(0,l.jsxs)("div",{className:"flex flex-wrap",children:[(0,l.jsxs)("div",{className:"inline-flex",children:[(0,l.jsx)(d.rU,{href:n.series.route_uri,className:"text-lg lg:text-2xl font-semibold line-clamp-2 hover:text-blue-400 transition-colors duration-200",children:null===(t=n.series)||void 0===t?void 0:t.title}),(0,l.jsx)("span",{className:"my-auto mx-1",children:(0,l.jsx)(c.Z,{className:"size-5 lg:size-6"})})]}),(0,l.jsx)("h2",{className:"text-lg lg:text-2xl font-semibold line-clamp-2 text-neutral-300",children:null==n?void 0:n.title})]}):(0,l.jsx)("h2",{className:"text-lg lg:text-2xl font-semibold line-clamp-2",children:n.title}),(0,l.jsx)(r.RS,{content:n})]}),(0,l.jsx)("div",{className:"xl:hidden",children:(0,l.jsx)(i.ZP,{content:n,sections:p})}),(0,l.jsx)("div",{className:"space-y-4 lg:space-y-8",children:(0,l.jsx)(s._,{content:n})})]}),(0,l.jsx)("div",{className:"hidden xl:block",children:(0,l.jsx)(i.ZP,{content:n,sections:p})})]}),(0,l.jsx)(f.Z,{placement:"after_video_meta",spaces:!0})]})})]}),(0,l.jsxs)("div",{className:"col-span-1 px-4 lg:px-0 hidden lg:block",children:[(0,l.jsx)(f.Z,{placement:"before_player_panel"}),v||(0,l.jsx)(l.Fragment,{children:p.map((e,t)=>{var n;return(0,l.jsxs)("div",{className:"space-y-4 pb-4",children:[e.title&&(0,l.jsx)("h2",{className:"text-lg font-semibold",children:e.title}),(0,l.jsx)(a.Z,{collections:null!==(n=null==e?void 0:e.items)&&void 0!==n?n:[]})]},t)})})]})]})}},29940:function(e,t,n){"use strict";n.d(t,{default:function(){return w}});var l=n(57437),i=n(98408),s=n(7442),r=n(2265),o=n(70750);function a(e){let{children:t}=e,[n,i]=(0,o._)("videojs-persist",null,{initializeWithValue:!1});return(0,r.useEffect)(()=>{n||i(()=>({...n,muted:!1}))},[]),(0,l.jsx)(l.Fragment,{children:t})}var c=n(74313),d=n(88336),u=n(7544),p=n(12098),h=n(52948),v=n(18087),m=n(16463);function f(e){let{content:t,onRetry:n,isLoading:i}=e,s=(0,m.useRouter)(),r=(0,v.useTranslations)("StreamLimit");return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(h.Z,{content:t}),(0,l.jsx)("section",{className:"absolute inset-0",children:(0,l.jsx)("div",{className:"grid place-content-center h-full",children:(0,l.jsxs)("section",{className:"w-full lg:max-w-xl mt-7 space-y-7",children:[(0,l.jsxs)("div",{className:" text-center px-10",children:[(0,l.jsx)("h2",{className:"text-2xl font-semibold",children:r("title")}),(0,l.jsx)("p",{className:"mt-3 text-sm text-gray-200",children:r("description")})]}),(0,l.jsxs)("div",{className:"flex space-x-3 w-4/6 mx-auto",children:[(0,l.jsx)(p.ZP,{type:"button","aria-label":r("try_again"),buttonType:"dark2",onClick:n,className:"w-full lg:min-w-40 !px-0 text-sm",disabled:i,loading:i,children:r("try_again")}),(0,l.jsx)(p.ZP,{type:"button","aria-label":r("manage_devices"),buttonType:"save",onClick:function(){s.push("/user/devices")},className:"w-full lg:min-w-40 !px-0 text-sm",disabled:i,children:r("manage_devices")})]})]})})})]})}function x(e){let{children:t,content:n}=e,{auth:i}=(0,d.bp)(),s=(null==i?void 0:i.user)&&(null==n?void 0:n.content_access)!=="free",{data:r,isLoading:o,isValidating:a,mutate:p}=(0,c.zZ)(s?"/v1/user/watch-history/active-stream":null);return(null==n?void 0:n.content_access)==="free"?t:o||i.isLoading?(0,l.jsx)(u.Z,{}
1):r&&i&&(null==i?void 0:i.hasStreamPermission(n,r))?t:(0,l.jsx)(f,{content:n,onRetry:function(){null==p||p()},isLoading:o||a})}var g=n(78876);function w(e){let{content:t,playlists:n}=e;return(0,l.jsx)(i.ContentGeoAccessControlCheck,{content:t,children:(0,l.jsx)(i.ContentMaturityAccessControlCheck,{content:t,children:(0,l.jsx)(i.GeoSubscriptionGeoAccessControlCheck,{content:t,children:(0,l.jsx)(x,{content:t,children:(0,l.jsx)("div",{className:"h-full w-full overflow-hidden relative",children:(0,l.jsx)(a,{children:(0,l.jsx)(g.default,{video:t,nextVideo:function(){var e;let l=(0,s.wg)(t);if(l===s.wF.CLIPS)return null;if(l===s.wF.EPISODE){if(n&&n.length>0){let e=n.findIndex(e=>e.id===t.id);if(e<n.length){let t=n[e+1];if(t)return t}}return null}let i=null==n?void 0:null===(e=n[0])||void 0===e?void 0:e.items[0];return i&&"App\\Models\\Video"===i.classname?i.series_id&&i.episode_number&&i.season_id<t.season_id&&i.episode_number<t.episode_number?null:{...i,route_uri:"".concat(i.route_uri)}:null}()})})})})})})})}},80023:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var l=n(57437),i=n(2265),s=n(10153),r=n(58214);let o=i.forwardRef((e,t)=>{let{className:n,children:i,...o}=e;return(0,l.jsxs)(s.fC,{ref:t,className:(0,r.cn)("relative overflow-hidden",n),...o,children:[(0,l.jsx)(s.l_,{className:"h-full w-full rounded-[inherit]",children:i}),(0,l.jsx)(a,{}),(0,l.jsx)(s.Ns,{})]})});o.displayName=s.fC.displayName;let a=i.forwardRef((e,t)=>{let{className:n,orientation:i="vertical",...o}=e;return(0,l.jsx)(s.gb,{ref:t,orientation:i,className:(0,r.cn)("flex touch-none select-none transition-colors","vertical"===i&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===i&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",n),...o,children:(0,l.jsx)(s.q4,{className:"relative flex-1 rounded-full bg-zinc-700"})})});a.displayName=s.gb.displayName},2128:function(e,t,n){"use strict";n.d(t,{Bw:function(){return m},Ph:function(){return d},Ql:function(){return f},i4:function(){return p},ki:function(){return u}});var l=n(57437),i=n(2265),s=n(17549),r=n(58214),o=n(69651),a=n(16031),c=n(53757);let d=s.fC;s.ZA;let u=s.B4,p=i.forwardRef((e,t)=>{let{className:n,children:i,...o}=e;return(0,l.jsxs)(s.xz,{ref:t,className:(0,r.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-lg  bg-zinc-800 px-3 py-2 text-sm shadow-sm ring-offset-white placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-primary-600 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 space-x-2.5",n),...o,children:[i,(0,l.jsx)(s.JO,{asChild:!0,children:(0,l.jsx)(a.Z,{})})]})});p.displayName=s.xz.displayName;let h=i.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,l.jsx)(s.u_,{ref:t,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",n),...i,children:(0,l.jsx)(c.Z,{})})});h.displayName=s.u_.displayName;let v=i.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,l.jsx)(s.$G,{ref:t,className:(0,r.cn)("flex cursor-default items-center justify-center py-1",n),...i,children:(0,l.jsx)(a.Z,{})})});v.displayName=s.$G.displayName;let m=i.forwardRef((e,t)=>{let{className:n,children:i,position:o="popper",...a}=e;return(0,l.jsx)(s.h_,{children:(0,l.jsxs)(s.VY,{ref:e=>{e&&(e.ontouchstart=e=>{e.preventDefault()})},className:(0,r.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-lg bg-zinc-800 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...a,children:[(0,l.jsx)(h,{}),(0,l.jsx)(s.l_,{className:(0,r.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),(0,l.jsx)(v,{})]})})});m.displayName=s.VY.displayName,i.forwardRef((e,t)=>
1{let{className:n,...i}=e;return(0,l.jsx)(s.__,{ref:t,className:(0,r.cn)("px-2 py-1.5 text-sm font-semibold",n),...i})}).displayName=s.__.displayName;let f=i.forwardRef((e,t)=>{let{className:n,children:i,...a}=e;return(0,l.jsxs)(s.ck,{ref:t,className:(0,r.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...a,children:[(0,l.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(s.wU,{children:(0,l.jsx)(o.Z,{className:"h-4 w-4"})})}),(0,l.jsx)(s.eT,{children:i})]})});f.displayName=s.ck.displayName,i.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,l.jsx)(s.Z0,{ref:t,className:(0,r.cn)("-mx-1 my-1 h-px bg-muted",n),...i})}).displayName=s.Z0.displayName},49059:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(14973),i=n(87484),s=n(32238),r=n(18087),o=n(2265);function a(e){let{seasons:t,content:n,enableFetchingNextSeason:a,defaultActiveItemEpisodeNumber:c}=e,d=t.find(e=>e.id===(null==n?void 0:n.season_id))||{},u=(null==n?void 0:n.series)||{},[p,h]=(0,o.useState)((null==d?void 0:d.total_episodes)||0),[v,m]=(0,o.useState)(!0),[f,x]=(0,o.useState)(null==d?void 0:d.id),[g,w]=(0,o.useState)(null),[b,j]=(0,o.useState)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=1;return(0,i.t)(t,s.zr).forEach((t,l)=>{e>=t[0]&&e<=t[1]&&(n=l+1)}),n}(c||(null==n?void 0:n.episode_number),p)),y=(0,r.useTranslations)("ContentDetails"),_=(0,o.useMemo)(()=>(0,i.t)(p,s.zr).map((e,t)=>({name:"".concat(y("episode")," ").concat(e[0],"-").concat(e[1]?e[1]:e[0]),value:t+1})),[f,g]);return(0,o.useEffect)(()=>{if(!f){m(!1);return}m(!0);let e="/v1".concat((null==u?void 0:u.route_uri)||n.route_uri,"/episodes?per_page=").concat(s.zr,"&season_id=").concat(f,"&page=").concat(b);(0,l.j)(e).then(async e=>{if(e.success){var i,r,o,c;(null===(r=e.result)||void 0===r?void 0:null===(i=r.data)||void 0===i?void 0:i.links)&&(e.result.data.links=null);let d=e.result,p=null==d?void 0:null===(o=d.data)||void 0===o?void 0:o.data,h=(null===(c=p[p.length-1])||void 0===c?void 0:c.id)===n.id,v=function(e,t){let n=null==e?void 0:e.findIndex(e=>e.id===(null==t?void 0:t.season_id));return n>0?e[n-1]:null}(t,n);if(h&&v&&a){let e="/v1".concat(null==u?void 0:u.route_uri,"/episodes?per_page=").concat(s.zr,"&season_id=").concat(v.id,"&page=").concat(b),t=await (0,l.j)(e).then(e=>{if(e.success){var t,n;return(null===(n=e.result)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.links)&&(e.result.data.links=null),e.result}return null});t&&w(t);return}w(e.result)}}).catch(e=>{console.error("Episode fetch Error: ",e)}).finally(()=>{m(!1)})},[f,b]),{handleSeasonChange:function(e){var n;x(e),j(1),h((null===(n=t.find(t=>t.id===e))||void 0===n?void 0:n.total_episodes)||0)},handlePageChange:function(e){j(e)},episodeRange:_,totalEpisodes:p,isEpisodesLoading:v,episodeResponse:g,activePage:b,activeSeasonId:f}}},91185:function(e,t,n){"use strict";var l=n(2265);t.Z=()=>{let e=(0,l.useRef)(null);return(0,l.useRef)(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;e.current||(null==t||t(),e.current=setTimeout(()=>{e.current=null},n))}).current}},48162:function(e,t,n){"use strict";n.d(t,{y:function(){return h},z:function(){return p}});
1var l=n(79606),i=n(14544),s=n(2265),r=n(22291),o=n.n(r),a=n(32238),c=n(32622),d=n(15296),u=n(25566);function p(e,t){(0,s.useEffect)(()=>{v(),function(e,t){var n,i,s;let r=(null==e?void 0:null===(n=e.analytics)||void 0===n?void 0:n.matomo)||{};r.url&&r.site_id&&(0,l.init)({url:r.url,siteId:r.site_id});let a=(null==e?void 0:null===(i=e.analytics)||void 0===i?void 0:i.google)||{};a.tag_manager_id&&o().initialize({gtmId:a.tag_manager_id});let d=((null==e?void 0:null===(s=e.analytics)||void 0===s?void 0:s.gotipath)||{}).tracking_url||u.env.NEXT_PUBLIC_GOTIPATH_ANALYTICS_TRACKING_URL;d&&void 0===window.mpulse&&(0,c.kP)({trackingUrl:d,debugMode:!1,pageViewDelay:100,userGetter:()=>{var e;let n=null==t?void 0:t.user;return n?{id:n.id,name:n.name,age:n.age,gender:n.gender,subscription:null===(e=n.subscription)||void 0===e?void 0:e.title}:null}})}(e,t)},[]),(0,s.useEffect)(()=>{v(t)},[t.isLoggedIn])}function h(e){if("undefined"!=typeof document&&((0,l.push)(["MediaAnalytics::scanForMedia",document]),(0,l.push)(["trackContentImpressionsWithinNode",document]),(0,l.push)(["enableLinkTracking"])),a.Dy&&e&&void 0!==window.player&&void 0!==window.player.mux){var t;window.player.mux.emit("videochange",{video_id:e.id,video_title:e.title,video_series:null===(t=e.series)||void 0===t?void 0:t.title,video_duration:1e3*e.duration,video_stream_type:e.classname==d.Z.stream?"live":"on-demand",video_cdn:"Gotipath CDN"})}}function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(null==e?void 0:e.user)||(0,i.Jq)(),n=t&&!!t.subscription;(0,l.push)(["enableHeartBeatTimer"]),(0,l.push)(["setUserId",null==t?void 0:t.id]),(0,l.push)(["setCustomDimension",1,null==t?void 0:t.id]),(0,l.push)(["setCustomDimension",2,n?"Subscribed":"Non Subscribed"])}},14544:function(e,t,n){"use strict";n.d(t,{Jq:function(){return o},Vr:function(){return s},_q:function(){return a},fW:function(){return c},nG:function(){return r}});var l=n(93375),i=n(33129);function s(){return(0,l.getCookie)("auth_access_token")||window.localStorage.getItem("auth_access_token")}function r(e){(0,l.setCookie)("auth_access_token",e||""),window.localStorage.setItem("auth_access_token",e||"")}function o(){let e=(0,l.getCookie)("auth_user"),t=window.localStorage.getItem("auth_user"),n=e||t;if(n)try{let e=JSON.parse(n);if(e&&(null==e?void 0:e.id))return e}catch(e){}return null}function a(e){var t,n,s,r,o,a;if(e&&e.id){let i={id:e.id};((null===(t=e.profile)||void 0===t?void 0:t.id)||(null===(n=e.profile)||void 0===n?void 0:n.is_parent))&&(i.profile={id:null===(r=e.profile)||void 0===r?void 0:r.id,is_parent:null===(o=e.profile)||void 0===o?void 0:o.is_parent}),e.vppa_consented_at&&(i.vppa_consented_at=e.vppa_consented_at),(null===(s=e.subscription)||void 0===s?void 0:s.title)&&(i.subscription={title:e.subscription.title}),(0,l.setCookie)("auth_user",i)}else(0,l.deleteCookie)("auth_user"),(0,l.deleteCookie)("skipped_personalization");(null==e?void 0:e.profile)?"app_view"===new URLSearchParams(window.location.search).get("view")||"true"===(0,i.le)("app_view")?(0,l.setCookie)("selected_profile",!0):(null===(a=e.profile)||void 0===a?void 0:a.is_locked)||(0,l.setCookie)("selected_profile",!0):(0,l.deleteCookie)("selected_profile")}function c(){return!!(0,l.getCookie)("selected_profile")}},33263:function(e,t,n){"use strict";n.d(t,{R:function(){return d},c:function(){return u}});var l=n(38472),i=n(61232),s=n(32238),r=n(77386),o=n(14544),a=n(45206);let c={Accept:"application/json","Content-Type":"application/json"},d=(0,i.v8)(l.Z.create({baseURL:s.FA,headers:c,timeout:s.AI}),{ttl:s.kR,headerInterpreter:()=>s.kR}),u=l.Z.create({baseURL:s.CA,headers:c,timeout:s.AI});async function p(e){var t;let n=(0,r.S)(),l=(0,o.Vr)(),i=(0,a.G)();if(e.headers.Authorization=l?"Bearer ".concat(l):e.headers.Authorization||"",e.params=e.params||{},null===(t=e.url)||void 0===t?void 0:t.includes("?")){let[t,n]=e.url.split("?");e.url=t,new URLSearchParams(n).forEach((t,n)=>{e.params[n]||(e.params[n]=t)})}return!e.params.country&&n.country&&(e.params.country=n.country),e.params.platform||(e.params.platform="web"),!e.params.language&&i&&(e.params.language=i),e}d.interceptors.request.use(p),u.interceptors.request.use(p)},32238:function(e,t,n){"use strict";n.d(t,{AE:function(){return u},AI:function(){return x},AX:function(){return c},CA:function(){return i},DJ:function(){return a},Dy:function(){return g},EF:function(){return S},FA:function(){return s},LH:function(){return r},LY:function(){return y},MU:function(){return d},OT:function(){return j},Vt:function(){return N},Xn:function(){return b},ZI:function(){return o},_E:function(){return p},bF:function(){return C},kR:function(){return f},m$:function(){return m},m4:function(){return h},xf:function(){return v},z8:function(){return w},zr:function(){return _}});var l=n(25566);let i="https://api.deeptoplay.com",s="https://api.deeptoplay.com";l.env.SITEMAP_SECRET;let r=l.env.NEXT_PUBLIC_KMS_API_URL||"https://kms.deeptoplay.com",o="https://ipinfo.nusratech.com/api/v2",a="DeeptoPlay",c="https://www.deeptoplay.com",d=l.env.NEXT_PUBLIC_REFER_SERVICE_URL;l.env.NEXT_PUBLIC_APP_LOGO;let u=!0,p="/images/placeholders/thumbnail.jpg",h="/images/placeholders/poster.jpg",v="/images/placeholders/web-slider.jpg",m="/images/placeholders/mobile-slider.jpg",f=parseInt(l.env.ISR_TTL)||21600,x=parseInt(l.env.NEXT_PUBLIC_API_TIMEOUT)||3e4,g=l.env.NEXT_PUBLIC_MUX_ENV_KEY,w=5e3,b={autoPlayNext:"false"!==l.env.NEXT_PUBLIC_PLAYER_AUTO_PLAY_NEXT,chromecast:!1,pictureInPicture:"false"!==l.env.NEXT_PUBLIC_PLAYER_PICTURE_IN_PICTURE},j=parseInt(l.env.NEXT_PUBLIC_SLIDER_NEXT_SLIDE_INTERVAL)||1e4,y="secondary",_=25;function N(){return{header:y,footer:y,heroCarousel:y,singleVideoContent:y,layout:"default",badge:y,cardVariant:y,subscribe:y,payment:y}}N();let C=["US"];l.env.NEXT_PUBLIC_DISABLE_SECONDARY_NAVIGATION;let S=20},77386:function(e,t,n){"use strict";n.d(t,{S:function(){return o},c:function(){return a}});var l=n(38472),i=n(93375),s=n(32238);let r=()=>s.ZI;function o(){let e=(0,i.getCookie)("geo");if(e)try{let t=JSON.parse(e);if(null==t?void 0:t.country)return t}catch(e){}return c}async function a(){try{var e;let t={ip:(e=(await l.Z.get(r())).data).ip,city:e.city,country:e.iso_code||e.country,continent:e.continent_code,timezone:e.timezone};if(null==t?void 0:t.country)return(0,i.setCookie)("geo",t,{maxAge:21600}),t}catch(e){}return c}let c={ip:"",city:"Dhaka",country:"BD",continent:"AS",timezone:"Asia/Dhaka"}},45206:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});
1var l=n(93375);function i(){return(0,l.getCookie)("language")}},33129:function(e,t,n){"use strict";function l(e,t){return e?e.startsWith(t)?e:t+e:t}function i(e){let{seconds:t,withoutSeconds:n=!1,t:l=e=>{},format:i}=e;if(Math.abs(t)!==t)return"";if(t>3600){let e=Math.floor(t/3600),s=Math.floor((t%=3600)/60);return(t%=60,n)?i.number(e)+"".concat(l("hour")," ")+i.number(s)+"".concat(l("minute")," "):i.number(e)+"".concat(l("hour")," ")+i.number(s)+"".concat(l("minute")," ")+i.number(t)+l("second")}return n&&t>60?i.number(Math.floor(t/60))+"".concat(l("minute")," "):t>60?i.number(Math.floor(t/60))+"".concat(l("minute")," ")+i.number(t%60)+l("second"):i.number(t)+l("second")}function s(e){return window.localStorage.getItem(e)}function r(){return s("partner")}function o(e){return e>0&&e<=20}function a(e,t){return(null==e?void 0:e.length)>300&&t?e.slice(0,299)+" ...":e}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.from({length:e},(e,t)=>t+1)}n.d(t,{G$:function(){return c},f0:function(){return l},kW:function(){return r},lL:function(){return i},le:function(){return s},oE:function(){return a},sY:function(){return o}})},76237:function(e,t,n){"use strict";n.d(t,{rU:function(){return s},jD:function(){return o},tv:function(){return a}});var l=n(5758);let i=[{name:"english",display_name:"English",locale:"en",image:"/images/language-potrait/english-user.png"}].map(e=>e.locale),{Link:s,redirect:r,usePathname:o,useRouter:a}=(0,l.iV)({locales:i,localePrefix:"as-needed"})},2691:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x},RA:function(){return h},tJ:function(){return v}});var l=n(57437),i=n(58214),s=function(e){let{className:t,...n}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"19",fill:"none",viewBox:"0 0 18 19",className:(0,i.cn)(t),...n,children:(0,l.jsx)("path",{fill:"#431407",fillRule:"evenodd",d:"M8.487 2.646a1.013 1.013 0 011.402.384l.006.01 1.99 3.777 2.879-2.466a1.013 1.013 0 011.63 1.04l-.002.003-1.913 6.919a1.351 1.351 0 01-1.291.99H4.817a1.351 1.351 0 01-1.292-.99l-1.914-6.92a1.013 1.013 0 011.63-1.041L6.12 6.818l-.43.52.436-.508.588.31-.594-.322 1.99-3.777.006-.011c.087-.16.216-.292.372-.384zM4.275 14.655a.675.675 0 000 1.35h9.454a.675.675 0 100-1.35H4.275z",clipRule:"evenodd"})})},r=n(80107),o=n(76237),a=n(88336),c=n(18087),d=n(81456),u=n(56228);function p(e,t){window.sessionStorage.setItem("payment_success_redirect",JSON.stringify({title:e,uri:t}))}function h(){let e=window.sessionStorage.getItem("payment_success_redirect");return e?JSON.parse(e):null}function v(e){return(!e.content_access||"free"===e.content_access)&&(!e.series||!!e.series.content_access||"free"===e.series.content_access)}let m={Free:"free",Subscription:"subscription",Purchase:"purchase",PurchaseOrSubscription:"purchase_or_subscription",getTitle:e=>({free:"",subscription:"To watch this premium content",purchase:"To watch this exclusive content",purchase_or_subscription:"To watch this premium content"})[e.content_access]},f=(e,t,n,l,i)=>({ContentAccess:m,rentContent(e){p("Watch "+e.title,e.route_uri);let t=new URL(e.rental_url),n=e.rental_url.replace(t.origin,"");this.goToPayment(n)},purchaseContent(e){p("Watch "+e.title,e.route_uri);let t=new URL(e.purchase_url),n=e.purchase_url.replace(t.origin,"");this.goToPayment(n)},purchaseSubscription(e){p("View Profile","/user/profile");let t=new URLSearchParams({title:e.title,price:e.price,currency:e.currency,duration:e.duration,interval:e.interval,purchasable_id:e.id,purchasable_type:"Package",is_rental:0});this.goToPayment("/payment?"+t.toString())},goToPayment(t){if(n){let n=t.startsWith("/bn")?t.replace("/bn","/"):t;e.push(n)}else(0,r.s)()},shouldShowSubscriptionButton:e=>(m.Subscription===e.content_access||m.PurchaseOrSubscription===e.content_access)&&(!n||!t.subscription),shouldShowRentalButton:e=>(m.Purchase===e.content_access||m.PurchaseOrSubscription===e.content_access)&&e.rental_price>0&&e.rental_duration>0,shouldShowPurchaseButton:e=>(m.Purchase===e.content_access||m.PurchaseOrSubscription===e.content_access)&&e.lifetime_price>0,userHasSubscription:()=>n&&t.subscription,getCurrencySymbol:e=>({BDT:"৳",USD:"$",EUR:"€",CRC:"₡",GBP:"\xa3",ILS:"₪",INR:"₹",JPY:"\xa5",KRW:"₩",NGN:"₦",PHP:"₱",PLN:"zł",PYG:"₲",THB:"฿",UAH:"₴",VND:"₫"})[e]||e,isParentPurchasable:e=>e.series&&e.series.content_access&&e.series.content_access!==m.Free,getButtons(t){let n=[{show:this.shouldShowSubscriptionButton(t),icon:d.Z,price:null,text:l("vip_to_watch"),onClick:()=>e.push("/subscribe")},{show:this.shouldShowRentalButton(t),icon:null,price:i.number(t.rental_price),text:l("rent"),onClick:()=>this.rentContent(t)},{show:this.shouldShowPurchaseButton(t),icon:null,price:i.number(t.lifetime_price),text:l("purchase"),onClick:()=>this.purchaseContent(t)}];this.isParentPurchasable(t)&&(n[0].show||n.push({show:this.shouldShowSubscriptionButton(t.series),icon:s,price:null,text:l("vip_to_watch"),onClick:()=>e.push("/subscribe")}),n.push({show:this.shouldShowRentalButton(t.series),icon:null,price:i.number(t.series.rental_price),text:l("rent_full_series"),onClick:()=>this.rentContent(t.series,"Series")}),n.push({show:this.shouldShowPurchaseButton(t.series),icon:null,price:i.number(t.series.lifetime_price),text:l("purchase_full_series"),onClick:()=>this.purchaseContent(t.series,"Series")}));let r=(0,u.ZO)(t);return r&&(n[0]={show:"Get BL Pack"!==r.label&&this.shouldShowSubscriptionButton(t),icon:d.Z,price:null,text:r.label,onClick:r.onClick}),n}});function x(){let e=(0,o.tv)(),{auth:t}=(0,a.bp)(),n=(0,c.useTranslations)("Common.buttons"),l=(0,c.useFormatter)();return f(e,t.user,t.isLoggedIn,n,l)}},88336:function(e,t,n){"use strict";n.d(t,{Or:function(){return a},bp:function(){return c}});var l=n(57437),i=n(2265),s=n(32238);let r={appName:s.DJ,appUrl:s.AX,auth:{isLoggedIn:null,isLoading:!1,hasSubscription:()=>!1,hasContentLicense:()=>!1,mutate:()=>{}},geo:{},settings:{}},o=(0,i.createContext)(r);function a(e){let{children:t,sharedState:n}=e;return(0,l.jsx)(o.Provider,{value:n,children:t})}function c(){return(0,i.useContext)(o)}},58214:function(e,t,n){"use strict";n.d(t,{cn:function(){return s}});var l=n(44839),i=n(96164);function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.m6)((0,l.W)(t))}},15296:function(e,t){"use strict";t.Z={package:"App\\Models\\Package",video:"App\\Models\\Video",series:"App\\Models\\Series",season:"App\\Models\\Season",stream
1:"App\\Models\\Stream"}},10153:function(e,t,n){"use strict";n.d(t,{Ns:function(){return J},fC:function(){return X},gb:function(){return _},q4:function(){return A},l_:function(){return Y}});var l=n(2265),i=n(25171),s=n(1584),r=n(1336),o=e=>{var t,n;let i,o;let{present:c,children:d}=e,u=function(e){var t,n;let[i,s]=l.useState(),o=l.useRef({}),c=l.useRef(e),d=l.useRef("none"),[u,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},l.useReducer((e,t)=>{let l=n[e][t];return null!=l?l:e},t));return l.useEffect(()=>{let e=a(o.current);d.current="mounted"===u?e:"none"},[u]),(0,r.b)(()=>{let t=o.current,n=c.current;if(n!==e){let l=d.current,i=a(t);e?p("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&l!==i?p("ANIMATION_OUT"):p("UNMOUNT"),c.current=e}},[e,p]),(0,r.b)(()=>{if(i){var e;let t;let n=null!==(e=i.ownerDocument.defaultView)&&void 0!==e?e:window,l=e=>{let l=a(o.current).includes(e.animationName);if(e.target===i&&l&&(p("ANIMATION_END"),!c.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},s=e=>{e.target===i&&(d.current=a(o.current))};return i.addEventListener("animationstart",s),i.addEventListener("animationcancel",l),i.addEventListener("animationend",l),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",s),i.removeEventListener("animationcancel",l),i.removeEventListener("animationend",l)}}p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:l.useCallback(e=>{e&&(o.current=getComputedStyle(e)),s(e)},[])}}(c),p="function"==typeof d?d({present:u.isPresent}):l.Children.only(d),h=(0,s.e)(u.ref,(i=null===(t=Object.getOwnPropertyDescriptor(p.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in i&&i.isReactWarning?p.ref:(i=null===(n=Object.getOwnPropertyDescriptor(p,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in i&&i.isReactWarning?p.props.ref:p.props.ref||p.ref);return"function"==typeof d||u.isPresent?l.cloneElement(p,{ref:h}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence";var c=n(57437),d=n(75137),u=n(87513),p=n(62361),h=n(78149),v="ScrollArea",[m,f]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>l.createContext(e));return function(n){let i=n?.[e]||t;return l.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let s=l.createContext(i),r=n.length;n=[...n,i];let o=t=>{let{scope:n,children:i,...o}=t,a=n?.[e]?.[r]||s,d=l.useMemo(()=>o,Object.values(o));return(0,c.jsx)(a.Provider,{value:d,children:i})};return o.displayName=t+"Provider",[o,function(n,o){let a=o?.[e]?.[r]||s,c=l.useContext(a);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:l})=>{let i=n(e)[`__scope${l}`];return{...t,...i}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(v),[x,g]=m(v),w=l.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...d}=e,[p,h]=l.useState(null),[v,m]=l.useState(null),[f,g]=l.useState(null),[w,b]=l.useState(null),[j,y]=l.useState(null),[_,N]=l.useState(0),[C,S]=l.useState(0),[k,E]=l.useState(!1),[P,L]=l.useState(!1),T=(0,s.e)(t,e=>h(e)),R=(0,u.gm)(o);return(0,c.jsx)(x,{scope:n,type:r,dir:R,scrollHideDelay:a,scrollArea:p,viewport:v,onViewportChange:m,content:f,onContentChange:g,scrollbarX:w,onScrollbarXChange:b,scrollbarXEnabled:k,onScrollbarXEnabledChange:E,scrollbarY:j,onScrollbarYChange:y,scrollbarYEnabled:P,onScrollbarYEnabledChange:L,onCornerWidthChange:N,onCornerHeightChange:S,children:(0,c.jsx)(i.WV.div,{dir:R,...d,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});w.displayName=v;var b="ScrollAreaViewport",j=l.forwardRef((e,t)=>
1{let{__scopeScrollArea:n,children:r,asChild:o,nonce:a,...d}=e,u=g(b,n),p=l.useRef(null),h=(0,s.e)(t,p,u.onViewportChange);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n[data-radix-scroll-area-viewport] {\n  scrollbar-width: none;\n  -ms-overflow-style: none;\n  -webkit-overflow-scrolling: touch;\n}\n[data-radix-scroll-area-viewport]::-webkit-scrollbar {\n  display: none;\n}\n:where([data-radix-scroll-area-viewport]) {\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n}\n:where([data-radix-scroll-area-content]) {\n  flex-grow: 1;\n}\n"},nonce:a}),(0,c.jsx)(i.WV.div,{"data-radix-scroll-area-viewport":"",...d,asChild:o,ref:h,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:function(e,t){let{asChild:n,children:i}=e;if(!n)return"function"==typeof t?t(i):t;let s=l.Children.only(i);return l.cloneElement(s,{children:"function"==typeof t?t(s.props.children):t})}({asChild:o,children:r},e=>(0,c.jsx)("div",{"data-radix-scroll-area-content":"",ref:u.onContentChange,style:{minWidth:u.scrollbarXEnabled?"fit-content":void 0},children:e}))})]})});j.displayName=b;var y="ScrollAreaScrollbar",_=l.forwardRef((e,t)=>{let{forceMount:n,...i}=e,s=g(y,e.__scopeScrollArea),{onScrollbarXEnabledChange:r,onScrollbarYEnabledChange:o}=s,a="horizontal"===e.orientation;return l.useEffect(()=>(a?r(!0):o(!0),()=>{a?r(!1):o(!1)}),[a,r,o]),"hover"===s.type?(0,c.jsx)(N,{...i,ref:t,forceMount:n}):"scroll"===s.type?(0,c.jsx)(C,{...i,ref:t,forceMount:n}):"auto"===s.type?(0,c.jsx)(S,{...i,ref:t,forceMount:n}):"always"===s.type?(0,c.jsx)(k,{...i,ref:t}):null});_.displayName=y;var N=l.forwardRef((e,t)=>{let{forceMount:n,...i}=e,s=g(y,e.__scopeScrollArea),[r,a]=l.useState(!1);return l.useEffect(()=>{let e=s.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},l=()=>{t=window.setTimeout(()=>a(!1),s.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",l),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",l)}}},[s.scrollArea,s.scrollHideDelay]),(0,c.jsx)(o,{present:n||r,children:(0,c.jsx)(S,{"data-state":r?"visible":"hidden",...i,ref:t})})}),C=l.forwardRef((e,t)=>{var n,i;let{forceMount:s,...r}=e,a=g(y,e.__scopeScrollArea),d="horizontal"===e.orientation,u=V(()=>v("SCROLL_END"),100),[p,v]=(n="hidden",i={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},l.useReducer((e,t)=>{let n=i[e][t];return null!=n?n:e},n));return l.useEffect(()=>{if("idle"===p){let e=window.setTimeout(()=>v("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[p,a.scrollHideDelay,v]),l.useEffect(()=>{let e=a.viewport,t=d?"scrollLeft":"scrollTop";if(e){let n=e[t],l=()=>{let l=e[t];n!==l&&(v("SCROLL"),u()),n=l};return e.addEventListener("scroll",l),()=>e.removeEventListener("scroll",l)}},[a.viewport,d,v,u]),(0,c.jsx)(o,{present:s||"hidden"!==p,children:(0,c.jsx)(k,{"data-state":"hidden"===p?"hidden":"visible",...r,ref:t,onPointerEnter:(0,h.M)(e.onPointerEnter,()=>v("POINTER_ENTER")),onPointerLeave:(0,h.M)(e.onPointerLeave,()=>v("POINTER_LEAVE"))})})}),S=l.forwardRef((e,t)=>{let n=g(y,e.__scopeScrollArea),{forceMount:i,...s}=e,[r,a]=l.useState(!1),d="horizontal"===e.orientation,u=V(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;a(d?e:t)}},10);return G(n.viewport,u),G(n.content,u),(0,c.jsx)(o,{present:i||r,children:(0,c.jsx)(k,{"data-state":r?"visible":"hidden",...s,ref:t})})}),k=l.forwardRef((e,t)=>{let{orientation:n="vertical",...i}=e,s=g(y,e.__scopeScrollArea),r=l.useRef(null),o=l.useRef(0),[a,d]=l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=D(a.viewport,a.content),p={...i,sizes:a,onSizesChange:d,hasThumb:!!(u>0&&u<1),onThumbChange:e=>r.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function h(e,t){return function(e,t,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=O(n),s=t||i/2,r=n.scrollbar.paddingStart+s,o=n.scrollbar.size-n.scrollbar.paddingEnd-(i-s),a=n.content-n.viewport;return H([r,o],"ltr"===l?[0,a]:[-1*a,0])(e)}(e,o.current,a,t)}return"horizontal"===n?(0,c.jsx)(E,{...p,ref:t,onThumbPositionChange:()=>{if(s.viewport&&r.current){let e=F(s.viewport.scrollLeft,a,s.dir);r.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollLeft=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollLeft=h(e,s.dir))}}):"vertical"===n?(0,c.jsx)(P,{...p,ref:t,onThumbPositionChange:()=>{if(s.viewport&&r.current){let e=F(s.viewport.scrollTop,a);r.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollTop=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollTop=h(e))}}):null}),E=l.forwardRef((e,t)=>
1{let{sizes:n,onSizesChange:i,...r}=e,o=g(y,e.__scopeScrollArea),[a,d]=l.useState(),u=l.useRef(null),p=(0,s.e)(t,u,o.onScrollbarXChange);return l.useEffect(()=>{u.current&&d(getComputedStyle(u.current))},[u]),(0,c.jsx)(R,{"data-orientation":"horizontal",...r,ref:p,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":O(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let l=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(l),l>0&&l<n&&t.preventDefault()}},onResize:()=>{u.current&&o.viewport&&a&&i({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:U(a.paddingLeft),paddingEnd:U(a.paddingRight)}})}})}),P=l.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...r}=e,o=g(y,e.__scopeScrollArea),[a,d]=l.useState(),u=l.useRef(null),p=(0,s.e)(t,u,o.onScrollbarYChange);return l.useEffect(()=>{u.current&&d(getComputedStyle(u.current))},[u]),(0,c.jsx)(R,{"data-orientation":"vertical",...r,ref:p,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":O(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let l=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(l),l>0&&l<n&&t.preventDefault()}},onResize:()=>{u.current&&o.viewport&&a&&i({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:U(a.paddingTop),paddingEnd:U(a.paddingBottom)}})}})}),[L,T]=m(y),R=l.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:u,onThumbPointerDown:p,onThumbPositionChange:v,onDragScroll:m,onWheelScroll:f,onResize:x,...w}=e,b=g(y,n),[j,_]=l.useState(null),N=(0,s.e)(t,e=>_(e)),C=l.useRef(null),S=l.useRef(""),k=b.viewport,E=r.content-r.viewport,P=(0,d.W)(f),T=(0,d.W)(v),R=V(x,10);function M(e){C.current&&m({x:e.clientX-C.current.left,y:e.clientY-C.current.top})}return l.useEffect(()=>{let e=e=>{let t=e.target;(null==j?void 0:j.contains(t))&&P(e,E)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[k,j,E,P]),l.useEffect(T,[r,T]),G(j,R),G(b.content,R),(0,c.jsx)(L,{scope:n,scrollbar:j,hasThumb:o,onThumbChange:(0,d.W)(a),onThumbPointerUp:(0,d.W)(u),onThumbPositionChange:T,onThumbPointerDown:(0,d.W)(p),children:(0,c.jsx)(i.WV.div,{...w,ref:N,style:{position:"absolute",...w.style},onPointerDown:(0,h.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),C.current=j.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),M(e))}),onPointerMove:(0,h.M)(e.onPointerMove,M),onPointerUp:(0,h.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=S.current,b.viewport&&(b.viewport.style.scrollBehavior=""),C.current=null})})})}),M="ScrollAreaThumb",A=l.forwardRef((e,t)=>{let{forceMount:n,...l}=e,i=T(M,e.__scopeScrollArea);return(0,c.jsx)(o,{present:n||i.hasThumb,children:(0,c.jsx)(I,{ref:t,...l})})}),I=l.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...o}=e,a=g(M,n),d=T(M,n),{onThumbPositionChange:u}=d,p=(0,s.e)(t,e=>d.onThumbChange(e)),v=l.useRef(),m=V(()=>{v.current&&(v.current(),v.current=void 0)},100);return l.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{if(m(),!v.current){let t=W(e,u);v.current=t,u()}};return u(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,m,u]),(0,c.jsx)(i.WV.div,{"data-state":d.hasThumb?"visible":"hidden",...o,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,h.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,l=e.clientY-t.top;d.onThumbPointerDown({x:n,y:l})}),onPointerUp:(0,h.M)(e.onPointerUp,d.onThumbPointerUp)})});A.displayName=M;var z="ScrollAreaCorner",Z=l.forwardRef((e,t)=>
1{let n=g(z,e.__scopeScrollArea),l=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&l?(0,c.jsx)(B,{...e,ref:t}):null});Z.displayName=z;var B=l.forwardRef((e,t)=>{let{__scopeScrollArea:n,...s}=e,r=g(z,n),[o,a]=l.useState(0),[d,u]=l.useState(0),p=!!(o&&d);return G(r.scrollbarX,()=>{var e;let t=(null===(e=r.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;r.onCornerHeightChange(t),u(t)}),G(r.scrollbarY,()=>{var e;let t=(null===(e=r.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;r.onCornerWidthChange(t),a(t)}),p?(0,c.jsx)(i.WV.div,{...s,ref:t,style:{width:o,height:d,position:"absolute",right:"ltr"===r.dir?0:void 0,left:"rtl"===r.dir?0:void 0,bottom:0,...e.style}}):null});function U(e){return e?parseInt(e,10):0}function D(e,t){let n=e/t;return isNaN(n)?0:n}function O(e){let t=D(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function F(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",l=O(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-i,r=t.content-t.viewport,o=(0,p.u)(e,"ltr"===n?[0,r]:[-1*r,0]);return H([0,r],[0,s-l])(o)}function H(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let l=(t[1]-t[0])/(e[1]-e[0]);return t[0]+l*(n-e[0])}}var W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},l=0;return!function i(){let s={left:e.scrollLeft,top:e.scrollTop},r=n.left!==s.left,o=n.top!==s.top;(r||o)&&t(),n=s,l=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(l)};function V(e,t){let n=(0,d.W)(e),i=l.useRef(0);return l.useEffect(()=>()=>window.clearTimeout(i.current),[]),l.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)},[n,t])}function G(e,t){let n=(0,d.W)(t);(0,r.b)(()=>{let t=0;if(e){let l=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return l.observe(e),()=>{window.cancelAnimationFrame(t),l.unobserve(e)}}},[e,n])}var X=w,Y=j,J=Z}},function(e){e.O(0,[8048,2532,2404,4868,5758,8087,8472,97,9039,7776,6648,9421,7152,5223,5774,697,1402,7356,4836,8781,4089,3061,6146,7549,2762,2547,8249,4694,916,2971,7023,1744],function(){return e(e.s=19424)}),_N_E=e.O()}]);

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.