(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[928],{25100:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/videos",function(){return t(59959)}])},57227:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a={src:"/_next/static/media/blu-btn-play.e47ba934.svg",height:46,width:46,blurWidth:0,blurHeight:0}},59959:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>h});var a=t(37876),i=t(14232),o=t(77328),l=t.n(o),c=t(57227),n=t(54587),d=t.n(n),r=t(35195);let m=()=>{let[e,s]=(0,i.useState)(!1),[t,o]=(0,i.useState)(""),[l,n]=(0,i.useState)([]),[m,h]=(0,i.useState)(!0);(0,i.useEffect)(()=>{(async()=>{try{let e=await (0,r.FH)();n(e.data||[])}catch(e){console.error("Error fetching videos:",e),n([])}finally{h(!1)}})()},[]),(0,i.useEffect)(()=>(e?(document.body.style.overflow="hidden",document.body.classList.add("bodyClass")):(document.body.style.overflow="auto",document.body.classList.remove("bodyClass")),()=>{document.body.style.overflow="auto",document.body.classList.remove("bodyClass")}),[e]);let u=e=>{o(e),s(!0)},p=()=>{s(!1),o("")};return(0,a.jsx)("section",{className:"opinions",children:(0,a.jsxs)("div",{className:"opinions-inner side-space section-space",children:[(0,a.jsx)("h2",{className:"section-heading",children:"Videos"}),(0,a.jsx)("div",{className:"row common-gutter",children:m?(0,a.jsx)("p",{children:"Loading videos..."}):l.map((e,s)=>(0,a.jsx)("div",{className:"col-lg-3 col-md-4 col-12",children:(0,a.jsxs)("div",{className:"opinions-card",onClick:()=>u(e.videoUrl),children:[(0,a.jsxs)("div",{className:"opinion-img mb-2 op-video-img",children:[(0,a.jsx)("button",{className:"btn-play",onClick:s=>{s.stopPropagation(),u(e.videoUrl)},children:(0,a.jsx)(d(),{width:40,height:40,src:c.A.src,alt:"Play button"})}),(0,a.jsx)(d(),{width:270,height:145,src:e.thumbnil_image?"/".concat(e.thumbnil_image.replace(/\\/g,"/").replace(/^\//,"")):"",alt:"video thumbnail"})]}),(0,a.jsx)("h5",{className:"ellipsis-2",children:e.title})]})},e.id||s))}),e&&(0,a.jsx)("div",{className:"modal-overlay-custom",onClick:p,children:(0,a.jsxs)("div",{className:"modal-content-custom",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("button",{className:"modal-close-custom",onClick:p,children:"\xd7"}),(0,a.jsx)("iframe",{src:t,title:"Health Video",frameBorder:"0",allow:"autoplay; encrypted-media",allowFullScreen:!0,className:"modal-video-custom"})]})})]})})},h=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l(),{children:[(0,a.jsx)("title",{children:"Lokmanya Hospitals Videos | Healthcare Tips & Patient Stories"}),(0,a.jsx)("meta",{name:"description",content:"Discover health tips, treatments, and patient stories with videos from Lokmanya Hospitals. Stay informed and take charge of your health today."})]}),(0,a.jsx)(m,{})]})}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(25100)),_N_E=e.O()}]);
//# sourceMappingURL=videos-5f19b2e581fc6e3e.js.map