PageSourceSearch

https://newsarenaindia.com/_next/static/chunks/6771-1ef20717d3209fdd.js

js newsarenaindia.com collected 2026-10-02 11:53:23 UTC 12,548 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6771],{90072:function(e,l,i){i.d(l,{g:function(){return a}});var t=i(85893),o=i(84808),n=i(98456);i(67294);let a=e=>{let{loading:l}=e;return(0,t.jsx)(o.Z,{open:l,sx:{zIndex:999999},children:(0,t.jsx)(n.Z,{sx:{color:"#ff0022"}})})}},47353:function(e,l,i){i.d(l,{r:function(){return g}});var t=i(85893),o=i(80822),n=i(15861),a=i(66242),r=i(44267),d=i(25675),s=i.n(d),c=i(41664),x=i.n(c),u=i(67294),h=i(2261);i(76268),i(80333),i(84940);var p=i(6521),v=i(9740),m=i(63714);let g=e=>{var l,i;let{elections:d,text:c}=e,[g,f]=(0,u.useState)(),[y,b]=(0,u.useState)(),j=async()=>{try{var e;let l=await (0,v.vf)({page:1,size:5});f(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)}catch(e){console.log(e)}},w=async()=>{try{var e;let l=await (0,v.hI)("photo-gallery","election-2024");b(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)}catch(e){console.log(e)}},Z=async()=>{try{var e;let l=await (0,v.hI)("photo-gallery","haryana-assembly");b(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)}catch(e){console.log(e)}},A=async()=>{try{var e;let l=await (0,v.hI)("photo-gallery","jammu-and-kashmir-assembly");b(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)}catch(e){console.log(e)}},S=async()=>{try{var e;let l=await (0,v.hI)("photo-gallery","jharkhand-assembly");b(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)}catch(e){console.log(e)}},I=async()=>{try{var e;let l=await (0,v.hI)("photo-gallery","maharashtra-assembly");b(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)}catch(e){console.log(e)}},k=async()=>{try{var e;let l=await (0,v.hI)("photo-gallery","delhi-assembly");b(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)}catch(e){console.log(e)}},C=async()=>{try{var e;let l=await (0,v.hI)("photo-gallery","bihar-assembly-election");b(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)}catch(e){console.log(e)}};return(0,u.useEffect)(()=>{!0===d?w():"hr"==d?Z():"bh"==d?C():"jk"==d?A():"jh"==d?S():"mh"==d?I():"dl"==d?k():j()},[d]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Z,{sx:{borderBottom:"3px solid #ff0022",display:"flex",justifyContent:"space-between",alignItems:"center",my:2,mt:{xs:5,sm:0}},children:[(0,t.jsx)(n.Z,{fontSize:{xs:"22px",sm:"38px"},fontWeight:"bolder",children:d?"Polls in Pictures":"Gallery"}),(0,t.jsx)(x(),{href:"/photo-gallery",style:{color:"#f50022",fontSize:{xs:"16px",sm:"18px"}},children:"See All"})]}),(0,t.jsx)(o.Z,{sx:{mb:5},children:d&&y||!d&&g?(0,t.jsx)(h.tq,{grabCursor:!0,breakpoints:{1440:{slidesPerView:4},1024:{slidesPerView:3},600:{slidesPerView:2.3},0:{slidesPerView:1}},autoplay:{delay:2e3,pauseOnMouseEnter:!0},spaceBetween:"10px",loop:!0,modules:[p.pt,p.tl,p.W_],style:{"--swiper-pagination-color":"red",height:"340px"},navigation:!0,pagination:{dynamicBullets:!0},children:null===(i=d?y:g)||void 0===i?void 0:null===(l=i.rows)||void 0===l?void 0:l.slice(0,8).map(e=>{var l,i,d;return(0,t.jsx)(h.o5,{children:(0,t.jsx)(a.Z,{sx:{bgcolor:"#8C8C8C26"},elevation:0,variant:"outlined",children:(0,t.jsxs)(r.Z,{sx:{padding:2,"&:last-child":{paddingBottom:2}},children:[(0,t.jsx)(o.Z,{sx:{position:"relative",width:"100%",height:"130px",overflow:"hidden",borderRadius:"7px"},children:(0,t.jsx)("a",{href:"/photo-gallery/".concat(null==e?void 0:null===(l=e.category)||void 0===l?void 0:l.slug,"/").concat(null==e?void 0:e.slug,"/").concat(null==e?void 0:e.id),children:(0,t.jsx)(s(),{src:e.thumbnail?"".concat(m.n1,"/").concat(e.thumbnail):"/newsarena.png",fill:!0,objectFit:"cover",objectPosition:"center",alt:"galleryImage"})})}),(0,t.jsx)(o.Z,{sx:{display:"flex",mt:1,gap:1},children:null==e?void 0:null===(i=e.gallery)||void 0===i?void 0:i.slice(0,2).map((l,i)=>{var n;return(0,t.jsx)(o.Z,{sx:{position:"relative",width:"50%",height:"90px",borderRadius:"7px",overflow:"hidden"},children:(0,t.jsx)("a",{href:"/photo-gallery/".concat(null==e?void 0:null===(n=e.category)||void 0===n?void 0:n.slug,"/").concat(null==e?void 0:e.slug,"/").concat(null==e?void 0:e.id),children:(0,t.jsx)(s(),{src:l.image?"".concat(m.n1,"/").concat(l.image):"/newsarena.png",fill:!0,objectFit:"cover",objectPosition:"center",alt:"galleryImage"})})},i)})},e.slug),(0,t.jsx)(o.Z,{sx:{marginTop:"10px"},children:(0,t.jsx)("a",{className:"links",href:"/photo-gallery/".concat(null==e?void 0:null===(d=e.category)||void 0===d?void 0:d.slug,"/").concat(null==e?void 0:e.slug,"/").concat(null==e?void 0:e.id),children:(0,t.jsx)(n.Z,{fontSize:"14px",fontWeight:"bolder",lineHeight:"21px",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",height:"40px"},children:null==e?void 0:e.title})})},e.category)]})})},e.id)})}):(0,t.jsx)(n.Z,{},"fallback")})]})}},41682:function(e,l,i){var t=i(85893);
1i(67294);var o=i(61730),n=i(80822),a=i(66242),r=i(44267),d=i(15861),s=i(94740),c=i(11163);l.Z=()=>{var e,l,i;(0,c.useRouter)();let x=(0,o.Z)("(max-width:1024px)"),u=(0,o.Z)("(max-width:768px)"),h=(0,o.Z)("(max-width:600px)"),p=(0,o.Z)("(max-width:425px)"),v=(0,o.Z)("(max-width:375px)"),m=(0,o.Z)("(max-width:360px)"),g=(0,o.Z)("(max-width:320px)"),f=(0,o.Z)("(max-width:414px)"),y=(0,o.Z)("(max-width:390px)"),b={minimumSeat:100,constituencies:Array.from({length:400}),parties:[{name:"BJP",count:120,color:"#4B77BE"},{name:"AKALI",count:80,color:"#96D38C"},{name:"AAP",count:90,color:"#FAD860"},{name:"CONGRESS",count:110,color:"#E94A35"},{name:"OTHER",count:60,color:"#5AB1EF"}]},j={tooltip:{trigger:"item"},series:[{name:null==b?void 0:b.name,type:"pie",radius:["60%","120%"],center:["50%","70%"],itemStyle:{borderRadius:7,borderColor:"#fff",borderWidth:2},label:{show:!1},startAngle:180,endAngle:360,data:null==b?void 0:null===(e=b.parties)||void 0===e?void 0:e.map(e=>({value:null==e?void 0:e.count,name:null==e?void 0:e.name,itemStyle:{color:null==e?void 0:e.color}}))}]};return n.Z,(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.Z,{sx:!0,children:(0,t.jsx)(a.Z,{sx:{height:"350px",borderRadius:"27px"},children:(0,t.jsxs)(r.Z,{sx:{padding:2.5,"&:last-child":{paddingBottom:1}},children:[(0,t.jsxs)(n.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(d.Z,{fontSize:"16px",fontWeight:"bolder",children:null==b?void 0:b.name}),(0,t.jsx)(d.Z,{fontSize:"12px",sx:{width:"150px",textAlign:"center"},children:"LOK SABHA ELECTIONS 2024"})]}),(0,t.jsxs)(n.Z,{sx:{position:"relative",height:"200px"},children:[(0,t.jsx)(s.Z,{option:j,style:{height:g?197:m?235:v?240:p?252:u?240:x?220:250,width:g?242:m?284:v?300:y?315:f?337:p?347:h?353:u?304:x?268:335}}),(0,t.jsxs)(n.Z,{sx:{position:"absolute",top:"60%",left:"43%",textAlign:"center"},className:"graphText",children:[(0,t.jsxs)(d.Z,{fontSize:"20px",children:[null==b?void 0:b.minimumSeat,"/",null==b?void 0:null===(l=b.constituencies)||void 0===l?void 0:l.length]}),(0,t.jsx)(d.Z,{sx:{color:"grey"},children:"Seats"})]})]}),(0,t.jsx)(n.Z,{sx:{display:"flex",flexDirection:"row",gap:1,overflowX:"scroll"},children:null==b?void 0:null===(i=b.parties)||void 0===i?void 0:i.map(e=>(0,t.jsxs)(n.Z,{sx:{display:"flex",flexDirection:"column",width:"60px",py:.5,textAlign:"center",bgcolor:null==e?void 0:e.color,color:"white",borderRadius:"3px",flexShrink:0},children:[(0,t.jsx)(d.Z,{sx:{fontSize:"10px"},children:null==e?void 0:e.name}),(0,t.jsx)(d.Z,{sx:{fontSize:"10px"},children:null==e?void 0:e.count})]},null==e?void 0:e.name))})]})})})})}},46312:function(e,l,i){i(85893),i(67294),i(2261),i(6521),i(76268),i(80333),i(84940),i(96168),i(11163),i(90072)},96168:function(e,l,i){i.d(l,{r:function(){return f}});var t=i(85893),o=i(67294),n=i(25675),a=i.n(n),r=i(65582),d=i(80822),s=i(9526),c=i(66242),x=i(44267),u=i(15861),h=i(5121);i(76268);var p=i(6521),v=i(2261),m=i(63714);let g={assam:"assam",kerala:"kerala",puducherry:"puducherry",tamil_nadu:"tamil",west_bengal:"bengal"},f=e=>{var l;let{stateKey:i}=e,[n,f]=(0,o.useState)([]),[y,b]=(0,o.useState)(null),[j,w]=(0,o.useState)(""),[Z,A]=(0,o.useState)(!0);return((0,o.useEffect)(()=>{let e=async()=>{try{var e,l,t;let o=await h.Z.post("/api/features/cricket?q=/api/ppl/admin/location/search",{parent:"0"}),n=(null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.rows)||[],a=null===(l=g[i])||void 0===l?void 0:l.toLowerCase(),r=n.find(e=>{var l;return null==e?void 0:null===(l=e.name)||void 0===l?void 0:l.toLowerCase().includes(a)});b(null!==(t=null==r?void 0:r.id)&&void 0!==t?t:null)}catch(e){console.error("Error fetching states:",e)}};i&&e()},[i]),(0,o.useEffect)(()=>{if(void 0===y)return;let e=async()=>{try{var e,l;let i={isStar:1,...y&&{stateId:y}},t=await h.Z.post("/api/features/cricket?q=/api/ppl/admin/candidate/search",i),o=(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.rows)||[],n=null==o?void 0:o.map(e=>{var l;return{id:null==e?void 0:e.id,name:null==e?void 0:e.name,image:(null==e?void 0:e.image)?"".concat(m.ek.URL,"/uploads").concat(null==e?void 0:e.image):(null==e?void 0:null===(l=e.meta)||void 0===l?void 0:l.imageUrl)||null,party:null==e?void 0:e.partyName,partyAbbr:null==e?void 0:e.partyNameAbbreviation,state:null==e?void 0:e.state,city:null==e?void 0:e.city,constituencyName:null==e?void 0:e.constituencyName,candidateElectionResultCode:null==e?void 0:e.candidateElectionResultCode}});w((null===(l=o[0])||void 0===l?void 0:l.declaration)||""),f(n)}catch(e){console.error("Error fetching star candidates:",e)}finally{A(!1)}};e()},[y]),Z)?(0,t.jsx)(r.Z,{maxWidth:"xl",children:(0,t.jsx)(d.Z,{sx:{mx:{xs:-2,md:0},border:"1.5px solid #FBD716",bgcolor:"#F9F6F1",p:2,borderRadius:"9px",mb:7,mt:5},children:(0,t.jsx)(d.Z,{sx:{display:"flex",gap:1.25,overflow:"hidden"},children:Array.from({length:6}).map((e,l)=>(0,t.jsxs)(d.Z,{sx:{minWidth:150,height:"220px",borderRadius:"10px",bgcolor:"#fff",p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,flex:"0 0 auto"},children:[(0,t.jsx)(s.Z,{variant:"text",width:"80%",height:30}),(0,t.jsx)(s.Z,{variant:"text",width:"60%",height:24}),(0,t.jsx)(s.Z,{variant:"circular",width:108,height:108})]},l))})})}):n.length?(0,t.jsx)(d.Z,{sx:{px:{xs:1.5,md:0}},children:(0,t.jsx)(v.tq,{spaceBetween:15,modules:[p.pt],autoplay:{delay:1500,disableOnInteraction:!1},loop:!0,direction:"horizontal",grabCursor:!0,breakpoints:{1024:{slidesPerView:3},768:{slidesPerView:2},600:{slidesPerView:2.3},0:{slidesPerView:1.2}},children:n.map(e=>
1(0,t.jsx)(v.o5,{children:(0,t.jsx)(c.Z,{variant:"outlined",sx:{p:1,borderRadius:"12px",boxShadow:"0px 1px 8px -1px #00000014","&:hover":{cursor:"pointer"},mb:2},children:(0,t.jsx)(x.Z,{sx:{padding:0,"&:last-child":{paddingBottom:0}},children:(0,t.jsxs)(d.Z,{sx:{display:"flex",gap:1,flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:[(0,t.jsx)(d.Z,{sx:{position:"relative",overflow:"hidden",height:"70px",width:"70px",borderRadius:"50%",border:"3px solid ".concat(null!==(l=({WON:"#1AC057",LEADING:"#7BC67E",LOSS:"#f50022",TRAILING:"#FF6B6B"})[null==e?void 0:e.candidateElectionResultCode])&&void 0!==l?l:"#fcd717"),flexShrink:0},children:(0,t.jsx)(a(),{src:(null==e?void 0:e.image)||"/images/defaultImage.png",layout:"fill",objectFit:"cover",objectPosition:"center",alt:"".concat((null==e?void 0:e.name)||"Candidate","'s image")})}),(0,t.jsxs)(d.Z,{sx:{display:"flex",flexDirection:"column",gap:.5,width:"70%"},children:[(0,t.jsx)(u.Z,{fontWeight:"bolder",sx:{color:"#1A1A1A",fontSize:"14px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical"},children:null==e?void 0:e.name}),(null==e?void 0:e.constituencyName)&&(0,t.jsx)(u.Z,{sx:{color:"#1A1A1AB2",fontSize:"12px",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical"},children:null==e?void 0:e.constituencyName}),(0,t.jsxs)(u.Z,{sx:{color:"#1A1A1AB2",fontSize:"12px"},children:[null==e?void 0:e.partyAbbr,","," ",(0,t.jsx)("span",{children:null==e?void 0:e.state})]}),(()=>{var l,i,o;let n=null!==(l=null==e?void 0:e.candidateElectionResultCode)&&void 0!==l?l:"AWAITED",a=null!==(i=({WON:"#1AC057",LEADING:"#7BC67E",LOSS:"#f50022",TRAILING:"#FF6B6B",AWAITED:"#fcd717"})[n])&&void 0!==i?i:"#fcd717";return(0,t.jsx)(u.Z,{sx:{border:"2px solid ".concat(a),width:"fit-content",px:4,py:.5,borderRadius:"20px",color:"AWAITED"===n?"black":"white",bgcolor:a,fontSize:"12px"},children:null!==(o=({WON:"Won",LOSS:"Lost",LEADING:"Leading",TRAILING:"Trailing",AWAITED:"Awaited"})[n])&&void 0!==o?o:n})})()]})]})})})},null==e?void 0:e.id))})}):(0,t.jsx)(t.Fragment,{})}}}]);

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.