PageSourceSearch

https://vikaspedia.in/_next/static/chunks/1058.5c6c1e989fc3753f.js

js vikaspedia.in collected 2026-10-01 11:27:40 UTC 7,033 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1058],{98946:function(e,n,r){r.d(n,{LB:function(){return s},Lr:function(){return t},Q$:function(){return l},Ym:function(){return o},h$:function(){return i}});let t="#106A39",l="#DCEFE4",o="#0B4A28",i="Yuvva Bharat",s="https://yuvvabharat.blog"},81058:function(e,n,r){r.r(n),r.d(n,{default:function(){return Z}});var t=r(18762),l=r(52089),o=r(55981),i=r(26118),s=r(26344),a=r(25394),d=r(65959),c=r(87938),u=r(29413),h=r(1421),x=r(17103),m=r(63408),f=r(65618),g=r(57895),v=r(98946),p=e=>{let{event:n,translatedData:r}=e,l="light"===(0,u.Z)().palette.mode,h=(0,f.it)(null==n?void 0:n.content,200);return(0,t.jsx)(g.Z,{elevation:0,sx:{borderRadius:3,border:"1px solid ".concat(l?"#E4E9E6":"#2A312D"),overflow:"hidden",height:"100%",transition:"border-color .2s ease, box-shadow .2s ease","&:hover":{borderColor:v.Lr,boxShadow:"0 6px 20px rgba(16,106,57,.10)"}},children:(0,t.jsxs)(s.ZP,{container:!0,children:[(null==n?void 0:n.imageUrl)?(0,t.jsx)(s.ZP,{item:!0,xs:12,sm:4,children:(0,t.jsx)(o.Z,{component:"img",src:n.imageUrl,alt:(null==n?void 0:n.title)||"",loading:"lazy",decoding:"async",sx:{width:"100%",height:{xs:200,sm:"100%"},minHeight:{sm:190},objectFit:"cover",display:"block"}})}):null,(0,t.jsx)(s.ZP,{item:!0,xs:12,sm:(null==n?void 0:n.imageUrl)?8:12,children:(0,t.jsxs)(o.Z,{sx:{p:{xs:2,md:2.5}},children:[(0,t.jsxs)(d.Z,{direction:"row",spacing:1.5,alignItems:"center",flexWrap:"wrap",useFlexGap:!0,sx:{mb:1},children:[(null==n?void 0:n.category)?(0,t.jsx)(i.Z,{label:n.category,size:"small",sx:{bgcolor:v.Q$,color:v.Ym,fontSize:"11px",fontWeight:600,letterSpacing:".04em",textTransform:"uppercase",height:22}}):null,(0,t.jsx)(c.Z,{variant:"caption",sx:{color:"text.secondary"},children:(0,f.vX)(null==n?void 0:n.date)})]}),(0,t.jsx)(c.Z,{variant:"h6",component:"h4",sx:{fontWeight:700,fontSize:{xs:"1rem",md:"1.1rem"},lineHeight:1.35,mb:1},children:null==n?void 0:n.title}),h?(0,t.jsx)(c.Z,{variant:"body2",sx:{color:"text.secondary",lineHeight:1.6,mb:1.5},children:h}):null,(0,t.jsxs)(a.Z,{href:null==n?void 0:n.sourceUrl,target:"_blank",rel:"noopener noreferrer",underline:"hover",sx:{color:v.Lr,fontWeight:600,fontSize:".875rem",display:"inline-flex",alignItems:"center",gap:.5},children:[(null==r?void 0:r.Read_More)||"Read more"," →"]})]})})]})})},b=r(61629),j=e=>{let{person:n,translatedData:r}=e,l="light"===(0,u.Z)().palette.mode,i=(0,f.aJ)(null==n?void 0:n.birthDate,null==n?void 0:n.deathDate),s=(0,f.it)(null==n?void 0:n.content,120);return(0,t.jsxs)(g.Z,{elevation:0,sx:{borderRadius:3,border:"1px solid ".concat(l?"#E4E9E6":"#2A312D"),display:"flex",overflow:"hidden",height:"100%",transition:"border-color .2s ease, box-shadow .2s ease","&:hover":{borderColor:v.Lr,boxShadow:"0 6px 20px rgba(16,106,57,.10)"}},children:[(null==n?void 0:n.imageUrl)?(0,t.jsx)(o.Z,{component:"img",src:n.imageUrl,alt:(null==n?void 0:n.name)||"",loading:"lazy",decoding:"async",sx:{width:{xs:88,sm:104},flexShrink:0,objectFit:"cover",display:"block"}}):null,(0,t.jsxs)(o.Z,{sx:{p:2,minWidth:0},children:[(0,t.jsx)(c.Z,{variant:"subtitle2",component:"h5",sx:{fontWeight:700,lineHeight:1.35},children:null==n?void 0:n.name}),i?(0,t.jsx)(c.Z,{variant:"caption",sx:{color:v.Lr,fontWeight:600,display:"block",mb:.75},children:i}):null,s?(0,t.jsx)(c.Z,{variant:"body2",sx:{color:"text.secondary",fontSize:".82rem",lineHeight:1.55},children:s}):null,(0,t.jsx)(d.Z,{direction:"row",sx:{mt:1},children:(0,t.jsxs)(a.Z,{href:null==n?void 0:n.sourceUrl,target:"_blank",rel:"noopener noreferrer",underline:"hover",sx:{color:v.Lr,fontWeight:600,fontSize:".8rem"},children:[(null==r?void 0:r.Read_More)||"Read more"," →"]})})]})]})},Z=()=>{let e=(0,u.Z)(),{translatedData:n}=(0,x._)(),r=(0,h.Z)(e.breakpoints.only("xs")),g="light"===e.palette.mode,[Z,y]=(0,l.useState)([]),[F,_]=(0,l.useState)([]),[w,S]=(0,l.useState)([]),[P,M]=(0,l.useState)(!0),k=(0,l.useMemo)(()=>(0,f._s)(),[]),D=(0,l.useMemo)(()=>(0,f.$V)(),[]),E=(0,l.useCallback)(async()=>{var e,n,r;M(!0);let[t,l]=await Promise.allSettled([(0,m.PG)(k),(0,m.lW)(k)]);"fulfilled"===t.status?y((null===(e=t.value)||void 0===e?void 0:e.items)||[]):console.error("History of the day unavailable",t.reason),"fulfilled"===l.status?(_((null===(n=l.value)||void 0===n?void 0:n.births)||[]),S((null===(r=l.value)||void 0===r?void 0:r.deaths)||[])):console.error("Personalities of the day unavailable",l.reason),M(!1)},[k]);(0,l.useEffect)(()=>{E()},[E]);let W=(0,l.useMemo)(()=>[...F,...w].slice(0,4),[F,w]);return P?(0,t.jsx)(b.Z,{}):Z.length||W.length?(0,t.jsx)(s.ZP,{container:!0,justifyContent:"center",sx:{bgcolor:g?"#F7F9F8":"transparent",py:{xs:4,md:6}},children:(0,t.jsx)(s.ZP,{item:!0,xs:12,children:(0,t.jsxs)(o.Z,{sx:{px:{xs:2,sm:5,lg:20}},children:[(0,t.jsx)(i.Z,{label:(null==n?void 0:n.Heritage)||"Heritage",sx:{bgcolor:v.Q$,color:v.Ym,borderRadius:4,fontSize:"13px",padding:"5px",mb:2}}),(0,t.jsxs)(c.Z,{variant:r?"h6":"h4",component:"h2",sx:{mb:.5},children:[(0,t.jsx)("strong",{children:(null==n?void 0:n.History_of_the_Day)||"History of the Day"})," ",(0,t.jsx)("span",{style:{color:g?v.Lr:"#fff"},children:(0,t.jsx)("strong",{children:D})})]}),(0,t.jsxs)(c.Z,{variant:"body2",sx:{color:"text.secondary",mb:3},children:[(null==n?void 0:n.In_Partnership_With)||"In partnership with"," ",(0,t.jsx)(a.Z,{href:v.LB,target:"_blank",rel:"noopener noreferrer",underline:"hover",sx:{color:v.Lr,fontWeight:600},children:v.h$})]}),(0,t.jsxs)(s.ZP,{container:!0,spacing:3,children:[Z.length?(0,t.jsx)(s.ZP,{item:!0,xs:12,md:W.length?7:12,children:(0,t.jsx)(d.Z,{spacing:2,children:Z.slice(0,3).map(e=>(0,t.jsx)(p,{event:e,translatedData:n},e.id))})}):null,W.length?(0,t.jsxs)(s.ZP,{item:!0,xs:12,md:Z.length?5:12,children:[(0,t.jsx)(c.Z,{variant:"h6",component:"h3",sx:{fontWeight:700,fontSize:"1.05rem",mb:1.5},children:(null==n?void 0:n.Remembered_Today)||"Remembered today"}),(0,t.jsx)(s.ZP,{container:!0,spacing:2,children:W.map(e=>(0,t.jsx)(s.ZP,{item:!0,xs:12,sm:Z.length?12:6,children:(0,t.jsx)(j,{person:e,translatedData:n})},"".concat(e.anniversaryType,"-").concat(e.id)))})]}):null]})]})})}):null}},65618:function(e,n,r){r.d(n,{$V:function(){return s},FV:function(){return c},_s:function(){return i},aJ:function(){return h},it:function(){return u},vX:function(){return a}});var t=r(46837),l=r.n(t);let o=/[\u{1F000}-\u{1FAFF}\u{2190}-\u{21FF}\u{2300}-\u{27BF}\u{2B00}-\u{2BFF}\u{25A0}-\u{25FF}\u{FE0F}]/gu,i=()=>l()().format("MM-DD"),s=()=>l()().format("D MMMM"),a=e=>{if(!e)return"";let n=l()(e);return n.isValid()?n.format("D MMM YYYY"):""},d=e=>{if(!e)return"";let n=l()(e);return n.isValid()?n.format("YYYY"):""},c=e=>e?e.replace(o," ").replace(/\s+/g," ").trim():"",u=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:180,r=c(e);if(r.length<=n)return r;let t=r.slice(0,n),l=t.lastIndexOf(" ");return"".concat((l>60?t.slice(0,l):t).trim(),"…")},h=(e,n)=>{let r=d(e),t=d(n),l=[];return r&&l.push("Born ".concat(r)),t&&l.push("Passed away ".concat(t)),l.join(" \xb7 ")}}}]);

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.