1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52911,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(37727),l=e.i(18e3),s=e.i(42504),n=e.i(65550);e.s(["default",0,({video:e,disableRTL:o})=>{let{youtubeId:i,videoTitle:c,videoDescription:d,videoId:u,duration:m}=e,[p,h]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),x=(0,r.useRef)(null),w=(0,r.useRef)(null),b=(0,r.useRef)(null),y=(0,r.useRef)(null),v=(0,r.useRef)(!1),j=window.location.href,N=(0,l.useAuthStore)(e=>e.user);(0,r.useEffect)(()=>{if(window.FB)return;window.fbAsyncInit=function(){window.FB.init({appId:"1479061343641016",xfbml:!0,version:"v2.8"}),window.FB.AppEvents.logPageView()};let e=document.createElement("script");return e.src="https://connect.facebook.net/en_US/sdk.js",e.async=!0,e.defer=!0,e.crossOrigin="anonymous",document.body.appendChild(e),()=>{}},[]),(0,r.useEffect)(()=>{let e=e=>{x.current&&!x.current.contains(e.target)&&g(!1)};return f&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[f]),(0,r.useEffect)(()=>{if(window.YT)return;let e=document.createElement("script");return e.src="https://www.youtube.com/iframe_api",document.body.appendChild(e),window.onYouTubeIframeAPIReady=()=>{S()},()=>E()},[]);let S=()=>{b.current=new window.YT.Player("main-video",{events:{onStateChange:T}})},I=(e.shortUrl||j).replace("/rekhta-recent/","/"),k=(e,t,r,a)=>{let l=(window.screen.width-r)/2,s=(window.screen.height-a)/2;window.open(e,t,`width=${r},height=${a},left=${l},top=${s},toolbar=0,menubar=0,location=0,status=0`)},$=async(e={})=>{try{let t=((e={})=>{let t,r=new Date().toISOString();return{id:crypto.randomUUID(),targetId:u,userId:N?.Id,isSave:!1,isLike:!1,isStarted:!1,isEnded:!1,timeSpent:b.current?Math.floor(b.current.getCurrentTime()):0,duration:b.current?Math.floor(b.current.getDuration()):(t=m?.match(/PT(?:(\d+)M)?(?:(\d+)S)?/),60*(+t?.[1]||0)+(+t?.[2]||0)),websiteId:1,language:1,type:0,sourceRef:"rekhta.org",dateCreated:r,dateModified:r,isActive:!0,...e}})(e),r=await fetch("/videos/api/videoTrack",{method:"POST",headers:{"Content-Type":"application/json-patch+json"},body:JSON.stringify(t)});if(!r.ok){let e=await r.text();console.error("Tracking API error:",e)}}catch(e){console.error("Tracking failed:",e)}},T=e=>{let t=window.YT;e.data===t.PlayerState.PLAYING&&(v.current||(v.current=!0,$({isStarted:!0,timeSpent:0})),C()),e.data===t.PlayerState.PAUSED&&E(),e.data===t.PlayerState.ENDED&&(E(),$({isEnded:!0,timeSpent:Math.floor(b.current.getDuration())}))},C=()=>{y.current||(y.current=setInterval(()=>$(),15e3))},E=()=>{clearInterval(y.current),y.current=null};return(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"relative w-full aspect-video sm:rounded-[20px] bg-black lg:rounded-[10px] overflow-hidden video-container",children:[(0,t.jsx)("iframe",{id:"main-video",ref:w,src:`https://www.youtube.com/embed/${i}?autoplay=1&rel=0&enablejsapi=1`,title:c,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"absolute inset-0 w-full h-full",suppressHydrationWarning:!0}),(0,t.jsx)("div",{className:"overlay absolute w-[65%] lg:w-[50%] h-[40px] lg:h-[60px] bottom-0 right-0"})]}),(0,t.jsx)("div",{className:"relative px-4 mt-5 lg:px-0",children:(0,t.jsxs)("div",{className:"absolute relative lg:right-0 -top-2 lg:top-0",children:[(0,t.jsx)("div",{className:`absolute right-4 ${!o&&"rtl:left-4 rtl:right-auto"} lg:right-0 xl:-top-2 lg:top-0`,children:(0,t.jsxs)("div",{className:"relative",ref:x,children:[(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),g(!f)},className:"flex items-center justify-center transition-colors bg-gray-100 rounded-full w-7 h-7 lg:w-12 lg:h-12 hover:bg-gray-200","aria-label":"Share",children:(0,t.jsx)(s.default,{name:"share",className:"cursor-pointer text-[20px] text-gray-700 lg:text-[32px] hover:text-[#0af]"})}),f&&(0,t.jsx)("div",{className:"absolute right-0 z-50 p-2 mt-2 bg-white border border-gray-200 rounded-lg shadow-lg top-full",children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{onClick:()=>{k(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(I)}"e=${encodeURIComponent(c||"")}`,"Share",600,400),g(!1)},className:"flex items-center justify-center transition-colors rounded w-9 h-9 hover:bg-gray-100","aria-label":"Share on Facebook",children:(0,t.jsx)(s.default,{name:"facebook",className:"text-[32px]"})}),(0,t.jsx)("button",{onClick:()=>{let e=c||"";k(`https://twitter.com/intent/tweet?url=${I}&text=${encodeURIComponent(e)}&via=${encodeURIComponent("Rekhta")}&counturl=${encodeURIComponent("https://www.rekhta.org")}`,"Share",600,300),g(!1)},className:"flex items-center justify-center transition-colors rounded w-9 h-9 hover:bg-gray-100","aria-label":"Share on Twitter",children:(0,t.jsx)(s.default,{name:"twitter",className:"text-[32px]"})}),(0,t.jsx)("button",{onClick:()=>{let e=`${c}\r 2${j}`;window.location.href=`whatsapp://send?text=${encodeURIComponent(e)}`,g(!1)},className:"flex items-center justify-center transition-colors rounded w-9 h-9 hover:bg-gray-100 md:hidden","aria-label":"Share on WhatsApp",children:(0,t.jsx)(s.default,{name:"whatsapp",className:"text-[32px]"})}),(0,t.jsx)("div",{className:"w-px h-6 mx-1 bg-gray-200"}),(0,t.jsx)("button",{onClick:()=>g(!1),className:"flex items-center justify-center transition-colors rounded w-9 h-9 hover:bg-gray-100","aria-label":"Close share menu",children:(0,t.jsx)(a.X,{className:"w-5 h-5 text-gray-500"})})]})})]})}),(0,t.jsx)("h1",{className:`pr-15 mb-3 text-lg font-bold leading-snug text-gray-900 ${!o&&"rtl:pr-0 rtl:pl-30"} md:text-xl lg:pr-16`,style:n.fontLatoBold,children:c}),(0,t.jsxs)("div",{className:`pr-0 lg:pr-12 ${!o&&"rtl:pr-0"} ${p?"expanded":""}`,children:[(0,t.jsx)("div",{className:`text-sm md:text-base space-y-1 md:space-y-2 text-gray-600 leading-relaxed ${!p?"line-clamp-3 lg:line-clamp-none":""}`,style:n.fontLato,dangerouslySetInnerHTML:{__html:d}}),d&&d.length>150&&(0,t.jsx)("button",{onClick:()=>h(!p),className:"lg:hidden text-sm text-[#e2054b] font-medium mt
2-2",style:n.fontLato,children:p?"See Less":"See More"})]})]})})]})}])},19979,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.i(22016);var a=e.i(57688),l=e.i(16176),s=e.i(65550),n=e.i(18566);e.s(["default",0,({videos:e,currentVideoId:o,basePath:i="/videos/rekhta-recent",disableRTL:c})=>{let d=(0,r.useRef)(null),u=(0,r.useRef)(null),[m,p]=(0,r.useState)(!1),h=(0,l.useLangStore)(e=>e.lang),[f,g]=(0,r.useState)(null),[x,w]=(0,r.useTransition)(),b=(0,n.useSearchParams)().get("ref");if((0,n.useRouter)(),(0,r.useEffect)(()=>{p("rtl"===document.documentElement.dir)},[]),(0,r.useEffect)(()=>{if(window.innerWidth<=1024)return;let e=u.current,t=d.current;if(!e||!t)return;let r=e.clientHeight,a=e.scrollHeight,l=t.offsetTop-r/2+t.clientHeight/2;l<0&&(l=0);let s=a-r;l>s&&(l=s),e.scrollTo({top:l,behavior:"smooth"})},[o]),!e||0===e.length)return null;let y=u.current,v=d.current;if(y&&v){let e=v.offsetTop-y.offsetTop;y.scrollTo({top:e-100,behavior:"smooth"})}return(0,t.jsxs)("aside",{className:"w-full lg:w-[360px] flex-shrink-0 mt-8 lg:mt-0 px-4 sm:px-0",children:[(0,t.jsxs)("h3",{className:"relative pb-3 mb-4 text-lg font-bold text-gray-800 lg:mb-5 lg:pb-0",style:s.fontLatoBold,children:["Playing Next",(0,t.jsx)("span",{className:"lg:hidden absolute bottom-0 left-0 w-8 h-0.5 bg-gray-500"})]}),(0,t.jsx)("div",{ref:u,className:"flex flex-col gap-[25px] sm:gap-6 lg:gap-0 lg:max-h-[600px] lg:overflow-y-auto lg:pr-2",style:{scrollbarWidth:"thin",scrollbarColor:"#ccc #f1f1f1"},children:e.map((e,r)=>{let l=e.youtubeId===o,n=e.videoSlug?.trim()?e.videoSlug:e.youtubeId,i=("en"!==h,f===e.youtubeId);return(0,t.jsx)("div",{ref:l?d:null,className:`playlist-item rounded-[12px] md:rounded-lg transition-colors ${l?"bg-gray-100 sm:p-0":"hover:bg-gray-50"}`,"data-v":e.id,"data-index":r,children:(0,t.jsxs)("a",{href:`/videos/${n}${"en"!==h&&null==b?`?lang=${h}`:"en"!==h&&"app"==b?`?lang=${h}&ref=${b}`:"en"==h&&"app"==b?`?ref=${b}`:""}`,onClick:t=>{var r;return r=e.youtubeId,void(!x&&!f&&(g(r),w(()=>{})))},className:`flex flex-col gap-1 ${l?"p-2 pointer-events-none":""} md:gap-3 sm:p-0 sm:flex-row lg:flex-row md:p-2 ${i?"pointer-events-none":""}`,children:[(0,t.jsxs)("div",{className:"relative w-full sm:w-[120px] lg:w-[172px] flex-shrink-0 aspect-video rounded-[12px] overflow-hidden bg-gray-200",children:[(0,t.jsx)(a.default,{src:`https://i.ytimg.com/vi/${e.youtubeId}/hqdefault.jpg`,alt:e.videoTitle,fill:!0,className:"object-cover",sizes:"(max-width: 640px) 120px, (max-width: 1024px) 100vw, 172px"}),(0,t.jsx)("div",{className:"absolute flex items-center justify-center transition-opacity -translate-x-1/2 -translate-y-1/2 rounded-full w-14 h-14 top-1/2 left-1/2 sm:w-8 lg:w-8 sm:h-8 lg:h-8 bg-black/70 sm:opacity-100 lg:opacity-100 hover:opacity-100",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-6 h-6 sm:w-3 lg:w-3 sm:h-3 lg:h-3 fill-white ml-0.5",children:(0,t.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/10 to-black/40"}),i&&(0,t.jsx)("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-black/60",children:(0,t.jsx)("div",{className:"w-8 h-8 border-white rounded-full border-3 border-t-transparent animate-spin"})}),!i&&(0,t.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-9 h-9 md:w-14 md:h-14 lg:w-[40px] lg:h-[40px] bg-black/70 rounded-full flex items-center justify-center z-10 group-hover:bg-red-600 group-hover:scale-110 transition-all",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-4 h-4 fill-white ml-0.5",children:(0,t.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})})})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 py-1",children:[(0,t.jsx)("p",{className:"mb-[6px] text-[16px] font-bold leading-snug text-gray-800 sm:text-[16px] sm:mb-[8px] line-clamp-2",style:s.fontLatoBold,children:e.videoTitle}),e.artistName&&(0,t.jsx)("p",{className:"text-sm text-gray-500 truncate",style:s.fontLato,children:e.artistName})]})]})},e.id+"-"+r)})})]})}])},25607,e=>{"use strict";var t=e.i(71645);function r(){(0,t.useEffect)(()=>()=>{},[]);let[e,r]=(0,t.useState)(""),[a,l]=(0,t.useState)("");(0,t.useEffect)(()=>{let e=localStorage.getItem("_acc_uInfo");if(e)try{let t=JSON.parse(e);r(t?.Email||"")}catch(e){console.error("User parse error",e)}},[]);let s=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{!e||s.current||(s.current=!0,(async()=>{s.current=!0;let t=await fetch("/videos/api/emailSecure",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});l(JSON.parse((await t.json()).data))})())},[e]),(0,t.useEffect)(()=>{window.smartech&&(window.smartech("create","ADGMOT35CHFLVDHBJNIG50K96AASNJF6OKBCLI58IH6V5S5CREAG"),window.smartech("register","bd6f931364b4fcf4323fb49f030abc7d"))},[]),(0,t.useEffect)(()=>{window.smartech&&a&&(window.smartech("identify",a),window.smartech("dispatch","video_page_player",{SecureEmail:a,page_url:window.location.href,page_title:document.title}),window.smartech("flush"))},[a]),null}e.s(["default",()=>r])}]);
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.